… | |
… | |
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 |
… | |
… | |
617 | CXXCPP |
614 | CXXCPP |
618 | RXVTNAME |
615 | RXVTNAME |
619 | LINKER |
616 | LINKER |
620 | EGREP |
617 | EGREP |
621 | GREP |
618 | GREP |
|
|
619 | CPP |
622 | INSTALL_DATA |
620 | INSTALL_DATA |
623 | INSTALL_SCRIPT |
621 | INSTALL_SCRIPT |
624 | INSTALL_PROGRAM |
622 | INSTALL_PROGRAM |
625 | CPP |
|
|
626 | ac_ct_CXX |
623 | ac_ct_CXX |
627 | CXXFLAGS |
624 | CXXFLAGS |
628 | CXX |
625 | CXX |
629 | OBJEXT |
626 | OBJEXT |
630 | EXEEXT |
627 | EXEEXT |
… | |
… | |
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 |
… | |
… | |
722 | enable_smart_resize |
717 | enable_smart_resize |
723 | enable_text_blink |
718 | enable_text_blink |
724 | enable_pointer_blank |
719 | enable_pointer_blank |
725 | with_term |
720 | with_term |
726 | with_terminfo |
721 | with_terminfo |
|
|
722 | enable_xdbe |
727 | with_x |
723 | with_x |
728 | enable_utmp |
724 | enable_utmp |
729 | enable_wtmp |
725 | enable_wtmp |
730 | enable_lastlog |
726 | enable_lastlog |
731 | ' |
727 | ' |
… | |
… | |
1367 | --enable-256-color enable 256-color support |
1363 | --enable-256-color enable 256-color support |
1368 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1364 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1369 | --enable-combining enable composition of base and combining characters |
1365 | --enable-combining enable composition of base and combining characters |
1370 | --enable-xft enable xft support on systems that have it |
1366 | --enable-xft enable xft support on systems that have it |
1371 | --enable-font-styles enable bold and italic support |
1367 | --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 |
1368 | --enable-pixbuf enable integration with gdk-pixbuf for background images |
1374 | --enable-startup-notification enable freedesktop startup notification support |
1369 | --enable-startup-notification enable freedesktop startup notification support |
1375 | --enable-transparency enable transparent backgrounds |
1370 | --enable-transparency enable transparent backgrounds |
1376 | --enable-fading enable colors fading when off focus |
1371 | --enable-fading enable colors fading when off focus |
1377 | --enable-rxvt-scroll enable rxvt style scrollbar |
1372 | --enable-rxvt-scroll enable rxvt style scrollbar |
… | |
… | |
1392 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1387 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1393 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1388 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1394 | --enable-smart-resize enable smart growth/shrink behaviour |
1389 | --enable-smart-resize enable smart growth/shrink behaviour |
1395 | --enable-text-blink enable blinking text |
1390 | --enable-text-blink enable blinking text |
1396 | --enable-pointer-blank enable pointer blanking when typing or inactive |
1391 | --enable-pointer-blank enable pointer blanking when typing or inactive |
|
|
1392 | --enable-xdbe enable support for double buffering |
1397 | --enable-utmp enable utmp (utmpx) support |
1393 | --enable-utmp enable utmp (utmpx) support |
1398 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1394 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1399 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
1395 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
1400 | |
1396 | |
1401 | Optional Packages: |
1397 | Optional Packages: |
1402 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1398 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1403 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1399 | --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) |
1400 | --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) |
1401 | --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) |
1402 | --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) |
1403 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1409 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1404 | --with-term=NAME set the terminal to NAME (default: rxvt) |
… | |
… | |
2738 | IFS=$ac_save_IFS |
2733 | IFS=$ac_save_IFS |
2739 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
2734 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
2740 | |
2735 | |
2741 | |
2736 | |
2742 | |
2737 | |
2743 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
2738 | 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` |
2739 | DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
2745 | |
2740 | |
2746 | echo "" |
2741 | echo "" |
2747 | echo "configuring for rxvt $VERSION" |
2742 | echo "configuring for rxvt $VERSION" |
2748 | echo "" |
2743 | echo "" |
2749 | |
2744 | |
… | |
… | |
3788 | CXXFLAGS="-O2" |
3783 | CXXFLAGS="-O2" |
3789 | else |
3784 | else |
3790 | CXXFLAGS= |
3785 | CXXFLAGS= |
3791 | fi |
3786 | fi |
3792 | fi |
3787 | fi |
3793 | ac_ext=c |
|
|
3794 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3795 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3796 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3797 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3798 | |
|
|
3799 | ac_ext=c |
|
|
3800 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3801 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3802 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3803 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
|
|
3805 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
|
|
3806 | # On Suns, sometimes $CPP names a directory. |
|
|
3807 | if test -n "$CPP" && test -d "$CPP"; then |
|
|
3808 | CPP= |
|
|
3809 | fi |
|
|
3810 | if test -z "$CPP"; then |
|
|
3811 | if test "${ac_cv_prog_CPP+set}" = set; then : |
|
|
3812 | $as_echo_n "(cached) " >&6 |
|
|
3813 | else |
|
|
3814 | # Double quotes because CPP needs to be expanded |
|
|
3815 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
|
3816 | do |
|
|
3817 | ac_preproc_ok=false |
|
|
3818 | for ac_c_preproc_warn_flag in '' yes |
|
|
3819 | do |
|
|
3820 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3821 | # with a fresh cross-compiler works. |
|
|
3822 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3823 | # <limits.h> exists even on freestanding compilers. |
|
|
3824 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3825 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3827 | /* end confdefs.h. */ |
|
|
3828 | #ifdef __STDC__ |
|
|
3829 | # include <limits.h> |
|
|
3830 | #else |
|
|
3831 | # include <assert.h> |
|
|
3832 | #endif |
|
|
3833 | Syntax error |
|
|
3834 | _ACEOF |
|
|
3835 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
3836 | |
|
|
3837 | else |
|
|
3838 | # Broken: fails on valid input. |
|
|
3839 | continue |
|
|
3840 | fi |
|
|
3841 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
3842 | |
|
|
3843 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
3844 | # can be detected and how. |
|
|
3845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3846 | /* end confdefs.h. */ |
|
|
3847 | #include <ac_nonexistent.h> |
|
|
3848 | _ACEOF |
|
|
3849 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
3850 | # Broken: success on invalid input. |
|
|
3851 | continue |
|
|
3852 | else |
|
|
3853 | # Passes both tests. |
|
|
3854 | ac_preproc_ok=: |
|
|
3855 | break |
|
|
3856 | fi |
|
|
3857 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
3858 | |
|
|
3859 | done |
|
|
3860 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3861 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
3862 | if $ac_preproc_ok; then : |
|
|
3863 | break |
|
|
3864 | fi |
|
|
3865 | |
|
|
3866 | done |
|
|
3867 | ac_cv_prog_CPP=$CPP |
|
|
3868 | |
|
|
3869 | fi |
|
|
3870 | CPP=$ac_cv_prog_CPP |
|
|
3871 | else |
|
|
3872 | ac_cv_prog_CPP=$CPP |
|
|
3873 | fi |
|
|
3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|
|
3875 | $as_echo "$CPP" >&6; } |
|
|
3876 | ac_preproc_ok=false |
|
|
3877 | for ac_c_preproc_warn_flag in '' yes |
|
|
3878 | do |
|
|
3879 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3880 | # with a fresh cross-compiler works. |
|
|
3881 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3882 | # <limits.h> exists even on freestanding compilers. |
|
|
3883 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3884 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3886 | /* end confdefs.h. */ |
|
|
3887 | #ifdef __STDC__ |
|
|
3888 | # include <limits.h> |
|
|
3889 | #else |
|
|
3890 | # include <assert.h> |
|
|
3891 | #endif |
|
|
3892 | Syntax error |
|
|
3893 | _ACEOF |
|
|
3894 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
3895 | |
|
|
3896 | else |
|
|
3897 | # Broken: fails on valid input. |
|
|
3898 | continue |
|
|
3899 | fi |
|
|
3900 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
3901 | |
|
|
3902 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
3903 | # can be detected and how. |
|
|
3904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3905 | /* end confdefs.h. */ |
|
|
3906 | #include <ac_nonexistent.h> |
|
|
3907 | _ACEOF |
|
|
3908 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
3909 | # Broken: success on invalid input. |
|
|
3910 | continue |
|
|
3911 | else |
|
|
3912 | # Passes both tests. |
|
|
3913 | ac_preproc_ok=: |
|
|
3914 | break |
|
|
3915 | fi |
|
|
3916 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
3917 | |
|
|
3918 | done |
|
|
3919 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3920 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
3921 | if $ac_preproc_ok; then : |
|
|
3922 | |
|
|
3923 | else |
|
|
3924 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
3925 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
3926 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|
|
3927 | See \`config.log' for more details" "$LINENO" 5 ; } |
|
|
3928 | fi |
|
|
3929 | |
|
|
3930 | ac_ext=c |
3788 | ac_ext=c |
3931 | ac_cpp='$CPP $CPPFLAGS' |
3789 | ac_cpp='$CPP $CPPFLAGS' |
3932 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3790 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3933 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3791 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3934 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3792 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
… | |
… | |
4026 | |
3884 | |
4027 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3885 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4028 | |
3886 | |
4029 | |
3887 | |
4030 | |
3888 | |
|
|
3889 | ac_ext=c |
|
|
3890 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
|
|
3895 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
|
|
3896 | # On Suns, sometimes $CPP names a directory. |
|
|
3897 | if test -n "$CPP" && test -d "$CPP"; then |
|
|
3898 | CPP= |
|
|
3899 | fi |
|
|
3900 | if test -z "$CPP"; then |
|
|
3901 | if test "${ac_cv_prog_CPP+set}" = set; then : |
|
|
3902 | $as_echo_n "(cached) " >&6 |
|
|
3903 | else |
|
|
3904 | # Double quotes because CPP needs to be expanded |
|
|
3905 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
|
3906 | do |
|
|
3907 | ac_preproc_ok=false |
|
|
3908 | for ac_c_preproc_warn_flag in '' yes |
|
|
3909 | do |
|
|
3910 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3911 | # with a fresh cross-compiler works. |
|
|
3912 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3913 | # <limits.h> exists even on freestanding compilers. |
|
|
3914 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3915 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3917 | /* end confdefs.h. */ |
|
|
3918 | #ifdef __STDC__ |
|
|
3919 | # include <limits.h> |
|
|
3920 | #else |
|
|
3921 | # include <assert.h> |
|
|
3922 | #endif |
|
|
3923 | Syntax error |
|
|
3924 | _ACEOF |
|
|
3925 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
3926 | |
|
|
3927 | else |
|
|
3928 | # Broken: fails on valid input. |
|
|
3929 | continue |
|
|
3930 | fi |
|
|
3931 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
3932 | |
|
|
3933 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
3934 | # can be detected and how. |
|
|
3935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3936 | /* end confdefs.h. */ |
|
|
3937 | #include <ac_nonexistent.h> |
|
|
3938 | _ACEOF |
|
|
3939 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
3940 | # Broken: success on invalid input. |
|
|
3941 | continue |
|
|
3942 | else |
|
|
3943 | # Passes both tests. |
|
|
3944 | ac_preproc_ok=: |
|
|
3945 | break |
|
|
3946 | fi |
|
|
3947 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
3948 | |
|
|
3949 | done |
|
|
3950 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3951 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
3952 | if $ac_preproc_ok; then : |
|
|
3953 | break |
|
|
3954 | fi |
|
|
3955 | |
|
|
3956 | done |
|
|
3957 | ac_cv_prog_CPP=$CPP |
|
|
3958 | |
|
|
3959 | fi |
|
|
3960 | CPP=$ac_cv_prog_CPP |
|
|
3961 | else |
|
|
3962 | ac_cv_prog_CPP=$CPP |
|
|
3963 | fi |
|
|
3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|
|
3965 | $as_echo "$CPP" >&6; } |
|
|
3966 | ac_preproc_ok=false |
|
|
3967 | for ac_c_preproc_warn_flag in '' yes |
|
|
3968 | do |
|
|
3969 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3970 | # with a fresh cross-compiler works. |
|
|
3971 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3972 | # <limits.h> exists even on freestanding compilers. |
|
|
3973 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3974 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3976 | /* end confdefs.h. */ |
|
|
3977 | #ifdef __STDC__ |
|
|
3978 | # include <limits.h> |
|
|
3979 | #else |
|
|
3980 | # include <assert.h> |
|
|
3981 | #endif |
|
|
3982 | Syntax error |
|
|
3983 | _ACEOF |
|
|
3984 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
3985 | |
|
|
3986 | else |
|
|
3987 | # Broken: fails on valid input. |
|
|
3988 | continue |
|
|
3989 | fi |
|
|
3990 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
3991 | |
|
|
3992 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
3993 | # can be detected and how. |
|
|
3994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3995 | /* end confdefs.h. */ |
|
|
3996 | #include <ac_nonexistent.h> |
|
|
3997 | _ACEOF |
|
|
3998 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
3999 | # Broken: success on invalid input. |
|
|
4000 | continue |
|
|
4001 | else |
|
|
4002 | # Passes both tests. |
|
|
4003 | ac_preproc_ok=: |
|
|
4004 | break |
|
|
4005 | fi |
|
|
4006 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
4007 | |
|
|
4008 | done |
|
|
4009 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4010 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
4011 | if $ac_preproc_ok; then : |
|
|
4012 | |
|
|
4013 | else |
|
|
4014 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
4015 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
4016 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|
|
4017 | See \`config.log' for more details" "$LINENO" 5 ; } |
|
|
4018 | fi |
|
|
4019 | |
|
|
4020 | ac_ext=c |
|
|
4021 | ac_cpp='$CPP $CPPFLAGS' |
|
|
4022 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4023 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4024 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
4025 | |
4031 | |
4026 | |
4032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4033 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4028 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4034 | if test "${ac_cv_path_GREP+set}" = set; then : |
4029 | if test "${ac_cv_path_GREP+set}" = set; then : |
4035 | $as_echo_n "(cached) " >&6 |
4030 | $as_echo_n "(cached) " >&6 |
… | |
… | |
4412 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4407 | 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' |
4408 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4414 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4409 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4415 | |
4410 | |
4416 | |
4411 | |
|
|
4412 | LINKER="$CXX" |
4417 | if test x$GCC = xyes && test x$GXX = xyes; then |
4413 | if test x$GCC = xyes && test x$GXX = xyes; then |
4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 |
4414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 |
4419 | $as_echo_n "checking for working libsupc++... " >&6; } |
4415 | $as_echo_n "checking for working libsupc++... " >&6; } |
4420 | save_CXX="$CXX" |
4416 | save_CXX="$CXX" |
4421 | save_LIBS="$LIBS" |
4417 | save_LIBS="$LIBS" |
4422 | CXX="$CC" |
4418 | CXX="$CC" |
4423 | LIBS="$LIBS -lsupc++" |
4419 | LIBS="$LIBS -lsupc++" |
4424 | LINKER="$CC" |
|
|
4425 | |
4420 | |
4426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4427 | /* end confdefs.h. */ |
4422 | /* end confdefs.h. */ |
4428 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
4423 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
4429 | int |
4424 | int |
… | |
… | |
4435 | } |
4430 | } |
4436 | _ACEOF |
4431 | _ACEOF |
4437 | if ac_fn_cxx_try_link "$LINENO"; then : |
4432 | if ac_fn_cxx_try_link "$LINENO"; then : |
4438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
4439 | $as_echo "ok" >&6; } |
4434 | $as_echo "ok" >&6; } |
|
|
4435 | LINKER="$CC" |
4440 | else |
4436 | else |
4441 | |
4437 | |
4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5 |
4438 | { $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; } |
4439 | $as_echo "no, making everything bigger and slower" >&6; } |
4444 | LIBS="$save_LIBS" |
4440 | LIBS="$save_LIBS" |
4445 | LINKER="$save_CXX" |
|
|
4446 | |
4441 | |
4447 | |
4442 | |
4448 | fi |
4443 | fi |
4449 | rm -f core conftest.err conftest.$ac_objext \ |
4444 | rm -f core conftest.err conftest.$ac_objext \ |
4450 | conftest$ac_exeext conftest.$ac_ext |
4445 | conftest$ac_exeext conftest.$ac_ext |
… | |
… | |
4476 | else |
4471 | else |
4477 | CXXFLAGS="-O" |
4472 | CXXFLAGS="-O" |
4478 | fi |
4473 | fi |
4479 | CFLAGS="$CXXFLAGS" |
4474 | CFLAGS="$CXXFLAGS" |
4480 | fi |
4475 | fi |
4481 | |
|
|
4482 | case $host in |
|
|
4483 | *-*-solaris* ) |
|
|
4484 | |
|
|
4485 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
4486 | |
|
|
4487 | ;; |
|
|
4488 | esac |
|
|
4489 | |
4476 | |
4490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5 |
4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5 |
4491 | $as_echo_n "checking for library containing setlocale... " >&6; } |
4478 | $as_echo_n "checking for library containing setlocale... " >&6; } |
4492 | if test "${ac_cv_search_setlocale+set}" = set; then : |
4479 | if test "${ac_cv_search_setlocale+set}" = set; then : |
4493 | $as_echo_n "(cached) " >&6 |
4480 | $as_echo_n "(cached) " >&6 |
… | |
… | |
4677 | support_combining=yes |
4664 | support_combining=yes |
4678 | support_8bitctrls=no |
4665 | support_8bitctrls=no |
4679 | support_iso14755=yes |
4666 | support_iso14755=yes |
4680 | support_styles=yes |
4667 | support_styles=yes |
4681 | support_perl=yes |
4668 | support_perl=yes |
|
|
4669 | support_xdbe=yes |
4682 | codesets=all |
4670 | codesets=all |
4683 | |
4671 | |
4684 | |
4672 | |
4685 | # Check whether --enable-everything was given. |
4673 | # Check whether --enable-everything was given. |
4686 | if test "${enable_everything+set}" = set; then : |
4674 | if test "${enable_everything+set}" = set; then : |
4687 | enableval=$enable_everything; |
4675 | enableval=$enable_everything; |
4688 | if test x$enableval = xno; then |
4676 | if test x$enableval = xno; then |
4689 | support_frills=no |
4677 | support_frills=no |
|
|
4678 | support_xdbe=no |
4690 | support_inheritpixmap=no |
4679 | support_inheritpixmap=no |
4691 | support_fading=no |
4680 | support_fading=no |
4692 | support_keepscrolling=no |
4681 | support_keepscrolling=no |
4693 | support_selectionscrolling=no |
4682 | support_selectionscrolling=no |
4694 | support_lastlog=no |
4683 | support_lastlog=no |
… | |
… | |
4709 | support_combining=no |
4698 | support_combining=no |
4710 | support_8bitctrls=no |
4699 | support_8bitctrls=no |
4711 | support_iso14755=no |
4700 | support_iso14755=no |
4712 | support_styles=no |
4701 | support_styles=no |
4713 | support_perl=no |
4702 | support_perl=no |
|
|
4703 | support_xdbe=no |
4714 | codesets= |
4704 | codesets= |
4715 | fi |
4705 | fi |
4716 | if test x$enableval = xyes; then |
4706 | if test x$enableval = xyes; then |
4717 | support_frills=yes |
4707 | support_frills=yes |
4718 | support_inheritpixmap=yes |
4708 | support_inheritpixmap=yes |
… | |
… | |
4737 | support_combining=yes |
4727 | support_combining=yes |
4738 | #support_8bitctrls=yes |
4728 | #support_8bitctrls=yes |
4739 | support_iso14755=yes |
4729 | support_iso14755=yes |
4740 | support_styles=yes |
4730 | support_styles=yes |
4741 | support_perl=yes |
4731 | support_perl=yes |
|
|
4732 | support_xdbe=yes |
4742 | codesets=all |
4733 | codesets=all |
4743 | fi |
4734 | fi |
4744 | |
4735 | |
4745 | fi |
4736 | fi |
4746 | |
4737 | |
… | |
… | |
4833 | |
4824 | |
4834 | # Check whether --enable-font-styles was given. |
4825 | # Check whether --enable-font-styles was given. |
4835 | if test "${enable_font_styles+set}" = set; then : |
4826 | if test "${enable_font_styles+set}" = set; then : |
4836 | enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then |
4827 | enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then |
4837 | support_styles=$enableval |
4828 | support_styles=$enableval |
4838 | fi |
|
|
4839 | fi |
|
|
4840 | |
|
|
4841 | |
|
|
4842 | # Check whether --enable-afterimage was given. |
|
|
4843 | if test "${enable_afterimage+set}" = set; then : |
|
|
4844 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4845 | support_afterimage=$enableval |
|
|
4846 | fi |
|
|
4847 | fi |
|
|
4848 | |
|
|
4849 | |
|
|
4850 | |
|
|
4851 | # Check whether --with-afterimage_config was given. |
|
|
4852 | if test "${with_afterimage_config+set}" = set; then : |
|
|
4853 | withval=$with_afterimage_config; if test "x$withval" != x; then |
|
|
4854 | afterimage_config=$withval/afterimage-config |
|
|
4855 | fi |
4829 | fi |
4856 | fi |
4830 | fi |
4857 | |
4831 | |
4858 | |
4832 | |
4859 | # Check whether --enable-pixbuf was given. |
4833 | # Check whether --enable-pixbuf was given. |
… | |
… | |
5137 | |
5111 | |
5138 | cat >>confdefs.h <<_ACEOF |
5112 | cat >>confdefs.h <<_ACEOF |
5139 | #define RXVT_TERMINFO "$withval" |
5113 | #define RXVT_TERMINFO "$withval" |
5140 | _ACEOF |
5114 | _ACEOF |
5141 | terminfo="$withval" |
5115 | terminfo="$withval" |
|
|
5116 | fi |
|
|
5117 | fi |
|
|
5118 | |
|
|
5119 | |
|
|
5120 | # Check whether --enable-xdbe was given. |
|
|
5121 | if test "${enable_xdbe+set}" = set; then : |
|
|
5122 | enableval=$enable_xdbe; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
5123 | support_xdbe=$enableval |
5142 | fi |
5124 | fi |
5143 | fi |
5125 | fi |
5144 | |
5126 | |
5145 | |
5127 | |
5146 | |
5128 | |
… | |
… | |
6274 | LDFLAGS=$ac_save_LDFLAGS |
6256 | LDFLAGS=$ac_save_LDFLAGS |
6275 | |
6257 | |
6276 | fi |
6258 | fi |
6277 | |
6259 | |
6278 | |
6260 | |
6279 | image_lib=none |
6261 | STARTUP_NOTIFICATION_CFLAGS= |
|
|
6262 | STARTUP_NOTIFICATION_LIBS= |
6280 | |
6263 | |
6281 | PIXBUF_CFLAGS= |
|
|
6282 | PIXBUF_LIBS= |
|
|
6283 | |
|
|
6284 | if test x$support_pixbuf = xyes; then |
6264 | if test x$support_startup_notification = xyes; then |
6285 | support_pixbuf=no |
6265 | support_startup_notification=no |
6286 | # Extract the first word of "pkg-config", so it can be a program name with args. |
6266 | # Extract the first word of "pkg-config", so it can be a program name with args. |
6287 | set dummy pkg-config; ac_word=$2 |
6267 | set dummy pkg-config; ac_word=$2 |
6288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6289 | $as_echo_n "checking for $ac_word... " >&6; } |
6269 | $as_echo_n "checking for $ac_word... " >&6; } |
6290 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
6270 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
… | |
… | |
6322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6323 | $as_echo "no" >&6; } |
6303 | $as_echo "no" >&6; } |
6324 | fi |
6304 | fi |
6325 | |
6305 | |
6326 | |
6306 | |
6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5 |
6307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5 |
6328 | $as_echo_n "checking for gdk-pixbuf... " >&6; } |
6308 | $as_echo_n "checking for libstartup-notification... " >&6; } |
6329 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
6309 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then |
6330 | PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`" |
6310 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" |
6331 | PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`" |
6311 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" |
6332 | support_pixbuf=yes |
6312 | support_startup_notification=yes |
6333 | fi |
6313 | fi |
6334 | |
6314 | |
6335 | if test x$support_pixbuf = xyes; then |
6315 | if test x$support_startup_notification = xyes; then |
6336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6337 | $as_echo "ok" >&6; } |
6317 | $as_echo "ok" >&6; } |
6338 | image_lib=gdk-pixbuf |
|
|
6339 | support_afterimage=no |
|
|
6340 | |
6318 | |
6341 | $as_echo "#define HAVE_PIXBUF 1" >>confdefs.h |
6319 | $as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h |
6342 | |
|
|
6343 | |
|
|
6344 | $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h |
|
|
6345 | |
6320 | |
6346 | else |
6321 | else |
6347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6348 | $as_echo "no" >&6; } |
6323 | $as_echo "no" >&6; } |
6349 | fi |
6324 | fi |
6350 | fi |
6325 | fi |
6351 | |
6326 | |
6352 | |
6327 | |
6353 | |
6328 | |
6354 | |
6329 | |
6355 | STARTUP_NOTIFICATION_CFLAGS= |
6330 | for ac_header in \ |
6356 | STARTUP_NOTIFICATION_LIBS= |
6331 | sys/byteorder.h \ |
|
|
6332 | sys/ioctl.h \ |
|
|
6333 | sys/sockio.h \ |
|
|
6334 | sys/strredir.h \ |
|
|
6335 | stdint.h \ |
|
|
6336 | wchar.h \ |
6357 | |
6337 | |
|
|
6338 | do : |
|
|
6339 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
6340 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
6341 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
6342 | cat >>confdefs.h <<_ACEOF |
|
|
6343 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
6344 | _ACEOF |
|
|
6345 | |
|
|
6346 | fi |
|
|
6347 | |
|
|
6348 | done |
|
|
6349 | |
|
|
6350 | |
|
|
6351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5 |
|
|
6352 | $as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; } |
|
|
6353 | if test "${rxvt_cv_xlib_illegal_access+set}" = set; then : |
|
|
6354 | $as_echo_n "(cached) " >&6 |
|
|
6355 | else |
|
|
6356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6357 | /* end confdefs.h. */ |
|
|
6358 | |
|
|
6359 | #define XLIB_ILLEGAL_ACCESS |
|
|
6360 | #include <X11/Xlib.h> |
|
|
6361 | |
|
|
6362 | int |
|
|
6363 | main () |
|
|
6364 | { |
|
|
6365 | |
|
|
6366 | Display *dpy; |
|
|
6367 | dpy->xdefaults = (char *)0; |
|
|
6368 | |
|
|
6369 | ; |
|
|
6370 | return 0; |
|
|
6371 | } |
|
|
6372 | _ACEOF |
|
|
6373 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6374 | rxvt_cv_xlib_illegal_access=yes |
|
|
6375 | else |
|
|
6376 | rxvt_cv_xlib_illegal_access=no |
|
|
6377 | |
|
|
6378 | fi |
|
|
6379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6380 | fi |
|
|
6381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5 |
|
|
6382 | $as_echo "$rxvt_cv_xlib_illegal_access" >&6; } |
|
|
6383 | if test x$rxvt_cv_xlib_illegal_access = xyes; then |
|
|
6384 | |
|
|
6385 | $as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h |
|
|
6386 | |
|
|
6387 | fi |
|
|
6388 | |
|
|
6389 | ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
|
|
6390 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
|
|
6391 | |
|
|
6392 | else |
|
|
6393 | |
|
|
6394 | cat >>confdefs.h <<_ACEOF |
|
|
6395 | #define mode_t int |
|
|
6396 | _ACEOF |
|
|
6397 | |
|
|
6398 | fi |
|
|
6399 | |
|
|
6400 | ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
|
|
6401 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
|
|
6402 | |
|
|
6403 | else |
|
|
6404 | |
|
|
6405 | cat >>confdefs.h <<_ACEOF |
|
|
6406 | #define pid_t int |
|
|
6407 | _ACEOF |
|
|
6408 | |
|
|
6409 | fi |
|
|
6410 | |
|
|
6411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
|
|
6412 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
|
|
6413 | if test "${ac_cv_type_uid_t+set}" = set; then : |
|
|
6414 | $as_echo_n "(cached) " >&6 |
|
|
6415 | else |
|
|
6416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6417 | /* end confdefs.h. */ |
|
|
6418 | #include <sys/types.h> |
|
|
6419 | |
|
|
6420 | _ACEOF |
|
|
6421 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6422 | $EGREP "uid_t" >/dev/null 2>&1; then : |
|
|
6423 | ac_cv_type_uid_t=yes |
|
|
6424 | else |
|
|
6425 | ac_cv_type_uid_t=no |
|
|
6426 | fi |
|
|
6427 | rm -f conftest* |
|
|
6428 | |
|
|
6429 | fi |
|
|
6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
|
|
6431 | $as_echo "$ac_cv_type_uid_t" >&6; } |
|
|
6432 | if test $ac_cv_type_uid_t = no; then |
|
|
6433 | |
|
|
6434 | $as_echo "#define uid_t int" >>confdefs.h |
|
|
6435 | |
|
|
6436 | |
|
|
6437 | $as_echo "#define gid_t int" >>confdefs.h |
|
|
6438 | |
|
|
6439 | fi |
|
|
6440 | |
|
|
6441 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
|
|
6442 | case $ac_cv_c_int16_t in #( |
|
|
6443 | no|yes) ;; #( |
|
|
6444 | *) |
|
|
6445 | |
|
|
6446 | cat >>confdefs.h <<_ACEOF |
|
|
6447 | #define int16_t $ac_cv_c_int16_t |
|
|
6448 | _ACEOF |
|
|
6449 | ;; |
|
|
6450 | esac |
|
|
6451 | |
|
|
6452 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
|
|
6453 | case $ac_cv_c_uint16_t in #( |
|
|
6454 | no|yes) ;; #( |
|
|
6455 | *) |
|
|
6456 | |
|
|
6457 | |
|
|
6458 | cat >>confdefs.h <<_ACEOF |
|
|
6459 | #define uint16_t $ac_cv_c_uint16_t |
|
|
6460 | _ACEOF |
|
|
6461 | ;; |
|
|
6462 | esac |
|
|
6463 | |
|
|
6464 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
|
|
6465 | case $ac_cv_c_int32_t in #( |
|
|
6466 | no|yes) ;; #( |
|
|
6467 | *) |
|
|
6468 | |
|
|
6469 | cat >>confdefs.h <<_ACEOF |
|
|
6470 | #define int32_t $ac_cv_c_int32_t |
|
|
6471 | _ACEOF |
|
|
6472 | ;; |
|
|
6473 | esac |
|
|
6474 | |
|
|
6475 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
|
|
6476 | case $ac_cv_c_uint32_t in #( |
|
|
6477 | no|yes) ;; #( |
|
|
6478 | *) |
|
|
6479 | |
|
|
6480 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
|
|
6481 | |
|
|
6482 | |
|
|
6483 | cat >>confdefs.h <<_ACEOF |
|
|
6484 | #define uint32_t $ac_cv_c_uint32_t |
|
|
6485 | _ACEOF |
|
|
6486 | ;; |
|
|
6487 | esac |
|
|
6488 | |
|
|
6489 | |
|
|
6490 | for ac_func in unsetenv |
|
|
6491 | do : |
|
|
6492 | ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
|
|
6493 | if test "x$ac_cv_func_unsetenv" = x""yes; then : |
|
|
6494 | cat >>confdefs.h <<_ACEOF |
|
|
6495 | #define HAVE_UNSETENV 1 |
|
|
6496 | _ACEOF |
|
|
6497 | |
|
|
6498 | fi |
|
|
6499 | done |
|
|
6500 | |
|
|
6501 | |
|
|
6502 | |
|
|
6503 | support_utmp=yes |
|
|
6504 | support_wtmp=yes |
|
|
6505 | support_lastlog=yes |
|
|
6506 | |
|
|
6507 | # Check whether --enable-utmp was given. |
|
|
6508 | if test "${enable_utmp+set}" = set; then : |
|
|
6509 | enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6510 | support_utmp=$enableval |
|
|
6511 | fi |
|
|
6512 | fi |
|
|
6513 | |
|
|
6514 | |
|
|
6515 | # Check whether --enable-wtmp was given. |
|
|
6516 | if test "${enable_wtmp+set}" = set; then : |
|
|
6517 | enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6518 | support_wtmp=$enableval |
|
|
6519 | fi |
|
|
6520 | fi |
|
|
6521 | |
|
|
6522 | |
|
|
6523 | # Check whether --enable-lastlog was given. |
|
|
6524 | if test "${enable_lastlog+set}" = set; then : |
|
|
6525 | enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6526 | support_lastlog=$enableval |
|
|
6527 | fi |
|
|
6528 | fi |
|
|
6529 | |
|
|
6530 | |
6358 | if test x$support_startup_notification = xyes; then |
6531 | if test x$support_utmp = xyes; then |
6359 | support_startup_notification=no |
6532 | |
|
|
6533 | $as_echo "#define UTMP_SUPPORT 1" >>confdefs.h |
|
|
6534 | |
|
|
6535 | fi |
|
|
6536 | if test x$support_wtmp = xyes; then |
|
|
6537 | |
|
|
6538 | $as_echo "#define WTMP_SUPPORT 1" >>confdefs.h |
|
|
6539 | |
|
|
6540 | fi |
|
|
6541 | if test x$support_lastlog = xyes; then |
|
|
6542 | |
|
|
6543 | $as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h |
|
|
6544 | |
|
|
6545 | fi |
|
|
6546 | |
|
|
6547 | for ac_func in \ |
|
|
6548 | updwtmp \ |
|
|
6549 | updwtmpx \ |
|
|
6550 | updlastlogx \ |
|
|
6551 | |
|
|
6552 | do : |
|
|
6553 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6554 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
6555 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
6556 | cat >>confdefs.h <<_ACEOF |
|
|
6557 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6558 | _ACEOF |
|
|
6559 | |
|
|
6560 | fi |
|
|
6561 | done |
|
|
6562 | |
|
|
6563 | |
|
|
6564 | for ac_header in lastlog.h |
|
|
6565 | do : |
|
|
6566 | ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default" |
|
|
6567 | if test "x$ac_cv_header_lastlog_h" = x""yes; then : |
|
|
6568 | cat >>confdefs.h <<_ACEOF |
|
|
6569 | #define HAVE_LASTLOG_H 1 |
|
|
6570 | _ACEOF |
|
|
6571 | |
|
|
6572 | fi |
|
|
6573 | |
|
|
6574 | done |
|
|
6575 | |
|
|
6576 | |
|
|
6577 | case $host in |
|
|
6578 | *-*-solaris*) |
|
|
6579 | |
|
|
6580 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
|
|
6581 | |
|
|
6582 | ;; |
|
|
6583 | esac |
|
|
6584 | |
|
|
6585 | |
|
|
6586 | for ac_header in utmp.h |
|
|
6587 | do : |
|
|
6588 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" |
|
|
6589 | if test "x$ac_cv_header_utmp_h" = x""yes; then : |
|
|
6590 | cat >>confdefs.h <<_ACEOF |
|
|
6591 | #define HAVE_UTMP_H 1 |
|
|
6592 | _ACEOF |
|
|
6593 | ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" " |
|
|
6594 | #include <sys/types.h> |
|
|
6595 | #include <utmp.h> |
|
|
6596 | |
|
|
6597 | " |
|
|
6598 | if test "x$ac_cv_type_struct_utmp" = x""yes; then : |
|
|
6599 | |
|
|
6600 | cat >>confdefs.h <<_ACEOF |
|
|
6601 | #define HAVE_STRUCT_UTMP 1 |
|
|
6602 | _ACEOF |
|
|
6603 | |
|
|
6604 | |
|
|
6605 | fi |
|
|
6606 | |
|
|
6607 | |
|
|
6608 | |
|
|
6609 | # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES |
|
|
6610 | # ------------------------------------------------------ |
|
|
6611 | # Tries to find if the field MEMBER exists in type AGGR, after including |
|
|
6612 | # INCLUDES, setting cache variable VAR accordingly. |
|
|
6613 | ac_fn_cxx_check_member () |
|
|
6614 | { |
|
|
6615 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
6616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
|
|
6617 | $as_echo_n "checking for $2.$3... " >&6; } |
|
|
6618 | if eval "test \"\${$4+set}\"" = set; then : |
|
|
6619 | $as_echo_n "(cached) " >&6 |
|
|
6620 | else |
|
|
6621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6622 | /* end confdefs.h. */ |
|
|
6623 | $5 |
|
|
6624 | int |
|
|
6625 | main () |
|
|
6626 | { |
|
|
6627 | static $2 ac_aggr; |
|
|
6628 | if (ac_aggr.$3) |
|
|
6629 | return 0; |
|
|
6630 | ; |
|
|
6631 | return 0; |
|
|
6632 | } |
|
|
6633 | _ACEOF |
|
|
6634 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6635 | eval "$4=yes" |
|
|
6636 | else |
|
|
6637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6638 | /* end confdefs.h. */ |
|
|
6639 | $5 |
|
|
6640 | int |
|
|
6641 | main () |
|
|
6642 | { |
|
|
6643 | static $2 ac_aggr; |
|
|
6644 | if (sizeof ac_aggr.$3) |
|
|
6645 | return 0; |
|
|
6646 | ; |
|
|
6647 | return 0; |
|
|
6648 | } |
|
|
6649 | _ACEOF |
|
|
6650 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6651 | eval "$4=yes" |
|
|
6652 | else |
|
|
6653 | eval "$4=no" |
|
|
6654 | fi |
|
|
6655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6656 | fi |
|
|
6657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6658 | fi |
|
|
6659 | eval ac_res=\$$4 |
|
|
6660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
6661 | $as_echo "$ac_res" >&6; } |
|
|
6662 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
|
6663 | |
|
|
6664 | } # ac_fn_cxx_check_member |
|
|
6665 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " |
|
|
6666 | #include <sys/types.h> |
|
|
6667 | #include <utmp.h> |
|
|
6668 | |
|
|
6669 | " |
|
|
6670 | if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then : |
|
|
6671 | |
|
|
6672 | $as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h |
|
|
6673 | |
|
|
6674 | fi |
|
|
6675 | |
|
|
6676 | |
|
|
6677 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " |
|
|
6678 | #include <sys/types.h> |
|
|
6679 | #include <utmp.h> |
|
|
6680 | |
|
|
6681 | " |
|
|
6682 | if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then : |
|
|
6683 | |
|
|
6684 | $as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h |
|
|
6685 | |
|
|
6686 | fi |
|
|
6687 | |
|
|
6688 | |
|
|
6689 | fi |
|
|
6690 | |
|
|
6691 | done |
|
|
6692 | |
|
|
6693 | |
|
|
6694 | for ac_header in utmpx.h |
|
|
6695 | do : |
|
|
6696 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" |
|
|
6697 | if test "x$ac_cv_header_utmpx_h" = x""yes; then : |
|
|
6698 | cat >>confdefs.h <<_ACEOF |
|
|
6699 | #define HAVE_UTMPX_H 1 |
|
|
6700 | _ACEOF |
|
|
6701 | ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" " |
|
|
6702 | #include <sys/types.h> |
|
|
6703 | #include <utmpx.h> |
|
|
6704 | |
|
|
6705 | " |
|
|
6706 | if test "x$ac_cv_type_struct_utmpx" = x""yes; then : |
|
|
6707 | |
|
|
6708 | cat >>confdefs.h <<_ACEOF |
|
|
6709 | #define HAVE_STRUCT_UTMPX 1 |
|
|
6710 | _ACEOF |
|
|
6711 | |
|
|
6712 | |
|
|
6713 | fi |
|
|
6714 | |
|
|
6715 | |
|
|
6716 | ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" " |
|
|
6717 | #include <sys/types.h> |
|
|
6718 | #include <utmpx.h> |
|
|
6719 | |
|
|
6720 | " |
|
|
6721 | if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then : |
|
|
6722 | |
|
|
6723 | $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h |
|
|
6724 | |
|
|
6725 | fi |
|
|
6726 | |
|
|
6727 | |
|
|
6728 | fi |
|
|
6729 | |
|
|
6730 | done |
|
|
6731 | |
|
|
6732 | ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " |
|
|
6733 | #include <sys/types.h> |
|
|
6734 | #include <utmp.h> |
|
|
6735 | #ifdef HAVE_LASTLOG_H |
|
|
6736 | #include <lastlog.h> |
|
|
6737 | #endif |
|
|
6738 | |
|
|
6739 | " |
|
|
6740 | if test "x$ac_cv_type_struct_lastlog" = x""yes; then : |
|
|
6741 | |
|
|
6742 | cat >>confdefs.h <<_ACEOF |
|
|
6743 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
6744 | _ACEOF |
|
|
6745 | |
|
|
6746 | |
|
|
6747 | fi |
|
|
6748 | |
|
|
6749 | |
|
|
6750 | ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" " |
|
|
6751 | #include <sys/types.h> |
|
|
6752 | #include <utmpx.h> |
|
|
6753 | #ifdef HAVE_LASTLOG_H |
|
|
6754 | #include <lastlog.h> |
|
|
6755 | #endif |
|
|
6756 | |
|
|
6757 | " |
|
|
6758 | if test "x$ac_cv_type_struct_lastlogx" = x""yes; then : |
|
|
6759 | |
|
|
6760 | cat >>confdefs.h <<_ACEOF |
|
|
6761 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
6762 | _ACEOF |
|
|
6763 | |
|
|
6764 | |
|
|
6765 | fi |
|
|
6766 | |
|
|
6767 | |
|
|
6768 | |
|
|
6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5 |
|
|
6770 | $as_echo_n "checking for a fallback location of utmp... " >&6; } |
|
|
6771 | if test "${pt_cv_path_utmp+set}" = set; then : |
|
|
6772 | $as_echo_n "(cached) " >&6 |
|
|
6773 | else |
|
|
6774 | |
|
|
6775 | if test "$cross_compiling" != yes; then |
|
|
6776 | for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do |
|
|
6777 | if test -f "$file"; then |
|
|
6778 | pt_cv_path_utmp=$file |
|
|
6779 | break |
|
|
6780 | fi |
|
|
6781 | done |
|
|
6782 | fi |
|
|
6783 | fi |
|
|
6784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
|
|
6785 | $as_echo "$pt_cv_path_utmp" >&6; } |
|
|
6786 | if test x$pt_cv_path_utmp != x; then |
|
|
6787 | |
|
|
6788 | cat >>confdefs.h <<_ACEOF |
|
|
6789 | #define PT_UTMP_FILE "$pt_cv_path_utmp" |
|
|
6790 | _ACEOF |
|
|
6791 | |
|
|
6792 | elif test "$cross_compiling" = yes; then |
|
|
6793 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5 |
|
|
6794 | $as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;} |
|
|
6795 | fi |
|
|
6796 | |
|
|
6797 | |
|
|
6798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5 |
|
|
6799 | $as_echo_n "checking for a fallback location of wtmp... " >&6; } |
|
|
6800 | if test "${pt_cv_path_wtmp+set}" = set; then : |
|
|
6801 | $as_echo_n "(cached) " >&6 |
|
|
6802 | else |
|
|
6803 | |
|
|
6804 | if test "$cross_compiling" != yes; then |
|
|
6805 | for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do |
|
|
6806 | if test -f "$file"; then |
|
|
6807 | pt_cv_path_wtmp=$file |
|
|
6808 | break |
|
|
6809 | fi |
|
|
6810 | done |
|
|
6811 | fi |
|
|
6812 | fi |
|
|
6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
|
|
6814 | $as_echo "$pt_cv_path_wtmp" >&6; } |
|
|
6815 | if test x$pt_cv_path_wtmp != x; then |
|
|
6816 | |
|
|
6817 | cat >>confdefs.h <<_ACEOF |
|
|
6818 | #define PT_WTMP_FILE "$pt_cv_path_wtmp" |
|
|
6819 | _ACEOF |
|
|
6820 | |
|
|
6821 | elif test "$cross_compiling" = yes; then |
|
|
6822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5 |
|
|
6823 | $as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;} |
|
|
6824 | fi |
|
|
6825 | |
|
|
6826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5 |
|
|
6827 | $as_echo_n "checking for a fallback location of wtmpx... " >&6; } |
|
|
6828 | if test "${pt_cv_path_wtmpx+set}" = set; then : |
|
|
6829 | $as_echo_n "(cached) " >&6 |
|
|
6830 | else |
|
|
6831 | |
|
|
6832 | if test "$cross_compiling" != yes; then |
|
|
6833 | for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do |
|
|
6834 | if test -f "$file"; then |
|
|
6835 | pt_cv_path_wtmpx=$file |
|
|
6836 | break |
|
|
6837 | fi |
|
|
6838 | done |
|
|
6839 | fi |
|
|
6840 | fi |
|
|
6841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
|
|
6842 | $as_echo "$pt_cv_path_wtmpx" >&6; } |
|
|
6843 | if test x$pt_cv_path_wtmpx != x; then |
|
|
6844 | |
|
|
6845 | cat >>confdefs.h <<_ACEOF |
|
|
6846 | #define PT_WTMPX_FILE "$pt_cv_path_wtmpx" |
|
|
6847 | _ACEOF |
|
|
6848 | |
|
|
6849 | elif test "$cross_compiling" = yes; then |
|
|
6850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5 |
|
|
6851 | $as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;} |
|
|
6852 | fi |
|
|
6853 | |
|
|
6854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5 |
|
|
6855 | $as_echo_n "checking for a fallback location of lastlog... " >&6; } |
|
|
6856 | if test "${pt_cv_path_lastlog+set}" = set; then : |
|
|
6857 | $as_echo_n "(cached) " >&6 |
|
|
6858 | else |
|
|
6859 | |
|
|
6860 | if test "$cross_compiling" != yes; then |
|
|
6861 | for file in "/var/log/lastlog" "/var/adm/lastlog"; do |
|
|
6862 | if test -f "$file"; then |
|
|
6863 | pt_cv_path_lastlog=$file |
|
|
6864 | break |
|
|
6865 | fi |
|
|
6866 | done |
|
|
6867 | fi |
|
|
6868 | fi |
|
|
6869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
|
|
6870 | $as_echo "$pt_cv_path_lastlog" >&6; } |
|
|
6871 | if test x$pt_cv_path_lastlog != x; then |
|
|
6872 | |
|
|
6873 | cat >>confdefs.h <<_ACEOF |
|
|
6874 | #define PT_LASTLOG_FILE "$pt_cv_path_lastlog" |
|
|
6875 | _ACEOF |
|
|
6876 | |
|
|
6877 | elif test "$cross_compiling" = yes; then |
|
|
6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5 |
|
|
6879 | $as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;} |
|
|
6880 | fi |
|
|
6881 | |
|
|
6882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5 |
|
|
6883 | $as_echo_n "checking for a fallback location of lastlogx... " >&6; } |
|
|
6884 | if test "${pt_cv_path_lastlogx+set}" = set; then : |
|
|
6885 | $as_echo_n "(cached) " >&6 |
|
|
6886 | else |
|
|
6887 | |
|
|
6888 | if test "$cross_compiling" != yes; then |
|
|
6889 | for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do |
|
|
6890 | if test -f "$file"; then |
|
|
6891 | pt_cv_path_lastlogx=$file |
|
|
6892 | break |
|
|
6893 | fi |
|
|
6894 | done |
|
|
6895 | fi |
|
|
6896 | fi |
|
|
6897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
|
|
6898 | $as_echo "$pt_cv_path_lastlogx" >&6; } |
|
|
6899 | if test x$pt_cv_path_lastlogx != x; then |
|
|
6900 | |
|
|
6901 | cat >>confdefs.h <<_ACEOF |
|
|
6902 | #define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx" |
|
|
6903 | _ACEOF |
|
|
6904 | |
|
|
6905 | elif test "$cross_compiling" = yes; then |
|
|
6906 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5 |
|
|
6907 | $as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;} |
|
|
6908 | fi |
|
|
6909 | |
|
|
6910 | |
|
|
6911 | |
|
|
6912 | |
|
|
6913 | save_LIBS=$LIBS |
|
|
6914 | save_CFLAGS=$CFLAGS |
|
|
6915 | CFLAGS="$CFLAGS $X_CFLAGS" |
|
|
6916 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
6917 | if test x$support_xim = xyes; then |
|
|
6918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5 |
|
|
6919 | $as_echo_n "checking for working Xlocale... " >&6; } |
|
|
6920 | if test "${rxvt_cv_func_xlocale+set}" = set; then : |
|
|
6921 | $as_echo_n "(cached) " >&6 |
|
|
6922 | else |
|
|
6923 | if test "$cross_compiling" = yes; then : |
|
|
6924 | : |
|
|
6925 | else |
|
|
6926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6927 | /* end confdefs.h. */ |
|
|
6928 | |
|
|
6929 | #include <X11/Xlib.h> |
|
|
6930 | #include <stdlib.h> |
|
|
6931 | int main() { |
|
|
6932 | char *p; |
|
|
6933 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
|
|
6934 | exit (XSupportsLocale() ? 0 : 1); |
|
|
6935 | else |
|
|
6936 | exit (1); |
|
|
6937 | } |
|
|
6938 | |
|
|
6939 | _ACEOF |
|
|
6940 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
6941 | rxvt_cv_func_xlocale=yes |
|
|
6942 | else |
|
|
6943 | rxvt_cv_func_xlocale=no |
|
|
6944 | fi |
|
|
6945 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
6946 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
6947 | fi |
|
|
6948 | |
|
|
6949 | fi |
|
|
6950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5 |
|
|
6951 | $as_echo "$rxvt_cv_func_xlocale" >&6; } |
|
|
6952 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
6953 | |
|
|
6954 | $as_echo "#define USE_XIM 1" >>confdefs.h |
|
|
6955 | |
|
|
6956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5 |
|
|
6957 | $as_echo_n "checking for broken XIM callback... " >&6; } |
|
|
6958 | if test "${rxvt_cv_broken_ximcb+set}" = set; then : |
|
|
6959 | $as_echo_n "(cached) " >&6 |
|
|
6960 | else |
|
|
6961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6962 | /* end confdefs.h. */ |
|
|
6963 | |
|
|
6964 | #include <X11/Xlib.h> |
|
|
6965 | |
|
|
6966 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
6967 | |
|
|
6968 | void f() { |
|
|
6969 | XIMCallback cb; |
|
|
6970 | cb.callback = im_destroy_cb; |
|
|
6971 | } |
|
|
6972 | |
|
|
6973 | _ACEOF |
|
|
6974 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6975 | rxvt_cv_broken_ximcb=yes |
|
|
6976 | else |
|
|
6977 | rxvt_cv_broken_ximcb=no |
|
|
6978 | fi |
|
|
6979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6980 | fi |
|
|
6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5 |
|
|
6982 | $as_echo "$rxvt_cv_broken_ximcb" >&6; } |
|
|
6983 | |
|
|
6984 | if test x$rxvt_cv_broken_ximcb = xyes; then |
|
|
6985 | |
|
|
6986 | $as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h |
|
|
6987 | |
|
|
6988 | fi |
|
|
6989 | fi |
|
|
6990 | fi |
|
|
6991 | |
|
|
6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5 |
|
|
6993 | $as_echo_n "checking for working X setlocale... " >&6; } |
|
|
6994 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then : |
|
|
6995 | $as_echo_n "(cached) " >&6 |
|
|
6996 | else |
|
|
6997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6998 | /* end confdefs.h. */ |
|
|
6999 | #define X_LOCALE 1 |
|
|
7000 | #include <X11/Xlocale.h> |
|
|
7001 | int |
|
|
7002 | main () |
|
|
7003 | { |
|
|
7004 | setlocale(LC_CTYPE, ""); |
|
|
7005 | ; |
|
|
7006 | return 0; |
|
|
7007 | } |
|
|
7008 | _ACEOF |
|
|
7009 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7010 | rxvt_cv_func_xsetlocale=yes |
|
|
7011 | else |
|
|
7012 | rxvt_cv_func_xsetlocale=no |
|
|
7013 | fi |
|
|
7014 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7015 | conftest$ac_exeext conftest.$ac_ext |
|
|
7016 | fi |
|
|
7017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5 |
|
|
7018 | $as_echo "$rxvt_cv_func_xsetlocale" >&6; } |
|
|
7019 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
|
|
7020 | |
|
|
7021 | $as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h |
|
|
7022 | |
|
|
7023 | fi |
|
|
7024 | LIBS=$save_LIBS |
|
|
7025 | CFLAGS=$save_CFLAGS |
|
|
7026 | |
|
|
7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5 |
|
|
7028 | $as_echo_n "checking for working nl_langinfo... " >&6; } |
|
|
7029 | if test "${rxvt_cv_func_nl_langinfo+set}" = set; then : |
|
|
7030 | $as_echo_n "(cached) " >&6 |
|
|
7031 | else |
|
|
7032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7033 | /* end confdefs.h. */ |
|
|
7034 | #include <langinfo.h> |
|
|
7035 | int |
|
|
7036 | main () |
|
|
7037 | { |
|
|
7038 | nl_langinfo(CODESET); |
|
|
7039 | ; |
|
|
7040 | return 0; |
|
|
7041 | } |
|
|
7042 | _ACEOF |
|
|
7043 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7044 | rxvt_cv_func_nl_langinfo=yes |
|
|
7045 | else |
|
|
7046 | rxvt_cv_func_nl_langinfo=no |
|
|
7047 | fi |
|
|
7048 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7049 | conftest$ac_exeext conftest.$ac_ext |
|
|
7050 | fi |
|
|
7051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5 |
|
|
7052 | $as_echo "$rxvt_cv_func_nl_langinfo" >&6; } |
|
|
7053 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
|
|
7054 | |
|
|
7055 | $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
|
|
7056 | |
|
|
7057 | fi |
|
|
7058 | |
|
|
7059 | |
|
|
7060 | case $host in |
|
|
7061 | *-*-solaris*) |
|
|
7062 | |
|
|
7063 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
7064 | |
|
|
7065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 |
|
|
7066 | $as_echo_n "checking for library containing sendmsg... " >&6; } |
|
|
7067 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7068 | $as_echo_n "(cached) " >&6 |
|
|
7069 | else |
|
|
7070 | ac_func_search_save_LIBS=$LIBS |
|
|
7071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7072 | /* end confdefs.h. */ |
|
|
7073 | |
|
|
7074 | /* Override any GCC internal prototype to avoid an error. |
|
|
7075 | Use char because int might match the return type of a GCC |
|
|
7076 | builtin and then its argument prototype would still apply. */ |
|
|
7077 | #ifdef __cplusplus |
|
|
7078 | extern "C" |
|
|
7079 | #endif |
|
|
7080 | char sendmsg (); |
|
|
7081 | int |
|
|
7082 | main () |
|
|
7083 | { |
|
|
7084 | return sendmsg (); |
|
|
7085 | ; |
|
|
7086 | return 0; |
|
|
7087 | } |
|
|
7088 | _ACEOF |
|
|
7089 | for ac_lib in '' socket; do |
|
|
7090 | if test -z "$ac_lib"; then |
|
|
7091 | ac_res="none required" |
|
|
7092 | else |
|
|
7093 | ac_res=-l$ac_lib |
|
|
7094 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7095 | fi |
|
|
7096 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7097 | ac_cv_search_sendmsg=$ac_res |
|
|
7098 | fi |
|
|
7099 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7100 | conftest$ac_exeext |
|
|
7101 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7102 | break |
|
|
7103 | fi |
|
|
7104 | done |
|
|
7105 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7106 | |
|
|
7107 | else |
|
|
7108 | ac_cv_search_sendmsg=no |
|
|
7109 | fi |
|
|
7110 | rm conftest.$ac_ext |
|
|
7111 | LIBS=$ac_func_search_save_LIBS |
|
|
7112 | fi |
|
|
7113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 |
|
|
7114 | $as_echo "$ac_cv_search_sendmsg" >&6; } |
|
|
7115 | ac_res=$ac_cv_search_sendmsg |
|
|
7116 | if test "$ac_res" != no; then : |
|
|
7117 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7118 | |
|
|
7119 | fi |
|
|
7120 | |
|
|
7121 | ;; |
|
|
7122 | esac |
|
|
7123 | |
|
|
7124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 |
|
|
7125 | $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; } |
|
|
7126 | if test "${pt_cv_can_pass_fds+set}" = set; then : |
|
|
7127 | $as_echo_n "(cached) " >&6 |
|
|
7128 | else |
|
|
7129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7130 | /* end confdefs.h. */ |
|
|
7131 | |
|
|
7132 | #include <stddef.h> // broken bsds (is that redundant?) need this |
|
|
7133 | #include <sys/types.h> |
|
|
7134 | #include <sys/socket.h> |
|
|
7135 | #include <sys/uio.h> |
|
|
7136 | |
|
|
7137 | int |
|
|
7138 | main () |
|
|
7139 | { |
|
|
7140 | |
|
|
7141 | { |
|
|
7142 | msghdr msg; |
|
|
7143 | iovec iov; |
|
|
7144 | char buf [100]; |
|
|
7145 | char data = 0; |
|
|
7146 | |
|
|
7147 | iov.iov_base = &data; |
|
|
7148 | iov.iov_len = 1; |
|
|
7149 | |
|
|
7150 | msg.msg_iov = &iov; |
|
|
7151 | msg.msg_iovlen = 1; |
|
|
7152 | msg.msg_control = buf; |
|
|
7153 | msg.msg_controllen = sizeof buf; |
|
|
7154 | |
|
|
7155 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
7156 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
7157 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
7158 | cmsg->cmsg_len = 100; |
|
|
7159 | |
|
|
7160 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
7161 | |
|
|
7162 | return sendmsg (3, &msg, 0); |
|
|
7163 | } |
|
|
7164 | |
|
|
7165 | ; |
|
|
7166 | return 0; |
|
|
7167 | } |
|
|
7168 | _ACEOF |
|
|
7169 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7170 | pt_cv_can_pass_fds=yes |
|
|
7171 | else |
|
|
7172 | pt_cv_can_pass_fds=no |
|
|
7173 | fi |
|
|
7174 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7175 | conftest$ac_exeext conftest.$ac_ext |
|
|
7176 | fi |
|
|
7177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5 |
|
|
7178 | $as_echo "$pt_cv_can_pass_fds" >&6; } |
|
|
7179 | if test x$pt_cv_can_pass_fds = xyes; then |
|
|
7180 | |
|
|
7181 | $as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h |
|
|
7182 | |
|
|
7183 | else |
|
|
7184 | as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5 |
|
|
7185 | fi |
|
|
7186 | |
|
|
7187 | |
|
|
7188 | |
|
|
7189 | for ac_header in \ |
|
|
7190 | pty.h \ |
|
|
7191 | util.h \ |
|
|
7192 | libutil.h \ |
|
|
7193 | sys/ioctl.h \ |
|
|
7194 | stropts.h \ |
|
|
7195 | |
|
|
7196 | do : |
|
|
7197 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7198 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
7199 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
7200 | cat >>confdefs.h <<_ACEOF |
|
|
7201 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7202 | _ACEOF |
|
|
7203 | |
|
|
7204 | fi |
|
|
7205 | |
|
|
7206 | done |
|
|
7207 | |
|
|
7208 | |
|
|
7209 | for ac_func in \ |
|
|
7210 | revoke \ |
|
|
7211 | _getpty \ |
|
|
7212 | getpt \ |
|
|
7213 | posix_openpt \ |
|
|
7214 | isastream \ |
|
|
7215 | setuid \ |
|
|
7216 | seteuid \ |
|
|
7217 | setreuid \ |
|
|
7218 | setresuid \ |
|
|
7219 | |
|
|
7220 | do : |
|
|
7221 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
7222 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
7223 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
7224 | cat >>confdefs.h <<_ACEOF |
|
|
7225 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
7226 | _ACEOF |
|
|
7227 | |
|
|
7228 | fi |
|
|
7229 | done |
|
|
7230 | |
|
|
7231 | |
|
|
7232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
|
|
7233 | $as_echo_n "checking for UNIX98 ptys... " >&6; } |
|
|
7234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7235 | /* end confdefs.h. */ |
|
|
7236 | #include <stdlib.h> |
|
|
7237 | int |
|
|
7238 | main () |
|
|
7239 | { |
|
|
7240 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
7241 | ; |
|
|
7242 | return 0; |
|
|
7243 | } |
|
|
7244 | _ACEOF |
|
|
7245 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7246 | unix98_pty=yes |
|
|
7247 | |
|
|
7248 | $as_echo "#define UNIX98_PTY 1" >>confdefs.h |
|
|
7249 | |
|
|
7250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
7251 | $as_echo "yes" >&6; } |
|
|
7252 | else |
|
|
7253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7254 | $as_echo "no" >&6; } |
|
|
7255 | fi |
|
|
7256 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7257 | conftest$ac_exeext conftest.$ac_ext |
|
|
7258 | |
|
|
7259 | if test -z "$unix98_pty"; then |
|
|
7260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
|
|
7261 | $as_echo_n "checking for library containing openpty... " >&6; } |
|
|
7262 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7263 | $as_echo_n "(cached) " >&6 |
|
|
7264 | else |
|
|
7265 | ac_func_search_save_LIBS=$LIBS |
|
|
7266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7267 | /* end confdefs.h. */ |
|
|
7268 | |
|
|
7269 | /* Override any GCC internal prototype to avoid an error. |
|
|
7270 | Use char because int might match the return type of a GCC |
|
|
7271 | builtin and then its argument prototype would still apply. */ |
|
|
7272 | #ifdef __cplusplus |
|
|
7273 | extern "C" |
|
|
7274 | #endif |
|
|
7275 | char openpty (); |
|
|
7276 | int |
|
|
7277 | main () |
|
|
7278 | { |
|
|
7279 | return openpty (); |
|
|
7280 | ; |
|
|
7281 | return 0; |
|
|
7282 | } |
|
|
7283 | _ACEOF |
|
|
7284 | for ac_lib in '' util; do |
|
|
7285 | if test -z "$ac_lib"; then |
|
|
7286 | ac_res="none required" |
|
|
7287 | else |
|
|
7288 | ac_res=-l$ac_lib |
|
|
7289 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7290 | fi |
|
|
7291 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7292 | ac_cv_search_openpty=$ac_res |
|
|
7293 | fi |
|
|
7294 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7295 | conftest$ac_exeext |
|
|
7296 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7297 | break |
|
|
7298 | fi |
|
|
7299 | done |
|
|
7300 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7301 | |
|
|
7302 | else |
|
|
7303 | ac_cv_search_openpty=no |
|
|
7304 | fi |
|
|
7305 | rm conftest.$ac_ext |
|
|
7306 | LIBS=$ac_func_search_save_LIBS |
|
|
7307 | fi |
|
|
7308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 |
|
|
7309 | $as_echo "$ac_cv_search_openpty" >&6; } |
|
|
7310 | ac_res=$ac_cv_search_openpty |
|
|
7311 | if test "$ac_res" != no; then : |
|
|
7312 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7313 | |
|
|
7314 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
|
|
7315 | |
|
|
7316 | fi |
|
|
7317 | |
|
|
7318 | fi |
|
|
7319 | |
|
|
7320 | |
|
|
7321 | |
|
|
7322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5 |
|
|
7323 | $as_echo_n "checking for tty group... " >&6; } |
|
|
7324 | if test "${pt_cv_tty_group+set}" = set; then : |
|
|
7325 | $as_echo_n "(cached) " >&6 |
|
|
7326 | else |
|
|
7327 | if test "$cross_compiling" = yes; then : |
|
|
7328 | pt_cv_tty_group=no |
|
|
7329 | else |
|
|
7330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7331 | /* end confdefs.h. */ |
|
|
7332 | |
|
|
7333 | #include <sys/types.h> |
|
|
7334 | #include <sys/stat.h> |
|
|
7335 | #include <unistd.h> |
|
|
7336 | #include <grp.h> |
|
|
7337 | |
|
|
7338 | int main() |
|
|
7339 | { |
|
|
7340 | struct stat st; |
|
|
7341 | struct group *gr; |
|
|
7342 | char *tty; |
|
|
7343 | gr = getgrnam("tty"); |
|
|
7344 | tty = ttyname(0); |
|
|
7345 | if (gr != 0 |
|
|
7346 | && tty != 0 |
|
|
7347 | && (stat(tty, &st)) == 0 |
|
|
7348 | && st.st_gid == gr->gr_gid) |
|
|
7349 | return 0; |
|
|
7350 | else |
|
|
7351 | return 1; |
|
|
7352 | } |
|
|
7353 | _ACEOF |
|
|
7354 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7355 | pt_cv_tty_group=yes |
|
|
7356 | else |
|
|
7357 | pt_cv_tty_group=no |
|
|
7358 | fi |
|
|
7359 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7360 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7361 | fi |
|
|
7362 | |
|
|
7363 | fi |
|
|
7364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5 |
|
|
7365 | $as_echo "$pt_cv_tty_group" >&6; } |
|
|
7366 | if test x$pt_cv_tty_group = xyes; then |
|
|
7367 | |
|
|
7368 | $as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h |
|
|
7369 | |
|
|
7370 | fi |
|
|
7371 | |
|
|
7372 | support_image=no |
|
|
7373 | if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then |
|
|
7374 | support_image=yes |
|
|
7375 | fi |
|
|
7376 | if test x$support_xdbe = xyes; then |
|
|
7377 | LIBS="$LIBS -lXext" |
|
|
7378 | fi |
|
|
7379 | |
|
|
7380 | if test x$support_xft = xyes || test x$support_image = xyes; then |
|
|
7381 | rxvt_have_xrender=no |
6360 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7382 | # Extract the first word of "pkg-config", so it can be a program name with args. |
6361 | set dummy pkg-config; ac_word=$2 |
7383 | set dummy pkg-config; ac_word=$2 |
6362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6363 | $as_echo_n "checking for $ac_word... " >&6; } |
7385 | $as_echo_n "checking for $ac_word... " >&6; } |
6364 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
7386 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
… | |
… | |
6396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6397 | $as_echo "no" >&6; } |
7419 | $as_echo "no" >&6; } |
6398 | fi |
7420 | fi |
6399 | |
7421 | |
6400 | |
7422 | |
6401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5 |
|
|
6402 | $as_echo_n "checking for libstartup-notification... " >&6; } |
|
|
6403 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then |
7423 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
6404 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" |
7424 | X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" |
6405 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" |
7425 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" |
6406 | support_startup_notification=yes |
7426 | rxvt_have_xrender=yes |
6407 | fi |
|
|
6408 | |
7427 | |
6409 | if test x$support_startup_notification = xyes; then |
|
|
6410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
6411 | $as_echo "ok" >&6; } |
|
|
6412 | |
|
|
6413 | $as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h |
|
|
6414 | |
|
|
6415 | else |
|
|
6416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6417 | $as_echo "no" >&6; } |
|
|
6418 | fi |
|
|
6419 | fi |
|
|
6420 | |
|
|
6421 | |
|
|
6422 | |
|
|
6423 | |
|
|
6424 | AFTERIMAGE_CFLAGS= |
|
|
6425 | AFTERIMAGE_LIBS= |
|
|
6426 | |
|
|
6427 | if test x$support_afterimage = xyes; then |
|
|
6428 | support_afterimage=no |
|
|
6429 | |
|
|
6430 | if test "x$afterimage_config" = "x" ; then |
|
|
6431 | # Extract the first word of "afterimage-config", so it can be a program name with args. |
|
|
6432 | set dummy afterimage-config; ac_word=$2 |
|
|
6433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
6434 | $as_echo_n "checking for $ac_word... " >&6; } |
|
|
6435 | if test "${ac_cv_path_afterimage_config+set}" = set; then : |
|
|
6436 | $as_echo_n "(cached) " >&6 |
|
|
6437 | else |
|
|
6438 | case $afterimage_config in |
|
|
6439 | [\\/]* | ?:[\\/]*) |
|
|
6440 | ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path. |
|
|
6441 | ;; |
|
|
6442 | *) |
|
|
6443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
6444 | for as_dir in $PATH |
|
|
6445 | do |
|
|
6446 | IFS=$as_save_IFS |
|
|
6447 | test -z "$as_dir" && as_dir=. |
|
|
6448 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
6449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
6450 | ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext" |
|
|
6451 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
6452 | break 2 |
|
|
6453 | fi |
|
|
6454 | done |
|
|
6455 | done |
|
|
6456 | IFS=$as_save_IFS |
|
|
6457 | |
|
|
6458 | test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no" |
|
|
6459 | ;; |
|
|
6460 | esac |
|
|
6461 | fi |
|
|
6462 | afterimage_config=$ac_cv_path_afterimage_config |
|
|
6463 | if test -n "$afterimage_config"; then |
|
|
6464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afterimage_config" >&5 |
|
|
6465 | $as_echo "$afterimage_config" >&6; } |
|
|
6466 | else |
|
|
6467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6468 | $as_echo "no" >&6; } |
|
|
6469 | fi |
|
|
6470 | |
|
|
6471 | |
|
|
6472 | fi |
|
|
6473 | if test "x$afterimage_config" != "xno" ; then |
|
|
6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5 |
|
|
6475 | $as_echo_n "checking for libAfterImage version >= 1.15... " >&6; } |
|
|
6476 | AFTERIMAGE_VERSION=`$afterimage_config --version` |
|
|
6477 | if test -n "$AFTERIMAGE_VERSION" ; then |
|
|
6478 | AFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
|
|
6479 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
|
|
6480 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
|
|
6481 | libai_ver_major=`echo $AFTERIMAGE_VERSION | cut -f 1 -d .` |
|
|
6482 | libai_ver_minor=`echo $AFTERIMAGE_VERSION | cut -f 2 -d .` |
|
|
6483 | if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
|
|
6484 | support_afterimage=yes |
|
|
6485 | fi |
|
|
6486 | fi |
|
|
6487 | fi |
|
|
6488 | if test "x$support_afterimage" = "xyes"; then |
|
|
6489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5 |
|
|
6490 | $as_echo "$AFTERIMAGE_LIBS" >&6; } |
|
|
6491 | image_lib=libafterimage |
|
|
6492 | |
|
|
6493 | $as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h |
|
|
6494 | |
|
|
6495 | |
|
|
6496 | $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h |
|
|
6497 | |
|
|
6498 | else |
|
|
6499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6500 | $as_echo "no" >&6; } |
|
|
6501 | AFTERIMAGE_CFLAGS= |
|
|
6502 | AFTERIMAGE_LIBS= |
|
|
6503 | fi |
|
|
6504 | fi |
|
|
6505 | fi |
|
|
6506 | |
|
|
6507 | |
|
|
6508 | |
|
|
6509 | |
|
|
6510 | for ac_header in \ |
|
|
6511 | sys/byteorder.h \ |
|
|
6512 | sys/ioctl.h \ |
|
|
6513 | sys/sockio.h \ |
|
|
6514 | sys/strredir.h \ |
|
|
6515 | stdint.h \ |
|
|
6516 | wchar.h \ |
|
|
6517 | cwchar \ |
|
|
6518 | |
|
|
6519 | do : |
|
|
6520 | 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" |
|
|
6522 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
6523 | cat >>confdefs.h <<_ACEOF |
|
|
6524 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
6525 | _ACEOF |
|
|
6526 | |
|
|
6527 | fi |
|
|
6528 | |
|
|
6529 | done |
|
|
6530 | |
|
|
6531 | |
|
|
6532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5 |
|
|
6533 | $as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; } |
|
|
6534 | if test "${rxvt_cv_xlib_illegal_access+set}" = set; then : |
|
|
6535 | $as_echo_n "(cached) " >&6 |
|
|
6536 | else |
|
|
6537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6538 | /* end confdefs.h. */ |
|
|
6539 | |
|
|
6540 | #define XLIB_ILLEGAL_ACCESS |
|
|
6541 | #include <X11/Xlib.h> |
|
|
6542 | |
|
|
6543 | int |
|
|
6544 | main () |
|
|
6545 | { |
|
|
6546 | |
|
|
6547 | Display *dpy; |
|
|
6548 | dpy->xdefaults = (char *)0; |
|
|
6549 | |
|
|
6550 | ; |
|
|
6551 | return 0; |
|
|
6552 | } |
|
|
6553 | _ACEOF |
|
|
6554 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6555 | rxvt_cv_xlib_illegal_access=yes |
|
|
6556 | else |
|
|
6557 | rxvt_cv_xlib_illegal_access=no |
|
|
6558 | |
|
|
6559 | fi |
|
|
6560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6561 | fi |
|
|
6562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5 |
|
|
6563 | $as_echo "$rxvt_cv_xlib_illegal_access" >&6; } |
|
|
6564 | if test x$rxvt_cv_xlib_illegal_access = xyes; then |
|
|
6565 | |
|
|
6566 | $as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h |
|
|
6567 | |
|
|
6568 | fi |
|
|
6569 | |
|
|
6570 | ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
|
|
6571 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
|
|
6572 | |
|
|
6573 | else |
|
|
6574 | |
|
|
6575 | cat >>confdefs.h <<_ACEOF |
|
|
6576 | #define mode_t int |
|
|
6577 | _ACEOF |
|
|
6578 | |
|
|
6579 | fi |
|
|
6580 | |
|
|
6581 | ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
|
|
6582 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
|
|
6583 | |
|
|
6584 | else |
|
|
6585 | |
|
|
6586 | cat >>confdefs.h <<_ACEOF |
|
|
6587 | #define pid_t int |
|
|
6588 | _ACEOF |
|
|
6589 | |
|
|
6590 | fi |
|
|
6591 | |
|
|
6592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
|
|
6593 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
|
|
6594 | if test "${ac_cv_type_uid_t+set}" = set; then : |
|
|
6595 | $as_echo_n "(cached) " >&6 |
|
|
6596 | else |
|
|
6597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6598 | /* end confdefs.h. */ |
|
|
6599 | #include <sys/types.h> |
|
|
6600 | |
|
|
6601 | _ACEOF |
|
|
6602 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6603 | $EGREP "uid_t" >/dev/null 2>&1; then : |
|
|
6604 | ac_cv_type_uid_t=yes |
|
|
6605 | else |
|
|
6606 | ac_cv_type_uid_t=no |
|
|
6607 | fi |
|
|
6608 | rm -f conftest* |
|
|
6609 | |
|
|
6610 | fi |
|
|
6611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
|
|
6612 | $as_echo "$ac_cv_type_uid_t" >&6; } |
|
|
6613 | if test $ac_cv_type_uid_t = no; then |
|
|
6614 | |
|
|
6615 | $as_echo "#define uid_t int" >>confdefs.h |
|
|
6616 | |
|
|
6617 | |
|
|
6618 | $as_echo "#define gid_t int" >>confdefs.h |
|
|
6619 | |
|
|
6620 | fi |
|
|
6621 | |
|
|
6622 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
|
|
6623 | case $ac_cv_c_int16_t in #( |
|
|
6624 | no|yes) ;; #( |
|
|
6625 | *) |
|
|
6626 | |
|
|
6627 | cat >>confdefs.h <<_ACEOF |
|
|
6628 | #define int16_t $ac_cv_c_int16_t |
|
|
6629 | _ACEOF |
|
|
6630 | ;; |
|
|
6631 | esac |
|
|
6632 | |
|
|
6633 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
|
|
6634 | case $ac_cv_c_uint16_t in #( |
|
|
6635 | no|yes) ;; #( |
|
|
6636 | *) |
|
|
6637 | |
|
|
6638 | |
|
|
6639 | cat >>confdefs.h <<_ACEOF |
|
|
6640 | #define uint16_t $ac_cv_c_uint16_t |
|
|
6641 | _ACEOF |
|
|
6642 | ;; |
|
|
6643 | esac |
|
|
6644 | |
|
|
6645 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
|
|
6646 | case $ac_cv_c_int32_t in #( |
|
|
6647 | no|yes) ;; #( |
|
|
6648 | *) |
|
|
6649 | |
|
|
6650 | cat >>confdefs.h <<_ACEOF |
|
|
6651 | #define int32_t $ac_cv_c_int32_t |
|
|
6652 | _ACEOF |
|
|
6653 | ;; |
|
|
6654 | esac |
|
|
6655 | |
|
|
6656 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
|
|
6657 | case $ac_cv_c_uint32_t in #( |
|
|
6658 | no|yes) ;; #( |
|
|
6659 | *) |
|
|
6660 | |
|
|
6661 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
|
|
6662 | |
|
|
6663 | |
|
|
6664 | cat >>confdefs.h <<_ACEOF |
|
|
6665 | #define uint32_t $ac_cv_c_uint32_t |
|
|
6666 | _ACEOF |
|
|
6667 | ;; |
|
|
6668 | esac |
|
|
6669 | |
|
|
6670 | |
|
|
6671 | for ac_func in unsetenv |
|
|
6672 | do : |
|
|
6673 | ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
|
|
6674 | if test "x$ac_cv_func_unsetenv" = x""yes; then : |
|
|
6675 | cat >>confdefs.h <<_ACEOF |
|
|
6676 | #define HAVE_UNSETENV 1 |
|
|
6677 | _ACEOF |
|
|
6678 | |
|
|
6679 | fi |
|
|
6680 | done |
|
|
6681 | |
|
|
6682 | |
|
|
6683 | |
|
|
6684 | support_utmp=yes |
|
|
6685 | support_wtmp=yes |
|
|
6686 | support_lastlog=yes |
|
|
6687 | |
|
|
6688 | # Check whether --enable-utmp was given. |
|
|
6689 | if test "${enable_utmp+set}" = set; then : |
|
|
6690 | enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6691 | support_utmp=$enableval |
|
|
6692 | fi |
|
|
6693 | fi |
|
|
6694 | |
|
|
6695 | |
|
|
6696 | # Check whether --enable-wtmp was given. |
|
|
6697 | if test "${enable_wtmp+set}" = set; then : |
|
|
6698 | enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6699 | support_wtmp=$enableval |
|
|
6700 | fi |
|
|
6701 | fi |
|
|
6702 | |
|
|
6703 | |
|
|
6704 | # Check whether --enable-lastlog was given. |
|
|
6705 | if test "${enable_lastlog+set}" = set; then : |
|
|
6706 | enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6707 | support_lastlog=$enableval |
|
|
6708 | fi |
|
|
6709 | fi |
|
|
6710 | |
|
|
6711 | |
|
|
6712 | if test x$support_utmp = xyes; then |
|
|
6713 | |
|
|
6714 | $as_echo "#define UTMP_SUPPORT 1" >>confdefs.h |
|
|
6715 | |
|
|
6716 | fi |
|
|
6717 | if test x$support_wtmp = xyes; then |
|
|
6718 | |
|
|
6719 | $as_echo "#define WTMP_SUPPORT 1" >>confdefs.h |
|
|
6720 | |
|
|
6721 | fi |
|
|
6722 | if test x$support_lastlog = xyes; then |
|
|
6723 | |
|
|
6724 | $as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h |
|
|
6725 | |
|
|
6726 | fi |
|
|
6727 | |
|
|
6728 | for ac_func in \ |
|
|
6729 | updwtmp \ |
|
|
6730 | updwtmpx \ |
|
|
6731 | updlastlogx \ |
|
|
6732 | |
|
|
6733 | do : |
|
|
6734 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6735 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
6736 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
6737 | cat >>confdefs.h <<_ACEOF |
|
|
6738 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6739 | _ACEOF |
|
|
6740 | |
|
|
6741 | fi |
|
|
6742 | done |
|
|
6743 | |
|
|
6744 | |
|
|
6745 | for ac_header in lastlog.h |
|
|
6746 | do : |
|
|
6747 | ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default" |
|
|
6748 | if test "x$ac_cv_header_lastlog_h" = x""yes; then : |
|
|
6749 | cat >>confdefs.h <<_ACEOF |
|
|
6750 | #define HAVE_LASTLOG_H 1 |
|
|
6751 | _ACEOF |
|
|
6752 | |
|
|
6753 | fi |
|
|
6754 | |
|
|
6755 | done |
|
|
6756 | |
|
|
6757 | |
|
|
6758 | |
|
|
6759 | for ac_header in utmp.h |
|
|
6760 | do : |
|
|
6761 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" |
|
|
6762 | if test "x$ac_cv_header_utmp_h" = x""yes; then : |
|
|
6763 | cat >>confdefs.h <<_ACEOF |
|
|
6764 | #define HAVE_UTMP_H 1 |
|
|
6765 | _ACEOF |
|
|
6766 | ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" " |
|
|
6767 | #include <sys/types.h> |
|
|
6768 | #include <utmp.h> |
|
|
6769 | |
|
|
6770 | " |
|
|
6771 | if test "x$ac_cv_type_struct_utmp" = x""yes; then : |
|
|
6772 | |
|
|
6773 | cat >>confdefs.h <<_ACEOF |
|
|
6774 | #define HAVE_STRUCT_UTMP 1 |
|
|
6775 | _ACEOF |
|
|
6776 | |
|
|
6777 | |
|
|
6778 | fi |
|
|
6779 | |
|
|
6780 | |
|
|
6781 | |
|
|
6782 | # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES |
|
|
6783 | # ------------------------------------------------------ |
|
|
6784 | # Tries to find if the field MEMBER exists in type AGGR, after including |
|
|
6785 | # INCLUDES, setting cache variable VAR accordingly. |
|
|
6786 | ac_fn_cxx_check_member () |
|
|
6787 | { |
|
|
6788 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
6789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
|
|
6790 | $as_echo_n "checking for $2.$3... " >&6; } |
|
|
6791 | if eval "test \"\${$4+set}\"" = set; then : |
|
|
6792 | $as_echo_n "(cached) " >&6 |
|
|
6793 | else |
|
|
6794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6795 | /* end confdefs.h. */ |
|
|
6796 | $5 |
|
|
6797 | int |
|
|
6798 | main () |
|
|
6799 | { |
|
|
6800 | static $2 ac_aggr; |
|
|
6801 | if (ac_aggr.$3) |
|
|
6802 | return 0; |
|
|
6803 | ; |
|
|
6804 | return 0; |
|
|
6805 | } |
|
|
6806 | _ACEOF |
|
|
6807 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6808 | eval "$4=yes" |
|
|
6809 | else |
|
|
6810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6811 | /* end confdefs.h. */ |
|
|
6812 | $5 |
|
|
6813 | int |
|
|
6814 | main () |
|
|
6815 | { |
|
|
6816 | static $2 ac_aggr; |
|
|
6817 | if (sizeof ac_aggr.$3) |
|
|
6818 | return 0; |
|
|
6819 | ; |
|
|
6820 | return 0; |
|
|
6821 | } |
|
|
6822 | _ACEOF |
|
|
6823 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6824 | eval "$4=yes" |
|
|
6825 | else |
|
|
6826 | eval "$4=no" |
|
|
6827 | fi |
|
|
6828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6829 | fi |
|
|
6830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6831 | fi |
|
|
6832 | eval ac_res=\$$4 |
|
|
6833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
6834 | $as_echo "$ac_res" >&6; } |
|
|
6835 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
|
6836 | |
|
|
6837 | } # ac_fn_cxx_check_member |
|
|
6838 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " |
|
|
6839 | #include <sys/types.h> |
|
|
6840 | #include <utmp.h> |
|
|
6841 | |
|
|
6842 | " |
|
|
6843 | if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then : |
|
|
6844 | |
|
|
6845 | $as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h |
|
|
6846 | |
|
|
6847 | fi |
|
|
6848 | |
|
|
6849 | |
|
|
6850 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " |
|
|
6851 | #include <sys/types.h> |
|
|
6852 | #include <utmp.h> |
|
|
6853 | |
|
|
6854 | " |
|
|
6855 | if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then : |
|
|
6856 | |
|
|
6857 | $as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h |
|
|
6858 | |
|
|
6859 | fi |
|
|
6860 | |
|
|
6861 | |
|
|
6862 | fi |
|
|
6863 | |
|
|
6864 | done |
|
|
6865 | |
|
|
6866 | |
|
|
6867 | for ac_header in utmpx.h |
|
|
6868 | do : |
|
|
6869 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" |
|
|
6870 | if test "x$ac_cv_header_utmpx_h" = x""yes; then : |
|
|
6871 | cat >>confdefs.h <<_ACEOF |
|
|
6872 | #define HAVE_UTMPX_H 1 |
|
|
6873 | _ACEOF |
|
|
6874 | ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" " |
|
|
6875 | #include <sys/types.h> |
|
|
6876 | #include <utmpx.h> |
|
|
6877 | |
|
|
6878 | " |
|
|
6879 | if test "x$ac_cv_type_struct_utmpx" = x""yes; then : |
|
|
6880 | |
|
|
6881 | cat >>confdefs.h <<_ACEOF |
|
|
6882 | #define HAVE_STRUCT_UTMPX 1 |
|
|
6883 | _ACEOF |
|
|
6884 | |
|
|
6885 | |
|
|
6886 | fi |
|
|
6887 | |
|
|
6888 | |
|
|
6889 | ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" " |
|
|
6890 | #include <sys/types.h> |
|
|
6891 | #include <utmpx.h> |
|
|
6892 | |
|
|
6893 | " |
|
|
6894 | if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then : |
|
|
6895 | |
|
|
6896 | $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h |
|
|
6897 | |
|
|
6898 | fi |
|
|
6899 | |
|
|
6900 | |
|
|
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 |
|
|
6914 | |
|
|
6915 | done |
|
|
6916 | |
|
|
6917 | ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " |
|
|
6918 | #include <sys/types.h> |
|
|
6919 | #include <utmp.h> |
|
|
6920 | #ifdef HAVE_LASTLOG_H |
|
|
6921 | #include <lastlog.h> |
|
|
6922 | #endif |
|
|
6923 | |
|
|
6924 | " |
|
|
6925 | if test "x$ac_cv_type_struct_lastlog" = x""yes; then : |
|
|
6926 | |
|
|
6927 | cat >>confdefs.h <<_ACEOF |
|
|
6928 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
6929 | _ACEOF |
|
|
6930 | |
|
|
6931 | |
|
|
6932 | fi |
|
|
6933 | |
|
|
6934 | |
|
|
6935 | ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" " |
|
|
6936 | #include <sys/types.h> |
|
|
6937 | #include <utmpx.h> |
|
|
6938 | #ifdef HAVE_LASTLOG_H |
|
|
6939 | #include <lastlog.h> |
|
|
6940 | #endif |
|
|
6941 | |
|
|
6942 | " |
|
|
6943 | if test "x$ac_cv_type_struct_lastlogx" = x""yes; then : |
|
|
6944 | |
|
|
6945 | cat >>confdefs.h <<_ACEOF |
|
|
6946 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
6947 | _ACEOF |
|
|
6948 | |
|
|
6949 | |
|
|
6950 | fi |
|
|
6951 | |
|
|
6952 | |
|
|
6953 | |
|
|
6954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5 |
|
|
6955 | $as_echo_n "checking for a fallback location of utmp... " >&6; } |
|
|
6956 | if test "${pt_cv_path_utmp+set}" = set; then : |
|
|
6957 | $as_echo_n "(cached) " >&6 |
|
|
6958 | else |
|
|
6959 | |
|
|
6960 | if test "$cross_compiling" != yes; then |
|
|
6961 | for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do |
|
|
6962 | if test -f "$file"; then |
|
|
6963 | pt_cv_path_utmp=$file |
|
|
6964 | break |
|
|
6965 | fi |
|
|
6966 | done |
|
|
6967 | fi |
|
|
6968 | fi |
|
|
6969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
|
|
6970 | $as_echo "$pt_cv_path_utmp" >&6; } |
|
|
6971 | if test x$pt_cv_path_utmp != x; then |
|
|
6972 | |
|
|
6973 | cat >>confdefs.h <<_ACEOF |
|
|
6974 | #define PT_UTMP_FILE "$pt_cv_path_utmp" |
|
|
6975 | _ACEOF |
|
|
6976 | |
|
|
6977 | elif test "$cross_compiling" = yes; then |
|
|
6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5 |
|
|
6979 | $as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;} |
|
|
6980 | fi |
|
|
6981 | |
|
|
6982 | |
|
|
6983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5 |
|
|
6984 | $as_echo_n "checking for a fallback location of wtmp... " >&6; } |
|
|
6985 | if test "${pt_cv_path_wtmp+set}" = set; then : |
|
|
6986 | $as_echo_n "(cached) " >&6 |
|
|
6987 | else |
|
|
6988 | |
|
|
6989 | if test "$cross_compiling" != yes; then |
|
|
6990 | for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do |
|
|
6991 | if test -f "$file"; then |
|
|
6992 | pt_cv_path_wtmp=$file |
|
|
6993 | break |
|
|
6994 | fi |
|
|
6995 | done |
|
|
6996 | fi |
|
|
6997 | fi |
|
|
6998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
|
|
6999 | $as_echo "$pt_cv_path_wtmp" >&6; } |
|
|
7000 | if test x$pt_cv_path_wtmp != x; then |
|
|
7001 | |
|
|
7002 | cat >>confdefs.h <<_ACEOF |
|
|
7003 | #define PT_WTMP_FILE "$pt_cv_path_wtmp" |
|
|
7004 | _ACEOF |
|
|
7005 | |
|
|
7006 | elif test "$cross_compiling" = yes; then |
|
|
7007 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5 |
|
|
7008 | $as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;} |
|
|
7009 | fi |
|
|
7010 | |
|
|
7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5 |
|
|
7012 | $as_echo_n "checking for a fallback location of wtmpx... " >&6; } |
|
|
7013 | if test "${pt_cv_path_wtmpx+set}" = set; then : |
|
|
7014 | $as_echo_n "(cached) " >&6 |
|
|
7015 | else |
|
|
7016 | |
|
|
7017 | if test "$cross_compiling" != yes; then |
|
|
7018 | for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do |
|
|
7019 | if test -f "$file"; then |
|
|
7020 | pt_cv_path_wtmpx=$file |
|
|
7021 | break |
|
|
7022 | fi |
|
|
7023 | done |
|
|
7024 | fi |
|
|
7025 | fi |
|
|
7026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
|
|
7027 | $as_echo "$pt_cv_path_wtmpx" >&6; } |
|
|
7028 | if test x$pt_cv_path_wtmpx != x; then |
|
|
7029 | |
|
|
7030 | cat >>confdefs.h <<_ACEOF |
|
|
7031 | #define PT_WTMPX_FILE "$pt_cv_path_wtmpx" |
|
|
7032 | _ACEOF |
|
|
7033 | |
|
|
7034 | elif test "$cross_compiling" = yes; then |
|
|
7035 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5 |
|
|
7036 | $as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;} |
|
|
7037 | fi |
|
|
7038 | |
|
|
7039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5 |
|
|
7040 | $as_echo_n "checking for a fallback location of lastlog... " >&6; } |
|
|
7041 | if test "${pt_cv_path_lastlog+set}" = set; then : |
|
|
7042 | $as_echo_n "(cached) " >&6 |
|
|
7043 | else |
|
|
7044 | |
|
|
7045 | if test "$cross_compiling" != yes; then |
|
|
7046 | for file in "/var/log/lastlog"; do |
|
|
7047 | if test -f "$file"; then |
|
|
7048 | pt_cv_path_lastlog=$file |
|
|
7049 | break |
|
|
7050 | fi |
|
|
7051 | done |
|
|
7052 | fi |
|
|
7053 | fi |
|
|
7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
|
|
7055 | $as_echo "$pt_cv_path_lastlog" >&6; } |
|
|
7056 | if test x$pt_cv_path_lastlog != x; then |
|
|
7057 | |
|
|
7058 | cat >>confdefs.h <<_ACEOF |
|
|
7059 | #define PT_LASTLOG_FILE "$pt_cv_path_lastlog" |
|
|
7060 | _ACEOF |
|
|
7061 | |
|
|
7062 | elif test "$cross_compiling" = yes; then |
|
|
7063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5 |
|
|
7064 | $as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;} |
|
|
7065 | fi |
|
|
7066 | |
|
|
7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5 |
|
|
7068 | $as_echo_n "checking for a fallback location of lastlogx... " >&6; } |
|
|
7069 | if test "${pt_cv_path_lastlogx+set}" = set; then : |
|
|
7070 | $as_echo_n "(cached) " >&6 |
|
|
7071 | else |
|
|
7072 | |
|
|
7073 | if test "$cross_compiling" != yes; then |
|
|
7074 | for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do |
|
|
7075 | if test -f "$file"; then |
|
|
7076 | pt_cv_path_lastlogx=$file |
|
|
7077 | break |
|
|
7078 | fi |
|
|
7079 | done |
|
|
7080 | fi |
|
|
7081 | fi |
|
|
7082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
|
|
7083 | $as_echo "$pt_cv_path_lastlogx" >&6; } |
|
|
7084 | if test x$pt_cv_path_lastlogx != x; then |
|
|
7085 | |
|
|
7086 | cat >>confdefs.h <<_ACEOF |
|
|
7087 | #define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx" |
|
|
7088 | _ACEOF |
|
|
7089 | |
|
|
7090 | elif test "$cross_compiling" = yes; then |
|
|
7091 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5 |
|
|
7092 | $as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;} |
|
|
7093 | fi |
|
|
7094 | |
|
|
7095 | |
|
|
7096 | |
|
|
7097 | |
|
|
7098 | save_LIBS=$LIBS |
7428 | save_LIBS="$LIBS" |
7099 | save_CFLAGS=$CFLAGS |
7429 | LIBS="$LIBS $X_LIBS" |
7100 | CFLAGS="$CFLAGS $X_CFLAGS" |
7430 | ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default" |
7101 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
7431 | if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then : |
7102 | if test x$support_xim = xyes; then |
|
|
7103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5 |
|
|
7104 | $as_echo_n "checking for working Xlocale... " >&6; } |
|
|
7105 | if test "${rxvt_cv_func_xlocale+set}" = set; then : |
|
|
7106 | $as_echo_n "(cached) " >&6 |
|
|
7107 | else |
|
|
7108 | if test "$cross_compiling" = yes; then : |
|
|
7109 | : |
|
|
7110 | else |
|
|
7111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7112 | /* end confdefs.h. */ |
|
|
7113 | |
7432 | |
7114 | #include <X11/Xlib.h> |
|
|
7115 | #include <stdlib.h> |
|
|
7116 | int main() { |
|
|
7117 | char *p; |
|
|
7118 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
|
|
7119 | exit (XSupportsLocale() ? 0 : 1); |
|
|
7120 | else |
|
|
7121 | exit (1); |
|
|
7122 | } |
|
|
7123 | |
|
|
7124 | _ACEOF |
|
|
7125 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7126 | rxvt_cv_func_xlocale=yes |
|
|
7127 | else |
|
|
7128 | rxvt_cv_func_xlocale=no |
|
|
7129 | fi |
|
|
7130 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7131 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7132 | fi |
|
|
7133 | |
|
|
7134 | fi |
|
|
7135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5 |
|
|
7136 | $as_echo "$rxvt_cv_func_xlocale" >&6; } |
|
|
7137 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
7138 | |
|
|
7139 | $as_echo "#define USE_XIM 1" >>confdefs.h |
|
|
7140 | |
|
|
7141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5 |
|
|
7142 | $as_echo_n "checking for broken XIM callback... " >&6; } |
|
|
7143 | if test "${rxvt_cv_broken_ximcb+set}" = set; then : |
|
|
7144 | $as_echo_n "(cached) " >&6 |
|
|
7145 | else |
|
|
7146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7147 | /* end confdefs.h. */ |
|
|
7148 | |
|
|
7149 | #include <X11/Xlib.h> |
|
|
7150 | |
|
|
7151 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
7152 | |
|
|
7153 | void f() { |
|
|
7154 | XIMCallback cb; |
|
|
7155 | cb.callback = im_destroy_cb; |
|
|
7156 | } |
|
|
7157 | |
|
|
7158 | _ACEOF |
|
|
7159 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
7160 | rxvt_cv_broken_ximcb=yes |
|
|
7161 | else |
|
|
7162 | rxvt_cv_broken_ximcb=no |
|
|
7163 | fi |
|
|
7164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7165 | fi |
|
|
7166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5 |
|
|
7167 | $as_echo "$rxvt_cv_broken_ximcb" >&6; } |
|
|
7168 | |
|
|
7169 | if test x$rxvt_cv_broken_ximcb = xyes; then |
|
|
7170 | |
|
|
7171 | $as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h |
|
|
7172 | |
|
|
7173 | fi |
|
|
7174 | fi |
|
|
7175 | fi |
|
|
7176 | |
|
|
7177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5 |
|
|
7178 | $as_echo_n "checking for working X setlocale... " >&6; } |
|
|
7179 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then : |
|
|
7180 | $as_echo_n "(cached) " >&6 |
|
|
7181 | else |
|
|
7182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7183 | /* end confdefs.h. */ |
|
|
7184 | #define X_LOCALE 1 |
|
|
7185 | #include <X11/Xlocale.h> |
|
|
7186 | int |
|
|
7187 | main () |
|
|
7188 | { |
|
|
7189 | setlocale(LC_CTYPE, ""); |
|
|
7190 | ; |
|
|
7191 | return 0; |
|
|
7192 | } |
|
|
7193 | _ACEOF |
|
|
7194 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7195 | rxvt_cv_func_xsetlocale=yes |
|
|
7196 | else |
|
|
7197 | rxvt_cv_func_xsetlocale=no |
|
|
7198 | fi |
|
|
7199 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7200 | conftest$ac_exeext conftest.$ac_ext |
|
|
7201 | fi |
|
|
7202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5 |
|
|
7203 | $as_echo "$rxvt_cv_func_xsetlocale" >&6; } |
|
|
7204 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
|
|
7205 | |
|
|
7206 | $as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h |
|
|
7207 | |
|
|
7208 | fi |
|
|
7209 | LIBS=$save_LIBS |
|
|
7210 | CFLAGS=$save_CFLAGS |
|
|
7211 | |
|
|
7212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5 |
|
|
7213 | $as_echo_n "checking for working plain setlocale... " >&6; } |
|
|
7214 | if test "${rxvt_cv_func_setlocale+set}" = set; then : |
|
|
7215 | $as_echo_n "(cached) " >&6 |
|
|
7216 | else |
|
|
7217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7218 | /* end confdefs.h. */ |
|
|
7219 | #include <clocale> |
|
|
7220 | int |
|
|
7221 | main () |
|
|
7222 | { |
|
|
7223 | setlocale(LC_CTYPE, ""); |
|
|
7224 | ; |
|
|
7225 | return 0; |
|
|
7226 | } |
|
|
7227 | _ACEOF |
|
|
7228 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7229 | rxvt_cv_func_setlocale=yes |
|
|
7230 | else |
|
|
7231 | rxvt_cv_func_setlocale=no |
|
|
7232 | fi |
|
|
7233 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7234 | conftest$ac_exeext conftest.$ac_ext |
|
|
7235 | fi |
|
|
7236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5 |
|
|
7237 | $as_echo "$rxvt_cv_func_setlocale" >&6; } |
|
|
7238 | if test x$rxvt_cv_func_setlocale = xyes; then |
|
|
7239 | |
|
|
7240 | $as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h |
|
|
7241 | |
|
|
7242 | fi |
|
|
7243 | |
|
|
7244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5 |
|
|
7245 | $as_echo_n "checking for working nl_langinfo... " >&6; } |
|
|
7246 | if test "${rxvt_cv_func_nl_langinfo+set}" = set; then : |
|
|
7247 | $as_echo_n "(cached) " >&6 |
|
|
7248 | else |
|
|
7249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7250 | /* end confdefs.h. */ |
|
|
7251 | #include <langinfo.h> |
|
|
7252 | int |
|
|
7253 | main () |
|
|
7254 | { |
|
|
7255 | nl_langinfo(CODESET); |
|
|
7256 | ; |
|
|
7257 | return 0; |
|
|
7258 | } |
|
|
7259 | _ACEOF |
|
|
7260 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7261 | rxvt_cv_func_nl_langinfo=yes |
|
|
7262 | else |
|
|
7263 | rxvt_cv_func_nl_langinfo=no |
|
|
7264 | fi |
|
|
7265 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7266 | conftest$ac_exeext conftest.$ac_ext |
|
|
7267 | fi |
|
|
7268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5 |
|
|
7269 | $as_echo "$rxvt_cv_func_nl_langinfo" >&6; } |
|
|
7270 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
|
|
7271 | |
|
|
7272 | $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
|
|
7273 | |
|
|
7274 | fi |
|
|
7275 | |
|
|
7276 | |
|
|
7277 | { $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; } |
|
|
7279 | if test "${pt_cv_can_pass_fds+set}" = set; then : |
|
|
7280 | $as_echo_n "(cached) " >&6 |
|
|
7281 | else |
|
|
7282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7283 | /* end confdefs.h. */ |
|
|
7284 | |
|
|
7285 | #include <cstddef> // broken bsds (is that redundant?) need this |
|
|
7286 | #include <sys/types.h> |
|
|
7287 | #include <sys/socket.h> |
|
|
7288 | #include <sys/uio.h> |
|
|
7289 | |
|
|
7290 | int |
|
|
7291 | main () |
|
|
7292 | { |
|
|
7293 | |
|
|
7294 | { |
|
|
7295 | msghdr msg; |
|
|
7296 | iovec iov; |
|
|
7297 | char buf [100]; |
|
|
7298 | char data = 0; |
|
|
7299 | |
|
|
7300 | iov.iov_base = &data; |
|
|
7301 | iov.iov_len = 1; |
|
|
7302 | |
|
|
7303 | msg.msg_iov = &iov; |
|
|
7304 | msg.msg_iovlen = 1; |
|
|
7305 | msg.msg_control = buf; |
|
|
7306 | msg.msg_controllen = sizeof buf; |
|
|
7307 | |
|
|
7308 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
7309 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
7310 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
7311 | cmsg->cmsg_len = 100; |
|
|
7312 | |
|
|
7313 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
7314 | |
|
|
7315 | return sendmsg (3, &msg, 0); |
|
|
7316 | } |
|
|
7317 | |
|
|
7318 | ; |
|
|
7319 | return 0; |
|
|
7320 | } |
|
|
7321 | _ACEOF |
|
|
7322 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7323 | pt_cv_can_pass_fds=yes |
|
|
7324 | else |
|
|
7325 | pt_cv_can_pass_fds=no |
|
|
7326 | fi |
|
|
7327 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7328 | conftest$ac_exeext conftest.$ac_ext |
|
|
7329 | fi |
|
|
7330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5 |
|
|
7331 | $as_echo "$pt_cv_can_pass_fds" >&6; } |
|
|
7332 | if test x$pt_cv_can_pass_fds = xyes; then |
|
|
7333 | |
|
|
7334 | $as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h |
|
|
7335 | |
|
|
7336 | else |
|
|
7337 | as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5 |
|
|
7338 | fi |
|
|
7339 | |
|
|
7340 | |
|
|
7341 | |
|
|
7342 | for ac_header in \ |
|
|
7343 | pty.h \ |
|
|
7344 | util.h \ |
|
|
7345 | libutil.h \ |
|
|
7346 | sys/ioctl.h \ |
|
|
7347 | sys/stropts.h \ |
|
|
7348 | stropts.h \ |
|
|
7349 | |
|
|
7350 | do : |
|
|
7351 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7352 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
7353 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
7354 | cat >>confdefs.h <<_ACEOF |
|
|
7355 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7356 | _ACEOF |
|
|
7357 | |
|
|
7358 | fi |
|
|
7359 | |
|
|
7360 | done |
|
|
7361 | |
|
|
7362 | |
|
|
7363 | for ac_func in \ |
|
|
7364 | revoke \ |
|
|
7365 | _getpty \ |
|
|
7366 | getpt \ |
|
|
7367 | posix_openpt \ |
|
|
7368 | isastream \ |
|
|
7369 | setuid \ |
|
|
7370 | seteuid \ |
|
|
7371 | setreuid \ |
|
|
7372 | setresuid \ |
|
|
7373 | |
|
|
7374 | do : |
|
|
7375 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
7376 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
7377 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
7378 | cat >>confdefs.h <<_ACEOF |
|
|
7379 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
7380 | _ACEOF |
|
|
7381 | |
|
|
7382 | fi |
|
|
7383 | done |
|
|
7384 | |
|
|
7385 | |
|
|
7386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
|
|
7387 | $as_echo_n "checking for UNIX98 ptys... " >&6; } |
|
|
7388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7389 | /* end confdefs.h. */ |
|
|
7390 | #include <stdlib.h> |
|
|
7391 | int |
|
|
7392 | main () |
|
|
7393 | { |
|
|
7394 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
7395 | ; |
|
|
7396 | return 0; |
|
|
7397 | } |
|
|
7398 | _ACEOF |
|
|
7399 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7400 | unix98_pty=yes |
|
|
7401 | |
|
|
7402 | $as_echo "#define UNIX98_PTY 1" >>confdefs.h |
|
|
7403 | |
|
|
7404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
7405 | $as_echo "yes" >&6; } |
|
|
7406 | else |
|
|
7407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7408 | $as_echo "no" >&6; } |
|
|
7409 | fi |
|
|
7410 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7411 | conftest$ac_exeext conftest.$ac_ext |
|
|
7412 | |
|
|
7413 | if test -z "$unix98_pty"; then |
|
|
7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
|
|
7415 | $as_echo_n "checking for library containing openpty... " >&6; } |
|
|
7416 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7417 | $as_echo_n "(cached) " >&6 |
|
|
7418 | else |
|
|
7419 | ac_func_search_save_LIBS=$LIBS |
|
|
7420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7421 | /* end confdefs.h. */ |
|
|
7422 | |
|
|
7423 | /* Override any GCC internal prototype to avoid an error. |
|
|
7424 | Use char because int might match the return type of a GCC |
|
|
7425 | builtin and then its argument prototype would still apply. */ |
|
|
7426 | #ifdef __cplusplus |
|
|
7427 | extern "C" |
|
|
7428 | #endif |
|
|
7429 | char openpty (); |
|
|
7430 | int |
|
|
7431 | main () |
|
|
7432 | { |
|
|
7433 | return openpty (); |
|
|
7434 | ; |
|
|
7435 | return 0; |
|
|
7436 | } |
|
|
7437 | _ACEOF |
|
|
7438 | for ac_lib in '' util; do |
|
|
7439 | if test -z "$ac_lib"; then |
|
|
7440 | ac_res="none required" |
|
|
7441 | else |
7433 | else |
7442 | ac_res=-l$ac_lib |
|
|
7443 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7444 | fi |
|
|
7445 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7446 | ac_cv_search_openpty=$ac_res |
|
|
7447 | fi |
|
|
7448 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7449 | conftest$ac_exeext |
|
|
7450 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7451 | break |
|
|
7452 | fi |
|
|
7453 | done |
|
|
7454 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7455 | |
|
|
7456 | else |
|
|
7457 | ac_cv_search_openpty=no |
|
|
7458 | fi |
|
|
7459 | rm conftest.$ac_ext |
|
|
7460 | LIBS=$ac_func_search_save_LIBS |
|
|
7461 | fi |
|
|
7462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 |
|
|
7463 | $as_echo "$ac_cv_search_openpty" >&6; } |
|
|
7464 | ac_res=$ac_cv_search_openpty |
|
|
7465 | if test "$ac_res" != no; then : |
|
|
7466 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7467 | |
|
|
7468 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
|
|
7469 | |
|
|
7470 | fi |
|
|
7471 | |
|
|
7472 | fi |
|
|
7473 | |
|
|
7474 | |
|
|
7475 | |
|
|
7476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5 |
|
|
7477 | $as_echo_n "checking for tty group... " >&6; } |
|
|
7478 | if test "${pt_cv_tty_group+set}" = set; then : |
|
|
7479 | $as_echo_n "(cached) " >&6 |
|
|
7480 | else |
|
|
7481 | if test "$cross_compiling" = yes; then : |
|
|
7482 | pt_cv_tty_group=no |
|
|
7483 | else |
|
|
7484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7485 | /* end confdefs.h. */ |
|
|
7486 | |
|
|
7487 | #include <sys/types.h> |
|
|
7488 | #include <sys/stat.h> |
|
|
7489 | #include <unistd.h> |
|
|
7490 | #include <grp.h> |
|
|
7491 | |
|
|
7492 | int main() |
|
|
7493 | { |
|
|
7494 | struct stat st; |
|
|
7495 | struct group *gr; |
|
|
7496 | char *tty; |
|
|
7497 | gr = getgrnam("tty"); |
|
|
7498 | tty = ttyname(0); |
|
|
7499 | if (gr != 0 |
|
|
7500 | && tty != 0 |
|
|
7501 | && (stat(tty, &st)) == 0 |
|
|
7502 | && st.st_gid == gr->gr_gid) |
|
|
7503 | return 0; |
|
|
7504 | else |
|
|
7505 | return 1; |
|
|
7506 | } |
|
|
7507 | _ACEOF |
|
|
7508 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7509 | pt_cv_tty_group=yes |
|
|
7510 | else |
|
|
7511 | pt_cv_tty_group=no |
|
|
7512 | fi |
|
|
7513 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7514 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7515 | fi |
|
|
7516 | |
|
|
7517 | fi |
|
|
7518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5 |
|
|
7519 | $as_echo "$pt_cv_tty_group" >&6; } |
|
|
7520 | if test x$pt_cv_tty_group = xyes; then |
|
|
7521 | |
|
|
7522 | $as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h |
|
|
7523 | |
|
|
7524 | fi |
|
|
7525 | |
|
|
7526 | if test x$support_xft = xyes || test x$support_inheritpixmap = xyes; then |
|
|
7527 | rxvt_have_xrender=no |
7434 | rxvt_have_xrender=no |
|
|
7435 | fi |
|
|
7436 | |
|
|
7437 | |
|
|
7438 | ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat" |
|
|
7439 | if test "x$ac_cv_func_XRenderFindStandardFormat" = x""yes; then : |
|
|
7440 | |
|
|
7441 | else |
|
|
7442 | rxvt_have_xrender=no |
|
|
7443 | fi |
|
|
7444 | |
|
|
7445 | LIBS="$save_LIBS" |
|
|
7446 | fi |
|
|
7447 | fi |
|
|
7448 | |
|
|
7449 | if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
7528 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7450 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7529 | set dummy pkg-config; ac_word=$2 |
7451 | set dummy pkg-config; ac_word=$2 |
7530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7531 | $as_echo_n "checking for $ac_word... " >&6; } |
7453 | $as_echo_n "checking for $ac_word... " >&6; } |
7532 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
7454 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
… | |
… | |
7564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7565 | $as_echo "no" >&6; } |
7487 | $as_echo "no" >&6; } |
7566 | fi |
7488 | fi |
7567 | |
7489 | |
7568 | |
7490 | |
7569 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
7491 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
7570 | X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" |
7492 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
7571 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" |
7493 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
7572 | rxvt_have_xrender=yes |
7494 | else |
|
|
7495 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
7496 | set dummy xft-config; ac_word=$2 |
|
|
7497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
7498 | $as_echo_n "checking for $ac_word... " >&6; } |
|
|
7499 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then : |
|
|
7500 | $as_echo_n "(cached) " >&6 |
|
|
7501 | else |
|
|
7502 | case $XFT_CONFIG in |
|
|
7503 | [\\/]* | ?:[\\/]*) |
|
|
7504 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
|
|
7505 | ;; |
|
|
7506 | *) |
|
|
7507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
7508 | for as_dir in $PATH |
|
|
7509 | do |
|
|
7510 | IFS=$as_save_IFS |
|
|
7511 | test -z "$as_dir" && as_dir=. |
|
|
7512 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
7513 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
7514 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
7515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
7516 | break 2 |
|
|
7517 | fi |
|
|
7518 | done |
|
|
7519 | done |
|
|
7520 | IFS=$as_save_IFS |
7573 | |
7521 | |
|
|
7522 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
|
|
7523 | ;; |
|
|
7524 | esac |
|
|
7525 | fi |
|
|
7526 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
7527 | if test -n "$XFT_CONFIG"; then |
|
|
7528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 |
|
|
7529 | $as_echo "$XFT_CONFIG" >&6; } |
|
|
7530 | else |
|
|
7531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7532 | $as_echo "no" >&6; } |
|
|
7533 | fi |
|
|
7534 | |
|
|
7535 | |
|
|
7536 | if test $XFT_CONFIG != no; then |
|
|
7537 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
|
|
7538 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
|
|
7539 | fi |
|
|
7540 | fi |
|
|
7541 | |
|
|
7542 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then |
|
|
7543 | X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS" |
|
|
7544 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" |
|
|
7545 | fi |
|
|
7546 | |
7574 | save_LIBS="$LIBS" |
7547 | save_LIBS="$LIBS" |
7575 | LIBS="$LIBS $X_LIBS" |
7548 | LIBS="$LIBS $X_LIBS" |
|
|
7549 | for ac_header in X11/Xft/Xft.h |
|
|
7550 | do : |
7576 | ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default" |
7551 | ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" |
7577 | if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then : |
7552 | if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : |
|
|
7553 | cat >>confdefs.h <<_ACEOF |
|
|
7554 | #define HAVE_X11_XFT_XFT_H 1 |
|
|
7555 | _ACEOF |
7578 | |
7556 | |
7579 | else |
7557 | else |
7580 | rxvt_have_xrender=no |
7558 | support_xft=no |
7581 | fi |
7559 | fi |
7582 | |
7560 | |
|
|
7561 | done |
7583 | |
7562 | |
7584 | ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat" |
7563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5 |
7585 | if test "x$ac_cv_func_XRenderFindStandardFormat" = x""yes; then : |
7564 | $as_echo_n "checking for XftDrawString32 in -lXft... " >&6; } |
7586 | |
7565 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then : |
|
|
7566 | $as_echo_n "(cached) " >&6 |
7587 | else |
7567 | else |
7588 | rxvt_have_xrender=no |
7568 | ac_check_lib_save_LIBS=$LIBS |
7589 | fi |
7569 | LIBS="-lXft $LIBS" |
|
|
7570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7571 | /* end confdefs.h. */ |
7590 | |
7572 | |
|
|
7573 | /* Override any GCC internal prototype to avoid an error. |
|
|
7574 | Use char because int might match the return type of a GCC |
|
|
7575 | builtin and then its argument prototype would still apply. */ |
|
|
7576 | #ifdef __cplusplus |
|
|
7577 | extern "C" |
|
|
7578 | #endif |
|
|
7579 | char XftDrawString32 (); |
|
|
7580 | int |
|
|
7581 | main () |
|
|
7582 | { |
|
|
7583 | return XftDrawString32 (); |
|
|
7584 | ; |
|
|
7585 | return 0; |
|
|
7586 | } |
|
|
7587 | _ACEOF |
|
|
7588 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7589 | ac_cv_lib_Xft_XftDrawString32=yes |
|
|
7590 | else |
|
|
7591 | ac_cv_lib_Xft_XftDrawString32=no |
|
|
7592 | fi |
|
|
7593 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7594 | conftest$ac_exeext conftest.$ac_ext |
|
|
7595 | LIBS=$ac_check_lib_save_LIBS |
|
|
7596 | fi |
|
|
7597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
|
|
7598 | $as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; } |
|
|
7599 | if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then : |
|
|
7600 | : |
|
|
7601 | else |
|
|
7602 | support_xft=no |
|
|
7603 | fi |
|
|
7604 | |
|
|
7605 | for ac_header in fontconfig/fontconfig.h |
|
|
7606 | do : |
|
|
7607 | ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" |
|
|
7608 | if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then : |
|
|
7609 | cat >>confdefs.h <<_ACEOF |
|
|
7610 | #define HAVE_FONTCONFIG_FONTCONFIG_H 1 |
|
|
7611 | _ACEOF |
|
|
7612 | |
|
|
7613 | else |
|
|
7614 | support_xft=no |
|
|
7615 | fi |
|
|
7616 | |
|
|
7617 | done |
|
|
7618 | |
|
|
7619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5 |
|
|
7620 | $as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; } |
|
|
7621 | if test "${ac_cv_lib_fontconfig_FcPatternGet+set}" = set; then : |
|
|
7622 | $as_echo_n "(cached) " >&6 |
|
|
7623 | else |
|
|
7624 | ac_check_lib_save_LIBS=$LIBS |
|
|
7625 | LIBS="-lfontconfig $LIBS" |
|
|
7626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7627 | /* end confdefs.h. */ |
|
|
7628 | |
|
|
7629 | /* Override any GCC internal prototype to avoid an error. |
|
|
7630 | Use char because int might match the return type of a GCC |
|
|
7631 | builtin and then its argument prototype would still apply. */ |
|
|
7632 | #ifdef __cplusplus |
|
|
7633 | extern "C" |
|
|
7634 | #endif |
|
|
7635 | char FcPatternGet (); |
|
|
7636 | int |
|
|
7637 | main () |
|
|
7638 | { |
|
|
7639 | return FcPatternGet (); |
|
|
7640 | ; |
|
|
7641 | return 0; |
|
|
7642 | } |
|
|
7643 | _ACEOF |
|
|
7644 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7645 | ac_cv_lib_fontconfig_FcPatternGet=yes |
|
|
7646 | else |
|
|
7647 | ac_cv_lib_fontconfig_FcPatternGet=no |
|
|
7648 | fi |
|
|
7649 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7650 | conftest$ac_exeext conftest.$ac_ext |
|
|
7651 | LIBS=$ac_check_lib_save_LIBS |
|
|
7652 | fi |
|
|
7653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5 |
|
|
7654 | $as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; } |
|
|
7655 | if test "x$ac_cv_lib_fontconfig_FcPatternGet" = x""yes; then : |
|
|
7656 | : |
|
|
7657 | else |
|
|
7658 | support_xft=no |
|
|
7659 | fi |
|
|
7660 | |
7591 | LIBS="$save_LIBS" |
7661 | LIBS="$save_LIBS" |
7592 | fi |
|
|
7593 | fi |
|
|
7594 | |
7662 | |
|
|
7663 | if test x$support_xft = xyes; then |
|
|
7664 | |
|
|
7665 | $as_echo "#define XFT 1" >>confdefs.h |
|
|
7666 | |
|
|
7667 | fi |
|
|
7668 | fi |
|
|
7669 | |
|
|
7670 | image_lib=none |
|
|
7671 | |
|
|
7672 | PIXBUF_CFLAGS= |
|
|
7673 | PIXBUF_LIBS= |
|
|
7674 | |
7595 | if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
7675 | if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then |
|
|
7676 | LIBS="$LIBS -lm" |
|
|
7677 | |
|
|
7678 | $as_echo "#define XRENDER 1" >>confdefs.h |
|
|
7679 | |
|
|
7680 | |
|
|
7681 | if test x$support_inheritpixmap = xyes; then |
|
|
7682 | |
|
|
7683 | $as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h |
|
|
7684 | |
|
|
7685 | fi |
|
|
7686 | |
|
|
7687 | if test x$support_pixbuf = xyes; then |
|
|
7688 | support_pixbuf=no |
7596 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7689 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7597 | set dummy pkg-config; ac_word=$2 |
7690 | set dummy pkg-config; ac_word=$2 |
7598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7599 | $as_echo_n "checking for $ac_word... " >&6; } |
7692 | $as_echo_n "checking for $ac_word... " >&6; } |
7600 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
7693 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
7601 | $as_echo_n "(cached) " >&6 |
7694 | $as_echo_n "(cached) " >&6 |
… | |
… | |
7632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7633 | $as_echo "no" >&6; } |
7726 | $as_echo "no" >&6; } |
7634 | fi |
7727 | fi |
7635 | |
7728 | |
7636 | |
7729 | |
|
|
7730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5 |
|
|
7731 | $as_echo_n "checking for gdk-pixbuf... " >&6; } |
7637 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
7732 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
7638 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
7733 | PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`" |
7639 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
7734 | PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`" |
7640 | else |
7735 | support_pixbuf=yes |
7641 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
7642 | set dummy xft-config; ac_word=$2 |
|
|
7643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
7644 | $as_echo_n "checking for $ac_word... " >&6; } |
|
|
7645 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then : |
|
|
7646 | $as_echo_n "(cached) " >&6 |
|
|
7647 | else |
|
|
7648 | case $XFT_CONFIG in |
|
|
7649 | [\\/]* | ?:[\\/]*) |
|
|
7650 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
|
|
7651 | ;; |
|
|
7652 | *) |
|
|
7653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
7654 | for as_dir in $PATH |
|
|
7655 | do |
|
|
7656 | IFS=$as_save_IFS |
|
|
7657 | test -z "$as_dir" && as_dir=. |
|
|
7658 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
7659 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
7660 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
7661 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
7662 | break 2 |
|
|
7663 | fi |
7736 | fi |
7664 | done |
|
|
7665 | done |
|
|
7666 | IFS=$as_save_IFS |
|
|
7667 | |
7737 | |
7668 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
7738 | if test x$support_pixbuf = xyes; then |
7669 | ;; |
|
|
7670 | esac |
|
|
7671 | fi |
|
|
7672 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
7673 | if test -n "$XFT_CONFIG"; then |
|
|
7674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 |
7739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7675 | $as_echo "$XFT_CONFIG" >&6; } |
7740 | $as_echo "ok" >&6; } |
7676 | else |
7741 | image_lib=gdk-pixbuf |
|
|
7742 | |
|
|
7743 | $as_echo "#define HAVE_PIXBUF 1" >>confdefs.h |
|
|
7744 | |
|
|
7745 | |
|
|
7746 | $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h |
|
|
7747 | |
|
|
7748 | else |
7677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7678 | $as_echo "no" >&6; } |
7750 | $as_echo "no" >&6; } |
7679 | fi |
|
|
7680 | |
|
|
7681 | |
|
|
7682 | if test $XFT_CONFIG != no; then |
|
|
7683 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
|
|
7684 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
|
|
7685 | fi |
7751 | fi |
7686 | fi |
7752 | fi |
7687 | |
|
|
7688 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then |
|
|
7689 | X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS" |
|
|
7690 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" |
|
|
7691 | fi |
|
|
7692 | |
|
|
7693 | save_LIBS="$LIBS" |
|
|
7694 | LIBS="$LIBS $X_LIBS" |
|
|
7695 | for ac_header in X11/Xft/Xft.h |
|
|
7696 | do : |
|
|
7697 | ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" |
|
|
7698 | if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : |
|
|
7699 | cat >>confdefs.h <<_ACEOF |
|
|
7700 | #define HAVE_X11_XFT_XFT_H 1 |
|
|
7701 | _ACEOF |
|
|
7702 | |
|
|
7703 | else |
|
|
7704 | support_xft=no |
|
|
7705 | fi |
7753 | fi |
7706 | |
7754 | |
7707 | done |
|
|
7708 | |
7755 | |
7709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5 |
|
|
7710 | $as_echo_n "checking for XftDrawString32 in -lXft... " >&6; } |
|
|
7711 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then : |
|
|
7712 | $as_echo_n "(cached) " >&6 |
|
|
7713 | else |
|
|
7714 | ac_check_lib_save_LIBS=$LIBS |
|
|
7715 | LIBS="-lXft $LIBS" |
|
|
7716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7717 | /* end confdefs.h. */ |
|
|
7718 | |
7756 | |
7719 | /* Override any GCC internal prototype to avoid an error. |
|
|
7720 | Use char because int might match the return type of a GCC |
|
|
7721 | builtin and then its argument prototype would still apply. */ |
|
|
7722 | #ifdef __cplusplus |
|
|
7723 | extern "C" |
|
|
7724 | #endif |
|
|
7725 | char XftDrawString32 (); |
|
|
7726 | int |
|
|
7727 | main () |
|
|
7728 | { |
|
|
7729 | return XftDrawString32 (); |
|
|
7730 | ; |
|
|
7731 | return 0; |
|
|
7732 | } |
|
|
7733 | _ACEOF |
|
|
7734 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7735 | ac_cv_lib_Xft_XftDrawString32=yes |
|
|
7736 | else |
|
|
7737 | ac_cv_lib_Xft_XftDrawString32=no |
|
|
7738 | fi |
|
|
7739 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7740 | conftest$ac_exeext conftest.$ac_ext |
|
|
7741 | LIBS=$ac_check_lib_save_LIBS |
|
|
7742 | fi |
|
|
7743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
|
|
7744 | $as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; } |
|
|
7745 | if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then : |
|
|
7746 | : |
|
|
7747 | else |
|
|
7748 | support_xft=no |
|
|
7749 | fi |
|
|
7750 | |
7757 | |
7751 | for ac_header in fontconfig/fontconfig.h |
|
|
7752 | do : |
|
|
7753 | ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" |
|
|
7754 | if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then : |
|
|
7755 | cat >>confdefs.h <<_ACEOF |
|
|
7756 | #define HAVE_FONTCONFIG_FONTCONFIG_H 1 |
|
|
7757 | _ACEOF |
|
|
7758 | |
|
|
7759 | else |
|
|
7760 | support_xft=no |
|
|
7761 | fi |
|
|
7762 | |
|
|
7763 | done |
|
|
7764 | |
|
|
7765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5 |
|
|
7766 | $as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; } |
|
|
7767 | if test "${ac_cv_lib_fontconfig_FcPatternGet+set}" = set; then : |
|
|
7768 | $as_echo_n "(cached) " >&6 |
|
|
7769 | else |
|
|
7770 | ac_check_lib_save_LIBS=$LIBS |
|
|
7771 | LIBS="-lfontconfig $LIBS" |
|
|
7772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7773 | /* end confdefs.h. */ |
|
|
7774 | |
|
|
7775 | /* Override any GCC internal prototype to avoid an error. |
|
|
7776 | Use char because int might match the return type of a GCC |
|
|
7777 | builtin and then its argument prototype would still apply. */ |
|
|
7778 | #ifdef __cplusplus |
|
|
7779 | extern "C" |
|
|
7780 | #endif |
|
|
7781 | char FcPatternGet (); |
|
|
7782 | int |
|
|
7783 | main () |
|
|
7784 | { |
|
|
7785 | return FcPatternGet (); |
|
|
7786 | ; |
|
|
7787 | return 0; |
|
|
7788 | } |
|
|
7789 | _ACEOF |
|
|
7790 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7791 | ac_cv_lib_fontconfig_FcPatternGet=yes |
|
|
7792 | else |
|
|
7793 | ac_cv_lib_fontconfig_FcPatternGet=no |
|
|
7794 | fi |
|
|
7795 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7796 | conftest$ac_exeext conftest.$ac_ext |
|
|
7797 | LIBS=$ac_check_lib_save_LIBS |
|
|
7798 | fi |
|
|
7799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5 |
|
|
7800 | $as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; } |
|
|
7801 | if test "x$ac_cv_lib_fontconfig_FcPatternGet" = x""yes; then : |
|
|
7802 | : |
|
|
7803 | else |
|
|
7804 | support_xft=no |
|
|
7805 | fi |
|
|
7806 | |
|
|
7807 | LIBS="$save_LIBS" |
|
|
7808 | |
|
|
7809 | if test x$support_xft = xyes; then |
7758 | if test x$support_xdbe = xyes; then |
7810 | |
7759 | |
7811 | $as_echo "#define XFT 1" >>confdefs.h |
7760 | $as_echo "#define ENABLE_XDBE 1" >>confdefs.h |
7812 | |
7761 | |
7813 | fi |
|
|
7814 | fi |
7762 | fi |
7815 | if test x$support_styles = xyes; then |
7763 | if test x$support_styles = xyes; then |
7816 | |
7764 | |
7817 | $as_echo "#define ENABLE_STYLES 1" >>confdefs.h |
7765 | $as_echo "#define ENABLE_STYLES 1" >>confdefs.h |
7818 | |
7766 | |
… | |
… | |
7828 | |
7776 | |
7829 | fi |
7777 | fi |
7830 | if test x$support_fading = xyes; then |
7778 | if test x$support_fading = xyes; then |
7831 | |
7779 | |
7832 | $as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h |
7780 | $as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h |
7833 | |
|
|
7834 | fi |
|
|
7835 | if test x$support_inheritpixmap = xyes; then |
|
|
7836 | if test x$rxvt_have_xrender = xyes; then |
|
|
7837 | LIBS="$LIBS -lm" |
|
|
7838 | |
|
|
7839 | $as_echo "#define XRENDER 1" >>confdefs.h |
|
|
7840 | |
|
|
7841 | fi |
|
|
7842 | |
|
|
7843 | $as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h |
|
|
7844 | |
7781 | |
7845 | fi |
7782 | fi |
7846 | if test x$support_keepscrolling = xno; then |
7783 | if test x$support_keepscrolling = xno; then |
7847 | |
7784 | |
7848 | $as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h |
7785 | $as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h |
… | |
… | |
7968 | fi |
7905 | fi |
7969 | done |
7906 | done |
7970 | done |
7907 | done |
7971 | IFS=$as_save_IFS |
7908 | IFS=$as_save_IFS |
7972 | |
7909 | |
7973 | ;; |
7910 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
7974 | esac |
|
|
7975 | fi |
|
|
7976 | PERL=$ac_cv_path_PERL |
|
|
7977 | if test -n "$PERL"; then |
|
|
7978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
|
|
7979 | $as_echo "$PERL" >&6; } |
|
|
7980 | else |
|
|
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7982 | $as_echo "no" >&6; } |
|
|
7983 | fi |
|
|
7984 | |
|
|
7985 | |
|
|
7986 | # Extract the first word of "perl", so it can be a program name with args. |
|
|
7987 | set dummy perl; ac_word=$2 |
|
|
7988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
7989 | $as_echo_n "checking for $ac_word... " >&6; } |
|
|
7990 | if test "${ac_cv_path_PERL+set}" = set; then : |
|
|
7991 | $as_echo_n "(cached) " >&6 |
|
|
7992 | else |
|
|
7993 | case $PERL in |
|
|
7994 | [\\/]* | ?:[\\/]*) |
|
|
7995 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
7996 | ;; |
|
|
7997 | *) |
|
|
7998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
7999 | for as_dir in $PATH |
|
|
8000 | do |
|
|
8001 | IFS=$as_save_IFS |
|
|
8002 | test -z "$as_dir" && as_dir=. |
|
|
8003 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
8004 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
8005 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
8006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
8007 | break 2 |
|
|
8008 | fi |
|
|
8009 | done |
|
|
8010 | done |
|
|
8011 | IFS=$as_save_IFS |
|
|
8012 | |
|
|
8013 | ;; |
7911 | ;; |
8014 | esac |
7912 | esac |
8015 | fi |
7913 | fi |
8016 | PERL=$ac_cv_path_PERL |
7914 | PERL=$ac_cv_path_PERL |
8017 | if test -n "$PERL"; then |
7915 | if test -n "$PERL"; then |