… | |
… | |
597 | IF_PERL |
597 | IF_PERL |
598 | PERLPRIVLIBEXP |
598 | PERLPRIVLIBEXP |
599 | PERLFLAGS |
599 | PERLFLAGS |
600 | PERLLIB |
600 | PERLLIB |
601 | PERL |
601 | PERL |
|
|
602 | PIXBUF_LIBS |
|
|
603 | PIXBUF_CFLAGS |
602 | XFT_CONFIG |
604 | XFT_CONFIG |
603 | AFTERIMAGE_LIBS |
|
|
604 | AFTERIMAGE_CFLAGS |
|
|
605 | afterimage_config |
|
|
606 | STARTUP_NOTIFICATION_LIBS |
605 | STARTUP_NOTIFICATION_LIBS |
607 | STARTUP_NOTIFICATION_CFLAGS |
606 | STARTUP_NOTIFICATION_CFLAGS |
608 | PIXBUF_LIBS |
|
|
609 | PIXBUF_CFLAGS |
|
|
610 | PKG_CONFIG |
607 | PKG_CONFIG |
611 | X_EXTRA_LIBS |
608 | X_EXTRA_LIBS |
612 | X_LIBS |
609 | X_LIBS |
613 | X_PRE_LIBS |
610 | X_PRE_LIBS |
614 | X_CFLAGS |
611 | X_CFLAGS |
… | |
… | |
690 | enable_256_color |
687 | enable_256_color |
691 | enable_unicode3 |
688 | enable_unicode3 |
692 | enable_combining |
689 | enable_combining |
693 | enable_xft |
690 | enable_xft |
694 | enable_font_styles |
691 | enable_font_styles |
695 | enable_afterimage |
|
|
696 | with_afterimage_config |
|
|
697 | enable_pixbuf |
692 | enable_pixbuf |
698 | enable_startup_notification |
693 | enable_startup_notification |
699 | enable_transparency |
694 | enable_transparency |
700 | enable_fading |
695 | enable_fading |
701 | enable_rxvt_scroll |
696 | enable_rxvt_scroll |
… | |
… | |
1367 | --enable-256-color enable 256-color support |
1362 | --enable-256-color enable 256-color support |
1368 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1363 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1369 | --enable-combining enable composition of base and combining characters |
1364 | --enable-combining enable composition of base and combining characters |
1370 | --enable-xft enable xft support on systems that have it |
1365 | --enable-xft enable xft support on systems that have it |
1371 | --enable-font-styles enable bold and italic support |
1366 | --enable-font-styles enable bold and italic support |
1372 | --enable-afterimage enable integration with libAfterImage for background images (deprecated) |
|
|
1373 | --enable-pixbuf enable integration with gdk-pixbuf for background images |
1367 | --enable-pixbuf enable integration with gdk-pixbuf for background images |
1374 | --enable-startup-notification enable freedesktop startup notification support |
1368 | --enable-startup-notification enable freedesktop startup notification support |
1375 | --enable-transparency enable transparent backgrounds |
1369 | --enable-transparency enable transparent backgrounds |
1376 | --enable-fading enable colors fading when off focus |
1370 | --enable-fading enable colors fading when off focus |
1377 | --enable-rxvt-scroll enable rxvt style scrollbar |
1371 | --enable-rxvt-scroll enable rxvt style scrollbar |
… | |
… | |
1399 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
1393 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
1400 | |
1394 | |
1401 | Optional Packages: |
1395 | Optional Packages: |
1402 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1396 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1403 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1397 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1404 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
|
|
1405 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1398 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1406 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1399 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1407 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1400 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1408 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1401 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1409 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1402 | --with-term=NAME set the terminal to NAME (default: rxvt) |
… | |
… | |
4829 | support_styles=$enableval |
4822 | support_styles=$enableval |
4830 | fi |
4823 | fi |
4831 | fi |
4824 | fi |
4832 | |
4825 | |
4833 | |
4826 | |
4834 | # Check whether --enable-afterimage was given. |
|
|
4835 | if test "${enable_afterimage+set}" = set; then : |
|
|
4836 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4837 | support_afterimage=$enableval |
|
|
4838 | fi |
|
|
4839 | fi |
|
|
4840 | |
|
|
4841 | |
|
|
4842 | |
|
|
4843 | # Check whether --with-afterimage_config was given. |
|
|
4844 | if test "${with_afterimage_config+set}" = set; then : |
|
|
4845 | withval=$with_afterimage_config; if test "x$withval" != x; then |
|
|
4846 | afterimage_config=$withval/afterimage-config |
|
|
4847 | fi |
|
|
4848 | fi |
|
|
4849 | |
|
|
4850 | |
|
|
4851 | # Check whether --enable-pixbuf was given. |
4827 | # Check whether --enable-pixbuf was given. |
4852 | if test "${enable_pixbuf+set}" = set; then : |
4828 | if test "${enable_pixbuf+set}" = set; then : |
4853 | enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then |
4829 | enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then |
4854 | support_pixbuf=$enableval |
4830 | support_pixbuf=$enableval |
4855 | fi |
4831 | fi |
… | |
… | |
6266 | LDFLAGS=$ac_save_LDFLAGS |
6242 | LDFLAGS=$ac_save_LDFLAGS |
6267 | |
6243 | |
6268 | fi |
6244 | fi |
6269 | |
6245 | |
6270 | |
6246 | |
6271 | image_lib=none |
6247 | STARTUP_NOTIFICATION_CFLAGS= |
|
|
6248 | STARTUP_NOTIFICATION_LIBS= |
6272 | |
6249 | |
6273 | PIXBUF_CFLAGS= |
|
|
6274 | PIXBUF_LIBS= |
|
|
6275 | |
|
|
6276 | if test x$support_pixbuf = xyes; then |
6250 | if test x$support_startup_notification = xyes; then |
6277 | support_pixbuf=no |
6251 | support_startup_notification=no |
6278 | # Extract the first word of "pkg-config", so it can be a program name with args. |
6252 | # Extract the first word of "pkg-config", so it can be a program name with args. |
6279 | set dummy pkg-config; ac_word=$2 |
6253 | set dummy pkg-config; ac_word=$2 |
6280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6281 | $as_echo_n "checking for $ac_word... " >&6; } |
6255 | $as_echo_n "checking for $ac_word... " >&6; } |
6282 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
6256 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
… | |
… | |
6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6315 | $as_echo "no" >&6; } |
6289 | $as_echo "no" >&6; } |
6316 | fi |
6290 | fi |
6317 | |
6291 | |
6318 | |
6292 | |
6319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5 |
6293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5 |
6320 | $as_echo_n "checking for gdk-pixbuf... " >&6; } |
6294 | $as_echo_n "checking for libstartup-notification... " >&6; } |
6321 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
6295 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then |
6322 | PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`" |
6296 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" |
6323 | PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`" |
6297 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" |
6324 | support_pixbuf=yes |
6298 | support_startup_notification=yes |
6325 | fi |
6299 | fi |
6326 | |
6300 | |
6327 | if test x$support_pixbuf = xyes; then |
6301 | if test x$support_startup_notification = xyes; then |
6328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6329 | $as_echo "ok" >&6; } |
6303 | $as_echo "ok" >&6; } |
6330 | image_lib=gdk-pixbuf |
|
|
6331 | support_afterimage=no |
|
|
6332 | |
6304 | |
6333 | $as_echo "#define HAVE_PIXBUF 1" >>confdefs.h |
6305 | $as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h |
6334 | |
|
|
6335 | |
|
|
6336 | $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h |
|
|
6337 | |
6306 | |
6338 | else |
6307 | else |
6339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6340 | $as_echo "no" >&6; } |
6309 | $as_echo "no" >&6; } |
6341 | fi |
6310 | fi |
6342 | fi |
6311 | fi |
6343 | |
6312 | |
6344 | |
6313 | |
6345 | |
6314 | |
6346 | |
6315 | |
6347 | STARTUP_NOTIFICATION_CFLAGS= |
6316 | for ac_header in \ |
6348 | STARTUP_NOTIFICATION_LIBS= |
6317 | sys/byteorder.h \ |
|
|
6318 | sys/ioctl.h \ |
|
|
6319 | sys/sockio.h \ |
|
|
6320 | sys/strredir.h \ |
|
|
6321 | stdint.h \ |
|
|
6322 | wchar.h \ |
6349 | |
6323 | |
|
|
6324 | do : |
|
|
6325 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
6326 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
6327 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
6328 | cat >>confdefs.h <<_ACEOF |
|
|
6329 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
6330 | _ACEOF |
|
|
6331 | |
|
|
6332 | fi |
|
|
6333 | |
|
|
6334 | done |
|
|
6335 | |
|
|
6336 | |
|
|
6337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5 |
|
|
6338 | $as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; } |
|
|
6339 | if test "${rxvt_cv_xlib_illegal_access+set}" = set; then : |
|
|
6340 | $as_echo_n "(cached) " >&6 |
|
|
6341 | else |
|
|
6342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6343 | /* end confdefs.h. */ |
|
|
6344 | |
|
|
6345 | #define XLIB_ILLEGAL_ACCESS |
|
|
6346 | #include <X11/Xlib.h> |
|
|
6347 | |
|
|
6348 | int |
|
|
6349 | main () |
|
|
6350 | { |
|
|
6351 | |
|
|
6352 | Display *dpy; |
|
|
6353 | dpy->xdefaults = (char *)0; |
|
|
6354 | |
|
|
6355 | ; |
|
|
6356 | return 0; |
|
|
6357 | } |
|
|
6358 | _ACEOF |
|
|
6359 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6360 | rxvt_cv_xlib_illegal_access=yes |
|
|
6361 | else |
|
|
6362 | rxvt_cv_xlib_illegal_access=no |
|
|
6363 | |
|
|
6364 | fi |
|
|
6365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6366 | fi |
|
|
6367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5 |
|
|
6368 | $as_echo "$rxvt_cv_xlib_illegal_access" >&6; } |
|
|
6369 | if test x$rxvt_cv_xlib_illegal_access = xyes; then |
|
|
6370 | |
|
|
6371 | $as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h |
|
|
6372 | |
|
|
6373 | fi |
|
|
6374 | |
|
|
6375 | ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
|
|
6376 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
|
|
6377 | |
|
|
6378 | else |
|
|
6379 | |
|
|
6380 | cat >>confdefs.h <<_ACEOF |
|
|
6381 | #define mode_t int |
|
|
6382 | _ACEOF |
|
|
6383 | |
|
|
6384 | fi |
|
|
6385 | |
|
|
6386 | ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
|
|
6387 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
|
|
6388 | |
|
|
6389 | else |
|
|
6390 | |
|
|
6391 | cat >>confdefs.h <<_ACEOF |
|
|
6392 | #define pid_t int |
|
|
6393 | _ACEOF |
|
|
6394 | |
|
|
6395 | fi |
|
|
6396 | |
|
|
6397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
|
|
6398 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
|
|
6399 | if test "${ac_cv_type_uid_t+set}" = set; then : |
|
|
6400 | $as_echo_n "(cached) " >&6 |
|
|
6401 | else |
|
|
6402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6403 | /* end confdefs.h. */ |
|
|
6404 | #include <sys/types.h> |
|
|
6405 | |
|
|
6406 | _ACEOF |
|
|
6407 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6408 | $EGREP "uid_t" >/dev/null 2>&1; then : |
|
|
6409 | ac_cv_type_uid_t=yes |
|
|
6410 | else |
|
|
6411 | ac_cv_type_uid_t=no |
|
|
6412 | fi |
|
|
6413 | rm -f conftest* |
|
|
6414 | |
|
|
6415 | fi |
|
|
6416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
|
|
6417 | $as_echo "$ac_cv_type_uid_t" >&6; } |
|
|
6418 | if test $ac_cv_type_uid_t = no; then |
|
|
6419 | |
|
|
6420 | $as_echo "#define uid_t int" >>confdefs.h |
|
|
6421 | |
|
|
6422 | |
|
|
6423 | $as_echo "#define gid_t int" >>confdefs.h |
|
|
6424 | |
|
|
6425 | fi |
|
|
6426 | |
|
|
6427 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
|
|
6428 | case $ac_cv_c_int16_t in #( |
|
|
6429 | no|yes) ;; #( |
|
|
6430 | *) |
|
|
6431 | |
|
|
6432 | cat >>confdefs.h <<_ACEOF |
|
|
6433 | #define int16_t $ac_cv_c_int16_t |
|
|
6434 | _ACEOF |
|
|
6435 | ;; |
|
|
6436 | esac |
|
|
6437 | |
|
|
6438 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
|
|
6439 | case $ac_cv_c_uint16_t in #( |
|
|
6440 | no|yes) ;; #( |
|
|
6441 | *) |
|
|
6442 | |
|
|
6443 | |
|
|
6444 | cat >>confdefs.h <<_ACEOF |
|
|
6445 | #define uint16_t $ac_cv_c_uint16_t |
|
|
6446 | _ACEOF |
|
|
6447 | ;; |
|
|
6448 | esac |
|
|
6449 | |
|
|
6450 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
|
|
6451 | case $ac_cv_c_int32_t in #( |
|
|
6452 | no|yes) ;; #( |
|
|
6453 | *) |
|
|
6454 | |
|
|
6455 | cat >>confdefs.h <<_ACEOF |
|
|
6456 | #define int32_t $ac_cv_c_int32_t |
|
|
6457 | _ACEOF |
|
|
6458 | ;; |
|
|
6459 | esac |
|
|
6460 | |
|
|
6461 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
|
|
6462 | case $ac_cv_c_uint32_t in #( |
|
|
6463 | no|yes) ;; #( |
|
|
6464 | *) |
|
|
6465 | |
|
|
6466 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
|
|
6467 | |
|
|
6468 | |
|
|
6469 | cat >>confdefs.h <<_ACEOF |
|
|
6470 | #define uint32_t $ac_cv_c_uint32_t |
|
|
6471 | _ACEOF |
|
|
6472 | ;; |
|
|
6473 | esac |
|
|
6474 | |
|
|
6475 | |
|
|
6476 | for ac_func in unsetenv |
|
|
6477 | do : |
|
|
6478 | ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
|
|
6479 | if test "x$ac_cv_func_unsetenv" = x""yes; then : |
|
|
6480 | cat >>confdefs.h <<_ACEOF |
|
|
6481 | #define HAVE_UNSETENV 1 |
|
|
6482 | _ACEOF |
|
|
6483 | |
|
|
6484 | fi |
|
|
6485 | done |
|
|
6486 | |
|
|
6487 | |
|
|
6488 | |
|
|
6489 | support_utmp=yes |
|
|
6490 | support_wtmp=yes |
|
|
6491 | support_lastlog=yes |
|
|
6492 | |
|
|
6493 | # Check whether --enable-utmp was given. |
|
|
6494 | if test "${enable_utmp+set}" = set; then : |
|
|
6495 | enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6496 | support_utmp=$enableval |
|
|
6497 | fi |
|
|
6498 | fi |
|
|
6499 | |
|
|
6500 | |
|
|
6501 | # Check whether --enable-wtmp was given. |
|
|
6502 | if test "${enable_wtmp+set}" = set; then : |
|
|
6503 | enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6504 | support_wtmp=$enableval |
|
|
6505 | fi |
|
|
6506 | fi |
|
|
6507 | |
|
|
6508 | |
|
|
6509 | # Check whether --enable-lastlog was given. |
|
|
6510 | if test "${enable_lastlog+set}" = set; then : |
|
|
6511 | enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6512 | support_lastlog=$enableval |
|
|
6513 | fi |
|
|
6514 | fi |
|
|
6515 | |
|
|
6516 | |
6350 | if test x$support_startup_notification = xyes; then |
6517 | if test x$support_utmp = xyes; then |
6351 | support_startup_notification=no |
6518 | |
|
|
6519 | $as_echo "#define UTMP_SUPPORT 1" >>confdefs.h |
|
|
6520 | |
|
|
6521 | fi |
|
|
6522 | if test x$support_wtmp = xyes; then |
|
|
6523 | |
|
|
6524 | $as_echo "#define WTMP_SUPPORT 1" >>confdefs.h |
|
|
6525 | |
|
|
6526 | fi |
|
|
6527 | if test x$support_lastlog = xyes; then |
|
|
6528 | |
|
|
6529 | $as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h |
|
|
6530 | |
|
|
6531 | fi |
|
|
6532 | |
|
|
6533 | for ac_func in \ |
|
|
6534 | updwtmp \ |
|
|
6535 | updwtmpx \ |
|
|
6536 | updlastlogx \ |
|
|
6537 | |
|
|
6538 | do : |
|
|
6539 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6540 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
6541 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
6542 | cat >>confdefs.h <<_ACEOF |
|
|
6543 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6544 | _ACEOF |
|
|
6545 | |
|
|
6546 | fi |
|
|
6547 | done |
|
|
6548 | |
|
|
6549 | |
|
|
6550 | for ac_header in lastlog.h |
|
|
6551 | do : |
|
|
6552 | ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default" |
|
|
6553 | if test "x$ac_cv_header_lastlog_h" = x""yes; then : |
|
|
6554 | cat >>confdefs.h <<_ACEOF |
|
|
6555 | #define HAVE_LASTLOG_H 1 |
|
|
6556 | _ACEOF |
|
|
6557 | |
|
|
6558 | fi |
|
|
6559 | |
|
|
6560 | done |
|
|
6561 | |
|
|
6562 | |
|
|
6563 | case $host in |
|
|
6564 | *-*-solaris*) |
|
|
6565 | |
|
|
6566 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
|
|
6567 | |
|
|
6568 | ;; |
|
|
6569 | esac |
|
|
6570 | |
|
|
6571 | |
|
|
6572 | for ac_header in utmp.h |
|
|
6573 | do : |
|
|
6574 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" |
|
|
6575 | if test "x$ac_cv_header_utmp_h" = x""yes; then : |
|
|
6576 | cat >>confdefs.h <<_ACEOF |
|
|
6577 | #define HAVE_UTMP_H 1 |
|
|
6578 | _ACEOF |
|
|
6579 | ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" " |
|
|
6580 | #include <sys/types.h> |
|
|
6581 | #include <utmp.h> |
|
|
6582 | |
|
|
6583 | " |
|
|
6584 | if test "x$ac_cv_type_struct_utmp" = x""yes; then : |
|
|
6585 | |
|
|
6586 | cat >>confdefs.h <<_ACEOF |
|
|
6587 | #define HAVE_STRUCT_UTMP 1 |
|
|
6588 | _ACEOF |
|
|
6589 | |
|
|
6590 | |
|
|
6591 | fi |
|
|
6592 | |
|
|
6593 | |
|
|
6594 | |
|
|
6595 | # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES |
|
|
6596 | # ------------------------------------------------------ |
|
|
6597 | # Tries to find if the field MEMBER exists in type AGGR, after including |
|
|
6598 | # INCLUDES, setting cache variable VAR accordingly. |
|
|
6599 | ac_fn_cxx_check_member () |
|
|
6600 | { |
|
|
6601 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
6602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
|
|
6603 | $as_echo_n "checking for $2.$3... " >&6; } |
|
|
6604 | if eval "test \"\${$4+set}\"" = set; then : |
|
|
6605 | $as_echo_n "(cached) " >&6 |
|
|
6606 | else |
|
|
6607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6608 | /* end confdefs.h. */ |
|
|
6609 | $5 |
|
|
6610 | int |
|
|
6611 | main () |
|
|
6612 | { |
|
|
6613 | static $2 ac_aggr; |
|
|
6614 | if (ac_aggr.$3) |
|
|
6615 | return 0; |
|
|
6616 | ; |
|
|
6617 | return 0; |
|
|
6618 | } |
|
|
6619 | _ACEOF |
|
|
6620 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6621 | eval "$4=yes" |
|
|
6622 | else |
|
|
6623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6624 | /* end confdefs.h. */ |
|
|
6625 | $5 |
|
|
6626 | int |
|
|
6627 | main () |
|
|
6628 | { |
|
|
6629 | static $2 ac_aggr; |
|
|
6630 | if (sizeof ac_aggr.$3) |
|
|
6631 | return 0; |
|
|
6632 | ; |
|
|
6633 | return 0; |
|
|
6634 | } |
|
|
6635 | _ACEOF |
|
|
6636 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6637 | eval "$4=yes" |
|
|
6638 | else |
|
|
6639 | eval "$4=no" |
|
|
6640 | fi |
|
|
6641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6642 | fi |
|
|
6643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6644 | fi |
|
|
6645 | eval ac_res=\$$4 |
|
|
6646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
6647 | $as_echo "$ac_res" >&6; } |
|
|
6648 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
|
6649 | |
|
|
6650 | } # ac_fn_cxx_check_member |
|
|
6651 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " |
|
|
6652 | #include <sys/types.h> |
|
|
6653 | #include <utmp.h> |
|
|
6654 | |
|
|
6655 | " |
|
|
6656 | if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then : |
|
|
6657 | |
|
|
6658 | $as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h |
|
|
6659 | |
|
|
6660 | fi |
|
|
6661 | |
|
|
6662 | |
|
|
6663 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " |
|
|
6664 | #include <sys/types.h> |
|
|
6665 | #include <utmp.h> |
|
|
6666 | |
|
|
6667 | " |
|
|
6668 | if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then : |
|
|
6669 | |
|
|
6670 | $as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h |
|
|
6671 | |
|
|
6672 | fi |
|
|
6673 | |
|
|
6674 | |
|
|
6675 | fi |
|
|
6676 | |
|
|
6677 | done |
|
|
6678 | |
|
|
6679 | |
|
|
6680 | for ac_header in utmpx.h |
|
|
6681 | do : |
|
|
6682 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" |
|
|
6683 | if test "x$ac_cv_header_utmpx_h" = x""yes; then : |
|
|
6684 | cat >>confdefs.h <<_ACEOF |
|
|
6685 | #define HAVE_UTMPX_H 1 |
|
|
6686 | _ACEOF |
|
|
6687 | ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" " |
|
|
6688 | #include <sys/types.h> |
|
|
6689 | #include <utmpx.h> |
|
|
6690 | |
|
|
6691 | " |
|
|
6692 | if test "x$ac_cv_type_struct_utmpx" = x""yes; then : |
|
|
6693 | |
|
|
6694 | cat >>confdefs.h <<_ACEOF |
|
|
6695 | #define HAVE_STRUCT_UTMPX 1 |
|
|
6696 | _ACEOF |
|
|
6697 | |
|
|
6698 | |
|
|
6699 | fi |
|
|
6700 | |
|
|
6701 | |
|
|
6702 | ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" " |
|
|
6703 | #include <sys/types.h> |
|
|
6704 | #include <utmpx.h> |
|
|
6705 | |
|
|
6706 | " |
|
|
6707 | if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then : |
|
|
6708 | |
|
|
6709 | $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h |
|
|
6710 | |
|
|
6711 | fi |
|
|
6712 | |
|
|
6713 | |
|
|
6714 | fi |
|
|
6715 | |
|
|
6716 | done |
|
|
6717 | |
|
|
6718 | ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " |
|
|
6719 | #include <sys/types.h> |
|
|
6720 | #include <utmp.h> |
|
|
6721 | #ifdef HAVE_LASTLOG_H |
|
|
6722 | #include <lastlog.h> |
|
|
6723 | #endif |
|
|
6724 | |
|
|
6725 | " |
|
|
6726 | if test "x$ac_cv_type_struct_lastlog" = x""yes; then : |
|
|
6727 | |
|
|
6728 | cat >>confdefs.h <<_ACEOF |
|
|
6729 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
6730 | _ACEOF |
|
|
6731 | |
|
|
6732 | |
|
|
6733 | fi |
|
|
6734 | |
|
|
6735 | |
|
|
6736 | ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" " |
|
|
6737 | #include <sys/types.h> |
|
|
6738 | #include <utmpx.h> |
|
|
6739 | #ifdef HAVE_LASTLOG_H |
|
|
6740 | #include <lastlog.h> |
|
|
6741 | #endif |
|
|
6742 | |
|
|
6743 | " |
|
|
6744 | if test "x$ac_cv_type_struct_lastlogx" = x""yes; then : |
|
|
6745 | |
|
|
6746 | cat >>confdefs.h <<_ACEOF |
|
|
6747 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
6748 | _ACEOF |
|
|
6749 | |
|
|
6750 | |
|
|
6751 | fi |
|
|
6752 | |
|
|
6753 | |
|
|
6754 | |
|
|
6755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5 |
|
|
6756 | $as_echo_n "checking for a fallback location of utmp... " >&6; } |
|
|
6757 | if test "${pt_cv_path_utmp+set}" = set; then : |
|
|
6758 | $as_echo_n "(cached) " >&6 |
|
|
6759 | else |
|
|
6760 | |
|
|
6761 | if test "$cross_compiling" != yes; then |
|
|
6762 | for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do |
|
|
6763 | if test -f "$file"; then |
|
|
6764 | pt_cv_path_utmp=$file |
|
|
6765 | break |
|
|
6766 | fi |
|
|
6767 | done |
|
|
6768 | fi |
|
|
6769 | fi |
|
|
6770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
|
|
6771 | $as_echo "$pt_cv_path_utmp" >&6; } |
|
|
6772 | if test x$pt_cv_path_utmp != x; then |
|
|
6773 | |
|
|
6774 | cat >>confdefs.h <<_ACEOF |
|
|
6775 | #define PT_UTMP_FILE "$pt_cv_path_utmp" |
|
|
6776 | _ACEOF |
|
|
6777 | |
|
|
6778 | elif test "$cross_compiling" = yes; then |
|
|
6779 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5 |
|
|
6780 | $as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;} |
|
|
6781 | fi |
|
|
6782 | |
|
|
6783 | |
|
|
6784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5 |
|
|
6785 | $as_echo_n "checking for a fallback location of wtmp... " >&6; } |
|
|
6786 | if test "${pt_cv_path_wtmp+set}" = set; then : |
|
|
6787 | $as_echo_n "(cached) " >&6 |
|
|
6788 | else |
|
|
6789 | |
|
|
6790 | if test "$cross_compiling" != yes; then |
|
|
6791 | for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do |
|
|
6792 | if test -f "$file"; then |
|
|
6793 | pt_cv_path_wtmp=$file |
|
|
6794 | break |
|
|
6795 | fi |
|
|
6796 | done |
|
|
6797 | fi |
|
|
6798 | fi |
|
|
6799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
|
|
6800 | $as_echo "$pt_cv_path_wtmp" >&6; } |
|
|
6801 | if test x$pt_cv_path_wtmp != x; then |
|
|
6802 | |
|
|
6803 | cat >>confdefs.h <<_ACEOF |
|
|
6804 | #define PT_WTMP_FILE "$pt_cv_path_wtmp" |
|
|
6805 | _ACEOF |
|
|
6806 | |
|
|
6807 | elif test "$cross_compiling" = yes; then |
|
|
6808 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5 |
|
|
6809 | $as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;} |
|
|
6810 | fi |
|
|
6811 | |
|
|
6812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5 |
|
|
6813 | $as_echo_n "checking for a fallback location of wtmpx... " >&6; } |
|
|
6814 | if test "${pt_cv_path_wtmpx+set}" = set; then : |
|
|
6815 | $as_echo_n "(cached) " >&6 |
|
|
6816 | else |
|
|
6817 | |
|
|
6818 | if test "$cross_compiling" != yes; then |
|
|
6819 | for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do |
|
|
6820 | if test -f "$file"; then |
|
|
6821 | pt_cv_path_wtmpx=$file |
|
|
6822 | break |
|
|
6823 | fi |
|
|
6824 | done |
|
|
6825 | fi |
|
|
6826 | fi |
|
|
6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
|
|
6828 | $as_echo "$pt_cv_path_wtmpx" >&6; } |
|
|
6829 | if test x$pt_cv_path_wtmpx != x; then |
|
|
6830 | |
|
|
6831 | cat >>confdefs.h <<_ACEOF |
|
|
6832 | #define PT_WTMPX_FILE "$pt_cv_path_wtmpx" |
|
|
6833 | _ACEOF |
|
|
6834 | |
|
|
6835 | elif test "$cross_compiling" = yes; then |
|
|
6836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5 |
|
|
6837 | $as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;} |
|
|
6838 | fi |
|
|
6839 | |
|
|
6840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5 |
|
|
6841 | $as_echo_n "checking for a fallback location of lastlog... " >&6; } |
|
|
6842 | if test "${pt_cv_path_lastlog+set}" = set; then : |
|
|
6843 | $as_echo_n "(cached) " >&6 |
|
|
6844 | else |
|
|
6845 | |
|
|
6846 | if test "$cross_compiling" != yes; then |
|
|
6847 | for file in "/var/log/lastlog" "/var/adm/lastlog"; do |
|
|
6848 | if test -f "$file"; then |
|
|
6849 | pt_cv_path_lastlog=$file |
|
|
6850 | break |
|
|
6851 | fi |
|
|
6852 | done |
|
|
6853 | fi |
|
|
6854 | fi |
|
|
6855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
|
|
6856 | $as_echo "$pt_cv_path_lastlog" >&6; } |
|
|
6857 | if test x$pt_cv_path_lastlog != x; then |
|
|
6858 | |
|
|
6859 | cat >>confdefs.h <<_ACEOF |
|
|
6860 | #define PT_LASTLOG_FILE "$pt_cv_path_lastlog" |
|
|
6861 | _ACEOF |
|
|
6862 | |
|
|
6863 | elif test "$cross_compiling" = yes; then |
|
|
6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5 |
|
|
6865 | $as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;} |
|
|
6866 | fi |
|
|
6867 | |
|
|
6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5 |
|
|
6869 | $as_echo_n "checking for a fallback location of lastlogx... " >&6; } |
|
|
6870 | if test "${pt_cv_path_lastlogx+set}" = set; then : |
|
|
6871 | $as_echo_n "(cached) " >&6 |
|
|
6872 | else |
|
|
6873 | |
|
|
6874 | if test "$cross_compiling" != yes; then |
|
|
6875 | for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do |
|
|
6876 | if test -f "$file"; then |
|
|
6877 | pt_cv_path_lastlogx=$file |
|
|
6878 | break |
|
|
6879 | fi |
|
|
6880 | done |
|
|
6881 | fi |
|
|
6882 | fi |
|
|
6883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
|
|
6884 | $as_echo "$pt_cv_path_lastlogx" >&6; } |
|
|
6885 | if test x$pt_cv_path_lastlogx != x; then |
|
|
6886 | |
|
|
6887 | cat >>confdefs.h <<_ACEOF |
|
|
6888 | #define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx" |
|
|
6889 | _ACEOF |
|
|
6890 | |
|
|
6891 | elif test "$cross_compiling" = yes; then |
|
|
6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5 |
|
|
6893 | $as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;} |
|
|
6894 | fi |
|
|
6895 | |
|
|
6896 | |
|
|
6897 | |
|
|
6898 | |
|
|
6899 | save_LIBS=$LIBS |
|
|
6900 | save_CFLAGS=$CFLAGS |
|
|
6901 | CFLAGS="$CFLAGS $X_CFLAGS" |
|
|
6902 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
6903 | if test x$support_xim = xyes; then |
|
|
6904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5 |
|
|
6905 | $as_echo_n "checking for working Xlocale... " >&6; } |
|
|
6906 | if test "${rxvt_cv_func_xlocale+set}" = set; then : |
|
|
6907 | $as_echo_n "(cached) " >&6 |
|
|
6908 | else |
|
|
6909 | if test "$cross_compiling" = yes; then : |
|
|
6910 | : |
|
|
6911 | else |
|
|
6912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6913 | /* end confdefs.h. */ |
|
|
6914 | |
|
|
6915 | #include <X11/Xlib.h> |
|
|
6916 | #include <stdlib.h> |
|
|
6917 | int main() { |
|
|
6918 | char *p; |
|
|
6919 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
|
|
6920 | exit (XSupportsLocale() ? 0 : 1); |
|
|
6921 | else |
|
|
6922 | exit (1); |
|
|
6923 | } |
|
|
6924 | |
|
|
6925 | _ACEOF |
|
|
6926 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
6927 | rxvt_cv_func_xlocale=yes |
|
|
6928 | else |
|
|
6929 | rxvt_cv_func_xlocale=no |
|
|
6930 | fi |
|
|
6931 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
6932 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
6933 | fi |
|
|
6934 | |
|
|
6935 | fi |
|
|
6936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5 |
|
|
6937 | $as_echo "$rxvt_cv_func_xlocale" >&6; } |
|
|
6938 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
6939 | |
|
|
6940 | $as_echo "#define USE_XIM 1" >>confdefs.h |
|
|
6941 | |
|
|
6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5 |
|
|
6943 | $as_echo_n "checking for broken XIM callback... " >&6; } |
|
|
6944 | if test "${rxvt_cv_broken_ximcb+set}" = set; then : |
|
|
6945 | $as_echo_n "(cached) " >&6 |
|
|
6946 | else |
|
|
6947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6948 | /* end confdefs.h. */ |
|
|
6949 | |
|
|
6950 | #include <X11/Xlib.h> |
|
|
6951 | |
|
|
6952 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
6953 | |
|
|
6954 | void f() { |
|
|
6955 | XIMCallback cb; |
|
|
6956 | cb.callback = im_destroy_cb; |
|
|
6957 | } |
|
|
6958 | |
|
|
6959 | _ACEOF |
|
|
6960 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6961 | rxvt_cv_broken_ximcb=yes |
|
|
6962 | else |
|
|
6963 | rxvt_cv_broken_ximcb=no |
|
|
6964 | fi |
|
|
6965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6966 | fi |
|
|
6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5 |
|
|
6968 | $as_echo "$rxvt_cv_broken_ximcb" >&6; } |
|
|
6969 | |
|
|
6970 | if test x$rxvt_cv_broken_ximcb = xyes; then |
|
|
6971 | |
|
|
6972 | $as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h |
|
|
6973 | |
|
|
6974 | fi |
|
|
6975 | fi |
|
|
6976 | fi |
|
|
6977 | |
|
|
6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5 |
|
|
6979 | $as_echo_n "checking for working X setlocale... " >&6; } |
|
|
6980 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then : |
|
|
6981 | $as_echo_n "(cached) " >&6 |
|
|
6982 | else |
|
|
6983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6984 | /* end confdefs.h. */ |
|
|
6985 | #define X_LOCALE 1 |
|
|
6986 | #include <X11/Xlocale.h> |
|
|
6987 | int |
|
|
6988 | main () |
|
|
6989 | { |
|
|
6990 | setlocale(LC_CTYPE, ""); |
|
|
6991 | ; |
|
|
6992 | return 0; |
|
|
6993 | } |
|
|
6994 | _ACEOF |
|
|
6995 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
6996 | rxvt_cv_func_xsetlocale=yes |
|
|
6997 | else |
|
|
6998 | rxvt_cv_func_xsetlocale=no |
|
|
6999 | fi |
|
|
7000 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7001 | conftest$ac_exeext conftest.$ac_ext |
|
|
7002 | fi |
|
|
7003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5 |
|
|
7004 | $as_echo "$rxvt_cv_func_xsetlocale" >&6; } |
|
|
7005 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
|
|
7006 | |
|
|
7007 | $as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h |
|
|
7008 | |
|
|
7009 | fi |
|
|
7010 | LIBS=$save_LIBS |
|
|
7011 | CFLAGS=$save_CFLAGS |
|
|
7012 | |
|
|
7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5 |
|
|
7014 | $as_echo_n "checking for working nl_langinfo... " >&6; } |
|
|
7015 | if test "${rxvt_cv_func_nl_langinfo+set}" = set; then : |
|
|
7016 | $as_echo_n "(cached) " >&6 |
|
|
7017 | else |
|
|
7018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7019 | /* end confdefs.h. */ |
|
|
7020 | #include <langinfo.h> |
|
|
7021 | int |
|
|
7022 | main () |
|
|
7023 | { |
|
|
7024 | nl_langinfo(CODESET); |
|
|
7025 | ; |
|
|
7026 | return 0; |
|
|
7027 | } |
|
|
7028 | _ACEOF |
|
|
7029 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7030 | rxvt_cv_func_nl_langinfo=yes |
|
|
7031 | else |
|
|
7032 | rxvt_cv_func_nl_langinfo=no |
|
|
7033 | fi |
|
|
7034 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7035 | conftest$ac_exeext conftest.$ac_ext |
|
|
7036 | fi |
|
|
7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5 |
|
|
7038 | $as_echo "$rxvt_cv_func_nl_langinfo" >&6; } |
|
|
7039 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
|
|
7040 | |
|
|
7041 | $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
|
|
7042 | |
|
|
7043 | fi |
|
|
7044 | |
|
|
7045 | |
|
|
7046 | case $host in |
|
|
7047 | *-*-solaris*) |
|
|
7048 | |
|
|
7049 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
7050 | |
|
|
7051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 |
|
|
7052 | $as_echo_n "checking for library containing sendmsg... " >&6; } |
|
|
7053 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7054 | $as_echo_n "(cached) " >&6 |
|
|
7055 | else |
|
|
7056 | ac_func_search_save_LIBS=$LIBS |
|
|
7057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7058 | /* end confdefs.h. */ |
|
|
7059 | |
|
|
7060 | /* Override any GCC internal prototype to avoid an error. |
|
|
7061 | Use char because int might match the return type of a GCC |
|
|
7062 | builtin and then its argument prototype would still apply. */ |
|
|
7063 | #ifdef __cplusplus |
|
|
7064 | extern "C" |
|
|
7065 | #endif |
|
|
7066 | char sendmsg (); |
|
|
7067 | int |
|
|
7068 | main () |
|
|
7069 | { |
|
|
7070 | return sendmsg (); |
|
|
7071 | ; |
|
|
7072 | return 0; |
|
|
7073 | } |
|
|
7074 | _ACEOF |
|
|
7075 | for ac_lib in '' socket; do |
|
|
7076 | if test -z "$ac_lib"; then |
|
|
7077 | ac_res="none required" |
|
|
7078 | else |
|
|
7079 | ac_res=-l$ac_lib |
|
|
7080 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7081 | fi |
|
|
7082 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7083 | ac_cv_search_sendmsg=$ac_res |
|
|
7084 | fi |
|
|
7085 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7086 | conftest$ac_exeext |
|
|
7087 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7088 | break |
|
|
7089 | fi |
|
|
7090 | done |
|
|
7091 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7092 | |
|
|
7093 | else |
|
|
7094 | ac_cv_search_sendmsg=no |
|
|
7095 | fi |
|
|
7096 | rm conftest.$ac_ext |
|
|
7097 | LIBS=$ac_func_search_save_LIBS |
|
|
7098 | fi |
|
|
7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 |
|
|
7100 | $as_echo "$ac_cv_search_sendmsg" >&6; } |
|
|
7101 | ac_res=$ac_cv_search_sendmsg |
|
|
7102 | if test "$ac_res" != no; then : |
|
|
7103 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7104 | |
|
|
7105 | fi |
|
|
7106 | |
|
|
7107 | ;; |
|
|
7108 | esac |
|
|
7109 | |
|
|
7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 |
|
|
7111 | $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; } |
|
|
7112 | if test "${pt_cv_can_pass_fds+set}" = set; then : |
|
|
7113 | $as_echo_n "(cached) " >&6 |
|
|
7114 | else |
|
|
7115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7116 | /* end confdefs.h. */ |
|
|
7117 | |
|
|
7118 | #include <stddef.h> // broken bsds (is that redundant?) need this |
|
|
7119 | #include <sys/types.h> |
|
|
7120 | #include <sys/socket.h> |
|
|
7121 | #include <sys/uio.h> |
|
|
7122 | |
|
|
7123 | int |
|
|
7124 | main () |
|
|
7125 | { |
|
|
7126 | |
|
|
7127 | { |
|
|
7128 | msghdr msg; |
|
|
7129 | iovec iov; |
|
|
7130 | char buf [100]; |
|
|
7131 | char data = 0; |
|
|
7132 | |
|
|
7133 | iov.iov_base = &data; |
|
|
7134 | iov.iov_len = 1; |
|
|
7135 | |
|
|
7136 | msg.msg_iov = &iov; |
|
|
7137 | msg.msg_iovlen = 1; |
|
|
7138 | msg.msg_control = buf; |
|
|
7139 | msg.msg_controllen = sizeof buf; |
|
|
7140 | |
|
|
7141 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
7142 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
7143 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
7144 | cmsg->cmsg_len = 100; |
|
|
7145 | |
|
|
7146 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
7147 | |
|
|
7148 | return sendmsg (3, &msg, 0); |
|
|
7149 | } |
|
|
7150 | |
|
|
7151 | ; |
|
|
7152 | return 0; |
|
|
7153 | } |
|
|
7154 | _ACEOF |
|
|
7155 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7156 | pt_cv_can_pass_fds=yes |
|
|
7157 | else |
|
|
7158 | pt_cv_can_pass_fds=no |
|
|
7159 | fi |
|
|
7160 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7161 | conftest$ac_exeext conftest.$ac_ext |
|
|
7162 | fi |
|
|
7163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5 |
|
|
7164 | $as_echo "$pt_cv_can_pass_fds" >&6; } |
|
|
7165 | if test x$pt_cv_can_pass_fds = xyes; then |
|
|
7166 | |
|
|
7167 | $as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h |
|
|
7168 | |
|
|
7169 | else |
|
|
7170 | as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5 |
|
|
7171 | fi |
|
|
7172 | |
|
|
7173 | |
|
|
7174 | |
|
|
7175 | for ac_header in \ |
|
|
7176 | pty.h \ |
|
|
7177 | util.h \ |
|
|
7178 | libutil.h \ |
|
|
7179 | sys/ioctl.h \ |
|
|
7180 | stropts.h \ |
|
|
7181 | |
|
|
7182 | do : |
|
|
7183 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7184 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
7185 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
7186 | cat >>confdefs.h <<_ACEOF |
|
|
7187 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7188 | _ACEOF |
|
|
7189 | |
|
|
7190 | fi |
|
|
7191 | |
|
|
7192 | done |
|
|
7193 | |
|
|
7194 | |
|
|
7195 | for ac_func in \ |
|
|
7196 | revoke \ |
|
|
7197 | _getpty \ |
|
|
7198 | getpt \ |
|
|
7199 | posix_openpt \ |
|
|
7200 | isastream \ |
|
|
7201 | setuid \ |
|
|
7202 | seteuid \ |
|
|
7203 | setreuid \ |
|
|
7204 | setresuid \ |
|
|
7205 | |
|
|
7206 | do : |
|
|
7207 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
7208 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
7209 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
7210 | cat >>confdefs.h <<_ACEOF |
|
|
7211 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
7212 | _ACEOF |
|
|
7213 | |
|
|
7214 | fi |
|
|
7215 | done |
|
|
7216 | |
|
|
7217 | |
|
|
7218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
|
|
7219 | $as_echo_n "checking for UNIX98 ptys... " >&6; } |
|
|
7220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7221 | /* end confdefs.h. */ |
|
|
7222 | #include <stdlib.h> |
|
|
7223 | int |
|
|
7224 | main () |
|
|
7225 | { |
|
|
7226 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
7227 | ; |
|
|
7228 | return 0; |
|
|
7229 | } |
|
|
7230 | _ACEOF |
|
|
7231 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7232 | unix98_pty=yes |
|
|
7233 | |
|
|
7234 | $as_echo "#define UNIX98_PTY 1" >>confdefs.h |
|
|
7235 | |
|
|
7236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
7237 | $as_echo "yes" >&6; } |
|
|
7238 | else |
|
|
7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7240 | $as_echo "no" >&6; } |
|
|
7241 | fi |
|
|
7242 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7243 | conftest$ac_exeext conftest.$ac_ext |
|
|
7244 | |
|
|
7245 | if test -z "$unix98_pty"; then |
|
|
7246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
|
|
7247 | $as_echo_n "checking for library containing openpty... " >&6; } |
|
|
7248 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7249 | $as_echo_n "(cached) " >&6 |
|
|
7250 | else |
|
|
7251 | ac_func_search_save_LIBS=$LIBS |
|
|
7252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7253 | /* end confdefs.h. */ |
|
|
7254 | |
|
|
7255 | /* Override any GCC internal prototype to avoid an error. |
|
|
7256 | Use char because int might match the return type of a GCC |
|
|
7257 | builtin and then its argument prototype would still apply. */ |
|
|
7258 | #ifdef __cplusplus |
|
|
7259 | extern "C" |
|
|
7260 | #endif |
|
|
7261 | char openpty (); |
|
|
7262 | int |
|
|
7263 | main () |
|
|
7264 | { |
|
|
7265 | return openpty (); |
|
|
7266 | ; |
|
|
7267 | return 0; |
|
|
7268 | } |
|
|
7269 | _ACEOF |
|
|
7270 | for ac_lib in '' util; do |
|
|
7271 | if test -z "$ac_lib"; then |
|
|
7272 | ac_res="none required" |
|
|
7273 | else |
|
|
7274 | ac_res=-l$ac_lib |
|
|
7275 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7276 | fi |
|
|
7277 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7278 | ac_cv_search_openpty=$ac_res |
|
|
7279 | fi |
|
|
7280 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7281 | conftest$ac_exeext |
|
|
7282 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7283 | break |
|
|
7284 | fi |
|
|
7285 | done |
|
|
7286 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7287 | |
|
|
7288 | else |
|
|
7289 | ac_cv_search_openpty=no |
|
|
7290 | fi |
|
|
7291 | rm conftest.$ac_ext |
|
|
7292 | LIBS=$ac_func_search_save_LIBS |
|
|
7293 | fi |
|
|
7294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 |
|
|
7295 | $as_echo "$ac_cv_search_openpty" >&6; } |
|
|
7296 | ac_res=$ac_cv_search_openpty |
|
|
7297 | if test "$ac_res" != no; then : |
|
|
7298 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7299 | |
|
|
7300 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
|
|
7301 | |
|
|
7302 | fi |
|
|
7303 | |
|
|
7304 | fi |
|
|
7305 | |
|
|
7306 | |
|
|
7307 | |
|
|
7308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5 |
|
|
7309 | $as_echo_n "checking for tty group... " >&6; } |
|
|
7310 | if test "${pt_cv_tty_group+set}" = set; then : |
|
|
7311 | $as_echo_n "(cached) " >&6 |
|
|
7312 | else |
|
|
7313 | if test "$cross_compiling" = yes; then : |
|
|
7314 | pt_cv_tty_group=no |
|
|
7315 | else |
|
|
7316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7317 | /* end confdefs.h. */ |
|
|
7318 | |
|
|
7319 | #include <sys/types.h> |
|
|
7320 | #include <sys/stat.h> |
|
|
7321 | #include <unistd.h> |
|
|
7322 | #include <grp.h> |
|
|
7323 | |
|
|
7324 | int main() |
|
|
7325 | { |
|
|
7326 | struct stat st; |
|
|
7327 | struct group *gr; |
|
|
7328 | char *tty; |
|
|
7329 | gr = getgrnam("tty"); |
|
|
7330 | tty = ttyname(0); |
|
|
7331 | if (gr != 0 |
|
|
7332 | && tty != 0 |
|
|
7333 | && (stat(tty, &st)) == 0 |
|
|
7334 | && st.st_gid == gr->gr_gid) |
|
|
7335 | return 0; |
|
|
7336 | else |
|
|
7337 | return 1; |
|
|
7338 | } |
|
|
7339 | _ACEOF |
|
|
7340 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7341 | pt_cv_tty_group=yes |
|
|
7342 | else |
|
|
7343 | pt_cv_tty_group=no |
|
|
7344 | fi |
|
|
7345 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7346 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7347 | fi |
|
|
7348 | |
|
|
7349 | fi |
|
|
7350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5 |
|
|
7351 | $as_echo "$pt_cv_tty_group" >&6; } |
|
|
7352 | if test x$pt_cv_tty_group = xyes; then |
|
|
7353 | |
|
|
7354 | $as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h |
|
|
7355 | |
|
|
7356 | fi |
|
|
7357 | |
|
|
7358 | support_image=no |
|
|
7359 | if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then |
|
|
7360 | support_image=yes |
|
|
7361 | fi |
|
|
7362 | if test x$support_xft = xyes || test x$support_image = xyes; then |
|
|
7363 | rxvt_have_xrender=no |
6352 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7364 | # Extract the first word of "pkg-config", so it can be a program name with args. |
6353 | set dummy pkg-config; ac_word=$2 |
7365 | set dummy pkg-config; ac_word=$2 |
6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6355 | $as_echo_n "checking for $ac_word... " >&6; } |
7367 | $as_echo_n "checking for $ac_word... " >&6; } |
6356 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
7368 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
… | |
… | |
6388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6389 | $as_echo "no" >&6; } |
7401 | $as_echo "no" >&6; } |
6390 | fi |
7402 | fi |
6391 | |
7403 | |
6392 | |
7404 | |
6393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5 |
|
|
6394 | $as_echo_n "checking for libstartup-notification... " >&6; } |
|
|
6395 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then |
7405 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
6396 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" |
7406 | X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" |
6397 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" |
7407 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" |
6398 | support_startup_notification=yes |
7408 | rxvt_have_xrender=yes |
6399 | fi |
|
|
6400 | |
7409 | |
6401 | if test x$support_startup_notification = xyes; then |
|
|
6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
6403 | $as_echo "ok" >&6; } |
|
|
6404 | |
|
|
6405 | $as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h |
|
|
6406 | |
|
|
6407 | else |
|
|
6408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6409 | $as_echo "no" >&6; } |
|
|
6410 | fi |
|
|
6411 | fi |
|
|
6412 | |
|
|
6413 | |
|
|
6414 | |
|
|
6415 | |
|
|
6416 | AFTERIMAGE_CFLAGS= |
|
|
6417 | AFTERIMAGE_LIBS= |
|
|
6418 | |
|
|
6419 | if test x$support_afterimage = xyes; then |
|
|
6420 | support_afterimage=no |
|
|
6421 | |
|
|
6422 | if test "x$afterimage_config" = "x" ; then |
|
|
6423 | # Extract the first word of "afterimage-config", so it can be a program name with args. |
|
|
6424 | set dummy afterimage-config; ac_word=$2 |
|
|
6425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
6426 | $as_echo_n "checking for $ac_word... " >&6; } |
|
|
6427 | if test "${ac_cv_path_afterimage_config+set}" = set; then : |
|
|
6428 | $as_echo_n "(cached) " >&6 |
|
|
6429 | else |
|
|
6430 | case $afterimage_config in |
|
|
6431 | [\\/]* | ?:[\\/]*) |
|
|
6432 | ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path. |
|
|
6433 | ;; |
|
|
6434 | *) |
|
|
6435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
6436 | for as_dir in $PATH |
|
|
6437 | do |
|
|
6438 | IFS=$as_save_IFS |
|
|
6439 | test -z "$as_dir" && as_dir=. |
|
|
6440 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
6441 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
6442 | ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext" |
|
|
6443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
6444 | break 2 |
|
|
6445 | fi |
|
|
6446 | done |
|
|
6447 | done |
|
|
6448 | IFS=$as_save_IFS |
|
|
6449 | |
|
|
6450 | test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no" |
|
|
6451 | ;; |
|
|
6452 | esac |
|
|
6453 | fi |
|
|
6454 | afterimage_config=$ac_cv_path_afterimage_config |
|
|
6455 | if test -n "$afterimage_config"; then |
|
|
6456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afterimage_config" >&5 |
|
|
6457 | $as_echo "$afterimage_config" >&6; } |
|
|
6458 | else |
|
|
6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6460 | $as_echo "no" >&6; } |
|
|
6461 | fi |
|
|
6462 | |
|
|
6463 | |
|
|
6464 | fi |
|
|
6465 | if test "x$afterimage_config" != "xno" ; then |
|
|
6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5 |
|
|
6467 | $as_echo_n "checking for libAfterImage version >= 1.15... " >&6; } |
|
|
6468 | AFTERIMAGE_VERSION=`$afterimage_config --version` |
|
|
6469 | if test -n "$AFTERIMAGE_VERSION" ; then |
|
|
6470 | AFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
|
|
6471 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
|
|
6472 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
|
|
6473 | libai_ver_major=`echo $AFTERIMAGE_VERSION | cut -f 1 -d .` |
|
|
6474 | libai_ver_minor=`echo $AFTERIMAGE_VERSION | cut -f 2 -d .` |
|
|
6475 | if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
|
|
6476 | support_afterimage=yes |
|
|
6477 | fi |
|
|
6478 | fi |
|
|
6479 | fi |
|
|
6480 | if test "x$support_afterimage" = "xyes"; then |
|
|
6481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5 |
|
|
6482 | $as_echo "$AFTERIMAGE_LIBS" >&6; } |
|
|
6483 | image_lib=libafterimage |
|
|
6484 | |
|
|
6485 | $as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h |
|
|
6486 | |
|
|
6487 | |
|
|
6488 | $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h |
|
|
6489 | |
|
|
6490 | else |
|
|
6491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6492 | $as_echo "no" >&6; } |
|
|
6493 | AFTERIMAGE_CFLAGS= |
|
|
6494 | AFTERIMAGE_LIBS= |
|
|
6495 | fi |
|
|
6496 | fi |
|
|
6497 | fi |
|
|
6498 | |
|
|
6499 | |
|
|
6500 | |
|
|
6501 | |
|
|
6502 | for ac_header in \ |
|
|
6503 | sys/byteorder.h \ |
|
|
6504 | sys/ioctl.h \ |
|
|
6505 | sys/sockio.h \ |
|
|
6506 | sys/strredir.h \ |
|
|
6507 | stdint.h \ |
|
|
6508 | wchar.h \ |
|
|
6509 | |
|
|
6510 | do : |
|
|
6511 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
6512 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
6513 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
6514 | cat >>confdefs.h <<_ACEOF |
|
|
6515 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
6516 | _ACEOF |
|
|
6517 | |
|
|
6518 | fi |
|
|
6519 | |
|
|
6520 | done |
|
|
6521 | |
|
|
6522 | |
|
|
6523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5 |
|
|
6524 | $as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; } |
|
|
6525 | if test "${rxvt_cv_xlib_illegal_access+set}" = set; then : |
|
|
6526 | $as_echo_n "(cached) " >&6 |
|
|
6527 | else |
|
|
6528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6529 | /* end confdefs.h. */ |
|
|
6530 | |
|
|
6531 | #define XLIB_ILLEGAL_ACCESS |
|
|
6532 | #include <X11/Xlib.h> |
|
|
6533 | |
|
|
6534 | int |
|
|
6535 | main () |
|
|
6536 | { |
|
|
6537 | |
|
|
6538 | Display *dpy; |
|
|
6539 | dpy->xdefaults = (char *)0; |
|
|
6540 | |
|
|
6541 | ; |
|
|
6542 | return 0; |
|
|
6543 | } |
|
|
6544 | _ACEOF |
|
|
6545 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6546 | rxvt_cv_xlib_illegal_access=yes |
|
|
6547 | else |
|
|
6548 | rxvt_cv_xlib_illegal_access=no |
|
|
6549 | |
|
|
6550 | fi |
|
|
6551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6552 | fi |
|
|
6553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5 |
|
|
6554 | $as_echo "$rxvt_cv_xlib_illegal_access" >&6; } |
|
|
6555 | if test x$rxvt_cv_xlib_illegal_access = xyes; then |
|
|
6556 | |
|
|
6557 | $as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h |
|
|
6558 | |
|
|
6559 | fi |
|
|
6560 | |
|
|
6561 | ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
|
|
6562 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
|
|
6563 | |
|
|
6564 | else |
|
|
6565 | |
|
|
6566 | cat >>confdefs.h <<_ACEOF |
|
|
6567 | #define mode_t int |
|
|
6568 | _ACEOF |
|
|
6569 | |
|
|
6570 | fi |
|
|
6571 | |
|
|
6572 | ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
|
|
6573 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
|
|
6574 | |
|
|
6575 | else |
|
|
6576 | |
|
|
6577 | cat >>confdefs.h <<_ACEOF |
|
|
6578 | #define pid_t int |
|
|
6579 | _ACEOF |
|
|
6580 | |
|
|
6581 | fi |
|
|
6582 | |
|
|
6583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
|
|
6584 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
|
|
6585 | if test "${ac_cv_type_uid_t+set}" = set; then : |
|
|
6586 | $as_echo_n "(cached) " >&6 |
|
|
6587 | else |
|
|
6588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6589 | /* end confdefs.h. */ |
|
|
6590 | #include <sys/types.h> |
|
|
6591 | |
|
|
6592 | _ACEOF |
|
|
6593 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6594 | $EGREP "uid_t" >/dev/null 2>&1; then : |
|
|
6595 | ac_cv_type_uid_t=yes |
|
|
6596 | else |
|
|
6597 | ac_cv_type_uid_t=no |
|
|
6598 | fi |
|
|
6599 | rm -f conftest* |
|
|
6600 | |
|
|
6601 | fi |
|
|
6602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
|
|
6603 | $as_echo "$ac_cv_type_uid_t" >&6; } |
|
|
6604 | if test $ac_cv_type_uid_t = no; then |
|
|
6605 | |
|
|
6606 | $as_echo "#define uid_t int" >>confdefs.h |
|
|
6607 | |
|
|
6608 | |
|
|
6609 | $as_echo "#define gid_t int" >>confdefs.h |
|
|
6610 | |
|
|
6611 | fi |
|
|
6612 | |
|
|
6613 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
|
|
6614 | case $ac_cv_c_int16_t in #( |
|
|
6615 | no|yes) ;; #( |
|
|
6616 | *) |
|
|
6617 | |
|
|
6618 | cat >>confdefs.h <<_ACEOF |
|
|
6619 | #define int16_t $ac_cv_c_int16_t |
|
|
6620 | _ACEOF |
|
|
6621 | ;; |
|
|
6622 | esac |
|
|
6623 | |
|
|
6624 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
|
|
6625 | case $ac_cv_c_uint16_t in #( |
|
|
6626 | no|yes) ;; #( |
|
|
6627 | *) |
|
|
6628 | |
|
|
6629 | |
|
|
6630 | cat >>confdefs.h <<_ACEOF |
|
|
6631 | #define uint16_t $ac_cv_c_uint16_t |
|
|
6632 | _ACEOF |
|
|
6633 | ;; |
|
|
6634 | esac |
|
|
6635 | |
|
|
6636 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
|
|
6637 | case $ac_cv_c_int32_t in #( |
|
|
6638 | no|yes) ;; #( |
|
|
6639 | *) |
|
|
6640 | |
|
|
6641 | cat >>confdefs.h <<_ACEOF |
|
|
6642 | #define int32_t $ac_cv_c_int32_t |
|
|
6643 | _ACEOF |
|
|
6644 | ;; |
|
|
6645 | esac |
|
|
6646 | |
|
|
6647 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
|
|
6648 | case $ac_cv_c_uint32_t in #( |
|
|
6649 | no|yes) ;; #( |
|
|
6650 | *) |
|
|
6651 | |
|
|
6652 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
|
|
6653 | |
|
|
6654 | |
|
|
6655 | cat >>confdefs.h <<_ACEOF |
|
|
6656 | #define uint32_t $ac_cv_c_uint32_t |
|
|
6657 | _ACEOF |
|
|
6658 | ;; |
|
|
6659 | esac |
|
|
6660 | |
|
|
6661 | |
|
|
6662 | for ac_func in unsetenv |
|
|
6663 | do : |
|
|
6664 | ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
|
|
6665 | if test "x$ac_cv_func_unsetenv" = x""yes; then : |
|
|
6666 | cat >>confdefs.h <<_ACEOF |
|
|
6667 | #define HAVE_UNSETENV 1 |
|
|
6668 | _ACEOF |
|
|
6669 | |
|
|
6670 | fi |
|
|
6671 | done |
|
|
6672 | |
|
|
6673 | |
|
|
6674 | |
|
|
6675 | support_utmp=yes |
|
|
6676 | support_wtmp=yes |
|
|
6677 | support_lastlog=yes |
|
|
6678 | |
|
|
6679 | # Check whether --enable-utmp was given. |
|
|
6680 | if test "${enable_utmp+set}" = set; then : |
|
|
6681 | enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6682 | support_utmp=$enableval |
|
|
6683 | fi |
|
|
6684 | fi |
|
|
6685 | |
|
|
6686 | |
|
|
6687 | # Check whether --enable-wtmp was given. |
|
|
6688 | if test "${enable_wtmp+set}" = set; then : |
|
|
6689 | enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6690 | support_wtmp=$enableval |
|
|
6691 | fi |
|
|
6692 | fi |
|
|
6693 | |
|
|
6694 | |
|
|
6695 | # Check whether --enable-lastlog was given. |
|
|
6696 | if test "${enable_lastlog+set}" = set; then : |
|
|
6697 | enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6698 | support_lastlog=$enableval |
|
|
6699 | fi |
|
|
6700 | fi |
|
|
6701 | |
|
|
6702 | |
|
|
6703 | if test x$support_utmp = xyes; then |
|
|
6704 | |
|
|
6705 | $as_echo "#define UTMP_SUPPORT 1" >>confdefs.h |
|
|
6706 | |
|
|
6707 | fi |
|
|
6708 | if test x$support_wtmp = xyes; then |
|
|
6709 | |
|
|
6710 | $as_echo "#define WTMP_SUPPORT 1" >>confdefs.h |
|
|
6711 | |
|
|
6712 | fi |
|
|
6713 | if test x$support_lastlog = xyes; then |
|
|
6714 | |
|
|
6715 | $as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h |
|
|
6716 | |
|
|
6717 | fi |
|
|
6718 | |
|
|
6719 | for ac_func in \ |
|
|
6720 | updwtmp \ |
|
|
6721 | updwtmpx \ |
|
|
6722 | updlastlogx \ |
|
|
6723 | |
|
|
6724 | do : |
|
|
6725 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6726 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
6727 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
6728 | cat >>confdefs.h <<_ACEOF |
|
|
6729 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6730 | _ACEOF |
|
|
6731 | |
|
|
6732 | fi |
|
|
6733 | done |
|
|
6734 | |
|
|
6735 | |
|
|
6736 | for ac_header in lastlog.h |
|
|
6737 | do : |
|
|
6738 | ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default" |
|
|
6739 | if test "x$ac_cv_header_lastlog_h" = x""yes; then : |
|
|
6740 | cat >>confdefs.h <<_ACEOF |
|
|
6741 | #define HAVE_LASTLOG_H 1 |
|
|
6742 | _ACEOF |
|
|
6743 | |
|
|
6744 | fi |
|
|
6745 | |
|
|
6746 | done |
|
|
6747 | |
|
|
6748 | |
|
|
6749 | case $host in |
|
|
6750 | *-*-solaris*) |
|
|
6751 | |
|
|
6752 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
|
|
6753 | |
|
|
6754 | ;; |
|
|
6755 | esac |
|
|
6756 | |
|
|
6757 | |
|
|
6758 | for ac_header in utmp.h |
|
|
6759 | do : |
|
|
6760 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" |
|
|
6761 | if test "x$ac_cv_header_utmp_h" = x""yes; then : |
|
|
6762 | cat >>confdefs.h <<_ACEOF |
|
|
6763 | #define HAVE_UTMP_H 1 |
|
|
6764 | _ACEOF |
|
|
6765 | ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" " |
|
|
6766 | #include <sys/types.h> |
|
|
6767 | #include <utmp.h> |
|
|
6768 | |
|
|
6769 | " |
|
|
6770 | if test "x$ac_cv_type_struct_utmp" = x""yes; then : |
|
|
6771 | |
|
|
6772 | cat >>confdefs.h <<_ACEOF |
|
|
6773 | #define HAVE_STRUCT_UTMP 1 |
|
|
6774 | _ACEOF |
|
|
6775 | |
|
|
6776 | |
|
|
6777 | fi |
|
|
6778 | |
|
|
6779 | |
|
|
6780 | |
|
|
6781 | # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES |
|
|
6782 | # ------------------------------------------------------ |
|
|
6783 | # Tries to find if the field MEMBER exists in type AGGR, after including |
|
|
6784 | # INCLUDES, setting cache variable VAR accordingly. |
|
|
6785 | ac_fn_cxx_check_member () |
|
|
6786 | { |
|
|
6787 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
6788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
|
|
6789 | $as_echo_n "checking for $2.$3... " >&6; } |
|
|
6790 | if eval "test \"\${$4+set}\"" = set; then : |
|
|
6791 | $as_echo_n "(cached) " >&6 |
|
|
6792 | else |
|
|
6793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6794 | /* end confdefs.h. */ |
|
|
6795 | $5 |
|
|
6796 | int |
|
|
6797 | main () |
|
|
6798 | { |
|
|
6799 | static $2 ac_aggr; |
|
|
6800 | if (ac_aggr.$3) |
|
|
6801 | return 0; |
|
|
6802 | ; |
|
|
6803 | return 0; |
|
|
6804 | } |
|
|
6805 | _ACEOF |
|
|
6806 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6807 | eval "$4=yes" |
|
|
6808 | else |
|
|
6809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6810 | /* end confdefs.h. */ |
|
|
6811 | $5 |
|
|
6812 | int |
|
|
6813 | main () |
|
|
6814 | { |
|
|
6815 | static $2 ac_aggr; |
|
|
6816 | if (sizeof ac_aggr.$3) |
|
|
6817 | return 0; |
|
|
6818 | ; |
|
|
6819 | return 0; |
|
|
6820 | } |
|
|
6821 | _ACEOF |
|
|
6822 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6823 | eval "$4=yes" |
|
|
6824 | else |
|
|
6825 | eval "$4=no" |
|
|
6826 | fi |
|
|
6827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6828 | fi |
|
|
6829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6830 | fi |
|
|
6831 | eval ac_res=\$$4 |
|
|
6832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
6833 | $as_echo "$ac_res" >&6; } |
|
|
6834 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
|
6835 | |
|
|
6836 | } # ac_fn_cxx_check_member |
|
|
6837 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " |
|
|
6838 | #include <sys/types.h> |
|
|
6839 | #include <utmp.h> |
|
|
6840 | |
|
|
6841 | " |
|
|
6842 | if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then : |
|
|
6843 | |
|
|
6844 | $as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h |
|
|
6845 | |
|
|
6846 | fi |
|
|
6847 | |
|
|
6848 | |
|
|
6849 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " |
|
|
6850 | #include <sys/types.h> |
|
|
6851 | #include <utmp.h> |
|
|
6852 | |
|
|
6853 | " |
|
|
6854 | if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then : |
|
|
6855 | |
|
|
6856 | $as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h |
|
|
6857 | |
|
|
6858 | fi |
|
|
6859 | |
|
|
6860 | |
|
|
6861 | fi |
|
|
6862 | |
|
|
6863 | done |
|
|
6864 | |
|
|
6865 | |
|
|
6866 | for ac_header in utmpx.h |
|
|
6867 | do : |
|
|
6868 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" |
|
|
6869 | if test "x$ac_cv_header_utmpx_h" = x""yes; then : |
|
|
6870 | cat >>confdefs.h <<_ACEOF |
|
|
6871 | #define HAVE_UTMPX_H 1 |
|
|
6872 | _ACEOF |
|
|
6873 | ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" " |
|
|
6874 | #include <sys/types.h> |
|
|
6875 | #include <utmpx.h> |
|
|
6876 | |
|
|
6877 | " |
|
|
6878 | if test "x$ac_cv_type_struct_utmpx" = x""yes; then : |
|
|
6879 | |
|
|
6880 | cat >>confdefs.h <<_ACEOF |
|
|
6881 | #define HAVE_STRUCT_UTMPX 1 |
|
|
6882 | _ACEOF |
|
|
6883 | |
|
|
6884 | |
|
|
6885 | fi |
|
|
6886 | |
|
|
6887 | |
|
|
6888 | ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" " |
|
|
6889 | #include <sys/types.h> |
|
|
6890 | #include <utmpx.h> |
|
|
6891 | |
|
|
6892 | " |
|
|
6893 | if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then : |
|
|
6894 | |
|
|
6895 | $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h |
|
|
6896 | |
|
|
6897 | fi |
|
|
6898 | |
|
|
6899 | |
|
|
6900 | fi |
|
|
6901 | |
|
|
6902 | done |
|
|
6903 | |
|
|
6904 | ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " |
|
|
6905 | #include <sys/types.h> |
|
|
6906 | #include <utmp.h> |
|
|
6907 | #ifdef HAVE_LASTLOG_H |
|
|
6908 | #include <lastlog.h> |
|
|
6909 | #endif |
|
|
6910 | |
|
|
6911 | " |
|
|
6912 | if test "x$ac_cv_type_struct_lastlog" = x""yes; then : |
|
|
6913 | |
|
|
6914 | cat >>confdefs.h <<_ACEOF |
|
|
6915 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
6916 | _ACEOF |
|
|
6917 | |
|
|
6918 | |
|
|
6919 | fi |
|
|
6920 | |
|
|
6921 | |
|
|
6922 | ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" " |
|
|
6923 | #include <sys/types.h> |
|
|
6924 | #include <utmpx.h> |
|
|
6925 | #ifdef HAVE_LASTLOG_H |
|
|
6926 | #include <lastlog.h> |
|
|
6927 | #endif |
|
|
6928 | |
|
|
6929 | " |
|
|
6930 | if test "x$ac_cv_type_struct_lastlogx" = x""yes; then : |
|
|
6931 | |
|
|
6932 | cat >>confdefs.h <<_ACEOF |
|
|
6933 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
6934 | _ACEOF |
|
|
6935 | |
|
|
6936 | |
|
|
6937 | fi |
|
|
6938 | |
|
|
6939 | |
|
|
6940 | |
|
|
6941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5 |
|
|
6942 | $as_echo_n "checking for a fallback location of utmp... " >&6; } |
|
|
6943 | if test "${pt_cv_path_utmp+set}" = set; then : |
|
|
6944 | $as_echo_n "(cached) " >&6 |
|
|
6945 | else |
|
|
6946 | |
|
|
6947 | if test "$cross_compiling" != yes; then |
|
|
6948 | for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do |
|
|
6949 | if test -f "$file"; then |
|
|
6950 | pt_cv_path_utmp=$file |
|
|
6951 | break |
|
|
6952 | fi |
|
|
6953 | done |
|
|
6954 | fi |
|
|
6955 | fi |
|
|
6956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
|
|
6957 | $as_echo "$pt_cv_path_utmp" >&6; } |
|
|
6958 | if test x$pt_cv_path_utmp != x; then |
|
|
6959 | |
|
|
6960 | cat >>confdefs.h <<_ACEOF |
|
|
6961 | #define PT_UTMP_FILE "$pt_cv_path_utmp" |
|
|
6962 | _ACEOF |
|
|
6963 | |
|
|
6964 | elif test "$cross_compiling" = yes; then |
|
|
6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5 |
|
|
6966 | $as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;} |
|
|
6967 | fi |
|
|
6968 | |
|
|
6969 | |
|
|
6970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5 |
|
|
6971 | $as_echo_n "checking for a fallback location of wtmp... " >&6; } |
|
|
6972 | if test "${pt_cv_path_wtmp+set}" = set; then : |
|
|
6973 | $as_echo_n "(cached) " >&6 |
|
|
6974 | else |
|
|
6975 | |
|
|
6976 | if test "$cross_compiling" != yes; then |
|
|
6977 | for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do |
|
|
6978 | if test -f "$file"; then |
|
|
6979 | pt_cv_path_wtmp=$file |
|
|
6980 | break |
|
|
6981 | fi |
|
|
6982 | done |
|
|
6983 | fi |
|
|
6984 | fi |
|
|
6985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
|
|
6986 | $as_echo "$pt_cv_path_wtmp" >&6; } |
|
|
6987 | if test x$pt_cv_path_wtmp != x; then |
|
|
6988 | |
|
|
6989 | cat >>confdefs.h <<_ACEOF |
|
|
6990 | #define PT_WTMP_FILE "$pt_cv_path_wtmp" |
|
|
6991 | _ACEOF |
|
|
6992 | |
|
|
6993 | elif test "$cross_compiling" = yes; then |
|
|
6994 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5 |
|
|
6995 | $as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;} |
|
|
6996 | fi |
|
|
6997 | |
|
|
6998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5 |
|
|
6999 | $as_echo_n "checking for a fallback location of wtmpx... " >&6; } |
|
|
7000 | if test "${pt_cv_path_wtmpx+set}" = set; then : |
|
|
7001 | $as_echo_n "(cached) " >&6 |
|
|
7002 | else |
|
|
7003 | |
|
|
7004 | if test "$cross_compiling" != yes; then |
|
|
7005 | for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do |
|
|
7006 | if test -f "$file"; then |
|
|
7007 | pt_cv_path_wtmpx=$file |
|
|
7008 | break |
|
|
7009 | fi |
|
|
7010 | done |
|
|
7011 | fi |
|
|
7012 | fi |
|
|
7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
|
|
7014 | $as_echo "$pt_cv_path_wtmpx" >&6; } |
|
|
7015 | if test x$pt_cv_path_wtmpx != x; then |
|
|
7016 | |
|
|
7017 | cat >>confdefs.h <<_ACEOF |
|
|
7018 | #define PT_WTMPX_FILE "$pt_cv_path_wtmpx" |
|
|
7019 | _ACEOF |
|
|
7020 | |
|
|
7021 | elif test "$cross_compiling" = yes; then |
|
|
7022 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5 |
|
|
7023 | $as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;} |
|
|
7024 | fi |
|
|
7025 | |
|
|
7026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5 |
|
|
7027 | $as_echo_n "checking for a fallback location of lastlog... " >&6; } |
|
|
7028 | if test "${pt_cv_path_lastlog+set}" = set; then : |
|
|
7029 | $as_echo_n "(cached) " >&6 |
|
|
7030 | else |
|
|
7031 | |
|
|
7032 | if test "$cross_compiling" != yes; then |
|
|
7033 | for file in "/var/log/lastlog" "/var/adm/lastlog"; do |
|
|
7034 | if test -f "$file"; then |
|
|
7035 | pt_cv_path_lastlog=$file |
|
|
7036 | break |
|
|
7037 | fi |
|
|
7038 | done |
|
|
7039 | fi |
|
|
7040 | fi |
|
|
7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
|
|
7042 | $as_echo "$pt_cv_path_lastlog" >&6; } |
|
|
7043 | if test x$pt_cv_path_lastlog != x; then |
|
|
7044 | |
|
|
7045 | cat >>confdefs.h <<_ACEOF |
|
|
7046 | #define PT_LASTLOG_FILE "$pt_cv_path_lastlog" |
|
|
7047 | _ACEOF |
|
|
7048 | |
|
|
7049 | elif test "$cross_compiling" = yes; then |
|
|
7050 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5 |
|
|
7051 | $as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;} |
|
|
7052 | fi |
|
|
7053 | |
|
|
7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5 |
|
|
7055 | $as_echo_n "checking for a fallback location of lastlogx... " >&6; } |
|
|
7056 | if test "${pt_cv_path_lastlogx+set}" = set; then : |
|
|
7057 | $as_echo_n "(cached) " >&6 |
|
|
7058 | else |
|
|
7059 | |
|
|
7060 | if test "$cross_compiling" != yes; then |
|
|
7061 | for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do |
|
|
7062 | if test -f "$file"; then |
|
|
7063 | pt_cv_path_lastlogx=$file |
|
|
7064 | break |
|
|
7065 | fi |
|
|
7066 | done |
|
|
7067 | fi |
|
|
7068 | fi |
|
|
7069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
|
|
7070 | $as_echo "$pt_cv_path_lastlogx" >&6; } |
|
|
7071 | if test x$pt_cv_path_lastlogx != x; then |
|
|
7072 | |
|
|
7073 | cat >>confdefs.h <<_ACEOF |
|
|
7074 | #define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx" |
|
|
7075 | _ACEOF |
|
|
7076 | |
|
|
7077 | elif test "$cross_compiling" = yes; then |
|
|
7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5 |
|
|
7079 | $as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;} |
|
|
7080 | fi |
|
|
7081 | |
|
|
7082 | |
|
|
7083 | |
|
|
7084 | |
|
|
7085 | save_LIBS=$LIBS |
7410 | save_LIBS="$LIBS" |
7086 | save_CFLAGS=$CFLAGS |
7411 | LIBS="$LIBS $X_LIBS" |
7087 | CFLAGS="$CFLAGS $X_CFLAGS" |
7412 | ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default" |
7088 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
7413 | if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then : |
7089 | if test x$support_xim = xyes; then |
|
|
7090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5 |
|
|
7091 | $as_echo_n "checking for working Xlocale... " >&6; } |
|
|
7092 | if test "${rxvt_cv_func_xlocale+set}" = set; then : |
|
|
7093 | $as_echo_n "(cached) " >&6 |
|
|
7094 | else |
|
|
7095 | if test "$cross_compiling" = yes; then : |
|
|
7096 | : |
|
|
7097 | else |
|
|
7098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7099 | /* end confdefs.h. */ |
|
|
7100 | |
7414 | |
7101 | #include <X11/Xlib.h> |
|
|
7102 | #include <stdlib.h> |
|
|
7103 | int main() { |
|
|
7104 | char *p; |
|
|
7105 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
|
|
7106 | exit (XSupportsLocale() ? 0 : 1); |
|
|
7107 | else |
|
|
7108 | exit (1); |
|
|
7109 | } |
|
|
7110 | |
|
|
7111 | _ACEOF |
|
|
7112 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7113 | rxvt_cv_func_xlocale=yes |
|
|
7114 | else |
|
|
7115 | rxvt_cv_func_xlocale=no |
|
|
7116 | fi |
|
|
7117 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7118 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7119 | fi |
|
|
7120 | |
|
|
7121 | fi |
|
|
7122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5 |
|
|
7123 | $as_echo "$rxvt_cv_func_xlocale" >&6; } |
|
|
7124 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
7125 | |
|
|
7126 | $as_echo "#define USE_XIM 1" >>confdefs.h |
|
|
7127 | |
|
|
7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5 |
|
|
7129 | $as_echo_n "checking for broken XIM callback... " >&6; } |
|
|
7130 | if test "${rxvt_cv_broken_ximcb+set}" = set; then : |
|
|
7131 | $as_echo_n "(cached) " >&6 |
|
|
7132 | else |
|
|
7133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7134 | /* end confdefs.h. */ |
|
|
7135 | |
|
|
7136 | #include <X11/Xlib.h> |
|
|
7137 | |
|
|
7138 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
7139 | |
|
|
7140 | void f() { |
|
|
7141 | XIMCallback cb; |
|
|
7142 | cb.callback = im_destroy_cb; |
|
|
7143 | } |
|
|
7144 | |
|
|
7145 | _ACEOF |
|
|
7146 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
7147 | rxvt_cv_broken_ximcb=yes |
|
|
7148 | else |
|
|
7149 | rxvt_cv_broken_ximcb=no |
|
|
7150 | fi |
|
|
7151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7152 | fi |
|
|
7153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5 |
|
|
7154 | $as_echo "$rxvt_cv_broken_ximcb" >&6; } |
|
|
7155 | |
|
|
7156 | if test x$rxvt_cv_broken_ximcb = xyes; then |
|
|
7157 | |
|
|
7158 | $as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h |
|
|
7159 | |
|
|
7160 | fi |
|
|
7161 | fi |
|
|
7162 | fi |
|
|
7163 | |
|
|
7164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5 |
|
|
7165 | $as_echo_n "checking for working X setlocale... " >&6; } |
|
|
7166 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then : |
|
|
7167 | $as_echo_n "(cached) " >&6 |
|
|
7168 | else |
|
|
7169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7170 | /* end confdefs.h. */ |
|
|
7171 | #define X_LOCALE 1 |
|
|
7172 | #include <X11/Xlocale.h> |
|
|
7173 | int |
|
|
7174 | main () |
|
|
7175 | { |
|
|
7176 | setlocale(LC_CTYPE, ""); |
|
|
7177 | ; |
|
|
7178 | return 0; |
|
|
7179 | } |
|
|
7180 | _ACEOF |
|
|
7181 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7182 | rxvt_cv_func_xsetlocale=yes |
|
|
7183 | else |
|
|
7184 | rxvt_cv_func_xsetlocale=no |
|
|
7185 | fi |
|
|
7186 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7187 | conftest$ac_exeext conftest.$ac_ext |
|
|
7188 | fi |
|
|
7189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5 |
|
|
7190 | $as_echo "$rxvt_cv_func_xsetlocale" >&6; } |
|
|
7191 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
|
|
7192 | |
|
|
7193 | $as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h |
|
|
7194 | |
|
|
7195 | fi |
|
|
7196 | LIBS=$save_LIBS |
|
|
7197 | CFLAGS=$save_CFLAGS |
|
|
7198 | |
|
|
7199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5 |
|
|
7200 | $as_echo_n "checking for working nl_langinfo... " >&6; } |
|
|
7201 | if test "${rxvt_cv_func_nl_langinfo+set}" = set; then : |
|
|
7202 | $as_echo_n "(cached) " >&6 |
|
|
7203 | else |
|
|
7204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7205 | /* end confdefs.h. */ |
|
|
7206 | #include <langinfo.h> |
|
|
7207 | int |
|
|
7208 | main () |
|
|
7209 | { |
|
|
7210 | nl_langinfo(CODESET); |
|
|
7211 | ; |
|
|
7212 | return 0; |
|
|
7213 | } |
|
|
7214 | _ACEOF |
|
|
7215 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7216 | rxvt_cv_func_nl_langinfo=yes |
|
|
7217 | else |
|
|
7218 | rxvt_cv_func_nl_langinfo=no |
|
|
7219 | fi |
|
|
7220 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7221 | conftest$ac_exeext conftest.$ac_ext |
|
|
7222 | fi |
|
|
7223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5 |
|
|
7224 | $as_echo "$rxvt_cv_func_nl_langinfo" >&6; } |
|
|
7225 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
|
|
7226 | |
|
|
7227 | $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
|
|
7228 | |
|
|
7229 | fi |
|
|
7230 | |
|
|
7231 | |
|
|
7232 | case $host in |
|
|
7233 | *-*-solaris*) |
|
|
7234 | |
|
|
7235 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
7236 | |
|
|
7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 |
|
|
7238 | $as_echo_n "checking for library containing sendmsg... " >&6; } |
|
|
7239 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7240 | $as_echo_n "(cached) " >&6 |
|
|
7241 | else |
|
|
7242 | ac_func_search_save_LIBS=$LIBS |
|
|
7243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7244 | /* end confdefs.h. */ |
|
|
7245 | |
|
|
7246 | /* Override any GCC internal prototype to avoid an error. |
|
|
7247 | Use char because int might match the return type of a GCC |
|
|
7248 | builtin and then its argument prototype would still apply. */ |
|
|
7249 | #ifdef __cplusplus |
|
|
7250 | extern "C" |
|
|
7251 | #endif |
|
|
7252 | char sendmsg (); |
|
|
7253 | int |
|
|
7254 | main () |
|
|
7255 | { |
|
|
7256 | return sendmsg (); |
|
|
7257 | ; |
|
|
7258 | return 0; |
|
|
7259 | } |
|
|
7260 | _ACEOF |
|
|
7261 | for ac_lib in '' socket; do |
|
|
7262 | if test -z "$ac_lib"; then |
|
|
7263 | ac_res="none required" |
|
|
7264 | else |
7415 | else |
7265 | ac_res=-l$ac_lib |
|
|
7266 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7267 | fi |
|
|
7268 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7269 | ac_cv_search_sendmsg=$ac_res |
|
|
7270 | fi |
|
|
7271 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7272 | conftest$ac_exeext |
|
|
7273 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7274 | break |
|
|
7275 | fi |
|
|
7276 | done |
|
|
7277 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7278 | |
|
|
7279 | else |
|
|
7280 | ac_cv_search_sendmsg=no |
|
|
7281 | fi |
|
|
7282 | rm conftest.$ac_ext |
|
|
7283 | LIBS=$ac_func_search_save_LIBS |
|
|
7284 | fi |
|
|
7285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 |
|
|
7286 | $as_echo "$ac_cv_search_sendmsg" >&6; } |
|
|
7287 | ac_res=$ac_cv_search_sendmsg |
|
|
7288 | if test "$ac_res" != no; then : |
|
|
7289 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7290 | |
|
|
7291 | fi |
|
|
7292 | |
|
|
7293 | ;; |
|
|
7294 | esac |
|
|
7295 | |
|
|
7296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 |
|
|
7297 | $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; } |
|
|
7298 | if test "${pt_cv_can_pass_fds+set}" = set; then : |
|
|
7299 | $as_echo_n "(cached) " >&6 |
|
|
7300 | else |
|
|
7301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7302 | /* end confdefs.h. */ |
|
|
7303 | |
|
|
7304 | #include <stddef.h> // broken bsds (is that redundant?) need this |
|
|
7305 | #include <sys/types.h> |
|
|
7306 | #include <sys/socket.h> |
|
|
7307 | #include <sys/uio.h> |
|
|
7308 | |
|
|
7309 | int |
|
|
7310 | main () |
|
|
7311 | { |
|
|
7312 | |
|
|
7313 | { |
|
|
7314 | msghdr msg; |
|
|
7315 | iovec iov; |
|
|
7316 | char buf [100]; |
|
|
7317 | char data = 0; |
|
|
7318 | |
|
|
7319 | iov.iov_base = &data; |
|
|
7320 | iov.iov_len = 1; |
|
|
7321 | |
|
|
7322 | msg.msg_iov = &iov; |
|
|
7323 | msg.msg_iovlen = 1; |
|
|
7324 | msg.msg_control = buf; |
|
|
7325 | msg.msg_controllen = sizeof buf; |
|
|
7326 | |
|
|
7327 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
7328 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
7329 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
7330 | cmsg->cmsg_len = 100; |
|
|
7331 | |
|
|
7332 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
7333 | |
|
|
7334 | return sendmsg (3, &msg, 0); |
|
|
7335 | } |
|
|
7336 | |
|
|
7337 | ; |
|
|
7338 | return 0; |
|
|
7339 | } |
|
|
7340 | _ACEOF |
|
|
7341 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7342 | pt_cv_can_pass_fds=yes |
|
|
7343 | else |
|
|
7344 | pt_cv_can_pass_fds=no |
|
|
7345 | fi |
|
|
7346 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7347 | conftest$ac_exeext conftest.$ac_ext |
|
|
7348 | fi |
|
|
7349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5 |
|
|
7350 | $as_echo "$pt_cv_can_pass_fds" >&6; } |
|
|
7351 | if test x$pt_cv_can_pass_fds = xyes; then |
|
|
7352 | |
|
|
7353 | $as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h |
|
|
7354 | |
|
|
7355 | else |
|
|
7356 | as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5 |
|
|
7357 | fi |
|
|
7358 | |
|
|
7359 | |
|
|
7360 | |
|
|
7361 | for ac_header in \ |
|
|
7362 | pty.h \ |
|
|
7363 | util.h \ |
|
|
7364 | libutil.h \ |
|
|
7365 | sys/ioctl.h \ |
|
|
7366 | stropts.h \ |
|
|
7367 | |
|
|
7368 | do : |
|
|
7369 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7370 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
7371 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
7372 | cat >>confdefs.h <<_ACEOF |
|
|
7373 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7374 | _ACEOF |
|
|
7375 | |
|
|
7376 | fi |
|
|
7377 | |
|
|
7378 | done |
|
|
7379 | |
|
|
7380 | |
|
|
7381 | for ac_func in \ |
|
|
7382 | revoke \ |
|
|
7383 | _getpty \ |
|
|
7384 | getpt \ |
|
|
7385 | posix_openpt \ |
|
|
7386 | isastream \ |
|
|
7387 | setuid \ |
|
|
7388 | seteuid \ |
|
|
7389 | setreuid \ |
|
|
7390 | setresuid \ |
|
|
7391 | |
|
|
7392 | do : |
|
|
7393 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
7394 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
7395 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
7396 | cat >>confdefs.h <<_ACEOF |
|
|
7397 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
7398 | _ACEOF |
|
|
7399 | |
|
|
7400 | fi |
|
|
7401 | done |
|
|
7402 | |
|
|
7403 | |
|
|
7404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
|
|
7405 | $as_echo_n "checking for UNIX98 ptys... " >&6; } |
|
|
7406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7407 | /* end confdefs.h. */ |
|
|
7408 | #include <stdlib.h> |
|
|
7409 | int |
|
|
7410 | main () |
|
|
7411 | { |
|
|
7412 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
7413 | ; |
|
|
7414 | return 0; |
|
|
7415 | } |
|
|
7416 | _ACEOF |
|
|
7417 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7418 | unix98_pty=yes |
|
|
7419 | |
|
|
7420 | $as_echo "#define UNIX98_PTY 1" >>confdefs.h |
|
|
7421 | |
|
|
7422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
7423 | $as_echo "yes" >&6; } |
|
|
7424 | else |
|
|
7425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7426 | $as_echo "no" >&6; } |
|
|
7427 | fi |
|
|
7428 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7429 | conftest$ac_exeext conftest.$ac_ext |
|
|
7430 | |
|
|
7431 | if test -z "$unix98_pty"; then |
|
|
7432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
|
|
7433 | $as_echo_n "checking for library containing openpty... " >&6; } |
|
|
7434 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7435 | $as_echo_n "(cached) " >&6 |
|
|
7436 | else |
|
|
7437 | ac_func_search_save_LIBS=$LIBS |
|
|
7438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7439 | /* end confdefs.h. */ |
|
|
7440 | |
|
|
7441 | /* Override any GCC internal prototype to avoid an error. |
|
|
7442 | Use char because int might match the return type of a GCC |
|
|
7443 | builtin and then its argument prototype would still apply. */ |
|
|
7444 | #ifdef __cplusplus |
|
|
7445 | extern "C" |
|
|
7446 | #endif |
|
|
7447 | char openpty (); |
|
|
7448 | int |
|
|
7449 | main () |
|
|
7450 | { |
|
|
7451 | return openpty (); |
|
|
7452 | ; |
|
|
7453 | return 0; |
|
|
7454 | } |
|
|
7455 | _ACEOF |
|
|
7456 | for ac_lib in '' util; do |
|
|
7457 | if test -z "$ac_lib"; then |
|
|
7458 | ac_res="none required" |
|
|
7459 | else |
|
|
7460 | ac_res=-l$ac_lib |
|
|
7461 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7462 | fi |
|
|
7463 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7464 | ac_cv_search_openpty=$ac_res |
|
|
7465 | fi |
|
|
7466 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7467 | conftest$ac_exeext |
|
|
7468 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7469 | break |
|
|
7470 | fi |
|
|
7471 | done |
|
|
7472 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7473 | |
|
|
7474 | else |
|
|
7475 | ac_cv_search_openpty=no |
|
|
7476 | fi |
|
|
7477 | rm conftest.$ac_ext |
|
|
7478 | LIBS=$ac_func_search_save_LIBS |
|
|
7479 | fi |
|
|
7480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 |
|
|
7481 | $as_echo "$ac_cv_search_openpty" >&6; } |
|
|
7482 | ac_res=$ac_cv_search_openpty |
|
|
7483 | if test "$ac_res" != no; then : |
|
|
7484 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7485 | |
|
|
7486 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
|
|
7487 | |
|
|
7488 | fi |
|
|
7489 | |
|
|
7490 | fi |
|
|
7491 | |
|
|
7492 | |
|
|
7493 | |
|
|
7494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5 |
|
|
7495 | $as_echo_n "checking for tty group... " >&6; } |
|
|
7496 | if test "${pt_cv_tty_group+set}" = set; then : |
|
|
7497 | $as_echo_n "(cached) " >&6 |
|
|
7498 | else |
|
|
7499 | if test "$cross_compiling" = yes; then : |
|
|
7500 | pt_cv_tty_group=no |
|
|
7501 | else |
|
|
7502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7503 | /* end confdefs.h. */ |
|
|
7504 | |
|
|
7505 | #include <sys/types.h> |
|
|
7506 | #include <sys/stat.h> |
|
|
7507 | #include <unistd.h> |
|
|
7508 | #include <grp.h> |
|
|
7509 | |
|
|
7510 | int main() |
|
|
7511 | { |
|
|
7512 | struct stat st; |
|
|
7513 | struct group *gr; |
|
|
7514 | char *tty; |
|
|
7515 | gr = getgrnam("tty"); |
|
|
7516 | tty = ttyname(0); |
|
|
7517 | if (gr != 0 |
|
|
7518 | && tty != 0 |
|
|
7519 | && (stat(tty, &st)) == 0 |
|
|
7520 | && st.st_gid == gr->gr_gid) |
|
|
7521 | return 0; |
|
|
7522 | else |
|
|
7523 | return 1; |
|
|
7524 | } |
|
|
7525 | _ACEOF |
|
|
7526 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7527 | pt_cv_tty_group=yes |
|
|
7528 | else |
|
|
7529 | pt_cv_tty_group=no |
|
|
7530 | fi |
|
|
7531 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7532 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7533 | fi |
|
|
7534 | |
|
|
7535 | fi |
|
|
7536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5 |
|
|
7537 | $as_echo "$pt_cv_tty_group" >&6; } |
|
|
7538 | if test x$pt_cv_tty_group = xyes; then |
|
|
7539 | |
|
|
7540 | $as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h |
|
|
7541 | |
|
|
7542 | fi |
|
|
7543 | |
|
|
7544 | if test x$support_xft = xyes || test x$support_inheritpixmap = xyes; then |
|
|
7545 | rxvt_have_xrender=no |
7416 | rxvt_have_xrender=no |
|
|
7417 | fi |
|
|
7418 | |
|
|
7419 | |
|
|
7420 | ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat" |
|
|
7421 | if test "x$ac_cv_func_XRenderFindStandardFormat" = x""yes; then : |
|
|
7422 | |
|
|
7423 | else |
|
|
7424 | rxvt_have_xrender=no |
|
|
7425 | fi |
|
|
7426 | |
|
|
7427 | LIBS="$save_LIBS" |
|
|
7428 | fi |
|
|
7429 | fi |
|
|
7430 | |
|
|
7431 | if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
7546 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7432 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7547 | set dummy pkg-config; ac_word=$2 |
7433 | set dummy pkg-config; ac_word=$2 |
7548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7549 | $as_echo_n "checking for $ac_word... " >&6; } |
7435 | $as_echo_n "checking for $ac_word... " >&6; } |
7550 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
7436 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
… | |
… | |
7582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7583 | $as_echo "no" >&6; } |
7469 | $as_echo "no" >&6; } |
7584 | fi |
7470 | fi |
7585 | |
7471 | |
7586 | |
7472 | |
7587 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
7473 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
7588 | X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" |
7474 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
7589 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" |
7475 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
7590 | rxvt_have_xrender=yes |
7476 | else |
|
|
7477 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
7478 | set dummy xft-config; ac_word=$2 |
|
|
7479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
7480 | $as_echo_n "checking for $ac_word... " >&6; } |
|
|
7481 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then : |
|
|
7482 | $as_echo_n "(cached) " >&6 |
|
|
7483 | else |
|
|
7484 | case $XFT_CONFIG in |
|
|
7485 | [\\/]* | ?:[\\/]*) |
|
|
7486 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
|
|
7487 | ;; |
|
|
7488 | *) |
|
|
7489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
7490 | for as_dir in $PATH |
|
|
7491 | do |
|
|
7492 | IFS=$as_save_IFS |
|
|
7493 | test -z "$as_dir" && as_dir=. |
|
|
7494 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
7495 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
7496 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
7497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
7498 | break 2 |
|
|
7499 | fi |
|
|
7500 | done |
|
|
7501 | done |
|
|
7502 | IFS=$as_save_IFS |
7591 | |
7503 | |
|
|
7504 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
|
|
7505 | ;; |
|
|
7506 | esac |
|
|
7507 | fi |
|
|
7508 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
7509 | if test -n "$XFT_CONFIG"; then |
|
|
7510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 |
|
|
7511 | $as_echo "$XFT_CONFIG" >&6; } |
|
|
7512 | else |
|
|
7513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7514 | $as_echo "no" >&6; } |
|
|
7515 | fi |
|
|
7516 | |
|
|
7517 | |
|
|
7518 | if test $XFT_CONFIG != no; then |
|
|
7519 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
|
|
7520 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
|
|
7521 | fi |
|
|
7522 | fi |
|
|
7523 | |
|
|
7524 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then |
|
|
7525 | X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS" |
|
|
7526 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" |
|
|
7527 | fi |
|
|
7528 | |
7592 | save_LIBS="$LIBS" |
7529 | save_LIBS="$LIBS" |
7593 | LIBS="$LIBS $X_LIBS" |
7530 | LIBS="$LIBS $X_LIBS" |
|
|
7531 | for ac_header in X11/Xft/Xft.h |
|
|
7532 | do : |
7594 | ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default" |
7533 | ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" |
7595 | if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then : |
7534 | if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : |
|
|
7535 | cat >>confdefs.h <<_ACEOF |
|
|
7536 | #define HAVE_X11_XFT_XFT_H 1 |
|
|
7537 | _ACEOF |
7596 | |
7538 | |
7597 | else |
7539 | else |
7598 | rxvt_have_xrender=no |
7540 | support_xft=no |
7599 | fi |
7541 | fi |
7600 | |
7542 | |
|
|
7543 | done |
7601 | |
7544 | |
7602 | ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat" |
7545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5 |
7603 | if test "x$ac_cv_func_XRenderFindStandardFormat" = x""yes; then : |
7546 | $as_echo_n "checking for XftDrawString32 in -lXft... " >&6; } |
7604 | |
7547 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then : |
|
|
7548 | $as_echo_n "(cached) " >&6 |
7605 | else |
7549 | else |
7606 | rxvt_have_xrender=no |
7550 | ac_check_lib_save_LIBS=$LIBS |
7607 | fi |
7551 | LIBS="-lXft $LIBS" |
|
|
7552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7553 | /* end confdefs.h. */ |
7608 | |
7554 | |
|
|
7555 | /* Override any GCC internal prototype to avoid an error. |
|
|
7556 | Use char because int might match the return type of a GCC |
|
|
7557 | builtin and then its argument prototype would still apply. */ |
|
|
7558 | #ifdef __cplusplus |
|
|
7559 | extern "C" |
|
|
7560 | #endif |
|
|
7561 | char XftDrawString32 (); |
|
|
7562 | int |
|
|
7563 | main () |
|
|
7564 | { |
|
|
7565 | return XftDrawString32 (); |
|
|
7566 | ; |
|
|
7567 | return 0; |
|
|
7568 | } |
|
|
7569 | _ACEOF |
|
|
7570 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7571 | ac_cv_lib_Xft_XftDrawString32=yes |
|
|
7572 | else |
|
|
7573 | ac_cv_lib_Xft_XftDrawString32=no |
|
|
7574 | fi |
|
|
7575 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7576 | conftest$ac_exeext conftest.$ac_ext |
|
|
7577 | LIBS=$ac_check_lib_save_LIBS |
|
|
7578 | fi |
|
|
7579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
|
|
7580 | $as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; } |
|
|
7581 | if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then : |
|
|
7582 | : |
|
|
7583 | else |
|
|
7584 | support_xft=no |
|
|
7585 | fi |
|
|
7586 | |
|
|
7587 | for ac_header in fontconfig/fontconfig.h |
|
|
7588 | do : |
|
|
7589 | ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" |
|
|
7590 | if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then : |
|
|
7591 | cat >>confdefs.h <<_ACEOF |
|
|
7592 | #define HAVE_FONTCONFIG_FONTCONFIG_H 1 |
|
|
7593 | _ACEOF |
|
|
7594 | |
|
|
7595 | else |
|
|
7596 | support_xft=no |
|
|
7597 | fi |
|
|
7598 | |
|
|
7599 | done |
|
|
7600 | |
|
|
7601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5 |
|
|
7602 | $as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; } |
|
|
7603 | if test "${ac_cv_lib_fontconfig_FcPatternGet+set}" = set; then : |
|
|
7604 | $as_echo_n "(cached) " >&6 |
|
|
7605 | else |
|
|
7606 | ac_check_lib_save_LIBS=$LIBS |
|
|
7607 | LIBS="-lfontconfig $LIBS" |
|
|
7608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7609 | /* end confdefs.h. */ |
|
|
7610 | |
|
|
7611 | /* Override any GCC internal prototype to avoid an error. |
|
|
7612 | Use char because int might match the return type of a GCC |
|
|
7613 | builtin and then its argument prototype would still apply. */ |
|
|
7614 | #ifdef __cplusplus |
|
|
7615 | extern "C" |
|
|
7616 | #endif |
|
|
7617 | char FcPatternGet (); |
|
|
7618 | int |
|
|
7619 | main () |
|
|
7620 | { |
|
|
7621 | return FcPatternGet (); |
|
|
7622 | ; |
|
|
7623 | return 0; |
|
|
7624 | } |
|
|
7625 | _ACEOF |
|
|
7626 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7627 | ac_cv_lib_fontconfig_FcPatternGet=yes |
|
|
7628 | else |
|
|
7629 | ac_cv_lib_fontconfig_FcPatternGet=no |
|
|
7630 | fi |
|
|
7631 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7632 | conftest$ac_exeext conftest.$ac_ext |
|
|
7633 | LIBS=$ac_check_lib_save_LIBS |
|
|
7634 | fi |
|
|
7635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5 |
|
|
7636 | $as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; } |
|
|
7637 | if test "x$ac_cv_lib_fontconfig_FcPatternGet" = x""yes; then : |
|
|
7638 | : |
|
|
7639 | else |
|
|
7640 | support_xft=no |
|
|
7641 | fi |
|
|
7642 | |
7609 | LIBS="$save_LIBS" |
7643 | LIBS="$save_LIBS" |
7610 | fi |
|
|
7611 | fi |
|
|
7612 | |
7644 | |
|
|
7645 | if test x$support_xft = xyes; then |
|
|
7646 | |
|
|
7647 | $as_echo "#define XFT 1" >>confdefs.h |
|
|
7648 | |
|
|
7649 | fi |
|
|
7650 | fi |
|
|
7651 | |
|
|
7652 | image_lib=none |
|
|
7653 | |
|
|
7654 | PIXBUF_CFLAGS= |
|
|
7655 | PIXBUF_LIBS= |
|
|
7656 | |
7613 | if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
7657 | if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then |
|
|
7658 | LIBS="$LIBS -lm" |
|
|
7659 | |
|
|
7660 | $as_echo "#define XRENDER 1" >>confdefs.h |
|
|
7661 | |
|
|
7662 | |
|
|
7663 | if test x$support_inheritpixmap = xyes; then |
|
|
7664 | |
|
|
7665 | $as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h |
|
|
7666 | |
|
|
7667 | fi |
|
|
7668 | |
|
|
7669 | if test x$support_pixbuf = xyes; then |
|
|
7670 | support_pixbuf=no |
7614 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7671 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7615 | set dummy pkg-config; ac_word=$2 |
7672 | set dummy pkg-config; ac_word=$2 |
7616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7617 | $as_echo_n "checking for $ac_word... " >&6; } |
7674 | $as_echo_n "checking for $ac_word... " >&6; } |
7618 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
7675 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
7619 | $as_echo_n "(cached) " >&6 |
7676 | $as_echo_n "(cached) " >&6 |
… | |
… | |
7650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7651 | $as_echo "no" >&6; } |
7708 | $as_echo "no" >&6; } |
7652 | fi |
7709 | fi |
7653 | |
7710 | |
7654 | |
7711 | |
|
|
7712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5 |
|
|
7713 | $as_echo_n "checking for gdk-pixbuf... " >&6; } |
7655 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
7714 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
7656 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
7715 | PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`" |
7657 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
7716 | PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`" |
7658 | else |
7717 | support_pixbuf=yes |
7659 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
7660 | set dummy xft-config; ac_word=$2 |
|
|
7661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
7662 | $as_echo_n "checking for $ac_word... " >&6; } |
|
|
7663 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then : |
|
|
7664 | $as_echo_n "(cached) " >&6 |
|
|
7665 | else |
|
|
7666 | case $XFT_CONFIG in |
|
|
7667 | [\\/]* | ?:[\\/]*) |
|
|
7668 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
|
|
7669 | ;; |
|
|
7670 | *) |
|
|
7671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
7672 | for as_dir in $PATH |
|
|
7673 | do |
|
|
7674 | IFS=$as_save_IFS |
|
|
7675 | test -z "$as_dir" && as_dir=. |
|
|
7676 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
7677 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
7678 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
7679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
7680 | break 2 |
|
|
7681 | fi |
7718 | fi |
7682 | done |
|
|
7683 | done |
|
|
7684 | IFS=$as_save_IFS |
|
|
7685 | |
7719 | |
7686 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
7720 | if test x$support_pixbuf = xyes; then |
7687 | ;; |
|
|
7688 | esac |
|
|
7689 | fi |
|
|
7690 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
7691 | if test -n "$XFT_CONFIG"; then |
|
|
7692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 |
7721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7693 | $as_echo "$XFT_CONFIG" >&6; } |
7722 | $as_echo "ok" >&6; } |
7694 | else |
7723 | image_lib=gdk-pixbuf |
|
|
7724 | |
|
|
7725 | $as_echo "#define HAVE_PIXBUF 1" >>confdefs.h |
|
|
7726 | |
|
|
7727 | |
|
|
7728 | $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h |
|
|
7729 | |
|
|
7730 | else |
7695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7696 | $as_echo "no" >&6; } |
7732 | $as_echo "no" >&6; } |
7697 | fi |
|
|
7698 | |
|
|
7699 | |
|
|
7700 | if test $XFT_CONFIG != no; then |
|
|
7701 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
|
|
7702 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
|
|
7703 | fi |
7733 | fi |
7704 | fi |
7734 | fi |
7705 | |
|
|
7706 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then |
|
|
7707 | X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS" |
|
|
7708 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" |
|
|
7709 | fi |
|
|
7710 | |
|
|
7711 | save_LIBS="$LIBS" |
|
|
7712 | LIBS="$LIBS $X_LIBS" |
|
|
7713 | for ac_header in X11/Xft/Xft.h |
|
|
7714 | do : |
|
|
7715 | ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" |
|
|
7716 | if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : |
|
|
7717 | cat >>confdefs.h <<_ACEOF |
|
|
7718 | #define HAVE_X11_XFT_XFT_H 1 |
|
|
7719 | _ACEOF |
|
|
7720 | |
|
|
7721 | else |
|
|
7722 | support_xft=no |
|
|
7723 | fi |
7735 | fi |
7724 | |
7736 | |
7725 | done |
|
|
7726 | |
7737 | |
7727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5 |
|
|
7728 | $as_echo_n "checking for XftDrawString32 in -lXft... " >&6; } |
|
|
7729 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then : |
|
|
7730 | $as_echo_n "(cached) " >&6 |
|
|
7731 | else |
|
|
7732 | ac_check_lib_save_LIBS=$LIBS |
|
|
7733 | LIBS="-lXft $LIBS" |
|
|
7734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7735 | /* end confdefs.h. */ |
|
|
7736 | |
7738 | |
7737 | /* Override any GCC internal prototype to avoid an error. |
|
|
7738 | Use char because int might match the return type of a GCC |
|
|
7739 | builtin and then its argument prototype would still apply. */ |
|
|
7740 | #ifdef __cplusplus |
|
|
7741 | extern "C" |
|
|
7742 | #endif |
|
|
7743 | char XftDrawString32 (); |
|
|
7744 | int |
|
|
7745 | main () |
|
|
7746 | { |
|
|
7747 | return XftDrawString32 (); |
|
|
7748 | ; |
|
|
7749 | return 0; |
|
|
7750 | } |
|
|
7751 | _ACEOF |
|
|
7752 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7753 | ac_cv_lib_Xft_XftDrawString32=yes |
|
|
7754 | else |
|
|
7755 | ac_cv_lib_Xft_XftDrawString32=no |
|
|
7756 | fi |
|
|
7757 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7758 | conftest$ac_exeext conftest.$ac_ext |
|
|
7759 | LIBS=$ac_check_lib_save_LIBS |
|
|
7760 | fi |
|
|
7761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
|
|
7762 | $as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; } |
|
|
7763 | if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then : |
|
|
7764 | : |
|
|
7765 | else |
|
|
7766 | support_xft=no |
|
|
7767 | fi |
|
|
7768 | |
7739 | |
7769 | for ac_header in fontconfig/fontconfig.h |
|
|
7770 | do : |
|
|
7771 | ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" |
|
|
7772 | if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then : |
|
|
7773 | cat >>confdefs.h <<_ACEOF |
|
|
7774 | #define HAVE_FONTCONFIG_FONTCONFIG_H 1 |
|
|
7775 | _ACEOF |
|
|
7776 | |
|
|
7777 | else |
|
|
7778 | support_xft=no |
|
|
7779 | fi |
|
|
7780 | |
|
|
7781 | done |
|
|
7782 | |
|
|
7783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5 |
|
|
7784 | $as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; } |
|
|
7785 | if test "${ac_cv_lib_fontconfig_FcPatternGet+set}" = set; then : |
|
|
7786 | $as_echo_n "(cached) " >&6 |
|
|
7787 | else |
|
|
7788 | ac_check_lib_save_LIBS=$LIBS |
|
|
7789 | LIBS="-lfontconfig $LIBS" |
|
|
7790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7791 | /* end confdefs.h. */ |
|
|
7792 | |
|
|
7793 | /* Override any GCC internal prototype to avoid an error. |
|
|
7794 | Use char because int might match the return type of a GCC |
|
|
7795 | builtin and then its argument prototype would still apply. */ |
|
|
7796 | #ifdef __cplusplus |
|
|
7797 | extern "C" |
|
|
7798 | #endif |
|
|
7799 | char FcPatternGet (); |
|
|
7800 | int |
|
|
7801 | main () |
|
|
7802 | { |
|
|
7803 | return FcPatternGet (); |
|
|
7804 | ; |
|
|
7805 | return 0; |
|
|
7806 | } |
|
|
7807 | _ACEOF |
|
|
7808 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7809 | ac_cv_lib_fontconfig_FcPatternGet=yes |
|
|
7810 | else |
|
|
7811 | ac_cv_lib_fontconfig_FcPatternGet=no |
|
|
7812 | fi |
|
|
7813 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7814 | conftest$ac_exeext conftest.$ac_ext |
|
|
7815 | LIBS=$ac_check_lib_save_LIBS |
|
|
7816 | fi |
|
|
7817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5 |
|
|
7818 | $as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; } |
|
|
7819 | if test "x$ac_cv_lib_fontconfig_FcPatternGet" = x""yes; then : |
|
|
7820 | : |
|
|
7821 | else |
|
|
7822 | support_xft=no |
|
|
7823 | fi |
|
|
7824 | |
|
|
7825 | LIBS="$save_LIBS" |
|
|
7826 | |
|
|
7827 | if test x$support_xft = xyes; then |
|
|
7828 | |
|
|
7829 | $as_echo "#define XFT 1" >>confdefs.h |
|
|
7830 | |
|
|
7831 | fi |
|
|
7832 | fi |
|
|
7833 | if test x$support_styles = xyes; then |
7740 | if test x$support_styles = xyes; then |
7834 | |
7741 | |
7835 | $as_echo "#define ENABLE_STYLES 1" >>confdefs.h |
7742 | $as_echo "#define ENABLE_STYLES 1" >>confdefs.h |
7836 | |
7743 | |
7837 | fi |
7744 | fi |
… | |
… | |
7846 | |
7753 | |
7847 | fi |
7754 | fi |
7848 | if test x$support_fading = xyes; then |
7755 | if test x$support_fading = xyes; then |
7849 | |
7756 | |
7850 | $as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h |
7757 | $as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h |
7851 | |
|
|
7852 | fi |
|
|
7853 | if test x$support_inheritpixmap = xyes; then |
|
|
7854 | if test x$rxvt_have_xrender = xyes; then |
|
|
7855 | LIBS="$LIBS -lm" |
|
|
7856 | |
|
|
7857 | $as_echo "#define XRENDER 1" >>confdefs.h |
|
|
7858 | |
|
|
7859 | fi |
|
|
7860 | |
|
|
7861 | $as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h |
|
|
7862 | |
7758 | |
7863 | fi |
7759 | fi |
7864 | if test x$support_keepscrolling = xno; then |
7760 | if test x$support_keepscrolling = xno; then |
7865 | |
7761 | |
7866 | $as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h |
7762 | $as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h |
… | |
… | |
7986 | fi |
7882 | fi |
7987 | done |
7883 | done |
7988 | done |
7884 | done |
7989 | IFS=$as_save_IFS |
7885 | IFS=$as_save_IFS |
7990 | |
7886 | |
7991 | ;; |
7887 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
7992 | esac |
|
|
7993 | fi |
|
|
7994 | PERL=$ac_cv_path_PERL |
|
|
7995 | if test -n "$PERL"; then |
|
|
7996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
|
|
7997 | $as_echo "$PERL" >&6; } |
|
|
7998 | else |
|
|
7999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
8000 | $as_echo "no" >&6; } |
|
|
8001 | fi |
|
|
8002 | |
|
|
8003 | |
|
|
8004 | # Extract the first word of "perl", so it can be a program name with args. |
|
|
8005 | set dummy perl; ac_word=$2 |
|
|
8006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
8007 | $as_echo_n "checking for $ac_word... " >&6; } |
|
|
8008 | if test "${ac_cv_path_PERL+set}" = set; then : |
|
|
8009 | $as_echo_n "(cached) " >&6 |
|
|
8010 | else |
|
|
8011 | case $PERL in |
|
|
8012 | [\\/]* | ?:[\\/]*) |
|
|
8013 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
8014 | ;; |
|
|
8015 | *) |
|
|
8016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
8017 | for as_dir in $PATH |
|
|
8018 | do |
|
|
8019 | IFS=$as_save_IFS |
|
|
8020 | test -z "$as_dir" && as_dir=. |
|
|
8021 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
8022 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
8023 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
8024 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
8025 | break 2 |
|
|
8026 | fi |
|
|
8027 | done |
|
|
8028 | done |
|
|
8029 | IFS=$as_save_IFS |
|
|
8030 | |
|
|
8031 | ;; |
7888 | ;; |
8032 | esac |
7889 | esac |
8033 | fi |
7890 | fi |
8034 | PERL=$ac_cv_path_PERL |
7891 | PERL=$ac_cv_path_PERL |
8035 | if test -n "$PERL"; then |
7892 | if test -n "$PERL"; then |