ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
(Generate patch)

Comparing rxvt-unicode/configure (file contents):
Revision 1.167 by sf-exg, Fri May 14 13:50:22 2021 UTC vs.
Revision 1.168 by sf-exg, Fri Jul 23 19:19:18 2021 UTC

659GREP 659GREP
660STARTUP_NOTIFICATION_LIBS 660STARTUP_NOTIFICATION_LIBS
661STARTUP_NOTIFICATION_CFLAGS 661STARTUP_NOTIFICATION_CFLAGS
662PIXBUF_LIBS 662PIXBUF_LIBS
663PIXBUF_CFLAGS 663PIXBUF_CFLAGS
664PTYTTY_LIBS
665PTYTTY_CFLAGS
664PKG_CONFIG 666PKG_CONFIG
665X_EXTRA_LIBS 667X_EXTRA_LIBS
666X_LIBS 668X_LIBS
667X_PRE_LIBS 669X_PRE_LIBS
668X_CFLAGS 670X_CFLAGS
773enable_text_blink 775enable_text_blink
774enable_pointer_blank 776enable_pointer_blank
775with_term 777with_term
776with_terminfo 778with_terminfo
777with_x 779with_x
778enable_utmp
779enable_wtmp
780enable_lastlog
781' 780'
782 ac_precious_vars='build_alias 781 ac_precious_vars='build_alias
783host_alias 782host_alias
784target_alias 783target_alias
785CC 784CC
1447 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1446 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1448 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) 1447 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1449 --enable-smart-resize enable smart growth/shrink behaviour 1448 --enable-smart-resize enable smart growth/shrink behaviour
1450 --enable-text-blink enable blinking text 1449 --enable-text-blink enable blinking text
1451 --enable-pointer-blank enable pointer blanking when typing or inactive 1450 --enable-pointer-blank enable pointer blanking when typing or inactive
1452 --enable-utmp enable utmp (utmpx) support
1453 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1454 --enable-lastlog enable lastlog support (requires --enable-utmp)
1455 1451
1456Optional Packages: 1452Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1455 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
2040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041printf "%s\n" "$ac_res" >&6; } 2037printf "%s\n" "$ac_res" >&6; }
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 2039
2044} # ac_fn_c_find_uintX_t 2040} # ac_fn_c_find_uintX_t
2045
2046# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
2047# ------------------------------------------------------
2048# Tries to find if the field MEMBER exists in type AGGR, after including
2049# INCLUDES, setting cache variable VAR accordingly.
2050ac_fn_cxx_check_member ()
2051{
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2054printf %s "checking for $2.$3... " >&6; }
2055if eval test \${$4+y}
2056then :
2057 printf %s "(cached) " >&6
2058else $as_nop
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060/* end confdefs.h. */
2061$5
2062int
2063main (void)
2064{
2065static $2 ac_aggr;
2066if (ac_aggr.$3)
2067return 0;
2068 ;
2069 return 0;
2070}
2071_ACEOF
2072if ac_fn_cxx_try_compile "$LINENO"
2073then :
2074 eval "$4=yes"
2075else $as_nop
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h. */
2078$5
2079int
2080main (void)
2081{
2082static $2 ac_aggr;
2083if (sizeof ac_aggr.$3)
2084return 0;
2085 ;
2086 return 0;
2087}
2088_ACEOF
2089if ac_fn_cxx_try_compile "$LINENO"
2090then :
2091 eval "$4=yes"
2092else $as_nop
2093 eval "$4=no"
2094fi
2095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2096fi
2097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2098fi
2099eval ac_res=\$$4
2100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101printf "%s\n" "$ac_res" >&6; }
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103
2104} # ac_fn_cxx_check_member
2105 2041
2106# ac_fn_cxx_try_run LINENO 2042# ac_fn_cxx_try_run LINENO
2107# ------------------------ 2043# ------------------------
2108# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2044# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2109# executables *can* be run. 2045# executables *can* be run.
6997else 6933else
6998 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6934 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6999fi 6935fi
7000 6936
7001 6937
6938
6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libptytty" >&5
6940printf %s "checking for libptytty... " >&6; }
6941 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libptytty; then
6942 PTYTTY_CFLAGS="`$PKG_CONFIG --cflags libptytty`"
6943 PTYTTY_LIBS="`$PKG_CONFIG --libs libptytty`"
6944
6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6946printf "%s\n" "ok" >&6; }
6947 :
6948 else
6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950printf "%s\n" "no" >&6; }
6951
6952 as_fn_error $? "unable to find libptytty" "$LINENO" 5
6953
6954 fi
6955
6956
6957
6958
6959
7002image_lib=none 6960image_lib=none
7003 6961
7004PIXBUF_CFLAGS= 6962PIXBUF_CFLAGS=
7005PIXBUF_LIBS= 6963PIXBUF_LIBS=
7006 6964
7432 7390
7433fi 7391fi
7434 7392
7435 7393
7436 7394
7437support_utmp=yes
7438support_wtmp=yes
7439support_lastlog=yes
7440
7441# Check whether --enable-utmp was given.
7442if test ${enable_utmp+y}
7443then :
7444 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
7445 support_utmp=$enableval
7446 fi
7447fi
7448
7449
7450# Check whether --enable-wtmp was given.
7451if test ${enable_wtmp+y}
7452then :
7453 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
7454 support_wtmp=$enableval
7455 fi
7456fi
7457
7458
7459# Check whether --enable-lastlog was given.
7460if test ${enable_lastlog+y}
7461then :
7462 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
7463 support_lastlog=$enableval
7464 fi
7465fi
7466
7467
7468if test x$support_utmp = xyes; then
7469
7470printf "%s\n" "#define UTMP_SUPPORT 1" >>confdefs.h
7471
7472fi
7473if test x$support_wtmp = xyes; then
7474
7475printf "%s\n" "#define WTMP_SUPPORT 1" >>confdefs.h
7476
7477fi
7478if test x$support_lastlog = xyes; then
7479
7480printf "%s\n" "#define LASTLOG_SUPPORT 1" >>confdefs.h
7481
7482fi
7483
7484ac_fn_cxx_check_func "$LINENO" "updwtmp" "ac_cv_func_updwtmp"
7485if test "x$ac_cv_func_updwtmp" = xyes
7486then :
7487 printf "%s\n" "#define HAVE_UPDWTMP 1" >>confdefs.h
7488
7489fi
7490ac_fn_cxx_check_func "$LINENO" "updwtmpx" "ac_cv_func_updwtmpx"
7491if test "x$ac_cv_func_updwtmpx" = xyes
7492then :
7493 printf "%s\n" "#define HAVE_UPDWTMPX 1" >>confdefs.h
7494
7495fi
7496ac_fn_cxx_check_func "$LINENO" "updlastlogx" "ac_cv_func_updlastlogx"
7497if test "x$ac_cv_func_updlastlogx" = xyes
7498then :
7499 printf "%s\n" "#define HAVE_UPDLASTLOGX 1" >>confdefs.h
7500
7501fi
7502
7503
7504ac_fn_cxx_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
7505if test "x$ac_cv_header_lastlog_h" = xyes
7506then :
7507 printf "%s\n" "#define HAVE_LASTLOG_H 1" >>confdefs.h
7508
7509fi
7510
7511
7512case $host in
7513 *-*-solaris*)
7514
7515printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
7516
7517 ;;
7518esac
7519
7520
7521 for ac_header in utmp.h
7522do :
7523 ac_fn_cxx_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
7524if test "x$ac_cv_header_utmp_h" = xyes
7525then :
7526 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
7527
7528ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
7529#include <sys/types.h>
7530#include <utmp.h>
7531
7532"
7533if test "x$ac_cv_type_struct_utmp" = xyes
7534then :
7535
7536printf "%s\n" "#define HAVE_STRUCT_UTMP 1" >>confdefs.h
7537
7538
7539fi
7540
7541
7542ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
7543#include <sys/types.h>
7544#include <utmp.h>
7545
7546"
7547if test "x$ac_cv_member_struct_utmp_ut_host" = xyes
7548then :
7549
7550printf "%s\n" "#define HAVE_UTMP_HOST 1" >>confdefs.h
7551
7552fi
7553
7554
7555ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
7556#include <sys/types.h>
7557#include <utmp.h>
7558
7559"
7560if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes
7561then :
7562
7563printf "%s\n" "#define HAVE_UTMP_PID 1" >>confdefs.h
7564
7565fi
7566
7567
7568fi
7569
7570done
7571
7572 for ac_header in utmpx.h
7573do :
7574 ac_fn_cxx_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
7575if test "x$ac_cv_header_utmpx_h" = xyes
7576then :
7577 printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h
7578
7579ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" "
7580#include <sys/types.h>
7581#include <utmpx.h>
7582
7583"
7584if test "x$ac_cv_type_struct_utmpx" = xyes
7585then :
7586
7587printf "%s\n" "#define HAVE_STRUCT_UTMPX 1" >>confdefs.h
7588
7589
7590fi
7591
7592
7593ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
7594#include <sys/types.h>
7595#include <utmpx.h>
7596
7597"
7598if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes
7599then :
7600
7601printf "%s\n" "#define HAVE_UTMPX_HOST 1" >>confdefs.h
7602
7603fi
7604
7605
7606fi
7607
7608done
7609ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
7610#include <sys/types.h>
7611#include <utmp.h>
7612#ifdef HAVE_LASTLOG_H
7613#include <lastlog.h>
7614#endif
7615
7616"
7617if test "x$ac_cv_type_struct_lastlog" = xyes
7618then :
7619
7620printf "%s\n" "#define HAVE_STRUCT_LASTLOG 1" >>confdefs.h
7621
7622
7623fi
7624
7625
7626ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" "
7627#include <sys/types.h>
7628#include <utmpx.h>
7629#ifdef HAVE_LASTLOG_H
7630#include <lastlog.h>
7631#endif
7632
7633"
7634if test "x$ac_cv_type_struct_lastlogx" = xyes
7635then :
7636
7637printf "%s\n" "#define HAVE_STRUCT_LASTLOGX 1" >>confdefs.h
7638
7639
7640fi
7641
7642
7643
7644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5
7645printf %s "checking for a fallback location of utmp... " >&6; }
7646if test ${pt_cv_path_utmp+y}
7647then :
7648 printf %s "(cached) " >&6
7649else $as_nop
7650
7651if test "$cross_compiling" != yes; then
7652 for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do
7653 if test -f "$file"; then
7654 pt_cv_path_utmp=$file
7655 break
7656 fi
7657 done
7658fi
7659fi
7660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
7661printf "%s\n" "$pt_cv_path_utmp" >&6; }
7662if test x$pt_cv_path_utmp != x; then
7663
7664printf "%s\n" "#define PT_UTMP_FILE \"$pt_cv_path_utmp\"" >>confdefs.h
7665
7666elif test "$cross_compiling" = yes; then
7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5
7668printf "%s\n" "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;}
7669fi
7670
7671
7672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5
7673printf %s "checking for a fallback location of wtmp... " >&6; }
7674if test ${pt_cv_path_wtmp+y}
7675then :
7676 printf %s "(cached) " >&6
7677else $as_nop
7678
7679if test "$cross_compiling" != yes; then
7680 for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do
7681 if test -f "$file"; then
7682 pt_cv_path_wtmp=$file
7683 break
7684 fi
7685 done
7686fi
7687fi
7688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
7689printf "%s\n" "$pt_cv_path_wtmp" >&6; }
7690if test x$pt_cv_path_wtmp != x; then
7691
7692printf "%s\n" "#define PT_WTMP_FILE \"$pt_cv_path_wtmp\"" >>confdefs.h
7693
7694elif test "$cross_compiling" = yes; then
7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5
7696printf "%s\n" "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;}
7697fi
7698
7699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5
7700printf %s "checking for a fallback location of wtmpx... " >&6; }
7701if test ${pt_cv_path_wtmpx+y}
7702then :
7703 printf %s "(cached) " >&6
7704else $as_nop
7705
7706if test "$cross_compiling" != yes; then
7707 for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do
7708 if test -f "$file"; then
7709 pt_cv_path_wtmpx=$file
7710 break
7711 fi
7712 done
7713fi
7714fi
7715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
7716printf "%s\n" "$pt_cv_path_wtmpx" >&6; }
7717if test x$pt_cv_path_wtmpx != x; then
7718
7719printf "%s\n" "#define PT_WTMPX_FILE \"$pt_cv_path_wtmpx\"" >>confdefs.h
7720
7721elif test "$cross_compiling" = yes; then
7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5
7723printf "%s\n" "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;}
7724fi
7725
7726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5
7727printf %s "checking for a fallback location of lastlog... " >&6; }
7728if test ${pt_cv_path_lastlog+y}
7729then :
7730 printf %s "(cached) " >&6
7731else $as_nop
7732
7733if test "$cross_compiling" != yes; then
7734 for file in "/var/log/lastlog" "/var/adm/lastlog"; do
7735 if test -f "$file"; then
7736 pt_cv_path_lastlog=$file
7737 break
7738 fi
7739 done
7740fi
7741fi
7742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
7743printf "%s\n" "$pt_cv_path_lastlog" >&6; }
7744if test x$pt_cv_path_lastlog != x; then
7745
7746printf "%s\n" "#define PT_LASTLOG_FILE \"$pt_cv_path_lastlog\"" >>confdefs.h
7747
7748elif test "$cross_compiling" = yes; then
7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5
7750printf "%s\n" "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;}
7751fi
7752
7753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5
7754printf %s "checking for a fallback location of lastlogx... " >&6; }
7755if test ${pt_cv_path_lastlogx+y}
7756then :
7757 printf %s "(cached) " >&6
7758else $as_nop
7759
7760if test "$cross_compiling" != yes; then
7761 for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do
7762 if test -f "$file"; then
7763 pt_cv_path_lastlogx=$file
7764 break
7765 fi
7766 done
7767fi
7768fi
7769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
7770printf "%s\n" "$pt_cv_path_lastlogx" >&6; }
7771if test x$pt_cv_path_lastlogx != x; then
7772
7773printf "%s\n" "#define PT_LASTLOGX_FILE \"$pt_cv_path_lastlogx\"" >>confdefs.h
7774
7775elif test "$cross_compiling" = yes; then
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5
7777printf "%s\n" "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;}
7778fi
7779
7780
7781
7782 7395
7783save_LIBS=$LIBS 7396save_LIBS=$LIBS
7784save_CXXFLAGS=$CXXFLAGS 7397save_CXXFLAGS=$CXXFLAGS
7785CXXFLAGS="$CXXFLAGS $X_CFLAGS" 7398CXXFLAGS="$CXXFLAGS $X_CFLAGS"
7786LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 7399LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5 7543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7931printf "%s\n" "$rxvt_cv_func_nl_langinfo" >&6; } 7544printf "%s\n" "$rxvt_cv_func_nl_langinfo" >&6; }
7932if test x$rxvt_cv_func_nl_langinfo = xyes; then 7545if test x$rxvt_cv_func_nl_langinfo = xyes; then
7933 7546
7934printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h 7547printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7935
7936fi
7937
7938
7939
7940case $host in
7941 *-*-solaris*)
7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943/* end confdefs.h. */
7944
7945#if __STDC_VERSION__ >= 199901L
7946error
7947#endif
7948
7949int
7950main (void)
7951{
7952
7953 ;
7954 return 0;
7955}
7956_ACEOF
7957if ac_fn_cxx_try_compile "$LINENO"
7958then :
7959 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
7960
7961else $as_nop
7962 printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
7963
7964fi
7965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
7967printf %s "checking for library containing sendmsg... " >&6; }
7968if test ${ac_cv_search_sendmsg+y}
7969then :
7970 printf %s "(cached) " >&6
7971else $as_nop
7972 ac_func_search_save_LIBS=$LIBS
7973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974/* end confdefs.h. */
7975
7976namespace conftest {
7977 extern "C" int sendmsg ();
7978}
7979int
7980main (void)
7981{
7982return conftest::sendmsg ();
7983 ;
7984 return 0;
7985}
7986_ACEOF
7987for ac_lib in '' socket
7988do
7989 if test -z "$ac_lib"; then
7990 ac_res="none required"
7991 else
7992 ac_res=-l$ac_lib
7993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7994 fi
7995 if ac_fn_cxx_try_link "$LINENO"
7996then :
7997 ac_cv_search_sendmsg=$ac_res
7998fi
7999rm -f core conftest.err conftest.$ac_objext conftest.beam \
8000 conftest$ac_exeext
8001 if test ${ac_cv_search_sendmsg+y}
8002then :
8003 break
8004fi
8005done
8006if test ${ac_cv_search_sendmsg+y}
8007then :
8008
8009else $as_nop
8010 ac_cv_search_sendmsg=no
8011fi
8012rm conftest.$ac_ext
8013LIBS=$ac_func_search_save_LIBS
8014fi
8015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
8016printf "%s\n" "$ac_cv_search_sendmsg" >&6; }
8017ac_res=$ac_cv_search_sendmsg
8018if test "$ac_res" != no
8019then :
8020 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8021
8022fi
8023
8024 ;;
8025esac
8026
8027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
8028printf %s "checking for unix-compliant filehandle passing ability... " >&6; }
8029if test ${pt_cv_can_pass_fds+y}
8030then :
8031 printf %s "(cached) " >&6
8032else $as_nop
8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034/* end confdefs.h. */
8035
8036#include <stddef.h> // broken bsds (is that redundant?) need this
8037#include <sys/types.h>
8038#include <sys/socket.h>
8039#include <sys/uio.h>
8040
8041int
8042main (void)
8043{
8044
8045{
8046 msghdr msg;
8047 iovec iov;
8048 char buf [100];
8049 char data = 0;
8050
8051 iov.iov_base = &data;
8052 iov.iov_len = 1;
8053
8054 msg.msg_iov = &iov;
8055 msg.msg_iovlen = 1;
8056 msg.msg_control = buf;
8057 msg.msg_controllen = sizeof buf;
8058
8059 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
8060 cmsg->cmsg_level = SOL_SOCKET;
8061 cmsg->cmsg_type = SCM_RIGHTS;
8062 cmsg->cmsg_len = 100;
8063
8064 *(int *)CMSG_DATA (cmsg) = 5;
8065
8066 return sendmsg (3, &msg, 0);
8067}
8068
8069 ;
8070 return 0;
8071}
8072_ACEOF
8073if ac_fn_cxx_try_link "$LINENO"
8074then :
8075 pt_cv_can_pass_fds=yes
8076else $as_nop
8077 pt_cv_can_pass_fds=no
8078fi
8079rm -f core conftest.err conftest.$ac_objext conftest.beam \
8080 conftest$ac_exeext conftest.$ac_ext
8081fi
8082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
8083printf "%s\n" "$pt_cv_can_pass_fds" >&6; }
8084if test x$pt_cv_can_pass_fds = xyes; then
8085
8086printf "%s\n" "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
8087
8088else
8089 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
8090fi
8091
8092
8093
8094ac_fn_cxx_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default"
8095if test "x$ac_cv_header_pty_h" = xyes
8096then :
8097 printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h
8098
8099fi
8100ac_fn_cxx_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
8101if test "x$ac_cv_header_util_h" = xyes
8102then :
8103 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h
8104
8105fi
8106ac_fn_cxx_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
8107if test "x$ac_cv_header_libutil_h" = xyes
8108then :
8109 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h
8110
8111fi
8112ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
8113if test "x$ac_cv_header_sys_ioctl_h" = xyes
8114then :
8115 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
8116
8117fi
8118ac_fn_cxx_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
8119if test "x$ac_cv_header_stropts_h" = xyes
8120then :
8121 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
8122
8123fi
8124
8125
8126ac_fn_cxx_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
8127if test "x$ac_cv_func_revoke" = xyes
8128then :
8129 printf "%s\n" "#define HAVE_REVOKE 1" >>confdefs.h
8130
8131fi
8132ac_fn_cxx_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
8133if test "x$ac_cv_func__getpty" = xyes
8134then :
8135 printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h
8136
8137fi
8138ac_fn_cxx_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
8139if test "x$ac_cv_func_getpt" = xyes
8140then :
8141 printf "%s\n" "#define HAVE_GETPT 1" >>confdefs.h
8142
8143fi
8144ac_fn_cxx_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
8145if test "x$ac_cv_func_posix_openpt" = xyes
8146then :
8147 printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h
8148
8149fi
8150ac_fn_cxx_check_func "$LINENO" "isastream" "ac_cv_func_isastream"
8151if test "x$ac_cv_func_isastream" = xyes
8152then :
8153 printf "%s\n" "#define HAVE_ISASTREAM 1" >>confdefs.h
8154
8155fi
8156ac_fn_cxx_check_func "$LINENO" "setuid" "ac_cv_func_setuid"
8157if test "x$ac_cv_func_setuid" = xyes
8158then :
8159 printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h
8160
8161fi
8162ac_fn_cxx_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
8163if test "x$ac_cv_func_seteuid" = xyes
8164then :
8165 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
8166
8167fi
8168ac_fn_cxx_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
8169if test "x$ac_cv_func_setreuid" = xyes
8170then :
8171 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
8172
8173fi
8174ac_fn_cxx_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
8175if test "x$ac_cv_func_setresuid" = xyes
8176then :
8177 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
8178
8179fi
8180
8181
8182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
8183printf %s "checking for UNIX98 ptys... " >&6; }
8184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185/* end confdefs.h. */
8186#include <stdlib.h>
8187int
8188main (void)
8189{
8190grantpt(0);unlockpt(0);ptsname(0);
8191 ;
8192 return 0;
8193}
8194_ACEOF
8195if ac_fn_cxx_try_link "$LINENO"
8196then :
8197 unix98_pty=yes
8198
8199printf "%s\n" "#define UNIX98_PTY 1" >>confdefs.h
8200
8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8202printf "%s\n" "yes" >&6; }
8203else $as_nop
8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205printf "%s\n" "no" >&6; }
8206fi
8207rm -f core conftest.err conftest.$ac_objext conftest.beam \
8208 conftest$ac_exeext conftest.$ac_ext
8209
8210if test -z "$unix98_pty"; then
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
8212printf %s "checking for library containing openpty... " >&6; }
8213if test ${ac_cv_search_openpty+y}
8214then :
8215 printf %s "(cached) " >&6
8216else $as_nop
8217 ac_func_search_save_LIBS=$LIBS
8218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219/* end confdefs.h. */
8220
8221namespace conftest {
8222 extern "C" int openpty ();
8223}
8224int
8225main (void)
8226{
8227return conftest::openpty ();
8228 ;
8229 return 0;
8230}
8231_ACEOF
8232for ac_lib in '' util
8233do
8234 if test -z "$ac_lib"; then
8235 ac_res="none required"
8236 else
8237 ac_res=-l$ac_lib
8238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8239 fi
8240 if ac_fn_cxx_try_link "$LINENO"
8241then :
8242 ac_cv_search_openpty=$ac_res
8243fi
8244rm -f core conftest.err conftest.$ac_objext conftest.beam \
8245 conftest$ac_exeext
8246 if test ${ac_cv_search_openpty+y}
8247then :
8248 break
8249fi
8250done
8251if test ${ac_cv_search_openpty+y}
8252then :
8253
8254else $as_nop
8255 ac_cv_search_openpty=no
8256fi
8257rm conftest.$ac_ext
8258LIBS=$ac_func_search_save_LIBS
8259fi
8260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
8261printf "%s\n" "$ac_cv_search_openpty" >&6; }
8262ac_res=$ac_cv_search_openpty
8263if test "$ac_res" != no
8264then :
8265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8266
8267printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
8268
8269fi
8270
8271fi
8272
8273
8274
8275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
8276printf %s "checking for tty group... " >&6; }
8277if test ${pt_cv_tty_group+y}
8278then :
8279 printf %s "(cached) " >&6
8280else $as_nop
8281 if test "$cross_compiling" = yes
8282then :
8283 pt_cv_tty_group=no
8284else $as_nop
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286/* end confdefs.h. */
8287
8288#include <sys/types.h>
8289#include <sys/stat.h>
8290#include <unistd.h>
8291#include <grp.h>
8292
8293int main()
8294{
8295 struct stat st;
8296 struct group *gr;
8297 char *tty;
8298 gr = getgrnam("tty");
8299 tty = ttyname(0);
8300 if (gr != 0
8301 && tty != 0
8302 && (stat(tty, &st)) == 0
8303 && st.st_gid == gr->gr_gid)
8304 return 0;
8305 else
8306 return 1;
8307}
8308_ACEOF
8309if ac_fn_cxx_try_run "$LINENO"
8310then :
8311 pt_cv_tty_group=yes
8312else $as_nop
8313 pt_cv_tty_group=no
8314fi
8315rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8316 conftest.$ac_objext conftest.beam conftest.$ac_ext
8317fi
8318
8319fi
8320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
8321printf "%s\n" "$pt_cv_tty_group" >&6; }
8322if test x$pt_cv_tty_group = xyes; then
8323
8324printf "%s\n" "#define TTY_GID_SUPPORT 1" >>confdefs.h
8325 7548
8326fi 7549fi
8327 7550
8328support_image=no 7551support_image=no
8329if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then 7552if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines