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

Comparing rxvt-unicode/configure (file contents):
Revision 1.151 by sf-exg, Thu Jan 19 11:09:56 2012 UTC vs.
Revision 1.156 by root, Tue Jun 19 18:17:56 2012 UTC

1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68. 3# Generated by GNU Autoconf 2.67.
4# 4#
5# 5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc. 8# Foundation, Inc.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.) 88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl" 89IFS=" "" $as_nl"
90 90
91# Find who we are. Look in the path if we contain no directory separator. 91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #(( 92case $0 in #((
94 *[\\/]* ) as_myself=$0 ;; 93 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH 95for as_dir in $PATH
97do 96do
213 212
214 if test "x$CONFIG_SHELL" != x; then : 213 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a 214 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also 215 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables. 216 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null 217 BASH_ENV=/dev/null
220 ENV=/dev/null 218 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL 220 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230fi 222fi
231 223
232 if test x$as_have_required = xno; then : 224 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all" 225 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system." 226 $as_echo "$0: the shells that I found on your system."
605IF_PERL 597IF_PERL
606PERLPRIVLIBEXP 598PERLPRIVLIBEXP
607PERLFLAGS 599PERLFLAGS
608PERLLIB 600PERLLIB
609PERL 601PERL
602PIXBUF_LIBS
603PIXBUF_CFLAGS
610XFT_CONFIG 604XFT_CONFIG
611AFTERIMAGE_LIBS
612AFTERIMAGE_CFLAGS
613afterimage_config
614STARTUP_NOTIFICATION_LIBS 605STARTUP_NOTIFICATION_LIBS
615STARTUP_NOTIFICATION_CFLAGS 606STARTUP_NOTIFICATION_CFLAGS
616PIXBUF_LIBS
617PIXBUF_CFLAGS
618PKG_CONFIG 607PKG_CONFIG
619X_EXTRA_LIBS 608X_EXTRA_LIBS
620X_LIBS 609X_LIBS
621X_PRE_LIBS 610X_PRE_LIBS
622X_CFLAGS 611X_CFLAGS
625CXXCPP 614CXXCPP
626RXVTNAME 615RXVTNAME
627LINKER 616LINKER
628EGREP 617EGREP
629GREP 618GREP
619CPP
630INSTALL_DATA 620INSTALL_DATA
631INSTALL_SCRIPT 621INSTALL_SCRIPT
632INSTALL_PROGRAM 622INSTALL_PROGRAM
633CPP
634ac_ct_CXX 623ac_ct_CXX
635CXXFLAGS 624CXXFLAGS
636CXX 625CXX
637OBJEXT 626OBJEXT
638EXEEXT 627EXEEXT
698enable_256_color 687enable_256_color
699enable_unicode3 688enable_unicode3
700enable_combining 689enable_combining
701enable_xft 690enable_xft
702enable_font_styles 691enable_font_styles
703enable_afterimage
704with_afterimage_config
705enable_pixbuf 692enable_pixbuf
706enable_startup_notification 693enable_startup_notification
707enable_transparency 694enable_transparency
708enable_fading 695enable_fading
709enable_rxvt_scroll 696enable_rxvt_scroll
730enable_smart_resize 717enable_smart_resize
731enable_text_blink 718enable_text_blink
732enable_pointer_blank 719enable_pointer_blank
733with_term 720with_term
734with_terminfo 721with_terminfo
722enable_xdbe
735with_x 723with_x
736enable_utmp 724enable_utmp
737enable_wtmp 725enable_wtmp
738enable_lastlog 726enable_lastlog
739' 727'
1153 *) 1141 *)
1154 # FIXME: should be removed in autoconf 3.0. 1142 # FIXME: should be removed in autoconf 3.0.
1155 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1143 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1144 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1145 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1146 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1159 ;; 1147 ;;
1160 1148
1161 esac 1149 esac
1162done 1150done
1163 1151
1375 --enable-256-color enable 256-color support 1363 --enable-256-color enable 256-color support
1376 --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
1377 --enable-combining enable composition of base and combining characters 1365 --enable-combining enable composition of base and combining characters
1378 --enable-xft enable xft support on systems that have it 1366 --enable-xft enable xft support on systems that have it
1379 --enable-font-styles enable bold and italic support 1367 --enable-font-styles enable bold and italic support
1380 --enable-afterimage enable integration with libAfterImage for background images (deprecated)
1381 --enable-pixbuf enable integration with gdk-pixbuf for background images 1368 --enable-pixbuf enable integration with gdk-pixbuf for background images
1382 --enable-startup-notification enable freedesktop startup notification support 1369 --enable-startup-notification enable freedesktop startup notification support
1383 --enable-transparency enable transparent backgrounds 1370 --enable-transparency enable transparent backgrounds
1384 --enable-fading enable colors fading when off focus 1371 --enable-fading enable colors fading when off focus
1385 --enable-rxvt-scroll enable rxvt style scrollbar 1372 --enable-rxvt-scroll enable rxvt style scrollbar
1400 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1387 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1401 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) 1388 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1402 --enable-smart-resize enable smart growth/shrink behaviour 1389 --enable-smart-resize enable smart growth/shrink behaviour
1403 --enable-text-blink enable blinking text 1390 --enable-text-blink enable blinking text
1404 --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
1405 --enable-utmp enable utmp (utmpx) support 1393 --enable-utmp enable utmp (utmpx) support
1406 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1394 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1407 --enable-lastlog enable lastlog support (requires --enable-utmp) 1395 --enable-lastlog enable lastlog support (requires --enable-utmp)
1408 1396
1409Optional Packages: 1397Optional Packages:
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1412 --with-afterimage-config=DIR use libAfterImage config script in DIR
1413 --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)
1414 --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)
1415 --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)
1416 --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)
1417 --with-term=NAME set the terminal to NAME (default: rxvt) 1404 --with-term=NAME set the terminal to NAME (default: rxvt)
1497 1484
1498test -n "$ac_init_help" && exit $ac_status 1485test -n "$ac_init_help" && exit $ac_status
1499if $ac_init_version; then 1486if $ac_init_version; then
1500 cat <<\_ACEOF 1487 cat <<\_ACEOF
1501configure 1488configure
1502generated by GNU Autoconf 2.68 1489generated by GNU Autoconf 2.67
1503 1490
1504Copyright (C) 2010 Free Software Foundation, Inc. 1491Copyright (C) 2010 Free Software Foundation, Inc.
1505This configure script is free software; the Free Software Foundation 1492This configure script is free software; the Free Software Foundation
1506gives unlimited permission to copy, distribute and modify it. 1493gives unlimited permission to copy, distribute and modify it.
1507_ACEOF 1494_ACEOF
1543 $as_echo "$as_me: failed program was:" >&5 1530 $as_echo "$as_me: failed program was:" >&5
1544sed 's/^/| /' conftest.$ac_ext >&5 1531sed 's/^/| /' conftest.$ac_ext >&5
1545 1532
1546 ac_retval=1 1533 ac_retval=1
1547fi 1534fi
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1535 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1549 as_fn_set_status $ac_retval 1536 as_fn_set_status $ac_retval
1550 1537
1551} # ac_fn_c_try_compile 1538} # ac_fn_c_try_compile
1552 1539
1553# ac_fn_cxx_try_compile LINENO 1540# ac_fn_cxx_try_compile LINENO
1581 $as_echo "$as_me: failed program was:" >&5 1568 $as_echo "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5 1569sed 's/^/| /' conftest.$ac_ext >&5
1583 1570
1584 ac_retval=1 1571 ac_retval=1
1585fi 1572fi
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1573 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1587 as_fn_set_status $ac_retval 1574 as_fn_set_status $ac_retval
1588 1575
1589} # ac_fn_cxx_try_compile 1576} # ac_fn_cxx_try_compile
1590 1577
1591# ac_fn_c_try_cpp LINENO 1578# ac_fn_c_try_cpp LINENO
1618 $as_echo "$as_me: failed program was:" >&5 1605 $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5 1606sed 's/^/| /' conftest.$ac_ext >&5
1620 1607
1621 ac_retval=1 1608 ac_retval=1
1622fi 1609fi
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624 as_fn_set_status $ac_retval 1611 as_fn_set_status $ac_retval
1625 1612
1626} # ac_fn_c_try_cpp 1613} # ac_fn_c_try_cpp
1627 1614
1628# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1615# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1631# the include files in INCLUDES and setting the cache variable VAR 1618# the include files in INCLUDES and setting the cache variable VAR
1632# accordingly. 1619# accordingly.
1633ac_fn_c_check_header_mongrel () 1620ac_fn_c_check_header_mongrel ()
1634{ 1621{
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if eval \${$3+:} false; then : 1623 if eval "test \"\${$3+set}\"" = set; then :
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638$as_echo_n "checking for $2... " >&6; } 1625$as_echo_n "checking for $2... " >&6; }
1639if eval \${$3+:} false; then : 1626if eval "test \"\${$3+set}\"" = set; then :
1640 $as_echo_n "(cached) " >&6 1627 $as_echo_n "(cached) " >&6
1641fi 1628fi
1642eval ac_res=\$$3 1629eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; } 1631$as_echo "$ac_res" >&6; }
1697$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1684$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1698 ;; 1685 ;;
1699esac 1686esac
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701$as_echo_n "checking for $2... " >&6; } 1688$as_echo_n "checking for $2... " >&6; }
1702if eval \${$3+:} false; then : 1689if eval "test \"\${$3+set}\"" = set; then :
1703 $as_echo_n "(cached) " >&6 1690 $as_echo_n "(cached) " >&6
1704else 1691else
1705 eval "$3=\$ac_header_compiler" 1692 eval "$3=\$ac_header_compiler"
1706fi 1693fi
1707eval ac_res=\$$3 1694eval ac_res=\$$3
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709$as_echo "$ac_res" >&6; } 1696$as_echo "$ac_res" >&6; }
1710fi 1697fi
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1712 1699
1713} # ac_fn_c_check_header_mongrel 1700} # ac_fn_c_check_header_mongrel
1714 1701
1715# ac_fn_c_try_run LINENO 1702# ac_fn_c_try_run LINENO
1716# ---------------------- 1703# ----------------------
1747sed 's/^/| /' conftest.$ac_ext >&5 1734sed 's/^/| /' conftest.$ac_ext >&5
1748 1735
1749 ac_retval=$ac_status 1736 ac_retval=$ac_status
1750fi 1737fi
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1753 as_fn_set_status $ac_retval 1740 as_fn_set_status $ac_retval
1754 1741
1755} # ac_fn_c_try_run 1742} # ac_fn_c_try_run
1756 1743
1757# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1744# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1761ac_fn_c_check_header_compile () 1748ac_fn_c_check_header_compile ()
1762{ 1749{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765$as_echo_n "checking for $2... " >&6; } 1752$as_echo_n "checking for $2... " >&6; }
1766if eval \${$3+:} false; then : 1753if eval "test \"\${$3+set}\"" = set; then :
1767 $as_echo_n "(cached) " >&6 1754 $as_echo_n "(cached) " >&6
1768else 1755else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h. */ 1757/* end confdefs.h. */
1771$4 1758$4
1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780fi 1767fi
1781eval ac_res=\$$3 1768eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783$as_echo "$ac_res" >&6; } 1770$as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785 1772
1786} # ac_fn_c_check_header_compile 1773} # ac_fn_c_check_header_compile
1787 1774
1788# ac_fn_c_try_link LINENO 1775# ac_fn_c_try_link LINENO
1789# ----------------------- 1776# -----------------------
1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826 # interfere with the next link command; also delete a directory that is 1813 # interfere with the next link command; also delete a directory that is
1827 # left behind by Apple's compiler. We do this before executing the actions. 1814 # left behind by Apple's compiler. We do this before executing the actions.
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 as_fn_set_status $ac_retval 1817 as_fn_set_status $ac_retval
1831 1818
1832} # ac_fn_c_try_link 1819} # ac_fn_c_try_link
1833 1820
1834# ac_fn_cxx_try_link LINENO 1821# ac_fn_cxx_try_link LINENO
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1857 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1858 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is 1859 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions. 1860 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1861 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 as_fn_set_status $ac_retval 1863 as_fn_set_status $ac_retval
1877 1864
1878} # ac_fn_cxx_try_link 1865} # ac_fn_cxx_try_link
1879 1866
1880# ac_fn_cxx_try_cpp LINENO 1867# ac_fn_cxx_try_cpp LINENO
1907 $as_echo "$as_me: failed program was:" >&5 1894 $as_echo "$as_me: failed program was:" >&5
1908sed 's/^/| /' conftest.$ac_ext >&5 1895sed 's/^/| /' conftest.$ac_ext >&5
1909 1896
1910 ac_retval=1 1897 ac_retval=1
1911fi 1898fi
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913 as_fn_set_status $ac_retval 1900 as_fn_set_status $ac_retval
1914 1901
1915} # ac_fn_cxx_try_cpp 1902} # ac_fn_cxx_try_cpp
1916 1903
1917# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 1904# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1920# the include files in INCLUDES and setting the cache variable VAR 1907# the include files in INCLUDES and setting the cache variable VAR
1921# accordingly. 1908# accordingly.
1922ac_fn_cxx_check_header_mongrel () 1909ac_fn_cxx_check_header_mongrel ()
1923{ 1910{
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if eval \${$3+:} false; then : 1912 if eval "test \"\${$3+set}\"" = set; then :
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927$as_echo_n "checking for $2... " >&6; } 1914$as_echo_n "checking for $2... " >&6; }
1928if eval \${$3+:} false; then : 1915if eval "test \"\${$3+set}\"" = set; then :
1929 $as_echo_n "(cached) " >&6 1916 $as_echo_n "(cached) " >&6
1930fi 1917fi
1931eval ac_res=\$$3 1918eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; } 1920$as_echo "$ac_res" >&6; }
1986$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1973$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 ;; 1974 ;;
1988esac 1975esac
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990$as_echo_n "checking for $2... " >&6; } 1977$as_echo_n "checking for $2... " >&6; }
1991if eval \${$3+:} false; then : 1978if eval "test \"\${$3+set}\"" = set; then :
1992 $as_echo_n "(cached) " >&6 1979 $as_echo_n "(cached) " >&6
1993else 1980else
1994 eval "$3=\$ac_header_compiler" 1981 eval "$3=\$ac_header_compiler"
1995fi 1982fi
1996eval ac_res=\$$3 1983eval ac_res=\$$3
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998$as_echo "$ac_res" >&6; } 1985$as_echo "$ac_res" >&6; }
1999fi 1986fi
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1987 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2001 1988
2002} # ac_fn_cxx_check_header_mongrel 1989} # ac_fn_cxx_check_header_mongrel
2003 1990
2004# ac_fn_cxx_check_func LINENO FUNC VAR 1991# ac_fn_cxx_check_func LINENO FUNC VAR
2005# ------------------------------------ 1992# ------------------------------------
2007ac_fn_cxx_check_func () 1994ac_fn_cxx_check_func ()
2008{ 1995{
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011$as_echo_n "checking for $2... " >&6; } 1998$as_echo_n "checking for $2... " >&6; }
2012if eval \${$3+:} false; then : 1999if eval "test \"\${$3+set}\"" = set; then :
2013 $as_echo_n "(cached) " >&6 2000 $as_echo_n "(cached) " >&6
2014else 2001else
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */ 2003/* end confdefs.h. */
2017/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2004/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2062 conftest$ac_exeext conftest.$ac_ext 2049 conftest$ac_exeext conftest.$ac_ext
2063fi 2050fi
2064eval ac_res=\$$3 2051eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066$as_echo "$ac_res" >&6; } 2053$as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2068 2055
2069} # ac_fn_cxx_check_func 2056} # ac_fn_cxx_check_func
2070 2057
2071# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 2058# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2072# --------------------------------------------- 2059# ---------------------------------------------
2075ac_fn_cxx_check_type () 2062ac_fn_cxx_check_type ()
2076{ 2063{
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079$as_echo_n "checking for $2... " >&6; } 2066$as_echo_n "checking for $2... " >&6; }
2080if eval \${$3+:} false; then : 2067if eval "test \"\${$3+set}\"" = set; then :
2081 $as_echo_n "(cached) " >&6 2068 $as_echo_n "(cached) " >&6
2082else 2069else
2083 eval "$3=no" 2070 eval "$3=no"
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h. */ 2072/* end confdefs.h. */
2116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117fi 2104fi
2118eval ac_res=\$$3 2105eval ac_res=\$$3
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120$as_echo "$ac_res" >&6; } 2107$as_echo "$ac_res" >&6; }
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2122 2109
2123} # ac_fn_cxx_check_type 2110} # ac_fn_cxx_check_type
2124 2111
2125# ac_fn_c_find_intX_t LINENO BITS VAR 2112# ac_fn_c_find_intX_t LINENO BITS VAR
2126# ----------------------------------- 2113# -----------------------------------
2129ac_fn_c_find_intX_t () 2116ac_fn_c_find_intX_t ()
2130{ 2117{
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2133$as_echo_n "checking for int$2_t... " >&6; } 2120$as_echo_n "checking for int$2_t... " >&6; }
2134if eval \${$3+:} false; then : 2121if eval "test \"\${$3+set}\"" = set; then :
2135 $as_echo_n "(cached) " >&6 2122 $as_echo_n "(cached) " >&6
2136else 2123else
2137 eval "$3=no" 2124 eval "$3=no"
2138 # Order is important - never check a type that is potentially smaller 2125 # Order is important - never check a type that is potentially smaller
2139 # than half of the expected target width. 2126 # than half of the expected target width.
2190 done 2177 done
2191fi 2178fi
2192eval ac_res=\$$3 2179eval ac_res=\$$3
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194$as_echo "$ac_res" >&6; } 2181$as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2182 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196 2183
2197} # ac_fn_c_find_intX_t 2184} # ac_fn_c_find_intX_t
2198 2185
2199# ac_fn_c_find_uintX_t LINENO BITS VAR 2186# ac_fn_c_find_uintX_t LINENO BITS VAR
2200# ------------------------------------ 2187# ------------------------------------
2203ac_fn_c_find_uintX_t () 2190ac_fn_c_find_uintX_t ()
2204{ 2191{
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2207$as_echo_n "checking for uint$2_t... " >&6; } 2194$as_echo_n "checking for uint$2_t... " >&6; }
2208if eval \${$3+:} false; then : 2195if eval "test \"\${$3+set}\"" = set; then :
2209 $as_echo_n "(cached) " >&6 2196 $as_echo_n "(cached) " >&6
2210else 2197else
2211 eval "$3=no" 2198 eval "$3=no"
2212 # Order is important - never check a type that is potentially smaller 2199 # Order is important - never check a type that is potentially smaller
2213 # than half of the expected target width. 2200 # than half of the expected target width.
2243 done 2230 done
2244fi 2231fi
2245eval ac_res=\$$3 2232eval ac_res=\$$3
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247$as_echo "$ac_res" >&6; } 2234$as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2235 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249 2236
2250} # ac_fn_c_find_uintX_t 2237} # ac_fn_c_find_uintX_t
2251 2238
2252# ac_fn_cxx_try_run LINENO 2239# ac_fn_cxx_try_run LINENO
2253# ------------------------ 2240# ------------------------
2284sed 's/^/| /' conftest.$ac_ext >&5 2271sed 's/^/| /' conftest.$ac_ext >&5
2285 2272
2286 ac_retval=$ac_status 2273 ac_retval=$ac_status
2287fi 2274fi
2288 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2275 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2276 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2290 as_fn_set_status $ac_retval 2277 as_fn_set_status $ac_retval
2291 2278
2292} # ac_fn_cxx_try_run 2279} # ac_fn_cxx_try_run
2293cat >config.log <<_ACEOF 2280cat >config.log <<_ACEOF
2294This file contains any messages produced by compilers while 2281This file contains any messages produced by compilers while
2295running configure, to aid debugging if configure makes a mistake. 2282running configure, to aid debugging if configure makes a mistake.
2296 2283
2297It was created by $as_me, which was 2284It was created by $as_me, which was
2298generated by GNU Autoconf 2.68. Invocation command line was 2285generated by GNU Autoconf 2.67. Invocation command line was
2299 2286
2300 $ $0 $@ 2287 $ $0 $@
2301 2288
2302_ACEOF 2289_ACEOF
2303exec 5>>config.log 2290exec 5>>config.log
2551 sed 's/^/| /' "$ac_site_file" >&5 2538 sed 's/^/| /' "$ac_site_file" >&5
2552 . "$ac_site_file" \ 2539 . "$ac_site_file" \
2553 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2540 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555as_fn_error $? "failed to load site script $ac_site_file 2542as_fn_error $? "failed to load site script $ac_site_file
2556See \`config.log' for more details" "$LINENO" 5; } 2543See \`config.log' for more details" "$LINENO" 5 ; }
2557 fi 2544 fi
2558done 2545done
2559 2546
2560if test -r "$cache_file"; then 2547if test -r "$cache_file"; then
2561 # Some versions of bash will fail to source /dev/null (special files 2548 # Some versions of bash will fail to source /dev/null (special files
2680$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2667$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2681 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2668 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2682 2669
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2684$as_echo_n "checking build system type... " >&6; } 2671$as_echo_n "checking build system type... " >&6; }
2685if ${ac_cv_build+:} false; then : 2672if test "${ac_cv_build+set}" = set; then :
2686 $as_echo_n "(cached) " >&6 2673 $as_echo_n "(cached) " >&6
2687else 2674else
2688 ac_build_alias=$build_alias 2675 ac_build_alias=$build_alias
2689test "x$ac_build_alias" = x && 2676test "x$ac_build_alias" = x &&
2690 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2677 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2696fi 2683fi
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2698$as_echo "$ac_cv_build" >&6; } 2685$as_echo "$ac_cv_build" >&6; }
2699case $ac_cv_build in 2686case $ac_cv_build in
2700*-*-*) ;; 2687*-*-*) ;;
2701*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2688*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2702esac 2689esac
2703build=$ac_cv_build 2690build=$ac_cv_build
2704ac_save_IFS=$IFS; IFS='-' 2691ac_save_IFS=$IFS; IFS='-'
2705set x $ac_cv_build 2692set x $ac_cv_build
2706shift 2693shift
2714case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2701case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2715 2702
2716 2703
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2718$as_echo_n "checking host system type... " >&6; } 2705$as_echo_n "checking host system type... " >&6; }
2719if ${ac_cv_host+:} false; then : 2706if test "${ac_cv_host+set}" = set; then :
2720 $as_echo_n "(cached) " >&6 2707 $as_echo_n "(cached) " >&6
2721else 2708else
2722 if test "x$host_alias" = x; then 2709 if test "x$host_alias" = x; then
2723 ac_cv_host=$ac_cv_build 2710 ac_cv_host=$ac_cv_build
2724else 2711else
2729fi 2716fi
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2731$as_echo "$ac_cv_host" >&6; } 2718$as_echo "$ac_cv_host" >&6; }
2732case $ac_cv_host in 2719case $ac_cv_host in
2733*-*-*) ;; 2720*-*-*) ;;
2734*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2721*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2735esac 2722esac
2736host=$ac_cv_host 2723host=$ac_cv_host
2737ac_save_IFS=$IFS; IFS='-' 2724ac_save_IFS=$IFS; IFS='-'
2738set x $ac_cv_host 2725set x $ac_cv_host
2739shift 2726shift
2765if test -n "$ac_tool_prefix"; then 2752if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2753 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2767set dummy ${ac_tool_prefix}gcc; ac_word=$2 2754set dummy ${ac_tool_prefix}gcc; ac_word=$2
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769$as_echo_n "checking for $ac_word... " >&6; } 2756$as_echo_n "checking for $ac_word... " >&6; }
2770if ${ac_cv_prog_CC+:} false; then : 2757if test "${ac_cv_prog_CC+set}" = set; then :
2771 $as_echo_n "(cached) " >&6 2758 $as_echo_n "(cached) " >&6
2772else 2759else
2773 if test -n "$CC"; then 2760 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test. 2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2775else 2762else
2805 ac_ct_CC=$CC 2792 ac_ct_CC=$CC
2806 # Extract the first word of "gcc", so it can be a program name with args. 2793 # Extract the first word of "gcc", so it can be a program name with args.
2807set dummy gcc; ac_word=$2 2794set dummy gcc; ac_word=$2
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809$as_echo_n "checking for $ac_word... " >&6; } 2796$as_echo_n "checking for $ac_word... " >&6; }
2810if ${ac_cv_prog_ac_ct_CC+:} false; then : 2797if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2811 $as_echo_n "(cached) " >&6 2798 $as_echo_n "(cached) " >&6
2812else 2799else
2813 if test -n "$ac_ct_CC"; then 2800 if test -n "$ac_ct_CC"; then
2814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815else 2802else
2858 if test -n "$ac_tool_prefix"; then 2845 if test -n "$ac_tool_prefix"; then
2859 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2860set dummy ${ac_tool_prefix}cc; ac_word=$2 2847set dummy ${ac_tool_prefix}cc; ac_word=$2
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862$as_echo_n "checking for $ac_word... " >&6; } 2849$as_echo_n "checking for $ac_word... " >&6; }
2863if ${ac_cv_prog_CC+:} false; then : 2850if test "${ac_cv_prog_CC+set}" = set; then :
2864 $as_echo_n "(cached) " >&6 2851 $as_echo_n "(cached) " >&6
2865else 2852else
2866 if test -n "$CC"; then 2853 if test -n "$CC"; then
2867 ac_cv_prog_CC="$CC" # Let the user override the test. 2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2868else 2855else
2898if test -z "$CC"; then 2885if test -z "$CC"; then
2899 # Extract the first word of "cc", so it can be a program name with args. 2886 # Extract the first word of "cc", so it can be a program name with args.
2900set dummy cc; ac_word=$2 2887set dummy cc; ac_word=$2
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902$as_echo_n "checking for $ac_word... " >&6; } 2889$as_echo_n "checking for $ac_word... " >&6; }
2903if ${ac_cv_prog_CC+:} false; then : 2890if test "${ac_cv_prog_CC+set}" = set; then :
2904 $as_echo_n "(cached) " >&6 2891 $as_echo_n "(cached) " >&6
2905else 2892else
2906 if test -n "$CC"; then 2893 if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test. 2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2908else 2895else
2957 do 2944 do
2958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2959set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2946set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961$as_echo_n "checking for $ac_word... " >&6; } 2948$as_echo_n "checking for $ac_word... " >&6; }
2962if ${ac_cv_prog_CC+:} false; then : 2949if test "${ac_cv_prog_CC+set}" = set; then :
2963 $as_echo_n "(cached) " >&6 2950 $as_echo_n "(cached) " >&6
2964else 2951else
2965 if test -n "$CC"; then 2952 if test -n "$CC"; then
2966 ac_cv_prog_CC="$CC" # Let the user override the test. 2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2967else 2954else
3001do 2988do
3002 # Extract the first word of "$ac_prog", so it can be a program name with args. 2989 # Extract the first word of "$ac_prog", so it can be a program name with args.
3003set dummy $ac_prog; ac_word=$2 2990set dummy $ac_prog; ac_word=$2
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005$as_echo_n "checking for $ac_word... " >&6; } 2992$as_echo_n "checking for $ac_word... " >&6; }
3006if ${ac_cv_prog_ac_ct_CC+:} false; then : 2993if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3007 $as_echo_n "(cached) " >&6 2994 $as_echo_n "(cached) " >&6
3008else 2995else
3009 if test -n "$ac_ct_CC"; then 2996 if test -n "$ac_ct_CC"; then
3010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011else 2998else
3056 3043
3057 3044
3058test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3045test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060as_fn_error $? "no acceptable C compiler found in \$PATH 3047as_fn_error $? "no acceptable C compiler found in \$PATH
3061See \`config.log' for more details" "$LINENO" 5; } 3048See \`config.log' for more details" "$LINENO" 5 ; }
3062 3049
3063# Provide some information about the compiler. 3050# Provide some information about the compiler.
3064$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3051$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3065set X $ac_compile 3052set X $ac_compile
3066ac_compiler=$2 3053ac_compiler=$2
3171sed 's/^/| /' conftest.$ac_ext >&5 3158sed 's/^/| /' conftest.$ac_ext >&5
3172 3159
3173{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3160{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175as_fn_error 77 "C compiler cannot create executables 3162as_fn_error 77 "C compiler cannot create executables
3176See \`config.log' for more details" "$LINENO" 5; } 3163See \`config.log' for more details" "$LINENO" 5 ; }
3177else 3164else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179$as_echo "yes" >&6; } 3166$as_echo "yes" >&6; }
3180fi 3167fi
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3214done 3201done
3215else 3202else
3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3205as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3219See \`config.log' for more details" "$LINENO" 5; } 3206See \`config.log' for more details" "$LINENO" 5 ; }
3220fi 3207fi
3221rm -f conftest conftest$ac_cv_exeext 3208rm -f conftest conftest$ac_cv_exeext
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3223$as_echo "$ac_cv_exeext" >&6; } 3210$as_echo "$ac_cv_exeext" >&6; }
3224 3211
3273 else 3260 else
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276as_fn_error $? "cannot run C compiled programs. 3263as_fn_error $? "cannot run C compiled programs.
3277If you meant to cross compile, use \`--host'. 3264If you meant to cross compile, use \`--host'.
3278See \`config.log' for more details" "$LINENO" 5; } 3265See \`config.log' for more details" "$LINENO" 5 ; }
3279 fi 3266 fi
3280 fi 3267 fi
3281fi 3268fi
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3283$as_echo "$cross_compiling" >&6; } 3270$as_echo "$cross_compiling" >&6; }
3284 3271
3285rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3272rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3286ac_clean_files=$ac_clean_files_save 3273ac_clean_files=$ac_clean_files_save
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3288$as_echo_n "checking for suffix of object files... " >&6; } 3275$as_echo_n "checking for suffix of object files... " >&6; }
3289if ${ac_cv_objext+:} false; then : 3276if test "${ac_cv_objext+set}" = set; then :
3290 $as_echo_n "(cached) " >&6 3277 $as_echo_n "(cached) " >&6
3291else 3278else
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h. */ 3280/* end confdefs.h. */
3294 3281
3325sed 's/^/| /' conftest.$ac_ext >&5 3312sed 's/^/| /' conftest.$ac_ext >&5
3326 3313
3327{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3314{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329as_fn_error $? "cannot compute suffix of object files: cannot compile 3316as_fn_error $? "cannot compute suffix of object files: cannot compile
3330See \`config.log' for more details" "$LINENO" 5; } 3317See \`config.log' for more details" "$LINENO" 5 ; }
3331fi 3318fi
3332rm -f conftest.$ac_cv_objext conftest.$ac_ext 3319rm -f conftest.$ac_cv_objext conftest.$ac_ext
3333fi 3320fi
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3335$as_echo "$ac_cv_objext" >&6; } 3322$as_echo "$ac_cv_objext" >&6; }
3336OBJEXT=$ac_cv_objext 3323OBJEXT=$ac_cv_objext
3337ac_objext=$OBJEXT 3324ac_objext=$OBJEXT
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3339$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3326$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3340if ${ac_cv_c_compiler_gnu+:} false; then : 3327if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3341 $as_echo_n "(cached) " >&6 3328 $as_echo_n "(cached) " >&6
3342else 3329else
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344/* end confdefs.h. */ 3331/* end confdefs.h. */
3345 3332
3372fi 3359fi
3373ac_test_CFLAGS=${CFLAGS+set} 3360ac_test_CFLAGS=${CFLAGS+set}
3374ac_save_CFLAGS=$CFLAGS 3361ac_save_CFLAGS=$CFLAGS
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3376$as_echo_n "checking whether $CC accepts -g... " >&6; } 3363$as_echo_n "checking whether $CC accepts -g... " >&6; }
3377if ${ac_cv_prog_cc_g+:} false; then : 3364if test "${ac_cv_prog_cc_g+set}" = set; then :
3378 $as_echo_n "(cached) " >&6 3365 $as_echo_n "(cached) " >&6
3379else 3366else
3380 ac_save_c_werror_flag=$ac_c_werror_flag 3367 ac_save_c_werror_flag=$ac_c_werror_flag
3381 ac_c_werror_flag=yes 3368 ac_c_werror_flag=yes
3382 ac_cv_prog_cc_g=no 3369 ac_cv_prog_cc_g=no
3450 CFLAGS= 3437 CFLAGS=
3451 fi 3438 fi
3452fi 3439fi
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3454$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3441$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3455if ${ac_cv_prog_cc_c89+:} false; then : 3442if test "${ac_cv_prog_cc_c89+set}" = set; then :
3456 $as_echo_n "(cached) " >&6 3443 $as_echo_n "(cached) " >&6
3457else 3444else
3458 ac_cv_prog_cc_c89=no 3445 ac_cv_prog_cc_c89=no
3459ac_save_CC=$CC 3446ac_save_CC=$CC
3460cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 do 3548 do
3562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3563set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3550set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565$as_echo_n "checking for $ac_word... " >&6; } 3552$as_echo_n "checking for $ac_word... " >&6; }
3566if ${ac_cv_prog_CXX+:} false; then : 3553if test "${ac_cv_prog_CXX+set}" = set; then :
3567 $as_echo_n "(cached) " >&6 3554 $as_echo_n "(cached) " >&6
3568else 3555else
3569 if test -n "$CXX"; then 3556 if test -n "$CXX"; then
3570 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3557 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3571else 3558else
3605do 3592do
3606 # Extract the first word of "$ac_prog", so it can be a program name with args. 3593 # Extract the first word of "$ac_prog", so it can be a program name with args.
3607set dummy $ac_prog; ac_word=$2 3594set dummy $ac_prog; ac_word=$2
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609$as_echo_n "checking for $ac_word... " >&6; } 3596$as_echo_n "checking for $ac_word... " >&6; }
3610if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3597if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3611 $as_echo_n "(cached) " >&6 3598 $as_echo_n "(cached) " >&6
3612else 3599else
3613 if test -n "$ac_ct_CXX"; then 3600 if test -n "$ac_ct_CXX"; then
3614 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3601 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3615else 3602else
3683 test $ac_status = 0; } 3670 test $ac_status = 0; }
3684done 3671done
3685 3672
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3687$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3674$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3688if ${ac_cv_cxx_compiler_gnu+:} false; then : 3675if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3689 $as_echo_n "(cached) " >&6 3676 $as_echo_n "(cached) " >&6
3690else 3677else
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692/* end confdefs.h. */ 3679/* end confdefs.h. */
3693 3680
3720fi 3707fi
3721ac_test_CXXFLAGS=${CXXFLAGS+set} 3708ac_test_CXXFLAGS=${CXXFLAGS+set}
3722ac_save_CXXFLAGS=$CXXFLAGS 3709ac_save_CXXFLAGS=$CXXFLAGS
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3724$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3711$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3725if ${ac_cv_prog_cxx_g+:} false; then : 3712if test "${ac_cv_prog_cxx_g+set}" = set; then :
3726 $as_echo_n "(cached) " >&6 3713 $as_echo_n "(cached) " >&6
3727else 3714else
3728 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3715 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3729 ac_cxx_werror_flag=yes 3716 ac_cxx_werror_flag=yes
3730 ac_cv_prog_cxx_g=no 3717 ac_cv_prog_cxx_g=no
3796 CXXFLAGS="-O2" 3783 CXXFLAGS="-O2"
3797 else 3784 else
3798 CXXFLAGS= 3785 CXXFLAGS=
3799 fi 3786 fi
3800fi 3787fi
3801ac_ext=c
3802ac_cpp='$CPP $CPPFLAGS'
3803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806
3807ac_ext=c
3808ac_cpp='$CPP $CPPFLAGS'
3809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3813$as_echo_n "checking how to run the C preprocessor... " >&6; }
3814# On Suns, sometimes $CPP names a directory.
3815if test -n "$CPP" && test -d "$CPP"; then
3816 CPP=
3817fi
3818if test -z "$CPP"; then
3819 if ${ac_cv_prog_CPP+:} false; then :
3820 $as_echo_n "(cached) " >&6
3821else
3822 # Double quotes because CPP needs to be expanded
3823 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3824 do
3825 ac_preproc_ok=false
3826for ac_c_preproc_warn_flag in '' yes
3827do
3828 # Use a header file that comes with gcc, so configuring glibc
3829 # with a fresh cross-compiler works.
3830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3831 # <limits.h> exists even on freestanding compilers.
3832 # On the NeXT, cc -E runs the code through the compiler's parser,
3833 # not just through cpp. "Syntax error" is here to catch this case.
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h. */
3836#ifdef __STDC__
3837# include <limits.h>
3838#else
3839# include <assert.h>
3840#endif
3841 Syntax error
3842_ACEOF
3843if ac_fn_c_try_cpp "$LINENO"; then :
3844
3845else
3846 # Broken: fails on valid input.
3847continue
3848fi
3849rm -f conftest.err conftest.i conftest.$ac_ext
3850
3851 # OK, works on sane cases. Now check whether nonexistent headers
3852 # can be detected and how.
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854/* end confdefs.h. */
3855#include <ac_nonexistent.h>
3856_ACEOF
3857if ac_fn_c_try_cpp "$LINENO"; then :
3858 # Broken: success on invalid input.
3859continue
3860else
3861 # Passes both tests.
3862ac_preproc_ok=:
3863break
3864fi
3865rm -f conftest.err conftest.i conftest.$ac_ext
3866
3867done
3868# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3869rm -f conftest.i conftest.err conftest.$ac_ext
3870if $ac_preproc_ok; then :
3871 break
3872fi
3873
3874 done
3875 ac_cv_prog_CPP=$CPP
3876
3877fi
3878 CPP=$ac_cv_prog_CPP
3879else
3880 ac_cv_prog_CPP=$CPP
3881fi
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3883$as_echo "$CPP" >&6; }
3884ac_preproc_ok=false
3885for ac_c_preproc_warn_flag in '' yes
3886do
3887 # Use a header file that comes with gcc, so configuring glibc
3888 # with a fresh cross-compiler works.
3889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3890 # <limits.h> exists even on freestanding compilers.
3891 # On the NeXT, cc -E runs the code through the compiler's parser,
3892 # not just through cpp. "Syntax error" is here to catch this case.
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894/* end confdefs.h. */
3895#ifdef __STDC__
3896# include <limits.h>
3897#else
3898# include <assert.h>
3899#endif
3900 Syntax error
3901_ACEOF
3902if ac_fn_c_try_cpp "$LINENO"; then :
3903
3904else
3905 # Broken: fails on valid input.
3906continue
3907fi
3908rm -f conftest.err conftest.i conftest.$ac_ext
3909
3910 # OK, works on sane cases. Now check whether nonexistent headers
3911 # can be detected and how.
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h. */
3914#include <ac_nonexistent.h>
3915_ACEOF
3916if ac_fn_c_try_cpp "$LINENO"; then :
3917 # Broken: success on invalid input.
3918continue
3919else
3920 # Passes both tests.
3921ac_preproc_ok=:
3922break
3923fi
3924rm -f conftest.err conftest.i conftest.$ac_ext
3925
3926done
3927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3928rm -f conftest.i conftest.err conftest.$ac_ext
3929if $ac_preproc_ok; then :
3930
3931else
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3935See \`config.log' for more details" "$LINENO" 5; }
3936fi
3937
3938ac_ext=c 3788ac_ext=c
3939ac_cpp='$CPP $CPPFLAGS' 3789ac_cpp='$CPP $CPPFLAGS'
3940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941ac_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'
3942ac_compiler_gnu=$ac_cv_c_compiler_gnu 3792ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956# ./install, which can be erroneously created by make from ./install.sh. 3806# ./install, which can be erroneously created by make from ./install.sh.
3957# Reject install programs that cannot install multiple files. 3807# Reject install programs that cannot install multiple files.
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3959$as_echo_n "checking for a BSD-compatible install... " >&6; } 3809$as_echo_n "checking for a BSD-compatible install... " >&6; }
3960if test -z "$INSTALL"; then 3810if test -z "$INSTALL"; then
3961if ${ac_cv_path_install+:} false; then : 3811if test "${ac_cv_path_install+set}" = set; then :
3962 $as_echo_n "(cached) " >&6 3812 $as_echo_n "(cached) " >&6
3963else 3813else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH 3815for as_dir in $PATH
3966do 3816do
4034 3884
4035test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3885test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4036 3886
4037 3887
4038 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
4039 4026
4040{ $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
4041$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; }
4042if ${ac_cv_path_GREP+:} false; then : 4029if test "${ac_cv_path_GREP+set}" = set; then :
4043 $as_echo_n "(cached) " >&6 4030 $as_echo_n "(cached) " >&6
4044else 4031else
4045 if test -z "$GREP"; then 4032 if test -z "$GREP"; then
4046 ac_path_GREP_found=false 4033 ac_path_GREP_found=false
4047 # Loop through the user's path and test for each of PROGNAME-LIST 4034 # Loop through the user's path and test for each of PROGNAME-LIST
4100 GREP="$ac_cv_path_GREP" 4087 GREP="$ac_cv_path_GREP"
4101 4088
4102 4089
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4104$as_echo_n "checking for egrep... " >&6; } 4091$as_echo_n "checking for egrep... " >&6; }
4105if ${ac_cv_path_EGREP+:} false; then : 4092if test "${ac_cv_path_EGREP+set}" = set; then :
4106 $as_echo_n "(cached) " >&6 4093 $as_echo_n "(cached) " >&6
4107else 4094else
4108 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4095 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4109 then ac_cv_path_EGREP="$GREP -E" 4096 then ac_cv_path_EGREP="$GREP -E"
4110 else 4097 else
4167 EGREP="$ac_cv_path_EGREP" 4154 EGREP="$ac_cv_path_EGREP"
4168 4155
4169 4156
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4171$as_echo_n "checking for ANSI C header files... " >&6; } 4158$as_echo_n "checking for ANSI C header files... " >&6; }
4172if ${ac_cv_header_stdc+:} false; then : 4159if test "${ac_cv_header_stdc+set}" = set; then :
4173 $as_echo_n "(cached) " >&6 4160 $as_echo_n "(cached) " >&6
4174else 4161else
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176/* end confdefs.h. */ 4163/* end confdefs.h. */
4177#include <stdlib.h> 4164#include <stdlib.h>
4296done 4283done
4297 4284
4298 4285
4299 4286
4300 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4287 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4301if test "x$ac_cv_header_minix_config_h" = xyes; then : 4288if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4302 MINIX=yes 4289 MINIX=yes
4303else 4290else
4304 MINIX= 4291 MINIX=
4305fi 4292fi
4306 4293
4318 fi 4305 fi
4319 4306
4320 4307
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4322$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4309$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4323if ${ac_cv_safe_to_define___extensions__+:} false; then : 4310if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4324 $as_echo_n "(cached) " >&6 4311 $as_echo_n "(cached) " >&6
4325else 4312else
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327/* end confdefs.h. */ 4314/* end confdefs.h. */
4328 4315
4359 4346
4360 4347
4361 4348
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4363$as_echo_n "checking for library containing strerror... " >&6; } 4350$as_echo_n "checking for library containing strerror... " >&6; }
4364if ${ac_cv_search_strerror+:} false; then : 4351if test "${ac_cv_search_strerror+set}" = set; then :
4365 $as_echo_n "(cached) " >&6 4352 $as_echo_n "(cached) " >&6
4366else 4353else
4367 ac_func_search_save_LIBS=$LIBS 4354 ac_func_search_save_LIBS=$LIBS
4368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369/* end confdefs.h. */ 4356/* end confdefs.h. */
4393 if ac_fn_c_try_link "$LINENO"; then : 4380 if ac_fn_c_try_link "$LINENO"; then :
4394 ac_cv_search_strerror=$ac_res 4381 ac_cv_search_strerror=$ac_res
4395fi 4382fi
4396rm -f core conftest.err conftest.$ac_objext \ 4383rm -f core conftest.err conftest.$ac_objext \
4397 conftest$ac_exeext 4384 conftest$ac_exeext
4398 if ${ac_cv_search_strerror+:} false; then : 4385 if test "${ac_cv_search_strerror+set}" = set; then :
4399 break 4386 break
4400fi 4387fi
4401done 4388done
4402if ${ac_cv_search_strerror+:} false; then : 4389if test "${ac_cv_search_strerror+set}" = set; then :
4403 4390
4404else 4391else
4405 ac_cv_search_strerror=no 4392 ac_cv_search_strerror=no
4406fi 4393fi
4407rm conftest.$ac_ext 4394rm conftest.$ac_ext
4487 CFLAGS="$CXXFLAGS" 4474 CFLAGS="$CXXFLAGS"
4488fi 4475fi
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 ${ac_cv_search_setlocale+:} false; then : 4479if test "${ac_cv_search_setlocale+set}" = set; then :
4493 $as_echo_n "(cached) " >&6 4480 $as_echo_n "(cached) " >&6
4494else 4481else
4495 ac_func_search_save_LIBS=$LIBS 4482 ac_func_search_save_LIBS=$LIBS
4496cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497/* end confdefs.h. */ 4484/* end confdefs.h. */
4521 if ac_fn_cxx_try_link "$LINENO"; then : 4508 if ac_fn_cxx_try_link "$LINENO"; then :
4522 ac_cv_search_setlocale=$ac_res 4509 ac_cv_search_setlocale=$ac_res
4523fi 4510fi
4524rm -f core conftest.err conftest.$ac_objext \ 4511rm -f core conftest.err conftest.$ac_objext \
4525 conftest$ac_exeext 4512 conftest$ac_exeext
4526 if ${ac_cv_search_setlocale+:} false; then : 4513 if test "${ac_cv_search_setlocale+set}" = set; then :
4527 break 4514 break
4528fi 4515fi
4529done 4516done
4530if ${ac_cv_search_setlocale+:} false; then : 4517if test "${ac_cv_search_setlocale+set}" = set; then :
4531 4518
4532else 4519else
4533 ac_cv_search_setlocale=no 4520 ac_cv_search_setlocale=no
4534fi 4521fi
4535rm conftest.$ac_ext 4522rm conftest.$ac_ext
4544fi 4531fi
4545 4532
4546 4533
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4548$as_echo_n "checking for library containing gethostbyname... " >&6; } 4535$as_echo_n "checking for library containing gethostbyname... " >&6; }
4549if ${ac_cv_search_gethostbyname+:} false; then : 4536if test "${ac_cv_search_gethostbyname+set}" = set; then :
4550 $as_echo_n "(cached) " >&6 4537 $as_echo_n "(cached) " >&6
4551else 4538else
4552 ac_func_search_save_LIBS=$LIBS 4539 ac_func_search_save_LIBS=$LIBS
4553cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554/* end confdefs.h. */ 4541/* end confdefs.h. */
4578 if ac_fn_cxx_try_link "$LINENO"; then : 4565 if ac_fn_cxx_try_link "$LINENO"; then :
4579 ac_cv_search_gethostbyname=$ac_res 4566 ac_cv_search_gethostbyname=$ac_res
4580fi 4567fi
4581rm -f core conftest.err conftest.$ac_objext \ 4568rm -f core conftest.err conftest.$ac_objext \
4582 conftest$ac_exeext 4569 conftest$ac_exeext
4583 if ${ac_cv_search_gethostbyname+:} false; then : 4570 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4584 break 4571 break
4585fi 4572fi
4586done 4573done
4587if ${ac_cv_search_gethostbyname+:} false; then : 4574if test "${ac_cv_search_gethostbyname+set}" = set; then :
4588 4575
4589else 4576else
4590 ac_cv_search_gethostbyname=no 4577 ac_cv_search_gethostbyname=no
4591fi 4578fi
4592rm conftest.$ac_ext 4579rm conftest.$ac_ext
4600 4587
4601fi 4588fi
4602 4589
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4604$as_echo_n "checking for library containing socket... " >&6; } 4591$as_echo_n "checking for library containing socket... " >&6; }
4605if ${ac_cv_search_socket+:} false; then : 4592if test "${ac_cv_search_socket+set}" = set; then :
4606 $as_echo_n "(cached) " >&6 4593 $as_echo_n "(cached) " >&6
4607else 4594else
4608 ac_func_search_save_LIBS=$LIBS 4595 ac_func_search_save_LIBS=$LIBS
4609cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610/* end confdefs.h. */ 4597/* end confdefs.h. */
4634 if ac_fn_cxx_try_link "$LINENO"; then : 4621 if ac_fn_cxx_try_link "$LINENO"; then :
4635 ac_cv_search_socket=$ac_res 4622 ac_cv_search_socket=$ac_res
4636fi 4623fi
4637rm -f core conftest.err conftest.$ac_objext \ 4624rm -f core conftest.err conftest.$ac_objext \
4638 conftest$ac_exeext 4625 conftest$ac_exeext
4639 if ${ac_cv_search_socket+:} false; then : 4626 if test "${ac_cv_search_socket+set}" = set; then :
4640 break 4627 break
4641fi 4628fi
4642done 4629done
4643if ${ac_cv_search_socket+:} false; then : 4630if test "${ac_cv_search_socket+set}" = set; then :
4644 4631
4645else 4632else
4646 ac_cv_search_socket=no 4633 ac_cv_search_socket=no
4647fi 4634fi
4648rm conftest.$ac_ext 4635rm conftest.$ac_ext
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
5152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 5136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5155$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5137$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5156if test -z "$CXXCPP"; then 5138if test -z "$CXXCPP"; then
5157 if ${ac_cv_prog_CXXCPP+:} false; then : 5139 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5158 $as_echo_n "(cached) " >&6 5140 $as_echo_n "(cached) " >&6
5159else 5141else
5160 # Double quotes because CXXCPP needs to be expanded 5142 # Double quotes because CXXCPP needs to be expanded
5161 for CXXCPP in "$CXX -E" "/lib/cpp" 5143 for CXXCPP in "$CXX -E" "/lib/cpp"
5162 do 5144 do
5268 5250
5269else 5251else
5270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5272as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 5254as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5273See \`config.log' for more details" "$LINENO" 5; } 5255See \`config.log' for more details" "$LINENO" 5 ; }
5274fi 5256fi
5275 5257
5276ac_ext=cpp 5258ac_ext=cpp
5277ac_cpp='$CXXCPP $CPPFLAGS' 5259ac_cpp='$CXXCPP $CPPFLAGS'
5278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5260ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5308 5290
5309 5291
5310for ac_func in clock_gettime 5292for ac_func in clock_gettime
5311do : 5293do :
5312 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 5294 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5313if test "x$ac_cv_func_clock_gettime" = xyes; then : 5295if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5314 cat >>confdefs.h <<_ACEOF 5296 cat >>confdefs.h <<_ACEOF
5315#define HAVE_CLOCK_GETTIME 1 5297#define HAVE_CLOCK_GETTIME 1
5316_ACEOF 5298_ACEOF
5317 5299
5318else 5300else
5348 conftest$ac_exeext conftest.$ac_ext 5330 conftest$ac_exeext conftest.$ac_ext
5349 fi 5331 fi
5350 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then 5332 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5352$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 5334$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
5353if ${ac_cv_lib_rt_clock_gettime+:} false; then : 5335if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
5354 $as_echo_n "(cached) " >&6 5336 $as_echo_n "(cached) " >&6
5355else 5337else
5356 ac_check_lib_save_LIBS=$LIBS 5338 ac_check_lib_save_LIBS=$LIBS
5357LIBS="-lrt $LIBS" 5339LIBS="-lrt $LIBS"
5358cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 conftest$ac_exeext conftest.$ac_ext 5364 conftest$ac_exeext conftest.$ac_ext
5383LIBS=$ac_check_lib_save_LIBS 5365LIBS=$ac_check_lib_save_LIBS
5384fi 5366fi
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5386$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 5368$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
5387if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 5369if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
5388 cat >>confdefs.h <<_ACEOF 5370 cat >>confdefs.h <<_ACEOF
5389#define HAVE_LIBRT 1 5371#define HAVE_LIBRT 1
5390_ACEOF 5372_ACEOF
5391 5373
5392 LIBS="-lrt $LIBS" 5374 LIBS="-lrt $LIBS"
5395 5377
5396 unset ac_cv_func_clock_gettime 5378 unset ac_cv_func_clock_gettime
5397 for ac_func in clock_gettime 5379 for ac_func in clock_gettime
5398do : 5380do :
5399 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 5381 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5400if test "x$ac_cv_func_clock_gettime" = xyes; then : 5382if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5401 cat >>confdefs.h <<_ACEOF 5383 cat >>confdefs.h <<_ACEOF
5402#define HAVE_CLOCK_GETTIME 1 5384#define HAVE_CLOCK_GETTIME 1
5403_ACEOF 5385_ACEOF
5404 5386
5405fi 5387fi
5412 5394
5413 5395
5414for ac_func in nanosleep 5396for ac_func in nanosleep
5415do : 5397do :
5416 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 5398 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5417if test "x$ac_cv_func_nanosleep" = xyes; then : 5399if test "x$ac_cv_func_nanosleep" = x""yes; then :
5418 cat >>confdefs.h <<_ACEOF 5400 cat >>confdefs.h <<_ACEOF
5419#define HAVE_NANOSLEEP 1 5401#define HAVE_NANOSLEEP 1
5420_ACEOF 5402_ACEOF
5421 5403
5422else 5404else
5423 5405
5424 if test -z "$LIBEV_M4_AVOID_LIBRT"; then 5406 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5426$as_echo_n "checking for nanosleep in -lrt... " >&6; } 5408$as_echo_n "checking for nanosleep in -lrt... " >&6; }
5427if ${ac_cv_lib_rt_nanosleep+:} false; then : 5409if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
5428 $as_echo_n "(cached) " >&6 5410 $as_echo_n "(cached) " >&6
5429else 5411else
5430 ac_check_lib_save_LIBS=$LIBS 5412 ac_check_lib_save_LIBS=$LIBS
5431LIBS="-lrt $LIBS" 5413LIBS="-lrt $LIBS"
5432cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 conftest$ac_exeext conftest.$ac_ext 5438 conftest$ac_exeext conftest.$ac_ext
5457LIBS=$ac_check_lib_save_LIBS 5439LIBS=$ac_check_lib_save_LIBS
5458fi 5440fi
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5460$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } 5442$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
5461if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : 5443if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
5462 cat >>confdefs.h <<_ACEOF 5444 cat >>confdefs.h <<_ACEOF
5463#define HAVE_LIBRT 1 5445#define HAVE_LIBRT 1
5464_ACEOF 5446_ACEOF
5465 5447
5466 LIBS="-lrt $LIBS" 5448 LIBS="-lrt $LIBS"
5469 5451
5470 unset ac_cv_func_nanosleep 5452 unset ac_cv_func_nanosleep
5471 for ac_func in nanosleep 5453 for ac_func in nanosleep
5472do : 5454do :
5473 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 5455 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5474if test "x$ac_cv_func_nanosleep" = xyes; then : 5456if test "x$ac_cv_func_nanosleep" = x""yes; then :
5475 cat >>confdefs.h <<_ACEOF 5457 cat >>confdefs.h <<_ACEOF
5476#define HAVE_NANOSLEEP 1 5458#define HAVE_NANOSLEEP 1
5477_ACEOF 5459_ACEOF
5478 5460
5479fi 5461fi
5488if test -z "$LIBEV_M4_AVOID_LIBM"; then 5470if test -z "$LIBEV_M4_AVOID_LIBM"; then
5489 LIBM=m 5471 LIBM=m
5490fi 5472fi
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
5492$as_echo_n "checking for library containing floor... " >&6; } 5474$as_echo_n "checking for library containing floor... " >&6; }
5493if ${ac_cv_search_floor+:} false; then : 5475if test "${ac_cv_search_floor+set}" = set; then :
5494 $as_echo_n "(cached) " >&6 5476 $as_echo_n "(cached) " >&6
5495else 5477else
5496 ac_func_search_save_LIBS=$LIBS 5478 ac_func_search_save_LIBS=$LIBS
5497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498/* end confdefs.h. */ 5480/* end confdefs.h. */
5522 if ac_fn_cxx_try_link "$LINENO"; then : 5504 if ac_fn_cxx_try_link "$LINENO"; then :
5523 ac_cv_search_floor=$ac_res 5505 ac_cv_search_floor=$ac_res
5524fi 5506fi
5525rm -f core conftest.err conftest.$ac_objext \ 5507rm -f core conftest.err conftest.$ac_objext \
5526 conftest$ac_exeext 5508 conftest$ac_exeext
5527 if ${ac_cv_search_floor+:} false; then : 5509 if test "${ac_cv_search_floor+set}" = set; then :
5528 break 5510 break
5529fi 5511fi
5530done 5512done
5531if ${ac_cv_search_floor+:} false; then : 5513if test "${ac_cv_search_floor+set}" = set; then :
5532 5514
5533else 5515else
5534 ac_cv_search_floor=no 5516 ac_cv_search_floor=no
5535fi 5517fi
5536rm conftest.$ac_ext 5518rm conftest.$ac_ext
5552 5534
5553# Extract the first word of "tic", so it can be a program name with args. 5535# Extract the first word of "tic", so it can be a program name with args.
5554set dummy tic; ac_word=$2 5536set dummy tic; ac_word=$2
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556$as_echo_n "checking for $ac_word... " >&6; } 5538$as_echo_n "checking for $ac_word... " >&6; }
5557if ${ac_cv_path_TIC+:} false; then : 5539if test "${ac_cv_path_TIC+set}" = set; then :
5558 $as_echo_n "(cached) " >&6 5540 $as_echo_n "(cached) " >&6
5559else 5541else
5560 case $TIC in 5542 case $TIC in
5561 [\\/]* | ?:[\\/]*) 5543 [\\/]* | ?:[\\/]*)
5562 ac_cv_path_TIC="$TIC" # Let the user override the test with a path. 5544 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5605if test "x$with_x" = xno; then 5587if test "x$with_x" = xno; then
5606 # The user explicitly disabled X. 5588 # The user explicitly disabled X.
5607 have_x=disabled 5589 have_x=disabled
5608else 5590else
5609 case $x_includes,$x_libraries in #( 5591 case $x_includes,$x_libraries in #(
5610 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 5592 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
5611 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 5593 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5612 $as_echo_n "(cached) " >&6 5594 $as_echo_n "(cached) " >&6
5613else 5595else
5614 # One or both of the vars are not set, and there is no cached value. 5596 # One or both of the vars are not set, and there is no cached value.
5615ac_x_includes=no ac_x_libraries=no 5597ac_x_includes=no ac_x_libraries=no
5616rm -f -r conftest.dir 5598rm -f -r conftest.dir
5883if ac_fn_cxx_try_link "$LINENO"; then : 5865if ac_fn_cxx_try_link "$LINENO"; then :
5884 5866
5885else 5867else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5887$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 5869$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5888if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 5870if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5889 $as_echo_n "(cached) " >&6 5871 $as_echo_n "(cached) " >&6
5890else 5872else
5891 ac_check_lib_save_LIBS=$LIBS 5873 ac_check_lib_save_LIBS=$LIBS
5892LIBS="-ldnet $LIBS" 5874LIBS="-ldnet $LIBS"
5893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 conftest$ac_exeext conftest.$ac_ext 5899 conftest$ac_exeext conftest.$ac_ext
5918LIBS=$ac_check_lib_save_LIBS 5900LIBS=$ac_check_lib_save_LIBS
5919fi 5901fi
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 5902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5921$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 5903$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5922if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 5904if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5923 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 5905 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5924fi 5906fi
5925 5907
5926 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5908 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5928$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 5910$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5929if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 5911if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5930 $as_echo_n "(cached) " >&6 5912 $as_echo_n "(cached) " >&6
5931else 5913else
5932 ac_check_lib_save_LIBS=$LIBS 5914 ac_check_lib_save_LIBS=$LIBS
5933LIBS="-ldnet_stub $LIBS" 5915LIBS="-ldnet_stub $LIBS"
5934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 conftest$ac_exeext conftest.$ac_ext 5940 conftest$ac_exeext conftest.$ac_ext
5959LIBS=$ac_check_lib_save_LIBS 5941LIBS=$ac_check_lib_save_LIBS
5960fi 5942fi
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 5943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5962$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 5944$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5963if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 5945if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5964 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 5946 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5965fi 5947fi
5966 5948
5967 fi 5949 fi
5968fi 5950fi
5977 # The nsl library prevents programs from opening the X display 5959 # The nsl library prevents programs from opening the X display
5978 # on Irix 5.2, according to T.E. Dickey. 5960 # on Irix 5.2, according to T.E. Dickey.
5979 # The functions gethostbyname, getservbyname, and inet_addr are 5961 # The functions gethostbyname, getservbyname, and inet_addr are
5980 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 5962 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5981 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 5963 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5982if test "x$ac_cv_func_gethostbyname" = xyes; then : 5964if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5983 5965
5984fi 5966fi
5985 5967
5986 if test $ac_cv_func_gethostbyname = no; then 5968 if test $ac_cv_func_gethostbyname = no; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5988$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 5970$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5989if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 5971if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5990 $as_echo_n "(cached) " >&6 5972 $as_echo_n "(cached) " >&6
5991else 5973else
5992 ac_check_lib_save_LIBS=$LIBS 5974 ac_check_lib_save_LIBS=$LIBS
5993LIBS="-lnsl $LIBS" 5975LIBS="-lnsl $LIBS"
5994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 conftest$ac_exeext conftest.$ac_ext 6000 conftest$ac_exeext conftest.$ac_ext
6019LIBS=$ac_check_lib_save_LIBS 6001LIBS=$ac_check_lib_save_LIBS
6020fi 6002fi
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6022$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 6004$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6023if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 6005if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6006 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6025fi 6007fi
6026 6008
6027 if test $ac_cv_lib_nsl_gethostbyname = no; then 6009 if test $ac_cv_lib_nsl_gethostbyname = no; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6029$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 6011$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6030if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 6012if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
6031 $as_echo_n "(cached) " >&6 6013 $as_echo_n "(cached) " >&6
6032else 6014else
6033 ac_check_lib_save_LIBS=$LIBS 6015 ac_check_lib_save_LIBS=$LIBS
6034LIBS="-lbsd $LIBS" 6016LIBS="-lbsd $LIBS"
6035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 conftest$ac_exeext conftest.$ac_ext 6041 conftest$ac_exeext conftest.$ac_ext
6060LIBS=$ac_check_lib_save_LIBS 6042LIBS=$ac_check_lib_save_LIBS
6061fi 6043fi
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6063$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 6045$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6064if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 6046if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
6065 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6047 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6066fi 6048fi
6067 6049
6068 fi 6050 fi
6069 fi 6051 fi
6074 # on later versions), says Simon Leinen: it contains gethostby* 6056 # on later versions), says Simon Leinen: it contains gethostby*
6075 # variants that don't use the name server (or something). -lsocket 6057 # variants that don't use the name server (or something). -lsocket
6076 # must be given before -lnsl if both are needed. We assume that 6058 # must be given before -lnsl if both are needed. We assume that
6077 # if connect needs -lnsl, so does gethostbyname. 6059 # if connect needs -lnsl, so does gethostbyname.
6078 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 6060 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6079if test "x$ac_cv_func_connect" = xyes; then : 6061if test "x$ac_cv_func_connect" = x""yes; then :
6080 6062
6081fi 6063fi
6082 6064
6083 if test $ac_cv_func_connect = no; then 6065 if test $ac_cv_func_connect = no; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6085$as_echo_n "checking for connect in -lsocket... " >&6; } 6067$as_echo_n "checking for connect in -lsocket... " >&6; }
6086if ${ac_cv_lib_socket_connect+:} false; then : 6068if test "${ac_cv_lib_socket_connect+set}" = set; then :
6087 $as_echo_n "(cached) " >&6 6069 $as_echo_n "(cached) " >&6
6088else 6070else
6089 ac_check_lib_save_LIBS=$LIBS 6071 ac_check_lib_save_LIBS=$LIBS
6090LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6072LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6091cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 conftest$ac_exeext conftest.$ac_ext 6097 conftest$ac_exeext conftest.$ac_ext
6116LIBS=$ac_check_lib_save_LIBS 6098LIBS=$ac_check_lib_save_LIBS
6117fi 6099fi
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6119$as_echo "$ac_cv_lib_socket_connect" >&6; } 6101$as_echo "$ac_cv_lib_socket_connect" >&6; }
6120if test "x$ac_cv_lib_socket_connect" = xyes; then : 6102if test "x$ac_cv_lib_socket_connect" = x""yes; then :
6121 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6103 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6122fi 6104fi
6123 6105
6124 fi 6106 fi
6125 6107
6126 # Guillermo Gomez says -lposix is necessary on A/UX. 6108 # Guillermo Gomez says -lposix is necessary on A/UX.
6127 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 6109 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6128if test "x$ac_cv_func_remove" = xyes; then : 6110if test "x$ac_cv_func_remove" = x""yes; then :
6129 6111
6130fi 6112fi
6131 6113
6132 if test $ac_cv_func_remove = no; then 6114 if test $ac_cv_func_remove = no; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6134$as_echo_n "checking for remove in -lposix... " >&6; } 6116$as_echo_n "checking for remove in -lposix... " >&6; }
6135if ${ac_cv_lib_posix_remove+:} false; then : 6117if test "${ac_cv_lib_posix_remove+set}" = set; then :
6136 $as_echo_n "(cached) " >&6 6118 $as_echo_n "(cached) " >&6
6137else 6119else
6138 ac_check_lib_save_LIBS=$LIBS 6120 ac_check_lib_save_LIBS=$LIBS
6139LIBS="-lposix $LIBS" 6121LIBS="-lposix $LIBS"
6140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 conftest$ac_exeext conftest.$ac_ext 6146 conftest$ac_exeext conftest.$ac_ext
6165LIBS=$ac_check_lib_save_LIBS 6147LIBS=$ac_check_lib_save_LIBS
6166fi 6148fi
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 6149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6168$as_echo "$ac_cv_lib_posix_remove" >&6; } 6150$as_echo "$ac_cv_lib_posix_remove" >&6; }
6169if test "x$ac_cv_lib_posix_remove" = xyes; then : 6151if test "x$ac_cv_lib_posix_remove" = x""yes; then :
6170 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 6152 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6171fi 6153fi
6172 6154
6173 fi 6155 fi
6174 6156
6175 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6157 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6176 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 6158 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6177if test "x$ac_cv_func_shmat" = xyes; then : 6159if test "x$ac_cv_func_shmat" = x""yes; then :
6178 6160
6179fi 6161fi
6180 6162
6181 if test $ac_cv_func_shmat = no; then 6163 if test $ac_cv_func_shmat = no; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6183$as_echo_n "checking for shmat in -lipc... " >&6; } 6165$as_echo_n "checking for shmat in -lipc... " >&6; }
6184if ${ac_cv_lib_ipc_shmat+:} false; then : 6166if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
6185 $as_echo_n "(cached) " >&6 6167 $as_echo_n "(cached) " >&6
6186else 6168else
6187 ac_check_lib_save_LIBS=$LIBS 6169 ac_check_lib_save_LIBS=$LIBS
6188LIBS="-lipc $LIBS" 6170LIBS="-lipc $LIBS"
6189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 conftest$ac_exeext conftest.$ac_ext 6195 conftest$ac_exeext conftest.$ac_ext
6214LIBS=$ac_check_lib_save_LIBS 6196LIBS=$ac_check_lib_save_LIBS
6215fi 6197fi
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6217$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 6199$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6218if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 6200if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
6219 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6201 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6220fi 6202fi
6221 6203
6222 fi 6204 fi
6223 fi 6205 fi
6231 # These have to be linked with before -lX11, unlike the other 6213 # These have to be linked with before -lX11, unlike the other
6232 # libraries we check for below, so use a different variable. 6214 # libraries we check for below, so use a different variable.
6233 # John Interrante, Karl Berry 6215 # John Interrante, Karl Berry
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6235$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 6217$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6236if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 6218if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
6237 $as_echo_n "(cached) " >&6 6219 $as_echo_n "(cached) " >&6
6238else 6220else
6239 ac_check_lib_save_LIBS=$LIBS 6221 ac_check_lib_save_LIBS=$LIBS
6240LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6222LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 conftest$ac_exeext conftest.$ac_ext 6247 conftest$ac_exeext conftest.$ac_ext
6266LIBS=$ac_check_lib_save_LIBS 6248LIBS=$ac_check_lib_save_LIBS
6267fi 6249fi
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6269$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 6251$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6270if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 6252if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
6271 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 6253 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6272fi 6254fi
6273 6255
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 ${ac_cv_path_PKG_CONFIG+:} false; then : 6270if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6291 $as_echo_n "(cached) " >&6 6271 $as_echo_n "(cached) " >&6
6292else 6272else
6293 case $PKG_CONFIG in 6273 case $PKG_CONFIG in
6294 [\\/]* | ?:[\\/]*) 6274 [\\/]* | ?:[\\/]*)
6295 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6275 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
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 ${ac_cv_path_PKG_CONFIG+:} false; then : 7386if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6365 $as_echo_n "(cached) " >&6 7387 $as_echo_n "(cached) " >&6
6366else 7388else
6367 case $PKG_CONFIG in 7389 case $PKG_CONFIG in
6368 [\\/]* | ?:[\\/]*) 7390 [\\/]* | ?:[\\/]*)
6369 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7391 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
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 ${ac_cv_path_afterimage_config+:} false; 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 ${rxvt_cv_xlib_illegal_access+:} false; 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" = xyes; 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" = xyes; 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 ${ac_cv_type_uid_t+:} false; 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" = xyes; 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" = xyes; then :
6749 cat >>confdefs.h <<_ACEOF
6750#define HAVE_LASTLOG_H 1
6751_ACEOF
6752
6753fi
6754
6755done
6756
6757
6758case $host in
6759 *-*-solaris*)
6760
6761$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6762
6763 ;;
6764esac
6765
6766
6767for ac_header in utmp.h
6768do :
6769 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6770if test "x$ac_cv_header_utmp_h" = xyes; then :
6771 cat >>confdefs.h <<_ACEOF
6772#define HAVE_UTMP_H 1
6773_ACEOF
6774 ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
6775#include <sys/types.h>
6776#include <utmp.h>
6777
6778"
6779if test "x$ac_cv_type_struct_utmp" = xyes; then :
6780
6781cat >>confdefs.h <<_ACEOF
6782#define HAVE_STRUCT_UTMP 1
6783_ACEOF
6784
6785
6786fi
6787
6788
6789
6790# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
6791# ------------------------------------------------------
6792# Tries to find if the field MEMBER exists in type AGGR, after including
6793# INCLUDES, setting cache variable VAR accordingly.
6794ac_fn_cxx_check_member ()
6795{
6796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
6798$as_echo_n "checking for $2.$3... " >&6; }
6799if eval \${$4+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801else
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803/* end confdefs.h. */
6804$5
6805int
6806main ()
6807{
6808static $2 ac_aggr;
6809if (ac_aggr.$3)
6810return 0;
6811 ;
6812 return 0;
6813}
6814_ACEOF
6815if ac_fn_cxx_try_compile "$LINENO"; then :
6816 eval "$4=yes"
6817else
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819/* end confdefs.h. */
6820$5
6821int
6822main ()
6823{
6824static $2 ac_aggr;
6825if (sizeof ac_aggr.$3)
6826return 0;
6827 ;
6828 return 0;
6829}
6830_ACEOF
6831if ac_fn_cxx_try_compile "$LINENO"; then :
6832 eval "$4=yes"
6833else
6834 eval "$4=no"
6835fi
6836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837fi
6838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839fi
6840eval ac_res=\$$4
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6842$as_echo "$ac_res" >&6; }
6843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6844
6845} # ac_fn_cxx_check_member
6846ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
6847#include <sys/types.h>
6848#include <utmp.h>
6849
6850"
6851if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
6852
6853$as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
6854
6855fi
6856
6857
6858ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
6859#include <sys/types.h>
6860#include <utmp.h>
6861
6862"
6863if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
6864
6865$as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
6866
6867fi
6868
6869
6870fi
6871
6872done
6873
6874
6875for ac_header in utmpx.h
6876do :
6877 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6878if test "x$ac_cv_header_utmpx_h" = xyes; then :
6879 cat >>confdefs.h <<_ACEOF
6880#define HAVE_UTMPX_H 1
6881_ACEOF
6882 ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" "
6883#include <sys/types.h>
6884#include <utmpx.h>
6885
6886"
6887if test "x$ac_cv_type_struct_utmpx" = xyes; then :
6888
6889cat >>confdefs.h <<_ACEOF
6890#define HAVE_STRUCT_UTMPX 1
6891_ACEOF
6892
6893
6894fi
6895
6896
6897ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
6898#include <sys/types.h>
6899#include <utmpx.h>
6900
6901"
6902if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
6903
6904$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
6905
6906fi
6907
6908
6909fi
6910
6911done
6912
6913ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
6914#include <sys/types.h>
6915#include <utmp.h>
6916#ifdef HAVE_LASTLOG_H
6917#include <lastlog.h>
6918#endif
6919
6920"
6921if test "x$ac_cv_type_struct_lastlog" = xyes; then :
6922
6923cat >>confdefs.h <<_ACEOF
6924#define HAVE_STRUCT_LASTLOG 1
6925_ACEOF
6926
6927
6928fi
6929
6930
6931ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" "
6932#include <sys/types.h>
6933#include <utmpx.h>
6934#ifdef HAVE_LASTLOG_H
6935#include <lastlog.h>
6936#endif
6937
6938"
6939if test "x$ac_cv_type_struct_lastlogx" = xyes; then :
6940
6941cat >>confdefs.h <<_ACEOF
6942#define HAVE_STRUCT_LASTLOGX 1
6943_ACEOF
6944
6945
6946fi
6947
6948
6949
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5
6951$as_echo_n "checking for a fallback location of utmp... " >&6; }
6952if ${pt_cv_path_utmp+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954else
6955
6956if test "$cross_compiling" != yes; then
6957 for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do
6958 if test -f "$file"; then
6959 pt_cv_path_utmp=$file
6960 break
6961 fi
6962 done
6963fi
6964fi
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
6966$as_echo "$pt_cv_path_utmp" >&6; }
6967if test x$pt_cv_path_utmp != x; then
6968
6969cat >>confdefs.h <<_ACEOF
6970#define PT_UTMP_FILE "$pt_cv_path_utmp"
6971_ACEOF
6972
6973elif test "$cross_compiling" = yes; then
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5
6975$as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;}
6976fi
6977
6978
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5
6980$as_echo_n "checking for a fallback location of wtmp... " >&6; }
6981if ${pt_cv_path_wtmp+:} false; then :
6982 $as_echo_n "(cached) " >&6
6983else
6984
6985if test "$cross_compiling" != yes; then
6986 for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do
6987 if test -f "$file"; then
6988 pt_cv_path_wtmp=$file
6989 break
6990 fi
6991 done
6992fi
6993fi
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
6995$as_echo "$pt_cv_path_wtmp" >&6; }
6996if test x$pt_cv_path_wtmp != x; then
6997
6998cat >>confdefs.h <<_ACEOF
6999#define PT_WTMP_FILE "$pt_cv_path_wtmp"
7000_ACEOF
7001
7002elif test "$cross_compiling" = yes; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5
7004$as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;}
7005fi
7006
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5
7008$as_echo_n "checking for a fallback location of wtmpx... " >&6; }
7009if ${pt_cv_path_wtmpx+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011else
7012
7013if test "$cross_compiling" != yes; then
7014 for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do
7015 if test -f "$file"; then
7016 pt_cv_path_wtmpx=$file
7017 break
7018 fi
7019 done
7020fi
7021fi
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
7023$as_echo "$pt_cv_path_wtmpx" >&6; }
7024if test x$pt_cv_path_wtmpx != x; then
7025
7026cat >>confdefs.h <<_ACEOF
7027#define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
7028_ACEOF
7029
7030elif test "$cross_compiling" = yes; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5
7032$as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;}
7033fi
7034
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5
7036$as_echo_n "checking for a fallback location of lastlog... " >&6; }
7037if ${pt_cv_path_lastlog+:} false; then :
7038 $as_echo_n "(cached) " >&6
7039else
7040
7041if test "$cross_compiling" != yes; then
7042 for file in "/var/log/lastlog" "/var/adm/lastlog"; do
7043 if test -f "$file"; then
7044 pt_cv_path_lastlog=$file
7045 break
7046 fi
7047 done
7048fi
7049fi
7050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
7051$as_echo "$pt_cv_path_lastlog" >&6; }
7052if test x$pt_cv_path_lastlog != x; then
7053
7054cat >>confdefs.h <<_ACEOF
7055#define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
7056_ACEOF
7057
7058elif test "$cross_compiling" = yes; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5
7060$as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;}
7061fi
7062
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5
7064$as_echo_n "checking for a fallback location of lastlogx... " >&6; }
7065if ${pt_cv_path_lastlogx+:} false; then :
7066 $as_echo_n "(cached) " >&6
7067else
7068
7069if test "$cross_compiling" != yes; then
7070 for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do
7071 if test -f "$file"; then
7072 pt_cv_path_lastlogx=$file
7073 break
7074 fi
7075 done
7076fi
7077fi
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
7079$as_echo "$pt_cv_path_lastlogx" >&6; }
7080if test x$pt_cv_path_lastlogx != x; then
7081
7082cat >>confdefs.h <<_ACEOF
7083#define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx"
7084_ACEOF
7085
7086elif test "$cross_compiling" = yes; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5
7088$as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;}
7089fi
7090
7091
7092
7093
7094save_LIBS=$LIBS 7428 save_LIBS="$LIBS"
7095save_CFLAGS=$CFLAGS 7429 LIBS="$LIBS $X_LIBS"
7096CFLAGS="$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"
7097LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 7431if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then :
7098if test x$support_xim = xyes; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
7100$as_echo_n "checking for working Xlocale... " >&6; }
7101if ${rxvt_cv_func_xlocale+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103else
7104 if test "$cross_compiling" = yes; then :
7105 :
7106else
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108/* end confdefs.h. */
7109 7432
7110 #include <X11/Xlib.h>
7111 #include <stdlib.h>
7112 int main() {
7113 char *p;
7114 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
7115 exit (XSupportsLocale() ? 0 : 1);
7116 else
7117 exit (1);
7118 }
7119
7120_ACEOF
7121if ac_fn_cxx_try_run "$LINENO"; then :
7122 rxvt_cv_func_xlocale=yes
7123else
7124 rxvt_cv_func_xlocale=no
7125fi
7126rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7127 conftest.$ac_objext conftest.beam conftest.$ac_ext
7128fi
7129
7130fi
7131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
7132$as_echo "$rxvt_cv_func_xlocale" >&6; }
7133 if test x$rxvt_cv_func_xlocale = xyes; then
7134
7135$as_echo "#define USE_XIM 1" >>confdefs.h
7136
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
7138$as_echo_n "checking for broken XIM callback... " >&6; }
7139if ${rxvt_cv_broken_ximcb+:} false; then :
7140 $as_echo_n "(cached) " >&6
7141else
7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143/* end confdefs.h. */
7144
7145 #include <X11/Xlib.h>
7146
7147 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
7148
7149 void f() {
7150 XIMCallback cb;
7151 cb.callback = im_destroy_cb;
7152 }
7153
7154_ACEOF
7155if ac_fn_cxx_try_compile "$LINENO"; then :
7156 rxvt_cv_broken_ximcb=yes
7157else
7158 rxvt_cv_broken_ximcb=no
7159fi
7160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161fi
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
7163$as_echo "$rxvt_cv_broken_ximcb" >&6; }
7164
7165 if test x$rxvt_cv_broken_ximcb = xyes; then
7166
7167$as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
7168
7169 fi
7170 fi
7171fi
7172
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
7174$as_echo_n "checking for working X setlocale... " >&6; }
7175if ${rxvt_cv_func_xsetlocale+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177else
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179/* end confdefs.h. */
7180#define X_LOCALE 1
7181#include <X11/Xlocale.h>
7182int
7183main ()
7184{
7185setlocale(LC_CTYPE, "");
7186 ;
7187 return 0;
7188}
7189_ACEOF
7190if ac_fn_cxx_try_link "$LINENO"; then :
7191 rxvt_cv_func_xsetlocale=yes
7192else
7193 rxvt_cv_func_xsetlocale=no
7194fi
7195rm -f core conftest.err conftest.$ac_objext \
7196 conftest$ac_exeext conftest.$ac_ext
7197fi
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
7199$as_echo "$rxvt_cv_func_xsetlocale" >&6; }
7200if test x$rxvt_cv_func_xsetlocale = xyes; then
7201
7202$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
7203
7204fi
7205LIBS=$save_LIBS
7206CFLAGS=$save_CFLAGS
7207
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5
7209$as_echo_n "checking for working plain setlocale... " >&6; }
7210if ${rxvt_cv_func_setlocale+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212else
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214/* end confdefs.h. */
7215#include <clocale>
7216int
7217main ()
7218{
7219setlocale(LC_CTYPE, "");
7220 ;
7221 return 0;
7222}
7223_ACEOF
7224if ac_fn_cxx_try_link "$LINENO"; then :
7225 rxvt_cv_func_setlocale=yes
7226else
7227 rxvt_cv_func_setlocale=no
7228fi
7229rm -f core conftest.err conftest.$ac_objext \
7230 conftest$ac_exeext conftest.$ac_ext
7231fi
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5
7233$as_echo "$rxvt_cv_func_setlocale" >&6; }
7234if test x$rxvt_cv_func_setlocale = xyes; then
7235
7236$as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
7237
7238fi
7239
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
7241$as_echo_n "checking for working nl_langinfo... " >&6; }
7242if ${rxvt_cv_func_nl_langinfo+:} false; then :
7243 $as_echo_n "(cached) " >&6
7244else
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246/* end confdefs.h. */
7247#include <langinfo.h>
7248int
7249main ()
7250{
7251nl_langinfo(CODESET);
7252 ;
7253 return 0;
7254}
7255_ACEOF
7256if ac_fn_cxx_try_link "$LINENO"; then :
7257 rxvt_cv_func_nl_langinfo=yes
7258else
7259 rxvt_cv_func_nl_langinfo=no
7260fi
7261rm -f core conftest.err conftest.$ac_objext \
7262 conftest$ac_exeext conftest.$ac_ext
7263fi
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7265$as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
7266if test x$rxvt_cv_func_nl_langinfo = xyes; then
7267
7268$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7269
7270fi
7271
7272
7273case $host in
7274 *-*-solaris*)
7275
7276$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7277
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
7279$as_echo_n "checking for library containing sendmsg... " >&6; }
7280if ${ac_cv_search_sendmsg+:} false; then :
7281 $as_echo_n "(cached) " >&6
7282else
7283 ac_func_search_save_LIBS=$LIBS
7284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285/* end confdefs.h. */
7286
7287/* Override any GCC internal prototype to avoid an error.
7288 Use char because int might match the return type of a GCC
7289 builtin and then its argument prototype would still apply. */
7290#ifdef __cplusplus
7291extern "C"
7292#endif
7293char sendmsg ();
7294int
7295main ()
7296{
7297return sendmsg ();
7298 ;
7299 return 0;
7300}
7301_ACEOF
7302for ac_lib in '' socket; do
7303 if test -z "$ac_lib"; then
7304 ac_res="none required"
7305 else 7433else
7306 ac_res=-l$ac_lib
7307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7308 fi
7309 if ac_fn_cxx_try_link "$LINENO"; then :
7310 ac_cv_search_sendmsg=$ac_res
7311fi
7312rm -f core conftest.err conftest.$ac_objext \
7313 conftest$ac_exeext
7314 if ${ac_cv_search_sendmsg+:} false; then :
7315 break
7316fi
7317done
7318if ${ac_cv_search_sendmsg+:} false; then :
7319
7320else
7321 ac_cv_search_sendmsg=no
7322fi
7323rm conftest.$ac_ext
7324LIBS=$ac_func_search_save_LIBS
7325fi
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
7327$as_echo "$ac_cv_search_sendmsg" >&6; }
7328ac_res=$ac_cv_search_sendmsg
7329if test "$ac_res" != no; then :
7330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7331
7332fi
7333
7334 ;;
7335esac
7336
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
7338$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
7339if ${pt_cv_can_pass_fds+:} false; then :
7340 $as_echo_n "(cached) " >&6
7341else
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343/* end confdefs.h. */
7344
7345#include <cstddef> // broken bsds (is that redundant?) need this
7346#include <sys/types.h>
7347#include <sys/socket.h>
7348#include <sys/uio.h>
7349
7350int
7351main ()
7352{
7353
7354{
7355 msghdr msg;
7356 iovec iov;
7357 char buf [100];
7358 char data = 0;
7359
7360 iov.iov_base = &data;
7361 iov.iov_len = 1;
7362
7363 msg.msg_iov = &iov;
7364 msg.msg_iovlen = 1;
7365 msg.msg_control = buf;
7366 msg.msg_controllen = sizeof buf;
7367
7368 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
7369 cmsg->cmsg_level = SOL_SOCKET;
7370 cmsg->cmsg_type = SCM_RIGHTS;
7371 cmsg->cmsg_len = 100;
7372
7373 *(int *)CMSG_DATA (cmsg) = 5;
7374
7375 return sendmsg (3, &msg, 0);
7376}
7377
7378 ;
7379 return 0;
7380}
7381_ACEOF
7382if ac_fn_cxx_try_link "$LINENO"; then :
7383 pt_cv_can_pass_fds=yes
7384else
7385 pt_cv_can_pass_fds=no
7386fi
7387rm -f core conftest.err conftest.$ac_objext \
7388 conftest$ac_exeext conftest.$ac_ext
7389fi
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
7391$as_echo "$pt_cv_can_pass_fds" >&6; }
7392if test x$pt_cv_can_pass_fds = xyes; then
7393
7394$as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
7395
7396else
7397 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
7398fi
7399
7400
7401
7402for ac_header in \
7403 pty.h \
7404 util.h \
7405 libutil.h \
7406 sys/ioctl.h \
7407 sys/stropts.h \
7408 stropts.h \
7409
7410do :
7411 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7412ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7413if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7414 cat >>confdefs.h <<_ACEOF
7415#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7416_ACEOF
7417
7418fi
7419
7420done
7421
7422
7423for ac_func in \
7424 revoke \
7425 _getpty \
7426 getpt \
7427 posix_openpt \
7428 isastream \
7429 setuid \
7430 seteuid \
7431 setreuid \
7432 setresuid \
7433
7434do :
7435 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7436ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7437if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7438 cat >>confdefs.h <<_ACEOF
7439#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7440_ACEOF
7441
7442fi
7443done
7444
7445
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
7447$as_echo_n "checking for UNIX98 ptys... " >&6; }
7448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449/* end confdefs.h. */
7450#include <stdlib.h>
7451int
7452main ()
7453{
7454grantpt(0);unlockpt(0);ptsname(0);
7455 ;
7456 return 0;
7457}
7458_ACEOF
7459if ac_fn_cxx_try_link "$LINENO"; then :
7460 unix98_pty=yes
7461
7462$as_echo "#define UNIX98_PTY 1" >>confdefs.h
7463
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7465$as_echo "yes" >&6; }
7466else
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468$as_echo "no" >&6; }
7469fi
7470rm -f core conftest.err conftest.$ac_objext \
7471 conftest$ac_exeext conftest.$ac_ext
7472
7473if test -z "$unix98_pty"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
7475$as_echo_n "checking for library containing openpty... " >&6; }
7476if ${ac_cv_search_openpty+:} false; then :
7477 $as_echo_n "(cached) " >&6
7478else
7479 ac_func_search_save_LIBS=$LIBS
7480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h. */
7482
7483/* Override any GCC internal prototype to avoid an error.
7484 Use char because int might match the return type of a GCC
7485 builtin and then its argument prototype would still apply. */
7486#ifdef __cplusplus
7487extern "C"
7488#endif
7489char openpty ();
7490int
7491main ()
7492{
7493return openpty ();
7494 ;
7495 return 0;
7496}
7497_ACEOF
7498for ac_lib in '' util; do
7499 if test -z "$ac_lib"; then
7500 ac_res="none required"
7501 else
7502 ac_res=-l$ac_lib
7503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7504 fi
7505 if ac_fn_cxx_try_link "$LINENO"; then :
7506 ac_cv_search_openpty=$ac_res
7507fi
7508rm -f core conftest.err conftest.$ac_objext \
7509 conftest$ac_exeext
7510 if ${ac_cv_search_openpty+:} false; then :
7511 break
7512fi
7513done
7514if ${ac_cv_search_openpty+:} false; then :
7515
7516else
7517 ac_cv_search_openpty=no
7518fi
7519rm conftest.$ac_ext
7520LIBS=$ac_func_search_save_LIBS
7521fi
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7523$as_echo "$ac_cv_search_openpty" >&6; }
7524ac_res=$ac_cv_search_openpty
7525if test "$ac_res" != no; then :
7526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7527
7528$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
7529
7530fi
7531
7532fi
7533
7534
7535
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
7537$as_echo_n "checking for tty group... " >&6; }
7538if ${pt_cv_tty_group+:} false; then :
7539 $as_echo_n "(cached) " >&6
7540else
7541 if test "$cross_compiling" = yes; then :
7542 pt_cv_tty_group=no
7543else
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545/* end confdefs.h. */
7546
7547#include <sys/types.h>
7548#include <sys/stat.h>
7549#include <unistd.h>
7550#include <grp.h>
7551
7552int main()
7553{
7554 struct stat st;
7555 struct group *gr;
7556 char *tty;
7557 gr = getgrnam("tty");
7558 tty = ttyname(0);
7559 if (gr != 0
7560 && tty != 0
7561 && (stat(tty, &st)) == 0
7562 && st.st_gid == gr->gr_gid)
7563 return 0;
7564 else
7565 return 1;
7566}
7567_ACEOF
7568if ac_fn_cxx_try_run "$LINENO"; then :
7569 pt_cv_tty_group=yes
7570else
7571 pt_cv_tty_group=no
7572fi
7573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7574 conftest.$ac_objext conftest.beam conftest.$ac_ext
7575fi
7576
7577fi
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
7579$as_echo "$pt_cv_tty_group" >&6; }
7580if test x$pt_cv_tty_group = xyes; then
7581
7582$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
7583
7584fi
7585
7586if test x$support_xft = xyes || test x$support_inheritpixmap = xyes; then
7587 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
7588 # 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.
7589set dummy pkg-config; ac_word=$2 7451set dummy pkg-config; ac_word=$2
7590{ $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
7591$as_echo_n "checking for $ac_word... " >&6; } 7453$as_echo_n "checking for $ac_word... " >&6; }
7592if ${ac_cv_path_PKG_CONFIG+:} false; then : 7454if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7593 $as_echo_n "(cached) " >&6 7455 $as_echo_n "(cached) " >&6
7594else 7456else
7595 case $PKG_CONFIG in 7457 case $PKG_CONFIG in
7596 [\\/]* | ?:[\\/]*) 7458 [\\/]* | ?:[\\/]*)
7597 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7459 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625$as_echo "no" >&6; } 7487$as_echo "no" >&6; }
7626fi 7488fi
7627 7489
7628 7490
7629 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then 7491 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
7630 X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" 7492 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
7631 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" 7493 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
7632 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
7633 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
7634 save_LIBS="$LIBS" 7547 save_LIBS="$LIBS"
7635 LIBS="$LIBS $X_LIBS" 7548 LIBS="$LIBS $X_LIBS"
7549 for ac_header in X11/Xft/Xft.h
7550do :
7636 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"
7637if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; 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
7638 7556
7639else 7557else
7640 rxvt_have_xrender=no 7558 support_xft=no
7641fi 7559fi
7642 7560
7561done
7643 7562
7644 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
7645if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes; then : 7564$as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
7646 7565if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7647else 7567else
7648 rxvt_have_xrender=no 7568 ac_check_lib_save_LIBS=$LIBS
7649fi 7569LIBS="-lXft $LIBS"
7570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571/* end confdefs.h. */
7650 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
7651 LIBS="$save_LIBS" 7661 LIBS="$save_LIBS"
7652 fi
7653fi
7654 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
7655if 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
7656 # 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.
7657set dummy pkg-config; ac_word=$2 7690set dummy pkg-config; ac_word=$2
7658{ $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
7659$as_echo_n "checking for $ac_word... " >&6; } 7692$as_echo_n "checking for $ac_word... " >&6; }
7660if ${ac_cv_path_PKG_CONFIG+:} false; then : 7693if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7661 $as_echo_n "(cached) " >&6 7694 $as_echo_n "(cached) " >&6
7662else 7695else
7663 case $PKG_CONFIG in 7696 case $PKG_CONFIG in
7664 [\\/]* | ?:[\\/]*) 7697 [\\/]* | ?:[\\/]*)
7665 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7698 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693$as_echo "no" >&6; } 7726$as_echo "no" >&6; }
7694fi 7727fi
7695 7728
7696 7729
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5
7731$as_echo_n "checking for gdk-pixbuf... " >&6; }
7697 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 7732 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
7698 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" 7733 PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`"
7699 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 7734 PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`"
7700 else 7735 support_pixbuf=yes
7701 # Extract the first word of "xft-config", so it can be a program name with args.
7702set dummy xft-config; ac_word=$2
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704$as_echo_n "checking for $ac_word... " >&6; }
7705if ${ac_cv_path_XFT_CONFIG+:} false; then :
7706 $as_echo_n "(cached) " >&6
7707else
7708 case $XFT_CONFIG in
7709 [\\/]* | ?:[\\/]*)
7710 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
7711 ;;
7712 *)
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714for as_dir in $PATH
7715do
7716 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7720 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 break 2
7723 fi 7736 fi
7724done
7725 done
7726IFS=$as_save_IFS
7727 7737
7728 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" 7738 if test x$support_pixbuf = xyes; then
7729 ;;
7730esac
7731fi
7732XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7733if test -n "$XFT_CONFIG"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7735$as_echo "$XFT_CONFIG" >&6; } 7740$as_echo "ok" >&6; }
7736else 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
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738$as_echo "no" >&6; } 7750$as_echo "no" >&6; }
7739fi
7740
7741
7742 if test $XFT_CONFIG != no; then
7743 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7744 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
7745 fi 7751 fi
7746 fi 7752 fi
7747
7748 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then
7749 X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS"
7750 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
7751 fi
7752
7753 save_LIBS="$LIBS"
7754 LIBS="$LIBS $X_LIBS"
7755 for ac_header in X11/Xft/Xft.h
7756do :
7757 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
7758if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
7759 cat >>confdefs.h <<_ACEOF
7760#define HAVE_X11_XFT_XFT_H 1
7761_ACEOF
7762
7763else
7764 support_xft=no
7765fi 7753fi
7766 7754
7767done
7768 7755
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5
7770$as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
7771if ${ac_cv_lib_Xft_XftDrawString32+:} false; then :
7772 $as_echo_n "(cached) " >&6
7773else
7774 ac_check_lib_save_LIBS=$LIBS
7775LIBS="-lXft $LIBS"
7776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777/* end confdefs.h. */
7778 7756
7779/* Override any GCC internal prototype to avoid an error.
7780 Use char because int might match the return type of a GCC
7781 builtin and then its argument prototype would still apply. */
7782#ifdef __cplusplus
7783extern "C"
7784#endif
7785char XftDrawString32 ();
7786int
7787main ()
7788{
7789return XftDrawString32 ();
7790 ;
7791 return 0;
7792}
7793_ACEOF
7794if ac_fn_cxx_try_link "$LINENO"; then :
7795 ac_cv_lib_Xft_XftDrawString32=yes
7796else
7797 ac_cv_lib_Xft_XftDrawString32=no
7798fi
7799rm -f core conftest.err conftest.$ac_objext \
7800 conftest$ac_exeext conftest.$ac_ext
7801LIBS=$ac_check_lib_save_LIBS
7802fi
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
7804$as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
7805if test "x$ac_cv_lib_Xft_XftDrawString32" = xyes; then :
7806 :
7807else
7808 support_xft=no
7809fi
7810 7757
7811 for ac_header in fontconfig/fontconfig.h
7812do :
7813 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
7814if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
7815 cat >>confdefs.h <<_ACEOF
7816#define HAVE_FONTCONFIG_FONTCONFIG_H 1
7817_ACEOF
7818
7819else
7820 support_xft=no
7821fi
7822
7823done
7824
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5
7826$as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; }
7827if ${ac_cv_lib_fontconfig_FcPatternGet+:} false; then :
7828 $as_echo_n "(cached) " >&6
7829else
7830 ac_check_lib_save_LIBS=$LIBS
7831LIBS="-lfontconfig $LIBS"
7832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833/* end confdefs.h. */
7834
7835/* Override any GCC internal prototype to avoid an error.
7836 Use char because int might match the return type of a GCC
7837 builtin and then its argument prototype would still apply. */
7838#ifdef __cplusplus
7839extern "C"
7840#endif
7841char FcPatternGet ();
7842int
7843main ()
7844{
7845return FcPatternGet ();
7846 ;
7847 return 0;
7848}
7849_ACEOF
7850if ac_fn_cxx_try_link "$LINENO"; then :
7851 ac_cv_lib_fontconfig_FcPatternGet=yes
7852else
7853 ac_cv_lib_fontconfig_FcPatternGet=no
7854fi
7855rm -f core conftest.err conftest.$ac_objext \
7856 conftest$ac_exeext conftest.$ac_ext
7857LIBS=$ac_check_lib_save_LIBS
7858fi
7859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5
7860$as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; }
7861if test "x$ac_cv_lib_fontconfig_FcPatternGet" = xyes; then :
7862 :
7863else
7864 support_xft=no
7865fi
7866
7867 LIBS="$save_LIBS"
7868
7869 if test x$support_xft = xyes; then 7758if test x$support_xdbe = xyes; then
7870 7759
7871$as_echo "#define XFT 1" >>confdefs.h 7760$as_echo "#define ENABLE_XDBE 1" >>confdefs.h
7872 7761
7873 fi
7874fi 7762fi
7875if test x$support_styles = xyes; then 7763if test x$support_styles = xyes; then
7876 7764
7877$as_echo "#define ENABLE_STYLES 1" >>confdefs.h 7765$as_echo "#define ENABLE_STYLES 1" >>confdefs.h
7878 7766
7888 7776
7889fi 7777fi
7890if test x$support_fading = xyes; then 7778if test x$support_fading = xyes; then
7891 7779
7892$as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h 7780$as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h
7893
7894fi
7895if test x$support_inheritpixmap = xyes; then
7896 if test x$rxvt_have_xrender = xyes; then
7897 LIBS="$LIBS -lm"
7898
7899$as_echo "#define XRENDER 1" >>confdefs.h
7900
7901 fi
7902
7903$as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7904 7781
7905fi 7782fi
7906if test x$support_keepscrolling = xno; then 7783if test x$support_keepscrolling = xno; then
7907 7784
7908$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h 7785$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
8005if test x$support_perl = xyes; then 7882if test x$support_perl = xyes; then
8006 # Extract the first word of "perl5", so it can be a program name with args. 7883 # Extract the first word of "perl5", so it can be a program name with args.
8007set dummy perl5; ac_word=$2 7884set dummy perl5; ac_word=$2
8008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009$as_echo_n "checking for $ac_word... " >&6; } 7886$as_echo_n "checking for $ac_word... " >&6; }
8010if ${ac_cv_path_PERL+:} false; then : 7887if test "${ac_cv_path_PERL+set}" = set; then :
8011 $as_echo_n "(cached) " >&6 7888 $as_echo_n "(cached) " >&6
8012else 7889else
8013 case $PERL in 7890 case $PERL in
8014 [\\/]* | ?:[\\/]*) 7891 [\\/]* | ?:[\\/]*)
8015 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 7892 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8028 fi 7905 fi
8029done 7906done
8030 done 7907 done
8031IFS=$as_save_IFS 7908IFS=$as_save_IFS
8032 7909
8033 ;; 7910 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
8034esac
8035fi
8036PERL=$ac_cv_path_PERL
8037if test -n "$PERL"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8039$as_echo "$PERL" >&6; }
8040else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042$as_echo "no" >&6; }
8043fi
8044
8045
8046 # Extract the first word of "perl", so it can be a program name with args.
8047set dummy perl; ac_word=$2
8048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049$as_echo_n "checking for $ac_word... " >&6; }
8050if ${ac_cv_path_PERL+:} false; then :
8051 $as_echo_n "(cached) " >&6
8052else
8053 case $PERL in
8054 [\\/]* | ?:[\\/]*)
8055 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8056 ;;
8057 *)
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059for as_dir in $PATH
8060do
8061 IFS=$as_save_IFS
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8065 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 break 2
8068 fi
8069done
8070 done
8071IFS=$as_save_IFS
8072
8073 ;; 7911 ;;
8074esac 7912esac
8075fi 7913fi
8076PERL=$ac_cv_path_PERL 7914PERL=$ac_cv_path_PERL
8077if test -n "$PERL"; then 7915if test -n "$PERL"; then
8209 t end 8047 t end
8210 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8048 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8211 :end' >>confcache 8049 :end' >>confcache
8212if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8050if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8213 if test -w "$cache_file"; then 8051 if test -w "$cache_file"; then
8214 if test "x$cache_file" != "x/dev/null"; then 8052 test "x$cache_file" != "x/dev/null" &&
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8053 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8216$as_echo "$as_me: updating cache $cache_file" >&6;} 8054$as_echo "$as_me: updating cache $cache_file" >&6;}
8217 if test ! -f "$cache_file" || test -h "$cache_file"; then
8218 cat confcache >"$cache_file" 8055 cat confcache >$cache_file
8219 else
8220 case $cache_file in #(
8221 */* | ?:*)
8222 mv -f confcache "$cache_file"$$ &&
8223 mv -f "$cache_file"$$ "$cache_file" ;; #(
8224 *)
8225 mv -f confcache "$cache_file" ;;
8226 esac
8227 fi
8228 fi
8229 else 8056 else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8231$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8058$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8232 fi 8059 fi
8233fi 8060fi
8255 8082
8256LTLIBOBJS=$ac_ltlibobjs 8083LTLIBOBJS=$ac_ltlibobjs
8257 8084
8258 8085
8259 8086
8260: "${CONFIG_STATUS=./config.status}" 8087: ${CONFIG_STATUS=./config.status}
8261ac_write_fail=0 8088ac_write_fail=0
8262ac_clean_files_save=$ac_clean_files 8089ac_clean_files_save=$ac_clean_files
8263ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8090ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8265$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8092$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8356# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8183# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8357# splitting by setting IFS to empty value.) 8184# splitting by setting IFS to empty value.)
8358IFS=" "" $as_nl" 8185IFS=" "" $as_nl"
8359 8186
8360# Find who we are. Look in the path if we contain no directory separator. 8187# Find who we are. Look in the path if we contain no directory separator.
8361as_myself=
8362case $0 in #(( 8188case $0 in #((
8363 *[\\/]* ) as_myself=$0 ;; 8189 *[\\/]* ) as_myself=$0 ;;
8364 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8190 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH 8191for as_dir in $PATH
8366do 8192do
8664# Save the log message, to keep $0 and so on meaningful, and to 8490# Save the log message, to keep $0 and so on meaningful, and to
8665# report actual input values of CONFIG_FILES etc. instead of their 8491# report actual input values of CONFIG_FILES etc. instead of their
8666# values after options handling. 8492# values after options handling.
8667ac_log=" 8493ac_log="
8668This file was extended by $as_me, which was 8494This file was extended by $as_me, which was
8669generated by GNU Autoconf 2.68. Invocation command line was 8495generated by GNU Autoconf 2.67. Invocation command line was
8670 8496
8671 CONFIG_FILES = $CONFIG_FILES 8497 CONFIG_FILES = $CONFIG_FILES
8672 CONFIG_HEADERS = $CONFIG_HEADERS 8498 CONFIG_HEADERS = $CONFIG_HEADERS
8673 CONFIG_LINKS = $CONFIG_LINKS 8499 CONFIG_LINKS = $CONFIG_LINKS
8674 CONFIG_COMMANDS = $CONFIG_COMMANDS 8500 CONFIG_COMMANDS = $CONFIG_COMMANDS
8726_ACEOF 8552_ACEOF
8727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8728ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8554ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8729ac_cs_version="\\ 8555ac_cs_version="\\
8730config.status 8556config.status
8731configured by $0, generated by GNU Autoconf 2.68, 8557configured by $0, generated by GNU Autoconf 2.67,
8732 with options \\"\$ac_cs_config\\" 8558 with options \\"\$ac_cs_config\\"
8733 8559
8734Copyright (C) 2010 Free Software Foundation, Inc. 8560Copyright (C) 2010 Free Software Foundation, Inc.
8735This config.status script is free software; the Free Software Foundation 8561This config.status script is free software; the Free Software Foundation
8736gives unlimited permission to copy, distribute and modify it." 8562gives unlimited permission to copy, distribute and modify it."
8852 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; 8678 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
8853 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8679 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8854 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 8680 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8855 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 8681 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8856 8682
8857 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 8683 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
8858 esac 8684 esac
8859done 8685done
8860 8686
8861 8687
8862# If the user did not use the arguments to specify the items to instantiate, 8688# If the user did not use the arguments to specify the items to instantiate,
8874# Hook for its removal unless debugging. 8700# Hook for its removal unless debugging.
8875# Note that there is a small window in which the directory will not be cleaned: 8701# Note that there is a small window in which the directory will not be cleaned:
8876# after its creation but before its name has been assigned to `$tmp'. 8702# after its creation but before its name has been assigned to `$tmp'.
8877$debug || 8703$debug ||
8878{ 8704{
8879 tmp= ac_tmp= 8705 tmp=
8880 trap 'exit_status=$? 8706 trap 'exit_status=$?
8881 : "${ac_tmp:=$tmp}"
8882 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 8707 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8883' 0 8708' 0
8884 trap 'as_fn_exit 1' 1 2 13 15 8709 trap 'as_fn_exit 1' 1 2 13 15
8885} 8710}
8886# Create a (secure) tmp directory for tmp files. 8711# Create a (secure) tmp directory for tmp files.
8887 8712
8888{ 8713{
8889 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 8714 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8890 test -d "$tmp" 8715 test -n "$tmp" && test -d "$tmp"
8891} || 8716} ||
8892{ 8717{
8893 tmp=./conf$$-$RANDOM 8718 tmp=./conf$$-$RANDOM
8894 (umask 077 && mkdir "$tmp") 8719 (umask 077 && mkdir "$tmp")
8895} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 8720} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8896ac_tmp=$tmp
8897 8721
8898# Set up the scripts for CONFIG_FILES section. 8722# Set up the scripts for CONFIG_FILES section.
8899# No need to generate them if there are no CONFIG_FILES. 8723# No need to generate them if there are no CONFIG_FILES.
8900# This happens for instance with `./config.status config.h'. 8724# This happens for instance with `./config.status config.h'.
8901if test -n "$CONFIG_FILES"; then 8725if test -n "$CONFIG_FILES"; then
8913 ac_cs_awk_cr='\\r' 8737 ac_cs_awk_cr='\\r'
8914else 8738else
8915 ac_cs_awk_cr=$ac_cr 8739 ac_cs_awk_cr=$ac_cr
8916fi 8740fi
8917 8741
8918echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 8742echo 'BEGIN {' >"$tmp/subs1.awk" &&
8919_ACEOF 8743_ACEOF
8920 8744
8921 8745
8922{ 8746{
8923 echo "cat >conf$$subs.awk <<_ACEOF" && 8747 echo "cat >conf$$subs.awk <<_ACEOF" &&
8941 fi 8765 fi
8942done 8766done
8943rm -f conf$$subs.sh 8767rm -f conf$$subs.sh
8944 8768
8945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8946cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 8770cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8947_ACEOF 8771_ACEOF
8948sed -n ' 8772sed -n '
8949h 8773h
8950s/^/S["/; s/!.*/"]=/ 8774s/^/S["/; s/!.*/"]=/
8951p 8775p
8989} 8813}
8990' >>$CONFIG_STATUS || ac_write_fail=1 8814' >>$CONFIG_STATUS || ac_write_fail=1
8991rm -f conf$$subs.awk 8815rm -f conf$$subs.awk
8992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8993_ACAWK 8817_ACAWK
8994cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 8818cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8995 for (key in S) S_is_set[key] = 1 8819 for (key in S) S_is_set[key] = 1
8996 FS = "" 8820 FS = ""
8997 8821
8998} 8822}
8999{ 8823{
9021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9022if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 8846if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9023 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 8847 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9024else 8848else
9025 cat 8849 cat
9026fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 8850fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9027 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 8851 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9028_ACEOF 8852_ACEOF
9029 8853
9030# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 8854# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9031# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 8855# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9055 8879
9056# Set up the scripts for CONFIG_HEADERS section. 8880# Set up the scripts for CONFIG_HEADERS section.
9057# No need to generate them if there are no CONFIG_HEADERS. 8881# No need to generate them if there are no CONFIG_HEADERS.
9058# This happens for instance with `./config.status Makefile'. 8882# This happens for instance with `./config.status Makefile'.
9059if test -n "$CONFIG_HEADERS"; then 8883if test -n "$CONFIG_HEADERS"; then
9060cat >"$ac_tmp/defines.awk" <<\_ACAWK || 8884cat >"$tmp/defines.awk" <<\_ACAWK ||
9061BEGIN { 8885BEGIN {
9062_ACEOF 8886_ACEOF
9063 8887
9064# Transform confdefs.h into an awk script `defines.awk', embedded as 8888# Transform confdefs.h into an awk script `defines.awk', embedded as
9065# here-document in config.status, that substitutes the proper values into 8889# here-document in config.status, that substitutes the proper values into
9067 8891
9068# Create a delimiter string that does not exist in confdefs.h, to ease 8892# Create a delimiter string that does not exist in confdefs.h, to ease
9069# handling of long lines. 8893# handling of long lines.
9070ac_delim='%!_!# ' 8894ac_delim='%!_!# '
9071for ac_last_try in false false :; do 8895for ac_last_try in false false :; do
9072 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 8896 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9073 if test -z "$ac_tt"; then 8897 if test -z "$ac_t"; then
9074 break 8898 break
9075 elif $ac_last_try; then 8899 elif $ac_last_try; then
9076 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 8900 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9077 else 8901 else
9078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8902 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9169 case $ac_tag in 8993 case $ac_tag in
9170 :[FHLC]) ac_mode=$ac_tag; continue;; 8994 :[FHLC]) ac_mode=$ac_tag; continue;;
9171 esac 8995 esac
9172 case $ac_mode$ac_tag in 8996 case $ac_mode$ac_tag in
9173 :[FHL]*:*);; 8997 :[FHL]*:*);;
9174 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 8998 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
9175 :[FH]-) ac_tag=-:-;; 8999 :[FH]-) ac_tag=-:-;;
9176 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 9000 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9177 esac 9001 esac
9178 ac_save_IFS=$IFS 9002 ac_save_IFS=$IFS
9179 IFS=: 9003 IFS=:
9188 :[FH]) 9012 :[FH])
9189 ac_file_inputs= 9013 ac_file_inputs=
9190 for ac_f 9014 for ac_f
9191 do 9015 do
9192 case $ac_f in 9016 case $ac_f in
9193 -) ac_f="$ac_tmp/stdin";; 9017 -) ac_f="$tmp/stdin";;
9194 *) # Look for the file first in the build tree, then in the source tree 9018 *) # Look for the file first in the build tree, then in the source tree
9195 # (if the path is not absolute). The absolute path cannot be DOS-style, 9019 # (if the path is not absolute). The absolute path cannot be DOS-style,
9196 # because $ac_f cannot contain `:'. 9020 # because $ac_f cannot contain `:'.
9197 test -f "$ac_f" || 9021 test -f "$ac_f" ||
9198 case $ac_f in 9022 case $ac_f in
9199 [\\/$]*) false;; 9023 [\\/$]*) false;;
9200 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9024 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9201 esac || 9025 esac ||
9202 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 9026 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
9203 esac 9027 esac
9204 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9028 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9205 as_fn_append ac_file_inputs " '$ac_f'" 9029 as_fn_append ac_file_inputs " '$ac_f'"
9206 done 9030 done
9207 9031
9223 sed 's/[\\\\&|]/\\\\&/g'`;; #( 9047 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9224 *) ac_sed_conf_input=$configure_input;; 9048 *) ac_sed_conf_input=$configure_input;;
9225 esac 9049 esac
9226 9050
9227 case $ac_tag in 9051 case $ac_tag in
9228 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 9052 *:-:* | *:-) cat >"$tmp/stdin" \
9229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 9053 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9230 esac 9054 esac
9231 ;; 9055 ;;
9232 esac 9056 esac
9233 9057
9234 ac_dir=`$as_dirname -- "$ac_file" || 9058 ac_dir=`$as_dirname -- "$ac_file" ||
9354s&@abs_builddir@&$ac_abs_builddir&;t t 9178s&@abs_builddir@&$ac_abs_builddir&;t t
9355s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9179s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9356s&@INSTALL@&$ac_INSTALL&;t t 9180s&@INSTALL@&$ac_INSTALL&;t t
9357$ac_datarootdir_hack 9181$ac_datarootdir_hack
9358" 9182"
9359eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 9183eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9360 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9361 9185
9362test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9186test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9363 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 9187 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9364 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 9188 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9365 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9367which seems to be undefined. Please make sure it is defined" >&5 9190which seems to be undefined. Please make sure it is defined" >&5
9368$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9191$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9369which seems to be undefined. Please make sure it is defined" >&2;} 9192which seems to be undefined. Please make sure it is defined" >&2;}
9370 9193
9371 rm -f "$ac_tmp/stdin" 9194 rm -f "$tmp/stdin"
9372 case $ac_file in 9195 case $ac_file in
9373 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 9196 -) cat "$tmp/out" && rm -f "$tmp/out";;
9374 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 9197 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9375 esac \ 9198 esac \
9376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9377 ;; 9200 ;;
9378 :H) 9201 :H)
9379 # 9202 #
9380 # CONFIG_HEADER 9203 # CONFIG_HEADER
9381 # 9204 #
9382 if test x"$ac_file" != x-; then 9205 if test x"$ac_file" != x-; then
9383 { 9206 {
9384 $as_echo "/* $configure_input */" \ 9207 $as_echo "/* $configure_input */" \
9385 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 9208 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9386 } >"$ac_tmp/config.h" \ 9209 } >"$tmp/config.h" \
9387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9388 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 9211 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9390$as_echo "$as_me: $ac_file is unchanged" >&6;} 9213$as_echo "$as_me: $ac_file is unchanged" >&6;}
9391 else 9214 else
9392 rm -f "$ac_file" 9215 rm -f "$ac_file"
9393 mv "$ac_tmp/config.h" "$ac_file" \ 9216 mv "$tmp/config.h" "$ac_file" \
9394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9395 fi 9218 fi
9396 else 9219 else
9397 $as_echo "/* $configure_input */" \ 9220 $as_echo "/* $configure_input */" \
9398 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 9221 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9399 || as_fn_error $? "could not create -" "$LINENO" 5 9222 || as_fn_error $? "could not create -" "$LINENO" 5
9400 fi 9223 fi
9401 ;; 9224 ;;
9402 9225
9403 9226

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines