… | |
… | |
2738 | IFS=$ac_save_IFS |
2738 | IFS=$ac_save_IFS |
2739 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
2739 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
2740 | |
2740 | |
2741 | |
2741 | |
2742 | |
2742 | |
2743 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
2743 | VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
2744 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
2744 | DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
2745 | |
2745 | |
2746 | echo "" |
2746 | echo "" |
2747 | echo "configuring for rxvt $VERSION" |
2747 | echo "configuring for rxvt $VERSION" |
2748 | echo "" |
2748 | echo "" |
2749 | |
2749 | |
… | |
… | |
4412 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4412 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4413 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4413 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4414 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4414 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4415 | |
4415 | |
4416 | |
4416 | |
|
|
4417 | LINKER="$CXX" |
4417 | if test x$GCC = xyes && test x$GXX = xyes; then |
4418 | if test x$GCC = xyes && test x$GXX = xyes; then |
4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 |
4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 |
4419 | $as_echo_n "checking for working libsupc++... " >&6; } |
4420 | $as_echo_n "checking for working libsupc++... " >&6; } |
4420 | save_CXX="$CXX" |
4421 | save_CXX="$CXX" |
4421 | save_LIBS="$LIBS" |
4422 | save_LIBS="$LIBS" |
4422 | CXX="$CC" |
4423 | CXX="$CC" |
4423 | LIBS="$LIBS -lsupc++" |
4424 | LIBS="$LIBS -lsupc++" |
4424 | LINKER="$CC" |
|
|
4425 | |
4425 | |
4426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4427 | /* end confdefs.h. */ |
4427 | /* end confdefs.h. */ |
4428 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
4428 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
4429 | int |
4429 | int |
… | |
… | |
4435 | } |
4435 | } |
4436 | _ACEOF |
4436 | _ACEOF |
4437 | if ac_fn_cxx_try_link "$LINENO"; then : |
4437 | if ac_fn_cxx_try_link "$LINENO"; then : |
4438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
4438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
4439 | $as_echo "ok" >&6; } |
4439 | $as_echo "ok" >&6; } |
|
|
4440 | LINKER="$CC" |
4440 | else |
4441 | else |
4441 | |
4442 | |
4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5 |
4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5 |
4443 | $as_echo "no, making everything bigger and slower" >&6; } |
4444 | $as_echo "no, making everything bigger and slower" >&6; } |
4444 | LIBS="$save_LIBS" |
4445 | LIBS="$save_LIBS" |
4445 | LINKER="$save_CXX" |
|
|
4446 | |
4446 | |
4447 | |
4447 | |
4448 | fi |
4448 | fi |
4449 | rm -f core conftest.err conftest.$ac_objext \ |
4449 | rm -f core conftest.err conftest.$ac_objext \ |
4450 | conftest$ac_exeext conftest.$ac_ext |
4450 | conftest$ac_exeext conftest.$ac_ext |
… | |
… | |
4476 | else |
4476 | else |
4477 | CXXFLAGS="-O" |
4477 | CXXFLAGS="-O" |
4478 | fi |
4478 | fi |
4479 | CFLAGS="$CXXFLAGS" |
4479 | CFLAGS="$CXXFLAGS" |
4480 | fi |
4480 | fi |
4481 | |
|
|
4482 | case $host in |
|
|
4483 | *-*-solaris* ) |
|
|
4484 | |
|
|
4485 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
4486 | |
|
|
4487 | ;; |
|
|
4488 | esac |
|
|
4489 | |
4481 | |
4490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5 |
4482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5 |
4491 | $as_echo_n "checking for library containing setlocale... " >&6; } |
4483 | $as_echo_n "checking for library containing setlocale... " >&6; } |
4492 | if test "${ac_cv_search_setlocale+set}" = set; then : |
4484 | if test "${ac_cv_search_setlocale+set}" = set; then : |
4493 | $as_echo_n "(cached) " >&6 |
4485 | $as_echo_n "(cached) " >&6 |
… | |
… | |
6512 | sys/ioctl.h \ |
6504 | sys/ioctl.h \ |
6513 | sys/sockio.h \ |
6505 | sys/sockio.h \ |
6514 | sys/strredir.h \ |
6506 | sys/strredir.h \ |
6515 | stdint.h \ |
6507 | stdint.h \ |
6516 | wchar.h \ |
6508 | wchar.h \ |
6517 | cwchar \ |
|
|
6518 | |
6509 | |
6519 | do : |
6510 | do : |
6520 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6511 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6521 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
6512 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
6522 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6513 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
… | |
… | |
6752 | |
6743 | |
6753 | fi |
6744 | fi |
6754 | |
6745 | |
6755 | done |
6746 | done |
6756 | |
6747 | |
|
|
6748 | |
|
|
6749 | case $host in |
|
|
6750 | *-*-solaris*) |
|
|
6751 | |
|
|
6752 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
|
|
6753 | |
|
|
6754 | ;; |
|
|
6755 | esac |
6757 | |
6756 | |
6758 | |
6757 | |
6759 | for ac_header in utmp.h |
6758 | for ac_header in utmp.h |
6760 | do : |
6759 | do : |
6761 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" |
6760 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" |
… | |
… | |
6896 | $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h |
6895 | $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h |
6897 | |
6896 | |
6898 | fi |
6897 | fi |
6899 | |
6898 | |
6900 | |
6899 | |
6901 | ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_session" "ac_cv_member_struct_utmpx_ut_session" " |
|
|
6902 | #include <sys/types.h> |
|
|
6903 | #include <utmpx.h> |
|
|
6904 | |
|
|
6905 | " |
|
|
6906 | if test "x$ac_cv_member_struct_utmpx_ut_session" = x""yes; then : |
|
|
6907 | |
|
|
6908 | $as_echo "#define HAVE_UTMPX_SESSION 1" >>confdefs.h |
|
|
6909 | |
|
|
6910 | fi |
|
|
6911 | |
|
|
6912 | |
|
|
6913 | fi |
6900 | fi |
6914 | |
6901 | |
6915 | done |
6902 | done |
6916 | |
6903 | |
6917 | ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " |
6904 | ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " |
… | |
… | |
7041 | if test "${pt_cv_path_lastlog+set}" = set; then : |
7028 | if test "${pt_cv_path_lastlog+set}" = set; then : |
7042 | $as_echo_n "(cached) " >&6 |
7029 | $as_echo_n "(cached) " >&6 |
7043 | else |
7030 | else |
7044 | |
7031 | |
7045 | if test "$cross_compiling" != yes; then |
7032 | if test "$cross_compiling" != yes; then |
7046 | for file in "/var/log/lastlog"; do |
7033 | for file in "/var/log/lastlog" "/var/adm/lastlog"; do |
7047 | if test -f "$file"; then |
7034 | if test -f "$file"; then |
7048 | pt_cv_path_lastlog=$file |
7035 | pt_cv_path_lastlog=$file |
7049 | break |
7036 | break |
7050 | fi |
7037 | fi |
7051 | done |
7038 | done |
… | |
… | |
7214 | if test "${rxvt_cv_func_setlocale+set}" = set; then : |
7201 | if test "${rxvt_cv_func_setlocale+set}" = set; then : |
7215 | $as_echo_n "(cached) " >&6 |
7202 | $as_echo_n "(cached) " >&6 |
7216 | else |
7203 | else |
7217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7218 | /* end confdefs.h. */ |
7205 | /* end confdefs.h. */ |
7219 | #include <clocale> |
7206 | #include <locale.h> |
7220 | int |
7207 | int |
7221 | main () |
7208 | main () |
7222 | { |
7209 | { |
7223 | setlocale(LC_CTYPE, ""); |
7210 | setlocale(LC_CTYPE, ""); |
7224 | ; |
7211 | ; |
… | |
… | |
7272 | $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
7259 | $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
7273 | |
7260 | |
7274 | fi |
7261 | fi |
7275 | |
7262 | |
7276 | |
7263 | |
|
|
7264 | case $host in |
|
|
7265 | *-*-solaris*) |
|
|
7266 | |
|
|
7267 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
7268 | |
|
|
7269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 |
|
|
7270 | $as_echo_n "checking for library containing sendmsg... " >&6; } |
|
|
7271 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7272 | $as_echo_n "(cached) " >&6 |
|
|
7273 | else |
|
|
7274 | ac_func_search_save_LIBS=$LIBS |
|
|
7275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7276 | /* end confdefs.h. */ |
|
|
7277 | |
|
|
7278 | /* Override any GCC internal prototype to avoid an error. |
|
|
7279 | Use char because int might match the return type of a GCC |
|
|
7280 | builtin and then its argument prototype would still apply. */ |
|
|
7281 | #ifdef __cplusplus |
|
|
7282 | extern "C" |
|
|
7283 | #endif |
|
|
7284 | char sendmsg (); |
|
|
7285 | int |
|
|
7286 | main () |
|
|
7287 | { |
|
|
7288 | return sendmsg (); |
|
|
7289 | ; |
|
|
7290 | return 0; |
|
|
7291 | } |
|
|
7292 | _ACEOF |
|
|
7293 | for ac_lib in '' socket; do |
|
|
7294 | if test -z "$ac_lib"; then |
|
|
7295 | ac_res="none required" |
|
|
7296 | else |
|
|
7297 | ac_res=-l$ac_lib |
|
|
7298 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7299 | fi |
|
|
7300 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7301 | ac_cv_search_sendmsg=$ac_res |
|
|
7302 | fi |
|
|
7303 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7304 | conftest$ac_exeext |
|
|
7305 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7306 | break |
|
|
7307 | fi |
|
|
7308 | done |
|
|
7309 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7310 | |
|
|
7311 | else |
|
|
7312 | ac_cv_search_sendmsg=no |
|
|
7313 | fi |
|
|
7314 | rm conftest.$ac_ext |
|
|
7315 | LIBS=$ac_func_search_save_LIBS |
|
|
7316 | fi |
|
|
7317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 |
|
|
7318 | $as_echo "$ac_cv_search_sendmsg" >&6; } |
|
|
7319 | ac_res=$ac_cv_search_sendmsg |
|
|
7320 | if test "$ac_res" != no; then : |
|
|
7321 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7322 | |
|
|
7323 | fi |
|
|
7324 | |
|
|
7325 | ;; |
|
|
7326 | esac |
|
|
7327 | |
7277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 |
7328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 |
7278 | $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; } |
7329 | $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; } |
7279 | if test "${pt_cv_can_pass_fds+set}" = set; then : |
7330 | if test "${pt_cv_can_pass_fds+set}" = set; then : |
7280 | $as_echo_n "(cached) " >&6 |
7331 | $as_echo_n "(cached) " >&6 |
7281 | else |
7332 | else |
7282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7283 | /* end confdefs.h. */ |
7334 | /* end confdefs.h. */ |
7284 | |
7335 | |
7285 | #include <cstddef> // broken bsds (is that redundant?) need this |
7336 | #include <stddef.h> // broken bsds (is that redundant?) need this |
7286 | #include <sys/types.h> |
7337 | #include <sys/types.h> |
7287 | #include <sys/socket.h> |
7338 | #include <sys/socket.h> |
7288 | #include <sys/uio.h> |
7339 | #include <sys/uio.h> |
7289 | |
7340 | |
7290 | int |
7341 | int |