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

Comparing rxvt-unicode/configure (file contents):
Revision 1.150 by root, Sun Dec 18 02:23:11 2011 UTC vs.
Revision 1.156 by root, Tue Jun 19 18:17:56 2012 UTC

597IF_PERL 597IF_PERL
598PERLPRIVLIBEXP 598PERLPRIVLIBEXP
599PERLFLAGS 599PERLFLAGS
600PERLLIB 600PERLLIB
601PERL 601PERL
602PIXBUF_LIBS
603PIXBUF_CFLAGS
602XFT_CONFIG 604XFT_CONFIG
603AFTERIMAGE_LIBS
604AFTERIMAGE_CFLAGS
605afterimage_config
606STARTUP_NOTIFICATION_LIBS 605STARTUP_NOTIFICATION_LIBS
607STARTUP_NOTIFICATION_CFLAGS 606STARTUP_NOTIFICATION_CFLAGS
608PIXBUF_LIBS
609PIXBUF_CFLAGS
610PKG_CONFIG 607PKG_CONFIG
611X_EXTRA_LIBS 608X_EXTRA_LIBS
612X_LIBS 609X_LIBS
613X_PRE_LIBS 610X_PRE_LIBS
614X_CFLAGS 611X_CFLAGS
617CXXCPP 614CXXCPP
618RXVTNAME 615RXVTNAME
619LINKER 616LINKER
620EGREP 617EGREP
621GREP 618GREP
619CPP
622INSTALL_DATA 620INSTALL_DATA
623INSTALL_SCRIPT 621INSTALL_SCRIPT
624INSTALL_PROGRAM 622INSTALL_PROGRAM
625CPP
626ac_ct_CXX 623ac_ct_CXX
627CXXFLAGS 624CXXFLAGS
628CXX 625CXX
629OBJEXT 626OBJEXT
630EXEEXT 627EXEEXT
690enable_256_color 687enable_256_color
691enable_unicode3 688enable_unicode3
692enable_combining 689enable_combining
693enable_xft 690enable_xft
694enable_font_styles 691enable_font_styles
695enable_afterimage
696with_afterimage_config
697enable_pixbuf 692enable_pixbuf
698enable_startup_notification 693enable_startup_notification
699enable_transparency 694enable_transparency
700enable_fading 695enable_fading
701enable_rxvt_scroll 696enable_rxvt_scroll
722enable_smart_resize 717enable_smart_resize
723enable_text_blink 718enable_text_blink
724enable_pointer_blank 719enable_pointer_blank
725with_term 720with_term
726with_terminfo 721with_terminfo
722enable_xdbe
727with_x 723with_x
728enable_utmp 724enable_utmp
729enable_wtmp 725enable_wtmp
730enable_lastlog 726enable_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
1401Optional Packages: 1397Optional 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)
2738IFS=$ac_save_IFS 2733IFS=$ac_save_IFS
2739case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2734case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2740 2735
2741 2736
2742 2737
2743VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2738VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2744DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2739DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2745 2740
2746echo "" 2741echo ""
2747echo "configuring for rxvt $VERSION" 2742echo "configuring for rxvt $VERSION"
2748echo "" 2743echo ""
2749 2744
3788 CXXFLAGS="-O2" 3783 CXXFLAGS="-O2"
3789 else 3784 else
3790 CXXFLAGS= 3785 CXXFLAGS=
3791 fi 3786 fi
3792fi 3787fi
3793ac_ext=c
3794ac_cpp='$CPP $CPPFLAGS'
3795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797ac_compiler_gnu=$ac_cv_c_compiler_gnu
3798
3799ac_ext=c
3800ac_cpp='$CPP $CPPFLAGS'
3801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803ac_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.
3807if test -n "$CPP" && test -d "$CPP"; then
3808 CPP=
3809fi
3810if test -z "$CPP"; then
3811 if test "${ac_cv_prog_CPP+set}" = set; then :
3812 $as_echo_n "(cached) " >&6
3813else
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
3818for ac_c_preproc_warn_flag in '' yes
3819do
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
3835if ac_fn_c_try_cpp "$LINENO"; then :
3836
3837else
3838 # Broken: fails on valid input.
3839continue
3840fi
3841rm -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
3849if ac_fn_c_try_cpp "$LINENO"; then :
3850 # Broken: success on invalid input.
3851continue
3852else
3853 # Passes both tests.
3854ac_preproc_ok=:
3855break
3856fi
3857rm -f conftest.err conftest.i conftest.$ac_ext
3858
3859done
3860# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3861rm -f conftest.i conftest.err conftest.$ac_ext
3862if $ac_preproc_ok; then :
3863 break
3864fi
3865
3866 done
3867 ac_cv_prog_CPP=$CPP
3868
3869fi
3870 CPP=$ac_cv_prog_CPP
3871else
3872 ac_cv_prog_CPP=$CPP
3873fi
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3875$as_echo "$CPP" >&6; }
3876ac_preproc_ok=false
3877for ac_c_preproc_warn_flag in '' yes
3878do
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
3894if ac_fn_c_try_cpp "$LINENO"; then :
3895
3896else
3897 # Broken: fails on valid input.
3898continue
3899fi
3900rm -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
3908if ac_fn_c_try_cpp "$LINENO"; then :
3909 # Broken: success on invalid input.
3910continue
3911else
3912 # Passes both tests.
3913ac_preproc_ok=:
3914break
3915fi
3916rm -f conftest.err conftest.i conftest.$ac_ext
3917
3918done
3919# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3920rm -f conftest.i conftest.err conftest.$ac_ext
3921if $ac_preproc_ok; then :
3922
3923else
3924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3926as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3927See \`config.log' for more details" "$LINENO" 5 ; }
3928fi
3929
3930ac_ext=c 3788ac_ext=c
3931ac_cpp='$CPP $CPPFLAGS' 3789ac_cpp='$CPP $CPPFLAGS'
3932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934ac_compiler_gnu=$ac_cv_c_compiler_gnu 3792ac_compiler_gnu=$ac_cv_c_compiler_gnu
4026 3884
4027test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3885test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4028 3886
4029 3887
4030 3888
3889ac_ext=c
3890ac_cpp='$CPP $CPPFLAGS'
3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893ac_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.
3897if test -n "$CPP" && test -d "$CPP"; then
3898 CPP=
3899fi
3900if test -z "$CPP"; then
3901 if test "${ac_cv_prog_CPP+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3903else
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
3908for ac_c_preproc_warn_flag in '' yes
3909do
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
3925if ac_fn_c_try_cpp "$LINENO"; then :
3926
3927else
3928 # Broken: fails on valid input.
3929continue
3930fi
3931rm -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
3939if ac_fn_c_try_cpp "$LINENO"; then :
3940 # Broken: success on invalid input.
3941continue
3942else
3943 # Passes both tests.
3944ac_preproc_ok=:
3945break
3946fi
3947rm -f conftest.err conftest.i conftest.$ac_ext
3948
3949done
3950# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3951rm -f conftest.i conftest.err conftest.$ac_ext
3952if $ac_preproc_ok; then :
3953 break
3954fi
3955
3956 done
3957 ac_cv_prog_CPP=$CPP
3958
3959fi
3960 CPP=$ac_cv_prog_CPP
3961else
3962 ac_cv_prog_CPP=$CPP
3963fi
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3965$as_echo "$CPP" >&6; }
3966ac_preproc_ok=false
3967for ac_c_preproc_warn_flag in '' yes
3968do
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
3984if ac_fn_c_try_cpp "$LINENO"; then :
3985
3986else
3987 # Broken: fails on valid input.
3988continue
3989fi
3990rm -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
3998if ac_fn_c_try_cpp "$LINENO"; then :
3999 # Broken: success on invalid input.
4000continue
4001else
4002 # Passes both tests.
4003ac_preproc_ok=:
4004break
4005fi
4006rm -f conftest.err conftest.i conftest.$ac_ext
4007
4008done
4009# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4010rm -f conftest.i conftest.err conftest.$ac_ext
4011if $ac_preproc_ok; then :
4012
4013else
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4017See \`config.log' for more details" "$LINENO" 5 ; }
4018fi
4019
4020ac_ext=c
4021ac_cpp='$CPP $CPPFLAGS'
4022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024ac_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; }
4034if test "${ac_cv_path_GREP+set}" = set; then : 4029if test "${ac_cv_path_GREP+set}" = set; then :
4035 $as_echo_n "(cached) " >&6 4030 $as_echo_n "(cached) " >&6
4412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4415 4410
4416 4411
4412LINKER="$CXX"
4417if test x$GCC = xyes && test x$GXX = xyes; then 4413if 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
4426cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427/* end confdefs.h. */ 4422/* end confdefs.h. */
4428struct test { }; void f() try { throw new test; } catch (...) { throw; } 4423struct test { }; void f() try { throw new test; } catch (...) { throw; }
4429int 4424int
4435} 4430}
4436_ACEOF 4431_ACEOF
4437if ac_fn_cxx_try_link "$LINENO"; then : 4432if 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"
4440else 4436else
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
4448fi 4443fi
4449rm -f core conftest.err conftest.$ac_objext \ 4444rm -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"
4480fi 4475fi
4481
4482case $host in
4483 *-*-solaris* )
4484
4485$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4486
4487 ;;
4488esac
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; }
4492if test "${ac_cv_search_setlocale+set}" = set; then : 4479if test "${ac_cv_search_setlocale+set}" = set; then :
4493 $as_echo_n "(cached) " >&6 4480 $as_echo_n "(cached) " >&6
4677support_combining=yes 4664support_combining=yes
4678support_8bitctrls=no 4665support_8bitctrls=no
4679support_iso14755=yes 4666support_iso14755=yes
4680support_styles=yes 4667support_styles=yes
4681support_perl=yes 4668support_perl=yes
4669support_xdbe=yes
4682codesets=all 4670codesets=all
4683 4671
4684 4672
4685# Check whether --enable-everything was given. 4673# Check whether --enable-everything was given.
4686if test "${enable_everything+set}" = set; then : 4674if 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
4745fi 4736fi
4746 4737
4833 4824
4834# Check whether --enable-font-styles was given. 4825# Check whether --enable-font-styles was given.
4835if test "${enable_font_styles+set}" = set; then : 4826if 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
4839fi
4840
4841
4842# Check whether --enable-afterimage was given.
4843if 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
4847fi
4848
4849
4850
4851# Check whether --with-afterimage_config was given.
4852if 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
4856fi 4830fi
4857 4831
4858 4832
4859# Check whether --enable-pixbuf was given. 4833# Check whether --enable-pixbuf was given.
5137 5111
5138cat >>confdefs.h <<_ACEOF 5112cat >>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
5117fi
5118
5119
5120# Check whether --enable-xdbe was given.
5121if 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
5143fi 5125fi
5144 5126
5145 5127
5146 5128
6274 LDFLAGS=$ac_save_LDFLAGS 6256 LDFLAGS=$ac_save_LDFLAGS
6275 6257
6276fi 6258fi
6277 6259
6278 6260
6279image_lib=none 6261STARTUP_NOTIFICATION_CFLAGS=
6262STARTUP_NOTIFICATION_LIBS=
6280 6263
6281PIXBUF_CFLAGS=
6282PIXBUF_LIBS=
6283
6284if test x$support_pixbuf = xyes; then 6264if 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.
6287set dummy pkg-config; ac_word=$2 6267set 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; }
6290if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 6270if 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; }
6324fi 6304fi
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
6350fi 6325fi
6351 6326
6352 6327
6353 6328
6354 6329
6355STARTUP_NOTIFICATION_CFLAGS= 6330for ac_header in \
6356STARTUP_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
6338do :
6339 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6340ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6341if 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
6346fi
6347
6348done
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; }
6353if test "${rxvt_cv_xlib_illegal_access+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6355else
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357/* end confdefs.h. */
6358
6359#define XLIB_ILLEGAL_ACCESS
6360#include <X11/Xlib.h>
6361
6362int
6363main ()
6364{
6365
6366 Display *dpy;
6367 dpy->xdefaults = (char *)0;
6368
6369 ;
6370 return 0;
6371}
6372_ACEOF
6373if ac_fn_cxx_try_compile "$LINENO"; then :
6374 rxvt_cv_xlib_illegal_access=yes
6375else
6376 rxvt_cv_xlib_illegal_access=no
6377
6378fi
6379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380fi
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6382$as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6383if test x$rxvt_cv_xlib_illegal_access = xyes; then
6384
6385$as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6386
6387fi
6388
6389ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6390if test "x$ac_cv_type_mode_t" = x""yes; then :
6391
6392else
6393
6394cat >>confdefs.h <<_ACEOF
6395#define mode_t int
6396_ACEOF
6397
6398fi
6399
6400ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6401if test "x$ac_cv_type_pid_t" = x""yes; then :
6402
6403else
6404
6405cat >>confdefs.h <<_ACEOF
6406#define pid_t int
6407_ACEOF
6408
6409fi
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; }
6413if test "${ac_cv_type_uid_t+set}" = set; then :
6414 $as_echo_n "(cached) " >&6
6415else
6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417/* end confdefs.h. */
6418#include <sys/types.h>
6419
6420_ACEOF
6421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6422 $EGREP "uid_t" >/dev/null 2>&1; then :
6423 ac_cv_type_uid_t=yes
6424else
6425 ac_cv_type_uid_t=no
6426fi
6427rm -f conftest*
6428
6429fi
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6431$as_echo "$ac_cv_type_uid_t" >&6; }
6432if 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
6439fi
6440
6441ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6442case $ac_cv_c_int16_t in #(
6443 no|yes) ;; #(
6444 *)
6445
6446cat >>confdefs.h <<_ACEOF
6447#define int16_t $ac_cv_c_int16_t
6448_ACEOF
6449;;
6450esac
6451
6452ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6453case $ac_cv_c_uint16_t in #(
6454 no|yes) ;; #(
6455 *)
6456
6457
6458cat >>confdefs.h <<_ACEOF
6459#define uint16_t $ac_cv_c_uint16_t
6460_ACEOF
6461;;
6462 esac
6463
6464ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6465case $ac_cv_c_int32_t in #(
6466 no|yes) ;; #(
6467 *)
6468
6469cat >>confdefs.h <<_ACEOF
6470#define int32_t $ac_cv_c_int32_t
6471_ACEOF
6472;;
6473esac
6474
6475ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6476case $ac_cv_c_uint32_t in #(
6477 no|yes) ;; #(
6478 *)
6479
6480$as_echo "#define _UINT32_T 1" >>confdefs.h
6481
6482
6483cat >>confdefs.h <<_ACEOF
6484#define uint32_t $ac_cv_c_uint32_t
6485_ACEOF
6486;;
6487 esac
6488
6489
6490for ac_func in unsetenv
6491do :
6492 ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6493if test "x$ac_cv_func_unsetenv" = x""yes; then :
6494 cat >>confdefs.h <<_ACEOF
6495#define HAVE_UNSETENV 1
6496_ACEOF
6497
6498fi
6499done
6500
6501
6502
6503support_utmp=yes
6504support_wtmp=yes
6505support_lastlog=yes
6506
6507# Check whether --enable-utmp was given.
6508if 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
6512fi
6513
6514
6515# Check whether --enable-wtmp was given.
6516if 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
6520fi
6521
6522
6523# Check whether --enable-lastlog was given.
6524if 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
6528fi
6529
6530
6358if test x$support_startup_notification = xyes; then 6531if test x$support_utmp = xyes; then
6359 support_startup_notification=no 6532
6533$as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
6534
6535fi
6536if test x$support_wtmp = xyes; then
6537
6538$as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
6539
6540fi
6541if test x$support_lastlog = xyes; then
6542
6543$as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
6544
6545fi
6546
6547for ac_func in \
6548 updwtmp \
6549 updwtmpx \
6550 updlastlogx \
6551
6552do :
6553 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6554ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6555if 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
6560fi
6561done
6562
6563
6564for ac_header in lastlog.h
6565do :
6566 ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
6567if test "x$ac_cv_header_lastlog_h" = x""yes; then :
6568 cat >>confdefs.h <<_ACEOF
6569#define HAVE_LASTLOG_H 1
6570_ACEOF
6571
6572fi
6573
6574done
6575
6576
6577case $host in
6578 *-*-solaris*)
6579
6580$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6581
6582 ;;
6583esac
6584
6585
6586for ac_header in utmp.h
6587do :
6588 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6589if 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"
6598if test "x$ac_cv_type_struct_utmp" = x""yes; then :
6599
6600cat >>confdefs.h <<_ACEOF
6601#define HAVE_STRUCT_UTMP 1
6602_ACEOF
6603
6604
6605fi
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.
6613ac_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; }
6618if eval "test \"\${$4+set}\"" = set; then :
6619 $as_echo_n "(cached) " >&6
6620else
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622/* end confdefs.h. */
6623$5
6624int
6625main ()
6626{
6627static $2 ac_aggr;
6628if (ac_aggr.$3)
6629return 0;
6630 ;
6631 return 0;
6632}
6633_ACEOF
6634if ac_fn_cxx_try_compile "$LINENO"; then :
6635 eval "$4=yes"
6636else
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h. */
6639$5
6640int
6641main ()
6642{
6643static $2 ac_aggr;
6644if (sizeof ac_aggr.$3)
6645return 0;
6646 ;
6647 return 0;
6648}
6649_ACEOF
6650if ac_fn_cxx_try_compile "$LINENO"; then :
6651 eval "$4=yes"
6652else
6653 eval "$4=no"
6654fi
6655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656fi
6657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658fi
6659eval 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
6665ac_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"
6670if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then :
6671
6672$as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
6673
6674fi
6675
6676
6677ac_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"
6682if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then :
6683
6684$as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
6685
6686fi
6687
6688
6689fi
6690
6691done
6692
6693
6694for ac_header in utmpx.h
6695do :
6696 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6697if 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"
6706if test "x$ac_cv_type_struct_utmpx" = x""yes; then :
6707
6708cat >>confdefs.h <<_ACEOF
6709#define HAVE_STRUCT_UTMPX 1
6710_ACEOF
6711
6712
6713fi
6714
6715
6716ac_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"
6721if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then :
6722
6723$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
6724
6725fi
6726
6727
6728fi
6729
6730done
6731
6732ac_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"
6740if test "x$ac_cv_type_struct_lastlog" = x""yes; then :
6741
6742cat >>confdefs.h <<_ACEOF
6743#define HAVE_STRUCT_LASTLOG 1
6744_ACEOF
6745
6746
6747fi
6748
6749
6750ac_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"
6758if test "x$ac_cv_type_struct_lastlogx" = x""yes; then :
6759
6760cat >>confdefs.h <<_ACEOF
6761#define HAVE_STRUCT_LASTLOGX 1
6762_ACEOF
6763
6764
6765fi
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; }
6771if test "${pt_cv_path_utmp+set}" = set; then :
6772 $as_echo_n "(cached) " >&6
6773else
6774
6775if 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
6782fi
6783fi
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
6785$as_echo "$pt_cv_path_utmp" >&6; }
6786if test x$pt_cv_path_utmp != x; then
6787
6788cat >>confdefs.h <<_ACEOF
6789#define PT_UTMP_FILE "$pt_cv_path_utmp"
6790_ACEOF
6791
6792elif 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;}
6795fi
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; }
6800if test "${pt_cv_path_wtmp+set}" = set; then :
6801 $as_echo_n "(cached) " >&6
6802else
6803
6804if 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
6811fi
6812fi
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
6814$as_echo "$pt_cv_path_wtmp" >&6; }
6815if test x$pt_cv_path_wtmp != x; then
6816
6817cat >>confdefs.h <<_ACEOF
6818#define PT_WTMP_FILE "$pt_cv_path_wtmp"
6819_ACEOF
6820
6821elif 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;}
6824fi
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; }
6828if test "${pt_cv_path_wtmpx+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6830else
6831
6832if 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
6839fi
6840fi
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
6842$as_echo "$pt_cv_path_wtmpx" >&6; }
6843if test x$pt_cv_path_wtmpx != x; then
6844
6845cat >>confdefs.h <<_ACEOF
6846#define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
6847_ACEOF
6848
6849elif 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;}
6852fi
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; }
6856if test "${pt_cv_path_lastlog+set}" = set; then :
6857 $as_echo_n "(cached) " >&6
6858else
6859
6860if 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
6867fi
6868fi
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
6870$as_echo "$pt_cv_path_lastlog" >&6; }
6871if test x$pt_cv_path_lastlog != x; then
6872
6873cat >>confdefs.h <<_ACEOF
6874#define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
6875_ACEOF
6876
6877elif 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;}
6880fi
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; }
6884if test "${pt_cv_path_lastlogx+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6886else
6887
6888if 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
6895fi
6896fi
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
6898$as_echo "$pt_cv_path_lastlogx" >&6; }
6899if test x$pt_cv_path_lastlogx != x; then
6900
6901cat >>confdefs.h <<_ACEOF
6902#define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx"
6903_ACEOF
6904
6905elif 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;}
6908fi
6909
6910
6911
6912
6913save_LIBS=$LIBS
6914save_CFLAGS=$CFLAGS
6915CFLAGS="$CFLAGS $X_CFLAGS"
6916LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
6917if 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; }
6920if test "${rxvt_cv_func_xlocale+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922else
6923 if test "$cross_compiling" = yes; then :
6924 :
6925else
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
6940if ac_fn_cxx_try_run "$LINENO"; then :
6941 rxvt_cv_func_xlocale=yes
6942else
6943 rxvt_cv_func_xlocale=no
6944fi
6945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6946 conftest.$ac_objext conftest.beam conftest.$ac_ext
6947fi
6948
6949fi
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; }
6958if test "${rxvt_cv_broken_ximcb+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6960else
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
6974if ac_fn_cxx_try_compile "$LINENO"; then :
6975 rxvt_cv_broken_ximcb=yes
6976else
6977 rxvt_cv_broken_ximcb=no
6978fi
6979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6980fi
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
6990fi
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; }
6994if test "${rxvt_cv_func_xsetlocale+set}" = set; then :
6995 $as_echo_n "(cached) " >&6
6996else
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998/* end confdefs.h. */
6999#define X_LOCALE 1
7000#include <X11/Xlocale.h>
7001int
7002main ()
7003{
7004setlocale(LC_CTYPE, "");
7005 ;
7006 return 0;
7007}
7008_ACEOF
7009if ac_fn_cxx_try_link "$LINENO"; then :
7010 rxvt_cv_func_xsetlocale=yes
7011else
7012 rxvt_cv_func_xsetlocale=no
7013fi
7014rm -f core conftest.err conftest.$ac_objext \
7015 conftest$ac_exeext conftest.$ac_ext
7016fi
7017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
7018$as_echo "$rxvt_cv_func_xsetlocale" >&6; }
7019if test x$rxvt_cv_func_xsetlocale = xyes; then
7020
7021$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
7022
7023fi
7024LIBS=$save_LIBS
7025CFLAGS=$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; }
7029if test "${rxvt_cv_func_nl_langinfo+set}" = set; then :
7030 $as_echo_n "(cached) " >&6
7031else
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033/* end confdefs.h. */
7034#include <langinfo.h>
7035int
7036main ()
7037{
7038nl_langinfo(CODESET);
7039 ;
7040 return 0;
7041}
7042_ACEOF
7043if ac_fn_cxx_try_link "$LINENO"; then :
7044 rxvt_cv_func_nl_langinfo=yes
7045else
7046 rxvt_cv_func_nl_langinfo=no
7047fi
7048rm -f core conftest.err conftest.$ac_objext \
7049 conftest$ac_exeext conftest.$ac_ext
7050fi
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7052$as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
7053if test x$rxvt_cv_func_nl_langinfo = xyes; then
7054
7055$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7056
7057fi
7058
7059
7060case $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; }
7067if test "${ac_cv_search_sendmsg+set}" = set; then :
7068 $as_echo_n "(cached) " >&6
7069else
7070 ac_func_search_save_LIBS=$LIBS
7071cat 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
7078extern "C"
7079#endif
7080char sendmsg ();
7081int
7082main ()
7083{
7084return sendmsg ();
7085 ;
7086 return 0;
7087}
7088_ACEOF
7089for 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
7098fi
7099rm -f core conftest.err conftest.$ac_objext \
7100 conftest$ac_exeext
7101 if test "${ac_cv_search_sendmsg+set}" = set; then :
7102 break
7103fi
7104done
7105if test "${ac_cv_search_sendmsg+set}" = set; then :
7106
7107else
7108 ac_cv_search_sendmsg=no
7109fi
7110rm conftest.$ac_ext
7111LIBS=$ac_func_search_save_LIBS
7112fi
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
7114$as_echo "$ac_cv_search_sendmsg" >&6; }
7115ac_res=$ac_cv_search_sendmsg
7116if test "$ac_res" != no; then :
7117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7118
7119fi
7120
7121 ;;
7122esac
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; }
7126if test "${pt_cv_can_pass_fds+set}" = set; then :
7127 $as_echo_n "(cached) " >&6
7128else
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
7137int
7138main ()
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
7169if ac_fn_cxx_try_link "$LINENO"; then :
7170 pt_cv_can_pass_fds=yes
7171else
7172 pt_cv_can_pass_fds=no
7173fi
7174rm -f core conftest.err conftest.$ac_objext \
7175 conftest$ac_exeext conftest.$ac_ext
7176fi
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
7178$as_echo "$pt_cv_can_pass_fds" >&6; }
7179if test x$pt_cv_can_pass_fds = xyes; then
7180
7181$as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
7182
7183else
7184 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
7185fi
7186
7187
7188
7189for ac_header in \
7190 pty.h \
7191 util.h \
7192 libutil.h \
7193 sys/ioctl.h \
7194 stropts.h \
7195
7196do :
7197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7198ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7199if 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
7204fi
7205
7206done
7207
7208
7209for ac_func in \
7210 revoke \
7211 _getpty \
7212 getpt \
7213 posix_openpt \
7214 isastream \
7215 setuid \
7216 seteuid \
7217 setreuid \
7218 setresuid \
7219
7220do :
7221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7222ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7223if 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
7228fi
7229done
7230
7231
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
7233$as_echo_n "checking for UNIX98 ptys... " >&6; }
7234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235/* end confdefs.h. */
7236#include <stdlib.h>
7237int
7238main ()
7239{
7240grantpt(0);unlockpt(0);ptsname(0);
7241 ;
7242 return 0;
7243}
7244_ACEOF
7245if 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; }
7252else
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254$as_echo "no" >&6; }
7255fi
7256rm -f core conftest.err conftest.$ac_objext \
7257 conftest$ac_exeext conftest.$ac_ext
7258
7259if 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; }
7262if test "${ac_cv_search_openpty+set}" = set; then :
7263 $as_echo_n "(cached) " >&6
7264else
7265 ac_func_search_save_LIBS=$LIBS
7266cat 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
7273extern "C"
7274#endif
7275char openpty ();
7276int
7277main ()
7278{
7279return openpty ();
7280 ;
7281 return 0;
7282}
7283_ACEOF
7284for 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
7293fi
7294rm -f core conftest.err conftest.$ac_objext \
7295 conftest$ac_exeext
7296 if test "${ac_cv_search_openpty+set}" = set; then :
7297 break
7298fi
7299done
7300if test "${ac_cv_search_openpty+set}" = set; then :
7301
7302else
7303 ac_cv_search_openpty=no
7304fi
7305rm conftest.$ac_ext
7306LIBS=$ac_func_search_save_LIBS
7307fi
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7309$as_echo "$ac_cv_search_openpty" >&6; }
7310ac_res=$ac_cv_search_openpty
7311if 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
7316fi
7317
7318fi
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; }
7324if test "${pt_cv_tty_group+set}" = set; then :
7325 $as_echo_n "(cached) " >&6
7326else
7327 if test "$cross_compiling" = yes; then :
7328 pt_cv_tty_group=no
7329else
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
7338int 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
7354if ac_fn_cxx_try_run "$LINENO"; then :
7355 pt_cv_tty_group=yes
7356else
7357 pt_cv_tty_group=no
7358fi
7359rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7360 conftest.$ac_objext conftest.beam conftest.$ac_ext
7361fi
7362
7363fi
7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
7365$as_echo "$pt_cv_tty_group" >&6; }
7366if test x$pt_cv_tty_group = xyes; then
7367
7368$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
7369
7370fi
7371
7372support_image=no
7373if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then
7374 support_image=yes
7375fi
7376if test x$support_xdbe = xyes; then
7377 LIBS="$LIBS -lXext"
7378fi
7379
7380if 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.
6361set dummy pkg-config; ac_word=$2 7383set 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; }
6364if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 7386if 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; }
6398fi 7420fi
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
6419fi
6420
6421
6422
6423
6424AFTERIMAGE_CFLAGS=
6425AFTERIMAGE_LIBS=
6426
6427if 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.
6432set 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; }
6435if test "${ac_cv_path_afterimage_config+set}" = set; then :
6436 $as_echo_n "(cached) " >&6
6437else
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
6444for as_dir in $PATH
6445do
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
6454done
6455 done
6456IFS=$as_save_IFS
6457
6458 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6459 ;;
6460esac
6461fi
6462afterimage_config=$ac_cv_path_afterimage_config
6463if test -n "$afterimage_config"; then
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afterimage_config" >&5
6465$as_echo "$afterimage_config" >&6; }
6466else
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468$as_echo "no" >&6; }
6469fi
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
6505fi
6506
6507
6508
6509
6510for 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
6519do :
6520 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6521ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6522if 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
6527fi
6528
6529done
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; }
6534if test "${rxvt_cv_xlib_illegal_access+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6536else
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h. */
6539
6540#define XLIB_ILLEGAL_ACCESS
6541#include <X11/Xlib.h>
6542
6543int
6544main ()
6545{
6546
6547 Display *dpy;
6548 dpy->xdefaults = (char *)0;
6549
6550 ;
6551 return 0;
6552}
6553_ACEOF
6554if ac_fn_cxx_try_compile "$LINENO"; then :
6555 rxvt_cv_xlib_illegal_access=yes
6556else
6557 rxvt_cv_xlib_illegal_access=no
6558
6559fi
6560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561fi
6562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6563$as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6564if test x$rxvt_cv_xlib_illegal_access = xyes; then
6565
6566$as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6567
6568fi
6569
6570ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6571if test "x$ac_cv_type_mode_t" = x""yes; then :
6572
6573else
6574
6575cat >>confdefs.h <<_ACEOF
6576#define mode_t int
6577_ACEOF
6578
6579fi
6580
6581ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6582if test "x$ac_cv_type_pid_t" = x""yes; then :
6583
6584else
6585
6586cat >>confdefs.h <<_ACEOF
6587#define pid_t int
6588_ACEOF
6589
6590fi
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; }
6594if test "${ac_cv_type_uid_t+set}" = set; then :
6595 $as_echo_n "(cached) " >&6
6596else
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598/* end confdefs.h. */
6599#include <sys/types.h>
6600
6601_ACEOF
6602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6603 $EGREP "uid_t" >/dev/null 2>&1; then :
6604 ac_cv_type_uid_t=yes
6605else
6606 ac_cv_type_uid_t=no
6607fi
6608rm -f conftest*
6609
6610fi
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6612$as_echo "$ac_cv_type_uid_t" >&6; }
6613if 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
6620fi
6621
6622ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6623case $ac_cv_c_int16_t in #(
6624 no|yes) ;; #(
6625 *)
6626
6627cat >>confdefs.h <<_ACEOF
6628#define int16_t $ac_cv_c_int16_t
6629_ACEOF
6630;;
6631esac
6632
6633ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6634case $ac_cv_c_uint16_t in #(
6635 no|yes) ;; #(
6636 *)
6637
6638
6639cat >>confdefs.h <<_ACEOF
6640#define uint16_t $ac_cv_c_uint16_t
6641_ACEOF
6642;;
6643 esac
6644
6645ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6646case $ac_cv_c_int32_t in #(
6647 no|yes) ;; #(
6648 *)
6649
6650cat >>confdefs.h <<_ACEOF
6651#define int32_t $ac_cv_c_int32_t
6652_ACEOF
6653;;
6654esac
6655
6656ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6657case $ac_cv_c_uint32_t in #(
6658 no|yes) ;; #(
6659 *)
6660
6661$as_echo "#define _UINT32_T 1" >>confdefs.h
6662
6663
6664cat >>confdefs.h <<_ACEOF
6665#define uint32_t $ac_cv_c_uint32_t
6666_ACEOF
6667;;
6668 esac
6669
6670
6671for ac_func in unsetenv
6672do :
6673 ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6674if test "x$ac_cv_func_unsetenv" = x""yes; then :
6675 cat >>confdefs.h <<_ACEOF
6676#define HAVE_UNSETENV 1
6677_ACEOF
6678
6679fi
6680done
6681
6682
6683
6684support_utmp=yes
6685support_wtmp=yes
6686support_lastlog=yes
6687
6688# Check whether --enable-utmp was given.
6689if 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
6693fi
6694
6695
6696# Check whether --enable-wtmp was given.
6697if 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
6701fi
6702
6703
6704# Check whether --enable-lastlog was given.
6705if 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
6709fi
6710
6711
6712if test x$support_utmp = xyes; then
6713
6714$as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
6715
6716fi
6717if test x$support_wtmp = xyes; then
6718
6719$as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
6720
6721fi
6722if test x$support_lastlog = xyes; then
6723
6724$as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
6725
6726fi
6727
6728for ac_func in \
6729 updwtmp \
6730 updwtmpx \
6731 updlastlogx \
6732
6733do :
6734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6735ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6736if 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
6741fi
6742done
6743
6744
6745for ac_header in lastlog.h
6746do :
6747 ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
6748if test "x$ac_cv_header_lastlog_h" = x""yes; then :
6749 cat >>confdefs.h <<_ACEOF
6750#define HAVE_LASTLOG_H 1
6751_ACEOF
6752
6753fi
6754
6755done
6756
6757
6758
6759for ac_header in utmp.h
6760do :
6761 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6762if 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"
6771if test "x$ac_cv_type_struct_utmp" = x""yes; then :
6772
6773cat >>confdefs.h <<_ACEOF
6774#define HAVE_STRUCT_UTMP 1
6775_ACEOF
6776
6777
6778fi
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.
6786ac_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; }
6791if eval "test \"\${$4+set}\"" = set; then :
6792 $as_echo_n "(cached) " >&6
6793else
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795/* end confdefs.h. */
6796$5
6797int
6798main ()
6799{
6800static $2 ac_aggr;
6801if (ac_aggr.$3)
6802return 0;
6803 ;
6804 return 0;
6805}
6806_ACEOF
6807if ac_fn_cxx_try_compile "$LINENO"; then :
6808 eval "$4=yes"
6809else
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811/* end confdefs.h. */
6812$5
6813int
6814main ()
6815{
6816static $2 ac_aggr;
6817if (sizeof ac_aggr.$3)
6818return 0;
6819 ;
6820 return 0;
6821}
6822_ACEOF
6823if ac_fn_cxx_try_compile "$LINENO"; then :
6824 eval "$4=yes"
6825else
6826 eval "$4=no"
6827fi
6828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829fi
6830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6831fi
6832eval 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
6838ac_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"
6843if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then :
6844
6845$as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
6846
6847fi
6848
6849
6850ac_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"
6855if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then :
6856
6857$as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
6858
6859fi
6860
6861
6862fi
6863
6864done
6865
6866
6867for ac_header in utmpx.h
6868do :
6869 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6870if 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"
6879if test "x$ac_cv_type_struct_utmpx" = x""yes; then :
6880
6881cat >>confdefs.h <<_ACEOF
6882#define HAVE_STRUCT_UTMPX 1
6883_ACEOF
6884
6885
6886fi
6887
6888
6889ac_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"
6894if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then :
6895
6896$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
6897
6898fi
6899
6900
6901ac_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"
6906if test "x$ac_cv_member_struct_utmpx_ut_session" = x""yes; then :
6907
6908$as_echo "#define HAVE_UTMPX_SESSION 1" >>confdefs.h
6909
6910fi
6911
6912
6913fi
6914
6915done
6916
6917ac_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"
6925if test "x$ac_cv_type_struct_lastlog" = x""yes; then :
6926
6927cat >>confdefs.h <<_ACEOF
6928#define HAVE_STRUCT_LASTLOG 1
6929_ACEOF
6930
6931
6932fi
6933
6934
6935ac_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"
6943if test "x$ac_cv_type_struct_lastlogx" = x""yes; then :
6944
6945cat >>confdefs.h <<_ACEOF
6946#define HAVE_STRUCT_LASTLOGX 1
6947_ACEOF
6948
6949
6950fi
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; }
6956if test "${pt_cv_path_utmp+set}" = set; then :
6957 $as_echo_n "(cached) " >&6
6958else
6959
6960if 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
6967fi
6968fi
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
6970$as_echo "$pt_cv_path_utmp" >&6; }
6971if test x$pt_cv_path_utmp != x; then
6972
6973cat >>confdefs.h <<_ACEOF
6974#define PT_UTMP_FILE "$pt_cv_path_utmp"
6975_ACEOF
6976
6977elif 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;}
6980fi
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; }
6985if test "${pt_cv_path_wtmp+set}" = set; then :
6986 $as_echo_n "(cached) " >&6
6987else
6988
6989if 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
6996fi
6997fi
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
6999$as_echo "$pt_cv_path_wtmp" >&6; }
7000if test x$pt_cv_path_wtmp != x; then
7001
7002cat >>confdefs.h <<_ACEOF
7003#define PT_WTMP_FILE "$pt_cv_path_wtmp"
7004_ACEOF
7005
7006elif 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;}
7009fi
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; }
7013if test "${pt_cv_path_wtmpx+set}" = set; then :
7014 $as_echo_n "(cached) " >&6
7015else
7016
7017if 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
7024fi
7025fi
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
7027$as_echo "$pt_cv_path_wtmpx" >&6; }
7028if test x$pt_cv_path_wtmpx != x; then
7029
7030cat >>confdefs.h <<_ACEOF
7031#define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
7032_ACEOF
7033
7034elif 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;}
7037fi
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; }
7041if test "${pt_cv_path_lastlog+set}" = set; then :
7042 $as_echo_n "(cached) " >&6
7043else
7044
7045if 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
7052fi
7053fi
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
7055$as_echo "$pt_cv_path_lastlog" >&6; }
7056if test x$pt_cv_path_lastlog != x; then
7057
7058cat >>confdefs.h <<_ACEOF
7059#define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
7060_ACEOF
7061
7062elif 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;}
7065fi
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; }
7069if test "${pt_cv_path_lastlogx+set}" = set; then :
7070 $as_echo_n "(cached) " >&6
7071else
7072
7073if 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
7080fi
7081fi
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
7083$as_echo "$pt_cv_path_lastlogx" >&6; }
7084if test x$pt_cv_path_lastlogx != x; then
7085
7086cat >>confdefs.h <<_ACEOF
7087#define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx"
7088_ACEOF
7089
7090elif 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;}
7093fi
7094
7095
7096
7097
7098save_LIBS=$LIBS 7428 save_LIBS="$LIBS"
7099save_CFLAGS=$CFLAGS 7429 LIBS="$LIBS $X_LIBS"
7100CFLAGS="$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"
7101LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 7431if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then :
7102if 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; }
7105if test "${rxvt_cv_func_xlocale+set}" = set; then :
7106 $as_echo_n "(cached) " >&6
7107else
7108 if test "$cross_compiling" = yes; then :
7109 :
7110else
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
7125if ac_fn_cxx_try_run "$LINENO"; then :
7126 rxvt_cv_func_xlocale=yes
7127else
7128 rxvt_cv_func_xlocale=no
7129fi
7130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7131 conftest.$ac_objext conftest.beam conftest.$ac_ext
7132fi
7133
7134fi
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; }
7143if test "${rxvt_cv_broken_ximcb+set}" = set; then :
7144 $as_echo_n "(cached) " >&6
7145else
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
7159if ac_fn_cxx_try_compile "$LINENO"; then :
7160 rxvt_cv_broken_ximcb=yes
7161else
7162 rxvt_cv_broken_ximcb=no
7163fi
7164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165fi
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
7175fi
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; }
7179if test "${rxvt_cv_func_xsetlocale+set}" = set; then :
7180 $as_echo_n "(cached) " >&6
7181else
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183/* end confdefs.h. */
7184#define X_LOCALE 1
7185#include <X11/Xlocale.h>
7186int
7187main ()
7188{
7189setlocale(LC_CTYPE, "");
7190 ;
7191 return 0;
7192}
7193_ACEOF
7194if ac_fn_cxx_try_link "$LINENO"; then :
7195 rxvt_cv_func_xsetlocale=yes
7196else
7197 rxvt_cv_func_xsetlocale=no
7198fi
7199rm -f core conftest.err conftest.$ac_objext \
7200 conftest$ac_exeext conftest.$ac_ext
7201fi
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
7203$as_echo "$rxvt_cv_func_xsetlocale" >&6; }
7204if test x$rxvt_cv_func_xsetlocale = xyes; then
7205
7206$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
7207
7208fi
7209LIBS=$save_LIBS
7210CFLAGS=$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; }
7214if test "${rxvt_cv_func_setlocale+set}" = set; then :
7215 $as_echo_n "(cached) " >&6
7216else
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218/* end confdefs.h. */
7219#include <clocale>
7220int
7221main ()
7222{
7223setlocale(LC_CTYPE, "");
7224 ;
7225 return 0;
7226}
7227_ACEOF
7228if ac_fn_cxx_try_link "$LINENO"; then :
7229 rxvt_cv_func_setlocale=yes
7230else
7231 rxvt_cv_func_setlocale=no
7232fi
7233rm -f core conftest.err conftest.$ac_objext \
7234 conftest$ac_exeext conftest.$ac_ext
7235fi
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5
7237$as_echo "$rxvt_cv_func_setlocale" >&6; }
7238if test x$rxvt_cv_func_setlocale = xyes; then
7239
7240$as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
7241
7242fi
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; }
7246if test "${rxvt_cv_func_nl_langinfo+set}" = set; then :
7247 $as_echo_n "(cached) " >&6
7248else
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250/* end confdefs.h. */
7251#include <langinfo.h>
7252int
7253main ()
7254{
7255nl_langinfo(CODESET);
7256 ;
7257 return 0;
7258}
7259_ACEOF
7260if ac_fn_cxx_try_link "$LINENO"; then :
7261 rxvt_cv_func_nl_langinfo=yes
7262else
7263 rxvt_cv_func_nl_langinfo=no
7264fi
7265rm -f core conftest.err conftest.$ac_objext \
7266 conftest$ac_exeext conftest.$ac_ext
7267fi
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7269$as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
7270if test x$rxvt_cv_func_nl_langinfo = xyes; then
7271
7272$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7273
7274fi
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; }
7279if test "${pt_cv_can_pass_fds+set}" = set; then :
7280 $as_echo_n "(cached) " >&6
7281else
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
7290int
7291main ()
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
7322if ac_fn_cxx_try_link "$LINENO"; then :
7323 pt_cv_can_pass_fds=yes
7324else
7325 pt_cv_can_pass_fds=no
7326fi
7327rm -f core conftest.err conftest.$ac_objext \
7328 conftest$ac_exeext conftest.$ac_ext
7329fi
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
7331$as_echo "$pt_cv_can_pass_fds" >&6; }
7332if test x$pt_cv_can_pass_fds = xyes; then
7333
7334$as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
7335
7336else
7337 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
7338fi
7339
7340
7341
7342for ac_header in \
7343 pty.h \
7344 util.h \
7345 libutil.h \
7346 sys/ioctl.h \
7347 sys/stropts.h \
7348 stropts.h \
7349
7350do :
7351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7352ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7353if 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
7358fi
7359
7360done
7361
7362
7363for ac_func in \
7364 revoke \
7365 _getpty \
7366 getpt \
7367 posix_openpt \
7368 isastream \
7369 setuid \
7370 seteuid \
7371 setreuid \
7372 setresuid \
7373
7374do :
7375 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7376ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7377if 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
7382fi
7383done
7384
7385
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
7387$as_echo_n "checking for UNIX98 ptys... " >&6; }
7388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389/* end confdefs.h. */
7390#include <stdlib.h>
7391int
7392main ()
7393{
7394grantpt(0);unlockpt(0);ptsname(0);
7395 ;
7396 return 0;
7397}
7398_ACEOF
7399if 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; }
7406else
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408$as_echo "no" >&6; }
7409fi
7410rm -f core conftest.err conftest.$ac_objext \
7411 conftest$ac_exeext conftest.$ac_ext
7412
7413if 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; }
7416if test "${ac_cv_search_openpty+set}" = set; then :
7417 $as_echo_n "(cached) " >&6
7418else
7419 ac_func_search_save_LIBS=$LIBS
7420cat 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
7427extern "C"
7428#endif
7429char openpty ();
7430int
7431main ()
7432{
7433return openpty ();
7434 ;
7435 return 0;
7436}
7437_ACEOF
7438for ac_lib in '' util; do
7439 if test -z "$ac_lib"; then
7440 ac_res="none required"
7441 else 7433else
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
7447fi
7448rm -f core conftest.err conftest.$ac_objext \
7449 conftest$ac_exeext
7450 if test "${ac_cv_search_openpty+set}" = set; then :
7451 break
7452fi
7453done
7454if test "${ac_cv_search_openpty+set}" = set; then :
7455
7456else
7457 ac_cv_search_openpty=no
7458fi
7459rm conftest.$ac_ext
7460LIBS=$ac_func_search_save_LIBS
7461fi
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7463$as_echo "$ac_cv_search_openpty" >&6; }
7464ac_res=$ac_cv_search_openpty
7465if 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
7470fi
7471
7472fi
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; }
7478if test "${pt_cv_tty_group+set}" = set; then :
7479 $as_echo_n "(cached) " >&6
7480else
7481 if test "$cross_compiling" = yes; then :
7482 pt_cv_tty_group=no
7483else
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
7492int 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
7508if ac_fn_cxx_try_run "$LINENO"; then :
7509 pt_cv_tty_group=yes
7510else
7511 pt_cv_tty_group=no
7512fi
7513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7514 conftest.$ac_objext conftest.beam conftest.$ac_ext
7515fi
7516
7517fi
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
7519$as_echo "$pt_cv_tty_group" >&6; }
7520if test x$pt_cv_tty_group = xyes; then
7521
7522$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
7523
7524fi
7525
7526if test x$support_xft = xyes || test x$support_inheritpixmap = xyes; then
7527 rxvt_have_xrender=no 7434 rxvt_have_xrender=no
7435fi
7436
7437
7438 ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
7439if test "x$ac_cv_func_XRenderFindStandardFormat" = x""yes; then :
7440
7441else
7442 rxvt_have_xrender=no
7443fi
7444
7445 LIBS="$save_LIBS"
7446 fi
7447fi
7448
7449if 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.
7529set dummy pkg-config; ac_word=$2 7451set 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; }
7532if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 7454if 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; }
7566fi 7488fi
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.
7496set 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; }
7499if test "${ac_cv_path_XFT_CONFIG+set}" = set; then :
7500 $as_echo_n "(cached) " >&6
7501else
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
7508for as_dir in $PATH
7509do
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
7518done
7519 done
7520IFS=$as_save_IFS
7573 7521
7522 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
7523 ;;
7524esac
7525fi
7526XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7527if test -n "$XFT_CONFIG"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
7529$as_echo "$XFT_CONFIG" >&6; }
7530else
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532$as_echo "no" >&6; }
7533fi
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
7550do :
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"
7577if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then : 7552if 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
7579else 7557else
7580 rxvt_have_xrender=no 7558 support_xft=no
7581fi 7559fi
7582 7560
7561done
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
7585if test "x$ac_cv_func_XRenderFindStandardFormat" = x""yes; then : 7564$as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
7586 7565if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7587else 7567else
7588 rxvt_have_xrender=no 7568 ac_check_lib_save_LIBS=$LIBS
7589fi 7569LIBS="-lXft $LIBS"
7570cat 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
7577extern "C"
7578#endif
7579char XftDrawString32 ();
7580int
7581main ()
7582{
7583return XftDrawString32 ();
7584 ;
7585 return 0;
7586}
7587_ACEOF
7588if ac_fn_cxx_try_link "$LINENO"; then :
7589 ac_cv_lib_Xft_XftDrawString32=yes
7590else
7591 ac_cv_lib_Xft_XftDrawString32=no
7592fi
7593rm -f core conftest.err conftest.$ac_objext \
7594 conftest$ac_exeext conftest.$ac_ext
7595LIBS=$ac_check_lib_save_LIBS
7596fi
7597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
7598$as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
7599if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then :
7600 :
7601else
7602 support_xft=no
7603fi
7604
7605 for ac_header in fontconfig/fontconfig.h
7606do :
7607 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
7608if 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
7613else
7614 support_xft=no
7615fi
7616
7617done
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; }
7621if test "${ac_cv_lib_fontconfig_FcPatternGet+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7623else
7624 ac_check_lib_save_LIBS=$LIBS
7625LIBS="-lfontconfig $LIBS"
7626cat 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
7633extern "C"
7634#endif
7635char FcPatternGet ();
7636int
7637main ()
7638{
7639return FcPatternGet ();
7640 ;
7641 return 0;
7642}
7643_ACEOF
7644if ac_fn_cxx_try_link "$LINENO"; then :
7645 ac_cv_lib_fontconfig_FcPatternGet=yes
7646else
7647 ac_cv_lib_fontconfig_FcPatternGet=no
7648fi
7649rm -f core conftest.err conftest.$ac_objext \
7650 conftest$ac_exeext conftest.$ac_ext
7651LIBS=$ac_check_lib_save_LIBS
7652fi
7653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5
7654$as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; }
7655if test "x$ac_cv_lib_fontconfig_FcPatternGet" = x""yes; then :
7656 :
7657else
7658 support_xft=no
7659fi
7660
7591 LIBS="$save_LIBS" 7661 LIBS="$save_LIBS"
7592 fi
7593fi
7594 7662
7663 if test x$support_xft = xyes; then
7664
7665$as_echo "#define XFT 1" >>confdefs.h
7666
7667 fi
7668fi
7669
7670image_lib=none
7671
7672PIXBUF_CFLAGS=
7673PIXBUF_LIBS=
7674
7595if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then 7675if 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.
7597set dummy pkg-config; ac_word=$2 7690set 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; }
7600if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 7693if 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; }
7634fi 7727fi
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.
7642set 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; }
7645if test "${ac_cv_path_XFT_CONFIG+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7647else
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
7654for as_dir in $PATH
7655do
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
7664done
7665 done
7666IFS=$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 ;;
7670esac
7671fi
7672XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7673if 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; }
7676else 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; }
7679fi
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
7696do :
7697 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
7698if 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
7703else
7704 support_xft=no
7705fi 7753fi
7706 7754
7707done
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; }
7711if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then :
7712 $as_echo_n "(cached) " >&6
7713else
7714 ac_check_lib_save_LIBS=$LIBS
7715LIBS="-lXft $LIBS"
7716cat 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
7723extern "C"
7724#endif
7725char XftDrawString32 ();
7726int
7727main ()
7728{
7729return XftDrawString32 ();
7730 ;
7731 return 0;
7732}
7733_ACEOF
7734if ac_fn_cxx_try_link "$LINENO"; then :
7735 ac_cv_lib_Xft_XftDrawString32=yes
7736else
7737 ac_cv_lib_Xft_XftDrawString32=no
7738fi
7739rm -f core conftest.err conftest.$ac_objext \
7740 conftest$ac_exeext conftest.$ac_ext
7741LIBS=$ac_check_lib_save_LIBS
7742fi
7743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
7744$as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
7745if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then :
7746 :
7747else
7748 support_xft=no
7749fi
7750 7757
7751 for ac_header in fontconfig/fontconfig.h
7752do :
7753 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
7754if 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
7759else
7760 support_xft=no
7761fi
7762
7763done
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; }
7767if test "${ac_cv_lib_fontconfig_FcPatternGet+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
7769else
7770 ac_check_lib_save_LIBS=$LIBS
7771LIBS="-lfontconfig $LIBS"
7772cat 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
7779extern "C"
7780#endif
7781char FcPatternGet ();
7782int
7783main ()
7784{
7785return FcPatternGet ();
7786 ;
7787 return 0;
7788}
7789_ACEOF
7790if ac_fn_cxx_try_link "$LINENO"; then :
7791 ac_cv_lib_fontconfig_FcPatternGet=yes
7792else
7793 ac_cv_lib_fontconfig_FcPatternGet=no
7794fi
7795rm -f core conftest.err conftest.$ac_objext \
7796 conftest$ac_exeext conftest.$ac_ext
7797LIBS=$ac_check_lib_save_LIBS
7798fi
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5
7800$as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; }
7801if test "x$ac_cv_lib_fontconfig_FcPatternGet" = x""yes; then :
7802 :
7803else
7804 support_xft=no
7805fi
7806
7807 LIBS="$save_LIBS"
7808
7809 if test x$support_xft = xyes; then 7758if 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
7814fi 7762fi
7815if test x$support_styles = xyes; then 7763if 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
7829fi 7777fi
7830if test x$support_fading = xyes; then 7778if 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
7834fi
7835if 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
7845fi 7782fi
7846if test x$support_keepscrolling = xno; then 7783if 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
7969done 7906done
7970 done 7907 done
7971IFS=$as_save_IFS 7908IFS=$as_save_IFS
7972 7909
7973 ;; 7910 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
7974esac
7975fi
7976PERL=$ac_cv_path_PERL
7977if test -n "$PERL"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7979$as_echo "$PERL" >&6; }
7980else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982$as_echo "no" >&6; }
7983fi
7984
7985
7986 # Extract the first word of "perl", so it can be a program name with args.
7987set 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; }
7990if test "${ac_cv_path_PERL+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
7992else
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
7999for as_dir in $PATH
8000do
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
8009done
8010 done
8011IFS=$as_save_IFS
8012
8013 ;; 7911 ;;
8014esac 7912esac
8015fi 7913fi
8016PERL=$ac_cv_path_PERL 7914PERL=$ac_cv_path_PERL
8017if test -n "$PERL"; then 7915if test -n "$PERL"; then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines