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

Comparing rxvt-unicode/configure (file contents):
Revision 1.149 by sf-exg, Sun Nov 27 15:18:44 2011 UTC vs.
Revision 1.164 by root, Thu Jun 20 23:07:42 2019 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.69.
4# 4#
5# 5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9# 7#
10# 8#
11# This configure script is free software; the Free Software Foundation 9# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it. 10# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ## 11## -------------------- ##
132export LANGUAGE 130export LANGUAGE
133 131
134# CDPATH. 132# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
137if test "x$CONFIG_SHELL" = x; then 160if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh 162 emulate sh
140 NULLCMD=: 163 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 189
167else 190else
168 exitcode=1; echo positional parameters were not saved. 191 exitcode=1; echo positional parameters were not saved.
169fi 192fi
170test x\$exitcode = x0 || exit 1" 193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1" 199test \$(( 1 + 1 )) = 2 || exit 1"
210fi; } 234fi; }
211IFS=$as_save_IFS 235IFS=$as_save_IFS
212 236
213 237
214 if test "x$CONFIG_SHELL" != x; then : 238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
215 # We cannot yet assume a decent shell, so we have to provide a 240 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also 241# neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables. 242# works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell. 243# Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null 244BASH_ENV=/dev/null
220 ENV=/dev/null 245ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # (((( 247case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;; 248 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;; 249 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;; 250 *x* ) as_opts=-x ;;
227 * ) as_opts= ;; 251 * ) as_opts= ;;
228 esac 252esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
230fi 258fi
231 259
232 if test x$as_have_required = xno; then : 260 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all" 261 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system." 262 $as_echo "$0: the shells that I found on your system."
326 test -z "$as_dirs" || eval "mkdir $as_dirs" 354 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328 356
329 357
330} # as_fn_mkdir_p 358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
331# as_fn_append VAR VALUE 367# as_fn_append VAR VALUE
332# ---------------------- 368# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take 369# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over 370# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive 371# repeated appends, instead of the typical quadratic growth present in naive
447 s/-\n.*// 483 s/-\n.*//
448 ' >$as_me.lineno && 484 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" || 485 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451 487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
452 # Don't try to exec as it changes $[0], causing all sort of problems 492 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the 493 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this). 494 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno" 495 . "./$as_me.lineno"
456 # Exit status is that of the last command. 496 # Exit status is that of the last command.
481 if ln -s conf$$.file conf$$ 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s' 522 as_ln_s='ln -s'
483 # ... but there are two gotchas: 523 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'. 526 # In both cases, we have to default to `cp -pR'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p' 528 as_ln_s='cp -pR'
489 elif ln conf$$.file conf$$ 2>/dev/null; then 529 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln 530 as_ln_s=ln
491 else 531 else
492 as_ln_s='cp -p' 532 as_ln_s='cp -pR'
493 fi 533 fi
494else 534else
495 as_ln_s='cp -p' 535 as_ln_s='cp -pR'
496fi 536fi
497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498rmdir conf$$.dir 2>/dev/null 538rmdir conf$$.dir 2>/dev/null
499 539
500if mkdir -p . 2>/dev/null; then 540if mkdir -p . 2>/dev/null; then
502else 542else
503 test -d ./-p && rmdir ./-p 543 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false 544 as_mkdir_p=false
505fi 545fi
506 546
507if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x' 547as_test_x='test -x'
509else 548as_executable_p=as_fn_executable_p
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527fi
528as_executable_p=$as_test_x
529 549
530# Sed expression to map a string onto a valid CPP name. 550# Sed expression to map a string onto a valid CPP name.
531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 552
533# Sed expression to map a string onto a valid variable name. 553# Sed expression to map a string onto a valid variable name.
606PERLPRIVLIBEXP 626PERLPRIVLIBEXP
607PERLFLAGS 627PERLFLAGS
608PERLLIB 628PERLLIB
609PERL 629PERL
610XFT_CONFIG 630XFT_CONFIG
611AFTERIMAGE_LIBS
612AFTERIMAGE_CFLAGS
613afterimage_config
614STARTUP_NOTIFICATION_LIBS 631STARTUP_NOTIFICATION_LIBS
615STARTUP_NOTIFICATION_CFLAGS 632STARTUP_NOTIFICATION_CFLAGS
616PIXBUF_LIBS 633PIXBUF_LIBS
617PIXBUF_CFLAGS 634PIXBUF_CFLAGS
618PKG_CONFIG 635PKG_CONFIG
625CXXCPP 642CXXCPP
626RXVTNAME 643RXVTNAME
627LINKER 644LINKER
628EGREP 645EGREP
629GREP 646GREP
647CPP
630INSTALL_DATA 648INSTALL_DATA
631INSTALL_SCRIPT 649INSTALL_SCRIPT
632INSTALL_PROGRAM 650INSTALL_PROGRAM
633CPP
634ac_ct_CXX 651ac_ct_CXX
635CXXFLAGS 652CXXFLAGS
636CXX 653CXX
637OBJEXT 654OBJEXT
638EXEEXT 655EXEEXT
668htmldir 685htmldir
669infodir 686infodir
670docdir 687docdir
671oldincludedir 688oldincludedir
672includedir 689includedir
690runstatedir
673localstatedir 691localstatedir
674sharedstatedir 692sharedstatedir
675sysconfdir 693sysconfdir
676datadir 694datadir
677datarootdir 695datarootdir
698enable_256_color 716enable_256_color
699enable_unicode3 717enable_unicode3
700enable_combining 718enable_combining
701enable_xft 719enable_xft
702enable_font_styles 720enable_font_styles
703enable_afterimage
704with_afterimage_config
705enable_pixbuf 721enable_pixbuf
706enable_startup_notification 722enable_startup_notification
707enable_transparency 723enable_transparency
708enable_fading 724enable_fading
709enable_rxvt_scroll 725enable_rxvt_scroll
787datarootdir='${prefix}/share' 803datarootdir='${prefix}/share'
788datadir='${datarootdir}' 804datadir='${datarootdir}'
789sysconfdir='${prefix}/etc' 805sysconfdir='${prefix}/etc'
790sharedstatedir='${prefix}/com' 806sharedstatedir='${prefix}/com'
791localstatedir='${prefix}/var' 807localstatedir='${prefix}/var'
808runstatedir='${localstatedir}/run'
792includedir='${prefix}/include' 809includedir='${prefix}/include'
793oldincludedir='/usr/include' 810oldincludedir='/usr/include'
794docdir='${datarootdir}/doc/${PACKAGE}' 811docdir='${datarootdir}/doc/${PACKAGE}'
795infodir='${datarootdir}/info' 812infodir='${datarootdir}/info'
796htmldir='${docdir}' 813htmldir='${docdir}'
1039 1056
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil) 1058 | -silent | --silent | --silen | --sile | --sil)
1042 silent=yes ;; 1059 silent=yes ;;
1043 1060
1061 -runstatedir | --runstatedir | --runstatedi | --runstated \
1062 | --runstate | --runstat | --runsta | --runst | --runs \
1063 | --run | --ru | --r)
1064 ac_prev=runstatedir ;;
1065 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1066 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1067 | --run=* | --ru=* | --r=*)
1068 runstatedir=$ac_optarg ;;
1069
1044 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1045 ac_prev=sbindir ;; 1071 ac_prev=sbindir ;;
1046 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1047 | --sbi=* | --sb=*) 1073 | --sbi=* | --sb=*)
1048 sbindir=$ac_optarg ;; 1074 sbindir=$ac_optarg ;;
1176 1202
1177# Check all directory arguments for consistency. 1203# Check all directory arguments for consistency.
1178for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179 datadir sysconfdir sharedstatedir localstatedir includedir \ 1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181 libdir localedir mandir 1207 libdir localedir mandir runstatedir
1182do 1208do
1183 eval ac_val=\$$ac_var 1209 eval ac_val=\$$ac_var
1184 # Remove trailing slashes. 1210 # Remove trailing slashes.
1185 case $ac_val in 1211 case $ac_val in
1186 */ ) 1212 */ )
1204 1230
1205# FIXME: To remove some day. 1231# FIXME: To remove some day.
1206if test "x$host_alias" != x; then 1232if test "x$host_alias" != x; then
1207 if test "x$build_alias" = x; then 1233 if test "x$build_alias" = x; then
1208 cross_compiling=maybe 1234 cross_compiling=maybe
1209 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1210 If a cross compiler is detected then cross compile mode will be used" >&2
1211 elif test "x$build_alias" != "x$host_alias"; then 1235 elif test "x$build_alias" != "x$host_alias"; then
1212 cross_compiling=yes 1236 cross_compiling=yes
1213 fi 1237 fi
1214fi 1238fi
1215 1239
1331 --sbindir=DIR system admin executables [EPREFIX/sbin] 1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1332 --libexecdir=DIR program executables [EPREFIX/libexec] 1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1333 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1334 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1335 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1336 --libdir=DIR object code libraries [EPREFIX/lib] 1361 --libdir=DIR object code libraries [EPREFIX/lib]
1337 --includedir=DIR C header files [PREFIX/include] 1362 --includedir=DIR C header files [PREFIX/include]
1338 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1339 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1340 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --enable-256-color enable 256-color support 1400 --enable-256-color enable 256-color support
1376 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1401 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1377 --enable-combining enable composition of base and combining characters 1402 --enable-combining enable composition of base and combining characters
1378 --enable-xft enable xft support on systems that have it 1403 --enable-xft enable xft support on systems that have it
1379 --enable-font-styles enable bold and italic support 1404 --enable-font-styles enable bold and italic support
1380 --enable-afterimage enable integration with libAfterImage for background images
1381 --enable-pixbuf enable integration with gdk-pixbuf for background images 1405 --enable-pixbuf enable integration with gdk-pixbuf for background images
1382 --enable-startup-notification enable freedesktop startup notification support 1406 --enable-startup-notification enable freedesktop startup notification support
1383 --enable-transparency enable transparent backgrounds 1407 --enable-transparency enable transparent backgrounds
1384 --enable-fading enable colors fading when off focus 1408 --enable-fading enable colors fading when off focus
1385 --enable-rxvt-scroll enable rxvt style scrollbar 1409 --enable-rxvt-scroll enable rxvt style scrollbar
1407 --enable-lastlog enable lastlog support (requires --enable-utmp) 1431 --enable-lastlog enable lastlog support (requires --enable-utmp)
1408 1432
1409Optional Packages: 1433Optional Packages:
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1435 --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) 1436 --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) 1437 --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) 1438 --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) 1439 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1417 --with-term=NAME set the terminal to NAME (default: rxvt) 1440 --with-term=NAME set the terminal to NAME (default: rxvt)
1497 1520
1498test -n "$ac_init_help" && exit $ac_status 1521test -n "$ac_init_help" && exit $ac_status
1499if $ac_init_version; then 1522if $ac_init_version; then
1500 cat <<\_ACEOF 1523 cat <<\_ACEOF
1501configure 1524configure
1502generated by GNU Autoconf 2.68 1525generated by GNU Autoconf 2.69
1503 1526
1504Copyright (C) 2010 Free Software Foundation, Inc. 1527Copyright (C) 2012 Free Software Foundation, Inc.
1505This configure script is free software; the Free Software Foundation 1528This configure script is free software; the Free Software Foundation
1506gives unlimited permission to copy, distribute and modify it. 1529gives unlimited permission to copy, distribute and modify it.
1507_ACEOF 1530_ACEOF
1508 exit 1531 exit
1509fi 1532fi
1810 test $ac_status = 0; } && { 1833 test $ac_status = 0; } && {
1811 test -z "$ac_c_werror_flag" || 1834 test -z "$ac_c_werror_flag" ||
1812 test ! -s conftest.err 1835 test ! -s conftest.err
1813 } && test -s conftest$ac_exeext && { 1836 } && test -s conftest$ac_exeext && {
1814 test "$cross_compiling" = yes || 1837 test "$cross_compiling" = yes ||
1815 $as_test_x conftest$ac_exeext 1838 test -x conftest$ac_exeext
1816 }; then : 1839 }; then :
1817 ac_retval=0 1840 ac_retval=0
1818else 1841else
1819 $as_echo "$as_me: failed program was:" >&5 1842 $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5 1843sed 's/^/| /' conftest.$ac_ext >&5
1856 test $ac_status = 0; } && { 1879 test $ac_status = 0; } && {
1857 test -z "$ac_cxx_werror_flag" || 1880 test -z "$ac_cxx_werror_flag" ||
1858 test ! -s conftest.err 1881 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && { 1882 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes || 1883 test "$cross_compiling" = yes ||
1861 $as_test_x conftest$ac_exeext 1884 test -x conftest$ac_exeext
1862 }; then : 1885 }; then :
1863 ac_retval=0 1886 ac_retval=0
1864else 1887else
1865 $as_echo "$as_me: failed program was:" >&5 1888 $as_echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5 1889sed 's/^/| /' conftest.$ac_ext >&5
2145 enum { N = $2 / 2 - 1 }; 2168 enum { N = $2 / 2 - 1 };
2146int 2169int
2147main () 2170main ()
2148{ 2171{
2149static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2172static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2150test_array [0] = 0 2173test_array [0] = 0;
2174return test_array [0];
2151 2175
2152 ; 2176 ;
2153 return 0; 2177 return 0;
2154} 2178}
2155_ACEOF 2179_ACEOF
2161int 2185int
2162main () 2186main ()
2163{ 2187{
2164static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2188static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2165 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2189 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2166test_array [0] = 0 2190test_array [0] = 0;
2191return test_array [0];
2167 2192
2168 ; 2193 ;
2169 return 0; 2194 return 0;
2170} 2195}
2171_ACEOF 2196_ACEOF
2218$ac_includes_default 2243$ac_includes_default
2219int 2244int
2220main () 2245main ()
2221{ 2246{
2222static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2247static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2223test_array [0] = 0 2248test_array [0] = 0;
2249return test_array [0];
2224 2250
2225 ; 2251 ;
2226 return 0; 2252 return 0;
2227} 2253}
2228_ACEOF 2254_ACEOF
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247$as_echo "$ac_res" >&6; } 2273$as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 2275
2250} # ac_fn_c_find_uintX_t 2276} # ac_fn_c_find_uintX_t
2277
2278# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
2279# ------------------------------------------------------
2280# Tries to find if the field MEMBER exists in type AGGR, after including
2281# INCLUDES, setting cache variable VAR accordingly.
2282ac_fn_cxx_check_member ()
2283{
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2286$as_echo_n "checking for $2.$3... " >&6; }
2287if eval \${$4+:} false; then :
2288 $as_echo_n "(cached) " >&6
2289else
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291/* end confdefs.h. */
2292$5
2293int
2294main ()
2295{
2296static $2 ac_aggr;
2297if (ac_aggr.$3)
2298return 0;
2299 ;
2300 return 0;
2301}
2302_ACEOF
2303if ac_fn_cxx_try_compile "$LINENO"; then :
2304 eval "$4=yes"
2305else
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307/* end confdefs.h. */
2308$5
2309int
2310main ()
2311{
2312static $2 ac_aggr;
2313if (sizeof ac_aggr.$3)
2314return 0;
2315 ;
2316 return 0;
2317}
2318_ACEOF
2319if ac_fn_cxx_try_compile "$LINENO"; then :
2320 eval "$4=yes"
2321else
2322 eval "$4=no"
2323fi
2324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325fi
2326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327fi
2328eval ac_res=\$$4
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330$as_echo "$ac_res" >&6; }
2331 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2332
2333} # ac_fn_cxx_check_member
2251 2334
2252# ac_fn_cxx_try_run LINENO 2335# ac_fn_cxx_try_run LINENO
2253# ------------------------ 2336# ------------------------
2254# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2337# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2255# that executables *can* be run. 2338# that executables *can* be run.
2293cat >config.log <<_ACEOF 2376cat >config.log <<_ACEOF
2294This file contains any messages produced by compilers while 2377This file contains any messages produced by compilers while
2295running configure, to aid debugging if configure makes a mistake. 2378running configure, to aid debugging if configure makes a mistake.
2296 2379
2297It was created by $as_me, which was 2380It was created by $as_me, which was
2298generated by GNU Autoconf 2.68. Invocation command line was 2381generated by GNU Autoconf 2.69. Invocation command line was
2299 2382
2300 $ $0 $@ 2383 $ $0 $@
2301 2384
2302_ACEOF 2385_ACEOF
2303exec 5>>config.log 2386exec 5>>config.log
2746IFS=$ac_save_IFS 2829IFS=$ac_save_IFS
2747case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2830case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2748 2831
2749 2832
2750 2833
2751VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2834VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2752DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2835DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2753 2836
2754echo "" 2837echo ""
2755echo "configuring for rxvt $VERSION" 2838echo "configuring for rxvt $VERSION"
2756echo "" 2839echo ""
2757 2840
2777for as_dir in $PATH 2860for as_dir in $PATH
2778do 2861do
2779 IFS=$as_save_IFS 2862 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=. 2863 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do 2864 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2866 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2 2868 break 2
2786 fi 2869 fi
2787done 2870done
2817for as_dir in $PATH 2900for as_dir in $PATH
2818do 2901do
2819 IFS=$as_save_IFS 2902 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=. 2903 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do 2904 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_ac_ct_CC="gcc" 2906 ac_cv_prog_ac_ct_CC="gcc"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2 2908 break 2
2826 fi 2909 fi
2827done 2910done
2870for as_dir in $PATH 2953for as_dir in $PATH
2871do 2954do
2872 IFS=$as_save_IFS 2955 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=. 2956 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do 2957 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_CC="${ac_tool_prefix}cc" 2959 ac_cv_prog_CC="${ac_tool_prefix}cc"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2 2961 break 2
2879 fi 2962 fi
2880done 2963done
2911for as_dir in $PATH 2994for as_dir in $PATH
2912do 2995do
2913 IFS=$as_save_IFS 2996 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=. 2997 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do 2998 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2918 ac_prog_rejected=yes 3001 ac_prog_rejected=yes
2919 continue 3002 continue
2920 fi 3003 fi
2921 ac_cv_prog_CC="cc" 3004 ac_cv_prog_CC="cc"
2969for as_dir in $PATH 3052for as_dir in $PATH
2970do 3053do
2971 IFS=$as_save_IFS 3054 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=. 3055 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do 3056 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2 3060 break 2
2978 fi 3061 fi
2979done 3062done
3013for as_dir in $PATH 3096for as_dir in $PATH
3014do 3097do
3015 IFS=$as_save_IFS 3098 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=. 3099 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do 3100 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_ac_ct_CC="$ac_prog" 3102 ac_cv_prog_ac_ct_CC="$ac_prog"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2 3104 break 2
3022 fi 3105 fi
3023done 3106done
3459ac_save_CC=$CC 3542ac_save_CC=$CC
3460cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461/* end confdefs.h. */ 3544/* end confdefs.h. */
3462#include <stdarg.h> 3545#include <stdarg.h>
3463#include <stdio.h> 3546#include <stdio.h>
3464#include <sys/types.h> 3547struct stat;
3465#include <sys/stat.h>
3466/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3548/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3467struct buf { int x; }; 3549struct buf { int x; };
3468FILE * (*rcsopen) (struct buf *, struct stat *, int); 3550FILE * (*rcsopen) (struct buf *, struct stat *, int);
3469static char *e (p, i) 3551static char *e (p, i)
3470 char **p; 3552 char **p;
3573for as_dir in $PATH 3655for as_dir in $PATH
3574do 3656do
3575 IFS=$as_save_IFS 3657 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=. 3658 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do 3659 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3661 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 break 2 3663 break 2
3582 fi 3664 fi
3583done 3665done
3617for as_dir in $PATH 3699for as_dir in $PATH
3618do 3700do
3619 IFS=$as_save_IFS 3701 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=. 3702 test -z "$as_dir" && as_dir=.
3621 for ac_exec_ext in '' $ac_executable_extensions; do 3703 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3623 ac_cv_prog_ac_ct_CXX="$ac_prog" 3705 ac_cv_prog_ac_ct_CXX="$ac_prog"
3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 break 2 3707 break 2
3626 fi 3708 fi
3627done 3709done
3802ac_cpp='$CPP $CPPFLAGS' 3884ac_cpp='$CPP $CPPFLAGS'
3803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805ac_compiler_gnu=$ac_cv_c_compiler_gnu 3887ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806 3888
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
3939ac_cpp='$CPP $CPPFLAGS'
3940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943
3944# Find a good install program. We prefer a C program (faster), 3889# Find a good install program. We prefer a C program (faster),
3945# so one script is as good as another. But avoid the broken or 3890# so one script is as good as another. But avoid the broken or
3946# incompatible versions: 3891# incompatible versions:
3947# SysV /etc/install, /usr/sbin/install 3892# SysV /etc/install, /usr/sbin/install
3948# SunOS /usr/etc/install 3893# SunOS /usr/etc/install
3976 # OSF1 and SCO ODT 3.0 have their own names for install. 3921 # OSF1 and SCO ODT 3.0 have their own names for install.
3977 # Don't use installbsd from OSF since it installs stuff as root 3922 # Don't use installbsd from OSF since it installs stuff as root
3978 # by default. 3923 # by default.
3979 for ac_prog in ginstall scoinst install; do 3924 for ac_prog in ginstall scoinst install; do
3980 for ac_exec_ext in '' $ac_executable_extensions; do 3925 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3926 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3982 if test $ac_prog = install && 3927 if test $ac_prog = install &&
3983 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3928 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3984 # AIX install. It has an incompatible calling convention. 3929 # AIX install. It has an incompatible calling convention.
3985 : 3930 :
3986 elif test $ac_prog = install && 3931 elif test $ac_prog = install &&
4034 3979
4035test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3980test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4036 3981
4037 3982
4038 3983
3984ac_ext=c
3985ac_cpp='$CPP $CPPFLAGS'
3986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3990$as_echo_n "checking how to run the C preprocessor... " >&6; }
3991# On Suns, sometimes $CPP names a directory.
3992if test -n "$CPP" && test -d "$CPP"; then
3993 CPP=
3994fi
3995if test -z "$CPP"; then
3996 if ${ac_cv_prog_CPP+:} false; then :
3997 $as_echo_n "(cached) " >&6
3998else
3999 # Double quotes because CPP needs to be expanded
4000 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4001 do
4002 ac_preproc_ok=false
4003for ac_c_preproc_warn_flag in '' yes
4004do
4005 # Use a header file that comes with gcc, so configuring glibc
4006 # with a fresh cross-compiler works.
4007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4008 # <limits.h> exists even on freestanding compilers.
4009 # On the NeXT, cc -E runs the code through the compiler's parser,
4010 # not just through cpp. "Syntax error" is here to catch this case.
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h. */
4013#ifdef __STDC__
4014# include <limits.h>
4015#else
4016# include <assert.h>
4017#endif
4018 Syntax error
4019_ACEOF
4020if ac_fn_c_try_cpp "$LINENO"; then :
4021
4022else
4023 # Broken: fails on valid input.
4024continue
4025fi
4026rm -f conftest.err conftest.i conftest.$ac_ext
4027
4028 # OK, works on sane cases. Now check whether nonexistent headers
4029 # can be detected and how.
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h. */
4032#include <ac_nonexistent.h>
4033_ACEOF
4034if ac_fn_c_try_cpp "$LINENO"; then :
4035 # Broken: success on invalid input.
4036continue
4037else
4038 # Passes both tests.
4039ac_preproc_ok=:
4040break
4041fi
4042rm -f conftest.err conftest.i conftest.$ac_ext
4043
4044done
4045# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4046rm -f conftest.i conftest.err conftest.$ac_ext
4047if $ac_preproc_ok; then :
4048 break
4049fi
4050
4051 done
4052 ac_cv_prog_CPP=$CPP
4053
4054fi
4055 CPP=$ac_cv_prog_CPP
4056else
4057 ac_cv_prog_CPP=$CPP
4058fi
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4060$as_echo "$CPP" >&6; }
4061ac_preproc_ok=false
4062for ac_c_preproc_warn_flag in '' yes
4063do
4064 # Use a header file that comes with gcc, so configuring glibc
4065 # with a fresh cross-compiler works.
4066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4067 # <limits.h> exists even on freestanding compilers.
4068 # On the NeXT, cc -E runs the code through the compiler's parser,
4069 # not just through cpp. "Syntax error" is here to catch this case.
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071/* end confdefs.h. */
4072#ifdef __STDC__
4073# include <limits.h>
4074#else
4075# include <assert.h>
4076#endif
4077 Syntax error
4078_ACEOF
4079if ac_fn_c_try_cpp "$LINENO"; then :
4080
4081else
4082 # Broken: fails on valid input.
4083continue
4084fi
4085rm -f conftest.err conftest.i conftest.$ac_ext
4086
4087 # OK, works on sane cases. Now check whether nonexistent headers
4088 # can be detected and how.
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090/* end confdefs.h. */
4091#include <ac_nonexistent.h>
4092_ACEOF
4093if ac_fn_c_try_cpp "$LINENO"; then :
4094 # Broken: success on invalid input.
4095continue
4096else
4097 # Passes both tests.
4098ac_preproc_ok=:
4099break
4100fi
4101rm -f conftest.err conftest.i conftest.$ac_ext
4102
4103done
4104# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4105rm -f conftest.i conftest.err conftest.$ac_ext
4106if $ac_preproc_ok; then :
4107
4108else
4109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4112See \`config.log' for more details" "$LINENO" 5; }
4113fi
4114
4115ac_ext=c
4116ac_cpp='$CPP $CPPFLAGS'
4117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120
4039 4121
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4122{ $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; } 4123$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4042if ${ac_cv_path_GREP+:} false; then : 4124if ${ac_cv_path_GREP+:} false; then :
4043 $as_echo_n "(cached) " >&6 4125 $as_echo_n "(cached) " >&6
4051 IFS=$as_save_IFS 4133 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=. 4134 test -z "$as_dir" && as_dir=.
4053 for ac_prog in grep ggrep; do 4135 for ac_prog in grep ggrep; do
4054 for ac_exec_ext in '' $ac_executable_extensions; do 4136 for ac_exec_ext in '' $ac_executable_extensions; do
4055 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4137 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4056 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4138 as_fn_executable_p "$ac_path_GREP" || continue
4057# Check for GNU ac_path_GREP and select it if it is found. 4139# Check for GNU ac_path_GREP and select it if it is found.
4058 # Check for GNU $ac_path_GREP 4140 # Check for GNU $ac_path_GREP
4059case `"$ac_path_GREP" --version 2>&1` in 4141case `"$ac_path_GREP" --version 2>&1` in
4060*GNU*) 4142*GNU*)
4061 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4143 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4117 IFS=$as_save_IFS 4199 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=. 4200 test -z "$as_dir" && as_dir=.
4119 for ac_prog in egrep; do 4201 for ac_prog in egrep; do
4120 for ac_exec_ext in '' $ac_executable_extensions; do 4202 for ac_exec_ext in '' $ac_executable_extensions; do
4121 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4203 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4122 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4204 as_fn_executable_p "$ac_path_EGREP" || continue
4123# Check for GNU ac_path_EGREP and select it if it is found. 4205# Check for GNU ac_path_EGREP and select it if it is found.
4124 # Check for GNU $ac_path_EGREP 4206 # Check for GNU $ac_path_EGREP
4125case `"$ac_path_EGREP" --version 2>&1` in 4207case `"$ac_path_EGREP" --version 2>&1` in
4126*GNU*) 4208*GNU*)
4127 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4209 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4324 $as_echo_n "(cached) " >&6 4406 $as_echo_n "(cached) " >&6
4325else 4407else
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327/* end confdefs.h. */ 4409/* end confdefs.h. */
4328 4410
4329# define __EXTENSIONS__ 1 4411# define __EXTENSIONS__ 1
4330 $ac_includes_default 4412 $ac_includes_default
4331int 4413int
4332main () 4414main ()
4333{ 4415{
4334 4416
4335 ; 4417 ;
4420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4423 4505
4424 4506
4507LINKER="$CXX"
4425if test x$GCC = xyes && test x$GXX = xyes; then 4508if test x$GCC = xyes && test x$GXX = xyes; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
4427$as_echo_n "checking for working libsupc++... " >&6; } 4510$as_echo_n "checking for working libsupc++... " >&6; }
4428 save_CXX="$CXX" 4511 save_CXX="$CXX"
4429 save_LIBS="$LIBS" 4512 save_LIBS="$LIBS"
4430 CXX="$CC" 4513 CXX="$CC"
4431 LIBS="$LIBS -lsupc++" 4514 LIBS="$LIBS -lsupc++"
4432 LINKER="$CC"
4433 4515
4434cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435/* end confdefs.h. */ 4517/* end confdefs.h. */
4436struct test { }; void f() try { throw new test; } catch (...) { throw; } 4518struct test { }; void f() try { throw new test; } catch (...) { throw; }
4437int 4519int
4443} 4525}
4444_ACEOF 4526_ACEOF
4445if ac_fn_cxx_try_link "$LINENO"; then : 4527if ac_fn_cxx_try_link "$LINENO"; then :
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4447$as_echo "ok" >&6; } 4529$as_echo "ok" >&6; }
4530 LINKER="$CC"
4448else 4531else
4449 4532
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
4451$as_echo "no, making everything bigger and slower" >&6; } 4534$as_echo "no, making everything bigger and slower" >&6; }
4452 LIBS="$save_LIBS" 4535 LIBS="$save_LIBS"
4453 LINKER="$save_CXX"
4454 4536
4455 4537
4456fi 4538fi
4457rm -f core conftest.err conftest.$ac_objext \ 4539rm -f core conftest.err conftest.$ac_objext \
4458 conftest$ac_exeext conftest.$ac_ext 4540 conftest$ac_exeext conftest.$ac_ext
4484 else 4566 else
4485 CXXFLAGS="-O" 4567 CXXFLAGS="-O"
4486 fi 4568 fi
4487 CFLAGS="$CXXFLAGS" 4569 CFLAGS="$CXXFLAGS"
4488fi 4570fi
4489
4490case $host in
4491 *-*-solaris* )
4492
4493$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4494
4495 ;;
4496esac
4497 4571
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5 4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
4499$as_echo_n "checking for library containing setlocale... " >&6; } 4573$as_echo_n "checking for library containing setlocale... " >&6; }
4500if ${ac_cv_search_setlocale+:} false; then : 4574if ${ac_cv_search_setlocale+:} false; then :
4501 $as_echo_n "(cached) " >&6 4575 $as_echo_n "(cached) " >&6
4678support_scroll_next=yes 4752support_scroll_next=yes
4679support_scroll_xterm=yes 4753support_scroll_xterm=yes
4680support_xim=yes 4754support_xim=yes
4681support_pixbuf=yes 4755support_pixbuf=yes
4682support_startup_notification=yes 4756support_startup_notification=yes
4683support_afterimage=yes
4684support_xft=yes 4757support_xft=yes
4685support_unicode3=no 4758support_unicode3=no
4686support_combining=yes 4759support_combining=yes
4687support_8bitctrls=no 4760support_8bitctrls=no
4688support_iso14755=yes 4761support_iso14755=yes
4711 support_utmp=no 4784 support_utmp=no
4712 support_wtmp=no 4785 support_wtmp=no
4713 support_xim=no 4786 support_xim=no
4714 support_pixbuf=no 4787 support_pixbuf=no
4715 support_startup_notification=no 4788 support_startup_notification=no
4716 support_afterimage=no
4717 support_xft=no 4789 support_xft=no
4718 support_unicode3=no 4790 support_unicode3=no
4719 support_combining=no 4791 support_combining=no
4720 support_8bitctrls=no 4792 support_8bitctrls=no
4721 support_iso14755=no 4793 support_iso14755=no
4740 support_utmp=yes 4812 support_utmp=yes
4741 support_wtmp=yes 4813 support_wtmp=yes
4742 support_xim=yes 4814 support_xim=yes
4743 support_pixbuf=yes 4815 support_pixbuf=yes
4744 support_startup_notification=yes 4816 support_startup_notification=yes
4745 support_afterimage=yes
4746 support_xft=yes 4817 support_xft=yes
4747 support_unicode3=yes 4818 support_unicode3=yes
4748 support_combining=yes 4819 support_combining=yes
4749 #support_8bitctrls=yes 4820 #support_8bitctrls=yes
4750 support_iso14755=yes 4821 support_iso14755=yes
4754 fi 4825 fi
4755 4826
4756fi 4827fi
4757 4828
4758 4829
4759ASSERTIONS=no 4830support_assertions=no
4760# Check whether --enable-assert was given. 4831# Check whether --enable-assert was given.
4761if test "${enable_assert+set}" = set; then : 4832if test "${enable_assert+set}" = set; then :
4762 enableval=$enable_assert; if test x$enableval = xyes; then 4833 enableval=$enable_assert; if test x$enableval = xyes; then
4763 ASSERTIONS=yes 4834 support_assertions=yes
4764 fi 4835 fi
4765fi 4836fi
4766 4837
4767if test x$ASSERTIONS = xno; then 4838if test x$support_assertions = xno; then
4768 4839
4769$as_echo "#define NDEBUG 1" >>confdefs.h 4840$as_echo "#define NDEBUG 1" >>confdefs.h
4770 4841
4771fi 4842fi
4772 4843
4773WARNINGS=no 4844support_warnings=no
4774# Check whether --enable-warnings was given. 4845# Check whether --enable-warnings was given.
4775if test "${enable_warnings+set}" = set; then : 4846if test "${enable_warnings+set}" = set; then :
4776 enableval=$enable_warnings; if test x$enableval = xyes; then 4847 enableval=$enable_warnings; if test x$enableval = xyes; then
4777 WARNINGS=yes 4848 support_warnings=yes
4778 fi 4849 fi
4779fi 4850fi
4780 4851
4781if test x$GXX = xyes; then 4852if test x$GXX = xyes; then
4782 if test $WARNINGS = yes; then 4853 if test $support_warnings = yes; then
4783 save_CXXFLAGS="$CXXFLAGS" 4854 save_CXXFLAGS="$CXXFLAGS"
4784 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" 4855 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value"
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786/* end confdefs.h. */ 4857/* end confdefs.h. */
4787 4858
4788int 4859int
4789main () 4860main ()
4848 support_styles=$enableval 4919 support_styles=$enableval
4849 fi 4920 fi
4850fi 4921fi
4851 4922
4852 4923
4853# Check whether --enable-afterimage was given.
4854if test "${enable_afterimage+set}" = set; then :
4855 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4856 support_afterimage=$enableval
4857 fi
4858fi
4859
4860
4861
4862# Check whether --with-afterimage_config was given.
4863if test "${with_afterimage_config+set}" = set; then :
4864 withval=$with_afterimage_config; if test "x$withval" != x; then
4865 afterimage_config=$withval/afterimage-config
4866 fi
4867fi
4868
4869
4870# Check whether --enable-pixbuf was given. 4924# Check whether --enable-pixbuf was given.
4871if test "${enable_pixbuf+set}" = set; then : 4925if test "${enable_pixbuf+set}" = set; then :
4872 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then 4926 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then
4873 support_pixbuf=$enableval 4927 support_pixbuf=$enableval
4874 fi 4928 fi
4964 5018
4965 fi 5019 fi
4966fi 5020fi
4967 5021
4968 5022
5023support_resources=yes
4969# Check whether --enable-resources was given. 5024# Check whether --enable-resources was given.
4970if test "${enable_resources+set}" = set; then : 5025if test "${enable_resources+set}" = set; then :
4971 enableval=$enable_resources; if test x$enableval = xno; then 5026 enableval=$enable_resources; if test x$enableval = xno; then
4972 5027 support_resources=no
4973$as_echo "#define NO_RESOURCES 1" >>confdefs.h
4974
4975 fi 5028 fi
4976fi 5029fi
4977 5030
4978 5031
4979# Check whether --enable-8bitctrls was given. 5032# Check whether --enable-8bitctrls was given.
5151_ACEOF 5204_ACEOF
5152 terminfo="$withval" 5205 terminfo="$withval"
5153 fi 5206 fi
5154fi 5207fi
5155 5208
5209
5210if test x$support_resources = xno; then
5211 if test x$support_frills = xyes || test x$support_perl = xyes; then
5212 as_fn_error $? "--disable-resources requires --disable-frills --disable-perl" "$LINENO" 5
5213 fi
5214
5215
5216$as_echo "#define NO_RESOURCES 1" >>confdefs.h
5217
5218fi
5156 5219
5157 5220
5158LIBEV_M4_AVOID_LIBRT=1 5221LIBEV_M4_AVOID_LIBRT=1
5159 5222
5160ac_ext=cpp 5223ac_ext=cpp
5289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5352ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5353ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5354ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5292 5355
5293 5356
5294for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h 5357for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h
5358do :
5359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5360ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5361if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5362 cat >>confdefs.h <<_ACEOF
5363#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5364_ACEOF
5365
5366fi
5367
5368done
5369
5370for ac_header in sys/select.h sys/eventfd.h sys/signalfd.h linux/aio_abi.h
5295do : 5371do :
5296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5297ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5373ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5298if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5374if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5299 cat >>confdefs.h <<_ACEOF 5375 cat >>confdefs.h <<_ACEOF
5577for as_dir in $PATH 5653for as_dir in $PATH
5578do 5654do
5579 IFS=$as_save_IFS 5655 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=. 5656 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do 5657 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext" 5659 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 break 2 5661 break 2
5586 fi 5662 fi
5587done 5663done
6285 LDFLAGS=$ac_save_LDFLAGS 6361 LDFLAGS=$ac_save_LDFLAGS
6286 6362
6287fi 6363fi
6288 6364
6289 6365
6290image_lib=none 6366if test -n "$ac_tool_prefix"; then
6291
6292PIXBUF_CFLAGS=
6293PIXBUF_LIBS=
6294
6295if test x$support_pixbuf = xyes; then
6296 support_pixbuf=no
6297 # Extract the first word of "pkg-config", so it can be a program name with args. 6367 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6298set dummy pkg-config; ac_word=$2 6368set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300$as_echo_n "checking for $ac_word... " >&6; } 6370$as_echo_n "checking for $ac_word... " >&6; }
6301if ${ac_cv_path_PKG_CONFIG+:} false; then : 6371if ${ac_cv_path_PKG_CONFIG+:} false; then :
6302 $as_echo_n "(cached) " >&6 6372 $as_echo_n "(cached) " >&6
6303else 6373else
6310for as_dir in $PATH 6380for as_dir in $PATH
6311do 6381do
6312 IFS=$as_save_IFS 6382 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=. 6383 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do 6384 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6316 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6386 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2 6388 break 2
6319 fi 6389 fi
6320done 6390done
6321 done 6391 done
6322IFS=$as_save_IFS 6392IFS=$as_save_IFS
6323 6393
6324 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6325 ;; 6394 ;;
6326esac 6395esac
6327fi 6396fi
6328PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6397PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6329if test -n "$PKG_CONFIG"; then 6398if test -n "$PKG_CONFIG"; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334$as_echo "no" >&6; } 6403$as_echo "no" >&6; }
6335fi 6404fi
6336 6405
6337 6406
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5
6339$as_echo_n "checking for gdk-pixbuf... " >&6; }
6340 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
6341 PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`"
6342 PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`"
6343 support_pixbuf=yes
6344 fi
6345
6346 if test x$support_pixbuf = xyes; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6348$as_echo "ok" >&6; }
6349 image_lib=gdk-pixbuf
6350 support_afterimage=no
6351
6352$as_echo "#define HAVE_PIXBUF 1" >>confdefs.h
6353
6354
6355$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6356
6357 else
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359$as_echo "no" >&6; }
6360 fi
6361fi 6407fi
6362 6408if test -z "$ac_cv_path_PKG_CONFIG"; then
6363 6409 ac_pt_PKG_CONFIG=$PKG_CONFIG
6364
6365
6366STARTUP_NOTIFICATION_CFLAGS=
6367STARTUP_NOTIFICATION_LIBS=
6368
6369if test x$support_startup_notification = xyes; then
6370 support_startup_notification=no
6371 # Extract the first word of "pkg-config", so it can be a program name with args. 6410 # Extract the first word of "pkg-config", so it can be a program name with args.
6372set dummy pkg-config; ac_word=$2 6411set dummy pkg-config; ac_word=$2
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374$as_echo_n "checking for $ac_word... " >&6; } 6413$as_echo_n "checking for $ac_word... " >&6; }
6375if ${ac_cv_path_PKG_CONFIG+:} false; then : 6414if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6376 $as_echo_n "(cached) " >&6 6415 $as_echo_n "(cached) " >&6
6377else 6416else
6378 case $PKG_CONFIG in 6417 case $ac_pt_PKG_CONFIG in
6379 [\\/]* | ?:[\\/]*) 6418 [\\/]* | ?:[\\/]*)
6380 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6419 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6381 ;; 6420 ;;
6382 *) 6421 *)
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH 6423for as_dir in $PATH
6385do 6424do
6386 IFS=$as_save_IFS 6425 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=. 6426 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do 6427 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6390 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6429 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2 6431 break 2
6393 fi 6432 fi
6394done 6433done
6395 done 6434 done
6396IFS=$as_save_IFS 6435IFS=$as_save_IFS
6397 6436
6398 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6399 ;; 6437 ;;
6400esac 6438esac
6401fi 6439fi
6402PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6440ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6403if test -n "$PKG_CONFIG"; then 6441if test -n "$ac_pt_PKG_CONFIG"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6405$as_echo "$PKG_CONFIG" >&6; } 6443$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6406else 6444else
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408$as_echo "no" >&6; } 6446$as_echo "no" >&6; }
6409fi 6447fi
6410 6448
6449 if test "x$ac_pt_PKG_CONFIG" = x; then
6450 PKG_CONFIG="no"
6451 else
6452 case $cross_compiling:$ac_tool_warned in
6453yes:)
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456ac_tool_warned=yes ;;
6457esac
6458 PKG_CONFIG=$ac_pt_PKG_CONFIG
6459 fi
6460else
6461 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6462fi
6411 6463
6464
6465image_lib=none
6466
6467PIXBUF_CFLAGS=
6468PIXBUF_LIBS=
6469
6470if test x$support_pixbuf = xyes; then
6471
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0" >&5
6413$as_echo_n "checking for libstartup-notification... " >&6; } 6473$as_echo_n "checking for gdk-pixbuf-2.0... " >&6; }
6414 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then 6474 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
6415 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" 6475 PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`"
6416 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" 6476 PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`"
6417 support_startup_notification=yes
6418 fi
6419 6477
6420 if test x$support_startup_notification = xyes; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6422$as_echo "ok" >&6; } 6479$as_echo "ok" >&6; }
6423 6480
6481 image_lib=gdk-pixbuf
6482
6424$as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h 6483$as_echo "#define HAVE_PIXBUF 1" >>confdefs.h
6484
6425 6485
6426 else 6486 else
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428$as_echo "no" >&6; } 6488$as_echo "no" >&6; }
6489 :
6429 fi 6490 fi
6430fi
6431 6491
6492fi
6432 6493
6433 6494
6434 6495
6435AFTERIMAGE_CFLAGS=
6436AFTERIMAGE_LIBS=
6437AFTERIMAGE_VERSION=
6438 6496
6497STARTUP_NOTIFICATION_CFLAGS=
6498STARTUP_NOTIFICATION_LIBS=
6499
6439if test x$support_afterimage = xyes; then 6500if test x$support_startup_notification = xyes; then
6440 support_afterimage=no
6441 6501
6442 if test "x$afterimage_config" = "x" ; then
6443 # Extract the first word of "afterimage-config", so it can be a program name with args.
6444set dummy afterimage-config; ac_word=$2
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0" >&5
6446$as_echo_n "checking for $ac_word... " >&6; } 6503$as_echo_n "checking for libstartup-notification-1.0... " >&6; }
6447if ${ac_cv_path_afterimage_config+:} false; then : 6504 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
6448 $as_echo_n "(cached) " >&6 6505 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`"
6449else 6506 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`"
6450 case $afterimage_config in
6451 [\\/]* | ?:[\\/]*)
6452 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6453 ;;
6454 *)
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466done
6467 done
6468IFS=$as_save_IFS
6469 6507
6470 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6471 ;;
6472esac
6473fi
6474afterimage_config=$ac_cv_path_afterimage_config
6475if test -n "$afterimage_config"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afterimage_config" >&5 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6477$as_echo "$afterimage_config" >&6; } 6509$as_echo "ok" >&6; }
6510
6511
6512$as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
6513
6514
6478else 6515 else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480$as_echo "no" >&6; } 6517$as_echo "no" >&6; }
6481fi 6518 :
6482
6483
6484 fi
6485 if test "x$afterimage_config" != "xno" ; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5
6487$as_echo_n "checking for libAfterImage version >= 1.15... " >&6; }
6488 xAFTERIMAGE_VERSION=`$afterimage_config --version`
6489 if test -n "$xAFTERIMAGE_VERSION" ; then
6490 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6491 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6492 if test "x$xAFTERIMAGE_LIBS" != "x"; then
6493 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
6494 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
6495 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6496 support_afterimage=yes
6497 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6498 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6499 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6500 fi
6501 fi
6502 fi 6519 fi
6520
6521fi
6522
6523
6524
6525
6503 if test "x$support_afterimage" = "xyes"; then 6526if test x$support_frills = xyes; then
6527
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmu" >&5
6529$as_echo_n "checking for xmu... " >&6; }
6530 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then
6531 XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`"
6532 XMU_LIBS="`$PKG_CONFIG --libs xmu`"
6533
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6505$as_echo "$AFTERIMAGE_LIBS" >&6; } 6535$as_echo "ok" >&6; }
6506 image_lib=libafterimage
6507 6536
6537 X_LIBS="$XMU_LIBS $X_LIBS"
6538 CPPFLAGS="$CPPFLAGS $XMU_CFLAGS"
6539
6508$as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h 6540$as_echo "#define HAVE_XMU 1" >>confdefs.h
6509 6541
6510 6542
6511$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6512
6513 else 6543 else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515$as_echo "no" >&6; } 6545$as_echo "no" >&6; }
6546 :
6516 fi 6547 fi
6517 fi
6518fi
6519 6548
6520 6549fi
6521
6522 6550
6523for ac_header in \ 6551for ac_header in \
6524 sys/byteorder.h \ 6552 sys/byteorder.h \
6525 sys/ioctl.h \ 6553 sys/ioctl.h \
6526 sys/sockio.h \ 6554 sys/sockio.h \
6527 sys/strredir.h \ 6555 sys/strredir.h \
6528 stdint.h \ 6556 stdint.h \
6529 wchar.h \ 6557 wchar.h \
6530 cwchar \
6531 6558
6532do : 6559do :
6533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6534ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6561ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6535if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6562if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6766fi 6793fi
6767 6794
6768done 6795done
6769 6796
6770 6797
6798case $host in
6799 *-*-solaris*)
6800
6801$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6802
6803 ;;
6804esac
6805
6771 6806
6772for ac_header in utmp.h 6807for ac_header in utmp.h
6773do : 6808do :
6774 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" 6809 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6775if test "x$ac_cv_header_utmp_h" = xyes; then : 6810if test "x$ac_cv_header_utmp_h" = xyes; then :
6776 cat >>confdefs.h <<_ACEOF 6811 cat >>confdefs.h <<_ACEOF
6777#define HAVE_UTMP_H 1 6812#define HAVE_UTMP_H 1
6778_ACEOF 6813_ACEOF
6814
6779 ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" " 6815ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
6780#include <sys/types.h> 6816#include <sys/types.h>
6781#include <utmp.h> 6817#include <utmp.h>
6782 6818
6783" 6819"
6784if test "x$ac_cv_type_struct_utmp" = xyes; then : 6820if test "x$ac_cv_type_struct_utmp" = xyes; then :
6789 6825
6790 6826
6791fi 6827fi
6792 6828
6793 6829
6794
6795# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
6796# ------------------------------------------------------
6797# Tries to find if the field MEMBER exists in type AGGR, after including
6798# INCLUDES, setting cache variable VAR accordingly.
6799ac_fn_cxx_check_member ()
6800{
6801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
6803$as_echo_n "checking for $2.$3... " >&6; }
6804if eval \${$4+:} false; then :
6805 $as_echo_n "(cached) " >&6
6806else
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h. */
6809$5
6810int
6811main ()
6812{
6813static $2 ac_aggr;
6814if (ac_aggr.$3)
6815return 0;
6816 ;
6817 return 0;
6818}
6819_ACEOF
6820if ac_fn_cxx_try_compile "$LINENO"; then :
6821 eval "$4=yes"
6822else
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824/* end confdefs.h. */
6825$5
6826int
6827main ()
6828{
6829static $2 ac_aggr;
6830if (sizeof ac_aggr.$3)
6831return 0;
6832 ;
6833 return 0;
6834}
6835_ACEOF
6836if ac_fn_cxx_try_compile "$LINENO"; then :
6837 eval "$4=yes"
6838else
6839 eval "$4=no"
6840fi
6841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6842fi
6843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844fi
6845eval ac_res=\$$4
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6847$as_echo "$ac_res" >&6; }
6848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6849
6850} # ac_fn_cxx_check_member
6851ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " 6830ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
6852#include <sys/types.h> 6831#include <sys/types.h>
6853#include <utmp.h> 6832#include <utmp.h>
6854 6833
6855" 6834"
6882 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" 6861 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6883if test "x$ac_cv_header_utmpx_h" = xyes; then : 6862if test "x$ac_cv_header_utmpx_h" = xyes; then :
6884 cat >>confdefs.h <<_ACEOF 6863 cat >>confdefs.h <<_ACEOF
6885#define HAVE_UTMPX_H 1 6864#define HAVE_UTMPX_H 1
6886_ACEOF 6865_ACEOF
6866
6887 ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" " 6867ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" "
6888#include <sys/types.h> 6868#include <sys/types.h>
6889#include <utmpx.h> 6869#include <utmpx.h>
6890 6870
6891" 6871"
6892if test "x$ac_cv_type_struct_utmpx" = xyes; then : 6872if test "x$ac_cv_type_struct_utmpx" = xyes; then :
6905 6885
6906" 6886"
6907if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then : 6887if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
6908 6888
6909$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h 6889$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
6910
6911fi
6912
6913
6914ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_session" "ac_cv_member_struct_utmpx_ut_session" "
6915#include <sys/types.h>
6916#include <utmpx.h>
6917
6918"
6919if test "x$ac_cv_member_struct_utmpx_ut_session" = xyes; then :
6920
6921$as_echo "#define HAVE_UTMPX_SESSION 1" >>confdefs.h
6922 6890
6923fi 6891fi
6924 6892
6925 6893
6926fi 6894fi
7054if ${pt_cv_path_lastlog+:} false; then : 7022if ${pt_cv_path_lastlog+:} false; then :
7055 $as_echo_n "(cached) " >&6 7023 $as_echo_n "(cached) " >&6
7056else 7024else
7057 7025
7058if test "$cross_compiling" != yes; then 7026if test "$cross_compiling" != yes; then
7059 for file in "/var/log/lastlog"; do 7027 for file in "/var/log/lastlog" "/var/adm/lastlog"; do
7060 if test -f "$file"; then 7028 if test -f "$file"; then
7061 pt_cv_path_lastlog=$file 7029 pt_cv_path_lastlog=$file
7062 break 7030 break
7063 fi 7031 fi
7064 done 7032 done
7107 7075
7108 7076
7109 7077
7110 7078
7111save_LIBS=$LIBS 7079save_LIBS=$LIBS
7112save_CFLAGS=$CFLAGS 7080save_CXXFLAGS=$CXXFLAGS
7113CFLAGS="$CFLAGS $X_CFLAGS" 7081CXXFLAGS="$CXXFLAGS $X_CFLAGS"
7114LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 7082LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7115if test x$support_xim = xyes; then 7083if test x$support_xim = xyes; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
7117$as_echo_n "checking for working Xlocale... " >&6; } 7085$as_echo_n "checking for working Xlocale... " >&6; }
7118if ${rxvt_cv_func_xlocale+:} false; then : 7086if ${rxvt_cv_func_xlocale+:} false; then :
7218 7186
7219$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h 7187$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
7220 7188
7221fi 7189fi
7222LIBS=$save_LIBS 7190LIBS=$save_LIBS
7223CFLAGS=$save_CFLAGS 7191CXXFLAGS=$save_CXXFLAGS
7224
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5
7226$as_echo_n "checking for working plain setlocale... " >&6; }
7227if ${rxvt_cv_func_setlocale+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229else
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231/* end confdefs.h. */
7232#include <clocale>
7233int
7234main ()
7235{
7236setlocale(LC_CTYPE, "");
7237 ;
7238 return 0;
7239}
7240_ACEOF
7241if ac_fn_cxx_try_link "$LINENO"; then :
7242 rxvt_cv_func_setlocale=yes
7243else
7244 rxvt_cv_func_setlocale=no
7245fi
7246rm -f core conftest.err conftest.$ac_objext \
7247 conftest$ac_exeext conftest.$ac_ext
7248fi
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5
7250$as_echo "$rxvt_cv_func_setlocale" >&6; }
7251if test x$rxvt_cv_func_setlocale = xyes; then
7252
7253$as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
7254
7255fi
7256 7192
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5 7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
7258$as_echo_n "checking for working nl_langinfo... " >&6; } 7194$as_echo_n "checking for working nl_langinfo... " >&6; }
7259if ${rxvt_cv_func_nl_langinfo+:} false; then : 7195if ${rxvt_cv_func_nl_langinfo+:} false; then :
7260 $as_echo_n "(cached) " >&6 7196 $as_echo_n "(cached) " >&6
7285$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h 7221$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7286 7222
7287fi 7223fi
7288 7224
7289 7225
7226
7227case $host in
7228 *-*-solaris*)
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230/* end confdefs.h. */
7231
7232#if __STDC_VERSION__ >= 199901L
7233error
7234#endif
7235
7236int
7237main ()
7238{
7239
7240 ;
7241 return 0;
7242}
7243_ACEOF
7244if ac_fn_cxx_try_compile "$LINENO"; then :
7245 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7246
7247else
7248 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
7249
7250fi
7251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
7253$as_echo_n "checking for library containing sendmsg... " >&6; }
7254if ${ac_cv_search_sendmsg+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256else
7257 ac_func_search_save_LIBS=$LIBS
7258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259/* end confdefs.h. */
7260
7261/* Override any GCC internal prototype to avoid an error.
7262 Use char because int might match the return type of a GCC
7263 builtin and then its argument prototype would still apply. */
7264#ifdef __cplusplus
7265extern "C"
7266#endif
7267char sendmsg ();
7268int
7269main ()
7270{
7271return sendmsg ();
7272 ;
7273 return 0;
7274}
7275_ACEOF
7276for ac_lib in '' socket; do
7277 if test -z "$ac_lib"; then
7278 ac_res="none required"
7279 else
7280 ac_res=-l$ac_lib
7281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7282 fi
7283 if ac_fn_cxx_try_link "$LINENO"; then :
7284 ac_cv_search_sendmsg=$ac_res
7285fi
7286rm -f core conftest.err conftest.$ac_objext \
7287 conftest$ac_exeext
7288 if ${ac_cv_search_sendmsg+:} false; then :
7289 break
7290fi
7291done
7292if ${ac_cv_search_sendmsg+:} false; then :
7293
7294else
7295 ac_cv_search_sendmsg=no
7296fi
7297rm conftest.$ac_ext
7298LIBS=$ac_func_search_save_LIBS
7299fi
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
7301$as_echo "$ac_cv_search_sendmsg" >&6; }
7302ac_res=$ac_cv_search_sendmsg
7303if test "$ac_res" != no; then :
7304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7305
7306fi
7307
7308 ;;
7309esac
7310
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
7291$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; } 7312$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
7292if ${pt_cv_can_pass_fds+:} false; then : 7313if ${pt_cv_can_pass_fds+:} false; then :
7293 $as_echo_n "(cached) " >&6 7314 $as_echo_n "(cached) " >&6
7294else 7315else
7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296/* end confdefs.h. */ 7317/* end confdefs.h. */
7297 7318
7298#include <cstddef> // broken bsds (is that redundant?) need this 7319#include <stddef.h> // broken bsds (is that redundant?) need this
7299#include <sys/types.h> 7320#include <sys/types.h>
7300#include <sys/socket.h> 7321#include <sys/socket.h>
7301#include <sys/uio.h> 7322#include <sys/uio.h>
7302 7323
7303int 7324int
7355for ac_header in \ 7376for ac_header in \
7356 pty.h \ 7377 pty.h \
7357 util.h \ 7378 util.h \
7358 libutil.h \ 7379 libutil.h \
7359 sys/ioctl.h \ 7380 sys/ioctl.h \
7360 sys/stropts.h \
7361 stropts.h \ 7381 stropts.h \
7362 7382
7363do : 7383do :
7364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7365ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7385ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7534 7554
7535$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h 7555$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
7536 7556
7537fi 7557fi
7538 7558
7559support_image=no
7560if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then
7561 support_image=yes
7562fi
7539if test x$support_xft = xyes || test x$support_inheritpixmap = xyes; then 7563if test x$support_xft = xyes || test x$support_image = xyes; then
7540 rxvt_have_xrender=no 7564 rxvt_have_xrender=no
7541 # Extract the first word of "pkg-config", so it can be a program name with args. 7565
7542set dummy pkg-config; ac_word=$2
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xrender" >&5
7544$as_echo_n "checking for $ac_word... " >&6; } 7567$as_echo_n "checking for xrender... " >&6; }
7545if ${ac_cv_path_PKG_CONFIG+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547else
7548 case $PKG_CONFIG in
7549 [\\/]* | ?:[\\/]*)
7550 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7551 ;;
7552 *)
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7563 fi
7564done
7565 done
7566IFS=$as_save_IFS
7567
7568 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7569 ;;
7570esac
7571fi
7572PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7573if test -n "$PKG_CONFIG"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7575$as_echo "$PKG_CONFIG" >&6; }
7576else
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578$as_echo "no" >&6; }
7579fi
7580
7581
7582 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then 7568 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
7583 X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" 7569 XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`"
7584 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" 7570 XRENDER_LIBS="`$PKG_CONFIG --libs xrender`"
7571
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7573$as_echo "ok" >&6; }
7574
7575 X_LIBS="$XRENDER_LIBS $X_LIBS"
7576 CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS"
7585 rxvt_have_xrender=yes 7577 rxvt_have_xrender=yes
7586 7578
7587 save_LIBS="$LIBS" 7579 save_LIBS="$LIBS"
7588 LIBS="$LIBS $X_LIBS" 7580 LIBS="$LIBS $X_LIBS"
7589 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default" 7581 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
7600else 7592else
7601 rxvt_have_xrender=no 7593 rxvt_have_xrender=no
7602fi 7594fi
7603 7595
7604 LIBS="$save_LIBS" 7596 LIBS="$save_LIBS"
7597
7598 else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600$as_echo "no" >&6; }
7601 :
7605 fi 7602 fi
7603
7606fi 7604fi
7607 7605
7608if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then 7606if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
7609 # Extract the first word of "pkg-config", so it can be a program name with args. 7607
7610set dummy pkg-config; ac_word=$2
7611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft" >&5
7612$as_echo_n "checking for $ac_word... " >&6; } 7609$as_echo_n "checking for fontconfig xft... " >&6; }
7613if ${ac_cv_path_PKG_CONFIG+:} false; then : 7610 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then
7614 $as_echo_n "(cached) " >&6 7611 XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`"
7615else 7612 XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`"
7616 case $PKG_CONFIG in
7617 [\\/]* | ?:[\\/]*)
7618 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7619 ;;
7620 *)
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622for as_dir in $PATH
7623do
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 break 2
7631 fi
7632done
7633 done
7634IFS=$as_save_IFS
7635 7613
7636 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7637 ;;
7638esac
7639fi
7640PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7641if test -n "$PKG_CONFIG"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7643$as_echo "$PKG_CONFIG" >&6; } 7615$as_echo "ok" >&6; }
7616
7617 X_LIBS="$XFT_LIBS $X_LIBS"
7618 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
7619
7644else 7620 else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; } 7622$as_echo "no" >&6; }
7647fi
7648 7623
7649
7650 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
7651 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
7652 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
7653 else
7654 # Extract the first word of "xft-config", so it can be a program name with args. 7624 # Extract the first word of "xft-config", so it can be a program name with args.
7655set dummy xft-config; ac_word=$2 7625set dummy xft-config; ac_word=$2
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657$as_echo_n "checking for $ac_word... " >&6; } 7627$as_echo_n "checking for $ac_word... " >&6; }
7658if ${ac_cv_path_XFT_CONFIG+:} false; then : 7628if ${ac_cv_path_XFT_CONFIG+:} false; then :
7667for as_dir in $PATH 7637for as_dir in $PATH
7668do 7638do
7669 IFS=$as_save_IFS 7639 IFS=$as_save_IFS
7670 test -z "$as_dir" && as_dir=. 7640 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do 7641 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7673 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7643 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 break 2 7645 break 2
7676 fi 7646 fi
7677done 7647done
7694 7664
7695 if test $XFT_CONFIG != no; then 7665 if test $XFT_CONFIG != no; then
7696 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" 7666 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7697 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 7667 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
7698 fi 7668 fi
7699 fi
7700 7669
7701 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then
7702 X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS"
7703 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
7704 fi 7670 fi
7671
7705 7672
7706 save_LIBS="$LIBS" 7673 save_LIBS="$LIBS"
7707 LIBS="$LIBS $X_LIBS" 7674 LIBS="$LIBS $X_LIBS"
7708 for ac_header in X11/Xft/Xft.h 7675 for ac_header in X11/Xft/Xft.h fontconfig/fontconfig.h
7709do : 7676do :
7677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7710 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" 7678ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7711if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then : 7679if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7712 cat >>confdefs.h <<_ACEOF 7680 cat >>confdefs.h <<_ACEOF
7713#define HAVE_X11_XFT_XFT_H 1 7681#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7714_ACEOF 7682_ACEOF
7715 7683
7716else 7684else
7717 support_xft=no 7685 support_xft=no
7718fi 7686fi
7719 7687
7720done 7688done
7721 7689
7690 for ac_func in XftDrawString32 FcPatternGet
7691do :
7692 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7693ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7694if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7695 cat >>confdefs.h <<_ACEOF
7696#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7697_ACEOF
7698
7699else
7700 support_xft=no
7701fi
7702done
7703
7704 LIBS="$save_LIBS"
7705
7706 if test x$support_xft = xyes; then
7707
7708$as_echo "#define XFT 1" >>confdefs.h
7709
7710 fi
7711fi
7712
7713if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5 7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Render >= 0.11" >&5
7723$as_echo_n "checking for XftDrawString32 in -lXft... " >&6; } 7715$as_echo_n "checking for Render >= 0.11... " >&6; }
7724if ${ac_cv_lib_Xft_XftDrawString32+:} false; then :
7725 $as_echo_n "(cached) " >&6
7726else
7727 ac_check_lib_save_LIBS=$LIBS
7728LIBS="-lXft $LIBS"
7729cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730/* end confdefs.h. */ 7717/* end confdefs.h. */
7731 7718
7732/* Override any GCC internal prototype to avoid an error. 7719#include <X11/extensions/Xrender.h>
7733 Use char because int might match the return type of a GCC 7720#if RENDER_MAJOR == 0 && RENDER_MINOR <= 10
7734 builtin and then its argument prototype would still apply. */ 7721error
7735#ifdef __cplusplus
7736extern "C"
7737#endif 7722#endif
7738char XftDrawString32 (); 7723
7739int 7724int
7740main () 7725main ()
7741{ 7726{
7742return XftDrawString32 (); 7727
7743 ; 7728 ;
7744 return 0; 7729 return 0;
7745} 7730}
7746_ACEOF 7731_ACEOF
7747if ac_fn_cxx_try_link "$LINENO"; then : 7732if ac_fn_cxx_try_compile "$LINENO"; then :
7748 ac_cv_lib_Xft_XftDrawString32=yes 7733
7749else 7734else
7750 ac_cv_lib_Xft_XftDrawString32=no 7735 support_image=no
7751fi 7736fi
7752rm -f core conftest.err conftest.$ac_objext \ 7737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 conftest$ac_exeext conftest.$ac_ext
7754LIBS=$ac_check_lib_save_LIBS
7755fi
7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
7757$as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
7758if test "x$ac_cv_lib_Xft_XftDrawString32" = xyes; then :
7759 :
7760else
7761 support_xft=no
7762fi
7763
7764 for ac_header in fontconfig/fontconfig.h
7765do :
7766 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
7767if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
7768 cat >>confdefs.h <<_ACEOF
7769#define HAVE_FONTCONFIG_FONTCONFIG_H 1
7770_ACEOF
7771
7772else
7773 support_xft=no
7774fi
7775
7776done
7777
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5
7779$as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; }
7780if ${ac_cv_lib_fontconfig_FcPatternGet+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782else
7783 ac_check_lib_save_LIBS=$LIBS
7784LIBS="-lfontconfig $LIBS"
7785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h. */
7787
7788/* Override any GCC internal prototype to avoid an error.
7789 Use char because int might match the return type of a GCC
7790 builtin and then its argument prototype would still apply. */
7791#ifdef __cplusplus
7792extern "C"
7793#endif
7794char FcPatternGet ();
7795int
7796main ()
7797{
7798return FcPatternGet ();
7799 ;
7800 return 0;
7801}
7802_ACEOF
7803if ac_fn_cxx_try_link "$LINENO"; then :
7804 ac_cv_lib_fontconfig_FcPatternGet=yes
7805else
7806 ac_cv_lib_fontconfig_FcPatternGet=no
7807fi
7808rm -f core conftest.err conftest.$ac_objext \
7809 conftest$ac_exeext conftest.$ac_ext
7810LIBS=$ac_check_lib_save_LIBS
7811fi
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5
7813$as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; }
7814if test "x$ac_cv_lib_fontconfig_FcPatternGet" = xyes; then :
7815 :
7816else
7817 support_xft=no
7818fi
7819
7820 LIBS="$save_LIBS"
7821
7822 if test x$support_xft = xyes; then 7738 if test x$support_image = xyes; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7740$as_echo "ok" >&6; }
7741 LIBS="$LIBS -lm"
7823 7742
7824$as_echo "#define XFT 1" >>confdefs.h 7743$as_echo "#define XRENDER 1" >>confdefs.h
7825 7744
7745
7746 if test x$support_inheritpixmap = xyes; then
7747
7748$as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7749
7826 fi 7750 fi
7751 else
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753$as_echo "no" >&6; }
7754 fi
7827fi 7755fi
7756
7828if test x$support_styles = xyes; then 7757if test x$support_styles = xyes; then
7829 7758
7830$as_echo "#define ENABLE_STYLES 1" >>confdefs.h 7759$as_echo "#define ENABLE_STYLES 1" >>confdefs.h
7831 7760
7832fi 7761fi
7841 7770
7842fi 7771fi
7843if test x$support_fading = xyes; then 7772if test x$support_fading = xyes; then
7844 7773
7845$as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h 7774$as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h
7846
7847fi
7848if test x$support_inheritpixmap = xyes; then
7849 if test x$rxvt_have_xrender = xyes; then
7850 LIBS="$LIBS -lm"
7851
7852$as_echo "#define XRENDER 1" >>confdefs.h
7853
7854 fi
7855
7856$as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7857 7775
7858fi 7776fi
7859if test x$support_keepscrolling = xno; then 7777if test x$support_keepscrolling = xno; then
7860 7778
7861$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h 7779$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
7972for as_dir in $PATH 7890for as_dir in $PATH
7973do 7891do
7974 IFS=$as_save_IFS 7892 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=. 7893 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do 7894 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7978 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 7896 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2 7898 break 2
7981 fi 7899 fi
7982done 7900done
7983 done 7901 done
7984IFS=$as_save_IFS 7902IFS=$as_save_IFS
7985 7903
7986 ;; 7904 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
7987esac
7988fi
7989PERL=$ac_cv_path_PERL
7990if test -n "$PERL"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7992$as_echo "$PERL" >&6; }
7993else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995$as_echo "no" >&6; }
7996fi
7997
7998
7999 # Extract the first word of "perl", so it can be a program name with args.
8000set dummy perl; ac_word=$2
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002$as_echo_n "checking for $ac_word... " >&6; }
8003if ${ac_cv_path_PERL+:} false; then :
8004 $as_echo_n "(cached) " >&6
8005else
8006 case $PERL in
8007 [\\/]* | ?:[\\/]*)
8008 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8009 ;;
8010 *)
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012for as_dir in $PATH
8013do
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8021 fi
8022done
8023 done
8024IFS=$as_save_IFS
8025
8026 ;; 7905 ;;
8027esac 7906esac
8028fi 7907fi
8029PERL=$ac_cv_path_PERL 7908PERL=$ac_cv_path_PERL
8030if test -n "$PERL"; then 7909if test -n "$PERL"; then
8505 if ln -s conf$$.file conf$$ 2>/dev/null; then 8384 if ln -s conf$$.file conf$$ 2>/dev/null; then
8506 as_ln_s='ln -s' 8385 as_ln_s='ln -s'
8507 # ... but there are two gotchas: 8386 # ... but there are two gotchas:
8508 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8387 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8509 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8388 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8510 # In both cases, we have to default to `cp -p'. 8389 # In both cases, we have to default to `cp -pR'.
8511 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8390 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8512 as_ln_s='cp -p' 8391 as_ln_s='cp -pR'
8513 elif ln conf$$.file conf$$ 2>/dev/null; then 8392 elif ln conf$$.file conf$$ 2>/dev/null; then
8514 as_ln_s=ln 8393 as_ln_s=ln
8515 else 8394 else
8516 as_ln_s='cp -p' 8395 as_ln_s='cp -pR'
8517 fi 8396 fi
8518else 8397else
8519 as_ln_s='cp -p' 8398 as_ln_s='cp -pR'
8520fi 8399fi
8521rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8400rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8522rmdir conf$$.dir 2>/dev/null 8401rmdir conf$$.dir 2>/dev/null
8523 8402
8524 8403
8574else 8453else
8575 test -d ./-p && rmdir ./-p 8454 test -d ./-p && rmdir ./-p
8576 as_mkdir_p=false 8455 as_mkdir_p=false
8577fi 8456fi
8578 8457
8579if test -x / >/dev/null 2>&1; then 8458
8459# as_fn_executable_p FILE
8460# -----------------------
8461# Test if FILE is an executable regular file.
8462as_fn_executable_p ()
8463{
8464 test -f "$1" && test -x "$1"
8465} # as_fn_executable_p
8580 as_test_x='test -x' 8466as_test_x='test -x'
8581else 8467as_executable_p=as_fn_executable_p
8582 if ls -dL / >/dev/null 2>&1; then
8583 as_ls_L_option=L
8584 else
8585 as_ls_L_option=
8586 fi
8587 as_test_x='
8588 eval sh -c '\''
8589 if test -d "$1"; then
8590 test -d "$1/.";
8591 else
8592 case $1 in #(
8593 -*)set "./$1";;
8594 esac;
8595 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8596 ???[sx]*):;;*)false;;esac;fi
8597 '\'' sh
8598 '
8599fi
8600as_executable_p=$as_test_x
8601 8468
8602# Sed expression to map a string onto a valid CPP name. 8469# Sed expression to map a string onto a valid CPP name.
8603as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8470as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8604 8471
8605# Sed expression to map a string onto a valid variable name. 8472# Sed expression to map a string onto a valid variable name.
8617# Save the log message, to keep $0 and so on meaningful, and to 8484# Save the log message, to keep $0 and so on meaningful, and to
8618# report actual input values of CONFIG_FILES etc. instead of their 8485# report actual input values of CONFIG_FILES etc. instead of their
8619# values after options handling. 8486# values after options handling.
8620ac_log=" 8487ac_log="
8621This file was extended by $as_me, which was 8488This file was extended by $as_me, which was
8622generated by GNU Autoconf 2.68. Invocation command line was 8489generated by GNU Autoconf 2.69. Invocation command line was
8623 8490
8624 CONFIG_FILES = $CONFIG_FILES 8491 CONFIG_FILES = $CONFIG_FILES
8625 CONFIG_HEADERS = $CONFIG_HEADERS 8492 CONFIG_HEADERS = $CONFIG_HEADERS
8626 CONFIG_LINKS = $CONFIG_LINKS 8493 CONFIG_LINKS = $CONFIG_LINKS
8627 CONFIG_COMMANDS = $CONFIG_COMMANDS 8494 CONFIG_COMMANDS = $CONFIG_COMMANDS
8679_ACEOF 8546_ACEOF
8680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8681ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8548ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8682ac_cs_version="\\ 8549ac_cs_version="\\
8683config.status 8550config.status
8684configured by $0, generated by GNU Autoconf 2.68, 8551configured by $0, generated by GNU Autoconf 2.69,
8685 with options \\"\$ac_cs_config\\" 8552 with options \\"\$ac_cs_config\\"
8686 8553
8687Copyright (C) 2010 Free Software Foundation, Inc. 8554Copyright (C) 2012 Free Software Foundation, Inc.
8688This config.status script is free software; the Free Software Foundation 8555This config.status script is free software; the Free Software Foundation
8689gives unlimited permission to copy, distribute and modify it." 8556gives unlimited permission to copy, distribute and modify it."
8690 8557
8691ac_pwd='$ac_pwd' 8558ac_pwd='$ac_pwd'
8692srcdir='$srcdir' 8559srcdir='$srcdir'
8771fi 8638fi
8772 8639
8773_ACEOF 8640_ACEOF
8774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8775if \$ac_cs_recheck; then 8642if \$ac_cs_recheck; then
8776 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8643 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8777 shift 8644 shift
8778 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 8645 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8779 CONFIG_SHELL='$SHELL' 8646 CONFIG_SHELL='$SHELL'
8780 export CONFIG_SHELL 8647 export CONFIG_SHELL
8781 exec "\$@" 8648 exec "\$@"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines