--- rxvt-unicode/configure 2021/05/13 19:24:27 1.166 +++ rxvt-unicode/configure 2023/01/02 17:16:42 1.175 @@ -661,6 +661,8 @@ STARTUP_NOTIFICATION_CFLAGS PIXBUF_LIBS PIXBUF_CFLAGS +PTYTTY_LIBS +PTYTTY_CFLAGS PKG_CONFIG X_EXTRA_LIBS X_LIBS @@ -686,14 +688,6 @@ CC DATE VERSION -host_os -host_vendor -host_cpu -host -build_os -build_vendor -build_cpu -build target_alias host_alias build_alias @@ -775,9 +769,6 @@ with_term with_terminfo with_x -enable_utmp -enable_wtmp -enable_lastlog ' ac_precious_vars='build_alias host_alias @@ -1401,10 +1392,6 @@ X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi @@ -1449,9 +1436,6 @@ --enable-smart-resize enable smart growth/shrink behaviour --enable-text-blink enable blinking text --enable-pointer-blank enable pointer blanking when typing or inactive - --enable-utmp enable utmp (utmpx) support - --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) - --enable-lastlog enable lastlog support (requires --enable-utmp) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -1669,53 +1653,6 @@ } # ac_fn_c_check_header_compile -# ac_fn_c_try_link LINENO -# ----------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_link () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - test -x conftest$ac_exeext - } -then : - ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would - # interfere with the next link command; also delete a directory that is - # left behind by Apple's compiler. We do this before executing the actions. - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_link - # ac_fn_cxx_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. @@ -2090,66 +2027,6 @@ } # ac_fn_c_find_uintX_t -# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES -# ------------------------------------------------------ -# Tries to find if the field MEMBER exists in type AGGR, after including -# INCLUDES, setting cache variable VAR accordingly. -ac_fn_cxx_check_member () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 -printf %s "checking for $2.$3... " >&6; } -if eval test \${$4+y} -then : - printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$5 -int -main (void) -{ -static $2 ac_aggr; -if (ac_aggr.$3) -return 0; - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO" -then : - eval "$4=yes" -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$5 -int -main (void) -{ -static $2 ac_aggr; -if (sizeof ac_aggr.$3) -return 0; - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO" -then : - eval "$4=yes" -else $as_nop - eval "$4=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -fi -eval ac_res=\$$4 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_cxx_check_member - # ac_fn_cxx_try_run LINENO # ------------------------ # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that @@ -3024,7 +2901,7 @@ as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" # Auxiliary files required by this configure script. -ac_aux_files="install-sh config.guess config.sub" +ac_aux_files="install-sh" # Locations in which to look for auxiliary files. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." @@ -3194,83 +3071,6 @@ ac_config_headers="$ac_config_headers config.h:config.h.in" - - - - # Make sure we can run config.sub. -$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -printf %s "checking build system type... " >&6; } -if test ${ac_cv_build+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` -test "x$ac_build_alias" = x && - as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -printf "%s\n" "$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -printf %s "checking host system type... " >&6; } -if test ${ac_cv_host+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || - as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 -fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -printf "%s\n" "$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` @@ -4651,6 +4451,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu + # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: @@ -4921,67 +4722,6 @@ fi - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 -printf %s "checking for library containing strerror... " >&6; } -if test ${ac_cv_search_strerror+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char strerror (); -int -main (void) -{ -return strerror (); - ; - return 0; -} -_ACEOF -for ac_lib in '' cposix -do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO" -then : - ac_cv_search_strerror=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_strerror+y} -then : - break -fi -done -if test ${ac_cv_search_strerror+y} -then : - -else $as_nop - ac_cv_search_strerror=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 -printf "%s\n" "$ac_cv_search_strerror" >&6; } -ac_res=$ac_cv_search_strerror -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -4989,10 +4729,6 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -if test "$ac_prog_cxx_stdcxx" != cxx11; then - as_fn_error $? "the compiler does not support C++11" "$LINENO" 5 -fi - LINKER="$CXX" if test x$GCC = xyes && test x$GXX = xyes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 @@ -5271,7 +5007,6 @@ support_fading=no support_keepscrolling=no support_selectionscrolling=no - support_lastlog=no support_mousewheel=no support_mouseslipwheel=no support_text_blink=no @@ -5279,8 +5014,6 @@ support_scroll_rxvt=no support_scroll_next=no support_scroll_xterm=no - support_utmp=no - support_wtmp=no support_xim=no support_pixbuf=no support_startup_notification=no @@ -5299,7 +5032,6 @@ support_fading=yes support_keepscrolling=yes support_selectionscrolling=yes - support_lastlog=yes support_mousewheel=yes support_mouseslipwheel=yes support_text_blink=yes @@ -5307,8 +5039,6 @@ support_scroll_rxvt=yes support_scroll_next=yes support_scroll_xterm=yes - support_utmp=yes - support_wtmp=yes support_xim=yes support_pixbuf=yes support_startup_notification=yes @@ -5352,7 +5082,15 @@ if test x$GXX = xyes; then if test $support_warnings = yes; then save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value" + for warning in \ + -Wall \ + -Wno-parentheses \ + -Wno-reorder \ + -Wno-sign-compare \ + -Wno-unused-value \ + ; do + CXXFLAGS="$CXXFLAGS $warning" + done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -7107,6 +6845,28 @@ fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libptytty (using pkg-config)" >&5 +printf %s "checking for libptytty (using pkg-config)... " >&6; } + if test $PKG_CONFIG != no && $PKG_CONFIG --exists libptytty; then + PTYTTY_CFLAGS="`$PKG_CONFIG --cflags libptytty`" + PTYTTY_LIBS="`$PKG_CONFIG --libs libptytty`" + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +printf "%s\n" "ok" >&6; } + : + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + + as_fn_error $? "unable to find libptytty" "$LINENO" 5 + + fi + + + + + image_lib=none PIXBUF_CFLAGS= @@ -7114,8 +6874,8 @@ if test x$support_pixbuf = xyes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0" >&5 -printf %s "checking for gdk-pixbuf-2.0... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0 (using pkg-config)" >&5 +printf %s "checking for gdk-pixbuf-2.0 (using pkg-config)... " >&6; } if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`" PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`" @@ -7144,8 +6904,8 @@ if test x$support_startup_notification = xyes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0" >&5 -printf %s "checking for libstartup-notification-1.0... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0 (using pkg-config)" >&5 +printf %s "checking for libstartup-notification-1.0 (using pkg-config)... " >&6; } if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`" STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`" @@ -7170,8 +6930,8 @@ if test x$support_frills = xyes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmu" >&5 -printf %s "checking for xmu... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmu (using pkg-config)" >&5 +printf %s "checking for xmu (using pkg-config)... " >&6; } if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`" XMU_LIBS="`$PKG_CONFIG --libs xmu`" @@ -7542,351 +7302,6 @@ -support_utmp=yes -support_wtmp=yes -support_lastlog=yes - -# Check whether --enable-utmp was given. -if test ${enable_utmp+y} -then : - enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then - support_utmp=$enableval - fi -fi - - -# Check whether --enable-wtmp was given. -if test ${enable_wtmp+y} -then : - enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then - support_wtmp=$enableval - fi -fi - - -# Check whether --enable-lastlog was given. -if test ${enable_lastlog+y} -then : - enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then - support_lastlog=$enableval - fi -fi - - -if test x$support_utmp = xyes; then - -printf "%s\n" "#define UTMP_SUPPORT 1" >>confdefs.h - -fi -if test x$support_wtmp = xyes; then - -printf "%s\n" "#define WTMP_SUPPORT 1" >>confdefs.h - -fi -if test x$support_lastlog = xyes; then - -printf "%s\n" "#define LASTLOG_SUPPORT 1" >>confdefs.h - -fi - -ac_fn_cxx_check_func "$LINENO" "updwtmp" "ac_cv_func_updwtmp" -if test "x$ac_cv_func_updwtmp" = xyes -then : - printf "%s\n" "#define HAVE_UPDWTMP 1" >>confdefs.h - -fi -ac_fn_cxx_check_func "$LINENO" "updwtmpx" "ac_cv_func_updwtmpx" -if test "x$ac_cv_func_updwtmpx" = xyes -then : - printf "%s\n" "#define HAVE_UPDWTMPX 1" >>confdefs.h - -fi -ac_fn_cxx_check_func "$LINENO" "updlastlogx" "ac_cv_func_updlastlogx" -if test "x$ac_cv_func_updlastlogx" = xyes -then : - printf "%s\n" "#define HAVE_UPDLASTLOGX 1" >>confdefs.h - -fi - - -ac_fn_cxx_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default" -if test "x$ac_cv_header_lastlog_h" = xyes -then : - printf "%s\n" "#define HAVE_LASTLOG_H 1" >>confdefs.h - -fi - - -case $host in - *-*-solaris*) - -printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h - - ;; -esac - - - for ac_header in utmp.h -do : - ac_fn_cxx_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" -if test "x$ac_cv_header_utmp_h" = xyes -then : - printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h - -ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" " -#include -#include - -" -if test "x$ac_cv_type_struct_utmp" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_UTMP 1" >>confdefs.h - - -fi - - -ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " -#include -#include - -" -if test "x$ac_cv_member_struct_utmp_ut_host" = xyes -then : - -printf "%s\n" "#define HAVE_UTMP_HOST 1" >>confdefs.h - -fi - - -ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " -#include -#include - -" -if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes -then : - -printf "%s\n" "#define HAVE_UTMP_PID 1" >>confdefs.h - -fi - - -fi - -done - - for ac_header in utmpx.h -do : - ac_fn_cxx_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" -if test "x$ac_cv_header_utmpx_h" = xyes -then : - printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h - -ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" " -#include -#include - -" -if test "x$ac_cv_type_struct_utmpx" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_UTMPX 1" >>confdefs.h - - -fi - - -ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" " -#include -#include - -" -if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes -then : - -printf "%s\n" "#define HAVE_UTMPX_HOST 1" >>confdefs.h - -fi - - -fi - -done -ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " -#include -#include -#ifdef HAVE_LASTLOG_H -#include -#endif - -" -if test "x$ac_cv_type_struct_lastlog" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_LASTLOG 1" >>confdefs.h - - -fi - - -ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" " -#include -#include -#ifdef HAVE_LASTLOG_H -#include -#endif - -" -if test "x$ac_cv_type_struct_lastlogx" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_LASTLOGX 1" >>confdefs.h - - -fi - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5 -printf %s "checking for a fallback location of utmp... " >&6; } -if test ${pt_cv_path_utmp+y} -then : - printf %s "(cached) " >&6 -else $as_nop - -if test "$cross_compiling" != yes; then - for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do - if test -f "$file"; then - pt_cv_path_utmp=$file - break - fi - done -fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 -printf "%s\n" "$pt_cv_path_utmp" >&6; } -if test x$pt_cv_path_utmp != x; then - -printf "%s\n" "#define PT_UTMP_FILE \"$pt_cv_path_utmp\"" >>confdefs.h - -elif test "$cross_compiling" = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5 -printf "%s\n" "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;} -fi - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5 -printf %s "checking for a fallback location of wtmp... " >&6; } -if test ${pt_cv_path_wtmp+y} -then : - printf %s "(cached) " >&6 -else $as_nop - -if test "$cross_compiling" != yes; then - for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do - if test -f "$file"; then - pt_cv_path_wtmp=$file - break - fi - done -fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 -printf "%s\n" "$pt_cv_path_wtmp" >&6; } -if test x$pt_cv_path_wtmp != x; then - -printf "%s\n" "#define PT_WTMP_FILE \"$pt_cv_path_wtmp\"" >>confdefs.h - -elif test "$cross_compiling" = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5 -printf "%s\n" "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;} -fi - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5 -printf %s "checking for a fallback location of wtmpx... " >&6; } -if test ${pt_cv_path_wtmpx+y} -then : - printf %s "(cached) " >&6 -else $as_nop - -if test "$cross_compiling" != yes; then - for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do - if test -f "$file"; then - pt_cv_path_wtmpx=$file - break - fi - done -fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 -printf "%s\n" "$pt_cv_path_wtmpx" >&6; } -if test x$pt_cv_path_wtmpx != x; then - -printf "%s\n" "#define PT_WTMPX_FILE \"$pt_cv_path_wtmpx\"" >>confdefs.h - -elif test "$cross_compiling" = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5 -printf "%s\n" "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;} -fi - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5 -printf %s "checking for a fallback location of lastlog... " >&6; } -if test ${pt_cv_path_lastlog+y} -then : - printf %s "(cached) " >&6 -else $as_nop - -if test "$cross_compiling" != yes; then - for file in "/var/log/lastlog" "/var/adm/lastlog"; do - if test -f "$file"; then - pt_cv_path_lastlog=$file - break - fi - done -fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 -printf "%s\n" "$pt_cv_path_lastlog" >&6; } -if test x$pt_cv_path_lastlog != x; then - -printf "%s\n" "#define PT_LASTLOG_FILE \"$pt_cv_path_lastlog\"" >>confdefs.h - -elif test "$cross_compiling" = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5 -printf "%s\n" "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;} -fi - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5 -printf %s "checking for a fallback location of lastlogx... " >&6; } -if test ${pt_cv_path_lastlogx+y} -then : - printf %s "(cached) " >&6 -else $as_nop - -if test "$cross_compiling" != yes; then - for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do - if test -f "$file"; then - pt_cv_path_lastlogx=$file - break - fi - done -fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 -printf "%s\n" "$pt_cv_path_lastlogx" >&6; } -if test x$pt_cv_path_lastlogx != x; then - -printf "%s\n" "#define PT_LASTLOGX_FILE \"$pt_cv_path_lastlogx\"" >>confdefs.h - -elif test "$cross_compiling" = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5 -printf "%s\n" "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;} -fi - - - save_LIBS=$LIBS save_CXXFLAGS=$CXXFLAGS @@ -8043,396 +7458,6 @@ fi - - -case $host in - *-*-solaris*) - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#if __STDC_VERSION__ >= 199901L -error -#endif - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO" -then : - printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h - -else $as_nop - printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h - -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 -printf %s "checking for library containing sendmsg... " >&6; } -if test ${ac_cv_search_sendmsg+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -namespace conftest { - extern "C" int sendmsg (); -} -int -main (void) -{ -return conftest::sendmsg (); - ; - return 0; -} -_ACEOF -for ac_lib in '' socket -do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO" -then : - ac_cv_search_sendmsg=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_sendmsg+y} -then : - break -fi -done -if test ${ac_cv_search_sendmsg+y} -then : - -else $as_nop - ac_cv_search_sendmsg=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 -printf "%s\n" "$ac_cv_search_sendmsg" >&6; } -ac_res=$ac_cv_search_sendmsg -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - - ;; -esac - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 -printf %s "checking for unix-compliant filehandle passing ability... " >&6; } -if test ${pt_cv_can_pass_fds+y} -then : - printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include // broken bsds (is that redundant?) need this -#include -#include -#include - -int -main (void) -{ - -{ - msghdr msg; - iovec iov; - char buf [100]; - char data = 0; - - iov.iov_base = &data; - iov.iov_len = 1; - - msg.msg_iov = &iov; - msg.msg_iovlen = 1; - msg.msg_control = buf; - msg.msg_controllen = sizeof buf; - - cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); - cmsg->cmsg_level = SOL_SOCKET; - cmsg->cmsg_type = SCM_RIGHTS; - cmsg->cmsg_len = 100; - - *(int *)CMSG_DATA (cmsg) = 5; - - return sendmsg (3, &msg, 0); -} - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_link "$LINENO" -then : - pt_cv_can_pass_fds=yes -else $as_nop - pt_cv_can_pass_fds=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5 -printf "%s\n" "$pt_cv_can_pass_fds" >&6; } -if test x$pt_cv_can_pass_fds = xyes; then - -printf "%s\n" "#define HAVE_UNIX_FDPASS 1" >>confdefs.h - -else - as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5 -fi - - - -ac_fn_cxx_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default" -if test "x$ac_cv_header_pty_h" = xyes -then : - printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h - -fi -ac_fn_cxx_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default" -if test "x$ac_cv_header_util_h" = xyes -then : - printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h - -fi -ac_fn_cxx_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" -if test "x$ac_cv_header_libutil_h" = xyes -then : - printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h - -fi -ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_ioctl_h" = xyes -then : - printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h - -fi -ac_fn_cxx_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" -if test "x$ac_cv_header_stropts_h" = xyes -then : - printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h - -fi - - -ac_fn_cxx_check_func "$LINENO" "revoke" "ac_cv_func_revoke" -if test "x$ac_cv_func_revoke" = xyes -then : - printf "%s\n" "#define HAVE_REVOKE 1" >>confdefs.h - -fi -ac_fn_cxx_check_func "$LINENO" "_getpty" "ac_cv_func__getpty" -if test "x$ac_cv_func__getpty" = xyes -then : - printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h - -fi -ac_fn_cxx_check_func "$LINENO" "getpt" "ac_cv_func_getpt" -if test "x$ac_cv_func_getpt" = xyes -then : - printf "%s\n" "#define HAVE_GETPT 1" >>confdefs.h - -fi -ac_fn_cxx_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt" -if test "x$ac_cv_func_posix_openpt" = xyes -then : - printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h - -fi -ac_fn_cxx_check_func "$LINENO" "isastream" "ac_cv_func_isastream" -if test "x$ac_cv_func_isastream" = xyes -then : - printf "%s\n" "#define HAVE_ISASTREAM 1" >>confdefs.h - -fi -ac_fn_cxx_check_func "$LINENO" "setuid" "ac_cv_func_setuid" -if test "x$ac_cv_func_setuid" = xyes -then : - printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h - -fi -ac_fn_cxx_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" -if test "x$ac_cv_func_seteuid" = xyes -then : - printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h - -fi -ac_fn_cxx_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" -if test "x$ac_cv_func_setreuid" = xyes -then : - printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h - -fi -ac_fn_cxx_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" -if test "x$ac_cv_func_setresuid" = xyes -then : - printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h - -fi - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 -printf %s "checking for UNIX98 ptys... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main (void) -{ -grantpt(0);unlockpt(0);ptsname(0); - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_link "$LINENO" -then : - unix98_pty=yes - -printf "%s\n" "#define UNIX98_PTY 1" >>confdefs.h - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - -if test -z "$unix98_pty"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 -printf %s "checking for library containing openpty... " >&6; } -if test ${ac_cv_search_openpty+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -namespace conftest { - extern "C" int openpty (); -} -int -main (void) -{ -return conftest::openpty (); - ; - return 0; -} -_ACEOF -for ac_lib in '' util -do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO" -then : - ac_cv_search_openpty=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_openpty+y} -then : - break -fi -done -if test ${ac_cv_search_openpty+y} -then : - -else $as_nop - ac_cv_search_openpty=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 -printf "%s\n" "$ac_cv_search_openpty" >&6; } -ac_res=$ac_cv_search_openpty -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h - -fi - -fi - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5 -printf %s "checking for tty group... " >&6; } -if test ${pt_cv_tty_group+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes -then : - pt_cv_tty_group=no -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#include -#include -#include - -int main() -{ - struct stat st; - struct group *gr; - char *tty; - gr = getgrnam("tty"); - tty = ttyname(0); - if (gr != 0 - && tty != 0 - && (stat(tty, &st)) == 0 - && st.st_gid == gr->gr_gid) - return 0; - else - return 1; -} -_ACEOF -if ac_fn_cxx_try_run "$LINENO" -then : - pt_cv_tty_group=yes -else $as_nop - pt_cv_tty_group=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5 -printf "%s\n" "$pt_cv_tty_group" >&6; } -if test x$pt_cv_tty_group = xyes; then - -printf "%s\n" "#define TTY_GID_SUPPORT 1" >>confdefs.h - -fi - support_image=no if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then support_image=yes @@ -8440,8 +7465,8 @@ if test x$support_xft = xyes || test x$support_image = xyes; then rxvt_have_xrender=no - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender" >&5 -printf %s "checking for xrender... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender (using pkg-config)" >&5 +printf %s "checking for xrender (using pkg-config)... " >&6; } if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`" XRENDER_LIBS="`$PKG_CONFIG --libs xrender`" @@ -8483,8 +7508,8 @@ if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft" >&5 -printf %s "checking for fontconfig xft... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft (using pkg-config)" >&5 +printf %s "checking for fontconfig xft (using pkg-config)... " >&6; } if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`" XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`" @@ -8807,6 +7832,28 @@ + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xext (using pkg-config)" >&5 +printf %s "checking for xext (using pkg-config)... " >&6; } + if test $PKG_CONFIG != no && $PKG_CONFIG --exists xext; then + XEXT_CFLAGS="`$PKG_CONFIG --cflags xext`" + XEXT_LIBS="`$PKG_CONFIG --libs xext`" + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +printf "%s\n" "ok" >&6; } + : + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + + as_fn_error $? "unable to find xext, required for perl" "$LINENO" 5 + + fi + + + X_LIBS="$XEXT_LIBS $X_LIBS" + CPPFLAGS="$CPPFLAGS $XEXT_CFLAGS" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5 printf %s "checking for $PERL suitability... " >&6; } if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then