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

Comparing rxvt-unicode/configure (file contents):
Revision 1.166 by root, Thu May 13 19:24:27 2021 UTC vs.
Revision 1.174 by root, Mon Jan 2 17:12:43 2023 UTC

659GREP 659GREP
660STARTUP_NOTIFICATION_LIBS 660STARTUP_NOTIFICATION_LIBS
661STARTUP_NOTIFICATION_CFLAGS 661STARTUP_NOTIFICATION_CFLAGS
662PIXBUF_LIBS 662PIXBUF_LIBS
663PIXBUF_CFLAGS 663PIXBUF_CFLAGS
664PTYTTY_LIBS
665PTYTTY_CFLAGS
664PKG_CONFIG 666PKG_CONFIG
665X_EXTRA_LIBS 667X_EXTRA_LIBS
666X_LIBS 668X_LIBS
667X_PRE_LIBS 669X_PRE_LIBS
668X_CFLAGS 670X_CFLAGS
684LDFLAGS 686LDFLAGS
685CFLAGS 687CFLAGS
686CC 688CC
687DATE 689DATE
688VERSION 690VERSION
689host_os
690host_vendor
691host_cpu
692host
693build_os
694build_vendor
695build_cpu
696build
697target_alias 691target_alias
698host_alias 692host_alias
699build_alias 693build_alias
700LIBS 694LIBS
701ECHO_T 695ECHO_T
773enable_text_blink 767enable_text_blink
774enable_pointer_blank 768enable_pointer_blank
775with_term 769with_term
776with_terminfo 770with_terminfo
777with_x 771with_x
778enable_utmp
779enable_wtmp
780enable_lastlog
781' 772'
782 ac_precious_vars='build_alias 773 ac_precious_vars='build_alias
783host_alias 774host_alias
784target_alias 775target_alias
785CC 776CC
1399 cat <<\_ACEOF 1390 cat <<\_ACEOF
1400 1391
1401X features: 1392X features:
1402 --x-includes=DIR X include files are in DIR 1393 --x-includes=DIR X include files are in DIR
1403 --x-libraries=DIR X library files are in DIR 1394 --x-libraries=DIR X library files are in DIR
1404
1405System types:
1406 --build=BUILD configure for building on BUILD [guessed]
1407 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408_ACEOF 1395_ACEOF
1409fi 1396fi
1410 1397
1411if test -n "$ac_init_help"; then 1398if test -n "$ac_init_help"; then
1412 1399
1447 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1434 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1448 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) 1435 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1449 --enable-smart-resize enable smart growth/shrink behaviour 1436 --enable-smart-resize enable smart growth/shrink behaviour
1450 --enable-text-blink enable blinking text 1437 --enable-text-blink enable blinking text
1451 --enable-pointer-blank enable pointer blanking when typing or inactive 1438 --enable-pointer-blank enable pointer blanking when typing or inactive
1452 --enable-utmp enable utmp (utmpx) support
1453 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1454 --enable-lastlog enable lastlog support (requires --enable-utmp)
1455 1439
1456Optional Packages: 1440Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1443 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1667printf "%s\n" "$ac_res" >&6; } 1651printf "%s\n" "$ac_res" >&6; }
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 1653
1670} # ac_fn_c_check_header_compile 1654} # ac_fn_c_check_header_compile
1671 1655
1672# ac_fn_c_try_link LINENO 1656# ac_fn_cxx_try_link LINENO
1673# ----------------------- 1657# -------------------------
1674# Try to link conftest.$ac_ext, and return whether this succeeded. 1658# Try to link conftest.$ac_ext, and return whether this succeeded.
1675ac_fn_c_try_link () 1659ac_fn_cxx_try_link ()
1676{ 1660{
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1662 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1679 if { { ac_try="$ac_link" 1663 if { { ac_try="$ac_link"
1680case "(($ac_try" in 1664case "(($ac_try" in
1690 cat conftest.er1 >&5 1674 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err 1675 mv -f conftest.er1 conftest.err
1692 fi 1676 fi
1693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && { 1678 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest$ac_exeext && {
1698 test "$cross_compiling" = yes ||
1699 test -x conftest$ac_exeext
1700 }
1701then :
1702 ac_retval=0
1703else $as_nop
1704 printf "%s\n" "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=1
1708fi
1709 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1710 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1711 # interfere with the next link command; also delete a directory that is
1712 # left behind by Apple's compiler. We do this before executing the actions.
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1716
1717} # ac_fn_c_try_link
1718
1719# ac_fn_cxx_try_link LINENO
1720# -------------------------
1721# Try to link conftest.$ac_ext, and return whether this succeeded.
1722ac_fn_cxx_try_link ()
1723{
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1726 if { { ac_try="$ac_link"
1727case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732printf "%s\n" "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>conftest.err
1734 ac_status=$?
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1739 fi
1740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_cxx_werror_flag" || 1679 test -z "$ac_cxx_werror_flag" ||
1743 test ! -s conftest.err 1680 test ! -s conftest.err
1744 } && test -s conftest$ac_exeext && { 1681 } && test -s conftest$ac_exeext && {
1745 test "$cross_compiling" = yes || 1682 test "$cross_compiling" = yes ||
1746 test -x conftest$ac_exeext 1683 test -x conftest$ac_exeext
2087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088printf "%s\n" "$ac_res" >&6; } 2025printf "%s\n" "$ac_res" >&6; }
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 2027
2091} # ac_fn_c_find_uintX_t 2028} # ac_fn_c_find_uintX_t
2092
2093# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
2094# ------------------------------------------------------
2095# Tries to find if the field MEMBER exists in type AGGR, after including
2096# INCLUDES, setting cache variable VAR accordingly.
2097ac_fn_cxx_check_member ()
2098{
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2101printf %s "checking for $2.$3... " >&6; }
2102if eval test \${$4+y}
2103then :
2104 printf %s "(cached) " >&6
2105else $as_nop
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h. */
2108$5
2109int
2110main (void)
2111{
2112static $2 ac_aggr;
2113if (ac_aggr.$3)
2114return 0;
2115 ;
2116 return 0;
2117}
2118_ACEOF
2119if ac_fn_cxx_try_compile "$LINENO"
2120then :
2121 eval "$4=yes"
2122else $as_nop
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124/* end confdefs.h. */
2125$5
2126int
2127main (void)
2128{
2129static $2 ac_aggr;
2130if (sizeof ac_aggr.$3)
2131return 0;
2132 ;
2133 return 0;
2134}
2135_ACEOF
2136if ac_fn_cxx_try_compile "$LINENO"
2137then :
2138 eval "$4=yes"
2139else $as_nop
2140 eval "$4=no"
2141fi
2142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2143fi
2144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2145fi
2146eval ac_res=\$$4
2147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148printf "%s\n" "$ac_res" >&6; }
2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150
2151} # ac_fn_cxx_check_member
2152 2029
2153# ac_fn_cxx_try_run LINENO 2030# ac_fn_cxx_try_run LINENO
2154# ------------------------ 2031# ------------------------
2155# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2032# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2156# executables *can* be run. 2033# executables *can* be run.
3022as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2899as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3023as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2900as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3024as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2901as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3025 2902
3026# Auxiliary files required by this configure script. 2903# Auxiliary files required by this configure script.
3027ac_aux_files="install-sh config.guess config.sub" 2904ac_aux_files="install-sh"
3028 2905
3029# Locations in which to look for auxiliary files. 2906# Locations in which to look for auxiliary files.
3030ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2907ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3031 2908
3032# Search for a directory containing all of the required auxiliary files, 2909# Search for a directory containing all of the required auxiliary files,
3192 3069
3193 3070
3194ac_config_headers="$ac_config_headers config.h:config.h.in" 3071ac_config_headers="$ac_config_headers config.h:config.h.in"
3195 3072
3196 3073
3197
3198
3199
3200 # Make sure we can run config.sub.
3201$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3202 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3203
3204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3205printf %s "checking build system type... " >&6; }
3206if test ${ac_cv_build+y}
3207then :
3208 printf %s "(cached) " >&6
3209else $as_nop
3210 ac_build_alias=$build_alias
3211test "x$ac_build_alias" = x &&
3212 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3213test "x$ac_build_alias" = x &&
3214 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3215ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3216 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3217
3218fi
3219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3220printf "%s\n" "$ac_cv_build" >&6; }
3221case $ac_cv_build in
3222*-*-*) ;;
3223*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3224esac
3225build=$ac_cv_build
3226ac_save_IFS=$IFS; IFS='-'
3227set x $ac_cv_build
3228shift
3229build_cpu=$1
3230build_vendor=$2
3231shift; shift
3232# Remember, the first character of IFS is used to create $*,
3233# except with old shells:
3234build_os=$*
3235IFS=$ac_save_IFS
3236case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3237
3238
3239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3240printf %s "checking host system type... " >&6; }
3241if test ${ac_cv_host+y}
3242then :
3243 printf %s "(cached) " >&6
3244else $as_nop
3245 if test "x$host_alias" = x; then
3246 ac_cv_host=$ac_cv_build
3247else
3248 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3249 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3250fi
3251
3252fi
3253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3254printf "%s\n" "$ac_cv_host" >&6; }
3255case $ac_cv_host in
3256*-*-*) ;;
3257*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3258esac
3259host=$ac_cv_host
3260ac_save_IFS=$IFS; IFS='-'
3261set x $ac_cv_host
3262shift
3263host_cpu=$1
3264host_vendor=$2
3265shift; shift
3266# Remember, the first character of IFS is used to create $*,
3267# except with old shells:
3268host_os=$*
3269IFS=$ac_save_IFS
3270case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3271
3272
3273
3274VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 3074VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3275DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 3075DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3276 3076
3277echo "" 3077echo ""
3278echo "configuring for rxvt $VERSION" 3078echo "configuring for rxvt $VERSION"
4647ac_ext=c 4447ac_ext=c
4648ac_cpp='$CPP $CPPFLAGS' 4448ac_cpp='$CPP $CPPFLAGS'
4649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4651ac_compiler_gnu=$ac_cv_c_compiler_gnu 4451ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452
4652 4453
4653 4454
4654 # Find a good install program. We prefer a C program (faster), 4455 # Find a good install program. We prefer a C program (faster),
4655# so one script is as good as another. But avoid the broken or 4456# so one script is as good as another. But avoid the broken or
4656# incompatible versions: 4457# incompatible versions:
4919then : 4720then :
4920 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4721 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4921 4722
4922fi 4723fi
4923 4724
4924
4925
4926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4927printf %s "checking for library containing strerror... " >&6; }
4928if test ${ac_cv_search_strerror+y}
4929then :
4930 printf %s "(cached) " >&6
4931else $as_nop
4932 ac_func_search_save_LIBS=$LIBS
4933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934/* end confdefs.h. */
4935
4936/* Override any GCC internal prototype to avoid an error.
4937 Use char because int might match the return type of a GCC
4938 builtin and then its argument prototype would still apply. */
4939char strerror ();
4940int
4941main (void)
4942{
4943return strerror ();
4944 ;
4945 return 0;
4946}
4947_ACEOF
4948for ac_lib in '' cposix
4949do
4950 if test -z "$ac_lib"; then
4951 ac_res="none required"
4952 else
4953 ac_res=-l$ac_lib
4954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4955 fi
4956 if ac_fn_c_try_link "$LINENO"
4957then :
4958 ac_cv_search_strerror=$ac_res
4959fi
4960rm -f core conftest.err conftest.$ac_objext conftest.beam \
4961 conftest$ac_exeext
4962 if test ${ac_cv_search_strerror+y}
4963then :
4964 break
4965fi
4966done
4967if test ${ac_cv_search_strerror+y}
4968then :
4969
4970else $as_nop
4971 ac_cv_search_strerror=no
4972fi
4973rm conftest.$ac_ext
4974LIBS=$ac_func_search_save_LIBS
4975fi
4976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4977printf "%s\n" "$ac_cv_search_strerror" >&6; }
4978ac_res=$ac_cv_search_strerror
4979if test "$ac_res" != no
4980then :
4981 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4982
4983fi
4984
4985ac_ext=cpp 4725ac_ext=cpp
4986ac_cpp='$CXXCPP $CPPFLAGS' 4726ac_cpp='$CXXCPP $CPPFLAGS'
4987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4990 4730
4991
4992if test "$ac_prog_cxx_stdcxx" != cxx11; then
4993 as_fn_error $? "the compiler does not support C++11" "$LINENO" 5
4994fi
4995 4731
4996LINKER="$CXX" 4732LINKER="$CXX"
4997if test x$GCC = xyes && test x$GXX = xyes; then 4733if test x$GCC = xyes && test x$GXX = xyes; then
4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
4999printf %s "checking for working libsupc++... " >&6; } 4735printf %s "checking for working libsupc++... " >&6; }
5269 support_frills=no 5005 support_frills=no
5270 support_inheritpixmap=no 5006 support_inheritpixmap=no
5271 support_fading=no 5007 support_fading=no
5272 support_keepscrolling=no 5008 support_keepscrolling=no
5273 support_selectionscrolling=no 5009 support_selectionscrolling=no
5274 support_lastlog=no
5275 support_mousewheel=no 5010 support_mousewheel=no
5276 support_mouseslipwheel=no 5011 support_mouseslipwheel=no
5277 support_text_blink=no 5012 support_text_blink=no
5278 support_pointer_blank=no 5013 support_pointer_blank=no
5279 support_scroll_rxvt=no 5014 support_scroll_rxvt=no
5280 support_scroll_next=no 5015 support_scroll_next=no
5281 support_scroll_xterm=no 5016 support_scroll_xterm=no
5282 support_utmp=no
5283 support_wtmp=no
5284 support_xim=no 5017 support_xim=no
5285 support_pixbuf=no 5018 support_pixbuf=no
5286 support_startup_notification=no 5019 support_startup_notification=no
5287 support_xft=no 5020 support_xft=no
5288 support_unicode3=no 5021 support_unicode3=no
5297 support_frills=yes 5030 support_frills=yes
5298 support_inheritpixmap=yes 5031 support_inheritpixmap=yes
5299 support_fading=yes 5032 support_fading=yes
5300 support_keepscrolling=yes 5033 support_keepscrolling=yes
5301 support_selectionscrolling=yes 5034 support_selectionscrolling=yes
5302 support_lastlog=yes
5303 support_mousewheel=yes 5035 support_mousewheel=yes
5304 support_mouseslipwheel=yes 5036 support_mouseslipwheel=yes
5305 support_text_blink=yes 5037 support_text_blink=yes
5306 support_pointer_blank=yes 5038 support_pointer_blank=yes
5307 support_scroll_rxvt=yes 5039 support_scroll_rxvt=yes
5308 support_scroll_next=yes 5040 support_scroll_next=yes
5309 support_scroll_xterm=yes 5041 support_scroll_xterm=yes
5310 support_utmp=yes
5311 support_wtmp=yes
5312 support_xim=yes 5042 support_xim=yes
5313 support_pixbuf=yes 5043 support_pixbuf=yes
5314 support_startup_notification=yes 5044 support_startup_notification=yes
5315 support_xft=yes 5045 support_xft=yes
5316 support_unicode3=yes 5046 support_unicode3=yes
5350fi 5080fi
5351 5081
5352if test x$GXX = xyes; then 5082if test x$GXX = xyes; then
5353 if test $support_warnings = yes; then 5083 if test $support_warnings = yes; then
5354 save_CXXFLAGS="$CXXFLAGS" 5084 save_CXXFLAGS="$CXXFLAGS"
5355 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value" 5085 for warning in \
5086 -Wall \
5087 -Wno-parentheses \
5088 -Wno-reorder \
5089 -Wno-sign-compare \
5090 -Wno-unused-value \
5091 ; do
5092 CXXFLAGS="$CXXFLAGS $warning"
5093 done
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357/* end confdefs.h. */ 5095/* end confdefs.h. */
5358 5096
5359int 5097int
5360main (void) 5098main (void)
7105else 6843else
7106 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6844 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7107fi 6845fi
7108 6846
7109 6847
6848
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libptytty (via pkg-config)" >&5
6850printf %s "checking for libptytty (via pkg-config)... " >&6; }
6851 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libptytty; then
6852 PTYTTY_CFLAGS="`$PKG_CONFIG --cflags libptytty`"
6853 PTYTTY_LIBS="`$PKG_CONFIG --libs libptytty`"
6854
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6856printf "%s\n" "ok" >&6; }
6857 :
6858 else
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860printf "%s\n" "no" >&6; }
6861
6862 as_fn_error $? "unable to find libptytty" "$LINENO" 5
6863
6864 fi
6865
6866
6867
6868
6869
7110image_lib=none 6870image_lib=none
7111 6871
7112PIXBUF_CFLAGS= 6872PIXBUF_CFLAGS=
7113PIXBUF_LIBS= 6873PIXBUF_LIBS=
7114 6874
7115if test x$support_pixbuf = xyes; then 6875if test x$support_pixbuf = xyes; then
7116 6876
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0" >&5 6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0 (via pkg-config)" >&5
7118printf %s "checking for gdk-pixbuf-2.0... " >&6; } 6878printf %s "checking for gdk-pixbuf-2.0 (via pkg-config)... " >&6; }
7119 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then 6879 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
7120 PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`" 6880 PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`"
7121 PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`" 6881 PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`"
7122 6882
7123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7142STARTUP_NOTIFICATION_CFLAGS= 6902STARTUP_NOTIFICATION_CFLAGS=
7143STARTUP_NOTIFICATION_LIBS= 6903STARTUP_NOTIFICATION_LIBS=
7144 6904
7145if test x$support_startup_notification = xyes; then 6905if test x$support_startup_notification = xyes; then
7146 6906
7147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0" >&5 6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0 (via pkg-config)" >&5
7148printf %s "checking for libstartup-notification-1.0... " >&6; } 6908printf %s "checking for libstartup-notification-1.0 (via pkg-config)... " >&6; }
7149 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then 6909 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
7150 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`" 6910 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`"
7151 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`" 6911 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`"
7152 6912
7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7168 6928
7169 6929
7170 6930
7171if test x$support_frills = xyes; then 6931if test x$support_frills = xyes; then
7172 6932
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmu" >&5 6933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmu (via pkg-config)" >&5
7174printf %s "checking for xmu... " >&6; } 6934printf %s "checking for xmu (via pkg-config)... " >&6; }
7175 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then 6935 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then
7176 XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`" 6936 XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`"
7177 XMU_LIBS="`$PKG_CONFIG --libs xmu`" 6937 XMU_LIBS="`$PKG_CONFIG --libs xmu`"
7178 6938
7179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7540 7300
7541fi 7301fi
7542 7302
7543 7303
7544 7304
7545support_utmp=yes
7546support_wtmp=yes
7547support_lastlog=yes
7548
7549# Check whether --enable-utmp was given.
7550if test ${enable_utmp+y}
7551then :
7552 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
7553 support_utmp=$enableval
7554 fi
7555fi
7556
7557
7558# Check whether --enable-wtmp was given.
7559if test ${enable_wtmp+y}
7560then :
7561 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
7562 support_wtmp=$enableval
7563 fi
7564fi
7565
7566
7567# Check whether --enable-lastlog was given.
7568if test ${enable_lastlog+y}
7569then :
7570 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
7571 support_lastlog=$enableval
7572 fi
7573fi
7574
7575
7576if test x$support_utmp = xyes; then
7577
7578printf "%s\n" "#define UTMP_SUPPORT 1" >>confdefs.h
7579
7580fi
7581if test x$support_wtmp = xyes; then
7582
7583printf "%s\n" "#define WTMP_SUPPORT 1" >>confdefs.h
7584
7585fi
7586if test x$support_lastlog = xyes; then
7587
7588printf "%s\n" "#define LASTLOG_SUPPORT 1" >>confdefs.h
7589
7590fi
7591
7592ac_fn_cxx_check_func "$LINENO" "updwtmp" "ac_cv_func_updwtmp"
7593if test "x$ac_cv_func_updwtmp" = xyes
7594then :
7595 printf "%s\n" "#define HAVE_UPDWTMP 1" >>confdefs.h
7596
7597fi
7598ac_fn_cxx_check_func "$LINENO" "updwtmpx" "ac_cv_func_updwtmpx"
7599if test "x$ac_cv_func_updwtmpx" = xyes
7600then :
7601 printf "%s\n" "#define HAVE_UPDWTMPX 1" >>confdefs.h
7602
7603fi
7604ac_fn_cxx_check_func "$LINENO" "updlastlogx" "ac_cv_func_updlastlogx"
7605if test "x$ac_cv_func_updlastlogx" = xyes
7606then :
7607 printf "%s\n" "#define HAVE_UPDLASTLOGX 1" >>confdefs.h
7608
7609fi
7610
7611
7612ac_fn_cxx_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
7613if test "x$ac_cv_header_lastlog_h" = xyes
7614then :
7615 printf "%s\n" "#define HAVE_LASTLOG_H 1" >>confdefs.h
7616
7617fi
7618
7619
7620case $host in
7621 *-*-solaris*)
7622
7623printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
7624
7625 ;;
7626esac
7627
7628
7629 for ac_header in utmp.h
7630do :
7631 ac_fn_cxx_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
7632if test "x$ac_cv_header_utmp_h" = xyes
7633then :
7634 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
7635
7636ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
7637#include <sys/types.h>
7638#include <utmp.h>
7639
7640"
7641if test "x$ac_cv_type_struct_utmp" = xyes
7642then :
7643
7644printf "%s\n" "#define HAVE_STRUCT_UTMP 1" >>confdefs.h
7645
7646
7647fi
7648
7649
7650ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
7651#include <sys/types.h>
7652#include <utmp.h>
7653
7654"
7655if test "x$ac_cv_member_struct_utmp_ut_host" = xyes
7656then :
7657
7658printf "%s\n" "#define HAVE_UTMP_HOST 1" >>confdefs.h
7659
7660fi
7661
7662
7663ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
7664#include <sys/types.h>
7665#include <utmp.h>
7666
7667"
7668if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes
7669then :
7670
7671printf "%s\n" "#define HAVE_UTMP_PID 1" >>confdefs.h
7672
7673fi
7674
7675
7676fi
7677
7678done
7679
7680 for ac_header in utmpx.h
7681do :
7682 ac_fn_cxx_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
7683if test "x$ac_cv_header_utmpx_h" = xyes
7684then :
7685 printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h
7686
7687ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" "
7688#include <sys/types.h>
7689#include <utmpx.h>
7690
7691"
7692if test "x$ac_cv_type_struct_utmpx" = xyes
7693then :
7694
7695printf "%s\n" "#define HAVE_STRUCT_UTMPX 1" >>confdefs.h
7696
7697
7698fi
7699
7700
7701ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
7702#include <sys/types.h>
7703#include <utmpx.h>
7704
7705"
7706if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes
7707then :
7708
7709printf "%s\n" "#define HAVE_UTMPX_HOST 1" >>confdefs.h
7710
7711fi
7712
7713
7714fi
7715
7716done
7717ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
7718#include <sys/types.h>
7719#include <utmp.h>
7720#ifdef HAVE_LASTLOG_H
7721#include <lastlog.h>
7722#endif
7723
7724"
7725if test "x$ac_cv_type_struct_lastlog" = xyes
7726then :
7727
7728printf "%s\n" "#define HAVE_STRUCT_LASTLOG 1" >>confdefs.h
7729
7730
7731fi
7732
7733
7734ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" "
7735#include <sys/types.h>
7736#include <utmpx.h>
7737#ifdef HAVE_LASTLOG_H
7738#include <lastlog.h>
7739#endif
7740
7741"
7742if test "x$ac_cv_type_struct_lastlogx" = xyes
7743then :
7744
7745printf "%s\n" "#define HAVE_STRUCT_LASTLOGX 1" >>confdefs.h
7746
7747
7748fi
7749
7750
7751
7752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5
7753printf %s "checking for a fallback location of utmp... " >&6; }
7754if test ${pt_cv_path_utmp+y}
7755then :
7756 printf %s "(cached) " >&6
7757else $as_nop
7758
7759if test "$cross_compiling" != yes; then
7760 for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do
7761 if test -f "$file"; then
7762 pt_cv_path_utmp=$file
7763 break
7764 fi
7765 done
7766fi
7767fi
7768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
7769printf "%s\n" "$pt_cv_path_utmp" >&6; }
7770if test x$pt_cv_path_utmp != x; then
7771
7772printf "%s\n" "#define PT_UTMP_FILE \"$pt_cv_path_utmp\"" >>confdefs.h
7773
7774elif test "$cross_compiling" = yes; then
7775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5
7776printf "%s\n" "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;}
7777fi
7778
7779
7780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5
7781printf %s "checking for a fallback location of wtmp... " >&6; }
7782if test ${pt_cv_path_wtmp+y}
7783then :
7784 printf %s "(cached) " >&6
7785else $as_nop
7786
7787if test "$cross_compiling" != yes; then
7788 for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do
7789 if test -f "$file"; then
7790 pt_cv_path_wtmp=$file
7791 break
7792 fi
7793 done
7794fi
7795fi
7796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
7797printf "%s\n" "$pt_cv_path_wtmp" >&6; }
7798if test x$pt_cv_path_wtmp != x; then
7799
7800printf "%s\n" "#define PT_WTMP_FILE \"$pt_cv_path_wtmp\"" >>confdefs.h
7801
7802elif test "$cross_compiling" = yes; then
7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5
7804printf "%s\n" "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;}
7805fi
7806
7807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5
7808printf %s "checking for a fallback location of wtmpx... " >&6; }
7809if test ${pt_cv_path_wtmpx+y}
7810then :
7811 printf %s "(cached) " >&6
7812else $as_nop
7813
7814if test "$cross_compiling" != yes; then
7815 for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do
7816 if test -f "$file"; then
7817 pt_cv_path_wtmpx=$file
7818 break
7819 fi
7820 done
7821fi
7822fi
7823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
7824printf "%s\n" "$pt_cv_path_wtmpx" >&6; }
7825if test x$pt_cv_path_wtmpx != x; then
7826
7827printf "%s\n" "#define PT_WTMPX_FILE \"$pt_cv_path_wtmpx\"" >>confdefs.h
7828
7829elif test "$cross_compiling" = yes; then
7830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5
7831printf "%s\n" "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;}
7832fi
7833
7834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5
7835printf %s "checking for a fallback location of lastlog... " >&6; }
7836if test ${pt_cv_path_lastlog+y}
7837then :
7838 printf %s "(cached) " >&6
7839else $as_nop
7840
7841if test "$cross_compiling" != yes; then
7842 for file in "/var/log/lastlog" "/var/adm/lastlog"; do
7843 if test -f "$file"; then
7844 pt_cv_path_lastlog=$file
7845 break
7846 fi
7847 done
7848fi
7849fi
7850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
7851printf "%s\n" "$pt_cv_path_lastlog" >&6; }
7852if test x$pt_cv_path_lastlog != x; then
7853
7854printf "%s\n" "#define PT_LASTLOG_FILE \"$pt_cv_path_lastlog\"" >>confdefs.h
7855
7856elif test "$cross_compiling" = yes; then
7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5
7858printf "%s\n" "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;}
7859fi
7860
7861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5
7862printf %s "checking for a fallback location of lastlogx... " >&6; }
7863if test ${pt_cv_path_lastlogx+y}
7864then :
7865 printf %s "(cached) " >&6
7866else $as_nop
7867
7868if test "$cross_compiling" != yes; then
7869 for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do
7870 if test -f "$file"; then
7871 pt_cv_path_lastlogx=$file
7872 break
7873 fi
7874 done
7875fi
7876fi
7877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
7878printf "%s\n" "$pt_cv_path_lastlogx" >&6; }
7879if test x$pt_cv_path_lastlogx != x; then
7880
7881printf "%s\n" "#define PT_LASTLOGX_FILE \"$pt_cv_path_lastlogx\"" >>confdefs.h
7882
7883elif test "$cross_compiling" = yes; then
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5
7885printf "%s\n" "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;}
7886fi
7887
7888
7889
7890 7305
7891save_LIBS=$LIBS 7306save_LIBS=$LIBS
7892save_CXXFLAGS=$CXXFLAGS 7307save_CXXFLAGS=$CXXFLAGS
7893CXXFLAGS="$CXXFLAGS $X_CFLAGS" 7308CXXFLAGS="$CXXFLAGS $X_CFLAGS"
7894LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 7309LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
8041 7456
8042printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h 7457printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
8043 7458
8044fi 7459fi
8045 7460
8046
8047
8048case $host in
8049 *-*-solaris*)
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051/* end confdefs.h. */
8052
8053#if __STDC_VERSION__ >= 199901L
8054error
8055#endif
8056
8057int
8058main (void)
8059{
8060
8061 ;
8062 return 0;
8063}
8064_ACEOF
8065if ac_fn_cxx_try_compile "$LINENO"
8066then :
8067 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
8068
8069else $as_nop
8070 printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
8071
8072fi
8073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
8075printf %s "checking for library containing sendmsg... " >&6; }
8076if test ${ac_cv_search_sendmsg+y}
8077then :
8078 printf %s "(cached) " >&6
8079else $as_nop
8080 ac_func_search_save_LIBS=$LIBS
8081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082/* end confdefs.h. */
8083
8084namespace conftest {
8085 extern "C" int sendmsg ();
8086}
8087int
8088main (void)
8089{
8090return conftest::sendmsg ();
8091 ;
8092 return 0;
8093}
8094_ACEOF
8095for ac_lib in '' socket
8096do
8097 if test -z "$ac_lib"; then
8098 ac_res="none required"
8099 else
8100 ac_res=-l$ac_lib
8101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8102 fi
8103 if ac_fn_cxx_try_link "$LINENO"
8104then :
8105 ac_cv_search_sendmsg=$ac_res
8106fi
8107rm -f core conftest.err conftest.$ac_objext conftest.beam \
8108 conftest$ac_exeext
8109 if test ${ac_cv_search_sendmsg+y}
8110then :
8111 break
8112fi
8113done
8114if test ${ac_cv_search_sendmsg+y}
8115then :
8116
8117else $as_nop
8118 ac_cv_search_sendmsg=no
8119fi
8120rm conftest.$ac_ext
8121LIBS=$ac_func_search_save_LIBS
8122fi
8123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
8124printf "%s\n" "$ac_cv_search_sendmsg" >&6; }
8125ac_res=$ac_cv_search_sendmsg
8126if test "$ac_res" != no
8127then :
8128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8129
8130fi
8131
8132 ;;
8133esac
8134
8135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
8136printf %s "checking for unix-compliant filehandle passing ability... " >&6; }
8137if test ${pt_cv_can_pass_fds+y}
8138then :
8139 printf %s "(cached) " >&6
8140else $as_nop
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142/* end confdefs.h. */
8143
8144#include <stddef.h> // broken bsds (is that redundant?) need this
8145#include <sys/types.h>
8146#include <sys/socket.h>
8147#include <sys/uio.h>
8148
8149int
8150main (void)
8151{
8152
8153{
8154 msghdr msg;
8155 iovec iov;
8156 char buf [100];
8157 char data = 0;
8158
8159 iov.iov_base = &data;
8160 iov.iov_len = 1;
8161
8162 msg.msg_iov = &iov;
8163 msg.msg_iovlen = 1;
8164 msg.msg_control = buf;
8165 msg.msg_controllen = sizeof buf;
8166
8167 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
8168 cmsg->cmsg_level = SOL_SOCKET;
8169 cmsg->cmsg_type = SCM_RIGHTS;
8170 cmsg->cmsg_len = 100;
8171
8172 *(int *)CMSG_DATA (cmsg) = 5;
8173
8174 return sendmsg (3, &msg, 0);
8175}
8176
8177 ;
8178 return 0;
8179}
8180_ACEOF
8181if ac_fn_cxx_try_link "$LINENO"
8182then :
8183 pt_cv_can_pass_fds=yes
8184else $as_nop
8185 pt_cv_can_pass_fds=no
8186fi
8187rm -f core conftest.err conftest.$ac_objext conftest.beam \
8188 conftest$ac_exeext conftest.$ac_ext
8189fi
8190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
8191printf "%s\n" "$pt_cv_can_pass_fds" >&6; }
8192if test x$pt_cv_can_pass_fds = xyes; then
8193
8194printf "%s\n" "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
8195
8196else
8197 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
8198fi
8199
8200
8201
8202ac_fn_cxx_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default"
8203if test "x$ac_cv_header_pty_h" = xyes
8204then :
8205 printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h
8206
8207fi
8208ac_fn_cxx_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
8209if test "x$ac_cv_header_util_h" = xyes
8210then :
8211 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h
8212
8213fi
8214ac_fn_cxx_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
8215if test "x$ac_cv_header_libutil_h" = xyes
8216then :
8217 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h
8218
8219fi
8220ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
8221if test "x$ac_cv_header_sys_ioctl_h" = xyes
8222then :
8223 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
8224
8225fi
8226ac_fn_cxx_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
8227if test "x$ac_cv_header_stropts_h" = xyes
8228then :
8229 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
8230
8231fi
8232
8233
8234ac_fn_cxx_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
8235if test "x$ac_cv_func_revoke" = xyes
8236then :
8237 printf "%s\n" "#define HAVE_REVOKE 1" >>confdefs.h
8238
8239fi
8240ac_fn_cxx_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
8241if test "x$ac_cv_func__getpty" = xyes
8242then :
8243 printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h
8244
8245fi
8246ac_fn_cxx_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
8247if test "x$ac_cv_func_getpt" = xyes
8248then :
8249 printf "%s\n" "#define HAVE_GETPT 1" >>confdefs.h
8250
8251fi
8252ac_fn_cxx_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
8253if test "x$ac_cv_func_posix_openpt" = xyes
8254then :
8255 printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h
8256
8257fi
8258ac_fn_cxx_check_func "$LINENO" "isastream" "ac_cv_func_isastream"
8259if test "x$ac_cv_func_isastream" = xyes
8260then :
8261 printf "%s\n" "#define HAVE_ISASTREAM 1" >>confdefs.h
8262
8263fi
8264ac_fn_cxx_check_func "$LINENO" "setuid" "ac_cv_func_setuid"
8265if test "x$ac_cv_func_setuid" = xyes
8266then :
8267 printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h
8268
8269fi
8270ac_fn_cxx_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
8271if test "x$ac_cv_func_seteuid" = xyes
8272then :
8273 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
8274
8275fi
8276ac_fn_cxx_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
8277if test "x$ac_cv_func_setreuid" = xyes
8278then :
8279 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
8280
8281fi
8282ac_fn_cxx_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
8283if test "x$ac_cv_func_setresuid" = xyes
8284then :
8285 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
8286
8287fi
8288
8289
8290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
8291printf %s "checking for UNIX98 ptys... " >&6; }
8292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293/* end confdefs.h. */
8294#include <stdlib.h>
8295int
8296main (void)
8297{
8298grantpt(0);unlockpt(0);ptsname(0);
8299 ;
8300 return 0;
8301}
8302_ACEOF
8303if ac_fn_cxx_try_link "$LINENO"
8304then :
8305 unix98_pty=yes
8306
8307printf "%s\n" "#define UNIX98_PTY 1" >>confdefs.h
8308
8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8310printf "%s\n" "yes" >&6; }
8311else $as_nop
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313printf "%s\n" "no" >&6; }
8314fi
8315rm -f core conftest.err conftest.$ac_objext conftest.beam \
8316 conftest$ac_exeext conftest.$ac_ext
8317
8318if test -z "$unix98_pty"; then
8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
8320printf %s "checking for library containing openpty... " >&6; }
8321if test ${ac_cv_search_openpty+y}
8322then :
8323 printf %s "(cached) " >&6
8324else $as_nop
8325 ac_func_search_save_LIBS=$LIBS
8326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h. */
8328
8329namespace conftest {
8330 extern "C" int openpty ();
8331}
8332int
8333main (void)
8334{
8335return conftest::openpty ();
8336 ;
8337 return 0;
8338}
8339_ACEOF
8340for ac_lib in '' util
8341do
8342 if test -z "$ac_lib"; then
8343 ac_res="none required"
8344 else
8345 ac_res=-l$ac_lib
8346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8347 fi
8348 if ac_fn_cxx_try_link "$LINENO"
8349then :
8350 ac_cv_search_openpty=$ac_res
8351fi
8352rm -f core conftest.err conftest.$ac_objext conftest.beam \
8353 conftest$ac_exeext
8354 if test ${ac_cv_search_openpty+y}
8355then :
8356 break
8357fi
8358done
8359if test ${ac_cv_search_openpty+y}
8360then :
8361
8362else $as_nop
8363 ac_cv_search_openpty=no
8364fi
8365rm conftest.$ac_ext
8366LIBS=$ac_func_search_save_LIBS
8367fi
8368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
8369printf "%s\n" "$ac_cv_search_openpty" >&6; }
8370ac_res=$ac_cv_search_openpty
8371if test "$ac_res" != no
8372then :
8373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8374
8375printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
8376
8377fi
8378
8379fi
8380
8381
8382
8383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
8384printf %s "checking for tty group... " >&6; }
8385if test ${pt_cv_tty_group+y}
8386then :
8387 printf %s "(cached) " >&6
8388else $as_nop
8389 if test "$cross_compiling" = yes
8390then :
8391 pt_cv_tty_group=no
8392else $as_nop
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394/* end confdefs.h. */
8395
8396#include <sys/types.h>
8397#include <sys/stat.h>
8398#include <unistd.h>
8399#include <grp.h>
8400
8401int main()
8402{
8403 struct stat st;
8404 struct group *gr;
8405 char *tty;
8406 gr = getgrnam("tty");
8407 tty = ttyname(0);
8408 if (gr != 0
8409 && tty != 0
8410 && (stat(tty, &st)) == 0
8411 && st.st_gid == gr->gr_gid)
8412 return 0;
8413 else
8414 return 1;
8415}
8416_ACEOF
8417if ac_fn_cxx_try_run "$LINENO"
8418then :
8419 pt_cv_tty_group=yes
8420else $as_nop
8421 pt_cv_tty_group=no
8422fi
8423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8424 conftest.$ac_objext conftest.beam conftest.$ac_ext
8425fi
8426
8427fi
8428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
8429printf "%s\n" "$pt_cv_tty_group" >&6; }
8430if test x$pt_cv_tty_group = xyes; then
8431
8432printf "%s\n" "#define TTY_GID_SUPPORT 1" >>confdefs.h
8433
8434fi
8435
8436support_image=no 7461support_image=no
8437if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then 7462if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then
8438 support_image=yes 7463 support_image=yes
8439fi 7464fi
8440if test x$support_xft = xyes || test x$support_image = xyes; then 7465if test x$support_xft = xyes || test x$support_image = xyes; then
8441 rxvt_have_xrender=no 7466 rxvt_have_xrender=no
8442 7467
8443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender" >&5 7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender (via pkg-config)" >&5
8444printf %s "checking for xrender... " >&6; } 7469printf %s "checking for xrender (via pkg-config)... " >&6; }
8445 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then 7470 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
8446 XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`" 7471 XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`"
8447 XRENDER_LIBS="`$PKG_CONFIG --libs xrender`" 7472 XRENDER_LIBS="`$PKG_CONFIG --libs xrender`"
8448 7473
8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8481 7506
8482fi 7507fi
8483 7508
8484if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then 7509if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
8485 7510
8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft" >&5 7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft (via pkg-config)" >&5
8487printf %s "checking for fontconfig xft... " >&6; } 7512printf %s "checking for fontconfig xft (via pkg-config)... " >&6; }
8488 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then 7513 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then
8489 XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`" 7514 XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`"
8490 XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`" 7515 XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`"
8491 7516
8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805printf "%s\n" "no" >&6; } 7830printf "%s\n" "no" >&6; }
8806fi 7831fi
8807 7832
8808 7833
7834
7835
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xext (via pkg-config)" >&5
7837printf %s "checking for xext (via pkg-config)... " >&6; }
7838 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xext; then
7839 XEXT_CFLAGS="`$PKG_CONFIG --cflags xext`"
7840 XEXT_LIBS="`$PKG_CONFIG --libs xext`"
7841
7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7843printf "%s\n" "ok" >&6; }
7844 :
7845 else
7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847printf "%s\n" "no" >&6; }
7848
7849 as_fn_error $? "unable to find xext, required for perl" "$LINENO" 5
7850
7851 fi
7852
7853
7854 X_LIBS="$XEXT_LIBS $X_LIBS"
7855 CPPFLAGS="$CPPFLAGS $XEXT_CFLAGS"
8809 7856
8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5 7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
8811printf %s "checking for $PERL suitability... " >&6; } 7858printf %s "checking for $PERL suitability... " >&6; }
8812 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then 7859 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
8813 7860

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines