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

Comparing rxvt-unicode/configure (file contents):
Revision 1.102 by ayin, Tue May 8 11:24:45 2007 UTC vs.
Revision 1.138 by sf-exg, Thu Dec 2 11:09:40 2010 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.61. 3# Generated by GNU Autoconf 2.67.
4#
4# 5#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
7# This configure script is free software; the Free Software Foundation 11# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it. 12# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ## 13## -------------------- ##
10## M4sh Initialization. ## 14## M4sh Initialization. ##
11## --------------------- ## 15## -------------------- ##
12 16
13# Be more Bourne compatible 17# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh 18DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16 emulate sh 20 emulate sh
17 NULLCMD=: 21 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature. 23 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"' 24 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST 25 setopt NO_GLOB_SUBST
22else 26else
23 case `(set -o) 2>/dev/null` in 27 case `(set -o) 2>/dev/null` in #(
24 *posix*) set -o posix ;; 28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
25esac 32esac
26
27fi 33fi
28 34
29 35
30 36as_nl='
31 37'
32# PATH needs CR 38export as_nl
33# Avoid depending upon Character Ranges. 39# Printing a long string crashes Solaris 7 /usr/bin/printf.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37as_cr_digits='0123456789' 43# Prefer a ksh shell builtin over an external printf program on Solaris,
38as_cr_alnum=$as_cr_Letters$as_cr_digits 44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
39 73
40# The user is always right. 74# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then 75if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh 76 PATH_SEPARATOR=:
43 echo "exit 0" >>conf$$.sh 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
44 chmod +x conf$$.sh 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';' 79 PATH_SEPARATOR=';'
47 else 80 }
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi 81fi
59 82
60 83
61# IFS 84# IFS
62# We need space, tab and new line, in precisely that order. Quoting is 85# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab. 86# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.) 88# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl" 89IFS=" "" $as_nl"
69 90
70# Find who we are. Look in the path if we contain no directory separator. 91# Find who we are. Look in the path if we contain no directory separator.
71case $0 in 92case $0 in #((
72 *[\\/]* ) as_myself=$0 ;; 93 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH 95for as_dir in $PATH
75do 96do
76 IFS=$as_save_IFS 97 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=. 98 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done 100 done
80IFS=$as_save_IFS 101IFS=$as_save_IFS
81 102
82 ;; 103 ;;
83esac 104esac
84# We did not find ourselves, most probably we were run as `sh COMMAND' 105# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path. 106# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then 107if test "x$as_myself" = x; then
87 as_myself=$0 108 as_myself=$0
88fi 109fi
89if test ! -f "$as_myself"; then 110if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; } 112 exit 1
92fi 113fi
93 114
94# Work around bugs in pre-3.0 UWIN ksh. 115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
95for as_var in ENV MAIL MAILPATH 119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
97done 122done
98PS1='$ ' 123PS1='$ '
99PS2='> ' 124PS2='> '
100PS4='+ ' 125PS4='+ '
101 126
102# NLS nuisances. 127# NLS nuisances.
103for as_var in \ 128LC_ALL=C
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 129export LC_ALL
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 130LANGUAGE=C
106 LC_TELEPHONE LC_TIME 131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
107do 186do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 187 IFS=$as_save_IFS
109 eval $as_var=C; export $as_var 188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
110 else 230 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
112 fi 235 fi
113done 236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
114 245
115# Required to use basename. 246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error STATUS ERROR [LINENO LOG_FD]
360# ----------------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with STATUS, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
116if expr a : '\(a\)' >/dev/null 2>&1 && 375if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr 377 as_expr=expr
119else 378else
120 as_expr=false 379 as_expr=false
124 as_basename=basename 383 as_basename=basename
125else 384else
126 as_basename=false 385 as_basename=false
127fi 386fi
128 387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
129 393
130# Name of the executable.
131as_me=`$as_basename -- "$0" || 394as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \ 396 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" | 398$as_echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 399 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/ 400 s//\1/
138 q 401 q
139 } 402 }
140 /^X\/\(\/\/\)$/{ 403 /^X\/\(\/\/\)$/{
145 s//\1/ 408 s//\1/
146 q 409 q
147 } 410 }
148 s/.*/./; q'` 411 s/.*/./; q'`
149 412
150# CDPATH. 413# Avoid depending upon Character Ranges.
151$as_unset CDPATH 414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
152 419
153 420
154if test "x$CONFIG_SHELL" = x; then 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
155 if (eval ":") 2>/dev/null; then 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" && 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-) 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n ' 426 sed -n '
439 p 427 p
440 /[$]LINENO/= 428 /[$]LINENO/=
441 ' <$as_myself | 429 ' <$as_myself |
442 sed ' 430 sed '
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop 438 t loop
451 s/-\n.*// 439 s/-\n.*//
452 ' >$as_me.lineno && 440 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" || 441 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 { (exit 1); exit 1; }; }
456 443
457 # Don't try to exec as it changes $[0], causing all sort of problems 444 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the 445 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this). 446 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno" 447 . "./$as_me.lineno"
461 # Exit status is that of the last command. 448 # Exit status is that of the last command.
462 exit 449 exit
463} 450}
464 451
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T= 452ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in 453case `echo -n x` in #(((((
474-n*) 454-n*)
475 case `echo 'x\c'` in 455 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';; 457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
478 esac;; 460 esac;;
479*) 461*)
480 ECHO_N='-n';; 462 ECHO_N='-n';;
481esac 463esac
482 464
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file 465rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then 466if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file 467 rm -f conf$$.dir/conf$$.file
493else 468else
494 rm -f conf$$.dir 469 rm -f conf$$.dir
495 mkdir conf$$.dir 470 mkdir conf$$.dir 2>/dev/null
496fi 471fi
497echo >conf$$.file 472if (echo >conf$$.file) 2>/dev/null; then
498if ln -s conf$$.file conf$$ 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s' 474 as_ln_s='ln -s'
500 # ... but there are two gotchas: 475 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'. 478 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
505 as_ln_s='cp -p' 484 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then 485 fi
507 as_ln_s=ln
508else 486else
509 as_ln_s='cp -p' 487 as_ln_s='cp -p'
510fi 488fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null 490rmdir conf$$.dir 2>/dev/null
513 491
514if mkdir -p . 2>/dev/null; then 492if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=: 493 as_mkdir_p='mkdir -p "$as_dir"'
516else 494else
517 test -d ./-p && rmdir ./-p 495 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false 496 as_mkdir_p=false
519fi 497fi
520 498
527 as_ls_L_option= 505 as_ls_L_option=
528 fi 506 fi
529 as_test_x=' 507 as_test_x='
530 eval sh -c '\'' 508 eval sh -c '\''
531 if test -d "$1"; then 509 if test -d "$1"; then
532 test -d "$1/."; 510 test -d "$1/.";
533 else 511 else
534 case $1 in 512 case $1 in #(
535 -*)set "./$1";; 513 -*)set "./$1";;
536 esac; 514 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
538 ???[sx]*):;;*)false;;esac;fi 516 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh 517 '\'' sh
540 ' 518 '
541fi 519fi
542as_executable_p=$as_test_x 520as_executable_p=$as_test_x
546 524
547# Sed expression to map a string onto a valid variable name. 525# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549 527
550 528
551 529test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 7<&0 </dev/null 6>&1 530exec 6>&1
553 531
554# Name of the host. 532# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too. 534# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 536
559# 537#
560# Initializations. 538# Initializations.
565LIBOBJS= 543LIBOBJS=
566cross_compiling=no 544cross_compiling=no
567subdirs= 545subdirs=
568MFLAGS= 546MFLAGS=
569MAKEFLAGS= 547MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571 548
572# Identity of this package. 549# Identity of this package.
573PACKAGE_NAME= 550PACKAGE_NAME=
574PACKAGE_TARNAME= 551PACKAGE_TARNAME=
575PACKAGE_VERSION= 552PACKAGE_VERSION=
576PACKAGE_STRING= 553PACKAGE_STRING=
577PACKAGE_BUGREPORT= 554PACKAGE_BUGREPORT=
555PACKAGE_URL=
578 556
579ac_unique_file="src/feature.h" 557ac_unique_file="src/feature.h"
580# Factoring default headers for most tests. 558# Factoring default headers for most tests.
581ac_includes_default="\ 559ac_includes_default="\
582#include <stdio.h> 560#include <stdio.h>
611#endif 589#endif
612#ifdef HAVE_UNISTD_H 590#ifdef HAVE_UNISTD_H
613# include <unistd.h> 591# include <unistd.h>
614#endif" 592#endif"
615 593
616ac_subst_vars='SHELL 594ac_subst_vars='LTLIBOBJS
595LIBOBJS
596PERL_O
597IF_PERL
598PERLPRIVLIBEXP
599PERLFLAGS
600PERLLIB
601PERL
602XFT_CONFIG
603AFTERIMAGE_LIBS
604AFTERIMAGE_CFLAGS
605afterimage_config
606PIXBUF_LIBS
607PIXBUF_CFLAGS
608PKG_CONFIG
609X_EXTRA_LIBS
610X_LIBS
611X_PRE_LIBS
612X_CFLAGS
613XMKMF
614TIC
615CXXCPP
616RXVTNAME
617LINKER
618EGREP
619GREP
620INSTALL_DATA
621INSTALL_SCRIPT
622INSTALL_PROGRAM
623CPP
624ac_ct_CXX
625CXXFLAGS
626CXX
627OBJEXT
628EXEEXT
629ac_ct_CC
630CPPFLAGS
631LDFLAGS
632CFLAGS
633CC
634DATE
635VERSION
636host_os
637host_vendor
638host_cpu
639host
640build_os
641build_vendor
642build_cpu
643build
644target_alias
645host_alias
646build_alias
647LIBS
648ECHO_T
649ECHO_N
650ECHO_C
651DEFS
652mandir
653localedir
654libdir
655psdir
656pdfdir
657dvidir
658htmldir
659infodir
660docdir
661oldincludedir
662includedir
663localstatedir
664sharedstatedir
665sysconfdir
666datadir
667datarootdir
668libexecdir
669sbindir
670bindir
671program_transform_name
672prefix
673exec_prefix
674PACKAGE_URL
675PACKAGE_BUGREPORT
676PACKAGE_STRING
677PACKAGE_VERSION
678PACKAGE_TARNAME
679PACKAGE_NAME
617PATH_SEPARATOR 680PATH_SEPARATOR
618PACKAGE_NAME 681SHELL'
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653build
654build_cpu
655build_vendor
656build_os
657host
658host_cpu
659host_vendor
660host_os
661VERSION
662DATE
663LSMDATE
664LIBVERSION
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CXX
673CXXFLAGS
674ac_ct_CXX
675CPP
676INSTALL_PROGRAM
677INSTALL_SCRIPT
678INSTALL_DATA
679GREP
680EGREP
681LINKER
682INSTALL_LIBRXVT
683RXVTNAME
684MV
685CP
686LN
687SED
688ECHO
689CMP
690TIC
691XMKMF
692CXXCPP
693X_CFLAGS
694X_PRE_LIBS
695X_LIBS
696X_EXTRA_LIBS
697XPM_CPPFLAGS
698XPM_CFLAGS
699XPM_LIBS
700rxvt_int16_typedef
701rxvt_uint16_typedef
702rxvt_int32_typedef
703rxvt_uint32_typedef
704rxvt_intp_define
705rxvt_u_intp_define
706PKG_CONFIG
707XFT_CONFIG
708PERL
709PERLLIB
710PERLFLAGS
711PERLPRIVLIBEXP
712IF_PERL
713PERL_O
714DEBUG
715DINCLUDE
716DLIB
717include_stdint_h
718include_stdarg_h
719include_stdlib_h
720include_unistd_h
721include_string_h
722include_fcntl_h
723include_util_h
724include_assert_h
725include_sys_ioctl_h
726include_sys_select_h
727include_sys_strredir_h
728include_sys_time_h
729include_time_h
730LIBOBJS
731LTLIBOBJS'
732ac_subst_files='' 682ac_subst_files=''
683ac_user_opts='
684enable_option_checking
685enable_everything
686enable_assert
687enable_warnings
688enable_256_color
689enable_unicode3
690enable_combining
691enable_xft
692enable_font_styles
693enable_afterimage
694with_afterimage_config
695enable_pixbuf
696enable_transparency
697enable_fading
698enable_rxvt_scroll
699enable_next_scroll
700enable_xterm_scroll
701enable_perl
702with_codesets
703enable_xim
704enable_backspace_key
705enable_delete_key
706enable_resources
707enable_8bitctrls
708enable_fallback
709with_res_name
710with_res_class
711with_name
712enable_swapscreen
713enable_iso14755
714enable_frills
715enable_keepscrolling
716enable_selectionscrolling
717enable_mousewheel
718enable_slipwheeling
719enable_smart_resize
720enable_text_blink
721enable_pointer_blank
722with_term
723with_terminfo
724with_x
725enable_utmp
726enable_wtmp
727enable_lastlog
728'
733 ac_precious_vars='build_alias 729 ac_precious_vars='build_alias
734host_alias 730host_alias
735target_alias 731target_alias
736CC 732CC
737CFLAGS 733CFLAGS
740CPPFLAGS 736CPPFLAGS
741CXX 737CXX
742CXXFLAGS 738CXXFLAGS
743CCC 739CCC
744CPP 740CPP
745XMKMF
746CXXCPP' 741CXXCPP
742XMKMF'
747 743
748 744
749# Initialize some variables set by options. 745# Initialize some variables set by options.
750ac_init_help= 746ac_init_help=
751ac_init_version=false 747ac_init_version=false
748ac_unrecognized_opts=
749ac_unrecognized_sep=
752# The variables have the same names as the options, with 750# The variables have the same names as the options, with
753# dashes changed to underlines. 751# dashes changed to underlines.
754cache_file=/dev/null 752cache_file=/dev/null
755exec_prefix=NONE 753exec_prefix=NONE
756no_create= 754no_create=
802 ac_prev= 800 ac_prev=
803 continue 801 continue
804 fi 802 fi
805 803
806 case $ac_option in 804 case $ac_option in
807 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 805 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 *=) ac_optarg= ;;
808 *) ac_optarg=yes ;; 807 *) ac_optarg=yes ;;
809 esac 808 esac
810 809
811 # Accept the important Cygnus configure options, so we can diagnose typos. 810 # Accept the important Cygnus configure options, so we can diagnose typos.
812 811
813 case $ac_dashdash$ac_option in 812 case $ac_dashdash$ac_option in
845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847 datarootdir=$ac_optarg ;; 846 datarootdir=$ac_optarg ;;
848 847
849 -disable-* | --disable-*) 848 -disable-* | --disable-*)
850 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 849 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names. 850 # Reject names that are not valid shell variable names.
852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 852 as_fn_error $? "invalid feature name: $ac_useropt"
854 { (exit 1); exit 1; }; } 853 ac_useropt_orig=$ac_useropt
855 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
856 *"
857"enable_$ac_useropt"
858"*) ;;
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
861 esac
856 eval enable_$ac_feature=no ;; 862 eval enable_$ac_useropt=no ;;
857 863
858 -docdir | --docdir | --docdi | --doc | --do) 864 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;; 865 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;; 867 docdir=$ac_optarg ;;
864 ac_prev=dvidir ;; 870 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;; 872 dvidir=$ac_optarg ;;
867 873
868 -enable-* | --enable-*) 874 -enable-* | --enable-*)
869 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 875 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names. 876 # Reject names that are not valid shell variable names.
871 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 878 as_fn_error $? "invalid feature name: $ac_useropt"
873 { (exit 1); exit 1; }; } 879 ac_useropt_orig=$ac_useropt
874 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
882 *"
883"enable_$ac_useropt"
884"*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
875 eval enable_$ac_feature=\$ac_optarg ;; 888 eval enable_$ac_useropt=\$ac_optarg ;;
876 889
877 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 890 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
878 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 891 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
879 | --exec | --exe | --ex) 892 | --exec | --exe | --ex)
880 ac_prev=exec_prefix ;; 893 ac_prev=exec_prefix ;;
1061 1074
1062 -version | --version | --versio | --versi | --vers | -V) 1075 -version | --version | --versio | --versi | --vers | -V)
1063 ac_init_version=: ;; 1076 ac_init_version=: ;;
1064 1077
1065 -with-* | --with-*) 1078 -with-* | --with-*)
1066 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1079 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names. 1080 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2 1082 as_fn_error $? "invalid package name: $ac_useropt"
1070 { (exit 1); exit 1; }; } 1083 ac_useropt_orig=$ac_useropt
1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1086 *"
1087"with_$ac_useropt"
1088"*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1072 eval with_$ac_package=\$ac_optarg ;; 1092 eval with_$ac_useropt=\$ac_optarg ;;
1073 1093
1074 -without-* | --without-*) 1094 -without-* | --without-*)
1075 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1095 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names. 1096 # Reject names that are not valid shell variable names.
1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid package name: $ac_package" >&2 1098 as_fn_error $? "invalid package name: $ac_useropt"
1079 { (exit 1); exit 1; }; } 1099 ac_useropt_orig=$ac_useropt
1080 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1102 *"
1103"with_$ac_useropt"
1104"*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1081 eval with_$ac_package=no ;; 1108 eval with_$ac_useropt=no ;;
1082 1109
1083 --x) 1110 --x)
1084 # Obsolete; use --with-x. 1111 # Obsolete; use --with-x.
1085 with_x=yes ;; 1112 with_x=yes ;;
1086 1113
1096 ac_prev=x_libraries ;; 1123 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1124 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1125 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099 x_libraries=$ac_optarg ;; 1126 x_libraries=$ac_optarg ;;
1100 1127
1101 -*) { echo "$as_me: error: unrecognized option: $ac_option 1128 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1102Try \`$0 --help' for more information." >&2 1129Try \`$0 --help' for more information"
1103 { (exit 1); exit 1; }; }
1104 ;; 1130 ;;
1105 1131
1106 *=*) 1132 *=*)
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1133 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names. 1134 # Reject names that are not valid shell variable names.
1109 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1135 case $ac_envvar in #(
1136 '' | [0-9]* | *[!_$as_cr_alnum]* )
1110 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1137 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1111 { (exit 1); exit 1; }; } 1138 esac
1112 eval $ac_envvar=\$ac_optarg 1139 eval $ac_envvar=\$ac_optarg
1113 export $ac_envvar ;; 1140 export $ac_envvar ;;
1114 1141
1115 *) 1142 *)
1116 # FIXME: should be removed in autoconf 3.0. 1143 # FIXME: should be removed in autoconf 3.0.
1117 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1144 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1145 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1146 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1147 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121 ;; 1148 ;;
1122 1149
1123 esac 1150 esac
1124done 1151done
1125 1152
1126if test -n "$ac_prev"; then 1153if test -n "$ac_prev"; then
1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1154 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1128 { echo "$as_me: error: missing argument to $ac_option" >&2 1155 as_fn_error $? "missing argument to $ac_option"
1129 { (exit 1); exit 1; }; }
1130fi 1156fi
1131 1157
1132# Be sure to have absolute directory names. 1158if test -n "$ac_unrecognized_opts"; then
1159 case $enable_option_checking in
1160 no) ;;
1161 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1162 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163 esac
1164fi
1165
1166# Check all directory arguments for consistency.
1133for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1167for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134 datadir sysconfdir sharedstatedir localstatedir includedir \ 1168 datadir sysconfdir sharedstatedir localstatedir includedir \
1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136 libdir localedir mandir 1170 libdir localedir mandir
1137do 1171do
1138 eval ac_val=\$$ac_var 1172 eval ac_val=\$$ac_var
1173 # Remove trailing slashes.
1174 case $ac_val in
1175 */ )
1176 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1177 eval $ac_var=\$ac_val;;
1178 esac
1179 # Be sure to have absolute directory names.
1139 case $ac_val in 1180 case $ac_val in
1140 [\\/$]* | ?:[\\/]* ) continue;; 1181 [\\/$]* | ?:[\\/]* ) continue;;
1141 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1142 esac 1183 esac
1143 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1184 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1144 { (exit 1); exit 1; }; }
1145done 1185done
1146 1186
1147# There might be people who depend on the old broken behavior: `$host' 1187# There might be people who depend on the old broken behavior: `$host'
1148# used to hold the argument of --host etc. 1188# used to hold the argument of --host etc.
1149# FIXME: To remove some day. 1189# FIXME: To remove some day.
1153 1193
1154# FIXME: To remove some day. 1194# FIXME: To remove some day.
1155if test "x$host_alias" != x; then 1195if test "x$host_alias" != x; then
1156 if test "x$build_alias" = x; then 1196 if test "x$build_alias" = x; then
1157 cross_compiling=maybe 1197 cross_compiling=maybe
1158 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1198 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1159 If a cross compiler is detected then cross compile mode will be used." >&2 1199 If a cross compiler is detected then cross compile mode will be used" >&2
1160 elif test "x$build_alias" != "x$host_alias"; then 1200 elif test "x$build_alias" != "x$host_alias"; then
1161 cross_compiling=yes 1201 cross_compiling=yes
1162 fi 1202 fi
1163fi 1203fi
1164 1204
1169 1209
1170 1210
1171ac_pwd=`pwd` && test -n "$ac_pwd" && 1211ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172ac_ls_di=`ls -di .` && 1212ac_ls_di=`ls -di .` &&
1173ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1213ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174 { echo "$as_me: error: Working directory cannot be determined" >&2 1214 as_fn_error $? "working directory cannot be determined"
1175 { (exit 1); exit 1; }; }
1176test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1215test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1177 { echo "$as_me: error: pwd does not report name of working directory" >&2 1216 as_fn_error $? "pwd does not report name of working directory"
1178 { (exit 1); exit 1; }; }
1179 1217
1180 1218
1181# Find the source files, if location was not specified. 1219# Find the source files, if location was not specified.
1182if test -z "$srcdir"; then 1220if test -z "$srcdir"; then
1183 ac_srcdir_defaulted=yes 1221 ac_srcdir_defaulted=yes
1184 # Try the directory containing this script, then the parent directory. 1222 # Try the directory containing this script, then the parent directory.
1185 ac_confdir=`$as_dirname -- "$0" || 1223 ac_confdir=`$as_dirname -- "$as_myself" ||
1186$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1224$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187 X"$0" : 'X\(//\)[^/]' \| \ 1225 X"$as_myself" : 'X\(//\)[^/]' \| \
1188 X"$0" : 'X\(//\)$' \| \ 1226 X"$as_myself" : 'X\(//\)$' \| \
1189 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1190echo X"$0" | 1228$as_echo X"$as_myself" |
1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1192 s//\1/ 1230 s//\1/
1193 q 1231 q
1194 } 1232 }
1195 /^X\(\/\/\)[^/].*/{ 1233 /^X\(\/\/\)[^/].*/{
1212else 1250else
1213 ac_srcdir_defaulted=no 1251 ac_srcdir_defaulted=no
1214fi 1252fi
1215if test ! -r "$srcdir/$ac_unique_file"; then 1253if test ! -r "$srcdir/$ac_unique_file"; then
1216 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1254 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1217 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1255 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1218 { (exit 1); exit 1; }; }
1219fi 1256fi
1220ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1257ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1221ac_abs_confdir=`( 1258ac_abs_confdir=`(
1222 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1259 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1223 { (exit 1); exit 1; }; }
1224 pwd)` 1260 pwd)`
1225# When building in place, set srcdir=. 1261# When building in place, set srcdir=.
1226if test "$ac_abs_confdir" = "$ac_pwd"; then 1262if test "$ac_abs_confdir" = "$ac_pwd"; then
1227 srcdir=. 1263 srcdir=.
1228fi 1264fi
1258Configuration: 1294Configuration:
1259 -h, --help display this help and exit 1295 -h, --help display this help and exit
1260 --help=short display options specific to this package 1296 --help=short display options specific to this package
1261 --help=recursive display the short help of all the included packages 1297 --help=recursive display the short help of all the included packages
1262 -V, --version display version information and exit 1298 -V, --version display version information and exit
1263 -q, --quiet, --silent do not print \`checking...' messages 1299 -q, --quiet, --silent do not print \`checking ...' messages
1264 --cache-file=FILE cache test results in FILE [disabled] 1300 --cache-file=FILE cache test results in FILE [disabled]
1265 -C, --config-cache alias for \`--cache-file=config.cache' 1301 -C, --config-cache alias for \`--cache-file=config.cache'
1266 -n, --no-create do not create output files 1302 -n, --no-create do not create output files
1267 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1268 1304
1269Installation directories: 1305Installation directories:
1270 --prefix=PREFIX install architecture-independent files in PREFIX 1306 --prefix=PREFIX install architecture-independent files in PREFIX
1271 [$ac_default_prefix] 1307 [$ac_default_prefix]
1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1273 [PREFIX] 1309 [PREFIX]
1274 1310
1275By default, \`make install' will install all the files in 1311By default, \`make install' will install all the files in
1276\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1312\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1277an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1313an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278for instance \`--prefix=\$HOME'. 1314for instance \`--prefix=\$HOME'.
1279 1315
1280For better control, use the options below. 1316For better control, use the options below.
1281 1317
1282Fine tuning of the installation directories: 1318Fine tuning of the installation directories:
1283 --bindir=DIR user executables [EPREFIX/bin] 1319 --bindir=DIR user executables [EPREFIX/bin]
1284 --sbindir=DIR system admin executables [EPREFIX/sbin] 1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1285 --libexecdir=DIR program executables [EPREFIX/libexec] 1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1289 --libdir=DIR object code libraries [EPREFIX/lib] 1325 --libdir=DIR object code libraries [EPREFIX/lib]
1290 --includedir=DIR C header files [PREFIX/include] 1326 --includedir=DIR C header files [PREFIX/include]
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294 --infodir=DIR info documentation [DATAROOTDIR/info] 1330 --infodir=DIR info documentation [DATAROOTDIR/info]
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296 --mandir=DIR man documentation [DATAROOTDIR/man] 1332 --mandir=DIR man documentation [DATAROOTDIR/man]
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1333 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1298 --htmldir=DIR html documentation [DOCDIR] 1334 --htmldir=DIR html documentation [DOCDIR]
1299 --dvidir=DIR dvi documentation [DOCDIR] 1335 --dvidir=DIR dvi documentation [DOCDIR]
1300 --pdfdir=DIR pdf documentation [DOCDIR] 1336 --pdfdir=DIR pdf documentation [DOCDIR]
1301 --psdir=DIR ps documentation [DOCDIR] 1337 --psdir=DIR ps documentation [DOCDIR]
1302_ACEOF 1338_ACEOF
1303 1339
1304 cat <<\_ACEOF 1340 cat <<\_ACEOF
1305 1341
1306X features: 1342X features:
1307 --x-includes=DIR X include files are in DIR 1343 --x-includes=DIR X include files are in DIR
1308 --x-libraries=DIR X library files are in DIR 1344 --x-libraries=DIR X library files are in DIR
1309 1345
1310Program names:
1311 --program-prefix=PREFIX prepend PREFIX to installed program names
1312 --program-suffix=SUFFIX append SUFFIX to installed program names
1313 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1314
1315System types: 1346System types:
1316 --build=BUILD configure for building on BUILD [guessed] 1347 --build=BUILD configure for building on BUILD [guessed]
1317 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1348 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1318_ACEOF 1349_ACEOF
1319fi 1350fi
1321if test -n "$ac_init_help"; then 1352if test -n "$ac_init_help"; then
1322 1353
1323 cat <<\_ACEOF 1354 cat <<\_ACEOF
1324 1355
1325Optional Features: 1356Optional Features:
1357 --disable-option-checking ignore unrecognized --enable/--with options
1326 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1327 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1328 --enable-everything enable standard non-multichoice features 1360 --enable-everything enable standard non-multichoice features
1329 NOTE: this option is order dependent 1361 NOTE: this option is order dependent
1330 NOTE: automatically enabled with --enable-shared 1362 --enable-assert enable assertions
1363 --enable-warnings turn on g++ warnings
1364 --enable-256-color enable 256-color support
1331 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1365 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1332 --enable-combining enable composition of base and combining characters 1366 --enable-combining enable composition of base and combining characters
1333 --enable-xft enable xft support on systems that have it 1367 --enable-xft enable xft support on systems that have it
1334 --enable-font-styles enable bold and italic support 1368 --enable-font-styles enable bold and italic support
1335 --enable-xpm-background enable XPM background pixmaps 1369 --enable-afterimage enable integration with libAfterImage for background images
1370 --enable-pixbuf enable integration with gdk-pixbuf for background images
1336 --enable-transparency enable transparent backgrounds 1371 --enable-transparency enable transparent backgrounds
1337 --enable-tinting enable tinting of transparent bg
1338 --enable-fading enable colors fading when off focus 1372 --enable-fading enable colors fading when off focus
1339 --enable-rxvt-scroll enable rxvt style scrollbar 1373 --enable-rxvt-scroll enable rxvt style scrollbar
1340 --enable-next-scroll enable NeXT style scrollbar 1374 --enable-next-scroll enable NeXT style scrollbar
1341 --enable-xterm-scroll enable Xterm style scrollbar 1375 --enable-xterm-scroll enable Xterm style scrollbar
1342 --enable-perl enable embedded perl interpreter 1376 --enable-perl enable embedded perl interpreter
1343 --enable-plain-scroll enable plain style scrollbar
1344 --enable-xim XIM (X Input Method) protocol support 1377 --enable-xim XIM (X Input Method) protocol support
1345 --disable-backspace-key disable handling of the backspace key 1378 --disable-backspace-key disable handling of the backspace key
1346 --disable-delete-key disable handling of the delete key 1379 --disable-delete-key disable handling of the delete key
1347 --disable-resources disable all resource checking 1380 --disable-resources disable all resource checking
1348 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1381 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1349 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 1382 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1350 --disable-swapscreen disable swap screen support 1383 --disable-swapscreen disable swap screen support
1351 --enable-iso14755 enable support for extended ISO 14755 modes 1384 --enable-iso14755 enable support for extended ISO 14755 modes
1352 --enable-frills enable support for rarely used features 1385 --enable-frills enable support for rarely used features
1353 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1386 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1354 --enable-selectionscrolling enable scrolling during selections 1387 --enable-selectionscrolling enable scrolling during selections
1355 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1388 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1356 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1389 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1357 --enable-smart-resize enable smart growth/shrink behaviour 1390 --enable-smart-resize enable smart growth/shrink behaviour
1358 --enable-text-blink enable blinking text 1391 --enable-text-blink enable blinking text
1359 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1392 --enable-pointer-blank enable pointer blanking when typing or inactive
1360 --enable-utmp enable utmp (utmpx) support 1393 --enable-utmp enable utmp (utmpx) support
1361 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1394 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1362 --enable-lastlog enable lastlog support (requires --enable-utmp) 1395 --enable-lastlog enable lastlog support (requires --enable-utmp)
1363 1396
1364Optional Packages: 1397Optional Packages:
1365 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1366 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 --with-afterimage-config=DIR use libAfterImage config script in DIR
1367 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1401 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1368 --with-res-name=NAME use this as default resource name (default: urxvt) 1402 --with-res-name=NAME use this as default resource name (default: urxvt)
1369 --with-res-class=CLASS use this as the resource class (default: URxvt) 1403 --with-res-class=CLASS use this as the resource class (default: URxvt)
1370 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1404 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1371 --with-term=NAME set the terminal to NAME (default: rxvt) 1405 --with-term=NAME set the terminal to NAME (default: rxvt)
1372 --with-terminfo=PATH set the path to the terminfo tree to PATH 1406 --with-terminfo=PATH set the path to the terminfo tree to PATH
1373 --with-x use the X Window System 1407 --with-x use the X Window System
1374 --with-xpm-includes=DIR use XPM includes in DIR
1375 --with-xpm-library=DIR use XPM library in DIR
1376 --with-xpm use XPM
1377 1408
1378Some influential environment variables: 1409Some influential environment variables:
1379 CC C compiler command 1410 CC C compiler command
1380 CFLAGS C compiler flags 1411 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1412 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir> 1413 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library> 1414 LIBS libraries to pass to the linker, e.g. -l<library>
1384 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1415 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir> 1416 you have headers in a nonstandard directory <include dir>
1386 CXX C++ compiler command 1417 CXX C++ compiler command
1387 CXXFLAGS C++ compiler flags 1418 CXXFLAGS C++ compiler flags
1388 CPP C preprocessor 1419 CPP C preprocessor
1420 CXXCPP C++ preprocessor
1389 XMKMF Path to xmkmf, Makefile generator for X Window System 1421 XMKMF Path to xmkmf, Makefile generator for X Window System
1390 CXXCPP C++ preprocessor
1391 1422
1392Use these variables to override the choices made by `configure' or to help 1423Use these variables to override the choices made by `configure' or to help
1393it to find libraries and programs with nonstandard names/locations. 1424it to find libraries and programs with nonstandard names/locations.
1394 1425
1426Report bugs to the package provider.
1395_ACEOF 1427_ACEOF
1396ac_status=$? 1428ac_status=$?
1397fi 1429fi
1398 1430
1399if test "$ac_init_help" = "recursive"; then 1431if test "$ac_init_help" = "recursive"; then
1400 # If there are subdirs, report their specific --help. 1432 # If there are subdirs, report their specific --help.
1401 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1433 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1402 test -d "$ac_dir" || continue 1434 test -d "$ac_dir" ||
1435 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1436 continue
1403 ac_builddir=. 1437 ac_builddir=.
1404 1438
1405case "$ac_dir" in 1439case "$ac_dir" in
1406.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1440.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407*) 1441*)
1408 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1442 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1409 # A ".." for each directory in $ac_dir_suffix. 1443 # A ".." for each directory in $ac_dir_suffix.
1410 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1444 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1411 case $ac_top_builddir_sub in 1445 case $ac_top_builddir_sub in
1412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414 esac ;; 1448 esac ;;
1415esac 1449esac
1441 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1475 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1442 elif test -f "$ac_srcdir/configure"; then 1476 elif test -f "$ac_srcdir/configure"; then
1443 echo && 1477 echo &&
1444 $SHELL "$ac_srcdir/configure" --help=recursive 1478 $SHELL "$ac_srcdir/configure" --help=recursive
1445 else 1479 else
1446 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1480 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 fi || ac_status=$? 1481 fi || ac_status=$?
1448 cd "$ac_pwd" || { ac_status=$?; break; } 1482 cd "$ac_pwd" || { ac_status=$?; break; }
1449 done 1483 done
1450fi 1484fi
1451 1485
1452test -n "$ac_init_help" && exit $ac_status 1486test -n "$ac_init_help" && exit $ac_status
1453if $ac_init_version; then 1487if $ac_init_version; then
1454 cat <<\_ACEOF 1488 cat <<\_ACEOF
1455configure 1489configure
1456generated by GNU Autoconf 2.61 1490generated by GNU Autoconf 2.67
1457 1491
1458Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1492Copyright (C) 2010 Free Software Foundation, Inc.
14592002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1460This configure script is free software; the Free Software Foundation 1493This configure script is free software; the Free Software Foundation
1461gives unlimited permission to copy, distribute and modify it. 1494gives unlimited permission to copy, distribute and modify it.
1462_ACEOF 1495_ACEOF
1463 exit 1496 exit
1464fi 1497fi
1498
1499## ------------------------ ##
1500## Autoconf initialization. ##
1501## ------------------------ ##
1502
1503# ac_fn_c_try_compile LINENO
1504# --------------------------
1505# Try to compile conftest.$ac_ext, and return whether this succeeded.
1506ac_fn_c_try_compile ()
1507{
1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509 rm -f conftest.$ac_objext
1510 if { { ac_try="$ac_compile"
1511case "(($ac_try" in
1512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513 *) ac_try_echo=$ac_try;;
1514esac
1515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516$as_echo "$ac_try_echo"; } >&5
1517 (eval "$ac_compile") 2>conftest.err
1518 ac_status=$?
1519 if test -s conftest.err; then
1520 grep -v '^ *+' conftest.err >conftest.er1
1521 cat conftest.er1 >&5
1522 mv -f conftest.er1 conftest.err
1523 fi
1524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525 test $ac_status = 0; } && {
1526 test -z "$ac_c_werror_flag" ||
1527 test ! -s conftest.err
1528 } && test -s conftest.$ac_objext; then :
1529 ac_retval=0
1530else
1531 $as_echo "$as_me: failed program was:" >&5
1532sed 's/^/| /' conftest.$ac_ext >&5
1533
1534 ac_retval=1
1535fi
1536 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1537 as_fn_set_status $ac_retval
1538
1539} # ac_fn_c_try_compile
1540
1541# ac_fn_cxx_try_compile LINENO
1542# ----------------------------
1543# Try to compile conftest.$ac_ext, and return whether this succeeded.
1544ac_fn_cxx_try_compile ()
1545{
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1549case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552esac
1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554$as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1556 ac_status=$?
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1561 fi
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_cxx_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1567 ac_retval=0
1568else
1569 $as_echo "$as_me: failed program was:" >&5
1570sed 's/^/| /' conftest.$ac_ext >&5
1571
1572 ac_retval=1
1573fi
1574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1575 as_fn_set_status $ac_retval
1576
1577} # ac_fn_cxx_try_compile
1578
1579# ac_fn_c_try_cpp LINENO
1580# ----------------------
1581# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582ac_fn_c_try_cpp ()
1583{
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { { ac_try="$ac_cpp conftest.$ac_ext"
1586case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589esac
1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591$as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } > conftest.i && {
1601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 }; then :
1604 ac_retval=0
1605else
1606 $as_echo "$as_me: failed program was:" >&5
1607sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1
1610fi
1611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1612 as_fn_set_status $ac_retval
1613
1614} # ac_fn_c_try_cpp
1615
1616# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1617# -------------------------------------------------------
1618# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1619# the include files in INCLUDES and setting the cache variable VAR
1620# accordingly.
1621ac_fn_c_check_header_mongrel ()
1622{
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 if eval "test \"\${$3+set}\"" = set; then :
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626$as_echo_n "checking for $2... " >&6; }
1627if eval "test \"\${$3+set}\"" = set; then :
1628 $as_echo_n "(cached) " >&6
1629fi
1630eval ac_res=\$$3
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632$as_echo "$ac_res" >&6; }
1633else
1634 # Is the header compilable?
1635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1636$as_echo_n "checking $2 usability... " >&6; }
1637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638/* end confdefs.h. */
1639$4
1640#include <$2>
1641_ACEOF
1642if ac_fn_c_try_compile "$LINENO"; then :
1643 ac_header_compiler=yes
1644else
1645 ac_header_compiler=no
1646fi
1647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1649$as_echo "$ac_header_compiler" >&6; }
1650
1651# Is the header present?
1652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1653$as_echo_n "checking $2 presence... " >&6; }
1654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655/* end confdefs.h. */
1656#include <$2>
1657_ACEOF
1658if ac_fn_c_try_cpp "$LINENO"; then :
1659 ac_header_preproc=yes
1660else
1661 ac_header_preproc=no
1662fi
1663rm -f conftest.err conftest.i conftest.$ac_ext
1664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1665$as_echo "$ac_header_preproc" >&6; }
1666
1667# So? What about this header?
1668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1669 yes:no: )
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1671$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 ;;
1675 no:yes:* )
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1677$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1679$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1681$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1683$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686 ;;
1687esac
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689$as_echo_n "checking for $2... " >&6; }
1690if eval "test \"\${$3+set}\"" = set; then :
1691 $as_echo_n "(cached) " >&6
1692else
1693 eval "$3=\$ac_header_compiler"
1694fi
1695eval ac_res=\$$3
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697$as_echo "$ac_res" >&6; }
1698fi
1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1700
1701} # ac_fn_c_check_header_mongrel
1702
1703# ac_fn_c_try_run LINENO
1704# ----------------------
1705# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1706# that executables *can* be run.
1707ac_fn_c_try_run ()
1708{
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { { ac_try="$ac_link"
1711case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1721 { { case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_try") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; }; }; then :
1731 ac_retval=0
1732else
1733 $as_echo "$as_me: program exited with status $ac_status" >&5
1734 $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=$ac_status
1738fi
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 as_fn_set_status $ac_retval
1742
1743} # ac_fn_c_try_run
1744
1745# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746# -------------------------------------------------------
1747# Tests whether HEADER exists and can be compiled using the include files in
1748# INCLUDES, setting the cache variable VAR accordingly.
1749ac_fn_c_check_header_compile ()
1750{
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753$as_echo_n "checking for $2... " >&6; }
1754if eval "test \"\${$3+set}\"" = set; then :
1755 $as_echo_n "(cached) " >&6
1756else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758/* end confdefs.h. */
1759$4
1760#include <$2>
1761_ACEOF
1762if ac_fn_c_try_compile "$LINENO"; then :
1763 eval "$3=yes"
1764else
1765 eval "$3=no"
1766fi
1767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768fi
1769eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771$as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773
1774} # ac_fn_c_check_header_compile
1775
1776# ac_fn_c_try_link LINENO
1777# -----------------------
1778# Try to link conftest.$ac_ext, and return whether this succeeded.
1779ac_fn_c_try_link ()
1780{
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 rm -f conftest.$ac_objext conftest$ac_exeext
1783 if { { ac_try="$ac_link"
1784case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787esac
1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789$as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>conftest.err
1791 ac_status=$?
1792 if test -s conftest.err; then
1793 grep -v '^ *+' conftest.err >conftest.er1
1794 cat conftest.er1 >&5
1795 mv -f conftest.er1 conftest.err
1796 fi
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } && {
1799 test -z "$ac_c_werror_flag" ||
1800 test ! -s conftest.err
1801 } && test -s conftest$ac_exeext && {
1802 test "$cross_compiling" = yes ||
1803 $as_test_x conftest$ac_exeext
1804 }; then :
1805 ac_retval=0
1806else
1807 $as_echo "$as_me: failed program was:" >&5
1808sed 's/^/| /' conftest.$ac_ext >&5
1809
1810 ac_retval=1
1811fi
1812 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1813 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1814 # interfere with the next link command; also delete a directory that is
1815 # left behind by Apple's compiler. We do this before executing the actions.
1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818 as_fn_set_status $ac_retval
1819
1820} # ac_fn_c_try_link
1821
1822# ac_fn_cxx_try_link LINENO
1823# -------------------------
1824# Try to link conftest.$ac_ext, and return whether this succeeded.
1825ac_fn_cxx_try_link ()
1826{
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 rm -f conftest.$ac_objext conftest$ac_exeext
1829 if { { ac_try="$ac_link"
1830case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833esac
1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835$as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>conftest.err
1837 ac_status=$?
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1842 fi
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } && {
1845 test -z "$ac_cxx_werror_flag" ||
1846 test ! -s conftest.err
1847 } && test -s conftest$ac_exeext && {
1848 test "$cross_compiling" = yes ||
1849 $as_test_x conftest$ac_exeext
1850 }; then :
1851 ac_retval=0
1852else
1853 $as_echo "$as_me: failed program was:" >&5
1854sed 's/^/| /' conftest.$ac_ext >&5
1855
1856 ac_retval=1
1857fi
1858 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1859 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1860 # interfere with the next link command; also delete a directory that is
1861 # left behind by Apple's compiler. We do this before executing the actions.
1862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 as_fn_set_status $ac_retval
1865
1866} # ac_fn_cxx_try_link
1867
1868# ac_fn_cxx_try_cpp LINENO
1869# ------------------------
1870# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1871ac_fn_cxx_try_cpp ()
1872{
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { { ac_try="$ac_cpp conftest.$ac_ext"
1875case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878esac
1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880$as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1887 fi
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } > conftest.i && {
1890 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1891 test ! -s conftest.err
1892 }; then :
1893 ac_retval=0
1894else
1895 $as_echo "$as_me: failed program was:" >&5
1896sed 's/^/| /' conftest.$ac_ext >&5
1897
1898 ac_retval=1
1899fi
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901 as_fn_set_status $ac_retval
1902
1903} # ac_fn_cxx_try_cpp
1904
1905# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1906# ---------------------------------------------------------
1907# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1908# the include files in INCLUDES and setting the cache variable VAR
1909# accordingly.
1910ac_fn_cxx_check_header_mongrel ()
1911{
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 if eval "test \"\${$3+set}\"" = set; then :
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915$as_echo_n "checking for $2... " >&6; }
1916if eval "test \"\${$3+set}\"" = set; then :
1917 $as_echo_n "(cached) " >&6
1918fi
1919eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921$as_echo "$ac_res" >&6; }
1922else
1923 # Is the header compilable?
1924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1925$as_echo_n "checking $2 usability... " >&6; }
1926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h. */
1928$4
1929#include <$2>
1930_ACEOF
1931if ac_fn_cxx_try_compile "$LINENO"; then :
1932 ac_header_compiler=yes
1933else
1934 ac_header_compiler=no
1935fi
1936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1938$as_echo "$ac_header_compiler" >&6; }
1939
1940# Is the header present?
1941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1942$as_echo_n "checking $2 presence... " >&6; }
1943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h. */
1945#include <$2>
1946_ACEOF
1947if ac_fn_cxx_try_cpp "$LINENO"; then :
1948 ac_header_preproc=yes
1949else
1950 ac_header_preproc=no
1951fi
1952rm -f conftest.err conftest.i conftest.$ac_ext
1953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1954$as_echo "$ac_header_preproc" >&6; }
1955
1956# So? What about this header?
1957case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1958 yes:no: )
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1960$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1962$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963 ;;
1964 no:yes:* )
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1966$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1968$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1970$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1972$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 ;;
1976esac
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978$as_echo_n "checking for $2... " >&6; }
1979if eval "test \"\${$3+set}\"" = set; then :
1980 $as_echo_n "(cached) " >&6
1981else
1982 eval "$3=\$ac_header_compiler"
1983fi
1984eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986$as_echo "$ac_res" >&6; }
1987fi
1988 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989
1990} # ac_fn_cxx_check_header_mongrel
1991
1992# ac_fn_cxx_check_func LINENO FUNC VAR
1993# ------------------------------------
1994# Tests whether FUNC exists, setting the cache variable VAR accordingly
1995ac_fn_cxx_check_func ()
1996{
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999$as_echo_n "checking for $2... " >&6; }
2000if eval "test \"\${$3+set}\"" = set; then :
2001 $as_echo_n "(cached) " >&6
2002else
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004/* end confdefs.h. */
2005/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2007#define $2 innocuous_$2
2008
2009/* System header to define __stub macros and hopefully few prototypes,
2010 which can conflict with char $2 (); below.
2011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2012 <limits.h> exists even on freestanding compilers. */
2013
2014#ifdef __STDC__
2015# include <limits.h>
2016#else
2017# include <assert.h>
2018#endif
2019
2020#undef $2
2021
2022/* Override any GCC internal prototype to avoid an error.
2023 Use char because int might match the return type of a GCC
2024 builtin and then its argument prototype would still apply. */
2025#ifdef __cplusplus
2026extern "C"
2027#endif
2028char $2 ();
2029/* The GNU C library defines this for functions which it implements
2030 to always fail with ENOSYS. Some functions are actually named
2031 something starting with __ and the normal name is an alias. */
2032#if defined __stub_$2 || defined __stub___$2
2033choke me
2034#endif
2035
2036int
2037main ()
2038{
2039return $2 ();
2040 ;
2041 return 0;
2042}
2043_ACEOF
2044if ac_fn_cxx_try_link "$LINENO"; then :
2045 eval "$3=yes"
2046else
2047 eval "$3=no"
2048fi
2049rm -f core conftest.err conftest.$ac_objext \
2050 conftest$ac_exeext conftest.$ac_ext
2051fi
2052eval ac_res=\$$3
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056
2057} # ac_fn_cxx_check_func
2058
2059# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2060# ---------------------------------------------
2061# Tests whether TYPE exists after having included INCLUDES, setting cache
2062# variable VAR accordingly.
2063ac_fn_cxx_check_type ()
2064{
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067$as_echo_n "checking for $2... " >&6; }
2068if eval "test \"\${$3+set}\"" = set; then :
2069 $as_echo_n "(cached) " >&6
2070else
2071 eval "$3=no"
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073/* end confdefs.h. */
2074$4
2075int
2076main ()
2077{
2078if (sizeof ($2))
2079 return 0;
2080 ;
2081 return 0;
2082}
2083_ACEOF
2084if ac_fn_cxx_try_compile "$LINENO"; then :
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086/* end confdefs.h. */
2087$4
2088int
2089main ()
2090{
2091if (sizeof (($2)))
2092 return 0;
2093 ;
2094 return 0;
2095}
2096_ACEOF
2097if ac_fn_cxx_try_compile "$LINENO"; then :
2098
2099else
2100 eval "$3=yes"
2101fi
2102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103fi
2104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105fi
2106eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108$as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110
2111} # ac_fn_cxx_check_type
2112
2113# ac_fn_c_find_intX_t LINENO BITS VAR
2114# -----------------------------------
2115# Finds a signed integer type with width BITS, setting cache variable VAR
2116# accordingly.
2117ac_fn_c_find_intX_t ()
2118{
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2121$as_echo_n "checking for int$2_t... " >&6; }
2122if eval "test \"\${$3+set}\"" = set; then :
2123 $as_echo_n "(cached) " >&6
2124else
2125 eval "$3=no"
2126 # Order is important - never check a type that is potentially smaller
2127 # than half of the expected target width.
2128 for ac_type in int$2_t 'int' 'long int' \
2129 'long long int' 'short int' 'signed char'; do
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h. */
2132$ac_includes_default
2133 enum { N = $2 / 2 - 1 };
2134int
2135main ()
2136{
2137static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2138test_array [0] = 0
2139
2140 ;
2141 return 0;
2142}
2143_ACEOF
2144if ac_fn_cxx_try_compile "$LINENO"; then :
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146/* end confdefs.h. */
2147$ac_includes_default
2148 enum { N = $2 / 2 - 1 };
2149int
2150main ()
2151{
2152static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2153 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2154test_array [0] = 0
2155
2156 ;
2157 return 0;
2158}
2159_ACEOF
2160if ac_fn_cxx_try_compile "$LINENO"; then :
2161
2162else
2163 case $ac_type in #(
2164 int$2_t) :
2165 eval "$3=yes" ;; #(
2166 *) :
2167 eval "$3=\$ac_type" ;;
2168esac
2169fi
2170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171fi
2172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 if eval test \"x\$"$3"\" = x"no"; then :
2174
2175else
2176 break
2177fi
2178 done
2179fi
2180eval ac_res=\$$3
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182$as_echo "$ac_res" >&6; }
2183 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2184
2185} # ac_fn_c_find_intX_t
2186
2187# ac_fn_c_find_uintX_t LINENO BITS VAR
2188# ------------------------------------
2189# Finds an unsigned integer type with width BITS, setting cache variable VAR
2190# accordingly.
2191ac_fn_c_find_uintX_t ()
2192{
2193 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2195$as_echo_n "checking for uint$2_t... " >&6; }
2196if eval "test \"\${$3+set}\"" = set; then :
2197 $as_echo_n "(cached) " >&6
2198else
2199 eval "$3=no"
2200 # Order is important - never check a type that is potentially smaller
2201 # than half of the expected target width.
2202 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2203 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h. */
2206$ac_includes_default
2207int
2208main ()
2209{
2210static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2211test_array [0] = 0
2212
2213 ;
2214 return 0;
2215}
2216_ACEOF
2217if ac_fn_cxx_try_compile "$LINENO"; then :
2218 case $ac_type in #(
2219 uint$2_t) :
2220 eval "$3=yes" ;; #(
2221 *) :
2222 eval "$3=\$ac_type" ;;
2223esac
2224fi
2225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 if eval test \"x\$"$3"\" = x"no"; then :
2227
2228else
2229 break
2230fi
2231 done
2232fi
2233eval ac_res=\$$3
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235$as_echo "$ac_res" >&6; }
2236 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2237
2238} # ac_fn_c_find_uintX_t
2239
2240# ac_fn_cxx_try_run LINENO
2241# ------------------------
2242# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2243# that executables *can* be run.
2244ac_fn_cxx_try_run ()
2245{
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 if { { ac_try="$ac_link"
2248case "(($ac_try" in
2249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250 *) ac_try_echo=$ac_try;;
2251esac
2252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2253$as_echo "$ac_try_echo"; } >&5
2254 (eval "$ac_link") 2>&5
2255 ac_status=$?
2256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2257 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2258 { { case "(($ac_try" in
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2261esac
2262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2263$as_echo "$ac_try_echo"; } >&5
2264 (eval "$ac_try") 2>&5
2265 ac_status=$?
2266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 test $ac_status = 0; }; }; then :
2268 ac_retval=0
2269else
2270 $as_echo "$as_me: program exited with status $ac_status" >&5
2271 $as_echo "$as_me: failed program was:" >&5
2272sed 's/^/| /' conftest.$ac_ext >&5
2273
2274 ac_retval=$ac_status
2275fi
2276 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2277 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2278 as_fn_set_status $ac_retval
2279
2280} # ac_fn_cxx_try_run
1465cat >config.log <<_ACEOF 2281cat >config.log <<_ACEOF
1466This file contains any messages produced by compilers while 2282This file contains any messages produced by compilers while
1467running configure, to aid debugging if configure makes a mistake. 2283running configure, to aid debugging if configure makes a mistake.
1468 2284
1469It was created by $as_me, which was 2285It was created by $as_me, which was
1470generated by GNU Autoconf 2.61. Invocation command line was 2286generated by GNU Autoconf 2.67. Invocation command line was
1471 2287
1472 $ $0 $@ 2288 $ $0 $@
1473 2289
1474_ACEOF 2290_ACEOF
1475exec 5>>config.log 2291exec 5>>config.log
1501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502for as_dir in $PATH 2318for as_dir in $PATH
1503do 2319do
1504 IFS=$as_save_IFS 2320 IFS=$as_save_IFS
1505 test -z "$as_dir" && as_dir=. 2321 test -z "$as_dir" && as_dir=.
1506 echo "PATH: $as_dir" 2322 $as_echo "PATH: $as_dir"
1507done 2323 done
1508IFS=$as_save_IFS 2324IFS=$as_save_IFS
1509 2325
1510} >&5 2326} >&5
1511 2327
1512cat >&5 <<_ACEOF 2328cat >&5 <<_ACEOF
1536 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2352 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1538 | -silent | --silent | --silen | --sile | --sil) 2354 | -silent | --silent | --silen | --sile | --sil)
1539 continue ;; 2355 continue ;;
1540 *\'*) 2356 *\'*)
1541 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2357 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1542 esac 2358 esac
1543 case $ac_pass in 2359 case $ac_pass in
1544 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2360 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1545 2) 2361 2)
1546 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 2362 as_fn_append ac_configure_args1 " '$ac_arg'"
1547 if test $ac_must_keep_next = true; then 2363 if test $ac_must_keep_next = true; then
1548 ac_must_keep_next=false # Got value, back to normal. 2364 ac_must_keep_next=false # Got value, back to normal.
1549 else 2365 else
1550 case $ac_arg in 2366 case $ac_arg in
1551 *=* | --config-cache | -C | -disable-* | --disable-* \ 2367 *=* | --config-cache | -C | -disable-* | --disable-* \
1557 esac 2373 esac
1558 ;; 2374 ;;
1559 -* ) ac_must_keep_next=true ;; 2375 -* ) ac_must_keep_next=true ;;
1560 esac 2376 esac
1561 fi 2377 fi
1562 ac_configure_args="$ac_configure_args '$ac_arg'" 2378 as_fn_append ac_configure_args " '$ac_arg'"
1563 ;; 2379 ;;
1564 esac 2380 esac
1565 done 2381 done
1566done 2382done
1567$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 2383{ ac_configure_args0=; unset ac_configure_args0;}
1568$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 2384{ ac_configure_args1=; unset ac_configure_args1;}
1569 2385
1570# When interrupted or exit'd, cleanup temporary files, and complete 2386# When interrupted or exit'd, cleanup temporary files, and complete
1571# config.log. We remove comments because anyway the quotes in there 2387# config.log. We remove comments because anyway the quotes in there
1572# would cause problems or look ugly. 2388# would cause problems or look ugly.
1573# WARNING: Use '\'' to represent an apostrophe within the trap. 2389# WARNING: Use '\'' to represent an apostrophe within the trap.
1575trap 'exit_status=$? 2391trap 'exit_status=$?
1576 # Save into config.log some information that might help in debugging. 2392 # Save into config.log some information that might help in debugging.
1577 { 2393 {
1578 echo 2394 echo
1579 2395
1580 cat <<\_ASBOX
1581## ---------------- ## 2396 $as_echo "## ---------------- ##
1582## Cache variables. ## 2397## Cache variables. ##
1583## ---------------- ## 2398## ---------------- ##"
1584_ASBOX
1585 echo 2399 echo
1586 # The following way of writing the cache mishandles newlines in values, 2400 # The following way of writing the cache mishandles newlines in values,
1587( 2401(
1588 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2402 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1589 eval ac_val=\$$ac_var 2403 eval ac_val=\$$ac_var
1590 case $ac_val in #( 2404 case $ac_val in #(
1591 *${as_nl}*) 2405 *${as_nl}*)
1592 case $ac_var in #( 2406 case $ac_var in #(
1593 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 2407 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1594echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 2408$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1595 esac 2409 esac
1596 case $ac_var in #( 2410 case $ac_var in #(
1597 _ | IFS | as_nl) ;; #( 2411 _ | IFS | as_nl) ;; #(
1598 *) $as_unset $ac_var ;; 2412 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2413 *) { eval $ac_var=; unset $ac_var;} ;;
1599 esac ;; 2414 esac ;;
1600 esac 2415 esac
1601 done 2416 done
1602 (set) 2>&1 | 2417 (set) 2>&1 |
1603 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2418 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1612 esac | 2427 esac |
1613 sort 2428 sort
1614) 2429)
1615 echo 2430 echo
1616 2431
1617 cat <<\_ASBOX
1618## ----------------- ## 2432 $as_echo "## ----------------- ##
1619## Output variables. ## 2433## Output variables. ##
1620## ----------------- ## 2434## ----------------- ##"
1621_ASBOX
1622 echo 2435 echo
1623 for ac_var in $ac_subst_vars 2436 for ac_var in $ac_subst_vars
1624 do 2437 do
1625 eval ac_val=\$$ac_var 2438 eval ac_val=\$$ac_var
1626 case $ac_val in 2439 case $ac_val in
1627 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2440 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 esac 2441 esac
1629 echo "$ac_var='\''$ac_val'\''" 2442 $as_echo "$ac_var='\''$ac_val'\''"
1630 done | sort 2443 done | sort
1631 echo 2444 echo
1632 2445
1633 if test -n "$ac_subst_files"; then 2446 if test -n "$ac_subst_files"; then
1634 cat <<\_ASBOX
1635## ------------------- ## 2447 $as_echo "## ------------------- ##
1636## File substitutions. ## 2448## File substitutions. ##
1637## ------------------- ## 2449## ------------------- ##"
1638_ASBOX
1639 echo 2450 echo
1640 for ac_var in $ac_subst_files 2451 for ac_var in $ac_subst_files
1641 do 2452 do
1642 eval ac_val=\$$ac_var 2453 eval ac_val=\$$ac_var
1643 case $ac_val in 2454 case $ac_val in
1644 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2455 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1645 esac 2456 esac
1646 echo "$ac_var='\''$ac_val'\''" 2457 $as_echo "$ac_var='\''$ac_val'\''"
1647 done | sort 2458 done | sort
1648 echo 2459 echo
1649 fi 2460 fi
1650 2461
1651 if test -s confdefs.h; then 2462 if test -s confdefs.h; then
1652 cat <<\_ASBOX 2463 $as_echo "## ----------- ##
1653## ----------- ##
1654## confdefs.h. ## 2464## confdefs.h. ##
1655## ----------- ## 2465## ----------- ##"
1656_ASBOX
1657 echo 2466 echo
1658 cat confdefs.h 2467 cat confdefs.h
1659 echo 2468 echo
1660 fi 2469 fi
1661 test "$ac_signal" != 0 && 2470 test "$ac_signal" != 0 &&
1662 echo "$as_me: caught signal $ac_signal" 2471 $as_echo "$as_me: caught signal $ac_signal"
1663 echo "$as_me: exit $exit_status" 2472 $as_echo "$as_me: exit $exit_status"
1664 } >&5 2473 } >&5
1665 rm -f core *.core core.conftest.* && 2474 rm -f core *.core core.conftest.* &&
1666 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2475 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1667 exit $exit_status 2476 exit $exit_status
1668' 0 2477' 0
1669for ac_signal in 1 2 13 15; do 2478for ac_signal in 1 2 13 15; do
1670 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 2479 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1671done 2480done
1672ac_signal=0 2481ac_signal=0
1673 2482
1674# confdefs.h avoids OS command line length limits that DEFS can exceed. 2483# confdefs.h avoids OS command line length limits that DEFS can exceed.
1675rm -f -r conftest* confdefs.h 2484rm -f -r conftest* confdefs.h
1676 2485
2486$as_echo "/* confdefs.h */" > confdefs.h
2487
1677# Predefined preprocessor variables. 2488# Predefined preprocessor variables.
1678 2489
1679cat >>confdefs.h <<_ACEOF 2490cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_NAME "$PACKAGE_NAME" 2491#define PACKAGE_NAME "$PACKAGE_NAME"
1681_ACEOF 2492_ACEOF
1682 2493
1683
1684cat >>confdefs.h <<_ACEOF 2494cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2495#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1686_ACEOF 2496_ACEOF
1687 2497
1688
1689cat >>confdefs.h <<_ACEOF 2498cat >>confdefs.h <<_ACEOF
1690#define PACKAGE_VERSION "$PACKAGE_VERSION" 2499#define PACKAGE_VERSION "$PACKAGE_VERSION"
1691_ACEOF 2500_ACEOF
1692 2501
1693
1694cat >>confdefs.h <<_ACEOF 2502cat >>confdefs.h <<_ACEOF
1695#define PACKAGE_STRING "$PACKAGE_STRING" 2503#define PACKAGE_STRING "$PACKAGE_STRING"
1696_ACEOF 2504_ACEOF
1697 2505
1698
1699cat >>confdefs.h <<_ACEOF 2506cat >>confdefs.h <<_ACEOF
1700#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2507#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1701_ACEOF 2508_ACEOF
1702 2509
2510cat >>confdefs.h <<_ACEOF
2511#define PACKAGE_URL "$PACKAGE_URL"
2512_ACEOF
2513
1703 2514
1704# Let the site file select an alternate cache file if it wants to. 2515# Let the site file select an alternate cache file if it wants to.
1705# Prefer explicitly selected file to automatically selected ones. 2516# Prefer an explicitly selected file to automatically selected ones.
2517ac_site_file1=NONE
2518ac_site_file2=NONE
1706if test -n "$CONFIG_SITE"; then 2519if test -n "$CONFIG_SITE"; then
1707 set x "$CONFIG_SITE" 2520 # We do not want a PATH search for config.site.
2521 case $CONFIG_SITE in #((
2522 -*) ac_site_file1=./$CONFIG_SITE;;
2523 */*) ac_site_file1=$CONFIG_SITE;;
2524 *) ac_site_file1=./$CONFIG_SITE;;
2525 esac
1708elif test "x$prefix" != xNONE; then 2526elif test "x$prefix" != xNONE; then
1709 set x "$prefix/share/config.site" "$prefix/etc/config.site" 2527 ac_site_file1=$prefix/share/config.site
2528 ac_site_file2=$prefix/etc/config.site
1710else 2529else
1711 set x "$ac_default_prefix/share/config.site" \ 2530 ac_site_file1=$ac_default_prefix/share/config.site
1712 "$ac_default_prefix/etc/config.site" 2531 ac_site_file2=$ac_default_prefix/etc/config.site
1713fi 2532fi
1714shift 2533for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1715for ac_site_file
1716do 2534do
1717 if test -r "$ac_site_file"; then 2535 test "x$ac_site_file" = xNONE && continue
2536 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1718 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1719echo "$as_me: loading site script $ac_site_file" >&6;} 2538$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1720 sed 's/^/| /' "$ac_site_file" >&5 2539 sed 's/^/| /' "$ac_site_file" >&5
1721 . "$ac_site_file" 2540 . "$ac_site_file" \
2541 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2543as_fn_error $? "failed to load site script $ac_site_file
2544See \`config.log' for more details" "$LINENO" 5; }
1722 fi 2545 fi
1723done 2546done
1724 2547
1725if test -r "$cache_file"; then 2548if test -r "$cache_file"; then
1726 # Some versions of bash will fail to source /dev/null (special 2549 # Some versions of bash will fail to source /dev/null (special files
1727 # files actually), so we avoid doing that. 2550 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1728 if test -f "$cache_file"; then 2551 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1729 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1730echo "$as_me: loading cache $cache_file" >&6;} 2553$as_echo "$as_me: loading cache $cache_file" >&6;}
1731 case $cache_file in 2554 case $cache_file in
1732 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2555 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1733 *) . "./$cache_file";; 2556 *) . "./$cache_file";;
1734 esac 2557 esac
1735 fi 2558 fi
1736else 2559else
1737 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1738echo "$as_me: creating cache $cache_file" >&6;} 2561$as_echo "$as_me: creating cache $cache_file" >&6;}
1739 >$cache_file 2562 >$cache_file
1740fi 2563fi
1741 2564
1742# Check that the precious variables saved in the cache have kept the same 2565# Check that the precious variables saved in the cache have kept the same
1743# value. 2566# value.
1747 eval ac_new_set=\$ac_env_${ac_var}_set 2570 eval ac_new_set=\$ac_env_${ac_var}_set
1748 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2571 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1749 eval ac_new_val=\$ac_env_${ac_var}_value 2572 eval ac_new_val=\$ac_env_${ac_var}_value
1750 case $ac_old_set,$ac_new_set in 2573 case $ac_old_set,$ac_new_set in
1751 set,) 2574 set,)
1752 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2575 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1753echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2576$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1754 ac_cache_corrupted=: ;; 2577 ac_cache_corrupted=: ;;
1755 ,set) 2578 ,set)
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1757echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2580$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1758 ac_cache_corrupted=: ;; 2581 ac_cache_corrupted=: ;;
1759 ,);; 2582 ,);;
1760 *) 2583 *)
1761 if test "x$ac_old_val" != "x$ac_new_val"; then 2584 if test "x$ac_old_val" != "x$ac_new_val"; then
2585 # differences in whitespace do not lead to failure.
2586 ac_old_val_w=`echo x $ac_old_val`
2587 ac_new_val_w=`echo x $ac_new_val`
2588 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1762 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1763echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2590$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1764 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1765echo "$as_me: former value: $ac_old_val" >&2;}
1766 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1767echo "$as_me: current value: $ac_new_val" >&2;}
1768 ac_cache_corrupted=: 2591 ac_cache_corrupted=:
2592 else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2594$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2595 eval $ac_var=\$ac_old_val
2596 fi
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2598$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2600$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1769 fi;; 2601 fi;;
1770 esac 2602 esac
1771 # Pass precious variables to config.status. 2603 # Pass precious variables to config.status.
1772 if test "$ac_new_set" = set; then 2604 if test "$ac_new_set" = set; then
1773 case $ac_new_val in 2605 case $ac_new_val in
1774 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2606 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 *) ac_arg=$ac_var=$ac_new_val ;; 2607 *) ac_arg=$ac_var=$ac_new_val ;;
1776 esac 2608 esac
1777 case " $ac_configure_args " in 2609 case " $ac_configure_args " in
1778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2610 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1779 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2611 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1780 esac 2612 esac
1781 fi 2613 fi
1782done 2614done
1783if $ac_cache_corrupted; then 2615if $ac_cache_corrupted; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1784 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1785echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2619$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1786 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1787echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2620 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1788 { (exit 1); exit 1; }; }
1789fi 2621fi
1790 2622## -------------------- ##
1791 2623## Main body of script. ##
1792 2624## -------------------- ##
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806 2625
1807ac_ext=c 2626ac_ext=c
1808ac_cpp='$CPP $CPPFLAGS' 2627ac_cpp='$CPP $CPPFLAGS'
1809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831 ac_install_sh="$ac_aux_dir/shtool install -c" 2650 ac_install_sh="$ac_aux_dir/shtool install -c"
1832 break 2651 break
1833 fi 2652 fi
1834done 2653done
1835if test -z "$ac_aux_dir"; then 2654if test -z "$ac_aux_dir"; then
1836 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1837echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2655 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1838 { (exit 1); exit 1; }; }
1839fi 2656fi
1840 2657
1841# These three variables are undocumented and unsupported, 2658# These three variables are undocumented and unsupported,
1842# and are intended to be withdrawn in a future Autoconf release. 2659# and are intended to be withdrawn in a future Autoconf release.
1843# They can cause serious problems if a builder's source tree is in a directory 2660# They can cause serious problems if a builder's source tree is in a directory
1847ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2664ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1848 2665
1849 2666
1850# Make sure we can run config.sub. 2667# Make sure we can run config.sub.
1851$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2668$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1852 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2669 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1853echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1854 { (exit 1); exit 1; }; }
1855 2670
1856{ echo "$as_me:$LINENO: checking build system type" >&5 2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1857echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2672$as_echo_n "checking build system type... " >&6; }
1858if test "${ac_cv_build+set}" = set; then 2673if test "${ac_cv_build+set}" = set; then :
1859 echo $ECHO_N "(cached) $ECHO_C" >&6 2674 $as_echo_n "(cached) " >&6
1860else 2675else
1861 ac_build_alias=$build_alias 2676 ac_build_alias=$build_alias
1862test "x$ac_build_alias" = x && 2677test "x$ac_build_alias" = x &&
1863 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2678 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1864test "x$ac_build_alias" = x && 2679test "x$ac_build_alias" = x &&
1865 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2680 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1866echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1867 { (exit 1); exit 1; }; }
1868ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2681ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1869 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1870echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2682 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1871 { (exit 1); exit 1; }; }
1872 2683
1873fi 2684fi
1874{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1875echo "${ECHO_T}$ac_cv_build" >&6; } 2686$as_echo "$ac_cv_build" >&6; }
1876case $ac_cv_build in 2687case $ac_cv_build in
1877*-*-*) ;; 2688*-*-*) ;;
1878*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2689*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1879echo "$as_me: error: invalid value of canonical build" >&2;}
1880 { (exit 1); exit 1; }; };;
1881esac 2690esac
1882build=$ac_cv_build 2691build=$ac_cv_build
1883ac_save_IFS=$IFS; IFS='-' 2692ac_save_IFS=$IFS; IFS='-'
1884set x $ac_cv_build 2693set x $ac_cv_build
1885shift 2694shift
1891build_os=$* 2700build_os=$*
1892IFS=$ac_save_IFS 2701IFS=$ac_save_IFS
1893case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2702case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1894 2703
1895 2704
1896{ echo "$as_me:$LINENO: checking host system type" >&5 2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1897echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2706$as_echo_n "checking host system type... " >&6; }
1898if test "${ac_cv_host+set}" = set; then 2707if test "${ac_cv_host+set}" = set; then :
1899 echo $ECHO_N "(cached) $ECHO_C" >&6 2708 $as_echo_n "(cached) " >&6
1900else 2709else
1901 if test "x$host_alias" = x; then 2710 if test "x$host_alias" = x; then
1902 ac_cv_host=$ac_cv_build 2711 ac_cv_host=$ac_cv_build
1903else 2712else
1904 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2713 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1905 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2714 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1906echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1907 { (exit 1); exit 1; }; }
1908fi 2715fi
1909 2716
1910fi 2717fi
1911{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1912echo "${ECHO_T}$ac_cv_host" >&6; } 2719$as_echo "$ac_cv_host" >&6; }
1913case $ac_cv_host in 2720case $ac_cv_host in
1914*-*-*) ;; 2721*-*-*) ;;
1915*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2722*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1916echo "$as_me: error: invalid value of canonical host" >&2;}
1917 { (exit 1); exit 1; }; };;
1918esac 2723esac
1919host=$ac_cv_host 2724host=$ac_cv_host
1920ac_save_IFS=$IFS; IFS='-' 2725ac_save_IFS=$IFS; IFS='-'
1921set x $ac_cv_host 2726set x $ac_cv_host
1922shift 2727shift
1931 2736
1932 2737
1933 2738
1934VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2739VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1935DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2740DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2741
1936echo "" 2742echo ""
1937echo "configuring for rxvt $VERSION" 2743echo "configuring for rxvt $VERSION"
1938echo "" 2744echo ""
1939 2745
1940orig_CXXFLAGS="$CXXFLAGS" 2746orig_CXXFLAGS="$CXXFLAGS"
1941
1942 2747
1943ac_ext=c 2748ac_ext=c
1944ac_cpp='$CPP $CPPFLAGS' 2749ac_cpp='$CPP $CPPFLAGS'
1945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947ac_compiler_gnu=$ac_cv_c_compiler_gnu 2752ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948if test -n "$ac_tool_prefix"; then 2753if test -n "$ac_tool_prefix"; then
1949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2754 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1950set dummy ${ac_tool_prefix}gcc; ac_word=$2 2755set dummy ${ac_tool_prefix}gcc; ac_word=$2
1951{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2757$as_echo_n "checking for $ac_word... " >&6; }
1953if test "${ac_cv_prog_CC+set}" = set; then 2758if test "${ac_cv_prog_CC+set}" = set; then :
1954 echo $ECHO_N "(cached) $ECHO_C" >&6 2759 $as_echo_n "(cached) " >&6
1955else 2760else
1956 if test -n "$CC"; then 2761 if test -n "$CC"; then
1957 ac_cv_prog_CC="$CC" # Let the user override the test. 2762 ac_cv_prog_CC="$CC" # Let the user override the test.
1958else 2763else
1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH 2765for as_dir in $PATH
1961do 2766do
1962 IFS=$as_save_IFS 2767 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=. 2768 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do 2769 for ac_exec_ext in '' $ac_executable_extensions; do
1965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1966 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2771 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1968 break 2 2773 break 2
1969 fi 2774 fi
1970done 2775done
1971done 2776 done
1972IFS=$as_save_IFS 2777IFS=$as_save_IFS
1973 2778
1974fi 2779fi
1975fi 2780fi
1976CC=$ac_cv_prog_CC 2781CC=$ac_cv_prog_CC
1977if test -n "$CC"; then 2782if test -n "$CC"; then
1978 { echo "$as_me:$LINENO: result: $CC" >&5 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1979echo "${ECHO_T}$CC" >&6; } 2784$as_echo "$CC" >&6; }
1980else 2785else
1981 { echo "$as_me:$LINENO: result: no" >&5 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1982echo "${ECHO_T}no" >&6; } 2787$as_echo "no" >&6; }
1983fi 2788fi
1984 2789
1985 2790
1986fi 2791fi
1987if test -z "$ac_cv_prog_CC"; then 2792if test -z "$ac_cv_prog_CC"; then
1988 ac_ct_CC=$CC 2793 ac_ct_CC=$CC
1989 # Extract the first word of "gcc", so it can be a program name with args. 2794 # Extract the first word of "gcc", so it can be a program name with args.
1990set dummy gcc; ac_word=$2 2795set dummy gcc; ac_word=$2
1991{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2797$as_echo_n "checking for $ac_word... " >&6; }
1993if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2798if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
1994 echo $ECHO_N "(cached) $ECHO_C" >&6 2799 $as_echo_n "(cached) " >&6
1995else 2800else
1996 if test -n "$ac_ct_CC"; then 2801 if test -n "$ac_ct_CC"; then
1997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1998else 2803else
1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH 2805for as_dir in $PATH
2001do 2806do
2002 IFS=$as_save_IFS 2807 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=. 2808 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do 2809 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2006 ac_cv_prog_ac_ct_CC="gcc" 2811 ac_cv_prog_ac_ct_CC="gcc"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2008 break 2 2813 break 2
2009 fi 2814 fi
2010done 2815done
2011done 2816 done
2012IFS=$as_save_IFS 2817IFS=$as_save_IFS
2013 2818
2014fi 2819fi
2015fi 2820fi
2016ac_ct_CC=$ac_cv_prog_ac_ct_CC 2821ac_ct_CC=$ac_cv_prog_ac_ct_CC
2017if test -n "$ac_ct_CC"; then 2822if test -n "$ac_ct_CC"; then
2018 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2019echo "${ECHO_T}$ac_ct_CC" >&6; } 2824$as_echo "$ac_ct_CC" >&6; }
2020else 2825else
2021 { echo "$as_me:$LINENO: result: no" >&5 2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2022echo "${ECHO_T}no" >&6; } 2827$as_echo "no" >&6; }
2023fi 2828fi
2024 2829
2025 if test "x$ac_ct_CC" = x; then 2830 if test "x$ac_ct_CC" = x; then
2026 CC="" 2831 CC=""
2027 else 2832 else
2028 case $cross_compiling:$ac_tool_warned in 2833 case $cross_compiling:$ac_tool_warned in
2029yes:) 2834yes:)
2030{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2031whose name does not start with the host triplet. If you think this 2836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2032configuration is useful to you, please write to autoconf@gnu.org." >&5
2033echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2034whose name does not start with the host triplet. If you think this
2035configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2036ac_tool_warned=yes ;; 2837ac_tool_warned=yes ;;
2037esac 2838esac
2038 CC=$ac_ct_CC 2839 CC=$ac_ct_CC
2039 fi 2840 fi
2040else 2841else
2043 2844
2044if test -z "$CC"; then 2845if test -z "$CC"; then
2045 if test -n "$ac_tool_prefix"; then 2846 if test -n "$ac_tool_prefix"; then
2046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2847 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2047set dummy ${ac_tool_prefix}cc; ac_word=$2 2848set dummy ${ac_tool_prefix}cc; ac_word=$2
2048{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2850$as_echo_n "checking for $ac_word... " >&6; }
2050if test "${ac_cv_prog_CC+set}" = set; then 2851if test "${ac_cv_prog_CC+set}" = set; then :
2051 echo $ECHO_N "(cached) $ECHO_C" >&6 2852 $as_echo_n "(cached) " >&6
2052else 2853else
2053 if test -n "$CC"; then 2854 if test -n "$CC"; then
2054 ac_cv_prog_CC="$CC" # Let the user override the test. 2855 ac_cv_prog_CC="$CC" # Let the user override the test.
2055else 2856else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH 2858for as_dir in $PATH
2058do 2859do
2059 IFS=$as_save_IFS 2860 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=. 2861 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do 2862 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2063 ac_cv_prog_CC="${ac_tool_prefix}cc" 2864 ac_cv_prog_CC="${ac_tool_prefix}cc"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 break 2 2866 break 2
2066 fi 2867 fi
2067done 2868done
2068done 2869 done
2069IFS=$as_save_IFS 2870IFS=$as_save_IFS
2070 2871
2071fi 2872fi
2072fi 2873fi
2073CC=$ac_cv_prog_CC 2874CC=$ac_cv_prog_CC
2074if test -n "$CC"; then 2875if test -n "$CC"; then
2075 { echo "$as_me:$LINENO: result: $CC" >&5 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2076echo "${ECHO_T}$CC" >&6; } 2877$as_echo "$CC" >&6; }
2077else 2878else
2078 { echo "$as_me:$LINENO: result: no" >&5 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2079echo "${ECHO_T}no" >&6; } 2880$as_echo "no" >&6; }
2080fi 2881fi
2081 2882
2082 2883
2083 fi 2884 fi
2084fi 2885fi
2085if test -z "$CC"; then 2886if test -z "$CC"; then
2086 # Extract the first word of "cc", so it can be a program name with args. 2887 # Extract the first word of "cc", so it can be a program name with args.
2087set dummy cc; ac_word=$2 2888set dummy cc; ac_word=$2
2088{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2890$as_echo_n "checking for $ac_word... " >&6; }
2090if test "${ac_cv_prog_CC+set}" = set; then 2891if test "${ac_cv_prog_CC+set}" = set; then :
2091 echo $ECHO_N "(cached) $ECHO_C" >&6 2892 $as_echo_n "(cached) " >&6
2092else 2893else
2093 if test -n "$CC"; then 2894 if test -n "$CC"; then
2094 ac_cv_prog_CC="$CC" # Let the user override the test. 2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2095else 2896else
2096 ac_prog_rejected=no 2897 ac_prog_rejected=no
2097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH 2899for as_dir in $PATH
2099do 2900do
2100 IFS=$as_save_IFS 2901 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=. 2902 test -z "$as_dir" && as_dir=.
2102 for ac_exec_ext in '' $ac_executable_extensions; do 2903 for ac_exec_ext in '' $ac_executable_extensions; do
2103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2104 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2905 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2105 ac_prog_rejected=yes 2906 ac_prog_rejected=yes
2106 continue 2907 continue
2107 fi 2908 fi
2108 ac_cv_prog_CC="cc" 2909 ac_cv_prog_CC="cc"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 break 2 2911 break 2
2111 fi 2912 fi
2112done 2913done
2113done 2914 done
2114IFS=$as_save_IFS 2915IFS=$as_save_IFS
2115 2916
2116if test $ac_prog_rejected = yes; then 2917if test $ac_prog_rejected = yes; then
2117 # We found a bogon in the path, so make sure we never use it. 2918 # We found a bogon in the path, so make sure we never use it.
2118 set dummy $ac_cv_prog_CC 2919 set dummy $ac_cv_prog_CC
2127fi 2928fi
2128fi 2929fi
2129fi 2930fi
2130CC=$ac_cv_prog_CC 2931CC=$ac_cv_prog_CC
2131if test -n "$CC"; then 2932if test -n "$CC"; then
2132 { echo "$as_me:$LINENO: result: $CC" >&5 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2133echo "${ECHO_T}$CC" >&6; } 2934$as_echo "$CC" >&6; }
2134else 2935else
2135 { echo "$as_me:$LINENO: result: no" >&5 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2136echo "${ECHO_T}no" >&6; } 2937$as_echo "no" >&6; }
2137fi 2938fi
2138 2939
2139 2940
2140fi 2941fi
2141if test -z "$CC"; then 2942if test -z "$CC"; then
2142 if test -n "$ac_tool_prefix"; then 2943 if test -n "$ac_tool_prefix"; then
2143 for ac_prog in cl.exe 2944 for ac_prog in cl.exe
2144 do 2945 do
2145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2146set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2947set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2147{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2949$as_echo_n "checking for $ac_word... " >&6; }
2149if test "${ac_cv_prog_CC+set}" = set; then 2950if test "${ac_cv_prog_CC+set}" = set; then :
2150 echo $ECHO_N "(cached) $ECHO_C" >&6 2951 $as_echo_n "(cached) " >&6
2151else 2952else
2152 if test -n "$CC"; then 2953 if test -n "$CC"; then
2153 ac_cv_prog_CC="$CC" # Let the user override the test. 2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2154else 2955else
2155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156for as_dir in $PATH 2957for as_dir in $PATH
2157do 2958do
2158 IFS=$as_save_IFS 2959 IFS=$as_save_IFS
2159 test -z "$as_dir" && as_dir=. 2960 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do 2961 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2162 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 break 2 2965 break 2
2165 fi 2966 fi
2166done 2967done
2167done 2968 done
2168IFS=$as_save_IFS 2969IFS=$as_save_IFS
2169 2970
2170fi 2971fi
2171fi 2972fi
2172CC=$ac_cv_prog_CC 2973CC=$ac_cv_prog_CC
2173if test -n "$CC"; then 2974if test -n "$CC"; then
2174 { echo "$as_me:$LINENO: result: $CC" >&5 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2175echo "${ECHO_T}$CC" >&6; } 2976$as_echo "$CC" >&6; }
2176else 2977else
2177 { echo "$as_me:$LINENO: result: no" >&5 2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2178echo "${ECHO_T}no" >&6; } 2979$as_echo "no" >&6; }
2179fi 2980fi
2180 2981
2181 2982
2182 test -n "$CC" && break 2983 test -n "$CC" && break
2183 done 2984 done
2186 ac_ct_CC=$CC 2987 ac_ct_CC=$CC
2187 for ac_prog in cl.exe 2988 for ac_prog in cl.exe
2188do 2989do
2189 # Extract the first word of "$ac_prog", so it can be a program name with args. 2990 # Extract the first word of "$ac_prog", so it can be a program name with args.
2190set dummy $ac_prog; ac_word=$2 2991set dummy $ac_prog; ac_word=$2
2191{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2993$as_echo_n "checking for $ac_word... " >&6; }
2193if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2994if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2194 echo $ECHO_N "(cached) $ECHO_C" >&6 2995 $as_echo_n "(cached) " >&6
2195else 2996else
2196 if test -n "$ac_ct_CC"; then 2997 if test -n "$ac_ct_CC"; then
2197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2198else 2999else
2199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200for as_dir in $PATH 3001for as_dir in $PATH
2201do 3002do
2202 IFS=$as_save_IFS 3003 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=. 3004 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do 3005 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2206 ac_cv_prog_ac_ct_CC="$ac_prog" 3007 ac_cv_prog_ac_ct_CC="$ac_prog"
2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 break 2 3009 break 2
2209 fi 3010 fi
2210done 3011done
2211done 3012 done
2212IFS=$as_save_IFS 3013IFS=$as_save_IFS
2213 3014
2214fi 3015fi
2215fi 3016fi
2216ac_ct_CC=$ac_cv_prog_ac_ct_CC 3017ac_ct_CC=$ac_cv_prog_ac_ct_CC
2217if test -n "$ac_ct_CC"; then 3018if test -n "$ac_ct_CC"; then
2218 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2219echo "${ECHO_T}$ac_ct_CC" >&6; } 3020$as_echo "$ac_ct_CC" >&6; }
2220else 3021else
2221 { echo "$as_me:$LINENO: result: no" >&5 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2222echo "${ECHO_T}no" >&6; } 3023$as_echo "no" >&6; }
2223fi 3024fi
2224 3025
2225 3026
2226 test -n "$ac_ct_CC" && break 3027 test -n "$ac_ct_CC" && break
2227done 3028done
2229 if test "x$ac_ct_CC" = x; then 3030 if test "x$ac_ct_CC" = x; then
2230 CC="" 3031 CC=""
2231 else 3032 else
2232 case $cross_compiling:$ac_tool_warned in 3033 case $cross_compiling:$ac_tool_warned in
2233yes:) 3034yes:)
2234{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2235whose name does not start with the host triplet. If you think this 3036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2236configuration is useful to you, please write to autoconf@gnu.org." >&5
2237echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2238whose name does not start with the host triplet. If you think this
2239configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2240ac_tool_warned=yes ;; 3037ac_tool_warned=yes ;;
2241esac 3038esac
2242 CC=$ac_ct_CC 3039 CC=$ac_ct_CC
2243 fi 3040 fi
2244fi 3041fi
2245 3042
2246fi 3043fi
2247 3044
2248 3045
2249test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3046test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250See \`config.log' for more details." >&5 3047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251echo "$as_me: error: no acceptable C compiler found in \$PATH 3048as_fn_error $? "no acceptable C compiler found in \$PATH
2252See \`config.log' for more details." >&2;} 3049See \`config.log' for more details" "$LINENO" 5; }
2253 { (exit 1); exit 1; }; }
2254 3050
2255# Provide some information about the compiler. 3051# Provide some information about the compiler.
2256echo "$as_me:$LINENO: checking for C compiler version" >&5 3052$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2257ac_compiler=`set X $ac_compile; echo $2` 3053set X $ac_compile
3054ac_compiler=$2
3055for ac_option in --version -v -V -qversion; do
2258{ (ac_try="$ac_compiler --version >&5" 3056 { { ac_try="$ac_compiler $ac_option >&5"
2259case "(($ac_try" in 3057case "(($ac_try" in
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;; 3059 *) ac_try_echo=$ac_try;;
2262esac 3060esac
2263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2264 (eval "$ac_compiler --version >&5") 2>&5 3062$as_echo "$ac_try_echo"; } >&5
3063 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2265 ac_status=$? 3064 ac_status=$?
3065 if test -s conftest.err; then
3066 sed '10a\
3067... rest of stderr output deleted ...
3068 10q' conftest.err >conftest.er1
3069 cat conftest.er1 >&5
3070 fi
3071 rm -f conftest.er1 conftest.err
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 (exit $ac_status); } 3073 test $ac_status = 0; }
2268{ (ac_try="$ac_compiler -v >&5" 3074done
3075
3076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077/* end confdefs.h. */
3078
3079int
3080main ()
3081{
3082
3083 ;
3084 return 0;
3085}
3086_ACEOF
3087ac_clean_files_save=$ac_clean_files
3088ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3089# Try to create an executable without -o first, disregard a.out.
3090# It will help us diagnose broken compilers, and finding out an intuition
3091# of exeext.
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3093$as_echo_n "checking whether the C compiler works... " >&6; }
3094ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3095
3096# The possible output files:
3097ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3098
3099ac_rmfiles=
3100for ac_file in $ac_files
3101do
3102 case $ac_file in
3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3104 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3105 esac
3106done
3107rm -f $ac_rmfiles
3108
3109if { { ac_try="$ac_link_default"
2269case "(($ac_try" in 3110case "(($ac_try" in
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;; 3112 *) ac_try_echo=$ac_try;;
2272esac 3113esac
2273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274 (eval "$ac_compiler -v >&5") 2>&5 3115$as_echo "$ac_try_echo"; } >&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }
2278{ (ac_try="$ac_compiler -V >&5"
2279case "(($ac_try" in
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2282esac
2283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2284 (eval "$ac_compiler -V >&5") 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }
2288
2289cat >conftest.$ac_ext <<_ACEOF
2290/* confdefs.h. */
2291_ACEOF
2292cat confdefs.h >>conftest.$ac_ext
2293cat >>conftest.$ac_ext <<_ACEOF
2294/* end confdefs.h. */
2295
2296int
2297main ()
2298{
2299
2300 ;
2301 return 0;
2302}
2303_ACEOF
2304ac_clean_files_save=$ac_clean_files
2305ac_clean_files="$ac_clean_files a.out a.exe b.out"
2306# Try to create an executable without -o first, disregard a.out.
2307# It will help us diagnose broken compilers, and finding out an intuition
2308# of exeext.
2309{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2310echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2311ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2312#
2313# List of possible output files, starting from the most likely.
2314# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2315# only as a last resort. b.out is created by i960 compilers.
2316ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2317#
2318# The IRIX 6 linker writes into existing files which may not be
2319# executable, retaining their permissions. Remove them first so a
2320# subsequent execution test works.
2321ac_rmfiles=
2322for ac_file in $ac_files
2323do
2324 case $ac_file in
2325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2326 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2327 esac
2328done
2329rm -f $ac_rmfiles
2330
2331if { (ac_try="$ac_link_default"
2332case "(($ac_try" in
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2335esac
2336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2337 (eval "$ac_link_default") 2>&5 3116 (eval "$ac_link_default") 2>&5
2338 ac_status=$? 3117 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2340 (exit $ac_status); }; then 3119 test $ac_status = 0; }; then :
2341 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3120 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2342# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3121# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2343# in a Makefile. We should not override ac_cv_exeext if it was cached, 3122# in a Makefile. We should not override ac_cv_exeext if it was cached,
2344# so that the user can short-circuit this test for compilers unknown to 3123# so that the user can short-circuit this test for compilers unknown to
2345# Autoconf. 3124# Autoconf.
2346for ac_file in $ac_files '' 3125for ac_file in $ac_files ''
2347do 3126do
2348 test -f "$ac_file" || continue 3127 test -f "$ac_file" || continue
2349 case $ac_file in 3128 case $ac_file in
2350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2351 ;; 3130 ;;
2352 [ab].out ) 3131 [ab].out )
2353 # We found the default executable, but exeext='' is most 3132 # We found the default executable, but exeext='' is most
2354 # certainly right. 3133 # certainly right.
2355 break;; 3134 break;;
2356 *.* ) 3135 *.* )
2357 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3136 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2358 then :; else 3137 then :; else
2359 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2360 fi 3139 fi
2361 # We set ac_cv_exeext here because the later test for it is not 3140 # We set ac_cv_exeext here because the later test for it is not
2362 # safe: cross compilers may not add the suffix if given an `-o' 3141 # safe: cross compilers may not add the suffix if given an `-o'
2371test "$ac_cv_exeext" = no && ac_cv_exeext= 3150test "$ac_cv_exeext" = no && ac_cv_exeext=
2372 3151
2373else 3152else
2374 ac_file='' 3153 ac_file=''
2375fi 3154fi
2376
2377{ echo "$as_me:$LINENO: result: $ac_file" >&5
2378echo "${ECHO_T}$ac_file" >&6; }
2379if test -z "$ac_file"; then 3155if test -z "$ac_file"; then :
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157$as_echo "no" >&6; }
2380 echo "$as_me: failed program was:" >&5 3158$as_echo "$as_me: failed program was:" >&5
2381sed 's/^/| /' conftest.$ac_ext >&5 3159sed 's/^/| /' conftest.$ac_ext >&5
2382 3160
2383{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3161{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2384See \`config.log' for more details." >&5 3162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2385echo "$as_me: error: C compiler cannot create executables 3163as_fn_error 77 "C compiler cannot create executables
2386See \`config.log' for more details." >&2;} 3164See \`config.log' for more details" "$LINENO" 5; }
2387 { (exit 77); exit 77; }; } 3165else
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167$as_echo "yes" >&6; }
2388fi 3168fi
2389 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3170$as_echo_n "checking for C compiler default output file name... " >&6; }
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3172$as_echo "$ac_file" >&6; }
2390ac_exeext=$ac_cv_exeext 3173ac_exeext=$ac_cv_exeext
2391 3174
2392# Check that the compiler produces executables we can run. If not, either
2393# the compiler is broken, or we cross compile.
2394{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2395echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2396# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2397# If not cross compiling, check that we can run a simple program.
2398if test "$cross_compiling" != yes; then
2399 if { ac_try='./$ac_file'
2400 { (case "(($ac_try" in
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2403esac
2404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_try") 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2409 cross_compiling=no
2410 else
2411 if test "$cross_compiling" = maybe; then
2412 cross_compiling=yes
2413 else
2414 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2415If you meant to cross compile, use \`--host'.
2416See \`config.log' for more details." >&5
2417echo "$as_me: error: cannot run C compiled programs.
2418If you meant to cross compile, use \`--host'.
2419See \`config.log' for more details." >&2;}
2420 { (exit 1); exit 1; }; }
2421 fi
2422 fi
2423fi
2424{ echo "$as_me:$LINENO: result: yes" >&5
2425echo "${ECHO_T}yes" >&6; }
2426
2427rm -f a.out a.exe conftest$ac_cv_exeext b.out 3175rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2428ac_clean_files=$ac_clean_files_save 3176ac_clean_files=$ac_clean_files_save
2429# Check that the compiler produces executables we can run. If not, either
2430# the compiler is broken, or we cross compile.
2431{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2432echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2433{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2434echo "${ECHO_T}$cross_compiling" >&6; }
2435
2436{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2437echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3178$as_echo_n "checking for suffix of executables... " >&6; }
2438if { (ac_try="$ac_link" 3179if { { ac_try="$ac_link"
2439case "(($ac_try" in 3180case "(($ac_try" in
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;; 3182 *) ac_try_echo=$ac_try;;
2442esac 3183esac
2443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185$as_echo "$ac_try_echo"; } >&5
2444 (eval "$ac_link") 2>&5 3186 (eval "$ac_link") 2>&5
2445 ac_status=$? 3187 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2447 (exit $ac_status); }; then 3189 test $ac_status = 0; }; then :
2448 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3190 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2449# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3191# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2450# work properly (i.e., refer to `conftest.exe'), while it won't with 3192# work properly (i.e., refer to `conftest.exe'), while it won't with
2451# `rm'. 3193# `rm'.
2452for ac_file in conftest.exe conftest conftest.*; do 3194for ac_file in conftest.exe conftest conftest.*; do
2453 test -f "$ac_file" || continue 3195 test -f "$ac_file" || continue
2454 case $ac_file in 3196 case $ac_file in
2455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2456 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3198 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2457 break;; 3199 break;;
2458 * ) break;; 3200 * ) break;;
2459 esac 3201 esac
2460done 3202done
2461else 3203else
2462 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2463See \`config.log' for more details." >&5 3205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2464echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3206as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2465See \`config.log' for more details." >&2;} 3207See \`config.log' for more details" "$LINENO" 5; }
2466 { (exit 1); exit 1; }; }
2467fi 3208fi
2468
2469rm -f conftest$ac_cv_exeext 3209rm -f conftest conftest$ac_cv_exeext
2470{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2471echo "${ECHO_T}$ac_cv_exeext" >&6; } 3211$as_echo "$ac_cv_exeext" >&6; }
2472 3212
2473rm -f conftest.$ac_ext 3213rm -f conftest.$ac_ext
2474EXEEXT=$ac_cv_exeext 3214EXEEXT=$ac_cv_exeext
2475ac_exeext=$EXEEXT 3215ac_exeext=$EXEEXT
2476{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2477echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2478if test "${ac_cv_objext+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480else
2481 cat >conftest.$ac_ext <<_ACEOF
2482/* confdefs.h. */
2483_ACEOF
2484cat confdefs.h >>conftest.$ac_ext 3216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485cat >>conftest.$ac_ext <<_ACEOF
2486/* end confdefs.h. */ 3217/* end confdefs.h. */
2487 3218#include <stdio.h>
2488int 3219int
2489main () 3220main ()
2490{ 3221{
3222FILE *f = fopen ("conftest.out", "w");
3223 return ferror (f) || fclose (f) != 0;
2491 3224
2492 ; 3225 ;
2493 return 0; 3226 return 0;
2494} 3227}
2495_ACEOF 3228_ACEOF
2496rm -f conftest.o conftest.obj 3229ac_clean_files="$ac_clean_files conftest.out"
2497if { (ac_try="$ac_compile" 3230# Check that the compiler produces executables we can run. If not, either
3231# the compiler is broken, or we cross compile.
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3233$as_echo_n "checking whether we are cross compiling... " >&6; }
3234if test "$cross_compiling" != yes; then
3235 { { ac_try="$ac_link"
2498case "(($ac_try" in 3236case "(($ac_try" in
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;; 3238 *) ac_try_echo=$ac_try;;
2501esac 3239esac
2502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241$as_echo "$ac_try_echo"; } >&5
3242 (eval "$ac_link") 2>&5
3243 ac_status=$?
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }
3246 if { ac_try='./conftest$ac_cv_exeext'
3247 { { case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250esac
3251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252$as_echo "$ac_try_echo"; } >&5
3253 (eval "$ac_try") 2>&5
3254 ac_status=$?
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }; }; then
3257 cross_compiling=no
3258 else
3259 if test "$cross_compiling" = maybe; then
3260 cross_compiling=yes
3261 else
3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264as_fn_error $? "cannot run C compiled programs.
3265If you meant to cross compile, use \`--host'.
3266See \`config.log' for more details" "$LINENO" 5; }
3267 fi
3268 fi
3269fi
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3271$as_echo "$cross_compiling" >&6; }
3272
3273rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3274ac_clean_files=$ac_clean_files_save
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3276$as_echo_n "checking for suffix of object files... " >&6; }
3277if test "${ac_cv_objext+set}" = set; then :
3278 $as_echo_n "(cached) " >&6
3279else
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281/* end confdefs.h. */
3282
3283int
3284main ()
3285{
3286
3287 ;
3288 return 0;
3289}
3290_ACEOF
3291rm -f conftest.o conftest.obj
3292if { { ac_try="$ac_compile"
3293case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296esac
3297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298$as_echo "$ac_try_echo"; } >&5
2503 (eval "$ac_compile") 2>&5 3299 (eval "$ac_compile") 2>&5
2504 ac_status=$? 3300 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506 (exit $ac_status); }; then 3302 test $ac_status = 0; }; then :
2507 for ac_file in conftest.o conftest.obj conftest.*; do 3303 for ac_file in conftest.o conftest.obj conftest.*; do
2508 test -f "$ac_file" || continue; 3304 test -f "$ac_file" || continue;
2509 case $ac_file in 3305 case $ac_file in
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3307 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2512 break;; 3308 break;;
2513 esac 3309 esac
2514done 3310done
2515else 3311else
2516 echo "$as_me: failed program was:" >&5 3312 $as_echo "$as_me: failed program was:" >&5
2517sed 's/^/| /' conftest.$ac_ext >&5 3313sed 's/^/| /' conftest.$ac_ext >&5
2518 3314
2519{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3315{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2520See \`config.log' for more details." >&5 3316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521echo "$as_me: error: cannot compute suffix of object files: cannot compile 3317as_fn_error $? "cannot compute suffix of object files: cannot compile
2522See \`config.log' for more details." >&2;} 3318See \`config.log' for more details" "$LINENO" 5; }
2523 { (exit 1); exit 1; }; }
2524fi 3319fi
2525
2526rm -f conftest.$ac_cv_objext conftest.$ac_ext 3320rm -f conftest.$ac_cv_objext conftest.$ac_ext
2527fi 3321fi
2528{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2529echo "${ECHO_T}$ac_cv_objext" >&6; } 3323$as_echo "$ac_cv_objext" >&6; }
2530OBJEXT=$ac_cv_objext 3324OBJEXT=$ac_cv_objext
2531ac_objext=$OBJEXT 3325ac_objext=$OBJEXT
2532{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2533echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3327$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2534if test "${ac_cv_c_compiler_gnu+set}" = set; then 3328if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2535 echo $ECHO_N "(cached) $ECHO_C" >&6 3329 $as_echo_n "(cached) " >&6
2536else 3330else
2537 cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h. */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext 3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
2542/* end confdefs.h. */ 3332/* end confdefs.h. */
2543 3333
2544int 3334int
2545main () 3335main ()
2546{ 3336{
2550 3340
2551 ; 3341 ;
2552 return 0; 3342 return 0;
2553} 3343}
2554_ACEOF 3344_ACEOF
2555rm -f conftest.$ac_objext 3345if ac_fn_c_try_compile "$LINENO"; then :
2556if { (ac_try="$ac_compile"
2557case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2560esac
2561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562 (eval "$ac_compile") 2>conftest.er1
2563 ac_status=$?
2564 grep -v '^ *+' conftest.er1 >conftest.err
2565 rm -f conftest.er1
2566 cat conftest.err >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } && {
2569 test -z "$ac_c_werror_flag" ||
2570 test ! -s conftest.err
2571 } && test -s conftest.$ac_objext; then
2572 ac_compiler_gnu=yes 3346 ac_compiler_gnu=yes
2573else 3347else
2574 echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577 ac_compiler_gnu=no 3348 ac_compiler_gnu=no
2578fi 3349fi
2579
2580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581ac_cv_c_compiler_gnu=$ac_compiler_gnu 3351ac_cv_c_compiler_gnu=$ac_compiler_gnu
2582 3352
2583fi 3353fi
2584{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2585echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3355$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2586GCC=`test $ac_compiler_gnu = yes && echo yes` 3356if test $ac_compiler_gnu = yes; then
3357 GCC=yes
3358else
3359 GCC=
3360fi
2587ac_test_CFLAGS=${CFLAGS+set} 3361ac_test_CFLAGS=${CFLAGS+set}
2588ac_save_CFLAGS=$CFLAGS 3362ac_save_CFLAGS=$CFLAGS
2589{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2590echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3364$as_echo_n "checking whether $CC accepts -g... " >&6; }
2591if test "${ac_cv_prog_cc_g+set}" = set; then 3365if test "${ac_cv_prog_cc_g+set}" = set; then :
2592 echo $ECHO_N "(cached) $ECHO_C" >&6 3366 $as_echo_n "(cached) " >&6
2593else 3367else
2594 ac_save_c_werror_flag=$ac_c_werror_flag 3368 ac_save_c_werror_flag=$ac_c_werror_flag
2595 ac_c_werror_flag=yes 3369 ac_c_werror_flag=yes
2596 ac_cv_prog_cc_g=no 3370 ac_cv_prog_cc_g=no
2597 CFLAGS="-g" 3371 CFLAGS="-g"
2598 cat >conftest.$ac_ext <<_ACEOF
2599/* confdefs.h. */
2600_ACEOF
2601cat confdefs.h >>conftest.$ac_ext 3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602cat >>conftest.$ac_ext <<_ACEOF
2603/* end confdefs.h. */ 3373/* end confdefs.h. */
2604 3374
2605int 3375int
2606main () 3376main ()
2607{ 3377{
2608 3378
2609 ; 3379 ;
2610 return 0; 3380 return 0;
2611} 3381}
2612_ACEOF 3382_ACEOF
2613rm -f conftest.$ac_objext 3383if ac_fn_c_try_compile "$LINENO"; then :
2614if { (ac_try="$ac_compile"
2615case "(($ac_try" in
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2618esac
2619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620 (eval "$ac_compile") 2>conftest.er1
2621 ac_status=$?
2622 grep -v '^ *+' conftest.er1 >conftest.err
2623 rm -f conftest.er1
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } && {
2627 test -z "$ac_c_werror_flag" ||
2628 test ! -s conftest.err
2629 } && test -s conftest.$ac_objext; then
2630 ac_cv_prog_cc_g=yes 3384 ac_cv_prog_cc_g=yes
2631else 3385else
2632 echo "$as_me: failed program was:" >&5
2633sed 's/^/| /' conftest.$ac_ext >&5
2634
2635 CFLAGS="" 3386 CFLAGS=""
2636 cat >conftest.$ac_ext <<_ACEOF
2637/* confdefs.h. */
2638_ACEOF
2639cat confdefs.h >>conftest.$ac_ext 3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640cat >>conftest.$ac_ext <<_ACEOF
2641/* end confdefs.h. */ 3388/* end confdefs.h. */
2642 3389
2643int 3390int
2644main () 3391main ()
2645{ 3392{
2646 3393
2647 ; 3394 ;
2648 return 0; 3395 return 0;
2649} 3396}
2650_ACEOF 3397_ACEOF
2651rm -f conftest.$ac_objext 3398if ac_fn_c_try_compile "$LINENO"; then :
2652if { (ac_try="$ac_compile"
2653case "(($ac_try" in
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2656esac
2657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compile") 2>conftest.er1
2659 ac_status=$?
2660 grep -v '^ *+' conftest.er1 >conftest.err
2661 rm -f conftest.er1
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } && {
2665 test -z "$ac_c_werror_flag" ||
2666 test ! -s conftest.err
2667 } && test -s conftest.$ac_objext; then
2668 :
2669else
2670 echo "$as_me: failed program was:" >&5
2671sed 's/^/| /' conftest.$ac_ext >&5
2672 3399
3400else
2673 ac_c_werror_flag=$ac_save_c_werror_flag 3401 ac_c_werror_flag=$ac_save_c_werror_flag
2674 CFLAGS="-g" 3402 CFLAGS="-g"
2675 cat >conftest.$ac_ext <<_ACEOF
2676/* confdefs.h. */
2677_ACEOF
2678cat confdefs.h >>conftest.$ac_ext 3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679cat >>conftest.$ac_ext <<_ACEOF
2680/* end confdefs.h. */ 3404/* end confdefs.h. */
2681 3405
2682int 3406int
2683main () 3407main ()
2684{ 3408{
2685 3409
2686 ; 3410 ;
2687 return 0; 3411 return 0;
2688} 3412}
2689_ACEOF 3413_ACEOF
2690rm -f conftest.$ac_objext 3414if ac_fn_c_try_compile "$LINENO"; then :
2691if { (ac_try="$ac_compile"
2692case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695esac
2696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697 (eval "$ac_compile") 2>conftest.er1
2698 ac_status=$?
2699 grep -v '^ *+' conftest.er1 >conftest.err
2700 rm -f conftest.er1
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } && {
2704 test -z "$ac_c_werror_flag" ||
2705 test ! -s conftest.err
2706 } && test -s conftest.$ac_objext; then
2707 ac_cv_prog_cc_g=yes 3415 ac_cv_prog_cc_g=yes
2708else
2709 echo "$as_me: failed program was:" >&5
2710sed 's/^/| /' conftest.$ac_ext >&5
2711
2712
2713fi 3416fi
2714
2715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716fi 3418fi
2717
2718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719fi 3420fi
2720
2721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 ac_c_werror_flag=$ac_save_c_werror_flag 3422 ac_c_werror_flag=$ac_save_c_werror_flag
2723fi 3423fi
2724{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2725echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3425$as_echo "$ac_cv_prog_cc_g" >&6; }
2726if test "$ac_test_CFLAGS" = set; then 3426if test "$ac_test_CFLAGS" = set; then
2727 CFLAGS=$ac_save_CFLAGS 3427 CFLAGS=$ac_save_CFLAGS
2728elif test $ac_cv_prog_cc_g = yes; then 3428elif test $ac_cv_prog_cc_g = yes; then
2729 if test "$GCC" = yes; then 3429 if test "$GCC" = yes; then
2730 CFLAGS="-g -O2" 3430 CFLAGS="-g -O2"
2736 CFLAGS="-O2" 3436 CFLAGS="-O2"
2737 else 3437 else
2738 CFLAGS= 3438 CFLAGS=
2739 fi 3439 fi
2740fi 3440fi
2741{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2742echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3442$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2743if test "${ac_cv_prog_cc_c89+set}" = set; then 3443if test "${ac_cv_prog_cc_c89+set}" = set; then :
2744 echo $ECHO_N "(cached) $ECHO_C" >&6 3444 $as_echo_n "(cached) " >&6
2745else 3445else
2746 ac_cv_prog_cc_c89=no 3446 ac_cv_prog_cc_c89=no
2747ac_save_CC=$CC 3447ac_save_CC=$CC
2748cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h. */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext 3448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h. */ 3449/* end confdefs.h. */
2754#include <stdarg.h> 3450#include <stdarg.h>
2755#include <stdio.h> 3451#include <stdio.h>
2756#include <sys/types.h> 3452#include <sys/types.h>
2757#include <sys/stat.h> 3453#include <sys/stat.h>
2804_ACEOF 3500_ACEOF
2805for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3501for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3502 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2807do 3503do
2808 CC="$ac_save_CC $ac_arg" 3504 CC="$ac_save_CC $ac_arg"
2809 rm -f conftest.$ac_objext 3505 if ac_fn_c_try_compile "$LINENO"; then :
2810if { (ac_try="$ac_compile"
2811case "(($ac_try" in
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2814esac
2815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_compile") 2>conftest.er1
2817 ac_status=$?
2818 grep -v '^ *+' conftest.er1 >conftest.err
2819 rm -f conftest.er1
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } && {
2823 test -z "$ac_c_werror_flag" ||
2824 test ! -s conftest.err
2825 } && test -s conftest.$ac_objext; then
2826 ac_cv_prog_cc_c89=$ac_arg 3506 ac_cv_prog_cc_c89=$ac_arg
2827else
2828 echo "$as_me: failed program was:" >&5
2829sed 's/^/| /' conftest.$ac_ext >&5
2830
2831
2832fi 3507fi
2833
2834rm -f core conftest.err conftest.$ac_objext 3508rm -f core conftest.err conftest.$ac_objext
2835 test "x$ac_cv_prog_cc_c89" != "xno" && break 3509 test "x$ac_cv_prog_cc_c89" != "xno" && break
2836done 3510done
2837rm -f conftest.$ac_ext 3511rm -f conftest.$ac_ext
2838CC=$ac_save_CC 3512CC=$ac_save_CC
2839 3513
2840fi 3514fi
2841# AC_CACHE_VAL 3515# AC_CACHE_VAL
2842case "x$ac_cv_prog_cc_c89" in 3516case "x$ac_cv_prog_cc_c89" in
2843 x) 3517 x)
2844 { echo "$as_me:$LINENO: result: none needed" >&5 3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2845echo "${ECHO_T}none needed" >&6; } ;; 3519$as_echo "none needed" >&6; } ;;
2846 xno) 3520 xno)
2847 { echo "$as_me:$LINENO: result: unsupported" >&5 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2848echo "${ECHO_T}unsupported" >&6; } ;; 3522$as_echo "unsupported" >&6; } ;;
2849 *) 3523 *)
2850 CC="$CC $ac_cv_prog_cc_c89" 3524 CC="$CC $ac_cv_prog_cc_c89"
2851 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2852echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3526$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2853esac 3527esac
3528if test "x$ac_cv_prog_cc_c89" != xno; then :
2854 3529
3530fi
2855 3531
2856ac_ext=c 3532ac_ext=c
2857ac_cpp='$CPP $CPPFLAGS' 3533ac_cpp='$CPP $CPPFLAGS'
2858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 if test -n "$ac_tool_prefix"; then 3547 if test -n "$ac_tool_prefix"; then
2872 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3548 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2873 do 3549 do
2874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2875set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3551set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2876{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3553$as_echo_n "checking for $ac_word... " >&6; }
2878if test "${ac_cv_prog_CXX+set}" = set; then 3554if test "${ac_cv_prog_CXX+set}" = set; then :
2879 echo $ECHO_N "(cached) $ECHO_C" >&6 3555 $as_echo_n "(cached) " >&6
2880else 3556else
2881 if test -n "$CXX"; then 3557 if test -n "$CXX"; then
2882 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3558 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2883else 3559else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH 3561for as_dir in $PATH
2886do 3562do
2887 IFS=$as_save_IFS 3563 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=. 3564 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do 3565 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3567 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2 3569 break 2
2894 fi 3570 fi
2895done 3571done
2896done 3572 done
2897IFS=$as_save_IFS 3573IFS=$as_save_IFS
2898 3574
2899fi 3575fi
2900fi 3576fi
2901CXX=$ac_cv_prog_CXX 3577CXX=$ac_cv_prog_CXX
2902if test -n "$CXX"; then 3578if test -n "$CXX"; then
2903 { echo "$as_me:$LINENO: result: $CXX" >&5 3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2904echo "${ECHO_T}$CXX" >&6; } 3580$as_echo "$CXX" >&6; }
2905else 3581else
2906 { echo "$as_me:$LINENO: result: no" >&5 3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907echo "${ECHO_T}no" >&6; } 3583$as_echo "no" >&6; }
2908fi 3584fi
2909 3585
2910 3586
2911 test -n "$CXX" && break 3587 test -n "$CXX" && break
2912 done 3588 done
2915 ac_ct_CXX=$CXX 3591 ac_ct_CXX=$CXX
2916 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3592 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2917do 3593do
2918 # Extract the first word of "$ac_prog", so it can be a program name with args. 3594 # Extract the first word of "$ac_prog", so it can be a program name with args.
2919set dummy $ac_prog; ac_word=$2 3595set dummy $ac_prog; ac_word=$2
2920{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3597$as_echo_n "checking for $ac_word... " >&6; }
2922if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3598if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2923 echo $ECHO_N "(cached) $ECHO_C" >&6 3599 $as_echo_n "(cached) " >&6
2924else 3600else
2925 if test -n "$ac_ct_CXX"; then 3601 if test -n "$ac_ct_CXX"; then
2926 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3602 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2927else 3603else
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH 3605for as_dir in $PATH
2930do 3606do
2931 IFS=$as_save_IFS 3607 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=. 3608 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do 3609 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_ac_ct_CXX="$ac_prog" 3611 ac_cv_prog_ac_ct_CXX="$ac_prog"
2936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2 3613 break 2
2938 fi 3614 fi
2939done 3615done
2940done 3616 done
2941IFS=$as_save_IFS 3617IFS=$as_save_IFS
2942 3618
2943fi 3619fi
2944fi 3620fi
2945ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3621ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2946if test -n "$ac_ct_CXX"; then 3622if test -n "$ac_ct_CXX"; then
2947 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2948echo "${ECHO_T}$ac_ct_CXX" >&6; } 3624$as_echo "$ac_ct_CXX" >&6; }
2949else 3625else
2950 { echo "$as_me:$LINENO: result: no" >&5 3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951echo "${ECHO_T}no" >&6; } 3627$as_echo "no" >&6; }
2952fi 3628fi
2953 3629
2954 3630
2955 test -n "$ac_ct_CXX" && break 3631 test -n "$ac_ct_CXX" && break
2956done 3632done
2958 if test "x$ac_ct_CXX" = x; then 3634 if test "x$ac_ct_CXX" = x; then
2959 CXX="g++" 3635 CXX="g++"
2960 else 3636 else
2961 case $cross_compiling:$ac_tool_warned in 3637 case $cross_compiling:$ac_tool_warned in
2962yes:) 3638yes:)
2963{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964whose name does not start with the host triplet. If you think this 3640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965configuration is useful to you, please write to autoconf@gnu.org." >&5
2966echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2967whose name does not start with the host triplet. If you think this
2968configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2969ac_tool_warned=yes ;; 3641ac_tool_warned=yes ;;
2970esac 3642esac
2971 CXX=$ac_ct_CXX 3643 CXX=$ac_ct_CXX
2972 fi 3644 fi
2973fi 3645fi
2974 3646
2975 fi 3647 fi
2976fi 3648fi
2977# Provide some information about the compiler. 3649# Provide some information about the compiler.
2978echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3650$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2979ac_compiler=`set X $ac_compile; echo $2` 3651set X $ac_compile
3652ac_compiler=$2
3653for ac_option in --version -v -V -qversion; do
2980{ (ac_try="$ac_compiler --version >&5" 3654 { { ac_try="$ac_compiler $ac_option >&5"
2981case "(($ac_try" in 3655case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;; 3657 *) ac_try_echo=$ac_try;;
2984esac 3658esac
2985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2986 (eval "$ac_compiler --version >&5") 2>&5 3660$as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2987 ac_status=$? 3662 ac_status=$?
3663 if test -s conftest.err; then
3664 sed '10a\
3665... rest of stderr output deleted ...
3666 10q' conftest.err >conftest.er1
3667 cat conftest.er1 >&5
3668 fi
3669 rm -f conftest.er1 conftest.err
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989 (exit $ac_status); } 3671 test $ac_status = 0; }
2990{ (ac_try="$ac_compiler -v >&5" 3672done
2991case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994esac
2995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996 (eval "$ac_compiler -v >&5") 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }
3000{ (ac_try="$ac_compiler -V >&5"
3001case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004esac
3005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compiler -V >&5") 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }
3010 3673
3011{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3012echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 3675$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3013if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3676if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3014 echo $ECHO_N "(cached) $ECHO_C" >&6 3677 $as_echo_n "(cached) " >&6
3015else 3678else
3016 cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h. */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext 3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h. */ 3680/* end confdefs.h. */
3022 3681
3023int 3682int
3024main () 3683main ()
3025{ 3684{
3029 3688
3030 ; 3689 ;
3031 return 0; 3690 return 0;
3032} 3691}
3033_ACEOF 3692_ACEOF
3034rm -f conftest.$ac_objext 3693if ac_fn_cxx_try_compile "$LINENO"; then :
3035if { (ac_try="$ac_compile"
3036case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_compile") 2>conftest.er1
3042 ac_status=$?
3043 grep -v '^ *+' conftest.er1 >conftest.err
3044 rm -f conftest.er1
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } && {
3048 test -z "$ac_cxx_werror_flag" ||
3049 test ! -s conftest.err
3050 } && test -s conftest.$ac_objext; then
3051 ac_compiler_gnu=yes 3694 ac_compiler_gnu=yes
3052else 3695else
3053 echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 ac_compiler_gnu=no 3696 ac_compiler_gnu=no
3057fi 3697fi
3058
3059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3699ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3061 3700
3062fi 3701fi
3063{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3064echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3703$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3065GXX=`test $ac_compiler_gnu = yes && echo yes` 3704if test $ac_compiler_gnu = yes; then
3705 GXX=yes
3706else
3707 GXX=
3708fi
3066ac_test_CXXFLAGS=${CXXFLAGS+set} 3709ac_test_CXXFLAGS=${CXXFLAGS+set}
3067ac_save_CXXFLAGS=$CXXFLAGS 3710ac_save_CXXFLAGS=$CXXFLAGS
3068{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3069echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3712$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3070if test "${ac_cv_prog_cxx_g+set}" = set; then 3713if test "${ac_cv_prog_cxx_g+set}" = set; then :
3071 echo $ECHO_N "(cached) $ECHO_C" >&6 3714 $as_echo_n "(cached) " >&6
3072else 3715else
3073 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3716 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3074 ac_cxx_werror_flag=yes 3717 ac_cxx_werror_flag=yes
3075 ac_cv_prog_cxx_g=no 3718 ac_cv_prog_cxx_g=no
3076 CXXFLAGS="-g" 3719 CXXFLAGS="-g"
3077 cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h. */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext 3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h. */ 3721/* end confdefs.h. */
3083 3722
3084int 3723int
3085main () 3724main ()
3086{ 3725{
3087 3726
3088 ; 3727 ;
3089 return 0; 3728 return 0;
3090} 3729}
3091_ACEOF 3730_ACEOF
3092rm -f conftest.$ac_objext 3731if ac_fn_cxx_try_compile "$LINENO"; then :
3093if { (ac_try="$ac_compile"
3094case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_compile") 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } && {
3106 test -z "$ac_cxx_werror_flag" ||
3107 test ! -s conftest.err
3108 } && test -s conftest.$ac_objext; then
3109 ac_cv_prog_cxx_g=yes 3732 ac_cv_prog_cxx_g=yes
3110else 3733else
3111 echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 CXXFLAGS="" 3734 CXXFLAGS=""
3115 cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h. */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext 3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h. */ 3736/* end confdefs.h. */
3121 3737
3122int 3738int
3123main () 3739main ()
3124{ 3740{
3125 3741
3126 ; 3742 ;
3127 return 0; 3743 return 0;
3128} 3744}
3129_ACEOF 3745_ACEOF
3130rm -f conftest.$ac_objext 3746if ac_fn_cxx_try_compile "$LINENO"; then :
3131if { (ac_try="$ac_compile"
3132case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } && {
3144 test -z "$ac_cxx_werror_flag" ||
3145 test ! -s conftest.err
3146 } && test -s conftest.$ac_objext; then
3147 :
3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151 3747
3748else
3152 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3749 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3153 CXXFLAGS="-g" 3750 CXXFLAGS="-g"
3154 cat >conftest.$ac_ext <<_ACEOF
3155/* confdefs.h. */
3156_ACEOF
3157cat confdefs.h >>conftest.$ac_ext 3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158cat >>conftest.$ac_ext <<_ACEOF
3159/* end confdefs.h. */ 3752/* end confdefs.h. */
3160 3753
3161int 3754int
3162main () 3755main ()
3163{ 3756{
3164 3757
3165 ; 3758 ;
3166 return 0; 3759 return 0;
3167} 3760}
3168_ACEOF 3761_ACEOF
3169rm -f conftest.$ac_objext 3762if ac_fn_cxx_try_compile "$LINENO"; then :
3170if { (ac_try="$ac_compile"
3171case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174esac
3175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_compile") 2>conftest.er1
3177 ac_status=$?
3178 grep -v '^ *+' conftest.er1 >conftest.err
3179 rm -f conftest.er1
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } && {
3183 test -z "$ac_cxx_werror_flag" ||
3184 test ! -s conftest.err
3185 } && test -s conftest.$ac_objext; then
3186 ac_cv_prog_cxx_g=yes 3763 ac_cv_prog_cxx_g=yes
3187else
3188 echo "$as_me: failed program was:" >&5
3189sed 's/^/| /' conftest.$ac_ext >&5
3190
3191
3192fi 3764fi
3193
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195fi 3766fi
3196
3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198fi 3768fi
3199
3200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3770 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3202fi 3771fi
3203{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3204echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3773$as_echo "$ac_cv_prog_cxx_g" >&6; }
3205if test "$ac_test_CXXFLAGS" = set; then 3774if test "$ac_test_CXXFLAGS" = set; then
3206 CXXFLAGS=$ac_save_CXXFLAGS 3775 CXXFLAGS=$ac_save_CXXFLAGS
3207elif test $ac_cv_prog_cxx_g = yes; then 3776elif test $ac_cv_prog_cxx_g = yes; then
3208 if test "$GXX" = yes; then 3777 if test "$GXX" = yes; then
3209 CXXFLAGS="-g -O2" 3778 CXXFLAGS="-g -O2"
3226ac_ext=c 3795ac_ext=c
3227ac_cpp='$CPP $CPPFLAGS' 3796ac_cpp='$CPP $CPPFLAGS'
3228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230ac_compiler_gnu=$ac_cv_c_compiler_gnu 3799ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3232echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3801$as_echo_n "checking how to run the C preprocessor... " >&6; }
3233# On Suns, sometimes $CPP names a directory. 3802# On Suns, sometimes $CPP names a directory.
3234if test -n "$CPP" && test -d "$CPP"; then 3803if test -n "$CPP" && test -d "$CPP"; then
3235 CPP= 3804 CPP=
3236fi 3805fi
3237if test -z "$CPP"; then 3806if test -z "$CPP"; then
3238 if test "${ac_cv_prog_CPP+set}" = set; then 3807 if test "${ac_cv_prog_CPP+set}" = set; then :
3239 echo $ECHO_N "(cached) $ECHO_C" >&6 3808 $as_echo_n "(cached) " >&6
3240else 3809else
3241 # Double quotes because CPP needs to be expanded 3810 # Double quotes because CPP needs to be expanded
3242 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3811 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3243 do 3812 do
3244 ac_preproc_ok=false 3813 ac_preproc_ok=false
3248 # with a fresh cross-compiler works. 3817 # with a fresh cross-compiler works.
3249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3250 # <limits.h> exists even on freestanding compilers. 3819 # <limits.h> exists even on freestanding compilers.
3251 # On the NeXT, cc -E runs the code through the compiler's parser, 3820 # On the NeXT, cc -E runs the code through the compiler's parser,
3252 # not just through cpp. "Syntax error" is here to catch this case. 3821 # not just through cpp. "Syntax error" is here to catch this case.
3253 cat >conftest.$ac_ext <<_ACEOF
3254/* confdefs.h. */
3255_ACEOF
3256cat confdefs.h >>conftest.$ac_ext 3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
3258/* end confdefs.h. */ 3823/* end confdefs.h. */
3259#ifdef __STDC__ 3824#ifdef __STDC__
3260# include <limits.h> 3825# include <limits.h>
3261#else 3826#else
3262# include <assert.h> 3827# include <assert.h>
3263#endif 3828#endif
3264 Syntax error 3829 Syntax error
3265_ACEOF 3830_ACEOF
3266if { (ac_try="$ac_cpp conftest.$ac_ext" 3831if ac_fn_c_try_cpp "$LINENO"; then :
3267case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270esac
3271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } >/dev/null && {
3279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 }; then
3282 :
3283else
3284 echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
3286 3832
3833else
3287 # Broken: fails on valid input. 3834 # Broken: fails on valid input.
3288continue 3835continue
3289fi 3836fi
3290
3291rm -f conftest.err conftest.$ac_ext 3837rm -f conftest.err conftest.i conftest.$ac_ext
3292 3838
3293 # OK, works on sane cases. Now check whether nonexistent headers 3839 # OK, works on sane cases. Now check whether nonexistent headers
3294 # can be detected and how. 3840 # can be detected and how.
3295 cat >conftest.$ac_ext <<_ACEOF
3296/* confdefs.h. */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext 3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
3300/* end confdefs.h. */ 3842/* end confdefs.h. */
3301#include <ac_nonexistent.h> 3843#include <ac_nonexistent.h>
3302_ACEOF 3844_ACEOF
3303if { (ac_try="$ac_cpp conftest.$ac_ext" 3845if ac_fn_c_try_cpp "$LINENO"; then :
3304case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307esac
3308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } >/dev/null && {
3316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3317 test ! -s conftest.err
3318 }; then
3319 # Broken: success on invalid input. 3846 # Broken: success on invalid input.
3320continue 3847continue
3321else 3848else
3322 echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
3325 # Passes both tests. 3849 # Passes both tests.
3326ac_preproc_ok=: 3850ac_preproc_ok=:
3327break 3851break
3328fi 3852fi
3329
3330rm -f conftest.err conftest.$ac_ext 3853rm -f conftest.err conftest.i conftest.$ac_ext
3331 3854
3332done 3855done
3333# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3856# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334rm -f conftest.err conftest.$ac_ext 3857rm -f conftest.i conftest.err conftest.$ac_ext
3335if $ac_preproc_ok; then 3858if $ac_preproc_ok; then :
3336 break 3859 break
3337fi 3860fi
3338 3861
3339 done 3862 done
3340 ac_cv_prog_CPP=$CPP 3863 ac_cv_prog_CPP=$CPP
3342fi 3865fi
3343 CPP=$ac_cv_prog_CPP 3866 CPP=$ac_cv_prog_CPP
3344else 3867else
3345 ac_cv_prog_CPP=$CPP 3868 ac_cv_prog_CPP=$CPP
3346fi 3869fi
3347{ echo "$as_me:$LINENO: result: $CPP" >&5 3870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3348echo "${ECHO_T}$CPP" >&6; } 3871$as_echo "$CPP" >&6; }
3349ac_preproc_ok=false 3872ac_preproc_ok=false
3350for ac_c_preproc_warn_flag in '' yes 3873for ac_c_preproc_warn_flag in '' yes
3351do 3874do
3352 # Use a header file that comes with gcc, so configuring glibc 3875 # Use a header file that comes with gcc, so configuring glibc
3353 # with a fresh cross-compiler works. 3876 # with a fresh cross-compiler works.
3354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355 # <limits.h> exists even on freestanding compilers. 3878 # <limits.h> exists even on freestanding compilers.
3356 # On the NeXT, cc -E runs the code through the compiler's parser, 3879 # On the NeXT, cc -E runs the code through the compiler's parser,
3357 # not just through cpp. "Syntax error" is here to catch this case. 3880 # not just through cpp. "Syntax error" is here to catch this case.
3358 cat >conftest.$ac_ext <<_ACEOF
3359/* confdefs.h. */
3360_ACEOF
3361cat confdefs.h >>conftest.$ac_ext 3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h. */ 3882/* end confdefs.h. */
3364#ifdef __STDC__ 3883#ifdef __STDC__
3365# include <limits.h> 3884# include <limits.h>
3366#else 3885#else
3367# include <assert.h> 3886# include <assert.h>
3368#endif 3887#endif
3369 Syntax error 3888 Syntax error
3370_ACEOF 3889_ACEOF
3371if { (ac_try="$ac_cpp conftest.$ac_ext" 3890if ac_fn_c_try_cpp "$LINENO"; then :
3372case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375esac
3376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3378 ac_status=$?
3379 grep -v '^ *+' conftest.er1 >conftest.err
3380 rm -f conftest.er1
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev/null && {
3384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3385 test ! -s conftest.err
3386 }; then
3387 :
3388else
3389 echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391 3891
3892else
3392 # Broken: fails on valid input. 3893 # Broken: fails on valid input.
3393continue 3894continue
3394fi 3895fi
3395
3396rm -f conftest.err conftest.$ac_ext 3896rm -f conftest.err conftest.i conftest.$ac_ext
3397 3897
3398 # OK, works on sane cases. Now check whether nonexistent headers 3898 # OK, works on sane cases. Now check whether nonexistent headers
3399 # can be detected and how. 3899 # can be detected and how.
3400 cat >conftest.$ac_ext <<_ACEOF
3401/* confdefs.h. */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext 3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
3405/* end confdefs.h. */ 3901/* end confdefs.h. */
3406#include <ac_nonexistent.h> 3902#include <ac_nonexistent.h>
3407_ACEOF 3903_ACEOF
3408if { (ac_try="$ac_cpp conftest.$ac_ext" 3904if ac_fn_c_try_cpp "$LINENO"; then :
3409case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412esac
3413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3415 ac_status=$?
3416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } >/dev/null && {
3421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3422 test ! -s conftest.err
3423 }; then
3424 # Broken: success on invalid input. 3905 # Broken: success on invalid input.
3425continue 3906continue
3426else 3907else
3427 echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 # Passes both tests. 3908 # Passes both tests.
3431ac_preproc_ok=: 3909ac_preproc_ok=:
3432break 3910break
3433fi 3911fi
3434
3435rm -f conftest.err conftest.$ac_ext 3912rm -f conftest.err conftest.i conftest.$ac_ext
3436 3913
3437done 3914done
3438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3915# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439rm -f conftest.err conftest.$ac_ext 3916rm -f conftest.i conftest.err conftest.$ac_ext
3440if $ac_preproc_ok; then 3917if $ac_preproc_ok; then :
3441 : 3918
3442else 3919else
3443 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444See \`config.log' for more details." >&5 3921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3922as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3446See \`config.log' for more details." >&2;} 3923See \`config.log' for more details" "$LINENO" 5; }
3447 { (exit 1); exit 1; }; }
3448fi 3924fi
3449 3925
3450ac_ext=c 3926ac_ext=c
3451ac_cpp='$CPP $CPPFLAGS' 3927ac_cpp='$CPP $CPPFLAGS'
3452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3940# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3465# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3941# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3466# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3942# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3467# OS/2's system install, which has a completely different semantic 3943# OS/2's system install, which has a completely different semantic
3468# ./install, which can be erroneously created by make from ./install.sh. 3944# ./install, which can be erroneously created by make from ./install.sh.
3945# Reject install programs that cannot install multiple files.
3469{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3470echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3947$as_echo_n "checking for a BSD-compatible install... " >&6; }
3471if test -z "$INSTALL"; then 3948if test -z "$INSTALL"; then
3472if test "${ac_cv_path_install+set}" = set; then 3949if test "${ac_cv_path_install+set}" = set; then :
3473 echo $ECHO_N "(cached) $ECHO_C" >&6 3950 $as_echo_n "(cached) " >&6
3474else 3951else
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476for as_dir in $PATH 3953for as_dir in $PATH
3477do 3954do
3478 IFS=$as_save_IFS 3955 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=. 3956 test -z "$as_dir" && as_dir=.
3480 # Account for people who put trailing slashes in PATH elements. 3957 # Account for people who put trailing slashes in PATH elements.
3481case $as_dir/ in 3958case $as_dir/ in #((
3482 ./ | .// | /cC/* | \ 3959 ./ | .// | /[cC]/* | \
3483 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3960 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3484 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3961 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3485 /usr/ucb/* ) ;; 3962 /usr/ucb/* ) ;;
3486 *) 3963 *)
3487 # OSF1 and SCO ODT 3.0 have their own names for install. 3964 # OSF1 and SCO ODT 3.0 have their own names for install.
3488 # Don't use installbsd from OSF since it installs stuff as root 3965 # Don't use installbsd from OSF since it installs stuff as root
3489 # by default. 3966 # by default.
3497 elif test $ac_prog = install && 3974 elif test $ac_prog = install &&
3498 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3975 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3499 # program-specific install script used by HP pwplus--don't use. 3976 # program-specific install script used by HP pwplus--don't use.
3500 : 3977 :
3501 else 3978 else
3979 rm -rf conftest.one conftest.two conftest.dir
3980 echo one > conftest.one
3981 echo two > conftest.two
3982 mkdir conftest.dir
3983 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3984 test -s conftest.one && test -s conftest.two &&
3985 test -s conftest.dir/conftest.one &&
3986 test -s conftest.dir/conftest.two
3987 then
3502 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3988 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3503 break 3 3989 break 3
3990 fi
3504 fi 3991 fi
3505 fi 3992 fi
3506 done 3993 done
3507 done 3994 done
3508 ;; 3995 ;;
3509esac 3996esac
3997
3510done 3998 done
3511IFS=$as_save_IFS 3999IFS=$as_save_IFS
3512 4000
4001rm -rf conftest.one conftest.two conftest.dir
3513 4002
3514fi 4003fi
3515 if test "${ac_cv_path_install+set}" = set; then 4004 if test "${ac_cv_path_install+set}" = set; then
3516 INSTALL=$ac_cv_path_install 4005 INSTALL=$ac_cv_path_install
3517 else 4006 else
3520 # break other packages using the cache if that directory is 4009 # break other packages using the cache if that directory is
3521 # removed, or if the value is a relative name. 4010 # removed, or if the value is a relative name.
3522 INSTALL=$ac_install_sh 4011 INSTALL=$ac_install_sh
3523 fi 4012 fi
3524fi 4013fi
3525{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3526echo "${ECHO_T}$INSTALL" >&6; } 4015$as_echo "$INSTALL" >&6; }
3527 4016
3528# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4017# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3529# It thinks the first close brace ends the variable substitution. 4018# It thinks the first close brace ends the variable substitution.
3530test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4019test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3531 4020
3534test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4023test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3535 4024
3536 4025
3537 4026
3538 4027
3539{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3540echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4029$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3541if test "${ac_cv_path_GREP+set}" = set; then 4030if test "${ac_cv_path_GREP+set}" = set; then :
3542 echo $ECHO_N "(cached) $ECHO_C" >&6 4031 $as_echo_n "(cached) " >&6
3543else 4032else
3544 # Extract the first word of "grep ggrep" to use in msg output
3545if test -z "$GREP"; then 4033 if test -z "$GREP"; then
3546set dummy grep ggrep; ac_prog_name=$2
3547if test "${ac_cv_path_GREP+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 ac_path_GREP_found=false 4034 ac_path_GREP_found=false
3551# Loop through the user's path and test for each of PROGNAME-LIST 4035 # Loop through the user's path and test for each of PROGNAME-LIST
3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4037for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3554do 4038do
3555 IFS=$as_save_IFS 4039 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=. 4040 test -z "$as_dir" && as_dir=.
3557 for ac_prog in grep ggrep; do 4041 for ac_prog in grep ggrep; do
3558 for ac_exec_ext in '' $ac_executable_extensions; do 4042 for ac_exec_ext in '' $ac_executable_extensions; do
3559 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4043 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3560 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4044 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3561 # Check for GNU ac_path_GREP and select it if it is found. 4045# Check for GNU ac_path_GREP and select it if it is found.
3562 # Check for GNU $ac_path_GREP 4046 # Check for GNU $ac_path_GREP
3563case `"$ac_path_GREP" --version 2>&1` in 4047case `"$ac_path_GREP" --version 2>&1` in
3564*GNU*) 4048*GNU*)
3565 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4049 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3566*) 4050*)
3567 ac_count=0 4051 ac_count=0
3568 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4052 $as_echo_n 0123456789 >"conftest.in"
3569 while : 4053 while :
3570 do 4054 do
3571 cat "conftest.in" "conftest.in" >"conftest.tmp" 4055 cat "conftest.in" "conftest.in" >"conftest.tmp"
3572 mv "conftest.tmp" "conftest.in" 4056 mv "conftest.tmp" "conftest.in"
3573 cp "conftest.in" "conftest.nl" 4057 cp "conftest.in" "conftest.nl"
3574 echo 'GREP' >> "conftest.nl" 4058 $as_echo 'GREP' >> "conftest.nl"
3575 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4059 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3577 ac_count=`expr $ac_count + 1` 4061 as_fn_arith $ac_count + 1 && ac_count=$as_val
3578 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4062 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3579 # Best one so far, save it but keep looking for a better one 4063 # Best one so far, save it but keep looking for a better one
3580 ac_cv_path_GREP="$ac_path_GREP" 4064 ac_cv_path_GREP="$ac_path_GREP"
3581 ac_path_GREP_max=$ac_count 4065 ac_path_GREP_max=$ac_count
3582 fi 4066 fi
3584 test $ac_count -gt 10 && break 4068 test $ac_count -gt 10 && break
3585 done 4069 done
3586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3587esac 4071esac
3588 4072
3589
3590 $ac_path_GREP_found && break 3 4073 $ac_path_GREP_found && break 3
4074 done
3591 done 4075 done
3592done 4076 done
3593
3594done
3595IFS=$as_save_IFS 4077IFS=$as_save_IFS
3596
3597
3598fi
3599
3600GREP="$ac_cv_path_GREP"
3601if test -z "$GREP"; then 4078 if test -z "$ac_cv_path_GREP"; then
3602 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4079 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3603echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4080 fi
3604 { (exit 1); exit 1; }; }
3605fi
3606
3607else 4081else
3608 ac_cv_path_GREP=$GREP 4082 ac_cv_path_GREP=$GREP
3609fi 4083fi
3610 4084
3611
3612fi 4085fi
3613{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3614echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4087$as_echo "$ac_cv_path_GREP" >&6; }
3615 GREP="$ac_cv_path_GREP" 4088 GREP="$ac_cv_path_GREP"
3616 4089
3617 4090
3618{ echo "$as_me:$LINENO: checking for egrep" >&5 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3619echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4092$as_echo_n "checking for egrep... " >&6; }
3620if test "${ac_cv_path_EGREP+set}" = set; then 4093if test "${ac_cv_path_EGREP+set}" = set; then :
3621 echo $ECHO_N "(cached) $ECHO_C" >&6 4094 $as_echo_n "(cached) " >&6
3622else 4095else
3623 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4096 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3624 then ac_cv_path_EGREP="$GREP -E" 4097 then ac_cv_path_EGREP="$GREP -E"
3625 else 4098 else
3626 # Extract the first word of "egrep" to use in msg output
3627if test -z "$EGREP"; then 4099 if test -z "$EGREP"; then
3628set dummy egrep; ac_prog_name=$2
3629if test "${ac_cv_path_EGREP+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3631else
3632 ac_path_EGREP_found=false 4100 ac_path_EGREP_found=false
3633# Loop through the user's path and test for each of PROGNAME-LIST 4101 # Loop through the user's path and test for each of PROGNAME-LIST
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4103for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3636do 4104do
3637 IFS=$as_save_IFS 4105 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=. 4106 test -z "$as_dir" && as_dir=.
3639 for ac_prog in egrep; do 4107 for ac_prog in egrep; do
3640 for ac_exec_ext in '' $ac_executable_extensions; do 4108 for ac_exec_ext in '' $ac_executable_extensions; do
3641 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4109 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3642 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4110 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3643 # Check for GNU ac_path_EGREP and select it if it is found. 4111# Check for GNU ac_path_EGREP and select it if it is found.
3644 # Check for GNU $ac_path_EGREP 4112 # Check for GNU $ac_path_EGREP
3645case `"$ac_path_EGREP" --version 2>&1` in 4113case `"$ac_path_EGREP" --version 2>&1` in
3646*GNU*) 4114*GNU*)
3647 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4115 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3648*) 4116*)
3649 ac_count=0 4117 ac_count=0
3650 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4118 $as_echo_n 0123456789 >"conftest.in"
3651 while : 4119 while :
3652 do 4120 do
3653 cat "conftest.in" "conftest.in" >"conftest.tmp" 4121 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in" 4122 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl" 4123 cp "conftest.in" "conftest.nl"
3656 echo 'EGREP' >> "conftest.nl" 4124 $as_echo 'EGREP' >> "conftest.nl"
3657 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4125 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659 ac_count=`expr $ac_count + 1` 4127 as_fn_arith $ac_count + 1 && ac_count=$as_val
3660 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4128 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3661 # Best one so far, save it but keep looking for a better one 4129 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_EGREP="$ac_path_EGREP" 4130 ac_cv_path_EGREP="$ac_path_EGREP"
3663 ac_path_EGREP_max=$ac_count 4131 ac_path_EGREP_max=$ac_count
3664 fi 4132 fi
3666 test $ac_count -gt 10 && break 4134 test $ac_count -gt 10 && break
3667 done 4135 done
3668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3669esac 4137esac
3670 4138
3671
3672 $ac_path_EGREP_found && break 3 4139 $ac_path_EGREP_found && break 3
4140 done
3673 done 4141 done
4142 done
4143IFS=$as_save_IFS
4144 if test -z "$ac_cv_path_EGREP"; then
4145 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4146 fi
4147else
4148 ac_cv_path_EGREP=$EGREP
4149fi
4150
4151 fi
4152fi
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4154$as_echo "$ac_cv_path_EGREP" >&6; }
4155 EGREP="$ac_cv_path_EGREP"
4156
4157
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4159$as_echo_n "checking for ANSI C header files... " >&6; }
4160if test "${ac_cv_header_stdc+set}" = set; then :
4161 $as_echo_n "(cached) " >&6
4162else
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164/* end confdefs.h. */
4165#include <stdlib.h>
4166#include <stdarg.h>
4167#include <string.h>
4168#include <float.h>
4169
4170int
4171main ()
4172{
4173
4174 ;
4175 return 0;
4176}
4177_ACEOF
4178if ac_fn_c_try_compile "$LINENO"; then :
4179 ac_cv_header_stdc=yes
4180else
4181 ac_cv_header_stdc=no
4182fi
4183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184
4185if test $ac_cv_header_stdc = yes; then
4186 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188/* end confdefs.h. */
4189#include <string.h>
4190
4191_ACEOF
4192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193 $EGREP "memchr" >/dev/null 2>&1; then :
4194
4195else
4196 ac_cv_header_stdc=no
4197fi
4198rm -f conftest*
4199
4200fi
4201
4202if test $ac_cv_header_stdc = yes; then
4203 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205/* end confdefs.h. */
4206#include <stdlib.h>
4207
4208_ACEOF
4209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4210 $EGREP "free" >/dev/null 2>&1; then :
4211
4212else
4213 ac_cv_header_stdc=no
4214fi
4215rm -f conftest*
4216
4217fi
4218
4219if test $ac_cv_header_stdc = yes; then
4220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4221 if test "$cross_compiling" = yes; then :
4222 :
4223else
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225/* end confdefs.h. */
4226#include <ctype.h>
4227#include <stdlib.h>
4228#if ((' ' & 0x0FF) == 0x020)
4229# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4230# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4231#else
4232# define ISLOWER(c) \
4233 (('a' <= (c) && (c) <= 'i') \
4234 || ('j' <= (c) && (c) <= 'r') \
4235 || ('s' <= (c) && (c) <= 'z'))
4236# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4237#endif
4238
4239#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4240int
4241main ()
4242{
4243 int i;
4244 for (i = 0; i < 256; i++)
4245 if (XOR (islower (i), ISLOWER (i))
4246 || toupper (i) != TOUPPER (i))
4247 return 2;
4248 return 0;
4249}
4250_ACEOF
4251if ac_fn_c_try_run "$LINENO"; then :
4252
4253else
4254 ac_cv_header_stdc=no
4255fi
4256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4257 conftest.$ac_objext conftest.beam conftest.$ac_ext
4258fi
4259
4260fi
4261fi
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4263$as_echo "$ac_cv_header_stdc" >&6; }
4264if test $ac_cv_header_stdc = yes; then
4265
4266$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4267
4268fi
4269
4270# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4271for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4272 inttypes.h stdint.h unistd.h
4273do :
4274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4275ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4276"
4277if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4278 cat >>confdefs.h <<_ACEOF
4279#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4280_ACEOF
4281
4282fi
4283
3674done 4284done
3675 4285
3676done
3677IFS=$as_save_IFS
3678 4286
3679 4287
3680fi 4288 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3681 4289if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3682EGREP="$ac_cv_path_EGREP" 4290 MINIX=yes
3683if test -z "$EGREP"; then
3684 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3685echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3686 { (exit 1); exit 1; }; }
3687fi
3688
3689else 4291else
3690 ac_cv_path_EGREP=$EGREP 4292 MINIX=
3691fi 4293fi
3692 4294
3693 4295
4296 if test "$MINIX" = yes; then
4297
4298$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4299
4300
4301$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4302
4303
4304$as_echo "#define _MINIX 1" >>confdefs.h
4305
3694 fi 4306 fi
3695fi
3696{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3697echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3698 EGREP="$ac_cv_path_EGREP"
3699 4307
3700 4308
3701 4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3702{ echo "$as_me:$LINENO: checking for AIX" >&5 4310$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3703echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } 4311if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3704cat >conftest.$ac_ext <<_ACEOF 4312 $as_echo_n "(cached) " >&6
3705/* confdefs.h. */ 4313else
3706_ACEOF
3707cat confdefs.h >>conftest.$ac_ext 4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708cat >>conftest.$ac_ext <<_ACEOF
3709/* end confdefs.h. */ 4315/* end confdefs.h. */
3710#ifdef _AIX
3711 yes
3712#endif
3713 4316
3714_ACEOF 4317# define __EXTENSIONS__ 1
3715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4318 $ac_includes_default
3716 $EGREP "yes" >/dev/null 2>&1; then 4319int
3717 { echo "$as_me:$LINENO: result: yes" >&5 4320main ()
3718echo "${ECHO_T}yes" >&6; } 4321{
3719cat >>confdefs.h <<\_ACEOF
3720#define _ALL_SOURCE 1
3721_ACEOF
3722 4322
4323 ;
4324 return 0;
4325}
4326_ACEOF
4327if ac_fn_c_try_compile "$LINENO"; then :
4328 ac_cv_safe_to_define___extensions__=yes
3723else 4329else
3724 { echo "$as_me:$LINENO: result: no" >&5 4330 ac_cv_safe_to_define___extensions__=no
3725echo "${ECHO_T}no" >&6; }
3726fi 4331fi
3727rm -f conftest* 4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333fi
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4335$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4336 test $ac_cv_safe_to_define___extensions__ = yes &&
4337 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3728 4338
4339 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3729 4340
4341 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4342
4343 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4344
4345 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4346
4347
4348
4349
3730{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3731echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 4351$as_echo_n "checking for library containing strerror... " >&6; }
3732if test "${ac_cv_search_strerror+set}" = set; then 4352if test "${ac_cv_search_strerror+set}" = set; then :
3733 echo $ECHO_N "(cached) $ECHO_C" >&6 4353 $as_echo_n "(cached) " >&6
3734else 4354else
3735 ac_func_search_save_LIBS=$LIBS 4355 ac_func_search_save_LIBS=$LIBS
3736cat >conftest.$ac_ext <<_ACEOF
3737/* confdefs.h. */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext 4356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
3741/* end confdefs.h. */ 4357/* end confdefs.h. */
3742 4358
3743/* Override any GCC internal prototype to avoid an error. 4359/* Override any GCC internal prototype to avoid an error.
3744 Use char because int might match the return type of a GCC 4360 Use char because int might match the return type of a GCC
3745 builtin and then its argument prototype would still apply. */ 4361 builtin and then its argument prototype would still apply. */
3760 ac_res="none required" 4376 ac_res="none required"
3761 else 4377 else
3762 ac_res=-l$ac_lib 4378 ac_res=-l$ac_lib
3763 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3764 fi 4380 fi
3765 rm -f conftest.$ac_objext conftest$ac_exeext 4381 if ac_fn_c_try_link "$LINENO"; then :
3766if { (ac_try="$ac_link"
3767case "(($ac_try" in
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3770esac
3771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772 (eval "$ac_link") 2>conftest.er1
3773 ac_status=$?
3774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } && {
3779 test -z "$ac_c_werror_flag" ||
3780 test ! -s conftest.err
3781 } && test -s conftest$ac_exeext &&
3782 $as_test_x conftest$ac_exeext; then
3783 ac_cv_search_strerror=$ac_res 4382 ac_cv_search_strerror=$ac_res
3784else
3785 echo "$as_me: failed program was:" >&5
3786sed 's/^/| /' conftest.$ac_ext >&5
3787
3788
3789fi 4383fi
3790
3791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4384rm -f core conftest.err conftest.$ac_objext \
3792 conftest$ac_exeext 4385 conftest$ac_exeext
3793 if test "${ac_cv_search_strerror+set}" = set; then 4386 if test "${ac_cv_search_strerror+set}" = set; then :
3794 break 4387 break
3795fi 4388fi
3796done 4389done
3797if test "${ac_cv_search_strerror+set}" = set; then 4390if test "${ac_cv_search_strerror+set}" = set; then :
3798 : 4391
3799else 4392else
3800 ac_cv_search_strerror=no 4393 ac_cv_search_strerror=no
3801fi 4394fi
3802rm conftest.$ac_ext 4395rm conftest.$ac_ext
3803LIBS=$ac_func_search_save_LIBS 4396LIBS=$ac_func_search_save_LIBS
3804fi 4397fi
3805{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3806echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 4399$as_echo "$ac_cv_search_strerror" >&6; }
3807ac_res=$ac_cv_search_strerror 4400ac_res=$ac_cv_search_strerror
3808if test "$ac_res" != no; then 4401if test "$ac_res" != no; then :
3809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3810 4403
3811fi 4404fi
3812 4405
3813ac_ext=cpp 4406ac_ext=cpp
3816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3818 4411
3819 4412
3820if test x$GCC = xyes && test x$GXX = xyes; then 4413if test x$GCC = xyes && test x$GXX = xyes; then
3821 { echo "$as_me:$LINENO: checking for working libsupc++" >&5 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
3822echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6; } 4415$as_echo_n "checking for working libsupc++... " >&6; }
3823 save_CXX="$CXX" 4416 save_CXX="$CXX"
3824 save_LIBS="$LIBS" 4417 save_LIBS="$LIBS"
3825 CXX="$CC" 4418 CXX="$CC"
3826 LIBS="$LIBS -lsupc++" 4419 LIBS="$LIBS -lsupc++"
3827 LINKER="$CC" 4420 LINKER="$CC"
3828 4421
3829cat >conftest.$ac_ext <<_ACEOF
3830/* confdefs.h. */
3831_ACEOF
3832cat confdefs.h >>conftest.$ac_ext 4422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833cat >>conftest.$ac_ext <<_ACEOF
3834/* end confdefs.h. */ 4423/* end confdefs.h. */
3835struct test { }; void f() try { throw new test; } catch (...) { throw; } 4424struct test { }; void f() try { throw new test; } catch (...) { throw; }
3836int 4425int
3837main () 4426main ()
3838{ 4427{
3839 4428
3840 ; 4429 ;
3841 return 0; 4430 return 0;
3842} 4431}
3843_ACEOF 4432_ACEOF
3844rm -f conftest.$ac_objext conftest$ac_exeext 4433if ac_fn_cxx_try_link "$LINENO"; then :
3845if { (ac_try="$ac_link"
3846case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849esac
3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_link") 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } && {
3858 test -z "$ac_cxx_werror_flag" ||
3859 test ! -s conftest.err
3860 } && test -s conftest$ac_exeext &&
3861 $as_test_x conftest$ac_exeext; then
3862 { echo "$as_me:$LINENO: result: ok" >&5 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
3863echo "${ECHO_T}ok" >&6; } 4435$as_echo "ok" >&6; }
3864else 4436else
3865 echo "$as_me: failed program was:" >&5
3866sed 's/^/| /' conftest.$ac_ext >&5
3867 4437
3868
3869 { echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
3870echo "${ECHO_T}no, making everything bigger and slower" >&6; } 4439$as_echo "no, making everything bigger and slower" >&6; }
3871 LIBS="$save_LIBS" 4440 LIBS="$save_LIBS"
3872 LINKER="$save_CXX" 4441 LINKER="$save_CXX"
3873 4442
3874 4443
3875fi 4444fi
3876
3877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4445rm -f core conftest.err conftest.$ac_objext \
3878 conftest$ac_exeext conftest.$ac_ext 4446 conftest$ac_exeext conftest.$ac_ext
3879 CXX="$save_CXX" 4447 CXX="$save_CXX"
3880fi 4448fi
3881LINKER=$LINKER 4449LINKER=$LINKER
3882 4450
3883 4451
3884if test -z "$orig_CXXFLAGS"; then 4452if test -z "$orig_CXXFLAGS"; then
3885 if test x$GCC = xyes && test "x$GXX" = xyes; then 4453 if test x$GCC = xyes && test "x$GXX" = xyes; then
3886 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 4454 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
3887 cat >conftest.$ac_ext <<_ACEOF
3888/* confdefs.h. */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext 4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */ 4456/* end confdefs.h. */
3893 4457
3894int 4458int
3895main () 4459main ()
3896{ 4460{
3897 4461
3898 ; 4462 ;
3899 return 0; 4463 return 0;
3900} 4464}
3901_ACEOF 4465_ACEOF
3902rm -f conftest.$ac_objext 4466if ac_fn_cxx_try_compile "$LINENO"; then :
3903if { (ac_try="$ac_compile"
3904case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3907esac
3908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3909 (eval "$ac_compile") 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } && {
3916 test -z "$ac_cxx_werror_flag" ||
3917 test ! -s conftest.err
3918 } && test -s conftest.$ac_objext; then
3919 :
3920else
3921 echo "$as_me: failed program was:" >&5
3922sed 's/^/| /' conftest.$ac_ext >&5
3923 4467
4468else
3924 CXXFLAGS="-g -O3" 4469 CXXFLAGS="-g -O3"
3925fi 4470fi
3926
3927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 else 4472 else
3929 CXXFLAGS="-O" 4473 CXXFLAGS="-O"
3930 fi 4474 fi
3931 CFLAGS="$CXXFLAGS" 4475 CFLAGS="$CXXFLAGS"
3932fi 4476fi
3933 4477
3934
3935cat >>confdefs.h <<\_ACEOF
3936#define _GNU_SOURCE 1
3937_ACEOF
3938
3939
3940case $host in 4478case $host in
3941 *-*-solaris* ) 4479 *-*-solaris* )
3942 4480
3943cat >>confdefs.h <<\_ACEOF 4481$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
3944#define _XOPEN_SOURCE_EXTENDED 1
3945_ACEOF
3946
3947
3948cat >>confdefs.h <<\_ACEOF
3949#define _XOPEN_SOURCE 2
3950_ACEOF
3951
3952
3953cat >>confdefs.h <<\_ACEOF
3954#define __EXTENSIONS__ 1
3955_ACEOF
3956 4482
3957 ;; 4483 ;;
3958esac 4484esac
3959 4485
3960 4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
3961{ echo "$as_me:$LINENO: checking for setlocale" >&5 4487$as_echo_n "checking for library containing setlocale... " >&6; }
3962echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3963if test "${ac_cv_func_setlocale+set}" = set; then 4488if test "${ac_cv_search_setlocale+set}" = set; then :
3964 echo $ECHO_N "(cached) $ECHO_C" >&6 4489 $as_echo_n "(cached) " >&6
3965else
3966 cat >conftest.$ac_ext <<_ACEOF
3967/* confdefs.h. */
3968_ACEOF
3969cat confdefs.h >>conftest.$ac_ext
3970cat >>conftest.$ac_ext <<_ACEOF
3971/* end confdefs.h. */
3972/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3974#define setlocale innocuous_setlocale
3975
3976/* System header to define __stub macros and hopefully few prototypes,
3977 which can conflict with char setlocale (); below.
3978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3979 <limits.h> exists even on freestanding compilers. */
3980
3981#ifdef __STDC__
3982# include <limits.h>
3983#else 4490else
3984# include <assert.h> 4491 ac_func_search_save_LIBS=$LIBS
3985#endif
3986
3987#undef setlocale
3988
3989/* Override any GCC internal prototype to avoid an error.
3990 Use char because int might match the return type of a GCC
3991 builtin and then its argument prototype would still apply. */
3992#ifdef __cplusplus
3993extern "C"
3994#endif
3995char setlocale ();
3996/* The GNU C library defines this for functions which it implements
3997 to always fail with ENOSYS. Some functions are actually named
3998 something starting with __ and the normal name is an alias. */
3999#if defined __stub_setlocale || defined __stub___setlocale
4000choke me
4001#endif
4002
4003int
4004main ()
4005{
4006return setlocale ();
4007 ;
4008 return 0;
4009}
4010_ACEOF
4011rm -f conftest.$ac_objext conftest$ac_exeext
4012if { (ac_try="$ac_link"
4013case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016esac
4017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_link") 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } && {
4025 test -z "$ac_cxx_werror_flag" ||
4026 test ! -s conftest.err
4027 } && test -s conftest$ac_exeext &&
4028 $as_test_x conftest$ac_exeext; then
4029 ac_cv_func_setlocale=yes
4030else
4031 echo "$as_me: failed program was:" >&5
4032sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 ac_cv_func_setlocale=no
4035fi
4036
4037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4038 conftest$ac_exeext conftest.$ac_ext
4039fi
4040{ echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
4041echo "${ECHO_T}$ac_cv_func_setlocale" >&6; }
4042if test $ac_cv_func_setlocale = yes; then
4043 :
4044else
4045 { echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4046echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6; }
4047if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049else
4050 ac_check_lib_save_LIBS=$LIBS
4051LIBS="-lxpg4 $LIBS"
4052cat >conftest.$ac_ext <<_ACEOF
4053/* confdefs.h. */
4054_ACEOF
4055cat confdefs.h >>conftest.$ac_ext 4492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056cat >>conftest.$ac_ext <<_ACEOF
4057/* end confdefs.h. */ 4493/* end confdefs.h. */
4058 4494
4059/* Override any GCC internal prototype to avoid an error. 4495/* Override any GCC internal prototype to avoid an error.
4060 Use char because int might match the return type of a GCC 4496 Use char because int might match the return type of a GCC
4061 builtin and then its argument prototype would still apply. */ 4497 builtin and then its argument prototype would still apply. */
4069return setlocale (); 4505return setlocale ();
4070 ; 4506 ;
4071 return 0; 4507 return 0;
4072} 4508}
4073_ACEOF 4509_ACEOF
4074rm -f conftest.$ac_objext conftest$ac_exeext 4510for ac_lib in '' xpg4; do
4075if { (ac_try="$ac_link" 4511 if test -z "$ac_lib"; then
4076case "(($ac_try" in 4512 ac_res="none required"
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079esac
4080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_link") 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } && {
4088 test -z "$ac_cxx_werror_flag" ||
4089 test ! -s conftest.err
4090 } && test -s conftest$ac_exeext &&
4091 $as_test_x conftest$ac_exeext; then
4092 ac_cv_lib_xpg4_setlocale=yes
4093else 4513 else
4094 echo "$as_me: failed program was:" >&5 4514 ac_res=-l$ac_lib
4095sed 's/^/| /' conftest.$ac_ext >&5 4515 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4096 4516 fi
4097 ac_cv_lib_xpg4_setlocale=no 4517 if ac_fn_cxx_try_link "$LINENO"; then :
4518 ac_cv_search_setlocale=$ac_res
4098fi 4519fi
4099
4100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4520rm -f core conftest.err conftest.$ac_objext \
4101 conftest$ac_exeext conftest.$ac_ext 4521 conftest$ac_exeext
4102LIBS=$ac_check_lib_save_LIBS 4522 if test "${ac_cv_search_setlocale+set}" = set; then :
4523 break
4103fi 4524fi
4525done
4526if test "${ac_cv_search_setlocale+set}" = set; then :
4527
4528else
4529 ac_cv_search_setlocale=no
4530fi
4531rm conftest.$ac_ext
4532LIBS=$ac_func_search_save_LIBS
4533fi
4104{ echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5
4105echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; } 4535$as_echo "$ac_cv_search_setlocale" >&6; }
4106if test $ac_cv_lib_xpg4_setlocale = yes; then 4536ac_res=$ac_cv_search_setlocale
4107 LIBS="$LIBS -lxpg4" 4537if test "$ac_res" != no; then :
4108fi 4538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4109 4539
4110fi 4540fi
4111 4541
4112 4542
4113{ echo "$as_me:$LINENO: checking for gethostbyname" >&5 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4114echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 4544$as_echo_n "checking for library containing gethostbyname... " >&6; }
4115if test "${ac_cv_func_gethostbyname+set}" = set; then 4545if test "${ac_cv_search_gethostbyname+set}" = set; then :
4116 echo $ECHO_N "(cached) $ECHO_C" >&6 4546 $as_echo_n "(cached) " >&6
4117else
4118 cat >conftest.$ac_ext <<_ACEOF
4119/* confdefs.h. */
4120_ACEOF
4121cat confdefs.h >>conftest.$ac_ext
4122cat >>conftest.$ac_ext <<_ACEOF
4123/* end confdefs.h. */
4124/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4126#define gethostbyname innocuous_gethostbyname
4127
4128/* System header to define __stub macros and hopefully few prototypes,
4129 which can conflict with char gethostbyname (); below.
4130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 <limits.h> exists even on freestanding compilers. */
4132
4133#ifdef __STDC__
4134# include <limits.h>
4135#else 4547else
4136# include <assert.h> 4548 ac_func_search_save_LIBS=$LIBS
4137#endif
4138
4139#undef gethostbyname
4140
4141/* Override any GCC internal prototype to avoid an error.
4142 Use char because int might match the return type of a GCC
4143 builtin and then its argument prototype would still apply. */
4144#ifdef __cplusplus
4145extern "C"
4146#endif
4147char gethostbyname ();
4148/* The GNU C library defines this for functions which it implements
4149 to always fail with ENOSYS. Some functions are actually named
4150 something starting with __ and the normal name is an alias. */
4151#if defined __stub_gethostbyname || defined __stub___gethostbyname
4152choke me
4153#endif
4154
4155int
4156main ()
4157{
4158return gethostbyname ();
4159 ;
4160 return 0;
4161}
4162_ACEOF
4163rm -f conftest.$ac_objext conftest$ac_exeext
4164if { (ac_try="$ac_link"
4165case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168esac
4169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_link") 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } && {
4177 test -z "$ac_cxx_werror_flag" ||
4178 test ! -s conftest.err
4179 } && test -s conftest$ac_exeext &&
4180 $as_test_x conftest$ac_exeext; then
4181 ac_cv_func_gethostbyname=yes
4182else
4183 echo "$as_me: failed program was:" >&5
4184sed 's/^/| /' conftest.$ac_ext >&5
4185
4186 ac_cv_func_gethostbyname=no
4187fi
4188
4189rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4190 conftest$ac_exeext conftest.$ac_ext
4191fi
4192{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4193echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4194if test $ac_cv_func_gethostbyname = yes; then
4195 :
4196else
4197 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4198echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4199if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202 ac_check_lib_save_LIBS=$LIBS
4203LIBS="-lnsl $LIBS"
4204cat >conftest.$ac_ext <<_ACEOF
4205/* confdefs.h. */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext 4549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h. */ 4550/* end confdefs.h. */
4210 4551
4211/* Override any GCC internal prototype to avoid an error. 4552/* Override any GCC internal prototype to avoid an error.
4212 Use char because int might match the return type of a GCC 4553 Use char because int might match the return type of a GCC
4213 builtin and then its argument prototype would still apply. */ 4554 builtin and then its argument prototype would still apply. */
4221return gethostbyname (); 4562return gethostbyname ();
4222 ; 4563 ;
4223 return 0; 4564 return 0;
4224} 4565}
4225_ACEOF 4566_ACEOF
4226rm -f conftest.$ac_objext conftest$ac_exeext 4567for ac_lib in '' nsl; do
4227if { (ac_try="$ac_link" 4568 if test -z "$ac_lib"; then
4228case "(($ac_try" in 4569 ac_res="none required"
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4231esac
4232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_link") 2>conftest.er1
4234 ac_status=$?
4235 grep -v '^ *+' conftest.er1 >conftest.err
4236 rm -f conftest.er1
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } && {
4240 test -z "$ac_cxx_werror_flag" ||
4241 test ! -s conftest.err
4242 } && test -s conftest$ac_exeext &&
4243 $as_test_x conftest$ac_exeext; then
4244 ac_cv_lib_nsl_gethostbyname=yes
4245else 4570 else
4246 echo "$as_me: failed program was:" >&5 4571 ac_res=-l$ac_lib
4247sed 's/^/| /' conftest.$ac_ext >&5 4572 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4248 4573 fi
4249 ac_cv_lib_nsl_gethostbyname=no 4574 if ac_fn_cxx_try_link "$LINENO"; then :
4575 ac_cv_search_gethostbyname=$ac_res
4250fi 4576fi
4251
4252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4577rm -f core conftest.err conftest.$ac_objext \
4253 conftest$ac_exeext conftest.$ac_ext 4578 conftest$ac_exeext
4254LIBS=$ac_check_lib_save_LIBS 4579 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4580 break
4255fi 4581fi
4582done
4583if test "${ac_cv_search_gethostbyname+set}" = set; then :
4584
4585else
4586 ac_cv_search_gethostbyname=no
4587fi
4588rm conftest.$ac_ext
4589LIBS=$ac_func_search_save_LIBS
4590fi
4256{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 4591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4257echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 4592$as_echo "$ac_cv_search_gethostbyname" >&6; }
4258if test $ac_cv_lib_nsl_gethostbyname = yes; then 4593ac_res=$ac_cv_search_gethostbyname
4259 LIBS="$LIBS -lnsl" 4594if test "$ac_res" != no; then :
4260fi 4595 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4261 4596
4262fi 4597fi
4263 4598
4264{ echo "$as_me:$LINENO: checking for socket" >&5 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4265echo $ECHO_N "checking for socket... $ECHO_C" >&6; } 4600$as_echo_n "checking for library containing socket... " >&6; }
4266if test "${ac_cv_func_socket+set}" = set; then 4601if test "${ac_cv_search_socket+set}" = set; then :
4267 echo $ECHO_N "(cached) $ECHO_C" >&6 4602 $as_echo_n "(cached) " >&6
4268else
4269 cat >conftest.$ac_ext <<_ACEOF
4270/* confdefs.h. */
4271_ACEOF
4272cat confdefs.h >>conftest.$ac_ext
4273cat >>conftest.$ac_ext <<_ACEOF
4274/* end confdefs.h. */
4275/* Define socket to an innocuous variant, in case <limits.h> declares socket.
4276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4277#define socket innocuous_socket
4278
4279/* System header to define __stub macros and hopefully few prototypes,
4280 which can conflict with char socket (); below.
4281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4282 <limits.h> exists even on freestanding compilers. */
4283
4284#ifdef __STDC__
4285# include <limits.h>
4286#else 4603else
4287# include <assert.h> 4604 ac_func_search_save_LIBS=$LIBS
4288#endif
4289
4290#undef socket
4291
4292/* Override any GCC internal prototype to avoid an error.
4293 Use char because int might match the return type of a GCC
4294 builtin and then its argument prototype would still apply. */
4295#ifdef __cplusplus
4296extern "C"
4297#endif
4298char socket ();
4299/* The GNU C library defines this for functions which it implements
4300 to always fail with ENOSYS. Some functions are actually named
4301 something starting with __ and the normal name is an alias. */
4302#if defined __stub_socket || defined __stub___socket
4303choke me
4304#endif
4305
4306int
4307main ()
4308{
4309return socket ();
4310 ;
4311 return 0;
4312}
4313_ACEOF
4314rm -f conftest.$ac_objext conftest$ac_exeext
4315if { (ac_try="$ac_link"
4316case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319esac
4320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_link") 2>conftest.er1
4322 ac_status=$?
4323 grep -v '^ *+' conftest.er1 >conftest.err
4324 rm -f conftest.er1
4325 cat conftest.err >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } && {
4328 test -z "$ac_cxx_werror_flag" ||
4329 test ! -s conftest.err
4330 } && test -s conftest$ac_exeext &&
4331 $as_test_x conftest$ac_exeext; then
4332 ac_cv_func_socket=yes
4333else
4334 echo "$as_me: failed program was:" >&5
4335sed 's/^/| /' conftest.$ac_ext >&5
4336
4337 ac_cv_func_socket=no
4338fi
4339
4340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4341 conftest$ac_exeext conftest.$ac_ext
4342fi
4343{ echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4344echo "${ECHO_T}$ac_cv_func_socket" >&6; }
4345if test $ac_cv_func_socket = yes; then
4346 :
4347else
4348 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4349echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4350if test "${ac_cv_lib_socket_socket+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353 ac_check_lib_save_LIBS=$LIBS
4354LIBS="-lsocket $LIBS"
4355cat >conftest.$ac_ext <<_ACEOF
4356/* confdefs.h. */
4357_ACEOF
4358cat confdefs.h >>conftest.$ac_ext 4605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
4360/* end confdefs.h. */ 4606/* end confdefs.h. */
4361 4607
4362/* Override any GCC internal prototype to avoid an error. 4608/* Override any GCC internal prototype to avoid an error.
4363 Use char because int might match the return type of a GCC 4609 Use char because int might match the return type of a GCC
4364 builtin and then its argument prototype would still apply. */ 4610 builtin and then its argument prototype would still apply. */
4372return socket (); 4618return socket ();
4373 ; 4619 ;
4374 return 0; 4620 return 0;
4375} 4621}
4376_ACEOF 4622_ACEOF
4377rm -f conftest.$ac_objext conftest$ac_exeext 4623for ac_lib in '' socket; do
4378if { (ac_try="$ac_link" 4624 if test -z "$ac_lib"; then
4379case "(($ac_try" in 4625 ac_res="none required"
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382esac
4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_link") 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } && {
4391 test -z "$ac_cxx_werror_flag" ||
4392 test ! -s conftest.err
4393 } && test -s conftest$ac_exeext &&
4394 $as_test_x conftest$ac_exeext; then
4395 ac_cv_lib_socket_socket=yes
4396else 4626 else
4397 echo "$as_me: failed program was:" >&5 4627 ac_res=-l$ac_lib
4398sed 's/^/| /' conftest.$ac_ext >&5 4628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4399 4629 fi
4400 ac_cv_lib_socket_socket=no 4630 if ac_fn_cxx_try_link "$LINENO"; then :
4631 ac_cv_search_socket=$ac_res
4401fi 4632fi
4402
4403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4633rm -f core conftest.err conftest.$ac_objext \
4404 conftest$ac_exeext conftest.$ac_ext 4634 conftest$ac_exeext
4405LIBS=$ac_check_lib_save_LIBS 4635 if test "${ac_cv_search_socket+set}" = set; then :
4636 break
4406fi 4637fi
4638done
4639if test "${ac_cv_search_socket+set}" = set; then :
4640
4641else
4642 ac_cv_search_socket=no
4643fi
4644rm conftest.$ac_ext
4645LIBS=$ac_func_search_save_LIBS
4646fi
4407{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4408echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 4648$as_echo "$ac_cv_search_socket" >&6; }
4409if test $ac_cv_lib_socket_socket = yes; then 4649ac_res=$ac_cv_search_socket
4410 LIBS="$LIBS -lsocket" 4650if test "$ac_res" != no; then :
4411fi 4651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4412 4652
4413fi 4653fi
4414
4415 4654
4416 4655
4417support_frills=yes 4656support_frills=yes
4418support_inheritpixmap=yes 4657support_inheritpixmap=yes
4419support_tinting=yes
4420support_fading=yes 4658support_fading=yes
4421support_keepscrolling=yes 4659support_keepscrolling=yes
4422support_selectionscrolling=yes 4660support_selectionscrolling=yes
4423support_mousewheel=yes 4661support_mousewheel=yes
4424support_mouseslipwheel=yes 4662support_mouseslipwheel=yes
4425support_text_blink=yes 4663support_text_blink=yes
4426support_pointer_blank=yes 4664support_pointer_blank=yes
4427support_scroll_rxvt=yes 4665support_scroll_rxvt=yes
4428support_scroll_next=yes 4666support_scroll_next=yes
4429support_scroll_xterm=yes 4667support_scroll_xterm=yes
4430support_scroll_plain=yes
4431support_xim=yes 4668support_xim=yes
4432support_xpm=yes 4669support_afterimage=yes
4433support_xft=yes 4670support_xft=yes
4434support_unicode3=no 4671support_unicode3=no
4435support_combining=yes 4672support_combining=yes
4436support_8bitctrls=no 4673support_8bitctrls=no
4437support_iso14755=yes 4674support_iso14755=yes
4438support_styles=yes 4675support_styles=yes
4439support_perl=yes 4676support_perl=yes
4440codesets=all 4677codesets=all
4441 4678
4442 4679
4443if test "x$enable_shared" = xyes; then
4444
4445cat >>confdefs.h <<\_ACEOF
4446#define LIBRXVT 1
4447_ACEOF
4448
4449 INSTALL_LIBRXVT=yes
4450fi
4451
4452
4453# Check whether --enable-everything was given. 4680# Check whether --enable-everything was given.
4454if test "${enable_everything+set}" = set; then 4681if test "${enable_everything+set}" = set; then :
4455 enableval=$enable_everything; 4682 enableval=$enable_everything;
4456 if test x$enableval = xno; then 4683 if test x$enableval = xno; then
4457 support_frills=no 4684 support_frills=no
4458 support_inheritpixmap=no 4685 support_inheritpixmap=no
4459 support_tinting=no
4460 support_fading=no 4686 support_fading=no
4461 support_keepscrolling=no 4687 support_keepscrolling=no
4462 support_selectionscrolling=no 4688 support_selectionscrolling=no
4463 support_lastlog=no 4689 support_lastlog=no
4464 support_mousewheel=no 4690 support_mousewheel=no
4466 support_text_blink=no 4692 support_text_blink=no
4467 support_pointer_blank=no 4693 support_pointer_blank=no
4468 support_scroll_rxvt=no 4694 support_scroll_rxvt=no
4469 support_scroll_next=no 4695 support_scroll_next=no
4470 support_scroll_xterm=no 4696 support_scroll_xterm=no
4471 support_scroll_plain=no
4472 support_utmp=no 4697 support_utmp=no
4473 support_wtmp=no 4698 support_wtmp=no
4474 support_xim=no 4699 support_xim=no
4475 support_xpm=no 4700 support_afterimage=no
4476 support_xft=no 4701 support_xft=no
4477 support_unicode3=no 4702 support_unicode3=no
4478 support_combining=no 4703 support_combining=no
4479 support_8bitctrls=no 4704 support_8bitctrls=no
4480 support_iso14755=no 4705 support_iso14755=no
4483 codesets= 4708 codesets=
4484 fi 4709 fi
4485 if test x$enableval = xyes; then 4710 if test x$enableval = xyes; then
4486 support_frills=yes 4711 support_frills=yes
4487 support_inheritpixmap=yes 4712 support_inheritpixmap=yes
4488 support_tinting=yes
4489 support_fading=yes 4713 support_fading=yes
4490 support_keepscrolling=yes 4714 support_keepscrolling=yes
4491 support_selectionscrolling=yes 4715 support_selectionscrolling=yes
4492 support_lastlog=yes 4716 support_lastlog=yes
4493 support_mousewheel=yes 4717 support_mousewheel=yes
4495 support_text_blink=yes 4719 support_text_blink=yes
4496 support_pointer_blank=yes 4720 support_pointer_blank=yes
4497 support_scroll_rxvt=yes 4721 support_scroll_rxvt=yes
4498 support_scroll_next=yes 4722 support_scroll_next=yes
4499 support_scroll_xterm=yes 4723 support_scroll_xterm=yes
4500 support_scroll_plain=yes
4501 support_utmp=yes 4724 support_utmp=yes
4502 support_wtmp=yes 4725 support_wtmp=yes
4503 support_xim=yes 4726 support_xim=yes
4504 support_xpm=yes 4727 support_afterimage=yes
4505 support_xft=yes 4728 support_xft=yes
4506 support_unicode3=yes 4729 support_unicode3=yes
4507 support_combining=yes 4730 support_combining=yes
4508 #support_8bitctrls=yes 4731 #support_8bitctrls=yes
4509 support_iso14755=yes 4732 support_iso14755=yes
4513 fi 4736 fi
4514 4737
4515fi 4738fi
4516 4739
4517 4740
4741ASSERTIONS=no
4742# Check whether --enable-assert was given.
4743if test "${enable_assert+set}" = set; then :
4744 enableval=$enable_assert; if test x$enableval = xyes; then
4745 ASSERTIONS=yes
4746 fi
4747fi
4748
4749if test x$ASSERTIONS = xno; then
4750
4751$as_echo "#define NDEBUG 1" >>confdefs.h
4752
4753fi
4754
4755WARNINGS=no
4756# Check whether --enable-warnings was given.
4757if test "${enable_warnings+set}" = set; then :
4758 enableval=$enable_warnings; if test x$enableval = xyes; then
4759 WARNINGS=yes
4760 fi
4761fi
4762
4763if test x$GXX = xyes; then
4764 if test $WARNINGS = yes; then
4765 save_CXXFLAGS="$CXXFLAGS"
4766 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768/* end confdefs.h. */
4769
4770int
4771main ()
4772{
4773
4774 ;
4775 return 0;
4776}
4777_ACEOF
4778if ac_fn_cxx_try_compile "$LINENO"; then :
4779
4780else
4781 CXXFLAGS="$save_CXXFLAGS"
4782fi
4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 else
4785 CXXFLAGS="$CXXFLAGS -w"
4786 fi
4787fi
4788
4789support_256_color=no
4790# Check whether --enable-256-color was given.
4791if test "${enable_256_color+set}" = set; then :
4792 enableval=$enable_256_color; if test x$enableval = xyes; then
4793 support_256_color=yes
4794 fi
4795fi
4796
4797if test x$support_256_color = xyes; then
4798
4799$as_echo "#define USE_256_COLORS 1" >>confdefs.h
4800
4801fi
4802
4518# Check whether --enable-unicode3 was given. 4803# Check whether --enable-unicode3 was given.
4519if test "${enable_unicode3+set}" = set; then 4804if test "${enable_unicode3+set}" = set; then :
4520 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4805 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4521 support_unicode3=$enableval 4806 support_unicode3=$enableval
4522 fi 4807 fi
4523fi 4808fi
4524 4809
4525 4810
4526# Check whether --enable-combining was given. 4811# Check whether --enable-combining was given.
4527if test "${enable_combining+set}" = set; then 4812if test "${enable_combining+set}" = set; then :
4528 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then 4813 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then
4529 support_combining=$enableval 4814 support_combining=$enableval
4530 fi 4815 fi
4531fi 4816fi
4532 4817
4533 4818
4534# Check whether --enable-xft was given. 4819# Check whether --enable-xft was given.
4535if test "${enable_xft+set}" = set; then 4820if test "${enable_xft+set}" = set; then :
4536 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then 4821 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then
4537 support_xft=$enableval 4822 support_xft=$enableval
4538 fi 4823 fi
4539fi 4824fi
4540 4825
4541 4826
4542# Check whether --enable-font-styles was given. 4827# Check whether --enable-font-styles was given.
4543if test "${enable_font_styles+set}" = set; then 4828if test "${enable_font_styles+set}" = set; then :
4544 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then 4829 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
4545 support_styles=$enableval 4830 support_styles=$enableval
4546 fi 4831 fi
4547fi 4832fi
4548 4833
4549 4834
4835# Check whether --enable-afterimage was given.
4836if test "${enable_afterimage+set}" = set; then :
4837 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4838 support_afterimage=$enableval
4839 fi
4840fi
4841
4842
4843
4844# Check whether --with-afterimage_config was given.
4845if test "${with_afterimage_config+set}" = set; then :
4846 withval=$with_afterimage_config; if test "x$withval" != x; then
4847 afterimage_config=$withval/afterimage-config
4848 fi
4849fi
4850
4851
4550# Check whether --enable-xpm-background was given. 4852# Check whether --enable-pixbuf was given.
4551if test "${enable_xpm_background+set}" = set; then 4853if test "${enable_pixbuf+set}" = set; then :
4552 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then 4854 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then
4553 support_xpm=$enableval 4855 support_pixbuf=$enableval
4554 fi 4856 fi
4555fi 4857fi
4556 4858
4557 4859
4558# Check whether --enable-transparency was given. 4860# Check whether --enable-transparency was given.
4559if test "${enable_transparency+set}" = set; then 4861if test "${enable_transparency+set}" = set; then :
4560 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then 4862 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4561 support_inheritpixmap=$enableval 4863 support_inheritpixmap=$enableval
4562 fi 4864 fi
4563fi 4865fi
4564 4866
4565 4867
4566# Check whether --enable-tinting was given.
4567if test "${enable_tinting+set}" = set; then
4568 enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then
4569 support_tinting=$enableval
4570 fi
4571fi
4572
4573
4574# Check whether --enable-fading was given. 4868# Check whether --enable-fading was given.
4575if test "${enable_fading+set}" = set; then 4869if test "${enable_fading+set}" = set; then :
4576 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then 4870 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4577 support_fading=$enableval 4871 support_fading=$enableval
4578 fi 4872 fi
4579fi 4873fi
4580 4874
4581 4875
4582# Check whether --enable-rxvt-scroll was given. 4876# Check whether --enable-rxvt-scroll was given.
4583if test "${enable_rxvt_scroll+set}" = set; then 4877if test "${enable_rxvt_scroll+set}" = set; then :
4584 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4878 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4585 support_scroll_rxvt=$enableval 4879 support_scroll_rxvt=$enableval
4586 fi 4880 fi
4587fi 4881fi
4588 4882
4589 4883
4590# Check whether --enable-next-scroll was given. 4884# Check whether --enable-next-scroll was given.
4591if test "${enable_next_scroll+set}" = set; then 4885if test "${enable_next_scroll+set}" = set; then :
4592 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4886 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4593 support_scroll_next=$enableval 4887 support_scroll_next=$enableval
4594 fi 4888 fi
4595fi 4889fi
4596 4890
4597 4891
4598# Check whether --enable-xterm-scroll was given. 4892# Check whether --enable-xterm-scroll was given.
4599if test "${enable_xterm_scroll+set}" = set; then 4893if test "${enable_xterm_scroll+set}" = set; then :
4600 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4894 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4601 support_scroll_xterm=$enableval 4895 support_scroll_xterm=$enableval
4602 fi 4896 fi
4603fi 4897fi
4604 4898
4605 4899
4606# Check whether --enable-perl was given. 4900# Check whether --enable-perl was given.
4607if test "${enable_perl+set}" = set; then 4901if test "${enable_perl+set}" = set; then :
4608 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then 4902 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4609 support_perl=$enableval 4903 support_perl=$enableval
4610 fi 4904 fi
4611fi 4905fi
4612 4906
4613 4907
4614# Check whether --enable-plain-scroll was given.
4615if test "${enable_plain_scroll+set}" = set; then
4616 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4617 support_scroll_plain=$enableval
4618 fi
4619fi
4620
4621
4622 4908
4623# Check whether --with-codesets was given. 4909# Check whether --with-codesets was given.
4624if test "${with_codesets+set}" = set; then 4910if test "${with_codesets+set}" = set; then :
4625 withval=$with_codesets; codesets="$withval" 4911 withval=$with_codesets; codesets="$withval"
4626fi 4912fi
4627 4913
4628 4914
4629# Check whether --enable-xim was given. 4915# Check whether --enable-xim was given.
4630if test "${enable_xim+set}" = set; then 4916if test "${enable_xim+set}" = set; then :
4631 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then 4917 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
4632 support_xim=$enableval 4918 support_xim=$enableval
4633 fi 4919 fi
4634fi 4920fi
4635 4921
4636 4922
4637# Check whether --enable-backspace-key was given. 4923# Check whether --enable-backspace-key was given.
4638if test "${enable_backspace_key+set}" = set; then 4924if test "${enable_backspace_key+set}" = set; then :
4639 enableval=$enable_backspace_key; if test x$enableval = xno; then 4925 enableval=$enable_backspace_key; if test x$enableval = xno; then
4640 4926
4641cat >>confdefs.h <<\_ACEOF 4927$as_echo "#define NO_BACKSPACE_KEY 1" >>confdefs.h
4642#define NO_BACKSPACE_KEY 1
4643_ACEOF
4644 4928
4645 fi 4929 fi
4646fi 4930fi
4647 4931
4648 4932
4649# Check whether --enable-delete-key was given. 4933# Check whether --enable-delete-key was given.
4650if test "${enable_delete_key+set}" = set; then 4934if test "${enable_delete_key+set}" = set; then :
4651 enableval=$enable_delete_key; if test x$enableval = xno; then 4935 enableval=$enable_delete_key; if test x$enableval = xno; then
4652 4936
4653cat >>confdefs.h <<\_ACEOF 4937$as_echo "#define NO_DELETE_KEY 1" >>confdefs.h
4654#define NO_DELETE_KEY 1
4655_ACEOF
4656 4938
4657 fi 4939 fi
4658fi 4940fi
4659 4941
4660 4942
4661# Check whether --enable-resources was given. 4943# Check whether --enable-resources was given.
4662if test "${enable_resources+set}" = set; then 4944if test "${enable_resources+set}" = set; then :
4663 enableval=$enable_resources; if test x$enableval = xno; then 4945 enableval=$enable_resources; if test x$enableval = xno; then
4664 4946
4665cat >>confdefs.h <<\_ACEOF 4947$as_echo "#define NO_RESOURCES 1" >>confdefs.h
4666#define NO_RESOURCES 1
4667_ACEOF
4668 4948
4669 fi 4949 fi
4670fi 4950fi
4671 4951
4672 4952
4673# Check whether --enable-8bitctrls was given. 4953# Check whether --enable-8bitctrls was given.
4674if test "${enable_8bitctrls+set}" = set; then 4954if test "${enable_8bitctrls+set}" = set; then :
4675 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then 4955 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
4676 support_8bitctrls=$enableval 4956 support_8bitctrls=$enableval
4677 fi 4957 fi
4678fi 4958fi
4679 4959
4680 4960
4681RESFALLBACK=Rxvt 4961RESFALLBACK=Rxvt
4682# Check whether --enable-fallback was given. 4962# Check whether --enable-fallback was given.
4683if test "${enable_fallback+set}" = set; then 4963if test "${enable_fallback+set}" = set; then :
4684 enableval=$enable_fallback; 4964 enableval=$enable_fallback;
4685 test x$enableval = xyes && enableval=Rxvt 4965 test x$enableval = xyes && enableval=Rxvt
4686 test x$enableval = xno && enableval= 4966 test x$enableval = xno && enableval=
4687 RESFALLBACK="$enableval" 4967 RESFALLBACK="$enableval"
4688 4968
4698fi 4978fi
4699 4979
4700RESNAME=urxvt 4980RESNAME=urxvt
4701 4981
4702# Check whether --with-res-name was given. 4982# Check whether --with-res-name was given.
4703if test "${with_res_name+set}" = set; then 4983if test "${with_res_name+set}" = set; then :
4704 withval=$with_res_name; RESNAME="$withval" 4984 withval=$with_res_name; RESNAME="$withval"
4705fi 4985fi
4706 4986
4707 4987
4708cat >>confdefs.h <<_ACEOF 4988cat >>confdefs.h <<_ACEOF
4711 4991
4712 4992
4713RESCLASS=URxvt 4993RESCLASS=URxvt
4714 4994
4715# Check whether --with-res-class was given. 4995# Check whether --with-res-class was given.
4716if test "${with_res_class+set}" = set; then 4996if test "${with_res_class+set}" = set; then :
4717 withval=$with_res_class; RESCLASS="$withval" 4997 withval=$with_res_class; RESCLASS="$withval"
4718fi 4998fi
4719 4999
4720 5000
4721cat >>confdefs.h <<_ACEOF 5001cat >>confdefs.h <<_ACEOF
4724 5004
4725 5005
4726RXVTNAME=urxvt 5006RXVTNAME=urxvt
4727 5007
4728# Check whether --with-name was given. 5008# Check whether --with-name was given.
4729if test "${with_name+set}" = set; then 5009if test "${with_name+set}" = set; then :
4730 withval=$with_name; RXVTNAME="$withval" 5010 withval=$with_name; RXVTNAME="$withval"
4731fi 5011fi
4732 5012
4733 5013
4734cat >>confdefs.h <<_ACEOF 5014cat >>confdefs.h <<_ACEOF
4735#define RXVTNAME "$RXVTNAME" 5015#define RXVTNAME "$RXVTNAME"
4736_ACEOF 5016_ACEOF
4737 5017
4738 5018
4739RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4740 5019
4741 5020
4742# Check whether --enable-swapscreen was given. 5021# Check whether --enable-swapscreen was given.
4743if test "${enable_swapscreen+set}" = set; then 5022if test "${enable_swapscreen+set}" = set; then :
4744 enableval=$enable_swapscreen; if test x$enableval = xno; then 5023 enableval=$enable_swapscreen; if test x$enableval = xno; then
4745 5024
4746cat >>confdefs.h <<\_ACEOF 5025$as_echo "#define NO_SECONDARY_SCREEN 1" >>confdefs.h
4747#define NO_SECONDARY_SCREEN 1
4748_ACEOF
4749 5026
4750 fi 5027 fi
4751fi 5028fi
4752 5029
4753 5030
4754# Check whether --enable-iso14755 was given. 5031# Check whether --enable-iso14755 was given.
4755if test "${enable_iso14755+set}" = set; then 5032if test "${enable_iso14755+set}" = set; then :
4756 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then 5033 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
4757 support_iso14755=$enableval 5034 support_iso14755=$enableval
4758 fi 5035 fi
4759fi 5036fi
4760 5037
4761 5038
4762# Check whether --enable-frills was given. 5039# Check whether --enable-frills was given.
4763if test "${enable_frills+set}" = set; then 5040if test "${enable_frills+set}" = set; then :
4764 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then 5041 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
4765 support_frills=$enableval 5042 support_frills=$enableval
4766 fi 5043 fi
4767fi 5044fi
4768 5045
4769 5046
4770# Check whether --enable-keepscrolling was given. 5047# Check whether --enable-keepscrolling was given.
4771if test "${enable_keepscrolling+set}" = set; then 5048if test "${enable_keepscrolling+set}" = set; then :
4772 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then 5049 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
4773 support_keepscrolling=$enableval 5050 support_keepscrolling=$enableval
4774 fi 5051 fi
4775fi 5052fi
4776 5053
4777 5054
4778# Check whether --enable-selectionscrolling was given. 5055# Check whether --enable-selectionscrolling was given.
4779if test "${enable_selectionscrolling+set}" = set; then 5056if test "${enable_selectionscrolling+set}" = set; then :
4780 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then 5057 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
4781 support_selectionscrolling=$enableval 5058 support_selectionscrolling=$enableval
4782 fi 5059 fi
4783fi 5060fi
4784 5061
4785 5062
4786# Check whether --enable-mousewheel was given. 5063# Check whether --enable-mousewheel was given.
4787if test "${enable_mousewheel+set}" = set; then 5064if test "${enable_mousewheel+set}" = set; then :
4788 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then 5065 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
4789 support_mousewheel=$enableval 5066 support_mousewheel=$enableval
4790 fi 5067 fi
4791fi 5068fi
4792 5069
4793 5070
4794# Check whether --enable-slipwheeling was given. 5071# Check whether --enable-slipwheeling was given.
4795if test "${enable_slipwheeling+set}" = set; then 5072if test "${enable_slipwheeling+set}" = set; then :
4796 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then 5073 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
4797 support_mouseslipwheel=$enableval 5074 support_mouseslipwheel=$enableval
4798 fi 5075 fi
4799fi 5076fi
4800 5077
4801 5078
4802# Check whether --enable-smart-resize was given. 5079# Check whether --enable-smart-resize was given.
4803if test "${enable_smart_resize+set}" = set; then 5080if test "${enable_smart_resize+set}" = set; then :
4804 enableval=$enable_smart_resize; if test x$enableval = xyes; then 5081 enableval=$enable_smart_resize; if test x$enableval = xyes; then
4805 5082
4806cat >>confdefs.h <<\_ACEOF 5083$as_echo "#define SMART_RESIZE 1" >>confdefs.h
4807#define SMART_RESIZE 1
4808_ACEOF
4809 5084
4810 fi 5085 fi
4811fi 5086fi
4812 5087
4813 5088
4814# Check whether --enable-text-blink was given. 5089# Check whether --enable-text-blink was given.
4815if test "${enable_text_blink+set}" = set; then 5090if test "${enable_text_blink+set}" = set; then :
4816 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then 5091 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
4817 support_text_blink=$enableval 5092 support_text_blink=$enableval
4818 fi 5093 fi
4819fi 5094fi
4820 5095
4821 5096
4822# Check whether --enable-pointer-blank was given. 5097# Check whether --enable-pointer-blank was given.
4823if test "${enable_pointer_blank+set}" = set; then 5098if test "${enable_pointer_blank+set}" = set; then :
4824 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then 5099 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
4825 support_pointer_blank=$enableval 5100 support_pointer_blank=$enableval
4826 fi 5101 fi
4827fi 5102fi
4828 5103
4829 5104
4830 5105
4831# Check whether --with-term was given. 5106# Check whether --with-term was given.
4832if test "${with_term+set}" = set; then 5107if test "${with_term+set}" = set; then :
4833 withval=$with_term; if test x$withval != x; then 5108 withval=$with_term; if test x$withval != x; then
4834 5109
4835cat >>confdefs.h <<_ACEOF 5110cat >>confdefs.h <<_ACEOF
4836#define TERMENV "$withval" 5111#define TERMENV "$withval"
4837_ACEOF 5112_ACEOF
4840fi 5115fi
4841 5116
4842 5117
4843 5118
4844# Check whether --with-terminfo was given. 5119# Check whether --with-terminfo was given.
4845if test "${with_terminfo+set}" = set; then 5120if test "${with_terminfo+set}" = set; then :
4846 withval=$with_terminfo; if test x$withval != x; then 5121 withval=$with_terminfo; if test x$withval != x; then
4847 5122
4848cat >>confdefs.h <<_ACEOF 5123cat >>confdefs.h <<_ACEOF
4849#define RXVT_TERMINFO "$withval" 5124#define RXVT_TERMINFO "$withval"
4850_ACEOF 5125_ACEOF
4852 fi 5127 fi
4853fi 5128fi
4854 5129
4855 5130
4856 5131
4857# Extract the first word of "mv", so it can be a program name with args. 5132LIBEV_M4_AVOID_LIBRT=1
4858set dummy mv; ac_word=$2
4859{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861if test "${ac_cv_path_MV+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864 case $MV in
4865 [\\/]* | ?:[\\/]*)
4866 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4867 ;;
4868 *)
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4879 fi
4880done
4881done
4882IFS=$as_save_IFS
4883
4884 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4885 ;;
4886esac
4887fi
4888MV=$ac_cv_path_MV
4889if test -n "$MV"; then
4890 { echo "$as_me:$LINENO: result: $MV" >&5
4891echo "${ECHO_T}$MV" >&6; }
4892else
4893 { echo "$as_me:$LINENO: result: no" >&5
4894echo "${ECHO_T}no" >&6; }
4895fi
4896
4897
4898# Extract the first word of "cp", so it can be a program name with args.
4899set dummy cp; ac_word=$2
4900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902if test "${ac_cv_path_CP+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905 case $CP in
4906 [\\/]* | ?:[\\/]*)
4907 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4908 ;;
4909 *)
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4920 fi
4921done
4922done
4923IFS=$as_save_IFS
4924
4925 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4926 ;;
4927esac
4928fi
4929CP=$ac_cv_path_CP
4930if test -n "$CP"; then
4931 { echo "$as_me:$LINENO: result: $CP" >&5
4932echo "${ECHO_T}$CP" >&6; }
4933else
4934 { echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6; }
4936fi
4937
4938
4939# Extract the first word of "ln", so it can be a program name with args.
4940set dummy ln; ac_word=$2
4941{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943if test "${ac_cv_path_LN+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4945else
4946 case $LN in
4947 [\\/]* | ?:[\\/]*)
4948 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4949 ;;
4950 *)
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952for as_dir in $PATH
4953do
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4961 fi
4962done
4963done
4964IFS=$as_save_IFS
4965
4966 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4967 ;;
4968esac
4969fi
4970LN=$ac_cv_path_LN
4971if test -n "$LN"; then
4972 { echo "$as_me:$LINENO: result: $LN" >&5
4973echo "${ECHO_T}$LN" >&6; }
4974else
4975 { echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6; }
4977fi
4978
4979
4980# Extract the first word of "sed", so it can be a program name with args.
4981set dummy sed; ac_word=$2
4982{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4984if test "${ac_cv_path_SED+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986else
4987 case $SED in
4988 [\\/]* | ?:[\\/]*)
4989 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4990 ;;
4991 *)
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993for as_dir in $PATH
4994do
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5002 fi
5003done
5004done
5005IFS=$as_save_IFS
5006
5007 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5008 ;;
5009esac
5010fi
5011SED=$ac_cv_path_SED
5012if test -n "$SED"; then
5013 { echo "$as_me:$LINENO: result: $SED" >&5
5014echo "${ECHO_T}$SED" >&6; }
5015else
5016 { echo "$as_me:$LINENO: result: no" >&5
5017echo "${ECHO_T}no" >&6; }
5018fi
5019
5020
5021# Extract the first word of "echo", so it can be a program name with args.
5022set dummy echo; ac_word=$2
5023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5025if test "${ac_cv_path_ECHO+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027else
5028 case $ECHO in
5029 [\\/]* | ?:[\\/]*)
5030 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5031 ;;
5032 *)
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5043 fi
5044done
5045done
5046IFS=$as_save_IFS
5047
5048 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5049 ;;
5050esac
5051fi
5052ECHO=$ac_cv_path_ECHO
5053if test -n "$ECHO"; then
5054 { echo "$as_me:$LINENO: result: $ECHO" >&5
5055echo "${ECHO_T}$ECHO" >&6; }
5056else
5057 { echo "$as_me:$LINENO: result: no" >&5
5058echo "${ECHO_T}no" >&6; }
5059fi
5060
5061
5062# Extract the first word of "cmp", so it can be a program name with args.
5063set dummy cmp; ac_word=$2
5064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066if test "${ac_cv_path_CMP+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069 case $CMP in
5070 [\\/]* | ?:[\\/]*)
5071 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5072 ;;
5073 *)
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5084 fi
5085done
5086done
5087IFS=$as_save_IFS
5088
5089 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5090 ;;
5091esac
5092fi
5093CMP=$ac_cv_path_CMP
5094if test -n "$CMP"; then
5095 { echo "$as_me:$LINENO: result: $CMP" >&5
5096echo "${ECHO_T}$CMP" >&6; }
5097else
5098 { echo "$as_me:$LINENO: result: no" >&5
5099echo "${ECHO_T}no" >&6; }
5100fi
5101
5102
5103# Extract the first word of "tic", so it can be a program name with args.
5104set dummy tic; ac_word=$2
5105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107if test "${ac_cv_path_TIC+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109else
5110 case $TIC in
5111 [\\/]* | ?:[\\/]*)
5112 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5113 ;;
5114 *)
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126done
5127done
5128IFS=$as_save_IFS
5129
5130 ;;
5131esac
5132fi
5133TIC=$ac_cv_path_TIC
5134if test -n "$TIC"; then
5135 { echo "$as_me:$LINENO: result: $TIC" >&5
5136echo "${ECHO_T}$TIC" >&6; }
5137else
5138 { echo "$as_me:$LINENO: result: no" >&5
5139echo "${ECHO_T}no" >&6; }
5140fi
5141
5142
5143
5144
5145 5133
5146ac_ext=cpp 5134ac_ext=cpp
5147ac_cpp='$CXXCPP $CPPFLAGS' 5135ac_cpp='$CXXCPP $CPPFLAGS'
5148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5136ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5137ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5138ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5151{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5152echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5140$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5153if test -z "$CXXCPP"; then 5141if test -z "$CXXCPP"; then
5154 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5142 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5155 echo $ECHO_N "(cached) $ECHO_C" >&6 5143 $as_echo_n "(cached) " >&6
5156else 5144else
5157 # Double quotes because CXXCPP needs to be expanded 5145 # Double quotes because CXXCPP needs to be expanded
5158 for CXXCPP in "$CXX -E" "/lib/cpp" 5146 for CXXCPP in "$CXX -E" "/lib/cpp"
5159 do 5147 do
5160 ac_preproc_ok=false 5148 ac_preproc_ok=false
5164 # with a fresh cross-compiler works. 5152 # with a fresh cross-compiler works.
5165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5153 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166 # <limits.h> exists even on freestanding compilers. 5154 # <limits.h> exists even on freestanding compilers.
5167 # On the NeXT, cc -E runs the code through the compiler's parser, 5155 # On the NeXT, cc -E runs the code through the compiler's parser,
5168 # not just through cpp. "Syntax error" is here to catch this case. 5156 # not just through cpp. "Syntax error" is here to catch this case.
5169 cat >conftest.$ac_ext <<_ACEOF
5170/* confdefs.h. */
5171_ACEOF
5172cat confdefs.h >>conftest.$ac_ext 5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h. */ 5158/* end confdefs.h. */
5175#ifdef __STDC__ 5159#ifdef __STDC__
5176# include <limits.h> 5160# include <limits.h>
5177#else 5161#else
5178# include <assert.h> 5162# include <assert.h>
5179#endif 5163#endif
5180 Syntax error 5164 Syntax error
5181_ACEOF 5165_ACEOF
5182if { (ac_try="$ac_cpp conftest.$ac_ext" 5166if ac_fn_cxx_try_cpp "$LINENO"; then :
5183case "(($ac_try" in
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5186esac
5187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5189 ac_status=$?
5190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } >/dev/null && {
5195 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5196 test ! -s conftest.err
5197 }; then
5198 :
5199else
5200 echo "$as_me: failed program was:" >&5
5201sed 's/^/| /' conftest.$ac_ext >&5
5202 5167
5168else
5203 # Broken: fails on valid input. 5169 # Broken: fails on valid input.
5204continue 5170continue
5205fi 5171fi
5206
5207rm -f conftest.err conftest.$ac_ext 5172rm -f conftest.err conftest.i conftest.$ac_ext
5208 5173
5209 # OK, works on sane cases. Now check whether nonexistent headers 5174 # OK, works on sane cases. Now check whether nonexistent headers
5210 # can be detected and how. 5175 # can be detected and how.
5211 cat >conftest.$ac_ext <<_ACEOF
5212/* confdefs.h. */
5213_ACEOF
5214cat confdefs.h >>conftest.$ac_ext 5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215cat >>conftest.$ac_ext <<_ACEOF
5216/* end confdefs.h. */ 5177/* end confdefs.h. */
5217#include <ac_nonexistent.h> 5178#include <ac_nonexistent.h>
5218_ACEOF 5179_ACEOF
5219if { (ac_try="$ac_cpp conftest.$ac_ext" 5180if ac_fn_cxx_try_cpp "$LINENO"; then :
5220case "(($ac_try" in
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5223esac
5224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } >/dev/null && {
5232 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5233 test ! -s conftest.err
5234 }; then
5235 # Broken: success on invalid input. 5181 # Broken: success on invalid input.
5236continue 5182continue
5237else 5183else
5238 echo "$as_me: failed program was:" >&5
5239sed 's/^/| /' conftest.$ac_ext >&5
5240
5241 # Passes both tests. 5184 # Passes both tests.
5242ac_preproc_ok=: 5185ac_preproc_ok=:
5243break 5186break
5244fi 5187fi
5245
5246rm -f conftest.err conftest.$ac_ext 5188rm -f conftest.err conftest.i conftest.$ac_ext
5247 5189
5248done 5190done
5249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5191# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5250rm -f conftest.err conftest.$ac_ext 5192rm -f conftest.i conftest.err conftest.$ac_ext
5251if $ac_preproc_ok; then 5193if $ac_preproc_ok; then :
5252 break 5194 break
5253fi 5195fi
5254 5196
5255 done 5197 done
5256 ac_cv_prog_CXXCPP=$CXXCPP 5198 ac_cv_prog_CXXCPP=$CXXCPP
5258fi 5200fi
5259 CXXCPP=$ac_cv_prog_CXXCPP 5201 CXXCPP=$ac_cv_prog_CXXCPP
5260else 5202else
5261 ac_cv_prog_CXXCPP=$CXXCPP 5203 ac_cv_prog_CXXCPP=$CXXCPP
5262fi 5204fi
5263{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5264echo "${ECHO_T}$CXXCPP" >&6; } 5206$as_echo "$CXXCPP" >&6; }
5265ac_preproc_ok=false 5207ac_preproc_ok=false
5266for ac_cxx_preproc_warn_flag in '' yes 5208for ac_cxx_preproc_warn_flag in '' yes
5267do 5209do
5268 # Use a header file that comes with gcc, so configuring glibc 5210 # Use a header file that comes with gcc, so configuring glibc
5269 # with a fresh cross-compiler works. 5211 # with a fresh cross-compiler works.
5270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5271 # <limits.h> exists even on freestanding compilers. 5213 # <limits.h> exists even on freestanding compilers.
5272 # On the NeXT, cc -E runs the code through the compiler's parser, 5214 # On the NeXT, cc -E runs the code through the compiler's parser,
5273 # not just through cpp. "Syntax error" is here to catch this case. 5215 # not just through cpp. "Syntax error" is here to catch this case.
5274 cat >conftest.$ac_ext <<_ACEOF
5275/* confdefs.h. */
5276_ACEOF
5277cat confdefs.h >>conftest.$ac_ext 5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278cat >>conftest.$ac_ext <<_ACEOF
5279/* end confdefs.h. */ 5217/* end confdefs.h. */
5280#ifdef __STDC__ 5218#ifdef __STDC__
5281# include <limits.h> 5219# include <limits.h>
5282#else 5220#else
5283# include <assert.h> 5221# include <assert.h>
5284#endif 5222#endif
5285 Syntax error 5223 Syntax error
5286_ACEOF 5224_ACEOF
5287if { (ac_try="$ac_cpp conftest.$ac_ext" 5225if ac_fn_cxx_try_cpp "$LINENO"; then :
5288case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5291esac
5292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } >/dev/null && {
5300 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5301 test ! -s conftest.err
5302 }; then
5303 :
5304else
5305 echo "$as_me: failed program was:" >&5
5306sed 's/^/| /' conftest.$ac_ext >&5
5307 5226
5227else
5308 # Broken: fails on valid input. 5228 # Broken: fails on valid input.
5309continue 5229continue
5310fi 5230fi
5311
5312rm -f conftest.err conftest.$ac_ext 5231rm -f conftest.err conftest.i conftest.$ac_ext
5313 5232
5314 # OK, works on sane cases. Now check whether nonexistent headers 5233 # OK, works on sane cases. Now check whether nonexistent headers
5315 # can be detected and how. 5234 # can be detected and how.
5316 cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h. */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext 5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h. */ 5236/* end confdefs.h. */
5322#include <ac_nonexistent.h> 5237#include <ac_nonexistent.h>
5323_ACEOF 5238_ACEOF
5324if { (ac_try="$ac_cpp conftest.$ac_ext" 5239if ac_fn_cxx_try_cpp "$LINENO"; then :
5325case "(($ac_try" in
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5328esac
5329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } >/dev/null && {
5337 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5338 test ! -s conftest.err
5339 }; then
5340 # Broken: success on invalid input. 5240 # Broken: success on invalid input.
5341continue 5241continue
5342else 5242else
5343 echo "$as_me: failed program was:" >&5
5344sed 's/^/| /' conftest.$ac_ext >&5
5345
5346 # Passes both tests. 5243 # Passes both tests.
5347ac_preproc_ok=: 5244ac_preproc_ok=:
5348break 5245break
5349fi 5246fi
5350
5351rm -f conftest.err conftest.$ac_ext 5247rm -f conftest.err conftest.i conftest.$ac_ext
5352 5248
5353done 5249done
5354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5250# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355rm -f conftest.err conftest.$ac_ext 5251rm -f conftest.i conftest.err conftest.$ac_ext
5356if $ac_preproc_ok; then 5252if $ac_preproc_ok; then :
5357 : 5253
5358else 5254else
5359 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5360See \`config.log' for more details." >&5 5256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5361echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5257as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5362See \`config.log' for more details." >&2;} 5258See \`config.log' for more details" "$LINENO" 5; }
5363 { (exit 1); exit 1; }; }
5364fi 5259fi
5365 5260
5366ac_ext=cpp 5261ac_ext=cpp
5367ac_cpp='$CXXCPP $CPPFLAGS' 5262ac_cpp='$CXXCPP $CPPFLAGS'
5368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5371 5266
5372 5267
5268for 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
5269do :
5270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5271ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5272if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5273 cat >>confdefs.h <<_ACEOF
5274#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5275_ACEOF
5276
5277fi
5278
5279done
5280
5281
5282for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5283do :
5284 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5285ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5286if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5287 cat >>confdefs.h <<_ACEOF
5288#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5289_ACEOF
5290
5291fi
5292done
5293
5294
5295ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5296if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5297
5298else
5299
5300 if test $(uname) = Linux; then
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5302$as_echo_n "checking for clock_gettime syscall... " >&6; }
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304/* end confdefs.h. */
5305#include <unistd.h>
5306 #include <sys/syscall.h>
5307 #include <time.h>
5308int
5309main ()
5310{
5311struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5312 ;
5313 return 0;
5314}
5315_ACEOF
5316if ac_fn_cxx_try_link "$LINENO"; then :
5317 ac_have_clock_syscall=1
5318
5319$as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5322$as_echo "yes" >&6; }
5323else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325$as_echo "no" >&6; }
5326fi
5327rm -f core conftest.err conftest.$ac_objext \
5328 conftest$ac_exeext conftest.$ac_ext
5329 fi
5330 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5332$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
5333if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
5334 $as_echo_n "(cached) " >&6
5335else
5336 ac_check_lib_save_LIBS=$LIBS
5337LIBS="-lrt $LIBS"
5338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339/* end confdefs.h. */
5340
5341/* Override any GCC internal prototype to avoid an error.
5342 Use char because int might match the return type of a GCC
5343 builtin and then its argument prototype would still apply. */
5344#ifdef __cplusplus
5345extern "C"
5346#endif
5347char clock_gettime ();
5348int
5349main ()
5350{
5351return clock_gettime ();
5352 ;
5353 return 0;
5354}
5355_ACEOF
5356if ac_fn_cxx_try_link "$LINENO"; then :
5357 ac_cv_lib_rt_clock_gettime=yes
5358else
5359 ac_cv_lib_rt_clock_gettime=no
5360fi
5361rm -f core conftest.err conftest.$ac_objext \
5362 conftest$ac_exeext conftest.$ac_ext
5363LIBS=$ac_check_lib_save_LIBS
5364fi
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5366$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
5367if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
5368 cat >>confdefs.h <<_ACEOF
5369#define HAVE_LIBRT 1
5370_ACEOF
5371
5372 LIBS="-lrt $LIBS"
5373
5374fi
5375
5376 unset ac_cv_func_clock_gettime
5377 for ac_func in clock_gettime
5378do :
5379 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5380if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5381 cat >>confdefs.h <<_ACEOF
5382#define HAVE_CLOCK_GETTIME 1
5383_ACEOF
5384
5385fi
5386done
5387
5388 fi
5389
5390fi
5391
5392
5393ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5394if test "x$ac_cv_func_nanosleep" = x""yes; then :
5395
5396else
5397
5398 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5400$as_echo_n "checking for nanosleep in -lrt... " >&6; }
5401if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
5402 $as_echo_n "(cached) " >&6
5403else
5404 ac_check_lib_save_LIBS=$LIBS
5405LIBS="-lrt $LIBS"
5406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407/* end confdefs.h. */
5408
5409/* Override any GCC internal prototype to avoid an error.
5410 Use char because int might match the return type of a GCC
5411 builtin and then its argument prototype would still apply. */
5412#ifdef __cplusplus
5413extern "C"
5414#endif
5415char nanosleep ();
5416int
5417main ()
5418{
5419return nanosleep ();
5420 ;
5421 return 0;
5422}
5423_ACEOF
5424if ac_fn_cxx_try_link "$LINENO"; then :
5425 ac_cv_lib_rt_nanosleep=yes
5426else
5427 ac_cv_lib_rt_nanosleep=no
5428fi
5429rm -f core conftest.err conftest.$ac_objext \
5430 conftest$ac_exeext conftest.$ac_ext
5431LIBS=$ac_check_lib_save_LIBS
5432fi
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5434$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
5435if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
5436 cat >>confdefs.h <<_ACEOF
5437#define HAVE_LIBRT 1
5438_ACEOF
5439
5440 LIBS="-lrt $LIBS"
5441
5442fi
5443
5444 unset ac_cv_func_nanosleep
5445 for ac_func in nanosleep
5446do :
5447 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5448if test "x$ac_cv_func_nanosleep" = x""yes; then :
5449 cat >>confdefs.h <<_ACEOF
5450#define HAVE_NANOSLEEP 1
5451_ACEOF
5452
5453fi
5454done
5455
5456 fi
5457
5458fi
5459
5460
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5
5462$as_echo_n "checking for ceil in -lm... " >&6; }
5463if test "${ac_cv_lib_m_ceil+set}" = set; then :
5464 $as_echo_n "(cached) " >&6
5465else
5466 ac_check_lib_save_LIBS=$LIBS
5467LIBS="-lm $LIBS"
5468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h. */
5470
5471/* Override any GCC internal prototype to avoid an error.
5472 Use char because int might match the return type of a GCC
5473 builtin and then its argument prototype would still apply. */
5474#ifdef __cplusplus
5475extern "C"
5476#endif
5477char ceil ();
5478int
5479main ()
5480{
5481return ceil ();
5482 ;
5483 return 0;
5484}
5485_ACEOF
5486if ac_fn_cxx_try_link "$LINENO"; then :
5487 ac_cv_lib_m_ceil=yes
5488else
5489 ac_cv_lib_m_ceil=no
5490fi
5491rm -f core conftest.err conftest.$ac_objext \
5492 conftest$ac_exeext conftest.$ac_ext
5493LIBS=$ac_check_lib_save_LIBS
5494fi
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceil" >&5
5496$as_echo "$ac_cv_lib_m_ceil" >&6; }
5497if test "x$ac_cv_lib_m_ceil" = x""yes; then :
5498 cat >>confdefs.h <<_ACEOF
5499#define HAVE_LIBM 1
5500_ACEOF
5501
5502 LIBS="-lm $LIBS"
5503
5504fi
5505
5506
5507
5508
5509
5510# Extract the first word of "tic", so it can be a program name with args.
5511set dummy tic; ac_word=$2
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513$as_echo_n "checking for $ac_word... " >&6; }
5514if test "${ac_cv_path_TIC+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5516else
5517 case $TIC in
5518 [\\/]* | ?:[\\/]*)
5519 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5520 ;;
5521 *)
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523for as_dir in $PATH
5524do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5529 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533done
5534 done
5535IFS=$as_save_IFS
5536
5537 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5538 ;;
5539esac
5540fi
5541TIC=$ac_cv_path_TIC
5542if test -n "$TIC"; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5
5544$as_echo "$TIC" >&6; }
5545else
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547$as_echo "no" >&6; }
5548fi
5549
5550
5551
5373{ echo "$as_me:$LINENO: checking for X" >&5 5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5374echo $ECHO_N "checking for X... $ECHO_C" >&6; } 5553$as_echo_n "checking for X... " >&6; }
5375 5554
5376 5555
5377# Check whether --with-x was given. 5556# Check whether --with-x was given.
5378if test "${with_x+set}" = set; then 5557if test "${with_x+set}" = set; then :
5379 withval=$with_x; 5558 withval=$with_x;
5380fi 5559fi
5381 5560
5382# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 5561# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5383if test "x$with_x" = xno; then 5562if test "x$with_x" = xno; then
5384 # The user explicitly disabled X. 5563 # The user explicitly disabled X.
5385 have_x=disabled 5564 have_x=disabled
5386else 5565else
5387 case $x_includes,$x_libraries in #( 5566 case $x_includes,$x_libraries in #(
5388 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 5567 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5389echo "$as_me: error: Cannot use X directory names containing '" >&2;}
5390 { (exit 1); exit 1; }; };; #(
5391 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 5568 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5392 echo $ECHO_N "(cached) $ECHO_C" >&6 5569 $as_echo_n "(cached) " >&6
5393else 5570else
5394 # One or both of the vars are not set, and there is no cached value. 5571 # One or both of the vars are not set, and there is no cached value.
5395ac_x_includes=no ac_x_libraries=no 5572ac_x_includes=no ac_x_libraries=no
5396rm -f -r conftest.dir 5573rm -f -r conftest.dir
5397if mkdir conftest.dir; then 5574if mkdir conftest.dir; then
5403 @echo usrlibdir='${USRLIBDIR}' 5580 @echo usrlibdir='${USRLIBDIR}'
5404libdir: 5581libdir:
5405 @echo libdir='${LIBDIR}' 5582 @echo libdir='${LIBDIR}'
5406_ACEOF 5583_ACEOF
5407 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 5584 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5408 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5585 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5409 for ac_var in incroot usrlibdir libdir; do 5586 for ac_var in incroot usrlibdir libdir; do
5410 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 5587 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5411 done 5588 done
5412 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 5589 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5413 for ac_extension in a so sl; do 5590 for ac_extension in a so sl dylib la dll; do
5414 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 5591 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5415 test -f "$ac_im_libdir/libX11.$ac_extension"; then 5592 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5416 ac_im_usrlibdir=$ac_im_libdir; break 5593 ac_im_usrlibdir=$ac_im_libdir; break
5417 fi 5594 fi
5418 done 5595 done
5422 case $ac_im_incroot in 5599 case $ac_im_incroot in
5423 /usr/include) ac_x_includes= ;; 5600 /usr/include) ac_x_includes= ;;
5424 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 5601 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5425 esac 5602 esac
5426 case $ac_im_usrlibdir in 5603 case $ac_im_usrlibdir in
5427 /usr/lib | /lib) ;; 5604 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5428 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 5605 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5429 esac 5606 esac
5430 fi 5607 fi
5431 cd .. 5608 cd ..
5432 rm -f -r conftest.dir 5609 rm -f -r conftest.dir
5434 5611
5435# Standard set of common directories for X headers. 5612# Standard set of common directories for X headers.
5436# Check X11 before X11Rn because it is often a symlink to the current release. 5613# Check X11 before X11Rn because it is often a symlink to the current release.
5437ac_x_header_dirs=' 5614ac_x_header_dirs='
5438/usr/X11/include 5615/usr/X11/include
5616/usr/X11R7/include
5439/usr/X11R6/include 5617/usr/X11R6/include
5440/usr/X11R5/include 5618/usr/X11R5/include
5441/usr/X11R4/include 5619/usr/X11R4/include
5442 5620
5443/usr/include/X11 5621/usr/include/X11
5622/usr/include/X11R7
5444/usr/include/X11R6 5623/usr/include/X11R6
5445/usr/include/X11R5 5624/usr/include/X11R5
5446/usr/include/X11R4 5625/usr/include/X11R4
5447 5626
5448/usr/local/X11/include 5627/usr/local/X11/include
5628/usr/local/X11R7/include
5449/usr/local/X11R6/include 5629/usr/local/X11R6/include
5450/usr/local/X11R5/include 5630/usr/local/X11R5/include
5451/usr/local/X11R4/include 5631/usr/local/X11R4/include
5452 5632
5453/usr/local/include/X11 5633/usr/local/include/X11
5634/usr/local/include/X11R7
5454/usr/local/include/X11R6 5635/usr/local/include/X11R6
5455/usr/local/include/X11R5 5636/usr/local/include/X11R5
5456/usr/local/include/X11R4 5637/usr/local/include/X11R4
5457 5638
5458/usr/X386/include 5639/usr/X386/include
5470/usr/openwin/share/include' 5651/usr/openwin/share/include'
5471 5652
5472if test "$ac_x_includes" = no; then 5653if test "$ac_x_includes" = no; then
5473 # Guess where to find include files, by looking for Xlib.h. 5654 # Guess where to find include files, by looking for Xlib.h.
5474 # First, try using that file with no special directory specified. 5655 # First, try using that file with no special directory specified.
5475 cat >conftest.$ac_ext <<_ACEOF
5476/* confdefs.h. */
5477_ACEOF
5478cat confdefs.h >>conftest.$ac_ext 5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479cat >>conftest.$ac_ext <<_ACEOF
5480/* end confdefs.h. */ 5657/* end confdefs.h. */
5481#include <X11/Xlib.h> 5658#include <X11/Xlib.h>
5482_ACEOF 5659_ACEOF
5483if { (ac_try="$ac_cpp conftest.$ac_ext" 5660if ac_fn_cxx_try_cpp "$LINENO"; then :
5484case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487esac
5488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5490 ac_status=$?
5491 grep -v '^ *+' conftest.er1 >conftest.err
5492 rm -f conftest.er1
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } >/dev/null && {
5496 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5497 test ! -s conftest.err
5498 }; then
5499 # We can compile using X headers with no special include directory. 5661 # We can compile using X headers with no special include directory.
5500ac_x_includes= 5662ac_x_includes=
5501else 5663else
5502 echo "$as_me: failed program was:" >&5
5503sed 's/^/| /' conftest.$ac_ext >&5
5504
5505 for ac_dir in $ac_x_header_dirs; do 5664 for ac_dir in $ac_x_header_dirs; do
5506 if test -r "$ac_dir/X11/Xlib.h"; then 5665 if test -r "$ac_dir/X11/Xlib.h"; then
5507 ac_x_includes=$ac_dir 5666 ac_x_includes=$ac_dir
5508 break 5667 break
5509 fi 5668 fi
5510done 5669done
5511fi 5670fi
5512
5513rm -f conftest.err conftest.$ac_ext 5671rm -f conftest.err conftest.i conftest.$ac_ext
5514fi # $ac_x_includes = no 5672fi # $ac_x_includes = no
5515 5673
5516if test "$ac_x_libraries" = no; then 5674if test "$ac_x_libraries" = no; then
5517 # Check for the libraries. 5675 # Check for the libraries.
5518 # See if we find them without any special options. 5676 # See if we find them without any special options.
5519 # Don't add to $LIBS permanently. 5677 # Don't add to $LIBS permanently.
5520 ac_save_LIBS=$LIBS 5678 ac_save_LIBS=$LIBS
5521 LIBS="-lX11 $LIBS" 5679 LIBS="-lX11 $LIBS"
5522 cat >conftest.$ac_ext <<_ACEOF
5523/* confdefs.h. */
5524_ACEOF
5525cat confdefs.h >>conftest.$ac_ext 5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526cat >>conftest.$ac_ext <<_ACEOF
5527/* end confdefs.h. */ 5681/* end confdefs.h. */
5528#include <X11/Xlib.h> 5682#include <X11/Xlib.h>
5529int 5683int
5530main () 5684main ()
5531{ 5685{
5532XrmInitialize () 5686XrmInitialize ()
5533 ; 5687 ;
5534 return 0; 5688 return 0;
5535} 5689}
5536_ACEOF 5690_ACEOF
5537rm -f conftest.$ac_objext conftest$ac_exeext 5691if ac_fn_cxx_try_link "$LINENO"; then :
5538if { (ac_try="$ac_link"
5539case "(($ac_try" in
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5542esac
5543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544 (eval "$ac_link") 2>conftest.er1
5545 ac_status=$?
5546 grep -v '^ *+' conftest.er1 >conftest.err
5547 rm -f conftest.er1
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } && {
5551 test -z "$ac_cxx_werror_flag" ||
5552 test ! -s conftest.err
5553 } && test -s conftest$ac_exeext &&
5554 $as_test_x conftest$ac_exeext; then
5555 LIBS=$ac_save_LIBS 5692 LIBS=$ac_save_LIBS
5556# We can link X programs with no special library path. 5693# We can link X programs with no special library path.
5557ac_x_libraries= 5694ac_x_libraries=
5558else 5695else
5559 echo "$as_me: failed program was:" >&5
5560sed 's/^/| /' conftest.$ac_ext >&5
5561
5562 LIBS=$ac_save_LIBS 5696 LIBS=$ac_save_LIBS
5563for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5697for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5564do 5698do
5565 # Don't even attempt the hair of trying to link an X program! 5699 # Don't even attempt the hair of trying to link an X program!
5566 for ac_extension in a so sl; do 5700 for ac_extension in a so sl dylib la dll; do
5567 if test -r "$ac_dir/libX11.$ac_extension"; then 5701 if test -r "$ac_dir/libX11.$ac_extension"; then
5568 ac_x_libraries=$ac_dir 5702 ac_x_libraries=$ac_dir
5569 break 2 5703 break 2
5570 fi 5704 fi
5571 done 5705 done
5572done 5706done
5573fi 5707fi
5574
5575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5708rm -f core conftest.err conftest.$ac_objext \
5576 conftest$ac_exeext conftest.$ac_ext 5709 conftest$ac_exeext conftest.$ac_ext
5577fi # $ac_x_libraries = no 5710fi # $ac_x_libraries = no
5578 5711
5579case $ac_x_includes,$ac_x_libraries in #( 5712case $ac_x_includes,$ac_x_libraries in #(
5580 no,* | *,no | *\'*) 5713 no,* | *,no | *\'*)
5581 # Didn't find X, or a directory has "'" in its name. 5714 # Didn't find X, or a directory has "'" in its name.
5592 esac 5725 esac
5593 eval "$ac_cv_have_x" 5726 eval "$ac_cv_have_x"
5594fi # $with_x != no 5727fi # $with_x != no
5595 5728
5596if test "$have_x" != yes; then 5729if test "$have_x" != yes; then
5597 { echo "$as_me:$LINENO: result: $have_x" >&5 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5598echo "${ECHO_T}$have_x" >&6; } 5731$as_echo "$have_x" >&6; }
5599 no_x=yes 5732 no_x=yes
5600else 5733else
5601 # If each of the values was on the command line, it overrides each guess. 5734 # If each of the values was on the command line, it overrides each guess.
5602 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 5735 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5603 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5736 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5604 # Update the cache value to reflect the command line values. 5737 # Update the cache value to reflect the command line values.
5605 ac_cv_have_x="have_x=yes\ 5738 ac_cv_have_x="have_x=yes\
5606 ac_x_includes='$x_includes'\ 5739 ac_x_includes='$x_includes'\
5607 ac_x_libraries='$x_libraries'" 5740 ac_x_libraries='$x_libraries'"
5608 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5609echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 5742$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5610fi 5743fi
5611 5744
5612if test "$no_x" = yes; then 5745if test "$no_x" = yes; then
5613 # Not all programs may use this symbol, but it does not hurt to define it. 5746 # Not all programs may use this symbol, but it does not hurt to define it.
5614 5747
5615cat >>confdefs.h <<\_ACEOF 5748$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5616#define X_DISPLAY_MISSING 1
5617_ACEOF
5618 5749
5619 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 5750 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5620else 5751else
5621 if test -n "$x_includes"; then 5752 if test -n "$x_includes"; then
5622 X_CFLAGS="$X_CFLAGS -I$x_includes" 5753 X_CFLAGS="$X_CFLAGS -I$x_includes"
5625 # It would also be nice to do this for all -L options, not just this one. 5756 # It would also be nice to do this for all -L options, not just this one.
5626 if test -n "$x_libraries"; then 5757 if test -n "$x_libraries"; then
5627 X_LIBS="$X_LIBS -L$x_libraries" 5758 X_LIBS="$X_LIBS -L$x_libraries"
5628 # For Solaris; some versions of Sun CC require a space after -R and 5759 # For Solaris; some versions of Sun CC require a space after -R and
5629 # others require no space. Words are not sufficient . . . . 5760 # others require no space. Words are not sufficient . . . .
5630 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5631echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } 5762$as_echo_n "checking whether -R must be followed by a space... " >&6; }
5632 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 5763 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5633 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 5764 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
5634 ac_cxx_werror_flag=yes 5765 ac_cxx_werror_flag=yes
5635 cat >conftest.$ac_ext <<_ACEOF
5636/* confdefs.h. */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext 5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h. */ 5767/* end confdefs.h. */
5641 5768
5642int 5769int
5643main () 5770main ()
5644{ 5771{
5645 5772
5646 ; 5773 ;
5647 return 0; 5774 return 0;
5648} 5775}
5649_ACEOF 5776_ACEOF
5650rm -f conftest.$ac_objext conftest$ac_exeext 5777if ac_fn_cxx_try_link "$LINENO"; then :
5651if { (ac_try="$ac_link"
5652case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655esac
5656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_link") 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_cxx_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest$ac_exeext &&
5667 $as_test_x conftest$ac_exeext; then
5668 { echo "$as_me:$LINENO: result: no" >&5 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669echo "${ECHO_T}no" >&6; } 5779$as_echo "no" >&6; }
5670 X_LIBS="$X_LIBS -R$x_libraries" 5780 X_LIBS="$X_LIBS -R$x_libraries"
5671else 5781else
5672 echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
5675 LIBS="$ac_xsave_LIBS -R $x_libraries" 5782 LIBS="$ac_xsave_LIBS -R $x_libraries"
5676 cat >conftest.$ac_ext <<_ACEOF
5677/* confdefs.h. */
5678_ACEOF
5679cat confdefs.h >>conftest.$ac_ext 5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680cat >>conftest.$ac_ext <<_ACEOF
5681/* end confdefs.h. */ 5784/* end confdefs.h. */
5682 5785
5683int 5786int
5684main () 5787main ()
5685{ 5788{
5686 5789
5687 ; 5790 ;
5688 return 0; 5791 return 0;
5689} 5792}
5690_ACEOF 5793_ACEOF
5691rm -f conftest.$ac_objext conftest$ac_exeext 5794if ac_fn_cxx_try_link "$LINENO"; then :
5692if { (ac_try="$ac_link"
5693case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696esac
5697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_link") 2>conftest.er1
5699 ac_status=$?
5700 grep -v '^ *+' conftest.er1 >conftest.err
5701 rm -f conftest.er1
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } && {
5705 test -z "$ac_cxx_werror_flag" ||
5706 test ! -s conftest.err
5707 } && test -s conftest$ac_exeext &&
5708 $as_test_x conftest$ac_exeext; then
5709 { echo "$as_me:$LINENO: result: yes" >&5 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5710echo "${ECHO_T}yes" >&6; } 5796$as_echo "yes" >&6; }
5711 X_LIBS="$X_LIBS -R $x_libraries" 5797 X_LIBS="$X_LIBS -R $x_libraries"
5712else 5798else
5713 echo "$as_me: failed program was:" >&5
5714sed 's/^/| /' conftest.$ac_ext >&5
5715
5716 { echo "$as_me:$LINENO: result: neither works" >&5 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5717echo "${ECHO_T}neither works" >&6; } 5800$as_echo "neither works" >&6; }
5718fi 5801fi
5719
5720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5802rm -f core conftest.err conftest.$ac_objext \
5721 conftest$ac_exeext conftest.$ac_ext 5803 conftest$ac_exeext conftest.$ac_ext
5722fi 5804fi
5723
5724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5805rm -f core conftest.err conftest.$ac_objext \
5725 conftest$ac_exeext conftest.$ac_ext 5806 conftest$ac_exeext conftest.$ac_ext
5726 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 5807 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5727 LIBS=$ac_xsave_LIBS 5808 LIBS=$ac_xsave_LIBS
5728 fi 5809 fi
5729 5810
5730 # Check for system-dependent libraries X programs must link with. 5811 # Check for system-dependent libraries X programs must link with.
5736 else 5817 else
5737 # Martyn Johnson says this is needed for Ultrix, if the X 5818 # Martyn Johnson says this is needed for Ultrix, if the X
5738 # libraries were built with DECnet support. And Karl Berry says 5819 # libraries were built with DECnet support. And Karl Berry says
5739 # the Alpha needs dnet_stub (dnet does not exist). 5820 # the Alpha needs dnet_stub (dnet does not exist).
5740 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 5821 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5741 cat >conftest.$ac_ext <<_ACEOF
5742/* confdefs.h. */
5743_ACEOF
5744cat confdefs.h >>conftest.$ac_ext 5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745cat >>conftest.$ac_ext <<_ACEOF
5746/* end confdefs.h. */ 5823/* end confdefs.h. */
5747 5824
5748/* Override any GCC internal prototype to avoid an error. 5825/* Override any GCC internal prototype to avoid an error.
5749 Use char because int might match the return type of a GCC 5826 Use char because int might match the return type of a GCC
5750 builtin and then its argument prototype would still apply. */ 5827 builtin and then its argument prototype would still apply. */
5758return XOpenDisplay (); 5835return XOpenDisplay ();
5759 ; 5836 ;
5760 return 0; 5837 return 0;
5761} 5838}
5762_ACEOF 5839_ACEOF
5763rm -f conftest.$ac_objext conftest$ac_exeext 5840if ac_fn_cxx_try_link "$LINENO"; then :
5764if { (ac_try="$ac_link"
5765case "(($ac_try" in
5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5768esac
5769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_link") 2>conftest.er1
5771 ac_status=$?
5772 grep -v '^ *+' conftest.er1 >conftest.err
5773 rm -f conftest.er1
5774 cat conftest.err >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } && {
5777 test -z "$ac_cxx_werror_flag" ||
5778 test ! -s conftest.err
5779 } && test -s conftest$ac_exeext &&
5780 $as_test_x conftest$ac_exeext; then
5781 :
5782else
5783 echo "$as_me: failed program was:" >&5
5784sed 's/^/| /' conftest.$ac_ext >&5
5785 5841
5842else
5786 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5787echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } 5844$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5788if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 5845if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5789 echo $ECHO_N "(cached) $ECHO_C" >&6 5846 $as_echo_n "(cached) " >&6
5790else 5847else
5791 ac_check_lib_save_LIBS=$LIBS 5848 ac_check_lib_save_LIBS=$LIBS
5792LIBS="-ldnet $LIBS" 5849LIBS="-ldnet $LIBS"
5793cat >conftest.$ac_ext <<_ACEOF
5794/* confdefs.h. */
5795_ACEOF
5796cat confdefs.h >>conftest.$ac_ext 5850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797cat >>conftest.$ac_ext <<_ACEOF
5798/* end confdefs.h. */ 5851/* end confdefs.h. */
5799 5852
5800/* Override any GCC internal prototype to avoid an error. 5853/* Override any GCC internal prototype to avoid an error.
5801 Use char because int might match the return type of a GCC 5854 Use char because int might match the return type of a GCC
5802 builtin and then its argument prototype would still apply. */ 5855 builtin and then its argument prototype would still apply. */
5810return dnet_ntoa (); 5863return dnet_ntoa ();
5811 ; 5864 ;
5812 return 0; 5865 return 0;
5813} 5866}
5814_ACEOF 5867_ACEOF
5815rm -f conftest.$ac_objext conftest$ac_exeext 5868if ac_fn_cxx_try_link "$LINENO"; then :
5816if { (ac_try="$ac_link"
5817case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5820esac
5821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_link") 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } && {
5829 test -z "$ac_cxx_werror_flag" ||
5830 test ! -s conftest.err
5831 } && test -s conftest$ac_exeext &&
5832 $as_test_x conftest$ac_exeext; then
5833 ac_cv_lib_dnet_dnet_ntoa=yes 5869 ac_cv_lib_dnet_dnet_ntoa=yes
5834else 5870else
5835 echo "$as_me: failed program was:" >&5
5836sed 's/^/| /' conftest.$ac_ext >&5
5837
5838 ac_cv_lib_dnet_dnet_ntoa=no 5871 ac_cv_lib_dnet_dnet_ntoa=no
5839fi 5872fi
5840
5841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5873rm -f core conftest.err conftest.$ac_objext \
5842 conftest$ac_exeext conftest.$ac_ext 5874 conftest$ac_exeext conftest.$ac_ext
5843LIBS=$ac_check_lib_save_LIBS 5875LIBS=$ac_check_lib_save_LIBS
5844fi 5876fi
5845{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 5877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5846echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } 5878$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5847if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 5879if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5848 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 5880 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5849fi 5881fi
5850 5882
5851 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5883 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5852 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5853echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } 5885$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5854if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 5886if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5855 echo $ECHO_N "(cached) $ECHO_C" >&6 5887 $as_echo_n "(cached) " >&6
5856else 5888else
5857 ac_check_lib_save_LIBS=$LIBS 5889 ac_check_lib_save_LIBS=$LIBS
5858LIBS="-ldnet_stub $LIBS" 5890LIBS="-ldnet_stub $LIBS"
5859cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h. */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext 5891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h. */ 5892/* end confdefs.h. */
5865 5893
5866/* Override any GCC internal prototype to avoid an error. 5894/* Override any GCC internal prototype to avoid an error.
5867 Use char because int might match the return type of a GCC 5895 Use char because int might match the return type of a GCC
5868 builtin and then its argument prototype would still apply. */ 5896 builtin and then its argument prototype would still apply. */
5876return dnet_ntoa (); 5904return dnet_ntoa ();
5877 ; 5905 ;
5878 return 0; 5906 return 0;
5879} 5907}
5880_ACEOF 5908_ACEOF
5881rm -f conftest.$ac_objext conftest$ac_exeext 5909if ac_fn_cxx_try_link "$LINENO"; then :
5882if { (ac_try="$ac_link"
5883case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886esac
5887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_link") 2>conftest.er1
5889 ac_status=$?
5890 grep -v '^ *+' conftest.er1 >conftest.err
5891 rm -f conftest.er1
5892 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } && {
5895 test -z "$ac_cxx_werror_flag" ||
5896 test ! -s conftest.err
5897 } && test -s conftest$ac_exeext &&
5898 $as_test_x conftest$ac_exeext; then
5899 ac_cv_lib_dnet_stub_dnet_ntoa=yes 5910 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5900else 5911else
5901 echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
5904 ac_cv_lib_dnet_stub_dnet_ntoa=no 5912 ac_cv_lib_dnet_stub_dnet_ntoa=no
5905fi 5913fi
5906
5907rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5914rm -f core conftest.err conftest.$ac_objext \
5908 conftest$ac_exeext conftest.$ac_ext 5915 conftest$ac_exeext conftest.$ac_ext
5909LIBS=$ac_check_lib_save_LIBS 5916LIBS=$ac_check_lib_save_LIBS
5910fi 5917fi
5911{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5912echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 5919$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5913if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 5920if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5914 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 5921 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5915fi 5922fi
5916 5923
5917 fi 5924 fi
5918fi 5925fi
5919
5920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5926rm -f core conftest.err conftest.$ac_objext \
5921 conftest$ac_exeext conftest.$ac_ext 5927 conftest$ac_exeext conftest.$ac_ext
5922 LIBS="$ac_xsave_LIBS" 5928 LIBS="$ac_xsave_LIBS"
5923 5929
5924 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 5930 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5925 # to get the SysV transport functions. 5931 # to get the SysV transport functions.
5926 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 5932 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5927 # needs -lnsl. 5933 # needs -lnsl.
5928 # The nsl library prevents programs from opening the X display 5934 # The nsl library prevents programs from opening the X display
5929 # on Irix 5.2, according to T.E. Dickey. 5935 # on Irix 5.2, according to T.E. Dickey.
5930 # The functions gethostbyname, getservbyname, and inet_addr are 5936 # The functions gethostbyname, getservbyname, and inet_addr are
5931 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 5937 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5932 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5938 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5933echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5934if test "${ac_cv_func_gethostbyname+set}" = set; then 5939if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936else
5937 cat >conftest.$ac_ext <<_ACEOF
5938/* confdefs.h. */
5939_ACEOF
5940cat confdefs.h >>conftest.$ac_ext
5941cat >>conftest.$ac_ext <<_ACEOF
5942/* end confdefs.h. */
5943/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5945#define gethostbyname innocuous_gethostbyname
5946 5940
5947/* System header to define __stub macros and hopefully few prototypes,
5948 which can conflict with char gethostbyname (); below.
5949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5950 <limits.h> exists even on freestanding compilers. */
5951
5952#ifdef __STDC__
5953# include <limits.h>
5954#else
5955# include <assert.h>
5956#endif
5957
5958#undef gethostbyname
5959
5960/* Override any GCC internal prototype to avoid an error.
5961 Use char because int might match the return type of a GCC
5962 builtin and then its argument prototype would still apply. */
5963#ifdef __cplusplus
5964extern "C"
5965#endif
5966char gethostbyname ();
5967/* The GNU C library defines this for functions which it implements
5968 to always fail with ENOSYS. Some functions are actually named
5969 something starting with __ and the normal name is an alias. */
5970#if defined __stub_gethostbyname || defined __stub___gethostbyname
5971choke me
5972#endif
5973
5974int
5975main ()
5976{
5977return gethostbyname ();
5978 ;
5979 return 0;
5980}
5981_ACEOF
5982rm -f conftest.$ac_objext conftest$ac_exeext
5983if { (ac_try="$ac_link"
5984case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987esac
5988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_link") 2>conftest.er1
5990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } && {
5996 test -z "$ac_cxx_werror_flag" ||
5997 test ! -s conftest.err
5998 } && test -s conftest$ac_exeext &&
5999 $as_test_x conftest$ac_exeext; then
6000 ac_cv_func_gethostbyname=yes
6001else
6002 echo "$as_me: failed program was:" >&5
6003sed 's/^/| /' conftest.$ac_ext >&5
6004
6005 ac_cv_func_gethostbyname=no
6006fi 5941fi
6007
6008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6009 conftest$ac_exeext conftest.$ac_ext
6010fi
6011{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6012echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6013 5942
6014 if test $ac_cv_func_gethostbyname = no; then 5943 if test $ac_cv_func_gethostbyname = no; then
6015 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6016echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5945$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6017if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5946if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6018 echo $ECHO_N "(cached) $ECHO_C" >&6 5947 $as_echo_n "(cached) " >&6
6019else 5948else
6020 ac_check_lib_save_LIBS=$LIBS 5949 ac_check_lib_save_LIBS=$LIBS
6021LIBS="-lnsl $LIBS" 5950LIBS="-lnsl $LIBS"
6022cat >conftest.$ac_ext <<_ACEOF
6023/* confdefs.h. */
6024_ACEOF
6025cat confdefs.h >>conftest.$ac_ext 5951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026cat >>conftest.$ac_ext <<_ACEOF
6027/* end confdefs.h. */ 5952/* end confdefs.h. */
6028 5953
6029/* Override any GCC internal prototype to avoid an error. 5954/* Override any GCC internal prototype to avoid an error.
6030 Use char because int might match the return type of a GCC 5955 Use char because int might match the return type of a GCC
6031 builtin and then its argument prototype would still apply. */ 5956 builtin and then its argument prototype would still apply. */
6039return gethostbyname (); 5964return gethostbyname ();
6040 ; 5965 ;
6041 return 0; 5966 return 0;
6042} 5967}
6043_ACEOF 5968_ACEOF
6044rm -f conftest.$ac_objext conftest$ac_exeext 5969if ac_fn_cxx_try_link "$LINENO"; then :
6045if { (ac_try="$ac_link"
6046case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049esac
6050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_link") 2>conftest.er1
6052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } && {
6058 test -z "$ac_cxx_werror_flag" ||
6059 test ! -s conftest.err
6060 } && test -s conftest$ac_exeext &&
6061 $as_test_x conftest$ac_exeext; then
6062 ac_cv_lib_nsl_gethostbyname=yes 5970 ac_cv_lib_nsl_gethostbyname=yes
6063else 5971else
6064 echo "$as_me: failed program was:" >&5
6065sed 's/^/| /' conftest.$ac_ext >&5
6066
6067 ac_cv_lib_nsl_gethostbyname=no 5972 ac_cv_lib_nsl_gethostbyname=no
6068fi 5973fi
6069
6070rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5974rm -f core conftest.err conftest.$ac_objext \
6071 conftest$ac_exeext conftest.$ac_ext 5975 conftest$ac_exeext conftest.$ac_ext
6072LIBS=$ac_check_lib_save_LIBS 5976LIBS=$ac_check_lib_save_LIBS
6073fi 5977fi
6074{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6075echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5979$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6076if test $ac_cv_lib_nsl_gethostbyname = yes; then 5980if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6077 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 5981 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6078fi 5982fi
6079 5983
6080 if test $ac_cv_lib_nsl_gethostbyname = no; then 5984 if test $ac_cv_lib_nsl_gethostbyname = no; then
6081 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6082echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 5986$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6083if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 5987if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
6084 echo $ECHO_N "(cached) $ECHO_C" >&6 5988 $as_echo_n "(cached) " >&6
6085else 5989else
6086 ac_check_lib_save_LIBS=$LIBS 5990 ac_check_lib_save_LIBS=$LIBS
6087LIBS="-lbsd $LIBS" 5991LIBS="-lbsd $LIBS"
6088cat >conftest.$ac_ext <<_ACEOF
6089/* confdefs.h. */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext 5992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h. */ 5993/* end confdefs.h. */
6094 5994
6095/* Override any GCC internal prototype to avoid an error. 5995/* Override any GCC internal prototype to avoid an error.
6096 Use char because int might match the return type of a GCC 5996 Use char because int might match the return type of a GCC
6097 builtin and then its argument prototype would still apply. */ 5997 builtin and then its argument prototype would still apply. */
6105return gethostbyname (); 6005return gethostbyname ();
6106 ; 6006 ;
6107 return 0; 6007 return 0;
6108} 6008}
6109_ACEOF 6009_ACEOF
6110rm -f conftest.$ac_objext conftest$ac_exeext 6010if ac_fn_cxx_try_link "$LINENO"; then :
6111if { (ac_try="$ac_link"
6112case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115esac
6116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_link") 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } && {
6124 test -z "$ac_cxx_werror_flag" ||
6125 test ! -s conftest.err
6126 } && test -s conftest$ac_exeext &&
6127 $as_test_x conftest$ac_exeext; then
6128 ac_cv_lib_bsd_gethostbyname=yes 6011 ac_cv_lib_bsd_gethostbyname=yes
6129else 6012else
6130 echo "$as_me: failed program was:" >&5
6131sed 's/^/| /' conftest.$ac_ext >&5
6132
6133 ac_cv_lib_bsd_gethostbyname=no 6013 ac_cv_lib_bsd_gethostbyname=no
6134fi 6014fi
6135
6136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6015rm -f core conftest.err conftest.$ac_objext \
6137 conftest$ac_exeext conftest.$ac_ext 6016 conftest$ac_exeext conftest.$ac_ext
6138LIBS=$ac_check_lib_save_LIBS 6017LIBS=$ac_check_lib_save_LIBS
6139fi 6018fi
6140{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 6019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6141echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 6020$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6142if test $ac_cv_lib_bsd_gethostbyname = yes; then 6021if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
6143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6022 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6144fi 6023fi
6145 6024
6146 fi 6025 fi
6147 fi 6026 fi
6151 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 6030 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6152 # on later versions), says Simon Leinen: it contains gethostby* 6031 # on later versions), says Simon Leinen: it contains gethostby*
6153 # variants that don't use the name server (or something). -lsocket 6032 # variants that don't use the name server (or something). -lsocket
6154 # must be given before -lnsl if both are needed. We assume that 6033 # must be given before -lnsl if both are needed. We assume that
6155 # if connect needs -lnsl, so does gethostbyname. 6034 # if connect needs -lnsl, so does gethostbyname.
6156 { echo "$as_me:$LINENO: checking for connect" >&5 6035 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6157echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 6036if test "x$ac_cv_func_connect" = x""yes; then :
6158if test "${ac_cv_func_connect+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160else
6161 cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h. */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h. */
6167/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6169#define connect innocuous_connect
6170 6037
6171/* System header to define __stub macros and hopefully few prototypes,
6172 which can conflict with char connect (); below.
6173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6174 <limits.h> exists even on freestanding compilers. */
6175
6176#ifdef __STDC__
6177# include <limits.h>
6178#else
6179# include <assert.h>
6180#endif
6181
6182#undef connect
6183
6184/* Override any GCC internal prototype to avoid an error.
6185 Use char because int might match the return type of a GCC
6186 builtin and then its argument prototype would still apply. */
6187#ifdef __cplusplus
6188extern "C"
6189#endif
6190char connect ();
6191/* The GNU C library defines this for functions which it implements
6192 to always fail with ENOSYS. Some functions are actually named
6193 something starting with __ and the normal name is an alias. */
6194#if defined __stub_connect || defined __stub___connect
6195choke me
6196#endif
6197
6198int
6199main ()
6200{
6201return connect ();
6202 ;
6203 return 0;
6204}
6205_ACEOF
6206rm -f conftest.$ac_objext conftest$ac_exeext
6207if { (ac_try="$ac_link"
6208case "(($ac_try" in
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6211esac
6212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_link") 2>conftest.er1
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } && {
6220 test -z "$ac_cxx_werror_flag" ||
6221 test ! -s conftest.err
6222 } && test -s conftest$ac_exeext &&
6223 $as_test_x conftest$ac_exeext; then
6224 ac_cv_func_connect=yes
6225else
6226 echo "$as_me: failed program was:" >&5
6227sed 's/^/| /' conftest.$ac_ext >&5
6228
6229 ac_cv_func_connect=no
6230fi 6038fi
6231
6232rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6233 conftest$ac_exeext conftest.$ac_ext
6234fi
6235{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6236echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6237 6039
6238 if test $ac_cv_func_connect = no; then 6040 if test $ac_cv_func_connect = no; then
6239 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6240echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 6042$as_echo_n "checking for connect in -lsocket... " >&6; }
6241if test "${ac_cv_lib_socket_connect+set}" = set; then 6043if test "${ac_cv_lib_socket_connect+set}" = set; then :
6242 echo $ECHO_N "(cached) $ECHO_C" >&6 6044 $as_echo_n "(cached) " >&6
6243else 6045else
6244 ac_check_lib_save_LIBS=$LIBS 6046 ac_check_lib_save_LIBS=$LIBS
6245LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6047LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6246cat >conftest.$ac_ext <<_ACEOF
6247/* confdefs.h. */
6248_ACEOF
6249cat confdefs.h >>conftest.$ac_ext 6048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250cat >>conftest.$ac_ext <<_ACEOF
6251/* end confdefs.h. */ 6049/* end confdefs.h. */
6252 6050
6253/* Override any GCC internal prototype to avoid an error. 6051/* Override any GCC internal prototype to avoid an error.
6254 Use char because int might match the return type of a GCC 6052 Use char because int might match the return type of a GCC
6255 builtin and then its argument prototype would still apply. */ 6053 builtin and then its argument prototype would still apply. */
6263return connect (); 6061return connect ();
6264 ; 6062 ;
6265 return 0; 6063 return 0;
6266} 6064}
6267_ACEOF 6065_ACEOF
6268rm -f conftest.$ac_objext conftest$ac_exeext 6066if ac_fn_cxx_try_link "$LINENO"; then :
6269if { (ac_try="$ac_link"
6270case "(($ac_try" in
6271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6272 *) ac_try_echo=$ac_try;;
6273esac
6274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6275 (eval "$ac_link") 2>conftest.er1
6276 ac_status=$?
6277 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -f conftest.er1
6279 cat conftest.err >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } && {
6282 test -z "$ac_cxx_werror_flag" ||
6283 test ! -s conftest.err
6284 } && test -s conftest$ac_exeext &&
6285 $as_test_x conftest$ac_exeext; then
6286 ac_cv_lib_socket_connect=yes 6067 ac_cv_lib_socket_connect=yes
6287else 6068else
6288 echo "$as_me: failed program was:" >&5
6289sed 's/^/| /' conftest.$ac_ext >&5
6290
6291 ac_cv_lib_socket_connect=no 6069 ac_cv_lib_socket_connect=no
6292fi 6070fi
6293
6294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6071rm -f core conftest.err conftest.$ac_objext \
6295 conftest$ac_exeext conftest.$ac_ext 6072 conftest$ac_exeext conftest.$ac_ext
6296LIBS=$ac_check_lib_save_LIBS 6073LIBS=$ac_check_lib_save_LIBS
6297fi 6074fi
6298{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 6075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6299echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 6076$as_echo "$ac_cv_lib_socket_connect" >&6; }
6300if test $ac_cv_lib_socket_connect = yes; then 6077if test "x$ac_cv_lib_socket_connect" = x""yes; then :
6301 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6078 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6302fi 6079fi
6303 6080
6304 fi 6081 fi
6305 6082
6306 # Guillermo Gomez says -lposix is necessary on A/UX. 6083 # Guillermo Gomez says -lposix is necessary on A/UX.
6307 { echo "$as_me:$LINENO: checking for remove" >&5 6084 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6308echo $ECHO_N "checking for remove... $ECHO_C" >&6; } 6085if test "x$ac_cv_func_remove" = x""yes; then :
6309if test "${ac_cv_func_remove+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311else
6312 cat >conftest.$ac_ext <<_ACEOF
6313/* confdefs.h. */
6314_ACEOF
6315cat confdefs.h >>conftest.$ac_ext
6316cat >>conftest.$ac_ext <<_ACEOF
6317/* end confdefs.h. */
6318/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6320#define remove innocuous_remove
6321 6086
6322/* System header to define __stub macros and hopefully few prototypes,
6323 which can conflict with char remove (); below.
6324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6325 <limits.h> exists even on freestanding compilers. */
6326
6327#ifdef __STDC__
6328# include <limits.h>
6329#else
6330# include <assert.h>
6331#endif
6332
6333#undef remove
6334
6335/* Override any GCC internal prototype to avoid an error.
6336 Use char because int might match the return type of a GCC
6337 builtin and then its argument prototype would still apply. */
6338#ifdef __cplusplus
6339extern "C"
6340#endif
6341char remove ();
6342/* The GNU C library defines this for functions which it implements
6343 to always fail with ENOSYS. Some functions are actually named
6344 something starting with __ and the normal name is an alias. */
6345#if defined __stub_remove || defined __stub___remove
6346choke me
6347#endif
6348
6349int
6350main ()
6351{
6352return remove ();
6353 ;
6354 return 0;
6355}
6356_ACEOF
6357rm -f conftest.$ac_objext conftest$ac_exeext
6358if { (ac_try="$ac_link"
6359case "(($ac_try" in
6360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6362esac
6363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6364 (eval "$ac_link") 2>conftest.er1
6365 ac_status=$?
6366 grep -v '^ *+' conftest.er1 >conftest.err
6367 rm -f conftest.er1
6368 cat conftest.err >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } && {
6371 test -z "$ac_cxx_werror_flag" ||
6372 test ! -s conftest.err
6373 } && test -s conftest$ac_exeext &&
6374 $as_test_x conftest$ac_exeext; then
6375 ac_cv_func_remove=yes
6376else
6377 echo "$as_me: failed program was:" >&5
6378sed 's/^/| /' conftest.$ac_ext >&5
6379
6380 ac_cv_func_remove=no
6381fi 6087fi
6382
6383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6384 conftest$ac_exeext conftest.$ac_ext
6385fi
6386{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6387echo "${ECHO_T}$ac_cv_func_remove" >&6; }
6388 6088
6389 if test $ac_cv_func_remove = no; then 6089 if test $ac_cv_func_remove = no; then
6390 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6391echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 6091$as_echo_n "checking for remove in -lposix... " >&6; }
6392if test "${ac_cv_lib_posix_remove+set}" = set; then 6092if test "${ac_cv_lib_posix_remove+set}" = set; then :
6393 echo $ECHO_N "(cached) $ECHO_C" >&6 6093 $as_echo_n "(cached) " >&6
6394else 6094else
6395 ac_check_lib_save_LIBS=$LIBS 6095 ac_check_lib_save_LIBS=$LIBS
6396LIBS="-lposix $LIBS" 6096LIBS="-lposix $LIBS"
6397cat >conftest.$ac_ext <<_ACEOF
6398/* confdefs.h. */
6399_ACEOF
6400cat confdefs.h >>conftest.$ac_ext 6097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401cat >>conftest.$ac_ext <<_ACEOF
6402/* end confdefs.h. */ 6098/* end confdefs.h. */
6403 6099
6404/* Override any GCC internal prototype to avoid an error. 6100/* Override any GCC internal prototype to avoid an error.
6405 Use char because int might match the return type of a GCC 6101 Use char because int might match the return type of a GCC
6406 builtin and then its argument prototype would still apply. */ 6102 builtin and then its argument prototype would still apply. */
6414return remove (); 6110return remove ();
6415 ; 6111 ;
6416 return 0; 6112 return 0;
6417} 6113}
6418_ACEOF 6114_ACEOF
6419rm -f conftest.$ac_objext conftest$ac_exeext 6115if ac_fn_cxx_try_link "$LINENO"; then :
6420if { (ac_try="$ac_link"
6421case "(($ac_try" in
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6424esac
6425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_link") 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_cxx_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest$ac_exeext &&
6436 $as_test_x conftest$ac_exeext; then
6437 ac_cv_lib_posix_remove=yes 6116 ac_cv_lib_posix_remove=yes
6438else 6117else
6439 echo "$as_me: failed program was:" >&5
6440sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 ac_cv_lib_posix_remove=no 6118 ac_cv_lib_posix_remove=no
6443fi 6119fi
6444
6445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6120rm -f core conftest.err conftest.$ac_objext \
6446 conftest$ac_exeext conftest.$ac_ext 6121 conftest$ac_exeext conftest.$ac_ext
6447LIBS=$ac_check_lib_save_LIBS 6122LIBS=$ac_check_lib_save_LIBS
6448fi 6123fi
6449{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 6124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6450echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 6125$as_echo "$ac_cv_lib_posix_remove" >&6; }
6451if test $ac_cv_lib_posix_remove = yes; then 6126if test "x$ac_cv_lib_posix_remove" = x""yes; then :
6452 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 6127 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6453fi 6128fi
6454 6129
6455 fi 6130 fi
6456 6131
6457 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6132 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6458 { echo "$as_me:$LINENO: checking for shmat" >&5 6133 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6459echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } 6134if test "x$ac_cv_func_shmat" = x""yes; then :
6460if test "${ac_cv_func_shmat+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
6463 cat >conftest.$ac_ext <<_ACEOF
6464/* confdefs.h. */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h. */
6469/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6471#define shmat innocuous_shmat
6472 6135
6473/* System header to define __stub macros and hopefully few prototypes,
6474 which can conflict with char shmat (); below.
6475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6476 <limits.h> exists even on freestanding compilers. */
6477
6478#ifdef __STDC__
6479# include <limits.h>
6480#else
6481# include <assert.h>
6482#endif
6483
6484#undef shmat
6485
6486/* Override any GCC internal prototype to avoid an error.
6487 Use char because int might match the return type of a GCC
6488 builtin and then its argument prototype would still apply. */
6489#ifdef __cplusplus
6490extern "C"
6491#endif
6492char shmat ();
6493/* The GNU C library defines this for functions which it implements
6494 to always fail with ENOSYS. Some functions are actually named
6495 something starting with __ and the normal name is an alias. */
6496#if defined __stub_shmat || defined __stub___shmat
6497choke me
6498#endif
6499
6500int
6501main ()
6502{
6503return shmat ();
6504 ;
6505 return 0;
6506}
6507_ACEOF
6508rm -f conftest.$ac_objext conftest$ac_exeext
6509if { (ac_try="$ac_link"
6510case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513esac
6514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_link") 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } && {
6522 test -z "$ac_cxx_werror_flag" ||
6523 test ! -s conftest.err
6524 } && test -s conftest$ac_exeext &&
6525 $as_test_x conftest$ac_exeext; then
6526 ac_cv_func_shmat=yes
6527else
6528 echo "$as_me: failed program was:" >&5
6529sed 's/^/| /' conftest.$ac_ext >&5
6530
6531 ac_cv_func_shmat=no
6532fi 6136fi
6533
6534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6535 conftest$ac_exeext conftest.$ac_ext
6536fi
6537{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6538echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
6539 6137
6540 if test $ac_cv_func_shmat = no; then 6138 if test $ac_cv_func_shmat = no; then
6541 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6542echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 6140$as_echo_n "checking for shmat in -lipc... " >&6; }
6543if test "${ac_cv_lib_ipc_shmat+set}" = set; then 6141if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
6544 echo $ECHO_N "(cached) $ECHO_C" >&6 6142 $as_echo_n "(cached) " >&6
6545else 6143else
6546 ac_check_lib_save_LIBS=$LIBS 6144 ac_check_lib_save_LIBS=$LIBS
6547LIBS="-lipc $LIBS" 6145LIBS="-lipc $LIBS"
6548cat >conftest.$ac_ext <<_ACEOF
6549/* confdefs.h. */
6550_ACEOF
6551cat confdefs.h >>conftest.$ac_ext 6146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552cat >>conftest.$ac_ext <<_ACEOF
6553/* end confdefs.h. */ 6147/* end confdefs.h. */
6554 6148
6555/* Override any GCC internal prototype to avoid an error. 6149/* Override any GCC internal prototype to avoid an error.
6556 Use char because int might match the return type of a GCC 6150 Use char because int might match the return type of a GCC
6557 builtin and then its argument prototype would still apply. */ 6151 builtin and then its argument prototype would still apply. */
6565return shmat (); 6159return shmat ();
6566 ; 6160 ;
6567 return 0; 6161 return 0;
6568} 6162}
6569_ACEOF 6163_ACEOF
6570rm -f conftest.$ac_objext conftest$ac_exeext 6164if ac_fn_cxx_try_link "$LINENO"; then :
6571if { (ac_try="$ac_link"
6572case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6575esac
6576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_link") 2>conftest.er1
6578 ac_status=$?
6579 grep -v '^ *+' conftest.er1 >conftest.err
6580 rm -f conftest.er1
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } && {
6584 test -z "$ac_cxx_werror_flag" ||
6585 test ! -s conftest.err
6586 } && test -s conftest$ac_exeext &&
6587 $as_test_x conftest$ac_exeext; then
6588 ac_cv_lib_ipc_shmat=yes 6165 ac_cv_lib_ipc_shmat=yes
6589else 6166else
6590 echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_cv_lib_ipc_shmat=no 6167 ac_cv_lib_ipc_shmat=no
6594fi 6168fi
6595
6596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6169rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext 6170 conftest$ac_exeext conftest.$ac_ext
6598LIBS=$ac_check_lib_save_LIBS 6171LIBS=$ac_check_lib_save_LIBS
6599fi 6172fi
6600{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 6173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6601echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 6174$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6602if test $ac_cv_lib_ipc_shmat = yes; then 6175if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
6603 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6176 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6604fi 6177fi
6605 6178
6606 fi 6179 fi
6607 fi 6180 fi
6613 # check for ICE first), but we must link in the order -lSM -lICE or 6186 # check for ICE first), but we must link in the order -lSM -lICE or
6614 # we get undefined symbols. So assume we have SM if we have ICE. 6187 # we get undefined symbols. So assume we have SM if we have ICE.
6615 # These have to be linked with before -lX11, unlike the other 6188 # These have to be linked with before -lX11, unlike the other
6616 # libraries we check for below, so use a different variable. 6189 # libraries we check for below, so use a different variable.
6617 # John Interrante, Karl Berry 6190 # John Interrante, Karl Berry
6618 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6619echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 6192$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6620if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 6193if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
6621 echo $ECHO_N "(cached) $ECHO_C" >&6 6194 $as_echo_n "(cached) " >&6
6622else 6195else
6623 ac_check_lib_save_LIBS=$LIBS 6196 ac_check_lib_save_LIBS=$LIBS
6624LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6197LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6625cat >conftest.$ac_ext <<_ACEOF
6626/* confdefs.h. */
6627_ACEOF
6628cat confdefs.h >>conftest.$ac_ext 6198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629cat >>conftest.$ac_ext <<_ACEOF
6630/* end confdefs.h. */ 6199/* end confdefs.h. */
6631 6200
6632/* Override any GCC internal prototype to avoid an error. 6201/* Override any GCC internal prototype to avoid an error.
6633 Use char because int might match the return type of a GCC 6202 Use char because int might match the return type of a GCC
6634 builtin and then its argument prototype would still apply. */ 6203 builtin and then its argument prototype would still apply. */
6642return IceConnectionNumber (); 6211return IceConnectionNumber ();
6643 ; 6212 ;
6644 return 0; 6213 return 0;
6645} 6214}
6646_ACEOF 6215_ACEOF
6647rm -f conftest.$ac_objext conftest$ac_exeext 6216if ac_fn_cxx_try_link "$LINENO"; then :
6648if { (ac_try="$ac_link" 6217 ac_cv_lib_ICE_IceConnectionNumber=yes
6649case "(($ac_try" in 6218else
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6219 ac_cv_lib_ICE_IceConnectionNumber=no
6651 *) ac_try_echo=$ac_try;; 6220fi
6221rm -f core conftest.err conftest.$ac_objext \
6222 conftest$ac_exeext conftest.$ac_ext
6223LIBS=$ac_check_lib_save_LIBS
6224fi
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6226$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6227if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
6228 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6229fi
6230
6231 LDFLAGS=$ac_save_LDFLAGS
6232
6233fi
6234
6235
6236image_lib=none
6237
6238PIXBUF_CFLAGS=
6239PIXBUF_LIBS=
6240
6241if test x$support_pixbuf = xyes; then
6242 support_pixbuf=no
6243 # Extract the first word of "pkg-config", so it can be a program name with args.
6244set dummy pkg-config; ac_word=$2
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246$as_echo_n "checking for $ac_word... " >&6; }
6247if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
6249else
6250 case $PKG_CONFIG in
6251 [\\/]* | ?:[\\/]*)
6252 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6253 ;;
6254 *)
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266done
6267 done
6268IFS=$as_save_IFS
6269
6270 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6271 ;;
6652esac 6272esac
6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_link") 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && {
6661 test -z "$ac_cxx_werror_flag" ||
6662 test ! -s conftest.err
6663 } && test -s conftest$ac_exeext &&
6664 $as_test_x conftest$ac_exeext; then
6665 ac_cv_lib_ICE_IceConnectionNumber=yes
6666else
6667 echo "$as_me: failed program was:" >&5
6668sed 's/^/| /' conftest.$ac_ext >&5
6669
6670 ac_cv_lib_ICE_IceConnectionNumber=no
6671fi 6273fi
6672 6274PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6275if test -n "$PKG_CONFIG"; then
6674 conftest$ac_exeext conftest.$ac_ext 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6675LIBS=$ac_check_lib_save_LIBS 6277$as_echo "$PKG_CONFIG" >&6; }
6278else
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280$as_echo "no" >&6; }
6676fi 6281fi
6677{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6678echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6679if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6680 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6681fi
6682 6282
6683 LDFLAGS=$ac_save_LDFLAGS
6684 6283
6685fi 6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5
6285$as_echo_n "checking for gdk-pixbuf... " >&6; }
6286 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
6287 PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`"
6288 PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`"
6289 support_pixbuf=yes
6290 fi
6686 6291
6687
6688
6689if test x$support_xpm = xyes; then 6292 if test x$support_pixbuf = xyes; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6294$as_echo "ok" >&6; }
6295 image_lib=gdk-pixbuf
6296 support_afterimage=no
6690 6297
6298$as_echo "#define HAVE_PIXBUF 1" >>confdefs.h
6691 6299
6692 6300
6693# Initialize some more variables set by options. 6301$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6694# The variables have the same names as the options, with
6695# dashes changed to underlines.
6696 6302
6697# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6698# paths, otherwise set no_xpm=yes.
6699# Uses ac_ vars as temps to allow command line to override cache and checks.
6700{ echo "$as_me:$LINENO: checking for libXpm" >&5
6701echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; }
6702
6703
6704# Check whether --with-xpm_includes was given.
6705if test "${with_xpm_includes+set}" = set; then
6706 withval=$with_xpm_includes; xpm_includes="$withval"
6707else
6708 xpm_includes=NO
6709fi
6710
6711
6712# Check whether --with-xpm_library was given.
6713if test "${with_xpm_library+set}" = set; then
6714 withval=$with_xpm_library; xpm_libraries="$withval"
6715else
6716 xpm_libraries=NO
6717fi
6718
6719
6720# --without-xpm overrides everything else, but does not touch the cache.
6721
6722# Check whether --with-xpm was given.
6723if test "${with_xpm+set}" = set; then
6724 withval=$with_xpm;
6725fi
6726
6727if test "$with_xpm" = no; then
6728 have_xpm=disabled
6729else
6730 if test "${ac_cv_have_xpm+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732else
6733
6734 vt_xpm_include_X11=no
6735 if test -n "$xpm_includes"; then
6736 vt_xpm_includes=$xpm_includes
6737 else 6303 else
6738 vt_xpm_includes=NO 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305$as_echo "no" >&6; }
6739 fi 6306 fi
6740 if test -n "$xpm_libraries"; then 6307fi
6741 vt_xpm_libraries=$xpm_libraries 6308
6309
6310
6311
6312AFTERIMAGE_CFLAGS=
6313AFTERIMAGE_LIBS=
6314AFTERIMAGE_VERSION=
6315
6316if test x$support_afterimage = xyes; then
6317 support_afterimage=no
6318
6319 if test "x$afterimage_config" = "x" ; then
6320 # Extract the first word of "afterimage-config", so it can be a program name with args.
6321set dummy afterimage-config; ac_word=$2
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323$as_echo_n "checking for $ac_word... " >&6; }
6324if test "${ac_cv_path_afterimage_config+set}" = set; then :
6325 $as_echo_n "(cached) " >&6
6742 else 6326else
6743 vt_xpm_libraries=NO 6327 case $afterimage_config in
6328 [\\/]* | ?:[\\/]*)
6329 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6330 ;;
6331 *)
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6744 fi 6342 fi
6343done
6344 done
6345IFS=$as_save_IFS
6745 6346
6746 if test "$vt_xpm_includes" = NO; then 6347 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6747 # Guess where to find xpm.h 6348 ;;
6748
6749ac_save_CPPFLAGS="$CPPFLAGS"
6750CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6751
6752 # First, try using that file with no special directory specified.
6753cat >conftest.$ac_ext <<_ACEOF
6754/* confdefs.h. */
6755_ACEOF
6756cat confdefs.h >>conftest.$ac_ext
6757cat >>conftest.$ac_ext <<_ACEOF
6758/* end confdefs.h. */
6759#include <X11/xpm.h>
6760_ACEOF
6761if { (ac_try="$ac_cpp conftest.$ac_ext"
6762case "(($ac_try" in
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6765esac 6349esac
6766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } >/dev/null && {
6774 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6775 test ! -s conftest.err
6776 }; then
6777 # We can compile using X headers with no special include directory.
6778vt_xpm_includes=
6779vt_xpm_include_X11=yes
6780else
6781 echo "$as_me: failed program was:" >&5
6782sed 's/^/| /' conftest.$ac_ext >&5
6783
6784 CPPFLAGS="$ac_save_CPPFLAGS"
6785# Look for the header file in a standard set of common directories.
6786 for ac_dir in \
6787 /usr/X11/include \
6788 /usr/X11R6/include \
6789 /usr/X11R5/include \
6790 /usr/X11R4/include \
6791 \
6792 /usr/include/X11 \
6793 /usr/include/X11R6 \
6794 /usr/include/X11R5 \
6795 /usr/include/X11R4 \
6796 \
6797 /usr/local/X11/include \
6798 /usr/local/X11R6/include \
6799 /usr/local/X11R5/include \
6800 /usr/local/X11R4/include \
6801 \
6802 /usr/local/include/X11 \
6803 /usr/local/include/X11R6 \
6804 /usr/local/include/X11R5 \
6805 /usr/local/include/X11R4 \
6806 \
6807 /usr/X386/include \
6808 /usr/x386/include \
6809 /usr/XFree86/include/X11 \
6810 \
6811 /usr/include \
6812 /usr/local/include \
6813 /usr/unsupported/include \
6814 /usr/athena/include \
6815 /usr/local/x11r5/include \
6816 /usr/lpp/Xamples/include \
6817 \
6818 /usr/openwin/include \
6819 /usr/openwin/share/include \
6820 ; \
6821 do
6822 if test -r "$ac_dir/X11/xpm.h"; then
6823 vt_xpm_includes="$ac_dir"
6824 vt_xpm_include_X11=yes
6825 break
6826 else
6827 if test -r "$ac_dir/xpm.h"; then
6828 vt_xpm_includes=$ac_dir
6829 break
6830 fi
6831 fi
6832 done
6833fi 6350fi
6834 6351afterimage_config=$ac_cv_path_afterimage_config
6835rm -f conftest.err conftest.$ac_ext 6352if test -n "$afterimage_config"; then
6836fi 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afterimage_config" >&5
6837 6354$as_echo "$afterimage_config" >&6; }
6838if test "$vt_xpm_libraries" = NO; then
6839 # Check for the libraries.
6840
6841 # See if we find them without any special options.
6842 # Don't add to $LIBS permanently.
6843 ac_save_LIBS="$LIBS"
6844 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6845cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h. */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h. */
6851
6852int
6853main ()
6854{
6855XpmReadFileToPixmap()
6856 ;
6857 return 0;
6858}
6859_ACEOF
6860rm -f conftest.$ac_objext conftest$ac_exeext
6861if { (ac_try="$ac_link"
6862case "(($ac_try" in
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6865esac
6866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_link") 2>conftest.er1
6868 ac_status=$?
6869 grep -v '^ *+' conftest.er1 >conftest.err
6870 rm -f conftest.er1
6871 cat conftest.err >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } && {
6874 test -z "$ac_cxx_werror_flag" ||
6875 test ! -s conftest.err
6876 } && test -s conftest$ac_exeext &&
6877 $as_test_x conftest$ac_exeext; then
6878 LIBS="$ac_save_LIBS"
6879# We can link libXpm with no special library path.
6880vt_xpm_libraries=
6881else
6882 echo "$as_me: failed program was:" >&5
6883sed 's/^/| /' conftest.$ac_ext >&5
6884
6885 LIBS="$ac_save_LIBS"
6886# First see if replacing the include by lib works.
6887for ac_dir in \
6888 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6889 /usr/X11/lib \
6890 /usr/X11R6/lib \
6891 /usr/X11R5/lib \
6892 /usr/X11R4/lib \
6893 \
6894 /usr/lib/X11 \
6895 /usr/lib/X11R6 \
6896 /usr/lib/X11R5 \
6897 /usr/lib/X11R4 \
6898 \
6899 /usr/local/X11/lib \
6900 /usr/local/X11R6/lib \
6901 /usr/local/X11R5/lib \
6902 /usr/local/X11R4/lib \
6903 \
6904 /usr/local/lib/X11 \
6905 /usr/local/lib/X11R6 \
6906 /usr/local/lib/X11R5 \
6907 /usr/local/lib/X11R4 \
6908 \
6909 /usr/X386/lib \
6910 /usr/x386/lib \
6911 /usr/XFree86/lib/X11 \
6912 \
6913 /usr/lib \
6914 /usr/local/lib \
6915 /usr/unsupported/lib \
6916 /usr/athena/lib \
6917 /usr/local/x11r5/lib \
6918 /usr/lpp/Xamples/lib \
6919 \
6920 /usr/openwin/lib \
6921 /usr/openwin/share/lib \
6922 ; \
6923do
6924 for ac_extension in a so sl; do
6925 if test -r $ac_dir/libXpm.$ac_extension; then
6926 vt_xpm_libraries=$ac_dir
6927 break 2
6928 fi
6929 done
6930done
6931fi
6932
6933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6934 conftest$ac_exeext conftest.$ac_ext
6935fi
6936
6937
6938 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6939 ac_cv_have_xpm="have_xpm=no"
6940 else 6355else
6941 ac_cv_have_xpm="have_xpm=yes \ 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ 6357$as_echo "no" >&6; }
6943 vt_xpm_include_X11=$vt_xpm_include_X11"
6944 fi
6945fi 6358fi
6946 eval "$ac_cv_have_xpm"
6947fi
6948 6359
6949if test "$have_xpm" != yes; then
6950 { echo "$as_me:$LINENO: result: $have_xpm" >&5
6951echo "${ECHO_T}$have_xpm" >&6; }
6952 no_xpm=yes
6953else
6954 if test "$xpm_includes" != NO; then
6955 if test "$xpm_includes" = "$vt_xpm_includes"; then
6956 if test -r "$xpm_includes/X11/xpm.h"; then
6957 vt_xpm_include_X11=yes
6958 fi
6959 else
6960 vt_xpm_include_X11=no
6961 if test -z "$xpm_includes"; then
6962 cat >conftest.$ac_ext <<_ACEOF
6963/* confdefs.h. */
6964_ACEOF
6965cat confdefs.h >>conftest.$ac_ext
6966cat >>conftest.$ac_ext <<_ACEOF
6967/* end confdefs.h. */
6968#include <X11/xpm.h>
6969_ACEOF
6970if { (ac_try="$ac_cpp conftest.$ac_ext"
6971case "(($ac_try" in
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6974esac
6975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6977 ac_status=$?
6978 grep -v '^ *+' conftest.er1 >conftest.err
6979 rm -f conftest.er1
6980 cat conftest.err >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } >/dev/null && {
6983 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6984 test ! -s conftest.err
6985 }; then
6986 vt_xpm_include_X11=yes
6987else
6988 echo "$as_me: failed program was:" >&5
6989sed 's/^/| /' conftest.$ac_ext >&5
6990 6360
6991 6361 fi
6992fi 6362 if test "x$afterimage_config" != "xno" ; then
6993 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5
6994rm -f conftest.err conftest.$ac_ext 6364$as_echo_n "checking for libAfterImage version >= 1.15... " >&6; }
6995 else 6365 xAFTERIMAGE_VERSION=`$afterimage_config --version`
6996 if test -r "$xpm_includes/X11/xpm.h"; then 6366 if test -n "$xAFTERIMAGE_VERSION" ; then
6997 vt_xpm_include_X11=yes 6367 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6368 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6369 if test "x$xAFTERIMAGE_LIBS" != "x"; then
6370 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
6371 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
6372 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6373 support_afterimage=yes
6374 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6375 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6376 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6998 fi 6377 fi
6999 fi 6378 fi
7000 fi 6379 fi
7001 vt_xpm_includes=$xpm_includes 6380 if test "x$support_afterimage" = "xyes"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5
6382$as_echo "$AFTERIMAGE_LIBS" >&6; }
6383 image_lib=libafterimage
6384
6385$as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h
6386
6387
6388$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6389
6390 else
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392$as_echo "no" >&6; }
7002 fi 6393 fi
7003 if test "x$xpm_libraries" != xNO; then
7004 vt_xpm_libraries=$xpm_libraries
7005 fi 6394 fi
7006 # Update the cache value to reflect the command line values.
7007 ac_cv_have_xpm="have_xpm=yes \
7008 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7009 vt_xpm_include_X11=$vt_xpm_include_X11"
7010 eval "$ac_cv_have_xpm"
7011 { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
7012echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; }
7013 if test -n "$vt_xpm_includes"; then
7014 XPM_CPPFLAGS="-DHAVE_LIBXPM"
7015 fi
7016 if test -n "$vt_xpm_includes"; then
7017 XPM_CFLAGS="-I$vt_xpm_includes"
7018 fi
7019 XPM_LIBS="-lXpm"
7020 if test -n "$vt_xpm_libraries"; then
7021 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
7022 fi
7023 if test "x$vt_xpm_include_X11" = xyes; then
7024
7025cat >>confdefs.h <<\_ACEOF
7026#define XPM_INC_X11 1
7027_ACEOF
7028
7029 fi
7030fi 6395fi
7031
7032
7033
7034
7035
7036 if test x$no_xpm = xyes; then
7037 support_xpm=needsmanualspecification
7038 fi
7039fi
7040
7041{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7042echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7043if test "${ac_cv_header_sys_wait_h+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046 cat >conftest.$ac_ext <<_ACEOF
7047/* confdefs.h. */
7048_ACEOF
7049cat confdefs.h >>conftest.$ac_ext
7050cat >>conftest.$ac_ext <<_ACEOF
7051/* end confdefs.h. */
7052#include <sys/types.h>
7053#include <sys/wait.h>
7054#ifndef WEXITSTATUS
7055# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7056#endif
7057#ifndef WIFEXITED
7058# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7059#endif
7060
7061int
7062main ()
7063{
7064 int s;
7065 wait (&s);
7066 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7067 ;
7068 return 0;
7069}
7070_ACEOF
7071rm -f conftest.$ac_objext
7072if { (ac_try="$ac_compile"
7073case "(($ac_try" in
7074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075 *) ac_try_echo=$ac_try;;
7076esac
7077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078 (eval "$ac_compile") 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && {
7085 test -z "$ac_cxx_werror_flag" ||
7086 test ! -s conftest.err
7087 } && test -s conftest.$ac_objext; then
7088 ac_cv_header_sys_wait_h=yes
7089else
7090 echo "$as_me: failed program was:" >&5
7091sed 's/^/| /' conftest.$ac_ext >&5
7092
7093 ac_cv_header_sys_wait_h=no
7094fi
7095
7096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097fi
7098{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7099echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7100if test $ac_cv_header_sys_wait_h = yes; then
7101
7102cat >>confdefs.h <<\_ACEOF
7103#define HAVE_SYS_WAIT_H 1
7104_ACEOF
7105
7106fi
7107
7108{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7109echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7110if test "${ac_cv_header_stdc+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113 cat >conftest.$ac_ext <<_ACEOF
7114/* confdefs.h. */
7115_ACEOF
7116cat confdefs.h >>conftest.$ac_ext
7117cat >>conftest.$ac_ext <<_ACEOF
7118/* end confdefs.h. */
7119#include <stdlib.h>
7120#include <stdarg.h>
7121#include <string.h>
7122#include <float.h>
7123
7124int
7125main ()
7126{
7127
7128 ;
7129 return 0;
7130}
7131_ACEOF
7132rm -f conftest.$ac_objext
7133if { (ac_try="$ac_compile"
7134case "(($ac_try" in
7135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136 *) ac_try_echo=$ac_try;;
7137esac
7138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7139 (eval "$ac_compile") 2>conftest.er1
7140 ac_status=$?
7141 grep -v '^ *+' conftest.er1 >conftest.err
7142 rm -f conftest.er1
7143 cat conftest.err >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } && {
7146 test -z "$ac_cxx_werror_flag" ||
7147 test ! -s conftest.err
7148 } && test -s conftest.$ac_objext; then
7149 ac_cv_header_stdc=yes
7150else
7151 echo "$as_me: failed program was:" >&5
7152sed 's/^/| /' conftest.$ac_ext >&5
7153
7154 ac_cv_header_stdc=no
7155fi
7156
7157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158
7159if test $ac_cv_header_stdc = yes; then
7160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7161 cat >conftest.$ac_ext <<_ACEOF
7162/* confdefs.h. */
7163_ACEOF
7164cat confdefs.h >>conftest.$ac_ext
7165cat >>conftest.$ac_ext <<_ACEOF
7166/* end confdefs.h. */
7167#include <string.h>
7168
7169_ACEOF
7170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7171 $EGREP "memchr" >/dev/null 2>&1; then
7172 :
7173else
7174 ac_cv_header_stdc=no
7175fi
7176rm -f conftest*
7177
7178fi
7179
7180if test $ac_cv_header_stdc = yes; then
7181 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7182 cat >conftest.$ac_ext <<_ACEOF
7183/* confdefs.h. */
7184_ACEOF
7185cat confdefs.h >>conftest.$ac_ext
7186cat >>conftest.$ac_ext <<_ACEOF
7187/* end confdefs.h. */
7188#include <stdlib.h>
7189
7190_ACEOF
7191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7192 $EGREP "free" >/dev/null 2>&1; then
7193 :
7194else
7195 ac_cv_header_stdc=no
7196fi
7197rm -f conftest*
7198
7199fi
7200
7201if test $ac_cv_header_stdc = yes; then
7202 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7203 if test "$cross_compiling" = yes; then
7204 :
7205else
7206 cat >conftest.$ac_ext <<_ACEOF
7207/* confdefs.h. */
7208_ACEOF
7209cat confdefs.h >>conftest.$ac_ext
7210cat >>conftest.$ac_ext <<_ACEOF
7211/* end confdefs.h. */
7212#include <ctype.h>
7213#include <stdlib.h>
7214#if ((' ' & 0x0FF) == 0x020)
7215# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7216# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7217#else
7218# define ISLOWER(c) \
7219 (('a' <= (c) && (c) <= 'i') \
7220 || ('j' <= (c) && (c) <= 'r') \
7221 || ('s' <= (c) && (c) <= 'z'))
7222# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7223#endif
7224
7225#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7226int
7227main ()
7228{
7229 int i;
7230 for (i = 0; i < 256; i++)
7231 if (XOR (islower (i), ISLOWER (i))
7232 || toupper (i) != TOUPPER (i))
7233 return 2;
7234 return 0;
7235}
7236_ACEOF
7237rm -f conftest$ac_exeext
7238if { (ac_try="$ac_link"
7239case "(($ac_try" in
7240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7241 *) ac_try_echo=$ac_try;;
7242esac
7243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7244 (eval "$ac_link") 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7248 { (case "(($ac_try" in
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7251esac
7252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253 (eval "$ac_try") 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 :
7258else
7259 echo "$as_me: program exited with status $ac_status" >&5
7260echo "$as_me: failed program was:" >&5
7261sed 's/^/| /' conftest.$ac_ext >&5
7262
7263( exit $ac_status )
7264ac_cv_header_stdc=no
7265fi
7266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7267fi
7268
7269
7270fi
7271fi
7272{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7273echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7274if test $ac_cv_header_stdc = yes; then
7275
7276cat >>confdefs.h <<\_ACEOF
7277#define STDC_HEADERS 1
7278_ACEOF
7279
7280fi
7281
7282# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7293 inttypes.h stdint.h unistd.h
7294do
7295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7296{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7300else
7301 cat >conftest.$ac_ext <<_ACEOF
7302/* confdefs.h. */
7303_ACEOF
7304cat confdefs.h >>conftest.$ac_ext
7305cat >>conftest.$ac_ext <<_ACEOF
7306/* end confdefs.h. */
7307$ac_includes_default
7308
7309#include <$ac_header>
7310_ACEOF
7311rm -f conftest.$ac_objext
7312if { (ac_try="$ac_compile"
7313case "(($ac_try" in
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7316esac
7317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_cxx_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 eval "$as_ac_Header=yes"
7329else
7330 echo "$as_me: failed program was:" >&5
7331sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 eval "$as_ac_Header=no"
7334fi
7335
7336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337fi
7338ac_res=`eval echo '${'$as_ac_Header'}'`
7339 { echo "$as_me:$LINENO: result: $ac_res" >&5
7340echo "${ECHO_T}$ac_res" >&6; }
7341if test `eval echo '${'$as_ac_Header'}'` = yes; then
7342 cat >>confdefs.h <<_ACEOF
7343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7344_ACEOF
7345
7346fi
7347
7348done
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364 6396
7365 6397
7366 6398
7367 6399
7368for ac_header in \ 6400for ac_header in \
7369 assert.h \
7370 fcntl.h \
7371 stdarg.h \
7372 stdlib.h \
7373 string.h \
7374 termios.h \
7375 unistd.h \
7376 sys/byteorder.h \ 6401 sys/byteorder.h \
7377 sys/ioctl.h \ 6402 sys/ioctl.h \
7378 sys/select.h \
7379 sys/sockio.h \ 6403 sys/sockio.h \
7380 sys/strredir.h \ 6404 sys/strredir.h \
7381 sys/time.h \
7382 stdint.h \ 6405 stdint.h \
7383 wchar.h \ 6406 wchar.h \
7384 cwchar \ 6407 cwchar \
7385 clocale \
7386 6408
7387do 6409do :
7388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6411ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7390 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6412if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394fi
7395ac_res=`eval echo '${'$as_ac_Header'}'`
7396 { echo "$as_me:$LINENO: result: $ac_res" >&5
7397echo "${ECHO_T}$ac_res" >&6; }
7398else
7399 # Is the header compilable?
7400{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7402cat >conftest.$ac_ext <<_ACEOF
7403/* confdefs.h. */
7404_ACEOF
7405cat confdefs.h >>conftest.$ac_ext
7406cat >>conftest.$ac_ext <<_ACEOF
7407/* end confdefs.h. */
7408$ac_includes_default
7409#include <$ac_header>
7410_ACEOF
7411rm -f conftest.$ac_objext
7412if { (ac_try="$ac_compile"
7413case "(($ac_try" in
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7416esac
7417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_compile") 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_cxx_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.$ac_objext; then
7428 ac_header_compiler=yes
7429else
7430 echo "$as_me: failed program was:" >&5
7431sed 's/^/| /' conftest.$ac_ext >&5
7432
7433 ac_header_compiler=no
7434fi
7435
7436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7438echo "${ECHO_T}$ac_header_compiler" >&6; }
7439
7440# Is the header present?
7441{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7442echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7443cat >conftest.$ac_ext <<_ACEOF
7444/* confdefs.h. */
7445_ACEOF
7446cat confdefs.h >>conftest.$ac_ext
7447cat >>conftest.$ac_ext <<_ACEOF
7448/* end confdefs.h. */
7449#include <$ac_header>
7450_ACEOF
7451if { (ac_try="$ac_cpp conftest.$ac_ext"
7452case "(($ac_try" in
7453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454 *) ac_try_echo=$ac_try;;
7455esac
7456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7458 ac_status=$?
7459 grep -v '^ *+' conftest.er1 >conftest.err
7460 rm -f conftest.er1
7461 cat conftest.err >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } >/dev/null && {
7464 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7465 test ! -s conftest.err
7466 }; then
7467 ac_header_preproc=yes
7468else
7469 echo "$as_me: failed program was:" >&5
7470sed 's/^/| /' conftest.$ac_ext >&5
7471
7472 ac_header_preproc=no
7473fi
7474
7475rm -f conftest.err conftest.$ac_ext
7476{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7477echo "${ECHO_T}$ac_header_preproc" >&6; }
7478
7479# So? What about this header?
7480case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7481 yes:no: )
7482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7486 ac_header_preproc=yes
7487 ;;
7488 no:yes:* )
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7501
7502 ;;
7503esac
7504{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7508else
7509 eval "$as_ac_Header=\$ac_header_preproc"
7510fi
7511ac_res=`eval echo '${'$as_ac_Header'}'`
7512 { echo "$as_me:$LINENO: result: $ac_res" >&5
7513echo "${ECHO_T}$ac_res" >&6; }
7514
7515fi
7516if test `eval echo '${'$as_ac_Header'}'` = yes; then
7517 cat >>confdefs.h <<_ACEOF 6413 cat >>confdefs.h <<_ACEOF
7518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6414#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7519_ACEOF 6415_ACEOF
7520 6416
7521fi 6417fi
7522 6418
7523done 6419done
7524 6420
7525 6421
7526{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7527echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7528if test "${ac_cv_header_time+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530else
7531 cat >conftest.$ac_ext <<_ACEOF
7532/* confdefs.h. */
7533_ACEOF
7534cat confdefs.h >>conftest.$ac_ext
7535cat >>conftest.$ac_ext <<_ACEOF
7536/* end confdefs.h. */
7537#include <sys/types.h>
7538#include <sys/time.h>
7539#include <time.h>
7540
7541int
7542main ()
7543{
7544if ((struct tm *) 0)
7545return 0;
7546 ;
7547 return 0;
7548}
7549_ACEOF
7550rm -f conftest.$ac_objext
7551if { (ac_try="$ac_compile"
7552case "(($ac_try" in
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7555esac
7556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_compile") 2>conftest.er1
7558 ac_status=$?
7559 grep -v '^ *+' conftest.er1 >conftest.err
7560 rm -f conftest.er1
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } && {
7564 test -z "$ac_cxx_werror_flag" ||
7565 test ! -s conftest.err
7566 } && test -s conftest.$ac_objext; then
7567 ac_cv_header_time=yes
7568else
7569 echo "$as_me: failed program was:" >&5
7570sed 's/^/| /' conftest.$ac_ext >&5
7571
7572 ac_cv_header_time=no
7573fi
7574
7575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576fi
7577{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7578echo "${ECHO_T}$ac_cv_header_time" >&6; }
7579if test $ac_cv_header_time = yes; then
7580
7581cat >>confdefs.h <<\_ACEOF
7582#define TIME_WITH_SYS_TIME 1
7583_ACEOF
7584
7585fi
7586
7587
7588{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7589echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7590if test "${rxvt_cv_header_sysioctl+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592else
7593 cat >conftest.$ac_ext <<_ACEOF
7594/* confdefs.h. */
7595_ACEOF
7596cat confdefs.h >>conftest.$ac_ext
7597cat >>conftest.$ac_ext <<_ACEOF
7598/* end confdefs.h. */
7599#include <stdio.h>
7600#include <sys/ioctl.h>
7601#ifdef HAVE_TERMIOS_H
7602#include <termios.h>
7603#endif
7604int
7605main ()
7606{
7607int a = ECHO;
7608 ;
7609 return 0;
7610}
7611_ACEOF
7612rm -f conftest.$ac_objext
7613if { (ac_try="$ac_compile"
7614case "(($ac_try" in
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7617esac
7618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_compile") 2>conftest.er1
7620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } && {
7626 test -z "$ac_cxx_werror_flag" ||
7627 test ! -s conftest.err
7628 } && test -s conftest.$ac_objext; then
7629 rxvt_cv_header_sysioctl=yes
7630else
7631 echo "$as_me: failed program was:" >&5
7632sed 's/^/| /' conftest.$ac_ext >&5
7633
7634 rxvt_cv_header_sysioctl=no
7635fi
7636
7637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638fi
7639{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7640echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7641
7642if test -n "$GCC"; then
7643 LDARG="-Wl,"
7644else
7645 LDARG=""
7646fi
7647R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7648
7649ac_save_CFLAGS=$CFLAGS
7650ac_save_LIBS=$LIBS
7651CFLAGS="$CFLAGS $X_CFLAGS"
7652LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7653{ echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7654echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6; }
7655if test "${rxvt_cv_rpath+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657else
7658 if test "$cross_compiling" = yes; then
7659 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7660echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7661else
7662 cat >conftest.$ac_ext <<_ACEOF
7663/* confdefs.h. */
7664_ACEOF
7665cat confdefs.h >>conftest.$ac_ext
7666cat >>conftest.$ac_ext <<_ACEOF
7667/* end confdefs.h. */
7668#include <X11/Xlib.h>
7669#include <stdlib.h>
7670main()
7671{
7672 exit(0);
7673 (void) XOpenDisplay("foobar");
7674}
7675_ACEOF
7676rm -f conftest$ac_exeext
7677if { (ac_try="$ac_link"
7678case "(($ac_try" in
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7681esac
7682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_link") 2>&5
7684 ac_status=$?
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7687 { (case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690esac
7691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_try") 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 rxvt_cv_rpath=yes
7697else
7698 echo "$as_me: program exited with status $ac_status" >&5
7699echo "$as_me: failed program was:" >&5
7700sed 's/^/| /' conftest.$ac_ext >&5
7701
7702( exit $ac_status )
7703rxvt_cv_rpath=no
7704fi
7705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7706fi
7707
7708
7709fi
7710{ echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7711echo "${ECHO_T}$rxvt_cv_rpath" >&6; }
7712if test x$rxvt_cv_rpath != xyes; then
7713 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7714 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7715 { echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7716echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6; }
7717if test "${rxvt_cv_R+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719else
7720 if test "$cross_compiling" = yes; then
7721 rxvt_cv_R=no
7722else
7723 cat >conftest.$ac_ext <<_ACEOF
7724/* confdefs.h. */
7725_ACEOF
7726cat confdefs.h >>conftest.$ac_ext
7727cat >>conftest.$ac_ext <<_ACEOF
7728/* end confdefs.h. */
7729#include <X11/Xlib.h>
7730#include <stdlib.h>
7731main()
7732{
7733 exit(0);
7734 (void) XOpenDisplay("foobar");
7735}
7736_ACEOF
7737rm -f conftest$ac_exeext
7738if { (ac_try="$ac_link"
7739case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7742esac
7743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_link") 2>&5
7745 ac_status=$?
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7748 { (case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751esac
7752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_try") 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 rxvt_cv_R=yes
7758else
7759 echo "$as_me: program exited with status $ac_status" >&5
7760echo "$as_me: failed program was:" >&5
7761sed 's/^/| /' conftest.$ac_ext >&5
7762
7763( exit $ac_status )
7764rxvt_cv_R=no
7765fi
7766rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7767fi
7768
7769
7770fi
7771{ echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7772echo "${ECHO_T}$rxvt_cv_R" >&6; }
7773 if test x$rxvt_cv_R != xyes; then
7774 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7775 fi
7776fi
7777
7778{ echo "$as_me:$LINENO: checking for XPointer" >&5 6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPointer" >&5
7779echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } 6423$as_echo_n "checking for XPointer... " >&6; }
7780if test "${rxvt_cv_xpointer+set}" = set; then 6424if test "${rxvt_cv_xpointer+set}" = set; then :
7781 echo $ECHO_N "(cached) $ECHO_C" >&6 6425 $as_echo_n "(cached) " >&6
7782else 6426else
7783 cat >conftest.$ac_ext <<_ACEOF
7784/* confdefs.h. */
7785_ACEOF
7786cat confdefs.h >>conftest.$ac_ext 6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787cat >>conftest.$ac_ext <<_ACEOF
7788/* end confdefs.h. */ 6428/* end confdefs.h. */
7789#include <X11/Xlib.h> 6429#include <X11/Xlib.h>
7790int 6430int
7791main () 6431main ()
7792{ 6432{
7793XPointer dummy; 6433XPointer dummy;
7794 ; 6434 ;
7795 return 0; 6435 return 0;
7796} 6436}
7797_ACEOF 6437_ACEOF
7798rm -f conftest.$ac_objext 6438if ac_fn_cxx_try_compile "$LINENO"; then :
7799if { (ac_try="$ac_compile"
7800case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7803esac
7804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_compile") 2>conftest.er1
7806 ac_status=$?
7807 grep -v '^ *+' conftest.er1 >conftest.err
7808 rm -f conftest.er1
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } && {
7812 test -z "$ac_cxx_werror_flag" ||
7813 test ! -s conftest.err
7814 } && test -s conftest.$ac_objext; then
7815 rxvt_cv_xpointer=yes 6439 rxvt_cv_xpointer=yes
7816else 6440else
7817 echo "$as_me: failed program was:" >&5
7818sed 's/^/| /' conftest.$ac_ext >&5
7819
7820 rxvt_cv_xpointer=no 6441 rxvt_cv_xpointer=no
7821fi 6442fi
7822
7823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824fi 6444fi
7825{ echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xpointer" >&5
7826echo "${ECHO_T}$rxvt_cv_xpointer" >&6; } 6446$as_echo "$rxvt_cv_xpointer" >&6; }
7827if test x$rxvt_cv_xpointer = xyes; then 6447if test x$rxvt_cv_xpointer = xyes; then
7828 6448
7829cat >>confdefs.h <<\_ACEOF 6449$as_echo "#define HAVE_XPOINTER 1" >>confdefs.h
7830#define HAVE_XPOINTER 1
7831_ACEOF
7832 6450
7833fi 6451fi
7834LIBS=$ac_save_LIBS
7835CFLAGS=$ac_save_CFLAGS
7836 6452
7837{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
7838echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } 6454$as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
7839if test "${rxvt_xlib_illegal_access+set}" = set; then 6455if test "${rxvt_cv_xlib_illegal_access+set}" = set; then :
7840 echo $ECHO_N "(cached) $ECHO_C" >&6 6456 $as_echo_n "(cached) " >&6
7841else 6457else
7842 cat >conftest.$ac_ext <<_ACEOF
7843/* confdefs.h. */
7844_ACEOF
7845cat confdefs.h >>conftest.$ac_ext 6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846cat >>conftest.$ac_ext <<_ACEOF
7847/* end confdefs.h. */ 6459/* end confdefs.h. */
7848 6460
7849#define XLIB_ILLEGAL_ACCESS 6461#define XLIB_ILLEGAL_ACCESS
7850#include <X11/Xlib.h> 6462#include <X11/Xlib.h>
7851 6463
7858 6470
7859 ; 6471 ;
7860 return 0; 6472 return 0;
7861} 6473}
7862_ACEOF 6474_ACEOF
7863rm -f conftest.$ac_objext 6475if ac_fn_cxx_try_compile "$LINENO"; then :
7864if { (ac_try="$ac_compile"
7865case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7868esac
7869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_compile") 2>conftest.er1
7871 ac_status=$?
7872 grep -v '^ *+' conftest.er1 >conftest.err
7873 rm -f conftest.er1
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } && {
7877 test -z "$ac_cxx_werror_flag" ||
7878 test ! -s conftest.err
7879 } && test -s conftest.$ac_objext; then
7880 rxvt_xlib_illegal_access=yes 6476 rxvt_cv_xlib_illegal_access=yes
7881else 6477else
7882 echo "$as_me: failed program was:" >&5
7883sed 's/^/| /' conftest.$ac_ext >&5
7884
7885 rxvt_xlib_illegal_access=no 6478 rxvt_cv_xlib_illegal_access=no
7886 6479
7887fi 6480fi
7888
7889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890fi 6482fi
7891{ echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5 6483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
7892echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6; } 6484$as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
7893if test x$rxvt_xlib_illegal_access = xyes; then 6485if test x$rxvt_cv_xlib_illegal_access = xyes; then
7894 6486
7895cat >>confdefs.h <<\_ACEOF 6487$as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
7896#define XLIB_ILLEGAL_ACCESS 1
7897_ACEOF
7898 6488
7899fi 6489fi
7900 6490
7901{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 6491ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7902echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7903if test "${ac_cv_c_const+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905else
7906 cat >conftest.$ac_ext <<_ACEOF
7907/* confdefs.h. */
7908_ACEOF
7909cat confdefs.h >>conftest.$ac_ext
7910cat >>conftest.$ac_ext <<_ACEOF
7911/* end confdefs.h. */
7912
7913int
7914main ()
7915{
7916/* FIXME: Include the comments suggested by Paul. */
7917#ifndef __cplusplus
7918 /* Ultrix mips cc rejects this. */
7919 typedef int charset[2];
7920 const charset cs;
7921 /* SunOS 4.1.1 cc rejects this. */
7922 char const *const *pcpcc;
7923 char **ppc;
7924 /* NEC SVR4.0.2 mips cc rejects this. */
7925 struct point {int x, y;};
7926 static struct point const zero = {0,0};
7927 /* AIX XL C 1.02.0.0 rejects this.
7928 It does not let you subtract one const X* pointer from another in
7929 an arm of an if-expression whose if-part is not a constant
7930 expression */
7931 const char *g = "string";
7932 pcpcc = &g + (g ? g-g : 0);
7933 /* HPUX 7.0 cc rejects these. */
7934 ++pcpcc;
7935 ppc = (char**) pcpcc;
7936 pcpcc = (char const *const *) ppc;
7937 { /* SCO 3.2v4 cc rejects this. */
7938 char *t;
7939 char const *s = 0 ? (char *) 0 : (char const *) 0;
7940
7941 *t++ = 0;
7942 if (s) return 0;
7943 }
7944 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7945 int x[] = {25, 17};
7946 const int *foo = &x[0];
7947 ++foo;
7948 }
7949 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7950 typedef const int *iptr;
7951 iptr p = 0;
7952 ++p;
7953 }
7954 { /* AIX XL C 1.02.0.0 rejects this saying
7955 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7956 struct s { int j; const int *ap[3]; };
7957 struct s *b; b->j = 5;
7958 }
7959 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7960 const int foo = 10;
7961 if (!foo) return 0;
7962 }
7963 return !cs[0] && !zero.x;
7964#endif
7965
7966 ;
7967 return 0;
7968}
7969_ACEOF
7970rm -f conftest.$ac_objext
7971if { (ac_try="$ac_compile"
7972case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7975esac
7976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_compile") 2>conftest.er1
7978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_cxx_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest.$ac_objext; then
7987 ac_cv_c_const=yes
7988else
7989 echo "$as_me: failed program was:" >&5
7990sed 's/^/| /' conftest.$ac_ext >&5
7991
7992 ac_cv_c_const=no
7993fi
7994
7995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996fi
7997{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7998echo "${ECHO_T}$ac_cv_c_const" >&6; }
7999if test $ac_cv_c_const = no; then
8000
8001cat >>confdefs.h <<\_ACEOF
8002#define const
8003_ACEOF
8004
8005fi
8006
8007{ echo "$as_me:$LINENO: checking for inline" >&5
8008echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8009if test "${ac_cv_c_inline+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8011else
8012 ac_cv_c_inline=no
8013for ac_kw in inline __inline__ __inline; do
8014 cat >conftest.$ac_ext <<_ACEOF
8015/* confdefs.h. */
8016_ACEOF
8017cat confdefs.h >>conftest.$ac_ext
8018cat >>conftest.$ac_ext <<_ACEOF
8019/* end confdefs.h. */
8020#ifndef __cplusplus
8021typedef int foo_t;
8022static $ac_kw foo_t static_foo () {return 0; }
8023$ac_kw foo_t foo () {return 0; }
8024#endif
8025
8026_ACEOF
8027rm -f conftest.$ac_objext
8028if { (ac_try="$ac_compile"
8029case "(($ac_try" in
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8032esac
8033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_compile") 2>conftest.er1
8035 ac_status=$?
8036 grep -v '^ *+' conftest.er1 >conftest.err
8037 rm -f conftest.er1
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } && {
8041 test -z "$ac_cxx_werror_flag" ||
8042 test ! -s conftest.err
8043 } && test -s conftest.$ac_objext; then
8044 ac_cv_c_inline=$ac_kw
8045else
8046 echo "$as_me: failed program was:" >&5
8047sed 's/^/| /' conftest.$ac_ext >&5
8048
8049
8050fi
8051
8052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 test "$ac_cv_c_inline" != no && break
8054done
8055
8056fi
8057{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8058echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8059
8060
8061case $ac_cv_c_inline in
8062 inline | yes) ;;
8063 *)
8064 case $ac_cv_c_inline in
8065 no) ac_val=;;
8066 *) ac_val=$ac_cv_c_inline;;
8067 esac
8068 cat >>confdefs.h <<_ACEOF
8069#ifndef __cplusplus
8070#define inline $ac_val
8071#endif
8072_ACEOF
8073 ;;
8074esac
8075
8076
8077
8078{ echo "$as_me:$LINENO: checking for mode_t" >&5
8079echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8080if test "${ac_cv_type_mode_t+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8082else
8083 cat >conftest.$ac_ext <<_ACEOF
8084/* confdefs.h. */
8085_ACEOF
8086cat confdefs.h >>conftest.$ac_ext
8087cat >>conftest.$ac_ext <<_ACEOF
8088/* end confdefs.h. */
8089$ac_includes_default
8090typedef mode_t ac__type_new_;
8091int
8092main ()
8093{
8094if ((ac__type_new_ *) 0)
8095 return 0;
8096if (sizeof (ac__type_new_))
8097 return 0;
8098 ;
8099 return 0;
8100}
8101_ACEOF
8102rm -f conftest.$ac_objext
8103if { (ac_try="$ac_compile"
8104case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8107esac
8108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_compile") 2>conftest.er1
8110 ac_status=$?
8111 grep -v '^ *+' conftest.er1 >conftest.err
8112 rm -f conftest.er1
8113 cat conftest.err >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } && {
8116 test -z "$ac_cxx_werror_flag" ||
8117 test ! -s conftest.err
8118 } && test -s conftest.$ac_objext; then
8119 ac_cv_type_mode_t=yes
8120else
8121 echo "$as_me: failed program was:" >&5
8122sed 's/^/| /' conftest.$ac_ext >&5
8123
8124 ac_cv_type_mode_t=no
8125fi
8126
8127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8128fi
8129{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8130echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
8131if test $ac_cv_type_mode_t = yes; then 6492if test "x$ac_cv_type_mode_t" = x""yes; then :
8132 : 6493
8133else 6494else
8134 6495
8135cat >>confdefs.h <<_ACEOF 6496cat >>confdefs.h <<_ACEOF
8136#define mode_t int 6497#define mode_t int
8137_ACEOF 6498_ACEOF
8138 6499
8139fi 6500fi
8140 6501
8141{ echo "$as_me:$LINENO: checking for pid_t" >&5 6502ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8142echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
8143if test "${ac_cv_type_pid_t+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145else
8146 cat >conftest.$ac_ext <<_ACEOF
8147/* confdefs.h. */
8148_ACEOF
8149cat confdefs.h >>conftest.$ac_ext
8150cat >>conftest.$ac_ext <<_ACEOF
8151/* end confdefs.h. */
8152$ac_includes_default
8153typedef pid_t ac__type_new_;
8154int
8155main ()
8156{
8157if ((ac__type_new_ *) 0)
8158 return 0;
8159if (sizeof (ac__type_new_))
8160 return 0;
8161 ;
8162 return 0;
8163}
8164_ACEOF
8165rm -f conftest.$ac_objext
8166if { (ac_try="$ac_compile"
8167case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8170esac
8171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_compile") 2>conftest.er1
8173 ac_status=$?
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && {
8179 test -z "$ac_cxx_werror_flag" ||
8180 test ! -s conftest.err
8181 } && test -s conftest.$ac_objext; then
8182 ac_cv_type_pid_t=yes
8183else
8184 echo "$as_me: failed program was:" >&5
8185sed 's/^/| /' conftest.$ac_ext >&5
8186
8187 ac_cv_type_pid_t=no
8188fi
8189
8190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191fi
8192{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8193echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
8194if test $ac_cv_type_pid_t = yes; then 6503if test "x$ac_cv_type_pid_t" = x""yes; then :
8195 : 6504
8196else 6505else
8197 6506
8198cat >>confdefs.h <<_ACEOF 6507cat >>confdefs.h <<_ACEOF
8199#define pid_t int 6508#define pid_t int
8200_ACEOF 6509_ACEOF
8201 6510
8202fi 6511fi
8203 6512
8204{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8205echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } 6514$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8206if test "${ac_cv_type_uid_t+set}" = set; then 6515if test "${ac_cv_type_uid_t+set}" = set; then :
8207 echo $ECHO_N "(cached) $ECHO_C" >&6 6516 $as_echo_n "(cached) " >&6
8208else 6517else
8209 cat >conftest.$ac_ext <<_ACEOF
8210/* confdefs.h. */
8211_ACEOF
8212cat confdefs.h >>conftest.$ac_ext 6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213cat >>conftest.$ac_ext <<_ACEOF
8214/* end confdefs.h. */ 6519/* end confdefs.h. */
8215#include <sys/types.h> 6520#include <sys/types.h>
8216 6521
8217_ACEOF 6522_ACEOF
8218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8219 $EGREP "uid_t" >/dev/null 2>&1; then 6524 $EGREP "uid_t" >/dev/null 2>&1; then :
8220 ac_cv_type_uid_t=yes 6525 ac_cv_type_uid_t=yes
8221else 6526else
8222 ac_cv_type_uid_t=no 6527 ac_cv_type_uid_t=no
8223fi 6528fi
8224rm -f conftest* 6529rm -f conftest*
8225 6530
8226fi 6531fi
8227{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8228echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } 6533$as_echo "$ac_cv_type_uid_t" >&6; }
8229if test $ac_cv_type_uid_t = no; then 6534if test $ac_cv_type_uid_t = no; then
8230 6535
6536$as_echo "#define uid_t int" >>confdefs.h
6537
6538
6539$as_echo "#define gid_t int" >>confdefs.h
6540
6541fi
6542
6543ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6544case $ac_cv_c_int16_t in #(
6545 no|yes) ;; #(
6546 *)
6547
8231cat >>confdefs.h <<\_ACEOF 6548cat >>confdefs.h <<_ACEOF
8232#define uid_t int 6549#define int16_t $ac_cv_c_int16_t
8233_ACEOF 6550_ACEOF
8234 6551;;
8235
8236cat >>confdefs.h <<\_ACEOF
8237#define gid_t int
8238_ACEOF
8239
8240fi
8241
8242
8243{ echo "$as_me:$LINENO: checking for short" >&5
8244echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8245if test "${ac_cv_type_short+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8247else
8248 cat >conftest.$ac_ext <<_ACEOF
8249/* confdefs.h. */
8250_ACEOF
8251cat confdefs.h >>conftest.$ac_ext
8252cat >>conftest.$ac_ext <<_ACEOF
8253/* end confdefs.h. */
8254$ac_includes_default
8255typedef short ac__type_new_;
8256int
8257main ()
8258{
8259if ((ac__type_new_ *) 0)
8260 return 0;
8261if (sizeof (ac__type_new_))
8262 return 0;
8263 ;
8264 return 0;
8265}
8266_ACEOF
8267rm -f conftest.$ac_objext
8268if { (ac_try="$ac_compile"
8269case "(($ac_try" in
8270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271 *) ac_try_echo=$ac_try;;
8272esac 6552esac
8273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274 (eval "$ac_compile") 2>conftest.er1
8275 ac_status=$?
8276 grep -v '^ *+' conftest.er1 >conftest.err
8277 rm -f conftest.er1
8278 cat conftest.err >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } && {
8281 test -z "$ac_cxx_werror_flag" ||
8282 test ! -s conftest.err
8283 } && test -s conftest.$ac_objext; then
8284 ac_cv_type_short=yes
8285else
8286 echo "$as_me: failed program was:" >&5
8287sed 's/^/| /' conftest.$ac_ext >&5
8288 6553
8289 ac_cv_type_short=no 6554ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
8290fi 6555case $ac_cv_c_uint16_t in #(
6556 no|yes) ;; #(
6557 *)
8291 6558
8292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293fi
8294{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8295echo "${ECHO_T}$ac_cv_type_short" >&6; }
8296 6559
8297# The cast to long int works around a bug in the HP C Compiler
8298# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8299# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8300# This bug is HP SR number 8606223364.
8301{ echo "$as_me:$LINENO: checking size of short" >&5
8302echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8303if test "${ac_cv_sizeof_short+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305else
8306 if test "$cross_compiling" = yes; then
8307 # Depending upon the size, compute the lo and hi bounds.
8308cat >conftest.$ac_ext <<_ACEOF
8309/* confdefs.h. */
8310_ACEOF
8311cat confdefs.h >>conftest.$ac_ext
8312cat >>conftest.$ac_ext <<_ACEOF 6560cat >>confdefs.h <<_ACEOF
8313/* end confdefs.h. */ 6561#define uint16_t $ac_cv_c_uint16_t
8314$ac_includes_default
8315 typedef short ac__type_sizeof_;
8316int
8317main ()
8318{
8319static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8320test_array [0] = 0
8321
8322 ;
8323 return 0;
8324}
8325_ACEOF 6562_ACEOF
8326rm -f conftest.$ac_objext 6563;;
8327if { (ac_try="$ac_compile" 6564 esac
8328case "(($ac_try" in 6565
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6566ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
8330 *) ac_try_echo=$ac_try;; 6567case $ac_cv_c_int32_t in #(
6568 no|yes) ;; #(
6569 *)
6570
6571cat >>confdefs.h <<_ACEOF
6572#define int32_t $ac_cv_c_int32_t
6573_ACEOF
6574;;
8331esac 6575esac
8332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_compile") 2>conftest.er1
8334 ac_status=$?
8335 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -f conftest.er1
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } && {
8340 test -z "$ac_cxx_werror_flag" ||
8341 test ! -s conftest.err
8342 } && test -s conftest.$ac_objext; then
8343 ac_lo=0 ac_mid=0
8344 while :; do
8345 cat >conftest.$ac_ext <<_ACEOF
8346/* confdefs.h. */
8347_ACEOF
8348cat confdefs.h >>conftest.$ac_ext
8349cat >>conftest.$ac_ext <<_ACEOF
8350/* end confdefs.h. */
8351$ac_includes_default
8352 typedef short ac__type_sizeof_;
8353int
8354main ()
8355{
8356static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8357test_array [0] = 0
8358 6576
8359 ; 6577ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
8360 return 0; 6578case $ac_cv_c_uint32_t in #(
8361} 6579 no|yes) ;; #(
8362_ACEOF 6580 *)
8363rm -f conftest.$ac_objext
8364if { (ac_try="$ac_compile"
8365case "(($ac_try" in
8366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367 *) ac_try_echo=$ac_try;;
8368esac
8369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370 (eval "$ac_compile") 2>conftest.er1
8371 ac_status=$?
8372 grep -v '^ *+' conftest.er1 >conftest.err
8373 rm -f conftest.er1
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && {
8377 test -z "$ac_cxx_werror_flag" ||
8378 test ! -s conftest.err
8379 } && test -s conftest.$ac_objext; then
8380 ac_hi=$ac_mid; break
8381else
8382 echo "$as_me: failed program was:" >&5
8383sed 's/^/| /' conftest.$ac_ext >&5
8384 6581
8385 ac_lo=`expr $ac_mid + 1` 6582$as_echo "#define _UINT32_T 1" >>confdefs.h
8386 if test $ac_lo -le $ac_mid; then
8387 ac_lo= ac_hi=
8388 break
8389 fi
8390 ac_mid=`expr 2 '*' $ac_mid + 1`
8391fi
8392
8393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 done
8395else
8396 echo "$as_me: failed program was:" >&5
8397sed 's/^/| /' conftest.$ac_ext >&5
8398
8399 cat >conftest.$ac_ext <<_ACEOF
8400/* confdefs.h. */
8401_ACEOF
8402cat confdefs.h >>conftest.$ac_ext
8403cat >>conftest.$ac_ext <<_ACEOF
8404/* end confdefs.h. */
8405$ac_includes_default
8406 typedef short ac__type_sizeof_;
8407int
8408main ()
8409{
8410static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8411test_array [0] = 0
8412
8413 ;
8414 return 0;
8415}
8416_ACEOF
8417rm -f conftest.$ac_objext
8418if { (ac_try="$ac_compile"
8419case "(($ac_try" in
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8422esac
8423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_compile") 2>conftest.er1
8425 ac_status=$?
8426 grep -v '^ *+' conftest.er1 >conftest.err
8427 rm -f conftest.er1
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } && {
8431 test -z "$ac_cxx_werror_flag" ||
8432 test ! -s conftest.err
8433 } && test -s conftest.$ac_objext; then
8434 ac_hi=-1 ac_mid=-1
8435 while :; do
8436 cat >conftest.$ac_ext <<_ACEOF
8437/* confdefs.h. */
8438_ACEOF
8439cat confdefs.h >>conftest.$ac_ext
8440cat >>conftest.$ac_ext <<_ACEOF
8441/* end confdefs.h. */
8442$ac_includes_default
8443 typedef short ac__type_sizeof_;
8444int
8445main ()
8446{
8447static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8448test_array [0] = 0
8449
8450 ;
8451 return 0;
8452}
8453_ACEOF
8454rm -f conftest.$ac_objext
8455if { (ac_try="$ac_compile"
8456case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8459esac
8460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_compile") 2>conftest.er1
8462 ac_status=$?
8463 grep -v '^ *+' conftest.er1 >conftest.err
8464 rm -f conftest.er1
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } && {
8468 test -z "$ac_cxx_werror_flag" ||
8469 test ! -s conftest.err
8470 } && test -s conftest.$ac_objext; then
8471 ac_lo=$ac_mid; break
8472else
8473 echo "$as_me: failed program was:" >&5
8474sed 's/^/| /' conftest.$ac_ext >&5
8475
8476 ac_hi=`expr '(' $ac_mid ')' - 1`
8477 if test $ac_mid -le $ac_hi; then
8478 ac_lo= ac_hi=
8479 break
8480 fi
8481 ac_mid=`expr 2 '*' $ac_mid`
8482fi
8483
8484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485 done
8486else
8487 echo "$as_me: failed program was:" >&5
8488sed 's/^/| /' conftest.$ac_ext >&5
8489
8490 ac_lo= ac_hi=
8491fi
8492
8493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8494fi
8495
8496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497# Binary search between lo and hi bounds.
8498while test "x$ac_lo" != "x$ac_hi"; do
8499 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8500 cat >conftest.$ac_ext <<_ACEOF
8501/* confdefs.h. */
8502_ACEOF
8503cat confdefs.h >>conftest.$ac_ext
8504cat >>conftest.$ac_ext <<_ACEOF
8505/* end confdefs.h. */
8506$ac_includes_default
8507 typedef short ac__type_sizeof_;
8508int
8509main ()
8510{
8511static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8512test_array [0] = 0
8513
8514 ;
8515 return 0;
8516}
8517_ACEOF
8518rm -f conftest.$ac_objext
8519if { (ac_try="$ac_compile"
8520case "(($ac_try" in
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8523esac
8524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_compile") 2>conftest.er1
8526 ac_status=$?
8527 grep -v '^ *+' conftest.er1 >conftest.err
8528 rm -f conftest.er1
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && {
8532 test -z "$ac_cxx_werror_flag" ||
8533 test ! -s conftest.err
8534 } && test -s conftest.$ac_objext; then
8535 ac_hi=$ac_mid
8536else
8537 echo "$as_me: failed program was:" >&5
8538sed 's/^/| /' conftest.$ac_ext >&5
8539
8540 ac_lo=`expr '(' $ac_mid ')' + 1`
8541fi
8542
8543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544done
8545case $ac_lo in
8546?*) ac_cv_sizeof_short=$ac_lo;;
8547'') if test "$ac_cv_type_short" = yes; then
8548 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8549See \`config.log' for more details." >&5
8550echo "$as_me: error: cannot compute sizeof (short)
8551See \`config.log' for more details." >&2;}
8552 { (exit 77); exit 77; }; }
8553 else
8554 ac_cv_sizeof_short=0
8555 fi ;;
8556esac
8557else
8558 cat >conftest.$ac_ext <<_ACEOF
8559/* confdefs.h. */
8560_ACEOF
8561cat confdefs.h >>conftest.$ac_ext
8562cat >>conftest.$ac_ext <<_ACEOF
8563/* end confdefs.h. */
8564$ac_includes_default
8565 typedef short ac__type_sizeof_;
8566static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8567static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8568#include <stdio.h>
8569#include <stdlib.h>
8570int
8571main ()
8572{
8573
8574 FILE *f = fopen ("conftest.val", "w");
8575 if (! f)
8576 return 1;
8577 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8578 {
8579 long int i = longval ();
8580 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8581 return 1;
8582 fprintf (f, "%ld\n", i);
8583 }
8584 else
8585 {
8586 unsigned long int i = ulongval ();
8587 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8588 return 1;
8589 fprintf (f, "%lu\n", i);
8590 }
8591 return ferror (f) || fclose (f) != 0;
8592
8593 ;
8594 return 0;
8595}
8596_ACEOF
8597rm -f conftest$ac_exeext
8598if { (ac_try="$ac_link"
8599case "(($ac_try" in
8600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601 *) ac_try_echo=$ac_try;;
8602esac
8603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604 (eval "$ac_link") 2>&5
8605 ac_status=$?
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8608 { (case "(($ac_try" in
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8611esac
8612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613 (eval "$ac_try") 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_sizeof_short=`cat conftest.val`
8618else
8619 echo "$as_me: program exited with status $ac_status" >&5
8620echo "$as_me: failed program was:" >&5
8621sed 's/^/| /' conftest.$ac_ext >&5
8622
8623( exit $ac_status )
8624if test "$ac_cv_type_short" = yes; then
8625 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8626See \`config.log' for more details." >&5
8627echo "$as_me: error: cannot compute sizeof (short)
8628See \`config.log' for more details." >&2;}
8629 { (exit 77); exit 77; }; }
8630 else
8631 ac_cv_sizeof_short=0
8632 fi
8633fi
8634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8635fi
8636rm -f conftest.val
8637fi
8638{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8639echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8640
8641 6583
8642 6584
8643cat >>confdefs.h <<_ACEOF 6585cat >>confdefs.h <<_ACEOF
8644#define SIZEOF_SHORT $ac_cv_sizeof_short 6586#define uint32_t $ac_cv_c_uint32_t
8645_ACEOF 6587_ACEOF
8646 6588;;
8647
8648{ echo "$as_me:$LINENO: checking for int" >&5
8649echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8650if test "${ac_cv_type_int+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652else
8653 cat >conftest.$ac_ext <<_ACEOF
8654/* confdefs.h. */
8655_ACEOF
8656cat confdefs.h >>conftest.$ac_ext
8657cat >>conftest.$ac_ext <<_ACEOF
8658/* end confdefs.h. */
8659$ac_includes_default
8660typedef int ac__type_new_;
8661int
8662main ()
8663{
8664if ((ac__type_new_ *) 0)
8665 return 0;
8666if (sizeof (ac__type_new_))
8667 return 0;
8668 ;
8669 return 0;
8670}
8671_ACEOF
8672rm -f conftest.$ac_objext
8673if { (ac_try="$ac_compile"
8674case "(($ac_try" in
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8677esac 6589 esac
8678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679 (eval "$ac_compile") 2>conftest.er1
8680 ac_status=$?
8681 grep -v '^ *+' conftest.er1 >conftest.err
8682 rm -f conftest.er1
8683 cat conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } && {
8686 test -z "$ac_cxx_werror_flag" ||
8687 test ! -s conftest.err
8688 } && test -s conftest.$ac_objext; then
8689 ac_cv_type_int=yes
8690else
8691 echo "$as_me: failed program was:" >&5
8692sed 's/^/| /' conftest.$ac_ext >&5
8693 6590
8694 ac_cv_type_int=no
8695fi
8696 6591
8697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698fi
8699{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8700echo "${ECHO_T}$ac_cv_type_int" >&6; }
8701
8702# The cast to long int works around a bug in the HP C Compiler
8703# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8704# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8705# This bug is HP SR number 8606223364.
8706{ echo "$as_me:$LINENO: checking size of int" >&5
8707echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8708if test "${ac_cv_sizeof_int+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710else
8711 if test "$cross_compiling" = yes; then
8712 # Depending upon the size, compute the lo and hi bounds.
8713cat >conftest.$ac_ext <<_ACEOF
8714/* confdefs.h. */
8715_ACEOF
8716cat confdefs.h >>conftest.$ac_ext
8717cat >>conftest.$ac_ext <<_ACEOF
8718/* end confdefs.h. */
8719$ac_includes_default
8720 typedef int ac__type_sizeof_;
8721int
8722main ()
8723{
8724static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8725test_array [0] = 0
8726
8727 ;
8728 return 0;
8729}
8730_ACEOF
8731rm -f conftest.$ac_objext
8732if { (ac_try="$ac_compile"
8733case "(($ac_try" in
8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8736esac
8737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738 (eval "$ac_compile") 2>conftest.er1
8739 ac_status=$?
8740 grep -v '^ *+' conftest.er1 >conftest.err
8741 rm -f conftest.er1
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } && {
8745 test -z "$ac_cxx_werror_flag" ||
8746 test ! -s conftest.err
8747 } && test -s conftest.$ac_objext; then
8748 ac_lo=0 ac_mid=0
8749 while :; do
8750 cat >conftest.$ac_ext <<_ACEOF
8751/* confdefs.h. */
8752_ACEOF
8753cat confdefs.h >>conftest.$ac_ext
8754cat >>conftest.$ac_ext <<_ACEOF
8755/* end confdefs.h. */
8756$ac_includes_default
8757 typedef int ac__type_sizeof_;
8758int
8759main ()
8760{
8761static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8762test_array [0] = 0
8763
8764 ;
8765 return 0;
8766}
8767_ACEOF
8768rm -f conftest.$ac_objext
8769if { (ac_try="$ac_compile"
8770case "(($ac_try" in
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8773esac
8774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775 (eval "$ac_compile") 2>conftest.er1
8776 ac_status=$?
8777 grep -v '^ *+' conftest.er1 >conftest.err
8778 rm -f conftest.er1
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } && {
8782 test -z "$ac_cxx_werror_flag" ||
8783 test ! -s conftest.err
8784 } && test -s conftest.$ac_objext; then
8785 ac_hi=$ac_mid; break
8786else
8787 echo "$as_me: failed program was:" >&5
8788sed 's/^/| /' conftest.$ac_ext >&5
8789
8790 ac_lo=`expr $ac_mid + 1`
8791 if test $ac_lo -le $ac_mid; then
8792 ac_lo= ac_hi=
8793 break
8794 fi
8795 ac_mid=`expr 2 '*' $ac_mid + 1`
8796fi
8797
8798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799 done
8800else
8801 echo "$as_me: failed program was:" >&5
8802sed 's/^/| /' conftest.$ac_ext >&5
8803
8804 cat >conftest.$ac_ext <<_ACEOF
8805/* confdefs.h. */
8806_ACEOF
8807cat confdefs.h >>conftest.$ac_ext
8808cat >>conftest.$ac_ext <<_ACEOF
8809/* end confdefs.h. */
8810$ac_includes_default
8811 typedef int ac__type_sizeof_;
8812int
8813main ()
8814{
8815static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8816test_array [0] = 0
8817
8818 ;
8819 return 0;
8820}
8821_ACEOF
8822rm -f conftest.$ac_objext
8823if { (ac_try="$ac_compile"
8824case "(($ac_try" in
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8827esac
8828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_compile") 2>conftest.er1
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } && {
8836 test -z "$ac_cxx_werror_flag" ||
8837 test ! -s conftest.err
8838 } && test -s conftest.$ac_objext; then
8839 ac_hi=-1 ac_mid=-1
8840 while :; do
8841 cat >conftest.$ac_ext <<_ACEOF
8842/* confdefs.h. */
8843_ACEOF
8844cat confdefs.h >>conftest.$ac_ext
8845cat >>conftest.$ac_ext <<_ACEOF
8846/* end confdefs.h. */
8847$ac_includes_default
8848 typedef int ac__type_sizeof_;
8849int
8850main ()
8851{
8852static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8853test_array [0] = 0
8854
8855 ;
8856 return 0;
8857}
8858_ACEOF
8859rm -f conftest.$ac_objext
8860if { (ac_try="$ac_compile"
8861case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8864esac
8865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_compile") 2>conftest.er1
8867 ac_status=$?
8868 grep -v '^ *+' conftest.er1 >conftest.err
8869 rm -f conftest.er1
8870 cat conftest.err >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); } && {
8873 test -z "$ac_cxx_werror_flag" ||
8874 test ! -s conftest.err
8875 } && test -s conftest.$ac_objext; then
8876 ac_lo=$ac_mid; break
8877else
8878 echo "$as_me: failed program was:" >&5
8879sed 's/^/| /' conftest.$ac_ext >&5
8880
8881 ac_hi=`expr '(' $ac_mid ')' - 1`
8882 if test $ac_mid -le $ac_hi; then
8883 ac_lo= ac_hi=
8884 break
8885 fi
8886 ac_mid=`expr 2 '*' $ac_mid`
8887fi
8888
8889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890 done
8891else
8892 echo "$as_me: failed program was:" >&5
8893sed 's/^/| /' conftest.$ac_ext >&5
8894
8895 ac_lo= ac_hi=
8896fi
8897
8898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899fi
8900
8901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902# Binary search between lo and hi bounds.
8903while test "x$ac_lo" != "x$ac_hi"; do
8904 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8905 cat >conftest.$ac_ext <<_ACEOF
8906/* confdefs.h. */
8907_ACEOF
8908cat confdefs.h >>conftest.$ac_ext
8909cat >>conftest.$ac_ext <<_ACEOF
8910/* end confdefs.h. */
8911$ac_includes_default
8912 typedef int ac__type_sizeof_;
8913int
8914main ()
8915{
8916static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8917test_array [0] = 0
8918
8919 ;
8920 return 0;
8921}
8922_ACEOF
8923rm -f conftest.$ac_objext
8924if { (ac_try="$ac_compile"
8925case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8928esac
8929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_compile") 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && {
8937 test -z "$ac_cxx_werror_flag" ||
8938 test ! -s conftest.err
8939 } && test -s conftest.$ac_objext; then
8940 ac_hi=$ac_mid
8941else
8942 echo "$as_me: failed program was:" >&5
8943sed 's/^/| /' conftest.$ac_ext >&5
8944
8945 ac_lo=`expr '(' $ac_mid ')' + 1`
8946fi
8947
8948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949done
8950case $ac_lo in
8951?*) ac_cv_sizeof_int=$ac_lo;;
8952'') if test "$ac_cv_type_int" = yes; then
8953 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8954See \`config.log' for more details." >&5
8955echo "$as_me: error: cannot compute sizeof (int)
8956See \`config.log' for more details." >&2;}
8957 { (exit 77); exit 77; }; }
8958 else
8959 ac_cv_sizeof_int=0
8960 fi ;;
8961esac
8962else
8963 cat >conftest.$ac_ext <<_ACEOF
8964/* confdefs.h. */
8965_ACEOF
8966cat confdefs.h >>conftest.$ac_ext
8967cat >>conftest.$ac_ext <<_ACEOF
8968/* end confdefs.h. */
8969$ac_includes_default
8970 typedef int ac__type_sizeof_;
8971static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8972static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8973#include <stdio.h>
8974#include <stdlib.h>
8975int
8976main ()
8977{
8978
8979 FILE *f = fopen ("conftest.val", "w");
8980 if (! f)
8981 return 1;
8982 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8983 {
8984 long int i = longval ();
8985 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8986 return 1;
8987 fprintf (f, "%ld\n", i);
8988 }
8989 else
8990 {
8991 unsigned long int i = ulongval ();
8992 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8993 return 1;
8994 fprintf (f, "%lu\n", i);
8995 }
8996 return ferror (f) || fclose (f) != 0;
8997
8998 ;
8999 return 0;
9000}
9001_ACEOF
9002rm -f conftest$ac_exeext
9003if { (ac_try="$ac_link"
9004case "(($ac_try" in
9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9007esac
9008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9009 (eval "$ac_link") 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9013 { (case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9016esac
9017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_try") 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 ac_cv_sizeof_int=`cat conftest.val`
9023else
9024 echo "$as_me: program exited with status $ac_status" >&5
9025echo "$as_me: failed program was:" >&5
9026sed 's/^/| /' conftest.$ac_ext >&5
9027
9028( exit $ac_status )
9029if test "$ac_cv_type_int" = yes; then
9030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9031See \`config.log' for more details." >&5
9032echo "$as_me: error: cannot compute sizeof (int)
9033See \`config.log' for more details." >&2;}
9034 { (exit 77); exit 77; }; }
9035 else
9036 ac_cv_sizeof_int=0
9037 fi
9038fi
9039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9040fi
9041rm -f conftest.val
9042fi
9043{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9044echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
9045
9046
9047
9048cat >>confdefs.h <<_ACEOF
9049#define SIZEOF_INT $ac_cv_sizeof_int
9050_ACEOF
9051
9052
9053{ echo "$as_me:$LINENO: checking for long long" >&5
9054echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9055if test "${ac_cv_type_long_long+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9057else
9058 cat >conftest.$ac_ext <<_ACEOF
9059/* confdefs.h. */
9060_ACEOF
9061cat confdefs.h >>conftest.$ac_ext
9062cat >>conftest.$ac_ext <<_ACEOF
9063/* end confdefs.h. */
9064$ac_includes_default
9065typedef long long ac__type_new_;
9066int
9067main ()
9068{
9069if ((ac__type_new_ *) 0)
9070 return 0;
9071if (sizeof (ac__type_new_))
9072 return 0;
9073 ;
9074 return 0;
9075}
9076_ACEOF
9077rm -f conftest.$ac_objext
9078if { (ac_try="$ac_compile"
9079case "(($ac_try" in
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9082esac
9083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084 (eval "$ac_compile") 2>conftest.er1
9085 ac_status=$?
9086 grep -v '^ *+' conftest.er1 >conftest.err
9087 rm -f conftest.er1
9088 cat conftest.err >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } && {
9091 test -z "$ac_cxx_werror_flag" ||
9092 test ! -s conftest.err
9093 } && test -s conftest.$ac_objext; then
9094 ac_cv_type_long_long=yes
9095else
9096 echo "$as_me: failed program was:" >&5
9097sed 's/^/| /' conftest.$ac_ext >&5
9098
9099 ac_cv_type_long_long=no
9100fi
9101
9102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103fi
9104{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9105echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
9106
9107# The cast to long int works around a bug in the HP C Compiler
9108# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9109# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9110# This bug is HP SR number 8606223364.
9111{ echo "$as_me:$LINENO: checking size of long long" >&5
9112echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
9113if test "${ac_cv_sizeof_long_long+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9115else
9116 if test "$cross_compiling" = yes; then
9117 # Depending upon the size, compute the lo and hi bounds.
9118cat >conftest.$ac_ext <<_ACEOF
9119/* confdefs.h. */
9120_ACEOF
9121cat confdefs.h >>conftest.$ac_ext
9122cat >>conftest.$ac_ext <<_ACEOF
9123/* end confdefs.h. */
9124$ac_includes_default
9125 typedef long long ac__type_sizeof_;
9126int
9127main ()
9128{
9129static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9130test_array [0] = 0
9131
9132 ;
9133 return 0;
9134}
9135_ACEOF
9136rm -f conftest.$ac_objext
9137if { (ac_try="$ac_compile"
9138case "(($ac_try" in
9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9141esac
9142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143 (eval "$ac_compile") 2>conftest.er1
9144 ac_status=$?
9145 grep -v '^ *+' conftest.er1 >conftest.err
9146 rm -f conftest.er1
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } && {
9150 test -z "$ac_cxx_werror_flag" ||
9151 test ! -s conftest.err
9152 } && test -s conftest.$ac_objext; then
9153 ac_lo=0 ac_mid=0
9154 while :; do
9155 cat >conftest.$ac_ext <<_ACEOF
9156/* confdefs.h. */
9157_ACEOF
9158cat confdefs.h >>conftest.$ac_ext
9159cat >>conftest.$ac_ext <<_ACEOF
9160/* end confdefs.h. */
9161$ac_includes_default
9162 typedef long long ac__type_sizeof_;
9163int
9164main ()
9165{
9166static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9167test_array [0] = 0
9168
9169 ;
9170 return 0;
9171}
9172_ACEOF
9173rm -f conftest.$ac_objext
9174if { (ac_try="$ac_compile"
9175case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9178esac
9179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_compile") 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } && {
9187 test -z "$ac_cxx_werror_flag" ||
9188 test ! -s conftest.err
9189 } && test -s conftest.$ac_objext; then
9190 ac_hi=$ac_mid; break
9191else
9192 echo "$as_me: failed program was:" >&5
9193sed 's/^/| /' conftest.$ac_ext >&5
9194
9195 ac_lo=`expr $ac_mid + 1`
9196 if test $ac_lo -le $ac_mid; then
9197 ac_lo= ac_hi=
9198 break
9199 fi
9200 ac_mid=`expr 2 '*' $ac_mid + 1`
9201fi
9202
9203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204 done
9205else
9206 echo "$as_me: failed program was:" >&5
9207sed 's/^/| /' conftest.$ac_ext >&5
9208
9209 cat >conftest.$ac_ext <<_ACEOF
9210/* confdefs.h. */
9211_ACEOF
9212cat confdefs.h >>conftest.$ac_ext
9213cat >>conftest.$ac_ext <<_ACEOF
9214/* end confdefs.h. */
9215$ac_includes_default
9216 typedef long long ac__type_sizeof_;
9217int
9218main ()
9219{
9220static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9221test_array [0] = 0
9222
9223 ;
9224 return 0;
9225}
9226_ACEOF
9227rm -f conftest.$ac_objext
9228if { (ac_try="$ac_compile"
9229case "(($ac_try" in
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9232esac
9233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_compile") 2>conftest.er1
9235 ac_status=$?
9236 grep -v '^ *+' conftest.er1 >conftest.err
9237 rm -f conftest.er1
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } && {
9241 test -z "$ac_cxx_werror_flag" ||
9242 test ! -s conftest.err
9243 } && test -s conftest.$ac_objext; then
9244 ac_hi=-1 ac_mid=-1
9245 while :; do
9246 cat >conftest.$ac_ext <<_ACEOF
9247/* confdefs.h. */
9248_ACEOF
9249cat confdefs.h >>conftest.$ac_ext
9250cat >>conftest.$ac_ext <<_ACEOF
9251/* end confdefs.h. */
9252$ac_includes_default
9253 typedef long long ac__type_sizeof_;
9254int
9255main ()
9256{
9257static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9258test_array [0] = 0
9259
9260 ;
9261 return 0;
9262}
9263_ACEOF
9264rm -f conftest.$ac_objext
9265if { (ac_try="$ac_compile"
9266case "(($ac_try" in
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9269esac
9270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_compile") 2>conftest.er1
9272 ac_status=$?
9273 grep -v '^ *+' conftest.er1 >conftest.err
9274 rm -f conftest.er1
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } && {
9278 test -z "$ac_cxx_werror_flag" ||
9279 test ! -s conftest.err
9280 } && test -s conftest.$ac_objext; then
9281 ac_lo=$ac_mid; break
9282else
9283 echo "$as_me: failed program was:" >&5
9284sed 's/^/| /' conftest.$ac_ext >&5
9285
9286 ac_hi=`expr '(' $ac_mid ')' - 1`
9287 if test $ac_mid -le $ac_hi; then
9288 ac_lo= ac_hi=
9289 break
9290 fi
9291 ac_mid=`expr 2 '*' $ac_mid`
9292fi
9293
9294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295 done
9296else
9297 echo "$as_me: failed program was:" >&5
9298sed 's/^/| /' conftest.$ac_ext >&5
9299
9300 ac_lo= ac_hi=
9301fi
9302
9303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304fi
9305
9306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307# Binary search between lo and hi bounds.
9308while test "x$ac_lo" != "x$ac_hi"; do
9309 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9310 cat >conftest.$ac_ext <<_ACEOF
9311/* confdefs.h. */
9312_ACEOF
9313cat confdefs.h >>conftest.$ac_ext
9314cat >>conftest.$ac_ext <<_ACEOF
9315/* end confdefs.h. */
9316$ac_includes_default
9317 typedef long long ac__type_sizeof_;
9318int
9319main ()
9320{
9321static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9322test_array [0] = 0
9323
9324 ;
9325 return 0;
9326}
9327_ACEOF
9328rm -f conftest.$ac_objext
9329if { (ac_try="$ac_compile"
9330case "(($ac_try" in
9331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9332 *) ac_try_echo=$ac_try;;
9333esac
9334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9335 (eval "$ac_compile") 2>conftest.er1
9336 ac_status=$?
9337 grep -v '^ *+' conftest.er1 >conftest.err
9338 rm -f conftest.er1
9339 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } && {
9342 test -z "$ac_cxx_werror_flag" ||
9343 test ! -s conftest.err
9344 } && test -s conftest.$ac_objext; then
9345 ac_hi=$ac_mid
9346else
9347 echo "$as_me: failed program was:" >&5
9348sed 's/^/| /' conftest.$ac_ext >&5
9349
9350 ac_lo=`expr '(' $ac_mid ')' + 1`
9351fi
9352
9353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354done
9355case $ac_lo in
9356?*) ac_cv_sizeof_long_long=$ac_lo;;
9357'') if test "$ac_cv_type_long_long" = yes; then
9358 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9359See \`config.log' for more details." >&5
9360echo "$as_me: error: cannot compute sizeof (long long)
9361See \`config.log' for more details." >&2;}
9362 { (exit 77); exit 77; }; }
9363 else
9364 ac_cv_sizeof_long_long=0
9365 fi ;;
9366esac
9367else
9368 cat >conftest.$ac_ext <<_ACEOF
9369/* confdefs.h. */
9370_ACEOF
9371cat confdefs.h >>conftest.$ac_ext
9372cat >>conftest.$ac_ext <<_ACEOF
9373/* end confdefs.h. */
9374$ac_includes_default
9375 typedef long long ac__type_sizeof_;
9376static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9377static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9378#include <stdio.h>
9379#include <stdlib.h>
9380int
9381main ()
9382{
9383
9384 FILE *f = fopen ("conftest.val", "w");
9385 if (! f)
9386 return 1;
9387 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9388 {
9389 long int i = longval ();
9390 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9391 return 1;
9392 fprintf (f, "%ld\n", i);
9393 }
9394 else
9395 {
9396 unsigned long int i = ulongval ();
9397 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9398 return 1;
9399 fprintf (f, "%lu\n", i);
9400 }
9401 return ferror (f) || fclose (f) != 0;
9402
9403 ;
9404 return 0;
9405}
9406_ACEOF
9407rm -f conftest$ac_exeext
9408if { (ac_try="$ac_link"
9409case "(($ac_try" in
9410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411 *) ac_try_echo=$ac_try;;
9412esac
9413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9414 (eval "$ac_link") 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9418 { (case "(($ac_try" in
9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9421esac
9422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423 (eval "$ac_try") 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 ac_cv_sizeof_long_long=`cat conftest.val`
9428else
9429 echo "$as_me: program exited with status $ac_status" >&5
9430echo "$as_me: failed program was:" >&5
9431sed 's/^/| /' conftest.$ac_ext >&5
9432
9433( exit $ac_status )
9434if test "$ac_cv_type_long_long" = yes; then
9435 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9436See \`config.log' for more details." >&5
9437echo "$as_me: error: cannot compute sizeof (long long)
9438See \`config.log' for more details." >&2;}
9439 { (exit 77); exit 77; }; }
9440 else
9441 ac_cv_sizeof_long_long=0
9442 fi
9443fi
9444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9445fi
9446rm -f conftest.val
9447fi
9448{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9449echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9450
9451
9452
9453cat >>confdefs.h <<_ACEOF
9454#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9455_ACEOF
9456
9457
9458{ echo "$as_me:$LINENO: checking for int *" >&5
9459echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
9460if test "${ac_cv_type_int_p+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9462else
9463 cat >conftest.$ac_ext <<_ACEOF
9464/* confdefs.h. */
9465_ACEOF
9466cat confdefs.h >>conftest.$ac_ext
9467cat >>conftest.$ac_ext <<_ACEOF
9468/* end confdefs.h. */
9469$ac_includes_default
9470typedef int * ac__type_new_;
9471int
9472main ()
9473{
9474if ((ac__type_new_ *) 0)
9475 return 0;
9476if (sizeof (ac__type_new_))
9477 return 0;
9478 ;
9479 return 0;
9480}
9481_ACEOF
9482rm -f conftest.$ac_objext
9483if { (ac_try="$ac_compile"
9484case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9487esac
9488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_compile") 2>conftest.er1
9490 ac_status=$?
9491 grep -v '^ *+' conftest.er1 >conftest.err
9492 rm -f conftest.er1
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } && {
9496 test -z "$ac_cxx_werror_flag" ||
9497 test ! -s conftest.err
9498 } && test -s conftest.$ac_objext; then
9499 ac_cv_type_int_p=yes
9500else
9501 echo "$as_me: failed program was:" >&5
9502sed 's/^/| /' conftest.$ac_ext >&5
9503
9504 ac_cv_type_int_p=no
9505fi
9506
9507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9508fi
9509{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9510echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
9511
9512# The cast to long int works around a bug in the HP C Compiler
9513# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9514# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9515# This bug is HP SR number 8606223364.
9516{ echo "$as_me:$LINENO: checking size of int *" >&5
9517echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
9518if test "${ac_cv_sizeof_int_p+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520else
9521 if test "$cross_compiling" = yes; then
9522 # Depending upon the size, compute the lo and hi bounds.
9523cat >conftest.$ac_ext <<_ACEOF
9524/* confdefs.h. */
9525_ACEOF
9526cat confdefs.h >>conftest.$ac_ext
9527cat >>conftest.$ac_ext <<_ACEOF
9528/* end confdefs.h. */
9529$ac_includes_default
9530 typedef int * ac__type_sizeof_;
9531int
9532main ()
9533{
9534static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9535test_array [0] = 0
9536
9537 ;
9538 return 0;
9539}
9540_ACEOF
9541rm -f conftest.$ac_objext
9542if { (ac_try="$ac_compile"
9543case "(($ac_try" in
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9546esac
9547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_compile") 2>conftest.er1
9549 ac_status=$?
9550 grep -v '^ *+' conftest.er1 >conftest.err
9551 rm -f conftest.er1
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } && {
9555 test -z "$ac_cxx_werror_flag" ||
9556 test ! -s conftest.err
9557 } && test -s conftest.$ac_objext; then
9558 ac_lo=0 ac_mid=0
9559 while :; do
9560 cat >conftest.$ac_ext <<_ACEOF
9561/* confdefs.h. */
9562_ACEOF
9563cat confdefs.h >>conftest.$ac_ext
9564cat >>conftest.$ac_ext <<_ACEOF
9565/* end confdefs.h. */
9566$ac_includes_default
9567 typedef int * ac__type_sizeof_;
9568int
9569main ()
9570{
9571static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9572test_array [0] = 0
9573
9574 ;
9575 return 0;
9576}
9577_ACEOF
9578rm -f conftest.$ac_objext
9579if { (ac_try="$ac_compile"
9580case "(($ac_try" in
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9583esac
9584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_compile") 2>conftest.er1
9586 ac_status=$?
9587 grep -v '^ *+' conftest.er1 >conftest.err
9588 rm -f conftest.er1
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } && {
9592 test -z "$ac_cxx_werror_flag" ||
9593 test ! -s conftest.err
9594 } && test -s conftest.$ac_objext; then
9595 ac_hi=$ac_mid; break
9596else
9597 echo "$as_me: failed program was:" >&5
9598sed 's/^/| /' conftest.$ac_ext >&5
9599
9600 ac_lo=`expr $ac_mid + 1`
9601 if test $ac_lo -le $ac_mid; then
9602 ac_lo= ac_hi=
9603 break
9604 fi
9605 ac_mid=`expr 2 '*' $ac_mid + 1`
9606fi
9607
9608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9609 done
9610else
9611 echo "$as_me: failed program was:" >&5
9612sed 's/^/| /' conftest.$ac_ext >&5
9613
9614 cat >conftest.$ac_ext <<_ACEOF
9615/* confdefs.h. */
9616_ACEOF
9617cat confdefs.h >>conftest.$ac_ext
9618cat >>conftest.$ac_ext <<_ACEOF
9619/* end confdefs.h. */
9620$ac_includes_default
9621 typedef int * ac__type_sizeof_;
9622int
9623main ()
9624{
9625static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9626test_array [0] = 0
9627
9628 ;
9629 return 0;
9630}
9631_ACEOF
9632rm -f conftest.$ac_objext
9633if { (ac_try="$ac_compile"
9634case "(($ac_try" in
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9637esac
9638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_compile") 2>conftest.er1
9640 ac_status=$?
9641 grep -v '^ *+' conftest.er1 >conftest.err
9642 rm -f conftest.er1
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } && {
9646 test -z "$ac_cxx_werror_flag" ||
9647 test ! -s conftest.err
9648 } && test -s conftest.$ac_objext; then
9649 ac_hi=-1 ac_mid=-1
9650 while :; do
9651 cat >conftest.$ac_ext <<_ACEOF
9652/* confdefs.h. */
9653_ACEOF
9654cat confdefs.h >>conftest.$ac_ext
9655cat >>conftest.$ac_ext <<_ACEOF
9656/* end confdefs.h. */
9657$ac_includes_default
9658 typedef int * ac__type_sizeof_;
9659int
9660main ()
9661{
9662static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9663test_array [0] = 0
9664
9665 ;
9666 return 0;
9667}
9668_ACEOF
9669rm -f conftest.$ac_objext
9670if { (ac_try="$ac_compile"
9671case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9674esac
9675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_compile") 2>conftest.er1
9677 ac_status=$?
9678 grep -v '^ *+' conftest.er1 >conftest.err
9679 rm -f conftest.er1
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && {
9683 test -z "$ac_cxx_werror_flag" ||
9684 test ! -s conftest.err
9685 } && test -s conftest.$ac_objext; then
9686 ac_lo=$ac_mid; break
9687else
9688 echo "$as_me: failed program was:" >&5
9689sed 's/^/| /' conftest.$ac_ext >&5
9690
9691 ac_hi=`expr '(' $ac_mid ')' - 1`
9692 if test $ac_mid -le $ac_hi; then
9693 ac_lo= ac_hi=
9694 break
9695 fi
9696 ac_mid=`expr 2 '*' $ac_mid`
9697fi
9698
9699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700 done
9701else
9702 echo "$as_me: failed program was:" >&5
9703sed 's/^/| /' conftest.$ac_ext >&5
9704
9705 ac_lo= ac_hi=
9706fi
9707
9708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709fi
9710
9711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712# Binary search between lo and hi bounds.
9713while test "x$ac_lo" != "x$ac_hi"; do
9714 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9715 cat >conftest.$ac_ext <<_ACEOF
9716/* confdefs.h. */
9717_ACEOF
9718cat confdefs.h >>conftest.$ac_ext
9719cat >>conftest.$ac_ext <<_ACEOF
9720/* end confdefs.h. */
9721$ac_includes_default
9722 typedef int * ac__type_sizeof_;
9723int
9724main ()
9725{
9726static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9727test_array [0] = 0
9728
9729 ;
9730 return 0;
9731}
9732_ACEOF
9733rm -f conftest.$ac_objext
9734if { (ac_try="$ac_compile"
9735case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738esac
9739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_compile") 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && {
9747 test -z "$ac_cxx_werror_flag" ||
9748 test ! -s conftest.err
9749 } && test -s conftest.$ac_objext; then
9750 ac_hi=$ac_mid
9751else
9752 echo "$as_me: failed program was:" >&5
9753sed 's/^/| /' conftest.$ac_ext >&5
9754
9755 ac_lo=`expr '(' $ac_mid ')' + 1`
9756fi
9757
9758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9759done
9760case $ac_lo in
9761?*) ac_cv_sizeof_int_p=$ac_lo;;
9762'') if test "$ac_cv_type_int_p" = yes; then
9763 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9764See \`config.log' for more details." >&5
9765echo "$as_me: error: cannot compute sizeof (int *)
9766See \`config.log' for more details." >&2;}
9767 { (exit 77); exit 77; }; }
9768 else
9769 ac_cv_sizeof_int_p=0
9770 fi ;;
9771esac
9772else
9773 cat >conftest.$ac_ext <<_ACEOF
9774/* confdefs.h. */
9775_ACEOF
9776cat confdefs.h >>conftest.$ac_ext
9777cat >>conftest.$ac_ext <<_ACEOF
9778/* end confdefs.h. */
9779$ac_includes_default
9780 typedef int * ac__type_sizeof_;
9781static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9782static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9783#include <stdio.h>
9784#include <stdlib.h>
9785int
9786main ()
9787{
9788
9789 FILE *f = fopen ("conftest.val", "w");
9790 if (! f)
9791 return 1;
9792 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9793 {
9794 long int i = longval ();
9795 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9796 return 1;
9797 fprintf (f, "%ld\n", i);
9798 }
9799 else
9800 {
9801 unsigned long int i = ulongval ();
9802 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9803 return 1;
9804 fprintf (f, "%lu\n", i);
9805 }
9806 return ferror (f) || fclose (f) != 0;
9807
9808 ;
9809 return 0;
9810}
9811_ACEOF
9812rm -f conftest$ac_exeext
9813if { (ac_try="$ac_link"
9814case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817esac
9818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_link") 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9823 { (case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9826esac
9827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_try") 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 ac_cv_sizeof_int_p=`cat conftest.val`
9833else
9834 echo "$as_me: program exited with status $ac_status" >&5
9835echo "$as_me: failed program was:" >&5
9836sed 's/^/| /' conftest.$ac_ext >&5
9837
9838( exit $ac_status )
9839if test "$ac_cv_type_int_p" = yes; then
9840 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9841See \`config.log' for more details." >&5
9842echo "$as_me: error: cannot compute sizeof (int *)
9843See \`config.log' for more details." >&2;}
9844 { (exit 77); exit 77; }; }
9845 else
9846 ac_cv_sizeof_int_p=0
9847 fi
9848fi
9849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9850fi
9851rm -f conftest.val
9852fi
9853{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9854echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9855
9856
9857
9858cat >>confdefs.h <<_ACEOF
9859#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9860_ACEOF
9861
9862
9863
9864
9865{ echo "$as_me:$LINENO: checking for int16_t" >&5
9866echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9867if test "${rxvt_cv_int16_t+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9869else
9870 cat >conftest.$ac_ext <<_ACEOF
9871/* confdefs.h. */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
9875/* end confdefs.h. */
9876#include <stdint.h>
9877int
9878main ()
9879{
9880int16_t dummy;
9881 ;
9882 return 0;
9883}
9884_ACEOF
9885rm -f conftest.$ac_objext
9886if { (ac_try="$ac_compile"
9887case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890esac
9891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_compile") 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } && {
9899 test -z "$ac_cxx_werror_flag" ||
9900 test ! -s conftest.err
9901 } && test -s conftest.$ac_objext; then
9902 rxvt_cv_int16_t=yes
9903else
9904 echo "$as_me: failed program was:" >&5
9905sed 's/^/| /' conftest.$ac_ext >&5
9906
9907 if test "$ac_cv_sizeof_char" -ge 2; then
9908 rxvt_cv_int16_t=" char"
9909else
9910 if test "$ac_cv_sizeof_short" -ge 2; then
9911 rxvt_cv_int16_t=" short"
9912 else
9913 if test "$ac_cv_sizeof_int" -ge 2; then
9914 rxvt_cv_int16_t=" int"
9915 else
9916 if test "$ac_cv_sizeof_long" -ge 2; then
9917 rxvt_cv_int16_t=" long"
9918 else
9919 if test "$ac_cv_sizeof_long_long" -ge 2; then
9920 rxvt_cv_int16_t=" long long"
9921 else
9922 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9923 fi
9924 fi
9925 fi
9926 fi
9927fi
9928fi
9929
9930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9931fi
9932{ echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9933echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9934if test x"$rxvt_cv_int16_t" != xyes; then
9935 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9936else
9937 if test x"" = x; then
9938 rxvt_int16_typedef="/* typedef short int16_t; */"
9939 else
9940 rxvt_int16_typedef="/* typedef short int16_t; */"
9941 fi
9942fi
9943
9944{ echo "$as_me:$LINENO: checking for uint16_t" >&5
9945echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9946if test "${rxvt_cv_uint16_t+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948else
9949 cat >conftest.$ac_ext <<_ACEOF
9950/* confdefs.h. */
9951_ACEOF
9952cat confdefs.h >>conftest.$ac_ext
9953cat >>conftest.$ac_ext <<_ACEOF
9954/* end confdefs.h. */
9955#include <stdint.h>
9956int
9957main ()
9958{
9959uint16_t dummy;
9960 ;
9961 return 0;
9962}
9963_ACEOF
9964rm -f conftest.$ac_objext
9965if { (ac_try="$ac_compile"
9966case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_compile") 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && {
9978 test -z "$ac_cxx_werror_flag" ||
9979 test ! -s conftest.err
9980 } && test -s conftest.$ac_objext; then
9981 rxvt_cv_uint16_t=yes
9982else
9983 echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
9986 if test "$ac_cv_sizeof_char" -ge 2; then
9987 rxvt_cv_uint16_t="unsigned char"
9988else
9989 if test "$ac_cv_sizeof_short" -ge 2; then
9990 rxvt_cv_uint16_t="unsigned short"
9991 else
9992 if test "$ac_cv_sizeof_int" -ge 2; then
9993 rxvt_cv_uint16_t="unsigned int"
9994 else
9995 if test "$ac_cv_sizeof_long" -ge 2; then
9996 rxvt_cv_uint16_t="unsigned long"
9997 else
9998 if test "$ac_cv_sizeof_long_long" -ge 2; then
9999 rxvt_cv_uint16_t="unsigned long long"
10000 else
10001 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
10002 fi
10003 fi
10004 fi
10005 fi
10006fi
10007fi
10008
10009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10010fi
10011{ echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
10012echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
10013if test x"$rxvt_cv_uint16_t" != xyes; then
10014 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
10015else
10016 if test x"unsigned" = x; then
10017 rxvt_uint16_typedef="/* typedef short uint16_t; */"
10018 else
10019 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
10020 fi
10021fi
10022
10023{ echo "$as_me:$LINENO: checking for int32_t" >&5
10024echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10025if test "${rxvt_cv_int32_t+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10027else
10028 cat >conftest.$ac_ext <<_ACEOF
10029/* confdefs.h. */
10030_ACEOF
10031cat confdefs.h >>conftest.$ac_ext
10032cat >>conftest.$ac_ext <<_ACEOF
10033/* end confdefs.h. */
10034#include <stdint.h>
10035int
10036main ()
10037{
10038int32_t dummy;
10039 ;
10040 return 0;
10041}
10042_ACEOF
10043rm -f conftest.$ac_objext
10044if { (ac_try="$ac_compile"
10045case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048esac
10049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_compile") 2>conftest.er1
10051 ac_status=$?
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } && {
10057 test -z "$ac_cxx_werror_flag" ||
10058 test ! -s conftest.err
10059 } && test -s conftest.$ac_objext; then
10060 rxvt_cv_int32_t=yes
10061else
10062 echo "$as_me: failed program was:" >&5
10063sed 's/^/| /' conftest.$ac_ext >&5
10064
10065 if test "$ac_cv_sizeof_char" -ge 4; then
10066 rxvt_cv_int32_t=" char"
10067else
10068 if test "$ac_cv_sizeof_short" -ge 4; then
10069 rxvt_cv_int32_t=" short"
10070 else
10071 if test "$ac_cv_sizeof_int" -ge 4; then
10072 rxvt_cv_int32_t=" int"
10073 else
10074 if test "$ac_cv_sizeof_long" -ge 4; then
10075 rxvt_cv_int32_t=" long"
10076 else
10077 if test "$ac_cv_sizeof_long_long" -ge 4; then
10078 rxvt_cv_int32_t=" long long"
10079 else
10080 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
10081 fi
10082 fi
10083 fi
10084 fi
10085fi
10086fi
10087
10088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089fi
10090{ echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
10091echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
10092if test x"$rxvt_cv_int32_t" != xyes; then
10093 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
10094else
10095 if test x"" = x; then
10096 rxvt_int32_typedef="/* typedef int int32_t; */"
10097 else
10098 rxvt_int32_typedef="/* typedef int int32_t; */"
10099 fi
10100fi
10101
10102{ echo "$as_me:$LINENO: checking for uint32_t" >&5
10103echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
10104if test "${rxvt_cv_uint32_t+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10106else
10107 cat >conftest.$ac_ext <<_ACEOF
10108/* confdefs.h. */
10109_ACEOF
10110cat confdefs.h >>conftest.$ac_ext
10111cat >>conftest.$ac_ext <<_ACEOF
10112/* end confdefs.h. */
10113#include <stdint.h>
10114int
10115main ()
10116{
10117uint32_t dummy;
10118 ;
10119 return 0;
10120}
10121_ACEOF
10122rm -f conftest.$ac_objext
10123if { (ac_try="$ac_compile"
10124case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10127esac
10128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_compile") 2>conftest.er1
10130 ac_status=$?
10131 grep -v '^ *+' conftest.er1 >conftest.err
10132 rm -f conftest.er1
10133 cat conftest.err >&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } && {
10136 test -z "$ac_cxx_werror_flag" ||
10137 test ! -s conftest.err
10138 } && test -s conftest.$ac_objext; then
10139 rxvt_cv_uint32_t=yes
10140else
10141 echo "$as_me: failed program was:" >&5
10142sed 's/^/| /' conftest.$ac_ext >&5
10143
10144 if test "$ac_cv_sizeof_char" -ge 4; then
10145 rxvt_cv_uint32_t="unsigned char"
10146else
10147 if test "$ac_cv_sizeof_short" -ge 4; then
10148 rxvt_cv_uint32_t="unsigned short"
10149 else
10150 if test "$ac_cv_sizeof_int" -ge 4; then
10151 rxvt_cv_uint32_t="unsigned int"
10152 else
10153 if test "$ac_cv_sizeof_long" -ge 4; then
10154 rxvt_cv_uint32_t="unsigned long"
10155 else
10156 if test "$ac_cv_sizeof_long_long" -ge 4; then
10157 rxvt_cv_uint32_t="unsigned long long"
10158 else
10159 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
10160 fi
10161 fi
10162 fi
10163 fi
10164fi
10165fi
10166
10167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10168fi
10169{ echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
10170echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
10171if test x"$rxvt_cv_uint32_t" != xyes; then
10172 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
10173else
10174 if test x"unsigned" = x; then
10175 rxvt_uint32_typedef="/* typedef int uint32_t; */"
10176 else
10177 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
10178 fi
10179fi
10180
10181if test "$ac_cv_sizeof_int_p" -eq 8; then
10182 rxvt_intp_define="#define intp_t int64_t"
10183 rxvt_u_intp_define="#define u_intp_t u_int64_t"
10184else
10185 if test "$ac_cv_sizeof_int_p" -eq 4; then
10186 rxvt_intp_define="#define intp_t int32_t"
10187 rxvt_u_intp_define="#define u_intp_t u_int32_t"
10188 else
10189 if test "$ac_cv_sizeof_int_p" -eq 2; then
10190 rxvt_intp_define="#define intp_t int16_t"
10191 rxvt_u_intp_define="#define u_intp_t u_int16_t"
10192 else
10193 rxvt_intp_define="#error set intp_t"
10194 rxvt_u_intp_define="#error set u_intp_t"
10195 fi
10196 fi
10197fi
10198
10199
10200
10201{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10202echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10203if test "${ac_cv_type_signal+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205else
10206 cat >conftest.$ac_ext <<_ACEOF
10207/* confdefs.h. */
10208_ACEOF
10209cat confdefs.h >>conftest.$ac_ext
10210cat >>conftest.$ac_ext <<_ACEOF
10211/* end confdefs.h. */
10212#include <sys/types.h>
10213#include <signal.h>
10214
10215int
10216main ()
10217{
10218return *(signal (0, 0)) (0) == 1;
10219 ;
10220 return 0;
10221}
10222_ACEOF
10223rm -f conftest.$ac_objext
10224if { (ac_try="$ac_compile"
10225case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228esac
10229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_compile") 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } && {
10237 test -z "$ac_cxx_werror_flag" ||
10238 test ! -s conftest.err
10239 } && test -s conftest.$ac_objext; then
10240 ac_cv_type_signal=int
10241else
10242 echo "$as_me: failed program was:" >&5
10243sed 's/^/| /' conftest.$ac_ext >&5
10244
10245 ac_cv_type_signal=void
10246fi
10247
10248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10249fi
10250{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10251echo "${ECHO_T}$ac_cv_type_signal" >&6; }
10252
10253cat >>confdefs.h <<_ACEOF
10254#define RETSIGTYPE $ac_cv_type_signal
10255_ACEOF
10256
10257
10258
10259
10260
10261
10262for ac_func in \ 6592for ac_func in unsetenv
10263 unsetenv \ 6593do :
10264 setutent \ 6594 ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
10265 on_exit \ 6595if test "x$ac_cv_func_unsetenv" = x""yes; then :
10266
10267do
10268as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10269{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10270echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10271if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10273else
10274 cat >conftest.$ac_ext <<_ACEOF
10275/* confdefs.h. */
10276_ACEOF
10277cat confdefs.h >>conftest.$ac_ext
10278cat >>conftest.$ac_ext <<_ACEOF
10279/* end confdefs.h. */
10280/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10282#define $ac_func innocuous_$ac_func
10283
10284/* System header to define __stub macros and hopefully few prototypes,
10285 which can conflict with char $ac_func (); below.
10286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10287 <limits.h> exists even on freestanding compilers. */
10288
10289#ifdef __STDC__
10290# include <limits.h>
10291#else
10292# include <assert.h>
10293#endif
10294
10295#undef $ac_func
10296
10297/* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10300#ifdef __cplusplus
10301extern "C"
10302#endif
10303char $ac_func ();
10304/* The GNU C library defines this for functions which it implements
10305 to always fail with ENOSYS. Some functions are actually named
10306 something starting with __ and the normal name is an alias. */
10307#if defined __stub_$ac_func || defined __stub___$ac_func
10308choke me
10309#endif
10310
10311int
10312main ()
10313{
10314return $ac_func ();
10315 ;
10316 return 0;
10317}
10318_ACEOF
10319rm -f conftest.$ac_objext conftest$ac_exeext
10320if { (ac_try="$ac_link"
10321case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10324esac
10325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_link") 2>conftest.er1
10327 ac_status=$?
10328 grep -v '^ *+' conftest.er1 >conftest.err
10329 rm -f conftest.er1
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && {
10333 test -z "$ac_cxx_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest$ac_exeext &&
10336 $as_test_x conftest$ac_exeext; then
10337 eval "$as_ac_var=yes"
10338else
10339 echo "$as_me: failed program was:" >&5
10340sed 's/^/| /' conftest.$ac_ext >&5
10341
10342 eval "$as_ac_var=no"
10343fi
10344
10345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10346 conftest$ac_exeext conftest.$ac_ext
10347fi
10348ac_res=`eval echo '${'$as_ac_var'}'`
10349 { echo "$as_me:$LINENO: result: $ac_res" >&5
10350echo "${ECHO_T}$ac_res" >&6; }
10351if test `eval echo '${'$as_ac_var'}'` = yes; then
10352 cat >>confdefs.h <<_ACEOF 6596 cat >>confdefs.h <<_ACEOF
10353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6597#define HAVE_UNSETENV 1
10354_ACEOF 6598_ACEOF
10355 6599
10356fi 6600fi
10357done 6601done
10358 6602
10361support_utmp=yes 6605support_utmp=yes
10362support_wtmp=yes 6606support_wtmp=yes
10363support_lastlog=yes 6607support_lastlog=yes
10364 6608
10365# Check whether --enable-utmp was given. 6609# Check whether --enable-utmp was given.
10366if test "${enable_utmp+set}" = set; then 6610if test "${enable_utmp+set}" = set; then :
10367 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then 6611 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
10368 support_utmp=$enableval 6612 support_utmp=$enableval
10369 fi 6613 fi
10370fi 6614fi
10371 6615
10372 6616
10373# Check whether --enable-wtmp was given. 6617# Check whether --enable-wtmp was given.
10374if test "${enable_wtmp+set}" = set; then 6618if test "${enable_wtmp+set}" = set; then :
10375 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then 6619 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
10376 support_wtmp=$enableval 6620 support_wtmp=$enableval
10377 fi 6621 fi
10378fi 6622fi
10379 6623
10380 6624
10381# Check whether --enable-lastlog was given. 6625# Check whether --enable-lastlog was given.
10382if test "${enable_lastlog+set}" = set; then 6626if test "${enable_lastlog+set}" = set; then :
10383 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then 6627 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
10384 support_lastlog=$enableval 6628 support_lastlog=$enableval
10385 fi 6629 fi
10386fi 6630fi
10387 6631
10388 6632
10389if test x$support_utmp = xyes; then 6633if test x$support_utmp = xyes; then
10390 6634
10391cat >>confdefs.h <<\_ACEOF 6635$as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
10392#define UTMP_SUPPORT 1
10393_ACEOF
10394 6636
10395fi 6637fi
10396if test x$support_wtmp = xyes; then 6638if test x$support_wtmp = xyes; then
10397 6639
10398cat >>confdefs.h <<\_ACEOF 6640$as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
10399#define WTMP_SUPPORT 1
10400_ACEOF
10401 6641
10402fi 6642fi
10403if test x$support_lastlog = xyes; then 6643if test x$support_lastlog = xyes; then
10404 6644
10405cat >>confdefs.h <<\_ACEOF 6645$as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
10406#define LASTLOG_SUPPORT 1
10407_ACEOF
10408 6646
10409fi 6647fi
10410
10411
10412
10413 6648
10414for ac_func in \ 6649for ac_func in \
10415 ttyslot \
10416 updwtmp \ 6650 updwtmp \
10417 updwtmpx \ 6651 updwtmpx \
6652 updlastlogx \
10418 6653
10419do 6654do :
10420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6655 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10421{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6656ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6657if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10423if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10425else
10426 cat >conftest.$ac_ext <<_ACEOF
10427/* confdefs.h. */
10428_ACEOF
10429cat confdefs.h >>conftest.$ac_ext
10430cat >>conftest.$ac_ext <<_ACEOF
10431/* end confdefs.h. */
10432/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10434#define $ac_func innocuous_$ac_func
10435
10436/* System header to define __stub macros and hopefully few prototypes,
10437 which can conflict with char $ac_func (); below.
10438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10439 <limits.h> exists even on freestanding compilers. */
10440
10441#ifdef __STDC__
10442# include <limits.h>
10443#else
10444# include <assert.h>
10445#endif
10446
10447#undef $ac_func
10448
10449/* Override any GCC internal prototype to avoid an error.
10450 Use char because int might match the return type of a GCC
10451 builtin and then its argument prototype would still apply. */
10452#ifdef __cplusplus
10453extern "C"
10454#endif
10455char $ac_func ();
10456/* The GNU C library defines this for functions which it implements
10457 to always fail with ENOSYS. Some functions are actually named
10458 something starting with __ and the normal name is an alias. */
10459#if defined __stub_$ac_func || defined __stub___$ac_func
10460choke me
10461#endif
10462
10463int
10464main ()
10465{
10466return $ac_func ();
10467 ;
10468 return 0;
10469}
10470_ACEOF
10471rm -f conftest.$ac_objext conftest$ac_exeext
10472if { (ac_try="$ac_link"
10473case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10476esac
10477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478 (eval "$ac_link") 2>conftest.er1
10479 ac_status=$?
10480 grep -v '^ *+' conftest.er1 >conftest.err
10481 rm -f conftest.er1
10482 cat conftest.err >&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } && {
10485 test -z "$ac_cxx_werror_flag" ||
10486 test ! -s conftest.err
10487 } && test -s conftest$ac_exeext &&
10488 $as_test_x conftest$ac_exeext; then
10489 eval "$as_ac_var=yes"
10490else
10491 echo "$as_me: failed program was:" >&5
10492sed 's/^/| /' conftest.$ac_ext >&5
10493
10494 eval "$as_ac_var=no"
10495fi
10496
10497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10498 conftest$ac_exeext conftest.$ac_ext
10499fi
10500ac_res=`eval echo '${'$as_ac_var'}'`
10501 { echo "$as_me:$LINENO: result: $ac_res" >&5
10502echo "${ECHO_T}$ac_res" >&6; }
10503if test `eval echo '${'$as_ac_var'}'` = yes; then
10504 cat >>confdefs.h <<_ACEOF 6658 cat >>confdefs.h <<_ACEOF
10505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6659#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10506_ACEOF 6660_ACEOF
10507 6661
10508fi 6662fi
10509done 6663done
10510 6664
10511 6665
10512
10513
10514
10515for ac_header in \ 6666for ac_header in lastlog.h
10516 utmp.h \ 6667do :
10517 utmpx.h \ 6668 ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
10518 lastlog.h \ 6669if test "x$ac_cv_header_lastlog_h" = x""yes; then :
10519
10520do
10521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10525if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10527fi
10528ac_res=`eval echo '${'$as_ac_Header'}'`
10529 { echo "$as_me:$LINENO: result: $ac_res" >&5
10530echo "${ECHO_T}$ac_res" >&6; }
10531else
10532 # Is the header compilable?
10533{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10534echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10535cat >conftest.$ac_ext <<_ACEOF
10536/* confdefs.h. */
10537_ACEOF
10538cat confdefs.h >>conftest.$ac_ext
10539cat >>conftest.$ac_ext <<_ACEOF
10540/* end confdefs.h. */
10541$ac_includes_default
10542#include <$ac_header>
10543_ACEOF
10544rm -f conftest.$ac_objext
10545if { (ac_try="$ac_compile"
10546case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10549esac
10550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_compile") 2>conftest.er1
10552 ac_status=$?
10553 grep -v '^ *+' conftest.er1 >conftest.err
10554 rm -f conftest.er1
10555 cat conftest.err >&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } && {
10558 test -z "$ac_cxx_werror_flag" ||
10559 test ! -s conftest.err
10560 } && test -s conftest.$ac_objext; then
10561 ac_header_compiler=yes
10562else
10563 echo "$as_me: failed program was:" >&5
10564sed 's/^/| /' conftest.$ac_ext >&5
10565
10566 ac_header_compiler=no
10567fi
10568
10569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10571echo "${ECHO_T}$ac_header_compiler" >&6; }
10572
10573# Is the header present?
10574{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10575echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10576cat >conftest.$ac_ext <<_ACEOF
10577/* confdefs.h. */
10578_ACEOF
10579cat confdefs.h >>conftest.$ac_ext
10580cat >>conftest.$ac_ext <<_ACEOF
10581/* end confdefs.h. */
10582#include <$ac_header>
10583_ACEOF
10584if { (ac_try="$ac_cpp conftest.$ac_ext"
10585case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10588esac
10589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10591 ac_status=$?
10592 grep -v '^ *+' conftest.er1 >conftest.err
10593 rm -f conftest.er1
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } >/dev/null && {
10597 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10598 test ! -s conftest.err
10599 }; then
10600 ac_header_preproc=yes
10601else
10602 echo "$as_me: failed program was:" >&5
10603sed 's/^/| /' conftest.$ac_ext >&5
10604
10605 ac_header_preproc=no
10606fi
10607
10608rm -f conftest.err conftest.$ac_ext
10609{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10610echo "${ECHO_T}$ac_header_preproc" >&6; }
10611
10612# So? What about this header?
10613case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10614 yes:no: )
10615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10616echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10618echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10619 ac_header_preproc=yes
10620 ;;
10621 no:yes:* )
10622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10623echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10625echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10627echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10629echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10631echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10633echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10634
10635 ;;
10636esac
10637{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10639if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10641else
10642 eval "$as_ac_Header=\$ac_header_preproc"
10643fi
10644ac_res=`eval echo '${'$as_ac_Header'}'`
10645 { echo "$as_me:$LINENO: result: $ac_res" >&5
10646echo "${ECHO_T}$ac_res" >&6; }
10647
10648fi
10649if test `eval echo '${'$as_ac_Header'}'` = yes; then
10650 cat >>confdefs.h <<_ACEOF 6670 cat >>confdefs.h <<_ACEOF
10651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6671#define HAVE_LASTLOG_H 1
10652_ACEOF 6672_ACEOF
10653 6673
10654fi 6674fi
10655 6675
10656done 6676done
10657 6677
10658 6678
10659 6679
10660if test "${ac_cv_header_utmp_h+set}" = set; then 6680for ac_header in utmp.h
10661 { echo "$as_me:$LINENO: checking for utmp.h" >&5 6681do :
10662echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 6682 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
10663if test "${ac_cv_header_utmp_h+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665fi
10666{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10667echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; }
10668else
10669 # Is the header compilable?
10670{ echo "$as_me:$LINENO: checking utmp.h usability" >&5
10671echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; }
10672cat >conftest.$ac_ext <<_ACEOF
10673/* confdefs.h. */
10674_ACEOF
10675cat confdefs.h >>conftest.$ac_ext
10676cat >>conftest.$ac_ext <<_ACEOF
10677/* end confdefs.h. */
10678$ac_includes_default
10679#include <utmp.h>
10680_ACEOF
10681rm -f conftest.$ac_objext
10682if { (ac_try="$ac_compile"
10683case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10686esac
10687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_compile") 2>conftest.er1
10689 ac_status=$?
10690 grep -v '^ *+' conftest.er1 >conftest.err
10691 rm -f conftest.er1
10692 cat conftest.err >&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } && {
10695 test -z "$ac_cxx_werror_flag" ||
10696 test ! -s conftest.err
10697 } && test -s conftest.$ac_objext; then
10698 ac_header_compiler=yes
10699else
10700 echo "$as_me: failed program was:" >&5
10701sed 's/^/| /' conftest.$ac_ext >&5
10702
10703 ac_header_compiler=no
10704fi
10705
10706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10707{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10708echo "${ECHO_T}$ac_header_compiler" >&6; }
10709
10710# Is the header present?
10711{ echo "$as_me:$LINENO: checking utmp.h presence" >&5
10712echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; }
10713cat >conftest.$ac_ext <<_ACEOF
10714/* confdefs.h. */
10715_ACEOF
10716cat confdefs.h >>conftest.$ac_ext
10717cat >>conftest.$ac_ext <<_ACEOF
10718/* end confdefs.h. */
10719#include <utmp.h>
10720_ACEOF
10721if { (ac_try="$ac_cpp conftest.$ac_ext"
10722case "(($ac_try" in
10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10725esac
10726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10728 ac_status=$?
10729 grep -v '^ *+' conftest.er1 >conftest.err
10730 rm -f conftest.er1
10731 cat conftest.err >&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } >/dev/null && {
10734 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10735 test ! -s conftest.err
10736 }; then
10737 ac_header_preproc=yes
10738else
10739 echo "$as_me: failed program was:" >&5
10740sed 's/^/| /' conftest.$ac_ext >&5
10741
10742 ac_header_preproc=no
10743fi
10744
10745rm -f conftest.err conftest.$ac_ext
10746{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10747echo "${ECHO_T}$ac_header_preproc" >&6; }
10748
10749# So? What about this header?
10750case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10751 yes:no: )
10752 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10753echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10754 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10755echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10756 ac_header_preproc=yes
10757 ;;
10758 no:yes:* )
10759 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10760echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10761 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10762echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10763 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10764echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10765 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10766echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10767 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10768echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10769 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10770echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10771
10772 ;;
10773esac
10774{ echo "$as_me:$LINENO: checking for utmp.h" >&5
10775echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; }
10776if test "${ac_cv_header_utmp_h+set}" = set; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10778else
10779 ac_cv_header_utmp_h=$ac_header_preproc
10780fi
10781{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10782echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; }
10783
10784fi
10785if test $ac_cv_header_utmp_h = yes; then 6683if test "x$ac_cv_header_utmp_h" = x""yes; then :
6684 cat >>confdefs.h <<_ACEOF
6685#define HAVE_UTMP_H 1
6686_ACEOF
10786 { echo "$as_me:$LINENO: checking for struct utmp" >&5 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utmp" >&5
10787echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } 6688$as_echo_n "checking for struct utmp... " >&6; }
10788if test "${struct_utmp+set}" = set; then 6689if test "${pt_cv_struct_utmp+set}" = set; then :
10789 echo $ECHO_N "(cached) $ECHO_C" >&6 6690 $as_echo_n "(cached) " >&6
10790else 6691else
10791 cat >conftest.$ac_ext <<_ACEOF
10792/* confdefs.h. */
10793_ACEOF
10794cat confdefs.h >>conftest.$ac_ext 6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795cat >>conftest.$ac_ext <<_ACEOF
10796/* end confdefs.h. */ 6693/* end confdefs.h. */
10797#include <sys/types.h> 6694#include <sys/types.h>
10798#include <utmp.h> 6695#include <utmp.h>
10799int 6696int
10800main () 6697main ()
10802struct utmp ut; 6699struct utmp ut;
10803 ; 6700 ;
10804 return 0; 6701 return 0;
10805} 6702}
10806_ACEOF 6703_ACEOF
10807rm -f conftest.$ac_objext 6704if ac_fn_cxx_try_compile "$LINENO"; then :
10808if { (ac_try="$ac_compile"
10809case "(($ac_try" in
10810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811 *) ac_try_echo=$ac_try;;
10812esac
10813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814 (eval "$ac_compile") 2>conftest.er1
10815 ac_status=$?
10816 grep -v '^ *+' conftest.er1 >conftest.err
10817 rm -f conftest.er1
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } && {
10821 test -z "$ac_cxx_werror_flag" ||
10822 test ! -s conftest.err
10823 } && test -s conftest.$ac_objext; then
10824 struct_utmp=yes 6705 pt_cv_struct_utmp=yes
10825else 6706else
10826 echo "$as_me: failed program was:" >&5
10827sed 's/^/| /' conftest.$ac_ext >&5
10828
10829 struct_utmp=no 6707 pt_cv_struct_utmp=no
10830fi 6708fi
10831
10832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10833fi 6710fi
10834{ echo "$as_me:$LINENO: result: $struct_utmp" >&5 6711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmp" >&5
10835echo "${ECHO_T}$struct_utmp" >&6; } 6712$as_echo "$pt_cv_struct_utmp" >&6; }
10836if test x$struct_utmp = xyes; then 6713if test x$pt_cv_struct_utmp = xyes; then
10837 6714
10838cat >>confdefs.h <<\_ACEOF 6715$as_echo "#define HAVE_STRUCT_UTMP 1" >>confdefs.h
10839#define HAVE_STRUCT_UTMP 1
10840_ACEOF
10841 6716
10842fi 6717fi
10843 6718
10844 6719
10845{ echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 6720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host in utmp struct" >&5
10846echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6; } 6721$as_echo_n "checking for ut_host in utmp struct... " >&6; }
10847if test "${struct_utmp_host+set}" = set; then 6722if test "${pt_cv_struct_utmp_host+set}" = set; then :
10848 echo $ECHO_N "(cached) $ECHO_C" >&6 6723 $as_echo_n "(cached) " >&6
10849else 6724else
10850 cat >conftest.$ac_ext <<_ACEOF
10851/* confdefs.h. */
10852_ACEOF
10853cat confdefs.h >>conftest.$ac_ext 6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854cat >>conftest.$ac_ext <<_ACEOF
10855/* end confdefs.h. */ 6726/* end confdefs.h. */
10856#include <sys/types.h> 6727#include <sys/types.h>
10857#include <utmp.h> 6728#include <utmp.h>
10858int 6729int
10859main () 6730main ()
10861struct utmp ut; ut.ut_host; 6732struct utmp ut; ut.ut_host;
10862 ; 6733 ;
10863 return 0; 6734 return 0;
10864} 6735}
10865_ACEOF 6736_ACEOF
10866rm -f conftest.$ac_objext 6737if ac_fn_cxx_try_compile "$LINENO"; then :
10867if { (ac_try="$ac_compile"
10868case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871esac
10872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_compile") 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } && {
10880 test -z "$ac_cxx_werror_flag" ||
10881 test ! -s conftest.err
10882 } && test -s conftest.$ac_objext; then
10883 struct_utmp_host=yes 6738 pt_cv_struct_utmp_host=yes
10884else 6739else
10885 echo "$as_me: failed program was:" >&5
10886sed 's/^/| /' conftest.$ac_ext >&5
10887
10888 struct_utmp_host=no 6740 pt_cv_struct_utmp_host=no
10889fi 6741fi
10890
10891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10892fi 6743fi
10893{ echo "$as_me:$LINENO: result: $struct_utmp_host" >&5 6744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmp_host" >&5
10894echo "${ECHO_T}$struct_utmp_host" >&6; } 6745$as_echo "$pt_cv_struct_utmp_host" >&6; }
10895if test x$struct_utmp_host = xyes; then 6746if test x$pt_cv_struct_utmp_host = xyes; then
10896 6747
10897cat >>confdefs.h <<\_ACEOF 6748$as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
10898#define HAVE_UTMP_HOST 1
10899_ACEOF
10900 6749
10901fi 6750fi
10902 6751
10903{ echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid in utmp struct" >&5
10904echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6; } 6753$as_echo_n "checking for ut_pid in utmp struct... " >&6; }
10905if test "${struct_utmp_pid+set}" = set; then 6754if test "${pt_cv_struct_utmp_pid+set}" = set; then :
10906 echo $ECHO_N "(cached) $ECHO_C" >&6 6755 $as_echo_n "(cached) " >&6
10907else 6756else
10908 cat >conftest.$ac_ext <<_ACEOF
10909/* confdefs.h. */
10910_ACEOF
10911cat confdefs.h >>conftest.$ac_ext 6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10912cat >>conftest.$ac_ext <<_ACEOF
10913/* end confdefs.h. */ 6758/* end confdefs.h. */
10914#include <sys/types.h> 6759#include <sys/types.h>
10915#include <utmp.h> 6760#include <utmp.h>
10916int 6761int
10917main () 6762main ()
10919struct utmp ut; ut.ut_pid; 6764struct utmp ut; ut.ut_pid;
10920 ; 6765 ;
10921 return 0; 6766 return 0;
10922} 6767}
10923_ACEOF 6768_ACEOF
10924rm -f conftest.$ac_objext 6769if ac_fn_cxx_try_compile "$LINENO"; then :
10925if { (ac_try="$ac_compile"
10926case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10929esac
10930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931 (eval "$ac_compile") 2>conftest.er1
10932 ac_status=$?
10933 grep -v '^ *+' conftest.er1 >conftest.err
10934 rm -f conftest.er1
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } && {
10938 test -z "$ac_cxx_werror_flag" ||
10939 test ! -s conftest.err
10940 } && test -s conftest.$ac_objext; then
10941 struct_utmp_pid=yes 6770 pt_cv_struct_utmp_pid=yes
10942else 6771else
10943 echo "$as_me: failed program was:" >&5
10944sed 's/^/| /' conftest.$ac_ext >&5
10945
10946 struct_utmp_pid=no 6772 pt_cv_struct_utmp_pid=no
10947fi 6773fi
10948
10949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950fi 6775fi
10951{ echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5 6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmp_pid" >&5
10952echo "${ECHO_T}$struct_utmp_pid" >&6; } 6777$as_echo "$pt_cv_struct_utmp_pid" >&6; }
10953if test x$struct_utmp_pid = xyes; then 6778if test x$pt_cv_struct_utmp_pid = xyes; then
10954 6779
6780$as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
6781
6782fi
6783
6784fi
6785
6786done
6787
6788
6789for ac_header in utmpx.h
6790do :
6791 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6792if test "x$ac_cv_header_utmpx_h" = x""yes; then :
10955cat >>confdefs.h <<\_ACEOF 6793 cat >>confdefs.h <<_ACEOF
10956#define HAVE_UTMP_PID 1 6794#define HAVE_UTMPX_H 1
10957_ACEOF 6795_ACEOF
10958
10959fi
10960
10961fi
10962
10963
10964
10965if test "${ac_cv_header_utmpx_h+set}" = set; then
10966 { echo "$as_me:$LINENO: checking for utmpx.h" >&5
10967echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; }
10968if test "${ac_cv_header_utmpx_h+set}" = set; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10970fi
10971{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10972echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; }
10973else
10974 # Is the header compilable?
10975{ echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10976echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; }
10977cat >conftest.$ac_ext <<_ACEOF
10978/* confdefs.h. */
10979_ACEOF
10980cat confdefs.h >>conftest.$ac_ext
10981cat >>conftest.$ac_ext <<_ACEOF
10982/* end confdefs.h. */
10983$ac_includes_default
10984#include <utmpx.h>
10985_ACEOF
10986rm -f conftest.$ac_objext
10987if { (ac_try="$ac_compile"
10988case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10991esac
10992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_compile") 2>conftest.er1
10994 ac_status=$?
10995 grep -v '^ *+' conftest.er1 >conftest.err
10996 rm -f conftest.er1
10997 cat conftest.err >&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } && {
11000 test -z "$ac_cxx_werror_flag" ||
11001 test ! -s conftest.err
11002 } && test -s conftest.$ac_objext; then
11003 ac_header_compiler=yes
11004else
11005 echo "$as_me: failed program was:" >&5
11006sed 's/^/| /' conftest.$ac_ext >&5
11007
11008 ac_header_compiler=no
11009fi
11010
11011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11013echo "${ECHO_T}$ac_header_compiler" >&6; }
11014
11015# Is the header present?
11016{ echo "$as_me:$LINENO: checking utmpx.h presence" >&5
11017echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; }
11018cat >conftest.$ac_ext <<_ACEOF
11019/* confdefs.h. */
11020_ACEOF
11021cat confdefs.h >>conftest.$ac_ext
11022cat >>conftest.$ac_ext <<_ACEOF
11023/* end confdefs.h. */
11024#include <utmpx.h>
11025_ACEOF
11026if { (ac_try="$ac_cpp conftest.$ac_ext"
11027case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } >/dev/null && {
11039 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11040 test ! -s conftest.err
11041 }; then
11042 ac_header_preproc=yes
11043else
11044 echo "$as_me: failed program was:" >&5
11045sed 's/^/| /' conftest.$ac_ext >&5
11046
11047 ac_header_preproc=no
11048fi
11049
11050rm -f conftest.err conftest.$ac_ext
11051{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11052echo "${ECHO_T}$ac_header_preproc" >&6; }
11053
11054# So? What about this header?
11055case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11056 yes:no: )
11057 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
11058echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11059 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
11060echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
11061 ac_header_preproc=yes
11062 ;;
11063 no:yes:* )
11064 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
11065echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
11066 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
11067echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
11068 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
11069echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
11070 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
11071echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
11072 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
11073echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
11074 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
11075echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
11076
11077 ;;
11078esac
11079{ echo "$as_me:$LINENO: checking for utmpx.h" >&5
11080echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; }
11081if test "${ac_cv_header_utmpx_h+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11083else
11084 ac_cv_header_utmpx_h=$ac_header_preproc
11085fi
11086{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
11087echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; }
11088
11089fi
11090if test $ac_cv_header_utmpx_h = yes; then
11091 { echo "$as_me:$LINENO: checking for struct utmpx" >&5 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utmpx" >&5
11092echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } 6797$as_echo_n "checking for struct utmpx... " >&6; }
11093if test "${struct_utmpx+set}" = set; then 6798if test "${pt_cv_struct_utmpx+set}" = set; then :
11094 echo $ECHO_N "(cached) $ECHO_C" >&6 6799 $as_echo_n "(cached) " >&6
11095else 6800else
11096 cat >conftest.$ac_ext <<_ACEOF
11097/* confdefs.h. */
11098_ACEOF
11099cat confdefs.h >>conftest.$ac_ext 6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100cat >>conftest.$ac_ext <<_ACEOF
11101/* end confdefs.h. */ 6802/* end confdefs.h. */
11102#include <sys/types.h> 6803#include <sys/types.h>
11103#include <utmpx.h> 6804#include <utmpx.h>
11104int 6805int
11105main () 6806main ()
11107struct utmpx ut; 6808struct utmpx ut;
11108 ; 6809 ;
11109 return 0; 6810 return 0;
11110} 6811}
11111_ACEOF 6812_ACEOF
11112rm -f conftest.$ac_objext 6813if ac_fn_cxx_try_compile "$LINENO"; then :
11113if { (ac_try="$ac_compile"
11114case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117esac
11118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_compile") 2>conftest.er1
11120 ac_status=$?
11121 grep -v '^ *+' conftest.er1 >conftest.err
11122 rm -f conftest.er1
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } && {
11126 test -z "$ac_cxx_werror_flag" ||
11127 test ! -s conftest.err
11128 } && test -s conftest.$ac_objext; then
11129 struct_utmpx=yes 6814 pt_cv_struct_utmpx=yes
11130else 6815else
11131 echo "$as_me: failed program was:" >&5
11132sed 's/^/| /' conftest.$ac_ext >&5
11133
11134 struct_utmpx=no 6816 pt_cv_struct_utmpx=no
11135fi 6817fi
11136
11137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11138fi 6819fi
11139{ echo "$as_me:$LINENO: result: $struct_utmpx" >&5 6820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmpx" >&5
11140echo "${ECHO_T}$struct_utmpx" >&6; } 6821$as_echo "$pt_cv_struct_utmpx" >&6; }
11141if test x$struct_utmpx = xyes; then 6822if test x$pt_cv_struct_utmpx = xyes; then
11142 6823
11143cat >>confdefs.h <<\_ACEOF 6824$as_echo "#define HAVE_STRUCT_UTMPX 1" >>confdefs.h
11144#define HAVE_STRUCT_UTMPX 1
11145_ACEOF
11146 6825
11147fi 6826fi
11148 6827
11149 6828
11150{ echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 6829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host in utmpx struct" >&5
11151echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6; } 6830$as_echo_n "checking for host in utmpx struct... " >&6; }
11152if test "${struct_utmpx_host+set}" = set; then 6831if test "${pt_cv_struct_utmpx_host+set}" = set; then :
11153 echo $ECHO_N "(cached) $ECHO_C" >&6 6832 $as_echo_n "(cached) " >&6
11154else 6833else
11155 cat >conftest.$ac_ext <<_ACEOF
11156/* confdefs.h. */
11157_ACEOF
11158cat confdefs.h >>conftest.$ac_ext 6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159cat >>conftest.$ac_ext <<_ACEOF
11160/* end confdefs.h. */ 6835/* end confdefs.h. */
11161#include <sys/types.h> 6836#include <sys/types.h>
11162#include <utmpx.h> 6837#include <utmpx.h>
11163int 6838int
11164main () 6839main ()
11166struct utmpx utx; utx.ut_host; 6841struct utmpx utx; utx.ut_host;
11167 ; 6842 ;
11168 return 0; 6843 return 0;
11169} 6844}
11170_ACEOF 6845_ACEOF
11171rm -f conftest.$ac_objext 6846if ac_fn_cxx_try_compile "$LINENO"; then :
11172if { (ac_try="$ac_compile"
11173case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176esac
11177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_compile") 2>conftest.er1
11179 ac_status=$?
11180 grep -v '^ *+' conftest.er1 >conftest.err
11181 rm -f conftest.er1
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } && {
11185 test -z "$ac_cxx_werror_flag" ||
11186 test ! -s conftest.err
11187 } && test -s conftest.$ac_objext; then
11188 struct_utmpx_host=yes 6847 pt_cv_struct_utmpx_host=yes
11189else 6848else
11190 echo "$as_me: failed program was:" >&5
11191sed 's/^/| /' conftest.$ac_ext >&5
11192
11193 struct_utmpx_host=no 6849 pt_cv_struct_utmpx_host=no
11194fi 6850fi
11195
11196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11197fi 6852fi
11198{ echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5 6853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmpx_host" >&5
11199echo "${ECHO_T}$struct_utmpx_host" >&6; } 6854$as_echo "$pt_cv_struct_utmpx_host" >&6; }
11200if test x$struct_utmpx_host = xyes; then 6855if test x$pt_cv_struct_utmpx_host = xyes; then
11201 6856
11202cat >>confdefs.h <<\_ACEOF 6857$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
11203#define HAVE_UTMPX_HOST 1
11204_ACEOF
11205 6858
11206fi 6859fi
11207 6860
11208{ echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 6861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for session in utmpx struct" >&5
11209echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6; } 6862$as_echo_n "checking for session in utmpx struct... " >&6; }
11210if test "${struct_utmpx_session+set}" = set; then 6863if test "${pt_cv_struct_utmpx_session+set}" = set; then :
11211 echo $ECHO_N "(cached) $ECHO_C" >&6 6864 $as_echo_n "(cached) " >&6
11212else 6865else
11213 cat >conftest.$ac_ext <<_ACEOF
11214/* confdefs.h. */
11215_ACEOF
11216cat confdefs.h >>conftest.$ac_ext 6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217cat >>conftest.$ac_ext <<_ACEOF
11218/* end confdefs.h. */ 6867/* end confdefs.h. */
11219#include <sys/types.h> 6868#include <sys/types.h>
11220#include <utmpx.h> 6869#include <utmpx.h>
11221int 6870int
11222main () 6871main ()
11224struct utmpx utx; utx.ut_session; 6873struct utmpx utx; utx.ut_session;
11225 ; 6874 ;
11226 return 0; 6875 return 0;
11227} 6876}
11228_ACEOF 6877_ACEOF
11229rm -f conftest.$ac_objext 6878if ac_fn_cxx_try_compile "$LINENO"; then :
11230if { (ac_try="$ac_compile"
11231case "(($ac_try" in
11232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233 *) ac_try_echo=$ac_try;;
11234esac
11235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236 (eval "$ac_compile") 2>conftest.er1
11237 ac_status=$?
11238 grep -v '^ *+' conftest.er1 >conftest.err
11239 rm -f conftest.er1
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } && {
11243 test -z "$ac_cxx_werror_flag" ||
11244 test ! -s conftest.err
11245 } && test -s conftest.$ac_objext; then
11246 struct_utmpx_session=yes 6879 pt_cv_struct_utmpx_session=yes
11247else 6880else
11248 echo "$as_me: failed program was:" >&5
11249sed 's/^/| /' conftest.$ac_ext >&5
11250
11251 struct_utmpx_session=no 6881 pt_cv_struct_utmpx_session=no
11252fi 6882fi
11253
11254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11255fi 6884fi
11256{ echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5 6885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmpx_session" >&5
11257echo "${ECHO_T}$struct_utmpx_session" >&6; } 6886$as_echo "$pt_cv_struct_utmpx_session" >&6; }
11258if test x$struct_utmpx_session = xyes; then 6887if test x$pt_cv_struct_utmpx_session = xyes; then
11259 6888
11260cat >>confdefs.h <<\_ACEOF 6889$as_echo "#define HAVE_UTMPX_SESSION 1" >>confdefs.h
11261#define HAVE_UTMPX_SESSION 1
11262_ACEOF
11263 6890
11264fi 6891fi
11265 6892
11266fi 6893fi
11267 6894
6895done
11268 6896
11269{ echo "$as_me:$LINENO: checking for struct lastlog" >&5 6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lastlog" >&5
11270echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } 6898$as_echo_n "checking for struct lastlog... " >&6; }
11271if test "${struct_lastlog+set}" = set; then 6899if test "${pt_cv_struct_lastlog+set}" = set; then :
11272 echo $ECHO_N "(cached) $ECHO_C" >&6 6900 $as_echo_n "(cached) " >&6
11273else 6901else
11274 cat >conftest.$ac_ext <<_ACEOF
11275/* confdefs.h. */
11276_ACEOF
11277cat confdefs.h >>conftest.$ac_ext 6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278cat >>conftest.$ac_ext <<_ACEOF
11279/* end confdefs.h. */ 6903/* end confdefs.h. */
11280#include <sys/types.h> 6904#include <sys/types.h>
11281#include <utmp.h> 6905#include <utmp.h>
11282#ifdef HAVE_LASTLOG_H 6906#ifdef HAVE_LASTLOG_H
11283#include <lastlog.h> 6907#include <lastlog.h>
11289struct lastlog ll; 6913struct lastlog ll;
11290 ; 6914 ;
11291 return 0; 6915 return 0;
11292} 6916}
11293_ACEOF 6917_ACEOF
11294rm -f conftest.$ac_objext 6918if ac_fn_cxx_try_compile "$LINENO"; then :
11295if { (ac_try="$ac_compile"
11296case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11299esac
11300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_compile") 2>conftest.er1
11302 ac_status=$?
11303 grep -v '^ *+' conftest.er1 >conftest.err
11304 rm -f conftest.er1
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } && {
11308 test -z "$ac_cxx_werror_flag" ||
11309 test ! -s conftest.err
11310 } && test -s conftest.$ac_objext; then
11311 struct_lastlog=yes 6919 pt_cv_struct_lastlog=yes
11312else 6920else
11313 echo "$as_me: failed program was:" >&5
11314sed 's/^/| /' conftest.$ac_ext >&5
11315
11316 struct_lastlog=no 6921 pt_cv_struct_lastlog=no
11317fi 6922fi
11318
11319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11320fi 6924fi
11321{ echo "$as_me:$LINENO: result: $struct_lastlog" >&5 6925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_lastlog" >&5
11322echo "${ECHO_T}$struct_lastlog" >&6; } 6926$as_echo "$pt_cv_struct_lastlog" >&6; }
11323if test x$struct_lastlog = xyes; then 6927if test x$pt_cv_struct_lastlog = xyes; then
11324 6928
11325cat >>confdefs.h <<\_ACEOF 6929$as_echo "#define HAVE_STRUCT_LASTLOG 1" >>confdefs.h
11326#define HAVE_STRUCT_LASTLOG 1
11327_ACEOF
11328 6930
11329fi 6931fi
11330 6932
11331{ echo "$as_me:$LINENO: checking for struct lastlogx" >&5 6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lastlogx" >&5
11332echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6; } 6934$as_echo_n "checking for struct lastlogx... " >&6; }
11333if test "${struct_lastlogx+set}" = set; then 6935if test "${pt_cv_struct_lastlogx+set}" = set; then :
11334 echo $ECHO_N "(cached) $ECHO_C" >&6 6936 $as_echo_n "(cached) " >&6
11335else 6937else
11336 cat >conftest.$ac_ext <<_ACEOF
11337/* confdefs.h. */
11338_ACEOF
11339cat confdefs.h >>conftest.$ac_ext 6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340cat >>conftest.$ac_ext <<_ACEOF
11341/* end confdefs.h. */ 6939/* end confdefs.h. */
11342#include <sys/types.h> 6940#include <sys/types.h>
11343#include <utmpx.h> 6941#include <utmpx.h>
11344#ifdef HAVE_LASTLOG_H 6942#ifdef HAVE_LASTLOG_H
11345#include <lastlog.h> 6943#include <lastlog.h>
11351struct lastlogx ll; 6949struct lastlogx ll;
11352 ; 6950 ;
11353 return 0; 6951 return 0;
11354} 6952}
11355_ACEOF 6953_ACEOF
11356rm -f conftest.$ac_objext 6954if ac_fn_cxx_try_compile "$LINENO"; then :
11357if { (ac_try="$ac_compile"
11358case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11361esac
11362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_compile") 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } && {
11370 test -z "$ac_cxx_werror_flag" ||
11371 test ! -s conftest.err
11372 } && test -s conftest.$ac_objext; then
11373 struct_lastlogx=yes 6955 pt_cv_struct_lastlogx=yes
11374else 6956else
11375 echo "$as_me: failed program was:" >&5
11376sed 's/^/| /' conftest.$ac_ext >&5
11377
11378 struct_lastlogx=no 6957 pt_cv_struct_lastlogx=no
11379fi 6958fi
11380
11381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11382fi 6960fi
11383{ echo "$as_me:$LINENO: result: $struct_lastlogx" >&5 6961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_lastlogx" >&5
11384echo "${ECHO_T}$struct_lastlogx" >&6; } 6962$as_echo "$pt_cv_struct_lastlogx" >&6; }
11385if test x$struct_lastlogx = xyes; then 6963if test x$pt_cv_struct_lastlogx = xyes; then
11386 6964
11387cat >>confdefs.h <<\_ACEOF 6965$as_echo "#define HAVE_STRUCT_LASTLOGX 1" >>confdefs.h
11388#define HAVE_STRUCT_LASTLOGX 1
11389_ACEOF
11390 6966
11391fi 6967fi
11392 6968
11393 6969
11394{ echo "$as_me:$LINENO: checking where utmp is located" >&5 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where utmp is located" >&5
11395echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6; } 6971$as_echo_n "checking where utmp is located... " >&6; }
11396if test "${path_utmp+set}" = set; then 6972if test "${pt_cv_path_utmp+set}" = set; then :
11397 echo $ECHO_N "(cached) $ECHO_C" >&6 6973 $as_echo_n "(cached) " >&6
11398else 6974else
11399 if test "$cross_compiling" = yes; then 6975 if test "$cross_compiling" = yes; then :
11400 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define UTMP_FILE in config.h manually" >&5
11401echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} 6977$as_echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
11402else 6978else
11403 cat >conftest.$ac_ext <<_ACEOF
11404/* confdefs.h. */
11405_ACEOF
11406cat confdefs.h >>conftest.$ac_ext 6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407cat >>conftest.$ac_ext <<_ACEOF
11408/* end confdefs.h. */ 6980/* end confdefs.h. */
11409#include <stdio.h> 6981#include <stdio.h>
11410#include <stdlib.h> 6982#include <stdlib.h>
11411#include <sys/types.h> 6983#include <sys/types.h>
11412#include <utmp.h> 6984#include <utmp.h>
11432 } 7004 }
11433 } 7005 }
11434 exit(0); 7006 exit(0);
11435} 7007}
11436_ACEOF 7008_ACEOF
11437rm -f conftest$ac_exeext 7009if ac_fn_cxx_try_run "$LINENO"; then :
11438if { (ac_try="$ac_link"
11439case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11442esac
11443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_link") 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11448 { (case "(($ac_try" in
11449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450 *) ac_try_echo=$ac_try;;
11451esac
11452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453 (eval "$ac_try") 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 path_utmp=`cat conftestval` 7010 pt_cv_path_utmp=`cat conftestval`
11458else 7011else
11459 echo "$as_me: program exited with status $ac_status" >&5 7012 pt_cv_path_utmp=
11460echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
11463( exit $ac_status )
11464path_utmp=
11465fi 7013fi
11466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7015 conftest.$ac_objext conftest.beam conftest.$ac_ext
11467fi 7016fi
11468 7017
11469
11470fi 7018fi
11471{ echo "$as_me:$LINENO: result: $path_utmp" >&5 7019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
11472echo "${ECHO_T}$path_utmp" >&6; } 7020$as_echo "$pt_cv_path_utmp" >&6; }
11473if test x$path_utmp != x; then 7021if test x$pt_cv_path_utmp != x; then
11474 7022
11475cat >>confdefs.h <<_ACEOF 7023cat >>confdefs.h <<_ACEOF
11476#define UTMP_FILE "$path_utmp" 7024#define UTMP_FILE "$pt_cv_path_utmp"
11477_ACEOF 7025_ACEOF
11478 7026
11479fi 7027fi
11480 7028
11481 7029
11482{ echo "$as_me:$LINENO: checking where utmpx is located" >&5 7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmp is located" >&5
11483echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6; } 7031$as_echo_n "checking where wtmp is located... " >&6; }
11484if test "${path_utmpx+set}" = set; then 7032if test "${pt_cv_path_wtmp+set}" = set; then :
11485 echo $ECHO_N "(cached) $ECHO_C" >&6 7033 $as_echo_n "(cached) " >&6
11486else 7034else
11487 if test "$cross_compiling" = yes; then 7035 if test "$cross_compiling" = yes; then :
11488 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
11489echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
11490else
11491 cat >conftest.$ac_ext <<_ACEOF
11492/* confdefs.h. */
11493_ACEOF
11494cat confdefs.h >>conftest.$ac_ext
11495cat >>conftest.$ac_ext <<_ACEOF
11496/* end confdefs.h. */
11497#include <stdio.h>
11498#include <stdlib.h>
11499#include <sys/types.h>
11500#include <utmpx.h>
11501#include <errno.h>
11502#include <sys/stat.h>
11503#ifdef HAVE_STRING_H
11504#include <string.h>
11505#endif
11506main()
11507{
11508 char **u, *p, *utmplist[] = {
11509#ifdef UTMPX_FILE
11510 UTMPX_FILE,
11511#endif
11512#ifdef _PATH_UTMPX
11513 _PATH_UTMPX,
11514#endif
11515 "/var/adm/utmpx", "/etc/utmpx", NULL };
11516 FILE *a, *f=fopen("conftestval", "w");
11517 struct stat statu, statux;
11518 if (!f) exit(1);
11519 for (u = utmplist; *u; u++) {
11520 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11521 if (stat(*u, &statux) < 0)
11522 continue;
11523 p = strdup(*u);
11524 p[strlen(p) - 1] = '\0';
11525 if (stat(p, &statu) >= 0
11526 && (statu.st_mtime - statux.st_mtime > 86400))
11527 continue;
11528 fprintf(f, "%s\n", *u);
11529 exit(0);
11530 }
11531 }
11532 exit(0);
11533}
11534_ACEOF
11535rm -f conftest$ac_exeext
11536if { (ac_try="$ac_link"
11537case "(($ac_try" in
11538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539 *) ac_try_echo=$ac_try;;
11540esac
11541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11542 (eval "$ac_link") 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11546 { (case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11549esac
11550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_try") 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 path_utmpx=`cat conftestval`
11556else
11557 echo "$as_me: program exited with status $ac_status" >&5
11558echo "$as_me: failed program was:" >&5
11559sed 's/^/| /' conftest.$ac_ext >&5
11560
11561( exit $ac_status )
11562path_utmpx=
11563fi
11564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11565fi
11566
11567
11568fi
11569{ echo "$as_me:$LINENO: result: $path_utmpx" >&5
11570echo "${ECHO_T}$path_utmpx" >&6; }
11571if test x$path_utmpx != x; then
11572
11573cat >>confdefs.h <<_ACEOF
11574#define UTMPX_FILE "$path_utmpx"
11575_ACEOF
11576
11577fi
11578
11579
11580{ echo "$as_me:$LINENO: checking where wtmp is located" >&5
11581echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6; }
11582if test "${path_wtmp+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11584else
11585 if test "$cross_compiling" = yes; then
11586 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMP_FILE in config.h manually" >&5
11587echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} 7037$as_echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
11588else 7038else
11589 cat >conftest.$ac_ext <<_ACEOF
11590/* confdefs.h. */
11591_ACEOF
11592cat confdefs.h >>conftest.$ac_ext 7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593cat >>conftest.$ac_ext <<_ACEOF
11594/* end confdefs.h. */ 7040/* end confdefs.h. */
11595#include <stdio.h> 7041#include <stdio.h>
11596#include <stdlib.h> 7042#include <stdlib.h>
11597#include <sys/types.h> 7043#include <sys/types.h>
11598#ifdef HAVE_UTMP_H 7044#ifdef HAVE_UTMP_H
11620 } 7066 }
11621 } 7067 }
11622 exit(0); 7068 exit(0);
11623} 7069}
11624_ACEOF 7070_ACEOF
11625rm -f conftest$ac_exeext 7071if ac_fn_cxx_try_run "$LINENO"; then :
11626if { (ac_try="$ac_link"
11627case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11630esac
11631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11632 (eval "$ac_link") 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11636 { (case "(($ac_try" in
11637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638 *) ac_try_echo=$ac_try;;
11639esac
11640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11641 (eval "$ac_try") 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11645 path_wtmp=`cat conftestval` 7072 pt_cv_path_wtmp=`cat conftestval`
11646else 7073else
11647 echo "$as_me: program exited with status $ac_status" >&5 7074 pt_cv_path_wtmp=
11648echo "$as_me: failed program was:" >&5
11649sed 's/^/| /' conftest.$ac_ext >&5
11650
11651( exit $ac_status )
11652path_wtmp=
11653fi 7075fi
11654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7077 conftest.$ac_objext conftest.beam conftest.$ac_ext
11655fi 7078fi
11656 7079
11657
11658fi 7080fi
11659{ echo "$as_me:$LINENO: result: $path_wtmp" >&5 7081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
11660echo "${ECHO_T}$path_wtmp" >&6; } 7082$as_echo "$pt_cv_path_wtmp" >&6; }
11661if test x$path_wtmp != x; then 7083if test x$pt_cv_path_wtmp != x; then
11662 7084
11663cat >>confdefs.h <<_ACEOF 7085cat >>confdefs.h <<_ACEOF
11664#define WTMP_FILE "$path_wtmp" 7086#define WTMP_FILE "$pt_cv_path_wtmp"
11665_ACEOF 7087_ACEOF
11666 7088
11667fi 7089fi
11668 7090
11669{ echo "$as_me:$LINENO: checking where wtmpx is located" >&5 7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmpx is located" >&5
11670echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6; } 7092$as_echo_n "checking where wtmpx is located... " >&6; }
11671if test "${path_wtmpx+set}" = set; then 7093if test "${pt_cv_path_wtmpx+set}" = set; then :
11672 echo $ECHO_N "(cached) $ECHO_C" >&6 7094 $as_echo_n "(cached) " >&6
11673else 7095else
11674 if test "$cross_compiling" = yes; then 7096 if test "$cross_compiling" = yes; then :
11675 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 7097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMPX_FILE in config.h manually" >&5
11676echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} 7098$as_echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
11677else 7099else
11678 cat >conftest.$ac_ext <<_ACEOF
11679/* confdefs.h. */
11680_ACEOF
11681cat confdefs.h >>conftest.$ac_ext 7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682cat >>conftest.$ac_ext <<_ACEOF
11683/* end confdefs.h. */ 7101/* end confdefs.h. */
11684#include <stdio.h> 7102#include <stdio.h>
11685#include <stdlib.h> 7103#include <stdlib.h>
11686#ifdef HAVE_UTMPX_H 7104#ifdef HAVE_UTMPX_H
11687#include <utmpx.h> 7105#include <utmpx.h>
11708 } 7126 }
11709 } 7127 }
11710 exit(0); 7128 exit(0);
11711} 7129}
11712_ACEOF 7130_ACEOF
11713rm -f conftest$ac_exeext 7131if ac_fn_cxx_try_run "$LINENO"; then :
11714if { (ac_try="$ac_link"
11715case "(($ac_try" in
11716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717 *) ac_try_echo=$ac_try;;
11718esac
11719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720 (eval "$ac_link") 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11724 { (case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11727esac
11728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_try") 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; }; then
11733 path_wtmpx=`cat conftestval` 7132 pt_cv_path_wtmpx=`cat conftestval`
11734else 7133else
11735 echo "$as_me: program exited with status $ac_status" >&5 7134 pt_cv_path_wtmpx=
11736echo "$as_me: failed program was:" >&5
11737sed 's/^/| /' conftest.$ac_ext >&5
11738
11739( exit $ac_status )
11740path_wtmpx=
11741fi 7135fi
11742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7137 conftest.$ac_objext conftest.beam conftest.$ac_ext
11743fi 7138fi
11744 7139
11745
11746fi 7140fi
11747{ echo "$as_me:$LINENO: result: $path_wtmpx" >&5 7141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
11748echo "${ECHO_T}$path_wtmpx" >&6; } 7142$as_echo "$pt_cv_path_wtmpx" >&6; }
11749if test x$path_wtmpx != x; then 7143if test x$pt_cv_path_wtmpx != x; then
11750 7144
11751cat >>confdefs.h <<_ACEOF 7145cat >>confdefs.h <<_ACEOF
11752#define WTMPX_FILE "$path_wtmpx" 7146#define WTMPX_FILE "$pt_cv_path_wtmpx"
11753_ACEOF 7147_ACEOF
11754 7148
11755fi 7149fi
11756 7150
11757{ echo "$as_me:$LINENO: checking where lastlog is located" >&5 7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlog is located" >&5
11758echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6; } 7152$as_echo_n "checking where lastlog is located... " >&6; }
11759if test "${path_lastlog+set}" = set; then 7153if test "${pt_cv_path_lastlog+set}" = set; then :
11760 echo $ECHO_N "(cached) $ECHO_C" >&6 7154 $as_echo_n "(cached) " >&6
11761else 7155else
11762 if test "$cross_compiling" = yes; then 7156 if test "$cross_compiling" = yes; then :
11763 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 7157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOG_FILE in config.h manually" >&5
11764echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} 7158$as_echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
11765else 7159else
11766 cat >conftest.$ac_ext <<_ACEOF
11767/* confdefs.h. */
11768_ACEOF
11769cat confdefs.h >>conftest.$ac_ext 7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770cat >>conftest.$ac_ext <<_ACEOF
11771/* end confdefs.h. */ 7161/* end confdefs.h. */
11772#include <stdio.h> 7162#include <stdio.h>
11773#include <stdlib.h> 7163#include <stdlib.h>
11774#include <sys/types.h> 7164#include <sys/types.h>
11775#ifdef HAVE_UTMPX_H 7165#ifdef HAVE_UTMPX_H
11801 } 7191 }
11802 } 7192 }
11803 exit(0); 7193 exit(0);
11804} 7194}
11805_ACEOF 7195_ACEOF
11806rm -f conftest$ac_exeext 7196if ac_fn_cxx_try_run "$LINENO"; then :
11807if { (ac_try="$ac_link"
11808case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11811esac
11812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_link") 2>&5
11814 ac_status=$?
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11817 { (case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11820esac
11821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_try") 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 path_lastlog=`cat conftestval` 7197 pt_cv_path_lastlog=`cat conftestval`
11827else 7198else
11828 echo "$as_me: program exited with status $ac_status" >&5
11829echo "$as_me: failed program was:" >&5
11830sed 's/^/| /' conftest.$ac_ext >&5
11831
11832( exit $ac_status )
11833path_lastlog= 7199 pt_cv_path_lastlog=
11834fi 7200fi
11835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7202 conftest.$ac_objext conftest.beam conftest.$ac_ext
11836fi 7203fi
11837 7204
11838
11839fi 7205fi
11840{ echo "$as_me:$LINENO: result: $path_lastlog" >&5 7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
11841echo "${ECHO_T}$path_lastlog" >&6; } 7207$as_echo "$pt_cv_path_lastlog" >&6; }
11842if test x$path_lastlog != x; then 7208if test x$pt_cv_path_lastlog != x; then
11843 7209
11844cat >>confdefs.h <<_ACEOF 7210cat >>confdefs.h <<_ACEOF
11845#define LASTLOG_FILE "$path_lastlog" 7211#define LASTLOG_FILE "$pt_cv_path_lastlog"
11846_ACEOF 7212_ACEOF
11847 7213
11848 if test -d "$path_lastlog"; then
11849
11850cat >>confdefs.h <<\_ACEOF
11851#define LASTLOG_IS_DIR 1
11852_ACEOF
11853
11854 fi
11855fi 7214fi
11856 7215
11857{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 7216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlogx is located" >&5
11858echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 7217$as_echo_n "checking where lastlogx is located... " >&6; }
11859if test "${path_lastlogx+set}" = set; then 7218if test "${pt_cv_path_lastlogx+set}" = set; then :
11860 echo $ECHO_N "(cached) $ECHO_C" >&6 7219 $as_echo_n "(cached) " >&6
11861else 7220else
11862 if test "$cross_compiling" = yes; then 7221 if test "$cross_compiling" = yes; then :
11863 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
11864echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} 7223$as_echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
11865else 7224else
11866 cat >conftest.$ac_ext <<_ACEOF
11867/* confdefs.h. */
11868_ACEOF
11869cat confdefs.h >>conftest.$ac_ext 7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870cat >>conftest.$ac_ext <<_ACEOF
11871/* end confdefs.h. */ 7226/* end confdefs.h. */
11872#include <stdio.h> 7227#include <stdio.h>
11873#include <stdlib.h> 7228#include <stdlib.h>
11874#ifdef HAVE_UTMPX_H 7229#ifdef HAVE_UTMPX_H
11875#include <utmpx.h> 7230#include <utmpx.h>
11895 } 7250 }
11896 } 7251 }
11897 exit(0); 7252 exit(0);
11898} 7253}
11899_ACEOF 7254_ACEOF
11900rm -f conftest$ac_exeext 7255if ac_fn_cxx_try_run "$LINENO"; then :
11901if { (ac_try="$ac_link"
11902case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11905esac
11906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_link") 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11911 { (case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11914esac
11915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916 (eval "$ac_try") 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 path_lastlogx=`cat conftestval` 7256 pt_cv_path_lastlogx=`cat conftestval`
11921else 7257else
11922 echo "$as_me: program exited with status $ac_status" >&5
11923echo "$as_me: failed program was:" >&5
11924sed 's/^/| /' conftest.$ac_ext >&5
11925
11926( exit $ac_status )
11927path_lastlogx= 7258 pt_cv_path_lastlogx=
11928fi 7259fi
11929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7260rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7261 conftest.$ac_objext conftest.beam conftest.$ac_ext
11930fi 7262fi
11931 7263
11932
11933fi 7264fi
11934{ echo "$as_me:$LINENO: result: $path_lastlogx" >&5 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
11935echo "${ECHO_T}$path_lastlogx" >&6; } 7266$as_echo "$pt_cv_path_lastlogx" >&6; }
11936if test x$path_lastlogx != x; then 7267if test x$pt_cv_path_lastlogx != x; then
11937 7268
11938cat >>confdefs.h <<_ACEOF 7269cat >>confdefs.h <<_ACEOF
11939#define LASTLOGX_FILE "$path_lastlogx" 7270#define LASTLOGX_FILE "$pt_cv_path_lastlogx"
11940_ACEOF 7271_ACEOF
11941 7272
11942fi 7273fi
11943 7274
11944 7275
11945 7276
11946{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11947echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11948if test "${rxvt_cv_path_ttytab+set}" = set; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11950else
11951 for ttys_file in /etc/ttys /etc/ttytab;
11952do
11953 if test -f "$ttys_file" ; then
11954 rxvt_cv_path_ttytab=$ttys_file
11955 break
11956 fi
11957done
11958 7277
11959fi
11960{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11961echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11962if test x$rxvt_cv_path_ttytab != x; then
11963
11964cat >>confdefs.h <<_ACEOF
11965#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11966_ACEOF
11967
11968fi
11969
11970
11971ac_save_LIBS=$LIBS 7278save_LIBS=$LIBS
11972ac_save_CFLAGS=$CFLAGS 7279save_CFLAGS=$CFLAGS
11973CFLAGS="$CFLAGS $X_CFLAGS" 7280CFLAGS="$CFLAGS $X_CFLAGS"
11974LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 7281LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11975if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 7282if test x$support_xim = xyes; then
11976 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11977fi
11978{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
11979echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 7284$as_echo_n "checking for working Xlocale... " >&6; }
11980if test "${rxvt_cv_func_xlocale+set}" = set; then 7285if test "${rxvt_cv_func_xlocale+set}" = set; then :
11981 echo $ECHO_N "(cached) $ECHO_C" >&6 7286 $as_echo_n "(cached) " >&6
11982else 7287else
11983 if test "$cross_compiling" = yes; then 7288 if test "$cross_compiling" = yes; then :
11984 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 7289 :
11985echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11986else 7290else
11987 cat >conftest.$ac_ext <<_ACEOF
11988/* confdefs.h. */
11989_ACEOF
11990cat confdefs.h >>conftest.$ac_ext 7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991cat >>conftest.$ac_ext <<_ACEOF
11992/* end confdefs.h. */ 7292/* end confdefs.h. */
11993#include <X11/Xlib.h> 7293#include <X11/Xlib.h>
11994#include <stdlib.h> 7294 #include <stdlib.h>
11995main() { 7295 main() {
11996char *p; 7296 char *p;
11997if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 7297 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11998exit (XSupportsLocale() ? 0 : 1); 7298 exit (XSupportsLocale() ? 0 : 1);
11999else 7299 else
12000exit (1);} 7300 exit (1);}
12001_ACEOF 7301_ACEOF
12002rm -f conftest$ac_exeext 7302if ac_fn_cxx_try_run "$LINENO"; then :
12003if { (ac_try="$ac_link"
12004case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12007esac
12008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_link") 2>&5
12010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12013 { (case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12016esac
12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_try") 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 rxvt_cv_func_xlocale=yes 7303 rxvt_cv_func_xlocale=yes
12023else 7304else
12024 echo "$as_me: program exited with status $ac_status" >&5
12025echo "$as_me: failed program was:" >&5
12026sed 's/^/| /' conftest.$ac_ext >&5
12027
12028( exit $ac_status )
12029rxvt_cv_func_xlocale=no 7305 rxvt_cv_func_xlocale=no
12030fi 7306fi
12031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7308 conftest.$ac_objext conftest.beam conftest.$ac_ext
12032fi 7309fi
12033 7310
12034
12035fi 7311fi
12036{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 7312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
12037echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 7313$as_echo "$rxvt_cv_func_xlocale" >&6; }
12038if test x$rxvt_cv_func_xlocale = xyes; then 7314 if test x$rxvt_cv_func_xlocale = xyes; then
12039 7315
12040cat >>confdefs.h <<\_ACEOF 7316$as_echo "#define USE_XIM 1" >>confdefs.h
12041#define HAVE_XLOCALE 1
12042_ACEOF
12043 7317
12044fi 7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
7319$as_echo_n "checking for broken XIM callback... " >&6; }
7320if test "${rxvt_cv_broken_ximcb+set}" = set; then :
7321 $as_echo_n "(cached) " >&6
7322else
7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324/* end confdefs.h. */
12045 7325
7326 #include <X11/Xlib.h>
7327
7328 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
7329
7330 void f() {
7331 XIMCallback cb;
7332 cb.callback = im_destroy_cb;
7333 }
7334
7335_ACEOF
7336if ac_fn_cxx_try_compile "$LINENO"; then :
7337 rxvt_cv_broken_ximcb=yes
7338else
7339 rxvt_cv_broken_ximcb=no
7340fi
7341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342fi
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
7344$as_echo "$rxvt_cv_broken_ximcb" >&6; }
7345
7346 if test x$rxvt_cv_broken_ximcb = xyes; then
7347
7348$as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
7349
7350 fi
7351 fi
7352fi
7353
12046{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
12047echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 7355$as_echo_n "checking for working X setlocale... " >&6; }
12048if test "${rxvt_cv_func_xsetlocale+set}" = set; then 7356if test "${rxvt_cv_func_xsetlocale+set}" = set; then :
12049 echo $ECHO_N "(cached) $ECHO_C" >&6 7357 $as_echo_n "(cached) " >&6
12050else 7358else
12051 cat >conftest.$ac_ext <<_ACEOF
12052/* confdefs.h. */
12053_ACEOF
12054cat confdefs.h >>conftest.$ac_ext 7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055cat >>conftest.$ac_ext <<_ACEOF
12056/* end confdefs.h. */ 7360/* end confdefs.h. */
12057#define X_LOCALE 1 7361#define X_LOCALE 1
12058#include <X11/Xlocale.h> 7362#include <X11/Xlocale.h>
12059int 7363int
12060main () 7364main ()
12062setlocale(LC_CTYPE, ""); 7366setlocale(LC_CTYPE, "");
12063 ; 7367 ;
12064 return 0; 7368 return 0;
12065} 7369}
12066_ACEOF 7370_ACEOF
12067rm -f conftest.$ac_objext conftest$ac_exeext 7371if ac_fn_cxx_try_link "$LINENO"; then :
12068if { (ac_try="$ac_link"
12069case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12072esac
12073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_link") 2>conftest.er1
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && {
12081 test -z "$ac_cxx_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest$ac_exeext &&
12084 $as_test_x conftest$ac_exeext; then
12085 rxvt_cv_func_xsetlocale=yes 7372 rxvt_cv_func_xsetlocale=yes
12086else 7373else
12087 echo "$as_me: failed program was:" >&5
12088sed 's/^/| /' conftest.$ac_ext >&5
12089
12090 rxvt_cv_func_xsetlocale=no 7374 rxvt_cv_func_xsetlocale=no
12091fi 7375fi
12092
12093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7376rm -f core conftest.err conftest.$ac_objext \
12094 conftest$ac_exeext conftest.$ac_ext 7377 conftest$ac_exeext conftest.$ac_ext
12095fi 7378fi
12096{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
12097echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6; } 7380$as_echo "$rxvt_cv_func_xsetlocale" >&6; }
12098if test x$rxvt_cv_func_xsetlocale = xyes; then 7381if test x$rxvt_cv_func_xsetlocale = xyes; then
12099 7382
12100cat >>confdefs.h <<\_ACEOF 7383$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
12101#define HAVE_XSETLOCALE 1
12102_ACEOF
12103 7384
12104fi 7385fi
12105LIBS=$ac_save_LIBS 7386LIBS=$save_LIBS
12106CFLAGS=$ac_save_CFLAGS 7387CFLAGS=$save_CFLAGS
12107 7388
12108{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5
12109echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 7390$as_echo_n "checking for working plain setlocale... " >&6; }
12110if test "${rxvt_cv_func_setlocale+set}" = set; then 7391if test "${rxvt_cv_func_setlocale+set}" = set; then :
12111 echo $ECHO_N "(cached) $ECHO_C" >&6 7392 $as_echo_n "(cached) " >&6
12112else 7393else
12113 cat >conftest.$ac_ext <<_ACEOF
12114/* confdefs.h. */
12115_ACEOF
12116cat confdefs.h >>conftest.$ac_ext 7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117cat >>conftest.$ac_ext <<_ACEOF
12118/* end confdefs.h. */ 7395/* end confdefs.h. */
12119#include <clocale> 7396#include <clocale>
12120int 7397int
12121main () 7398main ()
12122{ 7399{
12123setlocale(LC_CTYPE, ""); 7400setlocale(LC_CTYPE, "");
12124 ; 7401 ;
12125 return 0; 7402 return 0;
12126} 7403}
12127_ACEOF 7404_ACEOF
12128rm -f conftest.$ac_objext conftest$ac_exeext 7405if ac_fn_cxx_try_link "$LINENO"; then :
12129if { (ac_try="$ac_link"
12130case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12133esac
12134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_link") 2>conftest.er1
12136 ac_status=$?
12137 grep -v '^ *+' conftest.er1 >conftest.err
12138 rm -f conftest.er1
12139 cat conftest.err >&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } && {
12142 test -z "$ac_cxx_werror_flag" ||
12143 test ! -s conftest.err
12144 } && test -s conftest$ac_exeext &&
12145 $as_test_x conftest$ac_exeext; then
12146 rxvt_cv_func_setlocale=yes 7406 rxvt_cv_func_setlocale=yes
12147else 7407else
12148 echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151 rxvt_cv_func_setlocale=no 7408 rxvt_cv_func_setlocale=no
12152fi 7409fi
12153
12154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7410rm -f core conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext 7411 conftest$ac_exeext conftest.$ac_ext
12156fi 7412fi
12157{ echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5 7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5
12158echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6; } 7414$as_echo "$rxvt_cv_func_setlocale" >&6; }
12159if test x$rxvt_cv_func_setlocale = xyes; then 7415if test x$rxvt_cv_func_setlocale = xyes; then
12160 7416
12161cat >>confdefs.h <<\_ACEOF 7417$as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
12162#define HAVE_SETLOCALE 1
12163_ACEOF
12164 7418
12165fi 7419fi
12166 7420
12167{ echo "$as_me:$LINENO: checking for working nl_langinfo" >&5 7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
12168echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6; } 7422$as_echo_n "checking for working nl_langinfo... " >&6; }
12169if test "${rxvt_cv_func_nl_langinfo+set}" = set; then 7423if test "${rxvt_cv_func_nl_langinfo+set}" = set; then :
12170 echo $ECHO_N "(cached) $ECHO_C" >&6 7424 $as_echo_n "(cached) " >&6
12171else 7425else
12172 cat >conftest.$ac_ext <<_ACEOF
12173/* confdefs.h. */
12174_ACEOF
12175cat confdefs.h >>conftest.$ac_ext 7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176cat >>conftest.$ac_ext <<_ACEOF
12177/* end confdefs.h. */ 7427/* end confdefs.h. */
12178#include <langinfo.h> 7428#include <langinfo.h>
12179int 7429int
12180main () 7430main ()
12181{ 7431{
12182nl_langinfo(CODESET); 7432nl_langinfo(CODESET);
12183 ; 7433 ;
12184 return 0; 7434 return 0;
12185} 7435}
12186_ACEOF 7436_ACEOF
12187rm -f conftest.$ac_objext conftest$ac_exeext 7437if ac_fn_cxx_try_link "$LINENO"; then :
12188if { (ac_try="$ac_link"
12189case "(($ac_try" in
12190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191 *) ac_try_echo=$ac_try;;
12192esac
12193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194 (eval "$ac_link") 2>conftest.er1
12195 ac_status=$?
12196 grep -v '^ *+' conftest.er1 >conftest.err
12197 rm -f conftest.er1
12198 cat conftest.err >&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } && {
12201 test -z "$ac_cxx_werror_flag" ||
12202 test ! -s conftest.err
12203 } && test -s conftest$ac_exeext &&
12204 $as_test_x conftest$ac_exeext; then
12205 rxvt_cv_func_nl_langinfo=yes 7438 rxvt_cv_func_nl_langinfo=yes
12206else 7439else
12207 echo "$as_me: failed program was:" >&5
12208sed 's/^/| /' conftest.$ac_ext >&5
12209
12210 rxvt_cv_func_nl_langinfo=no 7440 rxvt_cv_func_nl_langinfo=no
12211fi 7441fi
12212
12213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7442rm -f core conftest.err conftest.$ac_objext \
12214 conftest$ac_exeext conftest.$ac_ext 7443 conftest$ac_exeext conftest.$ac_ext
12215fi 7444fi
12216{ echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5 7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
12217echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6; } 7446$as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
12218if test x$rxvt_cv_func_nl_langinfo = xyes; then 7447if test x$rxvt_cv_func_nl_langinfo = xyes; then
12219 7448
12220cat >>confdefs.h <<\_ACEOF 7449$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
12221#define HAVE_NL_LANGINFO 1
12222_ACEOF
12223 7450
12224fi 7451fi
12225 7452
12226 7453
12227{ echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 7454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
12228echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6; } 7455$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
12229if test "${can_pass_fds+set}" = set; then 7456if test "${pt_cv_can_pass_fds+set}" = set; then :
12230 echo $ECHO_N "(cached) $ECHO_C" >&6 7457 $as_echo_n "(cached) " >&6
12231else 7458else
12232 cat >conftest.$ac_ext <<_ACEOF
12233/* confdefs.h. */
12234_ACEOF
12235cat confdefs.h >>conftest.$ac_ext 7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236cat >>conftest.$ac_ext <<_ACEOF
12237/* end confdefs.h. */ 7460/* end confdefs.h. */
12238 7461
12239#include <cstddef> // broken bsds (is that redundant?) need this 7462#include <cstddef> // broken bsds (is that redundant?) need this
12240#include <sys/types.h> 7463#include <sys/types.h>
12241#include <sys/socket.h> 7464#include <sys/socket.h>
12271 7494
12272 ; 7495 ;
12273 return 0; 7496 return 0;
12274} 7497}
12275_ACEOF 7498_ACEOF
12276rm -f conftest.$ac_objext conftest$ac_exeext 7499if ac_fn_cxx_try_link "$LINENO"; then :
12277if { (ac_try="$ac_link"
12278case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12281esac
12282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_link") 2>conftest.er1
12284 ac_status=$?
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } && {
12290 test -z "$ac_cxx_werror_flag" ||
12291 test ! -s conftest.err
12292 } && test -s conftest$ac_exeext &&
12293 $as_test_x conftest$ac_exeext; then
12294 can_pass_fds=yes 7500 pt_cv_can_pass_fds=yes
12295else 7501else
12296 echo "$as_me: failed program was:" >&5
12297sed 's/^/| /' conftest.$ac_ext >&5
12298
12299 can_pass_fds=no 7502 pt_cv_can_pass_fds=no
12300fi 7503fi
12301
12302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7504rm -f core conftest.err conftest.$ac_objext \
12303 conftest$ac_exeext conftest.$ac_ext 7505 conftest$ac_exeext conftest.$ac_ext
12304fi 7506fi
12305{ echo "$as_me:$LINENO: result: $can_pass_fds" >&5 7507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
12306echo "${ECHO_T}$can_pass_fds" >&6; } 7508$as_echo "$pt_cv_can_pass_fds" >&6; }
12307if test x$can_pass_fds = xyes; then 7509if test x$pt_cv_can_pass_fds = xyes; then
12308 7510
12309cat >>confdefs.h <<\_ACEOF 7511$as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
12310#define HAVE_UNIX_FDPASS 1
12311_ACEOF
12312 7512
12313else 7513else
12314 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
12315echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} 7514 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
12316 { (exit 1); exit 1; }; }
12317fi 7515fi
12318
12319
12320{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5
12321echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
12322if test "${rxvt_broken_ximcb+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324else
12325 cat >conftest.$ac_ext <<_ACEOF
12326
12327#include <X11/Xlib.h>
12328
12329void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
12330
12331void f() {
12332 XIMCallback cb;
12333 cb.callback = im_destroy_cb;
12334}
12335
12336_ACEOF
12337rm -f conftest.$ac_objext
12338if { (ac_try="$ac_compile"
12339case "(($ac_try" in
12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341 *) ac_try_echo=$ac_try;;
12342esac
12343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344 (eval "$ac_compile") 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } && {
12351 test -z "$ac_cxx_werror_flag" ||
12352 test ! -s conftest.err
12353 } && test -s conftest.$ac_objext; then
12354 rxvt_broken_ximcb=yes
12355else
12356 echo "$as_me: failed program was:" >&5
12357sed 's/^/| /' conftest.$ac_ext >&5
12358
12359 rxvt_broken_ximcb=no
12360fi
12361
12362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363fi
12364{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12365echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12366
12367if test x$rxvt_broken_ximcb = xyes; then
12368
12369cat >>confdefs.h <<\_ACEOF
12370#define XIMCB_PROTO_BROKEN 1
12371_ACEOF
12372
12373fi
12374
12375
12376
12377
12378 7516
12379 7517
12380 7518
12381for ac_header in \ 7519for ac_header in \
12382 pty.h \ 7520 pty.h \
12383 util.h \ 7521 util.h \
12384 libutil.h \ 7522 libutil.h \
12385 sys/ioctl.h \ 7523 sys/ioctl.h \
12386 sys/stropts.h \ 7524 sys/stropts.h \
7525 stropts.h \
12387 7526
12388do 7527do :
12389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7529ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12391 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7530if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12395fi
12396ac_res=`eval echo '${'$as_ac_Header'}'`
12397 { echo "$as_me:$LINENO: result: $ac_res" >&5
12398echo "${ECHO_T}$ac_res" >&6; }
12399else
12400 # Is the header compilable?
12401{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12402echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12403cat >conftest.$ac_ext <<_ACEOF
12404/* confdefs.h. */
12405_ACEOF
12406cat confdefs.h >>conftest.$ac_ext
12407cat >>conftest.$ac_ext <<_ACEOF
12408/* end confdefs.h. */
12409$ac_includes_default
12410#include <$ac_header>
12411_ACEOF
12412rm -f conftest.$ac_objext
12413if { (ac_try="$ac_compile"
12414case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12417esac
12418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_compile") 2>conftest.er1
12420 ac_status=$?
12421 grep -v '^ *+' conftest.er1 >conftest.err
12422 rm -f conftest.er1
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } && {
12426 test -z "$ac_cxx_werror_flag" ||
12427 test ! -s conftest.err
12428 } && test -s conftest.$ac_objext; then
12429 ac_header_compiler=yes
12430else
12431 echo "$as_me: failed program was:" >&5
12432sed 's/^/| /' conftest.$ac_ext >&5
12433
12434 ac_header_compiler=no
12435fi
12436
12437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12439echo "${ECHO_T}$ac_header_compiler" >&6; }
12440
12441# Is the header present?
12442{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12443echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12444cat >conftest.$ac_ext <<_ACEOF
12445/* confdefs.h. */
12446_ACEOF
12447cat confdefs.h >>conftest.$ac_ext
12448cat >>conftest.$ac_ext <<_ACEOF
12449/* end confdefs.h. */
12450#include <$ac_header>
12451_ACEOF
12452if { (ac_try="$ac_cpp conftest.$ac_ext"
12453case "(($ac_try" in
12454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455 *) ac_try_echo=$ac_try;;
12456esac
12457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12459 ac_status=$?
12460 grep -v '^ *+' conftest.er1 >conftest.err
12461 rm -f conftest.er1
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } >/dev/null && {
12465 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12466 test ! -s conftest.err
12467 }; then
12468 ac_header_preproc=yes
12469else
12470 echo "$as_me: failed program was:" >&5
12471sed 's/^/| /' conftest.$ac_ext >&5
12472
12473 ac_header_preproc=no
12474fi
12475
12476rm -f conftest.err conftest.$ac_ext
12477{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12478echo "${ECHO_T}$ac_header_preproc" >&6; }
12479
12480# So? What about this header?
12481case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12482 yes:no: )
12483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12484echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12486echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12487 ac_header_preproc=yes
12488 ;;
12489 no:yes:* )
12490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12495echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12497echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12499echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12501echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12502
12503 ;;
12504esac
12505{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12509else
12510 eval "$as_ac_Header=\$ac_header_preproc"
12511fi
12512ac_res=`eval echo '${'$as_ac_Header'}'`
12513 { echo "$as_me:$LINENO: result: $ac_res" >&5
12514echo "${ECHO_T}$ac_res" >&6; }
12515
12516fi
12517if test `eval echo '${'$as_ac_Header'}'` = yes; then
12518 cat >>confdefs.h <<_ACEOF 7531 cat >>confdefs.h <<_ACEOF
12519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7532#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12520_ACEOF 7533_ACEOF
12521 7534
12522fi 7535fi
12523 7536
12524done 7537done
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534 7538
12535 7539
12536for ac_func in \ 7540for ac_func in \
12537 revoke \ 7541 revoke \
12538 _getpty \ 7542 _getpty \
12542 setuid \ 7546 setuid \
12543 seteuid \ 7547 seteuid \
12544 setreuid \ 7548 setreuid \
12545 setresuid \ 7549 setresuid \
12546 7550
12547do 7551do :
12548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7552 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12549{ echo "$as_me:$LINENO: checking for $ac_func" >&5 7553ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 7554if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12551if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553else
12554 cat >conftest.$ac_ext <<_ACEOF
12555/* confdefs.h. */
12556_ACEOF
12557cat confdefs.h >>conftest.$ac_ext
12558cat >>conftest.$ac_ext <<_ACEOF
12559/* end confdefs.h. */
12560/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12562#define $ac_func innocuous_$ac_func
12563
12564/* System header to define __stub macros and hopefully few prototypes,
12565 which can conflict with char $ac_func (); below.
12566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12567 <limits.h> exists even on freestanding compilers. */
12568
12569#ifdef __STDC__
12570# include <limits.h>
12571#else
12572# include <assert.h>
12573#endif
12574
12575#undef $ac_func
12576
12577/* Override any GCC internal prototype to avoid an error.
12578 Use char because int might match the return type of a GCC
12579 builtin and then its argument prototype would still apply. */
12580#ifdef __cplusplus
12581extern "C"
12582#endif
12583char $ac_func ();
12584/* The GNU C library defines this for functions which it implements
12585 to always fail with ENOSYS. Some functions are actually named
12586 something starting with __ and the normal name is an alias. */
12587#if defined __stub_$ac_func || defined __stub___$ac_func
12588choke me
12589#endif
12590
12591int
12592main ()
12593{
12594return $ac_func ();
12595 ;
12596 return 0;
12597}
12598_ACEOF
12599rm -f conftest.$ac_objext conftest$ac_exeext
12600if { (ac_try="$ac_link"
12601case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12604esac
12605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_link") 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && {
12613 test -z "$ac_cxx_werror_flag" ||
12614 test ! -s conftest.err
12615 } && test -s conftest$ac_exeext &&
12616 $as_test_x conftest$ac_exeext; then
12617 eval "$as_ac_var=yes"
12618else
12619 echo "$as_me: failed program was:" >&5
12620sed 's/^/| /' conftest.$ac_ext >&5
12621
12622 eval "$as_ac_var=no"
12623fi
12624
12625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12626 conftest$ac_exeext conftest.$ac_ext
12627fi
12628ac_res=`eval echo '${'$as_ac_var'}'`
12629 { echo "$as_me:$LINENO: result: $ac_res" >&5
12630echo "${ECHO_T}$ac_res" >&6; }
12631if test `eval echo '${'$as_ac_var'}'` = yes; then
12632 cat >>confdefs.h <<_ACEOF 7555 cat >>confdefs.h <<_ACEOF
12633#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7556#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12634_ACEOF 7557_ACEOF
12635 7558
12636fi 7559fi
12637done 7560done
12638 7561
12639 7562
12640have_clone=no 7563have_clone=no
12641 7564
12642{ echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
12643echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6; } 7566$as_echo_n "checking for /dev/ptc... " >&6; }
12644if test -e /dev/ptym/clone; then 7567if test -e /dev/ptc; then
12645 { echo "$as_me:$LINENO: result: yes" >&5 7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12646echo "${ECHO_T}yes" >&6; } 7569$as_echo "yes" >&6; }
12647 7570
12648cat >>confdefs.h <<\_ACEOF 7571$as_echo "#define CLONE_DEVICE \"/dev/ptc\"" >>confdefs.h
12649#define HAVE_DEV_CLONE 1
12650_ACEOF
12651
12652
12653cat >>confdefs.h <<\_ACEOF
12654#define CLONE_DEVICE "/dev/ptym/clone"
12655_ACEOF
12656 7572
12657 have_clone=yes 7573 have_clone=yes
12658else 7574else
12659 { echo "$as_me:$LINENO: result: no" >&5 7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12660echo "${ECHO_T}no" >&6; } 7576$as_echo "no" >&6; }
12661fi
12662
12663{ echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12664echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
12665if test -e /dev/ptc; then
12666 { echo "$as_me:$LINENO: result: yes" >&5
12667echo "${ECHO_T}yes" >&6; }
12668
12669cat >>confdefs.h <<\_ACEOF
12670#define HAVE_DEV_PTC 1
12671_ACEOF
12672
12673
12674cat >>confdefs.h <<\_ACEOF
12675#define CLONE_DEVICE "/dev/ptc"
12676_ACEOF
12677
12678 have_clone=yes
12679else
12680 { echo "$as_me:$LINENO: result: no" >&5
12681echo "${ECHO_T}no" >&6; }
12682fi 7577fi
12683 7578
12684case $host in 7579case $host in
12685 *-*-cygwin*) 7580 *-*-cygwin*)
12686 have_clone=yes 7581 have_clone=yes
12687 7582
12688cat >>confdefs.h <<\_ACEOF 7583$as_echo "#define CLONE_DEVICE \"/dev/ptmx\"" >>confdefs.h
12689#define CLONE_DEVICE "/dev/ptmx"
12690_ACEOF
12691 7584
12692 ;; 7585 ;;
12693 *) 7586 *)
12694 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
12695echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } 7588$as_echo_n "checking for /dev/ptmx... " >&6; }
12696 if test -e /dev/ptmx; then 7589 if test -e /dev/ptmx; then
12697 { echo "$as_me:$LINENO: result: yes" >&5 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12698echo "${ECHO_T}yes" >&6; } 7591$as_echo "yes" >&6; }
12699 7592
12700cat >>confdefs.h <<\_ACEOF 7593$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
12701#define HAVE_DEV_PTMX 1
12702_ACEOF
12703 7594
12704 7595
12705cat >>confdefs.h <<\_ACEOF 7596$as_echo "#define CLONE_DEVICE \"/dev/ptmx\"" >>confdefs.h
12706#define CLONE_DEVICE "/dev/ptmx"
12707_ACEOF
12708 7597
12709 have_clone=yes 7598 have_clone=yes
12710 else 7599 else
12711 { echo "$as_me:$LINENO: result: no" >&5 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712echo "${ECHO_T}no" >&6; } 7601$as_echo "no" >&6; }
12713 fi 7602 fi
12714 ;; 7603 ;;
12715esac 7604esac
12716 7605
12717if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then 7606if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12718 { echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
12719echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6; } 7608$as_echo_n "checking for UNIX98 ptys... " >&6; }
12720 cat >conftest.$ac_ext <<_ACEOF
12721/* confdefs.h. */
12722_ACEOF
12723cat confdefs.h >>conftest.$ac_ext 7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724cat >>conftest.$ac_ext <<_ACEOF
12725/* end confdefs.h. */ 7610/* end confdefs.h. */
12726#include <stdlib.h> 7611#include <stdlib.h>
12727int 7612int
12728main () 7613main ()
12729{ 7614{
12730grantpt(0);unlockpt(0);ptsname(0); 7615grantpt(0);unlockpt(0);ptsname(0);
12731 ; 7616 ;
12732 return 0; 7617 return 0;
12733} 7618}
12734_ACEOF 7619_ACEOF
12735rm -f conftest.$ac_objext conftest$ac_exeext 7620if ac_fn_cxx_try_link "$LINENO"; then :
12736if { (ac_try="$ac_link"
12737case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12740esac
12741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_link") 2>conftest.er1
12743 ac_status=$?
12744 grep -v '^ *+' conftest.er1 >conftest.err
12745 rm -f conftest.er1
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } && {
12749 test -z "$ac_cxx_werror_flag" ||
12750 test ! -s conftest.err
12751 } && test -s conftest$ac_exeext &&
12752 $as_test_x conftest$ac_exeext; then
12753 unix98_pty=yes 7621 unix98_pty=yes
12754 7622
12755cat >>confdefs.h <<\_ACEOF 7623$as_echo "#define UNIX98_PTY 1" >>confdefs.h
12756#define UNIX98_PTY 1
12757_ACEOF
12758 7624
12759 { echo "$as_me:$LINENO: result: yes" >&5 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12760echo "${ECHO_T}yes" >&6; } 7626$as_echo "yes" >&6; }
12761else 7627else
12762 echo "$as_me: failed program was:" >&5
12763sed 's/^/| /' conftest.$ac_ext >&5
12764
12765 { echo "$as_me:$LINENO: result: no" >&5 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766echo "${ECHO_T}no" >&6; } 7629$as_echo "no" >&6; }
12767fi 7630fi
12768
12769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7631rm -f core conftest.err conftest.$ac_objext \
12770 conftest$ac_exeext conftest.$ac_ext 7632 conftest$ac_exeext conftest.$ac_ext
12771fi 7633fi
12772 7634
12773if test -z "$unix98_pty"; then 7635if test -z "$unix98_pty"; then
12774 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
12775for ac_func in openpty 7637$as_echo_n "checking for library containing openpty... " >&6; }
12776do 7638if test "${ac_cv_search_openpty+set}" = set; then :
12777as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7639 $as_echo_n "(cached) " >&6
12778{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12779echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12780if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12782else
12783 cat >conftest.$ac_ext <<_ACEOF
12784/* confdefs.h. */
12785_ACEOF
12786cat confdefs.h >>conftest.$ac_ext
12787cat >>conftest.$ac_ext <<_ACEOF
12788/* end confdefs.h. */
12789/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12791#define $ac_func innocuous_$ac_func
12792
12793/* System header to define __stub macros and hopefully few prototypes,
12794 which can conflict with char $ac_func (); below.
12795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12796 <limits.h> exists even on freestanding compilers. */
12797
12798#ifdef __STDC__
12799# include <limits.h>
12800#else 7640else
12801# include <assert.h> 7641 ac_func_search_save_LIBS=$LIBS
12802#endif
12803
12804#undef $ac_func
12805
12806/* Override any GCC internal prototype to avoid an error.
12807 Use char because int might match the return type of a GCC
12808 builtin and then its argument prototype would still apply. */
12809#ifdef __cplusplus
12810extern "C"
12811#endif
12812char $ac_func ();
12813/* The GNU C library defines this for functions which it implements
12814 to always fail with ENOSYS. Some functions are actually named
12815 something starting with __ and the normal name is an alias. */
12816#if defined __stub_$ac_func || defined __stub___$ac_func
12817choke me
12818#endif
12819
12820int
12821main ()
12822{
12823return $ac_func ();
12824 ;
12825 return 0;
12826}
12827_ACEOF
12828rm -f conftest.$ac_objext conftest$ac_exeext
12829if { (ac_try="$ac_link"
12830case "(($ac_try" in
12831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12833esac
12834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_link") 2>conftest.er1
12836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } && {
12842 test -z "$ac_cxx_werror_flag" ||
12843 test ! -s conftest.err
12844 } && test -s conftest$ac_exeext &&
12845 $as_test_x conftest$ac_exeext; then
12846 eval "$as_ac_var=yes"
12847else
12848 echo "$as_me: failed program was:" >&5
12849sed 's/^/| /' conftest.$ac_ext >&5
12850
12851 eval "$as_ac_var=no"
12852fi
12853
12854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12855 conftest$ac_exeext conftest.$ac_ext
12856fi
12857ac_res=`eval echo '${'$as_ac_var'}'`
12858 { echo "$as_me:$LINENO: result: $ac_res" >&5
12859echo "${ECHO_T}$ac_res" >&6; }
12860if test `eval echo '${'$as_ac_var'}'` = yes; then
12861 cat >>confdefs.h <<_ACEOF
12862#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12863_ACEOF
12864
12865else
12866 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12867echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
12868if test "${ac_cv_lib_util_openpty+set}" = set; then
12869 echo $ECHO_N "(cached) $ECHO_C" >&6
12870else
12871 ac_check_lib_save_LIBS=$LIBS
12872LIBS="-lutil $LIBS"
12873cat >conftest.$ac_ext <<_ACEOF
12874/* confdefs.h. */
12875_ACEOF
12876cat confdefs.h >>conftest.$ac_ext 7642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877cat >>conftest.$ac_ext <<_ACEOF
12878/* end confdefs.h. */ 7643/* end confdefs.h. */
12879 7644
12880/* Override any GCC internal prototype to avoid an error. 7645/* Override any GCC internal prototype to avoid an error.
12881 Use char because int might match the return type of a GCC 7646 Use char because int might match the return type of a GCC
12882 builtin and then its argument prototype would still apply. */ 7647 builtin and then its argument prototype would still apply. */
12890return openpty (); 7655return openpty ();
12891 ; 7656 ;
12892 return 0; 7657 return 0;
12893} 7658}
12894_ACEOF 7659_ACEOF
12895rm -f conftest.$ac_objext conftest$ac_exeext 7660for ac_lib in '' util; do
12896if { (ac_try="$ac_link" 7661 if test -z "$ac_lib"; then
12897case "(($ac_try" in 7662 ac_res="none required"
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12900esac
12901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_link") 2>conftest.er1
12903 ac_status=$?
12904 grep -v '^ *+' conftest.er1 >conftest.err
12905 rm -f conftest.er1
12906 cat conftest.err >&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } && {
12909 test -z "$ac_cxx_werror_flag" ||
12910 test ! -s conftest.err
12911 } && test -s conftest$ac_exeext &&
12912 $as_test_x conftest$ac_exeext; then
12913 ac_cv_lib_util_openpty=yes
12914else 7663 else
12915 echo "$as_me: failed program was:" >&5 7664 ac_res=-l$ac_lib
12916sed 's/^/| /' conftest.$ac_ext >&5 7665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12917 7666 fi
12918 ac_cv_lib_util_openpty=no 7667 if ac_fn_cxx_try_link "$LINENO"; then :
7668 ac_cv_search_openpty=$ac_res
12919fi 7669fi
12920
12921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7670rm -f core conftest.err conftest.$ac_objext \
12922 conftest$ac_exeext conftest.$ac_ext 7671 conftest$ac_exeext
12923LIBS=$ac_check_lib_save_LIBS 7672 if test "${ac_cv_search_openpty+set}" = set; then :
12924fi 7673 break
12925{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12926echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
12927if test $ac_cv_lib_util_openpty = yes; then
12928 cat >>confdefs.h <<\_ACEOF
12929#define HAVE_OPENPTY 1
12930_ACEOF
12931 LIBS="$LIBS -lutil"
12932fi
12933
12934fi 7674fi
12935done 7675done
7676if test "${ac_cv_search_openpty+set}" = set; then :
12936 7677
7678else
7679 ac_cv_search_openpty=no
12937fi 7680fi
7681rm conftest.$ac_ext
7682LIBS=$ac_func_search_save_LIBS
7683fi
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7685$as_echo "$ac_cv_search_openpty" >&6; }
7686ac_res=$ac_cv_search_openpty
7687if test "$ac_res" != no; then :
7688 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12938 7689
7690$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
12939 7691
7692fi
12940 7693
7694fi
7695
7696
7697
12941{ echo "$as_me:$LINENO: checking for tty group" >&5 7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
12942echo $ECHO_N "checking for tty group... $ECHO_C" >&6; } 7699$as_echo_n "checking for tty group... " >&6; }
12943if test "${tty_group+set}" = set; then 7700if test "${pt_cv_tty_group+set}" = set; then :
12944 echo $ECHO_N "(cached) $ECHO_C" >&6 7701 $as_echo_n "(cached) " >&6
12945else 7702else
12946 if test "$cross_compiling" = yes; then 7703 if test "$cross_compiling" = yes; then :
12947 tty_group=no 7704 pt_cv_tty_group=no
12948else 7705else
12949 cat >conftest.$ac_ext <<_ACEOF
12950/* confdefs.h. */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext 7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
12954/* end confdefs.h. */ 7707/* end confdefs.h. */
12955 7708
12956#include <sys/types.h> 7709#include <sys/types.h>
12957#include <sys/stat.h> 7710#include <sys/stat.h>
12958#include <unistd.h> 7711#include <unistd.h>
12972 return 0; 7725 return 0;
12973 else 7726 else
12974 return 1; 7727 return 1;
12975} 7728}
12976_ACEOF 7729_ACEOF
12977rm -f conftest$ac_exeext 7730if ac_fn_cxx_try_run "$LINENO"; then :
12978if { (ac_try="$ac_link"
12979case "(($ac_try" in
12980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981 *) ac_try_echo=$ac_try;;
12982esac
12983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984 (eval "$ac_link") 2>&5
12985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12988 { (case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12991esac
12992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993 (eval "$ac_try") 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
12997 tty_group=yes 7731 pt_cv_tty_group=yes
12998else 7732else
12999 echo "$as_me: program exited with status $ac_status" >&5
13000echo "$as_me: failed program was:" >&5
13001sed 's/^/| /' conftest.$ac_ext >&5
13002
13003( exit $ac_status )
13004tty_group=no 7733 pt_cv_tty_group=no
13005fi 7734fi
13006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7736 conftest.$ac_objext conftest.beam conftest.$ac_ext
13007fi 7737fi
13008 7738
13009
13010fi 7739fi
13011{ echo "$as_me:$LINENO: result: $tty_group" >&5 7740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
13012echo "${ECHO_T}$tty_group" >&6; } 7741$as_echo "$pt_cv_tty_group" >&6; }
13013if test x$tty_group = xyes; then 7742if test x$pt_cv_tty_group = xyes; then
13014 7743
13015cat >>confdefs.h <<\_ACEOF 7744$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
13016#define TTY_GID_SUPPORT 1
13017_ACEOF
13018 7745
13019fi 7746fi
13020 7747
13021if test x$support_xft = xyes; then 7748if test x$support_xft = xyes || test x$support_inheritpixmap = xyes; then
7749 rxvt_have_xrender=no
13022 # Extract the first word of "pkg-config", so it can be a program name with args. 7750 # Extract the first word of "pkg-config", so it can be a program name with args.
13023set dummy pkg-config; ac_word=$2 7751set dummy pkg-config; ac_word=$2
13024{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7753$as_echo_n "checking for $ac_word... " >&6; }
13026if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 7754if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13027 echo $ECHO_N "(cached) $ECHO_C" >&6 7755 $as_echo_n "(cached) " >&6
13028else 7756else
13029 case $PKG_CONFIG in 7757 case $PKG_CONFIG in
13030 [\\/]* | ?:[\\/]*) 7758 [\\/]* | ?:[\\/]*)
13031 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7759 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13032 ;; 7760 ;;
13034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035for as_dir in $PATH 7763for as_dir in $PATH
13036do 7764do
13037 IFS=$as_save_IFS 7765 IFS=$as_save_IFS
13038 test -z "$as_dir" && as_dir=. 7766 test -z "$as_dir" && as_dir=.
13039 for ac_exec_ext in '' $ac_executable_extensions; do 7767 for ac_exec_ext in '' $ac_executable_extensions; do
13040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13041 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7769 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13043 break 2 7771 break 2
13044 fi 7772 fi
13045done 7773done
13046done 7774 done
13047IFS=$as_save_IFS 7775IFS=$as_save_IFS
13048 7776
13049 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7777 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13050 ;; 7778 ;;
13051esac 7779esac
13052fi 7780fi
13053PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7781PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13054if test -n "$PKG_CONFIG"; then 7782if test -n "$PKG_CONFIG"; then
13055 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13056echo "${ECHO_T}$PKG_CONFIG" >&6; } 7784$as_echo "$PKG_CONFIG" >&6; }
13057else 7785else
13058 { echo "$as_me:$LINENO: result: no" >&5 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059echo "${ECHO_T}no" >&6; } 7787$as_echo "no" >&6; }
7788fi
7789
7790
7791 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
7792 X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS"
7793 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`"
7794 rxvt_have_xrender=yes
7795
7796 save_LIBS="$LIBS"
7797 LIBS="$LIBS $X_LIBS"
7798 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
7799if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then :
7800
7801else
7802 rxvt_have_xrender=no
7803fi
7804
7805
7806 ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
7807if test "x$ac_cv_func_XRenderFindStandardFormat" = x""yes; then :
7808
7809else
7810 rxvt_have_xrender=no
7811fi
7812
7813 LIBS="$save_LIBS"
7814 fi
7815fi
7816
7817if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
7818 # Extract the first word of "pkg-config", so it can be a program name with args.
7819set dummy pkg-config; ac_word=$2
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821$as_echo_n "checking for $ac_word... " >&6; }
7822if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7823 $as_echo_n "(cached) " >&6
7824else
7825 case $PKG_CONFIG in
7826 [\\/]* | ?:[\\/]*)
7827 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7828 ;;
7829 *)
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841done
7842 done
7843IFS=$as_save_IFS
7844
7845 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7846 ;;
7847esac
7848fi
7849PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7850if test -n "$PKG_CONFIG"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7852$as_echo "$PKG_CONFIG" >&6; }
7853else
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855$as_echo "no" >&6; }
13060fi 7856fi
13061 7857
13062 7858
13063 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 7859 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
13064 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 7860 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
13065 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 7861 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
13066 else 7862 else
13067 # Extract the first word of "xft-config", so it can be a program name with args. 7863 # Extract the first word of "xft-config", so it can be a program name with args.
13068set dummy xft-config; ac_word=$2 7864set dummy xft-config; ac_word=$2
13069{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7866$as_echo_n "checking for $ac_word... " >&6; }
13071if test "${ac_cv_path_XFT_CONFIG+set}" = set; then 7867if test "${ac_cv_path_XFT_CONFIG+set}" = set; then :
13072 echo $ECHO_N "(cached) $ECHO_C" >&6 7868 $as_echo_n "(cached) " >&6
13073else 7869else
13074 case $XFT_CONFIG in 7870 case $XFT_CONFIG in
13075 [\\/]* | ?:[\\/]*) 7871 [\\/]* | ?:[\\/]*)
13076 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. 7872 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
13077 ;; 7873 ;;
13079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080for as_dir in $PATH 7876for as_dir in $PATH
13081do 7877do
13082 IFS=$as_save_IFS 7878 IFS=$as_save_IFS
13083 test -z "$as_dir" && as_dir=. 7879 test -z "$as_dir" && as_dir=.
13084 for ac_exec_ext in '' $ac_executable_extensions; do 7880 for ac_exec_ext in '' $ac_executable_extensions; do
13085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13086 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7882 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 break 2 7884 break 2
13089 fi 7885 fi
13090done 7886done
13091done 7887 done
13092IFS=$as_save_IFS 7888IFS=$as_save_IFS
13093 7889
13094 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" 7890 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
13095 ;; 7891 ;;
13096esac 7892esac
13097fi 7893fi
13098XFT_CONFIG=$ac_cv_path_XFT_CONFIG 7894XFT_CONFIG=$ac_cv_path_XFT_CONFIG
13099if test -n "$XFT_CONFIG"; then 7895if test -n "$XFT_CONFIG"; then
13100 { echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
13101echo "${ECHO_T}$XFT_CONFIG" >&6; } 7897$as_echo "$XFT_CONFIG" >&6; }
13102else 7898else
13103 { echo "$as_me:$LINENO: result: no" >&5 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104echo "${ECHO_T}no" >&6; } 7900$as_echo "no" >&6; }
13105fi 7901fi
13106 7902
13107 7903
13108 if test $XFT_CONFIG != no; then 7904 if test $XFT_CONFIG != no; then
13109 LIBS="$LIBS `$XFT_CONFIG --libs`" 7905 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
13110 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 7906 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
13111 fi 7907 fi
13112 fi 7908 fi
13113 7909
7910 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then
7911 X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS"
7912 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
7913 fi
13114 7914
7915 save_LIBS="$LIBS"
7916 LIBS="$LIBS $X_LIBS"
13115for ac_header in X11/Xft/Xft.h 7917 for ac_header in X11/Xft/Xft.h
13116do 7918do :
13117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7919 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
13118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7920if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
13119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13123fi
13124ac_res=`eval echo '${'$as_ac_Header'}'`
13125 { echo "$as_me:$LINENO: result: $ac_res" >&5
13126echo "${ECHO_T}$ac_res" >&6; }
13127else
13128 # Is the header compilable?
13129{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13130echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13131cat >conftest.$ac_ext <<_ACEOF
13132/* confdefs.h. */
13133_ACEOF
13134cat confdefs.h >>conftest.$ac_ext
13135cat >>conftest.$ac_ext <<_ACEOF
13136/* end confdefs.h. */
13137$ac_includes_default
13138#include <$ac_header>
13139_ACEOF
13140rm -f conftest.$ac_objext
13141if { (ac_try="$ac_compile"
13142case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145esac
13146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_compile") 2>conftest.er1
13148 ac_status=$?
13149 grep -v '^ *+' conftest.er1 >conftest.err
13150 rm -f conftest.er1
13151 cat conftest.err >&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } && {
13154 test -z "$ac_cxx_werror_flag" ||
13155 test ! -s conftest.err
13156 } && test -s conftest.$ac_objext; then
13157 ac_header_compiler=yes
13158else
13159 echo "$as_me: failed program was:" >&5
13160sed 's/^/| /' conftest.$ac_ext >&5
13161
13162 ac_header_compiler=no
13163fi
13164
13165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13167echo "${ECHO_T}$ac_header_compiler" >&6; }
13168
13169# Is the header present?
13170{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13171echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13172cat >conftest.$ac_ext <<_ACEOF
13173/* confdefs.h. */
13174_ACEOF
13175cat confdefs.h >>conftest.$ac_ext
13176cat >>conftest.$ac_ext <<_ACEOF
13177/* end confdefs.h. */
13178#include <$ac_header>
13179_ACEOF
13180if { (ac_try="$ac_cpp conftest.$ac_ext"
13181case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184esac
13185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13187 ac_status=$?
13188 grep -v '^ *+' conftest.er1 >conftest.err
13189 rm -f conftest.er1
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } >/dev/null && {
13193 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13194 test ! -s conftest.err
13195 }; then
13196 ac_header_preproc=yes
13197else
13198 echo "$as_me: failed program was:" >&5
13199sed 's/^/| /' conftest.$ac_ext >&5
13200
13201 ac_header_preproc=no
13202fi
13203
13204rm -f conftest.err conftest.$ac_ext
13205{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13206echo "${ECHO_T}$ac_header_preproc" >&6; }
13207
13208# So? What about this header?
13209case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
13210 yes:no: )
13211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13215 ac_header_preproc=yes
13216 ;;
13217 no:yes:* )
13218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13221echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13225echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13230
13231 ;;
13232esac
13233{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13237else
13238 eval "$as_ac_Header=\$ac_header_preproc"
13239fi
13240ac_res=`eval echo '${'$as_ac_Header'}'`
13241 { echo "$as_me:$LINENO: result: $ac_res" >&5
13242echo "${ECHO_T}$ac_res" >&6; }
13243
13244fi
13245if test `eval echo '${'$as_ac_Header'}'` = yes; then
13246 cat >>confdefs.h <<_ACEOF 7921 cat >>confdefs.h <<_ACEOF
13247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7922#define HAVE_X11_XFT_XFT_H 1
13248_ACEOF 7923_ACEOF
13249 7924
13250else 7925else
13251 support_xft=no 7926 support_xft=no
13252fi 7927fi
13253 7928
13254done 7929done
13255 7930
13256
13257{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5
13258echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 7932$as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
13259if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 7933if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then :
13260 echo $ECHO_N "(cached) $ECHO_C" >&6 7934 $as_echo_n "(cached) " >&6
13261else 7935else
13262 ac_check_lib_save_LIBS=$LIBS 7936 ac_check_lib_save_LIBS=$LIBS
13263LIBS="-lXft $LIBS" 7937LIBS="-lXft $LIBS"
13264cat >conftest.$ac_ext <<_ACEOF
13265/* confdefs.h. */
13266_ACEOF
13267cat confdefs.h >>conftest.$ac_ext 7938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268cat >>conftest.$ac_ext <<_ACEOF
13269/* end confdefs.h. */ 7939/* end confdefs.h. */
13270 7940
13271/* Override any GCC internal prototype to avoid an error. 7941/* Override any GCC internal prototype to avoid an error.
13272 Use char because int might match the return type of a GCC 7942 Use char because int might match the return type of a GCC
13273 builtin and then its argument prototype would still apply. */ 7943 builtin and then its argument prototype would still apply. */
13281return XftDrawString32 (); 7951return XftDrawString32 ();
13282 ; 7952 ;
13283 return 0; 7953 return 0;
13284} 7954}
13285_ACEOF 7955_ACEOF
13286rm -f conftest.$ac_objext conftest$ac_exeext 7956if ac_fn_cxx_try_link "$LINENO"; then :
13287if { (ac_try="$ac_link"
13288case "(($ac_try" in
13289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290 *) ac_try_echo=$ac_try;;
13291esac
13292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293 (eval "$ac_link") 2>conftest.er1
13294 ac_status=$?
13295 grep -v '^ *+' conftest.er1 >conftest.err
13296 rm -f conftest.er1
13297 cat conftest.err >&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } && {
13300 test -z "$ac_cxx_werror_flag" ||
13301 test ! -s conftest.err
13302 } && test -s conftest$ac_exeext &&
13303 $as_test_x conftest$ac_exeext; then
13304 ac_cv_lib_Xft_XftDrawString32=yes 7957 ac_cv_lib_Xft_XftDrawString32=yes
13305else 7958else
13306 echo "$as_me: failed program was:" >&5
13307sed 's/^/| /' conftest.$ac_ext >&5
13308
13309 ac_cv_lib_Xft_XftDrawString32=no 7959 ac_cv_lib_Xft_XftDrawString32=no
13310fi 7960fi
13311
13312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7961rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext 7962 conftest$ac_exeext conftest.$ac_ext
13314LIBS=$ac_check_lib_save_LIBS 7963LIBS=$ac_check_lib_save_LIBS
13315fi 7964fi
13316{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13317echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 7966$as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
13318if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 7967if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then :
7968 :
7969else
7970 support_xft=no
7971fi
7972
7973 for ac_header in fontconfig/fontconfig.h
7974do :
7975 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
7976if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
13319 cat >>confdefs.h <<_ACEOF 7977 cat >>confdefs.h <<_ACEOF
13320#define HAVE_LIBXFT 1 7978#define HAVE_FONTCONFIG_FONTCONFIG_H 1
13321_ACEOF 7979_ACEOF
13322
13323 LIBS="-lXft $LIBS"
13324 7980
13325else 7981else
13326 support_xft=no 7982 support_xft=no
13327fi 7983fi
13328 7984
7985done
7986
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5
7988$as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; }
7989if test "${ac_cv_lib_fontconfig_FcPatternGet+set}" = set; then :
7990 $as_echo_n "(cached) " >&6
7991else
7992 ac_check_lib_save_LIBS=$LIBS
7993LIBS="-lfontconfig $LIBS"
7994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995/* end confdefs.h. */
7996
7997/* Override any GCC internal prototype to avoid an error.
7998 Use char because int might match the return type of a GCC
7999 builtin and then its argument prototype would still apply. */
8000#ifdef __cplusplus
8001extern "C"
8002#endif
8003char FcPatternGet ();
8004int
8005main ()
8006{
8007return FcPatternGet ();
8008 ;
8009 return 0;
8010}
8011_ACEOF
8012if ac_fn_cxx_try_link "$LINENO"; then :
8013 ac_cv_lib_fontconfig_FcPatternGet=yes
8014else
8015 ac_cv_lib_fontconfig_FcPatternGet=no
8016fi
8017rm -f core conftest.err conftest.$ac_objext \
8018 conftest$ac_exeext conftest.$ac_ext
8019LIBS=$ac_check_lib_save_LIBS
8020fi
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5
8022$as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; }
8023if test "x$ac_cv_lib_fontconfig_FcPatternGet" = x""yes; then :
8024 :
8025else
8026 support_xft=no
8027fi
8028
8029 LIBS="$save_LIBS"
13329 8030
13330 if test x$support_xft = xyes; then 8031 if test x$support_xft = xyes; then
13331 8032
13332cat >>confdefs.h <<\_ACEOF 8033$as_echo "#define XFT 1" >>confdefs.h
13333#define XFT 1
13334_ACEOF
13335 8034
13336 fi 8035 fi
13337fi 8036fi
13338if test x$support_styles = xyes; then 8037if test x$support_styles = xyes; then
13339 8038
13340cat >>confdefs.h <<\_ACEOF 8039$as_echo "#define ENABLE_STYLES 1" >>confdefs.h
13341#define ENABLE_STYLES 1
13342_ACEOF
13343 8040
13344fi 8041fi
13345if test x$support_iso14755 = xyes; then 8042if test x$support_iso14755 = xyes; then
13346 8043
13347cat >>confdefs.h <<\_ACEOF 8044$as_echo "#define ISO_14755 1" >>confdefs.h
13348#define ISO_14755 1
13349_ACEOF
13350 8045
13351fi 8046fi
13352if test x$support_8bitctrls = xyes; then 8047if test x$support_8bitctrls = xyes; then
13353 8048
13354cat >>confdefs.h <<\_ACEOF 8049$as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
13355#define EIGHT_BIT_CONTROLS 1
13356_ACEOF
13357 8050
13358fi 8051fi
13359if test x$support_fading = xyes; then 8052if test x$support_fading = xyes; then
13360 8053
13361cat >>confdefs.h <<\_ACEOF 8054$as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h
13362#define OFF_FOCUS_FADING 1
13363_ACEOF
13364
13365fi
13366if test x$support_tinting = xyes; then
13367
13368cat >>confdefs.h <<\_ACEOF
13369#define TINTING 1
13370_ACEOF
13371 8055
13372fi 8056fi
13373if test x$support_inheritpixmap = xyes; then 8057if test x$support_inheritpixmap = xyes; then
8058 if test x$rxvt_have_xrender = xyes; then
8059 LIBS="$LIBS -lm"
13374 8060
13375cat >>confdefs.h <<\_ACEOF 8061$as_echo "#define XRENDER 1" >>confdefs.h
13376#define TRANSPARENT 1 8062
13377_ACEOF 8063 fi
8064
8065$as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
13378 8066
13379fi 8067fi
13380if test x$support_keepscrolling = xno; then 8068if test x$support_keepscrolling = xno; then
13381 8069
13382cat >>confdefs.h <<\_ACEOF
13383#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 8070$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
13384_ACEOF
13385 8071
13386fi 8072fi
13387if test x$support_selectionscrolling = xyes; then 8073if test x$support_selectionscrolling = xyes; then
13388 8074
13389cat >>confdefs.h <<\_ACEOF 8075$as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h
13390#define SELECTION_SCROLLING 1
13391_ACEOF
13392 8076
13393fi 8077fi
13394if test x$support_frills = xyes; then 8078if test x$support_frills = xyes; then
13395 8079
13396cat >>confdefs.h <<\_ACEOF 8080$as_echo "#define ENABLE_FRILLS 1" >>confdefs.h
13397#define ENABLE_FRILLS 1
13398_ACEOF
13399 8081
13400fi 8082fi
13401if test x$support_mousewheel = xyes; then 8083if test x$support_mousewheel = xyes; then
13402 8084
13403cat >>confdefs.h <<\_ACEOF 8085$as_echo "#define MOUSE_WHEEL 1" >>confdefs.h
13404#define MOUSE_WHEEL 1
13405_ACEOF
13406 8086
13407fi 8087fi
13408if test x$support_mouseslipwheel = xyes; then 8088if test x$support_mouseslipwheel = xyes; then
13409 8089
13410cat >>confdefs.h <<\_ACEOF 8090$as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
13411#define MOUSE_SLIP_WHEELING 1
13412_ACEOF
13413 8091
13414fi 8092fi
13415if test x$support_xim = xyes -o x$multichar_set = xyes; then
13416 if test x$rxvt_cv_func_xlocale = xyes; then
13417 8093
13418cat >>confdefs.h <<\_ACEOF 8094scrolltypes=plain
13419#define USE_XIM 1
13420_ACEOF
13421 8095
13422 fi 8096$as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h
13423fi
13424if test x$support_xpm = xyes; then
13425 8097
13426cat >>confdefs.h <<\_ACEOF
13427#define XPM_BACKGROUND 1
13428_ACEOF
13429 8098
13430fi
13431if test x$support_scroll_rxvt = xyes; then 8099if test x$support_scroll_rxvt = xyes; then
13432 8100
13433cat >>confdefs.h <<\_ACEOF 8101$as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h
13434#define RXVT_SCROLLBAR 1
13435_ACEOF
13436 8102
13437 scrolltypes="rxvt" 8103 scrolltypes="$scrolltypes rxvt"
13438fi 8104fi
13439if test x$support_scroll_next = xyes; then 8105if test x$support_scroll_next = xyes; then
13440 8106
13441cat >>confdefs.h <<\_ACEOF 8107$as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h
13442#define NEXT_SCROLLBAR 1
13443_ACEOF
13444 8108
13445 scrolltypes="$scrolltypes next" 8109 scrolltypes="$scrolltypes next"
13446fi 8110fi
13447if test x$support_scroll_xterm = xyes; then 8111if test x$support_scroll_xterm = xyes; then
13448 8112
13449cat >>confdefs.h <<\_ACEOF 8113$as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h
13450#define XTERM_SCROLLBAR 1
13451_ACEOF
13452 8114
13453 scrolltypes="$scrolltypes xterm" 8115 scrolltypes="$scrolltypes xterm"
13454fi 8116fi
13455if test x$support_scroll_plain = xyes; then
13456
13457cat >>confdefs.h <<\_ACEOF
13458#define PLAIN_SCROLLBAR 1
13459_ACEOF
13460
13461 scrolltypes="$scrolltypes plain"
13462fi
13463if test x$support_pointer_blank = xyes; then 8117if test x$support_pointer_blank = xyes; then
13464 8118
13465cat >>confdefs.h <<\_ACEOF 8119$as_echo "#define POINTER_BLANK 1" >>confdefs.h
13466#define POINTER_BLANK 1
13467_ACEOF
13468 8120
13469fi 8121fi
13470if test x$support_text_blink = xyes; then 8122if test x$support_text_blink = xyes; then
13471 8123
13472cat >>confdefs.h <<\_ACEOF 8124$as_echo "#define TEXT_BLINK 1" >>confdefs.h
13473#define TEXT_BLINK 1
13474_ACEOF
13475 8125
13476fi 8126fi
13477if test x$support_unicode3 = xyes; then 8127if test x$support_unicode3 = xyes; then
13478 8128
13479cat >>confdefs.h <<\_ACEOF 8129$as_echo "#define UNICODE_3 1" >>confdefs.h
13480#define UNICODE_3 1
13481_ACEOF
13482 8130
13483fi 8131fi
13484if test x$support_combining = xyes; then 8132if test x$support_combining = xyes; then
13485 8133
13486cat >>confdefs.h <<\_ACEOF 8134$as_echo "#define ENABLE_COMBINING 1" >>confdefs.h
13487#define ENABLE_COMBINING 1
13488_ACEOF
13489 8135
13490fi 8136fi
13491if test x$codesets = xall; then 8137if test x$codesets = xall; then
13492 codesets=jp,jp-ext,kr,zh,zh-ext 8138 codesets=jp,jp-ext,kr,zh,zh-ext
13493fi 8139fi
13494 8140
13495cat >>confdefs.h <<\_ACEOF 8141$as_echo "#define ENCODING_EU 1" >>confdefs.h
13496#define ENCODING_EU 1
13497_ACEOF
13498 8142
13499 8143
13500cat >>confdefs.h <<\_ACEOF 8144$as_echo "#define ENCODING_VN 1" >>confdefs.h
13501#define ENCODING_VN 1
13502_ACEOF
13503 8145
13504for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 8146for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13505 case "$codeset" in 8147 case "$codeset" in
13506 JP ) 8148 JP )
13507cat >>confdefs.h <<\_ACEOF 8149$as_echo "#define ENCODING_JP 1" >>confdefs.h
13508#define ENCODING_JP 1
13509_ACEOF
13510 ;; 8150 ;;
13511 JP_EXT ) 8151 JP_EXT )
13512cat >>confdefs.h <<\_ACEOF 8152$as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h
13513#define ENCODING_JP_EXT 1
13514_ACEOF
13515 ;; 8153 ;;
13516 KR ) 8154 KR )
13517cat >>confdefs.h <<\_ACEOF 8155$as_echo "#define ENCODING_KR 1" >>confdefs.h
13518#define ENCODING_KR 1
13519_ACEOF
13520 ;; 8156 ;;
13521 ZH ) 8157 ZH )
13522cat >>confdefs.h <<\_ACEOF 8158$as_echo "#define ENCODING_ZH 1" >>confdefs.h
13523#define ENCODING_ZH 1
13524_ACEOF
13525 ;; 8159 ;;
13526 ZH_EXT ) 8160 ZH_EXT )
13527cat >>confdefs.h <<\_ACEOF 8161$as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h
13528#define ENCODING_ZH_EXT 1
13529_ACEOF
13530 ;; 8162 ;;
13531 esac 8163 esac
13532done 8164done
13533 8165
13534IF_PERL=\# 8166IF_PERL=\#
13535if test x$support_perl = xyes; then 8167if test x$support_perl = xyes; then
13536 # Extract the first word of "perl5", so it can be a program name with args. 8168 # Extract the first word of "perl5", so it can be a program name with args.
13537set dummy perl5; ac_word=$2 8169set dummy perl5; ac_word=$2
13538{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8171$as_echo_n "checking for $ac_word... " >&6; }
13540if test "${ac_cv_path_PERL+set}" = set; then 8172if test "${ac_cv_path_PERL+set}" = set; then :
13541 echo $ECHO_N "(cached) $ECHO_C" >&6 8173 $as_echo_n "(cached) " >&6
13542else 8174else
13543 case $PERL in 8175 case $PERL in
13544 [\\/]* | ?:[\\/]*) 8176 [\\/]* | ?:[\\/]*)
13545 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 8177 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13546 ;; 8178 ;;
13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549for as_dir in $PATH 8181for as_dir in $PATH
13550do 8182do
13551 IFS=$as_save_IFS 8183 IFS=$as_save_IFS
13552 test -z "$as_dir" && as_dir=. 8184 test -z "$as_dir" && as_dir=.
13553 for ac_exec_ext in '' $ac_executable_extensions; do 8185 for ac_exec_ext in '' $ac_executable_extensions; do
13554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13555 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 8187 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13557 break 2 8189 break 2
13558 fi 8190 fi
13559done 8191done
13560done 8192 done
13561IFS=$as_save_IFS 8193IFS=$as_save_IFS
13562 8194
13563 ;; 8195 ;;
13564esac 8196esac
13565fi 8197fi
13566PERL=$ac_cv_path_PERL 8198PERL=$ac_cv_path_PERL
13567if test -n "$PERL"; then 8199if test -n "$PERL"; then
13568 { echo "$as_me:$LINENO: result: $PERL" >&5 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13569echo "${ECHO_T}$PERL" >&6; } 8201$as_echo "$PERL" >&6; }
13570else 8202else
13571 { echo "$as_me:$LINENO: result: no" >&5 8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13572echo "${ECHO_T}no" >&6; } 8204$as_echo "no" >&6; }
13573fi 8205fi
13574 8206
13575 8207
13576 # Extract the first word of "perl", so it can be a program name with args. 8208 # Extract the first word of "perl", so it can be a program name with args.
13577set dummy perl; ac_word=$2 8209set dummy perl; ac_word=$2
13578{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8211$as_echo_n "checking for $ac_word... " >&6; }
13580if test "${ac_cv_path_PERL+set}" = set; then 8212if test "${ac_cv_path_PERL+set}" = set; then :
13581 echo $ECHO_N "(cached) $ECHO_C" >&6 8213 $as_echo_n "(cached) " >&6
13582else 8214else
13583 case $PERL in 8215 case $PERL in
13584 [\\/]* | ?:[\\/]*) 8216 [\\/]* | ?:[\\/]*)
13585 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 8217 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13586 ;; 8218 ;;
13588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589for as_dir in $PATH 8221for as_dir in $PATH
13590do 8222do
13591 IFS=$as_save_IFS 8223 IFS=$as_save_IFS
13592 test -z "$as_dir" && as_dir=. 8224 test -z "$as_dir" && as_dir=.
13593 for ac_exec_ext in '' $ac_executable_extensions; do 8225 for ac_exec_ext in '' $ac_executable_extensions; do
13594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13595 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 8227 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 break 2 8229 break 2
13598 fi 8230 fi
13599done 8231done
13600done 8232 done
13601IFS=$as_save_IFS 8233IFS=$as_save_IFS
13602 8234
13603 ;; 8235 ;;
13604esac 8236esac
13605fi 8237fi
13606PERL=$ac_cv_path_PERL 8238PERL=$ac_cv_path_PERL
13607if test -n "$PERL"; then 8239if test -n "$PERL"; then
13608 { echo "$as_me:$LINENO: result: $PERL" >&5 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13609echo "${ECHO_T}$PERL" >&6; } 8241$as_echo "$PERL" >&6; }
13610else 8242else
13611 { echo "$as_me:$LINENO: result: no" >&5 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612echo "${ECHO_T}no" >&6; } 8244$as_echo "no" >&6; }
13613fi 8245fi
13614 8246
13615 8247
13616 8248
13617 { echo "$as_me:$LINENO: checking for $PERL suitability" >&5 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
13618echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6; } 8250$as_echo_n "checking for $PERL suitability... " >&6; }
13619 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then 8251 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13620 8252
13621 save_CXXFLAGS="$CXXFLAGS" 8253 save_CXXFLAGS="$CXXFLAGS"
13622 save_LIBS="$LIBS" 8254 save_LIBS="$LIBS"
13623 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" 8255 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13624 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" 8256 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13625 cat >conftest.$ac_ext <<_ACEOF
13626/* confdefs.h. */
13627_ACEOF
13628cat confdefs.h >>conftest.$ac_ext 8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629cat >>conftest.$ac_ext <<_ACEOF
13630/* end confdefs.h. */ 8258/* end confdefs.h. */
13631 8259
13632#include <EXTERN.h> 8260#include <EXTERN.h>
13633#include <perl.h> 8261#include <perl.h>
13634#include <XSUB.h> 8262#include <XSUB.h>
13641 8269
13642 ; 8270 ;
13643 return 0; 8271 return 0;
13644} 8272}
13645_ACEOF 8273_ACEOF
13646rm -f conftest.$ac_objext conftest$ac_exeext 8274if ac_fn_cxx_try_link "$LINENO"; then :
13647if { (ac_try="$ac_link"
13648case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13651esac
13652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_link") 2>conftest.er1
13654 ac_status=$?
13655 grep -v '^ *+' conftest.er1 >conftest.err
13656 rm -f conftest.er1
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } && {
13660 test -z "$ac_cxx_werror_flag" ||
13661 test ! -s conftest.err
13662 } && test -s conftest$ac_exeext &&
13663 $as_test_x conftest$ac_exeext; then
13664 rxvt_perl_link=yes 8275 rxvt_perl_link=yes
13665else 8276else
13666 echo "$as_me: failed program was:" >&5
13667sed 's/^/| /' conftest.$ac_ext >&5
13668
13669 rxvt_perl_link=no 8277 rxvt_perl_link=no
13670fi 8278fi
13671
13672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8279rm -f core conftest.err conftest.$ac_objext \
13673 conftest$ac_exeext conftest.$ac_ext 8280 conftest$ac_exeext conftest.$ac_ext
13674 CXXFLAGS="$save_CXXFLAGS" 8281 CXXFLAGS="$save_CXXFLAGS"
13675 LIBS="$save_LIBS" 8282 LIBS="$save_LIBS"
13676 8283
13677 if test x$rxvt_perl_link = xyes; then 8284 if test x$rxvt_perl_link = xyes; then
13678 { echo "$as_me:$LINENO: result: ok" >&5 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13679echo "${ECHO_T}ok" >&6; } 8286$as_echo "ok" >&6; }
13680 8287
13681cat >>confdefs.h <<\_ACEOF 8288$as_echo "#define ENABLE_PERL 1" >>confdefs.h
13682#define ENABLE_PERL 1
13683_ACEOF
13684 8289
13685 IF_PERL= 8290 IF_PERL=
13686 PERL_O=rxvtperl.o 8291 PERL_O=rxvtperl.o
13687 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 8292 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13688 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 8293 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13689 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" 8294 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13690 else 8295 else
13691 { { echo "$as_me:$LINENO: error: no, unable to link" >&5 8296 as_fn_error $? "no, unable to link" "$LINENO" 5
13692echo "$as_me: error: no, unable to link" >&2;}
13693 { (exit 1); exit 1; }; }
13694 fi 8297 fi
13695 else 8298 else
13696 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 8299 as_fn_error $? "no working perl found, or perl not version >= 5.8" "$LINENO" 5
13697echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13698 { (exit 1); exit 1; }; }
13699 fi 8300 fi
13700fi 8301fi
13701 8302
13702 8303
13703 8304
13704 8305
13705 8306
13706 8307
13707 8308
13708if test x$support_perl = xyes; then
13709 support_frills=yes
13710fi
13711 8309
13712
13713
13714
13715
13716
13717
13718
13719if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13720 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
13721 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13722 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13723 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13724 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13725fi
13726
13727
13728
13729
13730
13731test "$program_prefix" != NONE &&
13732 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13733# Use a double $ so make ignores it.
13734test "$program_suffix" != NONE &&
13735 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
13736# Double any \ or $. echo might interpret backslashes.
13737# By default was `s,x,x', remove it if useless.
13738cat <<\_ACEOF >conftest.sed
13739s/[\\$]/&&/g;s/;s,x,x,$//
13740_ACEOF
13741program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13742rm -f conftest.sed
13743
13744
13745
13746
13747
13748if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13749 include_stdint_h="#include <stdint.h>"
13750else
13751 include_stdint_h="/* #include <stdint.h> */"
13752fi
13753if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13754 include_stdarg_h="#include <cstdarg>"
13755else
13756 include_stdarg_h="/* #include <cstdarg> */"
13757fi
13758if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13759 include_stdlib_h="#include <cstdlib>"
13760else
13761 include_stdlib_h="/* #include <cstdlib> */"
13762fi
13763if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13764 include_unistd_h="#include <unistd.h>"
13765else
13766 include_unistd_h="/* #include <unistd.h> */"
13767fi
13768if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13769 include_string_h="#include <cstring>"
13770else
13771 include_string_h="/* #include <cstring> */"
13772fi
13773if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13774 include_fcntl_h="#include <fcntl.h>"
13775else
13776 include_fcntl_h="/* #include <fcntl.h> */"
13777fi
13778if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13779 include_util_h="#include <util.h>"
13780else
13781 include_util_h="/* #include <util.h> */"
13782fi
13783if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13784 include_assert_h="#include <assert.h>"
13785else
13786 include_assert_h="/* #include <assert.h> */"
13787fi
13788if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13789 include_sys_ioctl_h="#include <sys/ioctl.h>"
13790else
13791 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13792fi
13793if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13794 include_sys_select_h="#include <sys/select.h>"
13795else
13796 include_sys_select_h="/* #include <sys/select.h> */"
13797fi
13798if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13799 include_sys_strredir_h="#include <sys/strredir.h>"
13800else
13801 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13802fi
13803if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13804 include_sys_time_h="#include <sys/time.h>"
13805else
13806 include_sys_time_h="/* #include <sys/time.h> */"
13807fi
13808if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13809 include_time_h="#include <time.h>"
13810else
13811 include_time_h="/* #include <time.h> */"
13812fi
13813
13814ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 8310ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13815 8311
13816cat >confcache <<\_ACEOF 8312cat >confcache <<\_ACEOF
13817# This file is a shell script that caches the results of configure 8313# This file is a shell script that caches the results of configure
13818# tests run on this system so they can be shared between configure 8314# tests run on this system so they can be shared between configure
13819# scripts and configure runs, see configure's option --config-cache. 8315# scripts and configure runs, see configure's option --config-cache.
13838 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8334 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13839 eval ac_val=\$$ac_var 8335 eval ac_val=\$$ac_var
13840 case $ac_val in #( 8336 case $ac_val in #(
13841 *${as_nl}*) 8337 *${as_nl}*)
13842 case $ac_var in #( 8338 case $ac_var in #(
13843 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 8339 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13844echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 8340$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13845 esac 8341 esac
13846 case $ac_var in #( 8342 case $ac_var in #(
13847 _ | IFS | as_nl) ;; #( 8343 _ | IFS | as_nl) ;; #(
13848 *) $as_unset $ac_var ;; 8344 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8345 *) { eval $ac_var=; unset $ac_var;} ;;
13849 esac ;; 8346 esac ;;
13850 esac 8347 esac
13851 done 8348 done
13852 8349
13853 (set) 2>&1 | 8350 (set) 2>&1 |
13854 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8351 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13855 *${as_nl}ac_space=\ *) 8352 *${as_nl}ac_space=\ *)
13856 # `set' does not quote correctly, so add quotes (double-quote 8353 # `set' does not quote correctly, so add quotes: double-quote
13857 # substitution turns \\\\ into \\, and sed turns \\ into \). 8354 # substitution turns \\\\ into \\, and sed turns \\ into \.
13858 sed -n \ 8355 sed -n \
13859 "s/'/'\\\\''/g; 8356 "s/'/'\\\\''/g;
13860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13861 ;; #( 8358 ;; #(
13862 *) 8359 *)
13875 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8372 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13876 :end' >>confcache 8373 :end' >>confcache
13877if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8374if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13878 if test -w "$cache_file"; then 8375 if test -w "$cache_file"; then
13879 test "x$cache_file" != "x/dev/null" && 8376 test "x$cache_file" != "x/dev/null" &&
13880 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 8377 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13881echo "$as_me: updating cache $cache_file" >&6;} 8378$as_echo "$as_me: updating cache $cache_file" >&6;}
13882 cat confcache >$cache_file 8379 cat confcache >$cache_file
13883 else 8380 else
13884 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 8381 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13885echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8382$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13886 fi 8383 fi
13887fi 8384fi
13888rm -f confcache 8385rm -f confcache
13889 8386
13890test "x$prefix" = xNONE && prefix=$ac_default_prefix 8387test "x$prefix" = xNONE && prefix=$ac_default_prefix
13893 8390
13894DEFS=-DHAVE_CONFIG_H 8391DEFS=-DHAVE_CONFIG_H
13895 8392
13896ac_libobjs= 8393ac_libobjs=
13897ac_ltlibobjs= 8394ac_ltlibobjs=
8395U=
13898for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8396for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13899 # 1. Remove the extension, and $U if already installed. 8397 # 1. Remove the extension, and $U if already installed.
13900 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8398 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13901 ac_i=`echo "$ac_i" | sed "$ac_script"` 8399 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13902 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8400 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13903 # will be set to the directory where LIBOBJS objects are built. 8401 # will be set to the directory where LIBOBJS objects are built.
13904 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8402 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13905 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 8403 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13906done 8404done
13907LIBOBJS=$ac_libobjs 8405LIBOBJS=$ac_libobjs
13908 8406
13909LTLIBOBJS=$ac_ltlibobjs 8407LTLIBOBJS=$ac_ltlibobjs
13910 8408
13911 8409
13912 8410
13913: ${CONFIG_STATUS=./config.status} 8411: ${CONFIG_STATUS=./config.status}
8412ac_write_fail=0
13914ac_clean_files_save=$ac_clean_files 8413ac_clean_files_save=$ac_clean_files
13915ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8414ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13916{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8415{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13917echo "$as_me: creating $CONFIG_STATUS" >&6;} 8416$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13918cat >$CONFIG_STATUS <<_ACEOF 8417as_write_fail=0
8418cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13919#! $SHELL 8419#! $SHELL
13920# Generated by $as_me. 8420# Generated by $as_me.
13921# Run this file to recreate the current configuration. 8421# Run this file to recreate the current configuration.
13922# Compiler output produced by configure, useful for debugging 8422# Compiler output produced by configure, useful for debugging
13923# configure, is in config.log if it exists. 8423# configure, is in config.log if it exists.
13924 8424
13925debug=false 8425debug=false
13926ac_cs_recheck=false 8426ac_cs_recheck=false
13927ac_cs_silent=false 8427ac_cs_silent=false
8428
13928SHELL=\${CONFIG_SHELL-$SHELL} 8429SHELL=\${CONFIG_SHELL-$SHELL}
8430export SHELL
13929_ACEOF 8431_ASEOF
13930 8432cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13931cat >>$CONFIG_STATUS <<\_ACEOF
13932## --------------------- ## 8433## -------------------- ##
13933## M4sh Initialization. ## 8434## M4sh Initialization. ##
13934## --------------------- ## 8435## -------------------- ##
13935 8436
13936# Be more Bourne compatible 8437# Be more Bourne compatible
13937DUALCASE=1; export DUALCASE # for MKS sh 8438DUALCASE=1; export DUALCASE # for MKS sh
13938if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8439if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13939 emulate sh 8440 emulate sh
13940 NULLCMD=: 8441 NULLCMD=:
13941 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8442 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13942 # is contrary to our usage. Disable this feature. 8443 # is contrary to our usage. Disable this feature.
13943 alias -g '${1+"$@"}'='"$@"' 8444 alias -g '${1+"$@"}'='"$@"'
13944 setopt NO_GLOB_SUBST 8445 setopt NO_GLOB_SUBST
13945else 8446else
13946 case `(set -o) 2>/dev/null` in 8447 case `(set -o) 2>/dev/null` in #(
13947 *posix*) set -o posix ;; 8448 *posix*) :
8449 set -o posix ;; #(
8450 *) :
8451 ;;
13948esac 8452esac
13949
13950fi 8453fi
13951 8454
13952 8455
13953 8456as_nl='
13954 8457'
13955# PATH needs CR 8458export as_nl
13956# Avoid depending upon Character Ranges. 8459# Printing a long string crashes Solaris 7 /usr/bin/printf.
13957as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8460as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13958as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8461as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13959as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8462as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13960as_cr_digits='0123456789' 8463# Prefer a ksh shell builtin over an external printf program on Solaris,
13961as_cr_alnum=$as_cr_Letters$as_cr_digits 8464# but without wasting forks for bash or zsh.
8465if test -z "$BASH_VERSION$ZSH_VERSION" \
8466 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8467 as_echo='print -r --'
8468 as_echo_n='print -rn --'
8469elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8470 as_echo='printf %s\n'
8471 as_echo_n='printf %s'
8472else
8473 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8474 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8475 as_echo_n='/usr/ucb/echo -n'
8476 else
8477 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8478 as_echo_n_body='eval
8479 arg=$1;
8480 case $arg in #(
8481 *"$as_nl"*)
8482 expr "X$arg" : "X\\(.*\\)$as_nl";
8483 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8484 esac;
8485 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8486 '
8487 export as_echo_n_body
8488 as_echo_n='sh -c $as_echo_n_body as_echo'
8489 fi
8490 export as_echo_body
8491 as_echo='sh -c $as_echo_body as_echo'
8492fi
13962 8493
13963# The user is always right. 8494# The user is always right.
13964if test "${PATH_SEPARATOR+set}" != set; then 8495if test "${PATH_SEPARATOR+set}" != set; then
13965 echo "#! /bin/sh" >conf$$.sh 8496 PATH_SEPARATOR=:
13966 echo "exit 0" >>conf$$.sh 8497 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13967 chmod +x conf$$.sh 8498 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13968 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13969 PATH_SEPARATOR=';' 8499 PATH_SEPARATOR=';'
13970 else 8500 }
13971 PATH_SEPARATOR=:
13972 fi
13973 rm -f conf$$.sh
13974fi
13975
13976# Support unset when possible.
13977if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13978 as_unset=unset
13979else
13980 as_unset=false
13981fi 8501fi
13982 8502
13983 8503
13984# IFS 8504# IFS
13985# We need space, tab and new line, in precisely that order. Quoting is 8505# We need space, tab and new line, in precisely that order. Quoting is
13986# there to prevent editors from complaining about space-tab. 8506# there to prevent editors from complaining about space-tab.
13987# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8507# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13988# splitting by setting IFS to empty value.) 8508# splitting by setting IFS to empty value.)
13989as_nl='
13990'
13991IFS=" "" $as_nl" 8509IFS=" "" $as_nl"
13992 8510
13993# Find who we are. Look in the path if we contain no directory separator. 8511# Find who we are. Look in the path if we contain no directory separator.
13994case $0 in 8512case $0 in #((
13995 *[\\/]* ) as_myself=$0 ;; 8513 *[\\/]* ) as_myself=$0 ;;
13996 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8514 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13997for as_dir in $PATH 8515for as_dir in $PATH
13998do 8516do
13999 IFS=$as_save_IFS 8517 IFS=$as_save_IFS
14000 test -z "$as_dir" && as_dir=. 8518 test -z "$as_dir" && as_dir=.
14001 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8519 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14002done 8520 done
14003IFS=$as_save_IFS 8521IFS=$as_save_IFS
14004 8522
14005 ;; 8523 ;;
14006esac 8524esac
14007# We did not find ourselves, most probably we were run as `sh COMMAND' 8525# We did not find ourselves, most probably we were run as `sh COMMAND'
14008# in which case we are not to be found in the path. 8526# in which case we are not to be found in the path.
14009if test "x$as_myself" = x; then 8527if test "x$as_myself" = x; then
14010 as_myself=$0 8528 as_myself=$0
14011fi 8529fi
14012if test ! -f "$as_myself"; then 8530if test ! -f "$as_myself"; then
14013 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8531 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14014 { (exit 1); exit 1; } 8532 exit 1
14015fi 8533fi
14016 8534
14017# Work around bugs in pre-3.0 UWIN ksh. 8535# Unset variables that we do not need and which cause bugs (e.g. in
8536# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8537# suppresses any "Segmentation fault" message there. '((' could
8538# trigger a bug in pdksh 5.2.14.
14018for as_var in ENV MAIL MAILPATH 8539for as_var in BASH_ENV ENV MAIL MAILPATH
8540do eval test x\${$as_var+set} = xset \
14019do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8541 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14020done 8542done
14021PS1='$ ' 8543PS1='$ '
14022PS2='> ' 8544PS2='> '
14023PS4='+ ' 8545PS4='+ '
14024 8546
14025# NLS nuisances. 8547# NLS nuisances.
14026for as_var in \ 8548LC_ALL=C
14027 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8549export LC_ALL
14028 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8550LANGUAGE=C
14029 LC_TELEPHONE LC_TIME 8551export LANGUAGE
14030do 8552
14031 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8553# CDPATH.
14032 eval $as_var=C; export $as_var 8554(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8555
8556
8557# as_fn_error STATUS ERROR [LINENO LOG_FD]
8558# ----------------------------------------
8559# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8560# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8561# script with STATUS, using 1 if that was 0.
8562as_fn_error ()
8563{
8564 as_status=$1; test $as_status -eq 0 && as_status=1
8565 if test "$4"; then
8566 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8567 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8568 fi
8569 $as_echo "$as_me: error: $2" >&2
8570 as_fn_exit $as_status
8571} # as_fn_error
8572
8573
8574# as_fn_set_status STATUS
8575# -----------------------
8576# Set $? to STATUS, without forking.
8577as_fn_set_status ()
8578{
8579 return $1
8580} # as_fn_set_status
8581
8582# as_fn_exit STATUS
8583# -----------------
8584# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8585as_fn_exit ()
8586{
8587 set +e
8588 as_fn_set_status $1
8589 exit $1
8590} # as_fn_exit
8591
8592# as_fn_unset VAR
8593# ---------------
8594# Portably unset VAR.
8595as_fn_unset ()
8596{
8597 { eval $1=; unset $1;}
8598}
8599as_unset=as_fn_unset
8600# as_fn_append VAR VALUE
8601# ----------------------
8602# Append the text in VALUE to the end of the definition contained in VAR. Take
8603# advantage of any shell optimizations that allow amortized linear growth over
8604# repeated appends, instead of the typical quadratic growth present in naive
8605# implementations.
8606if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8607 eval 'as_fn_append ()
8608 {
8609 eval $1+=\$2
8610 }'
14033 else 8611else
14034 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8612 as_fn_append ()
14035 fi 8613 {
14036done 8614 eval $1=\$$1\$2
8615 }
8616fi # as_fn_append
14037 8617
14038# Required to use basename. 8618# as_fn_arith ARG...
8619# ------------------
8620# Perform arithmetic evaluation on the ARGs, and store the result in the
8621# global $as_val. Take advantage of shells that can avoid forks. The arguments
8622# must be portable across $(()) and expr.
8623if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8624 eval 'as_fn_arith ()
8625 {
8626 as_val=$(( $* ))
8627 }'
8628else
8629 as_fn_arith ()
8630 {
8631 as_val=`expr "$@" || test $? -eq 1`
8632 }
8633fi # as_fn_arith
8634
8635
14039if expr a : '\(a\)' >/dev/null 2>&1 && 8636if expr a : '\(a\)' >/dev/null 2>&1 &&
14040 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8637 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14041 as_expr=expr 8638 as_expr=expr
14042else 8639else
14043 as_expr=false 8640 as_expr=false
14047 as_basename=basename 8644 as_basename=basename
14048else 8645else
14049 as_basename=false 8646 as_basename=false
14050fi 8647fi
14051 8648
8649if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8650 as_dirname=dirname
8651else
8652 as_dirname=false
8653fi
14052 8654
14053# Name of the executable.
14054as_me=`$as_basename -- "$0" || 8655as_me=`$as_basename -- "$0" ||
14055$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8656$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14056 X"$0" : 'X\(//\)$' \| \ 8657 X"$0" : 'X\(//\)$' \| \
14057 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8658 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14058echo X/"$0" | 8659$as_echo X/"$0" |
14059 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8660 sed '/^.*\/\([^/][^/]*\)\/*$/{
14060 s//\1/ 8661 s//\1/
14061 q 8662 q
14062 } 8663 }
14063 /^X\/\(\/\/\)$/{ 8664 /^X\/\(\/\/\)$/{
14068 s//\1/ 8669 s//\1/
14069 q 8670 q
14070 } 8671 }
14071 s/.*/./; q'` 8672 s/.*/./; q'`
14072 8673
14073# CDPATH. 8674# Avoid depending upon Character Ranges.
14074$as_unset CDPATH 8675as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14075 8676as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14076 8677as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14077 8678as_cr_digits='0123456789'
14078 as_lineno_1=$LINENO 8679as_cr_alnum=$as_cr_Letters$as_cr_digits
14079 as_lineno_2=$LINENO
14080 test "x$as_lineno_1" != "x$as_lineno_2" &&
14081 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14082
14083 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14084 # uniformly replaced by the line number. The first 'sed' inserts a
14085 # line-number line after each line using $LINENO; the second 'sed'
14086 # does the real work. The second script uses 'N' to pair each
14087 # line-number line with the line containing $LINENO, and appends
14088 # trailing '-' during substitution so that $LINENO is not a special
14089 # case at line end.
14090 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14091 # scripts with optimization help from Paolo Bonzini. Blame Lee
14092 # E. McMahon (1931-1989) for sed's syntax. :-)
14093 sed -n '
14094 p
14095 /[$]LINENO/=
14096 ' <$as_myself |
14097 sed '
14098 s/[$]LINENO.*/&-/
14099 t lineno
14100 b
14101 :lineno
14102 N
14103 :loop
14104 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14105 t loop
14106 s/-\n.*//
14107 ' >$as_me.lineno &&
14108 chmod +x "$as_me.lineno" ||
14109 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14110 { (exit 1); exit 1; }; }
14111
14112 # Don't try to exec as it changes $[0], causing all sort of problems
14113 # (the dirname of $[0] is not the place where we might find the
14114 # original and so on. Autoconf is especially sensitive to this).
14115 . "./$as_me.lineno"
14116 # Exit status is that of the last command.
14117 exit
14118}
14119
14120
14121if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14122 as_dirname=dirname
14123else
14124 as_dirname=false
14125fi
14126 8680
14127ECHO_C= ECHO_N= ECHO_T= 8681ECHO_C= ECHO_N= ECHO_T=
14128case `echo -n x` in 8682case `echo -n x` in #(((((
14129-n*) 8683-n*)
14130 case `echo 'x\c'` in 8684 case `echo 'xy\c'` in
14131 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8685 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14132 *) ECHO_C='\c';; 8686 xy) ECHO_C='\c';;
8687 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8688 ECHO_T=' ';;
14133 esac;; 8689 esac;;
14134*) 8690*)
14135 ECHO_N='-n';; 8691 ECHO_N='-n';;
14136esac 8692esac
14137 8693
14138if expr a : '\(a\)' >/dev/null 2>&1 &&
14139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14140 as_expr=expr
14141else
14142 as_expr=false
14143fi
14144
14145rm -f conf$$ conf$$.exe conf$$.file 8694rm -f conf$$ conf$$.exe conf$$.file
14146if test -d conf$$.dir; then 8695if test -d conf$$.dir; then
14147 rm -f conf$$.dir/conf$$.file 8696 rm -f conf$$.dir/conf$$.file
14148else 8697else
14149 rm -f conf$$.dir 8698 rm -f conf$$.dir
14150 mkdir conf$$.dir 8699 mkdir conf$$.dir 2>/dev/null
14151fi 8700fi
14152echo >conf$$.file 8701if (echo >conf$$.file) 2>/dev/null; then
14153if ln -s conf$$.file conf$$ 2>/dev/null; then 8702 if ln -s conf$$.file conf$$ 2>/dev/null; then
14154 as_ln_s='ln -s' 8703 as_ln_s='ln -s'
14155 # ... but there are two gotchas: 8704 # ... but there are two gotchas:
14156 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8705 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14157 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8706 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14158 # In both cases, we have to default to `cp -p'. 8707 # In both cases, we have to default to `cp -p'.
14159 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8708 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8709 as_ln_s='cp -p'
8710 elif ln conf$$.file conf$$ 2>/dev/null; then
8711 as_ln_s=ln
8712 else
14160 as_ln_s='cp -p' 8713 as_ln_s='cp -p'
14161elif ln conf$$.file conf$$ 2>/dev/null; then 8714 fi
14162 as_ln_s=ln
14163else 8715else
14164 as_ln_s='cp -p' 8716 as_ln_s='cp -p'
14165fi 8717fi
14166rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8718rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14167rmdir conf$$.dir 2>/dev/null 8719rmdir conf$$.dir 2>/dev/null
14168 8720
14169if mkdir -p . 2>/dev/null; then 8721
14170 as_mkdir_p=: 8722# as_fn_mkdir_p
14171else 8723# -------------
14172 test -d ./-p && rmdir ./-p 8724# Create "$as_dir" as a directory, including parents if necessary.
14173 as_mkdir_p=false 8725as_fn_mkdir_p ()
14174fi
14175
14176if test -x / >/dev/null 2>&1; then
14177 as_test_x='test -x'
14178else
14179 if ls -dL / >/dev/null 2>&1; then
14180 as_ls_L_option=L
14181 else
14182 as_ls_L_option=
14183 fi
14184 as_test_x='
14185 eval sh -c '\''
14186 if test -d "$1"; then
14187 test -d "$1/.";
14188 else
14189 case $1 in
14190 -*)set "./$1";;
14191 esac;
14192 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14193 ???[sx]*):;;*)false;;esac;fi
14194 '\'' sh
14195 '
14196fi
14197as_executable_p=$as_test_x
14198
14199# Sed expression to map a string onto a valid CPP name.
14200as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14201
14202# Sed expression to map a string onto a valid variable name.
14203as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14204
14205
14206exec 6>&1
14207
14208# Save the log message, to keep $[0] and so on meaningful, and to
14209# report actual input values of CONFIG_FILES etc. instead of their
14210# values after options handling.
14211ac_log="
14212This file was extended by $as_me, which was
14213generated by GNU Autoconf 2.61. Invocation command line was
14214
14215 CONFIG_FILES = $CONFIG_FILES
14216 CONFIG_HEADERS = $CONFIG_HEADERS
14217 CONFIG_LINKS = $CONFIG_LINKS
14218 CONFIG_COMMANDS = $CONFIG_COMMANDS
14219 $ $0 $@
14220
14221on `(hostname || uname -n) 2>/dev/null | sed 1q`
14222"
14223
14224_ACEOF
14225
14226cat >>$CONFIG_STATUS <<_ACEOF
14227# Files that config.status was made for.
14228config_files="$ac_config_files"
14229config_headers="$ac_config_headers"
14230
14231_ACEOF
14232
14233cat >>$CONFIG_STATUS <<\_ACEOF
14234ac_cs_usage="\
14235\`$as_me' instantiates files from templates according to the
14236current configuration.
14237
14238Usage: $0 [OPTIONS] [FILE]...
14239
14240 -h, --help print this help, then exit
14241 -V, --version print version number and configuration settings, then exit
14242 -q, --quiet do not print progress messages
14243 -d, --debug don't remove temporary files
14244 --recheck update $as_me by reconfiguring in the same conditions
14245 --file=FILE[:TEMPLATE]
14246 instantiate the configuration file FILE
14247 --header=FILE[:TEMPLATE]
14248 instantiate the configuration header FILE
14249
14250Configuration files:
14251$config_files
14252
14253Configuration headers:
14254$config_headers
14255
14256Report bugs to <bug-autoconf@gnu.org>."
14257
14258_ACEOF
14259cat >>$CONFIG_STATUS <<_ACEOF
14260ac_cs_version="\\
14261config.status
14262configured by $0, generated by GNU Autoconf 2.61,
14263 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14264
14265Copyright (C) 2006 Free Software Foundation, Inc.
14266This config.status script is free software; the Free Software Foundation
14267gives unlimited permission to copy, distribute and modify it."
14268
14269ac_pwd='$ac_pwd'
14270srcdir='$srcdir'
14271INSTALL='$INSTALL'
14272_ACEOF
14273
14274cat >>$CONFIG_STATUS <<\_ACEOF
14275# If no file are specified by the user, then we need to provide default
14276# value. By we need to know if files were specified by the user.
14277ac_need_defaults=:
14278while test $# != 0
14279do
14280 case $1 in
14281 --*=*)
14282 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14283 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14284 ac_shift=:
14285 ;;
14286 *)
14287 ac_option=$1
14288 ac_optarg=$2
14289 ac_shift=shift
14290 ;;
14291 esac
14292
14293 case $ac_option in
14294 # Handling of the options.
14295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14296 ac_cs_recheck=: ;;
14297 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14298 echo "$ac_cs_version"; exit ;;
14299 --debug | --debu | --deb | --de | --d | -d )
14300 debug=: ;;
14301 --file | --fil | --fi | --f )
14302 $ac_shift
14303 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14304 ac_need_defaults=false;;
14305 --header | --heade | --head | --hea )
14306 $ac_shift
14307 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14308 ac_need_defaults=false;;
14309 --he | --h)
14310 # Conflict between --help and --header
14311 { echo "$as_me: error: ambiguous option: $1
14312Try \`$0 --help' for more information." >&2
14313 { (exit 1); exit 1; }; };;
14314 --help | --hel | -h )
14315 echo "$ac_cs_usage"; exit ;;
14316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14317 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14318 ac_cs_silent=: ;;
14319
14320 # This is an error.
14321 -*) { echo "$as_me: error: unrecognized option: $1
14322Try \`$0 --help' for more information." >&2
14323 { (exit 1); exit 1; }; } ;;
14324
14325 *) ac_config_targets="$ac_config_targets $1"
14326 ac_need_defaults=false ;;
14327
14328 esac
14329 shift
14330done
14331
14332ac_configure_extra_args=
14333
14334if $ac_cs_silent; then
14335 exec 6>/dev/null
14336 ac_configure_extra_args="$ac_configure_extra_args --silent"
14337fi
14338
14339_ACEOF
14340cat >>$CONFIG_STATUS <<_ACEOF
14341if \$ac_cs_recheck; then
14342 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14343 CONFIG_SHELL=$SHELL
14344 export CONFIG_SHELL
14345 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14346fi
14347
14348_ACEOF
14349cat >>$CONFIG_STATUS <<\_ACEOF
14350exec 5>>config.log
14351{ 8726{
14352 echo
14353 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14354## Running $as_me. ##
14355_ASBOX
14356 echo "$ac_log"
14357} >&5
14358 8727
14359_ACEOF
14360cat >>$CONFIG_STATUS <<_ACEOF
14361_ACEOF
14362
14363cat >>$CONFIG_STATUS <<\_ACEOF
14364
14365# Handling of arguments.
14366for ac_config_target in $ac_config_targets
14367do
14368 case $ac_config_target in
14369 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
14370 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14371 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14372 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14373 "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
14374
14375 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14376echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14377 { (exit 1); exit 1; }; };;
14378 esac
14379done
14380
14381
14382# If the user did not use the arguments to specify the items to instantiate,
14383# then the envvar interface is used. Set only those that are not.
14384# We use the long form for the default assignment because of an extremely
14385# bizarre bug on SunOS 4.1.3.
14386if $ac_need_defaults; then
14387 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14388 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14389fi
14390
14391# Have a temporary directory for convenience. Make it in the build tree
14392# simply because there is no reason against having it here, and in addition,
14393# creating and moving files from /tmp can sometimes cause problems.
14394# Hook for its removal unless debugging.
14395# Note that there is a small window in which the directory will not be cleaned:
14396# after its creation but before its name has been assigned to `$tmp'.
14397$debug ||
14398{
14399 tmp=
14400 trap 'exit_status=$?
14401 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14402' 0
14403 trap '{ (exit 1); exit 1; }' 1 2 13 15
14404}
14405# Create a (secure) tmp directory for tmp files.
14406
14407{
14408 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14409 test -n "$tmp" && test -d "$tmp"
14410} ||
14411{
14412 tmp=./conf$$-$RANDOM
14413 (umask 077 && mkdir "$tmp")
14414} ||
14415{
14416 echo "$me: cannot create a temporary directory in ." >&2
14417 { (exit 1); exit 1; }
14418}
14419
14420#
14421# Set up the sed scripts for CONFIG_FILES section.
14422#
14423
14424# No need to generate the scripts if there are no CONFIG_FILES.
14425# This happens for instance when ./config.status config.h
14426if test -n "$CONFIG_FILES"; then
14427
14428_ACEOF
14429
14430
14431
14432ac_delim='%!_!# '
14433for ac_last_try in false false false false false :; do
14434 cat >conf$$subs.sed <<_ACEOF
14435SHELL!$SHELL$ac_delim
14436PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14437PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14438PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14439PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14440PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14441PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14442exec_prefix!$exec_prefix$ac_delim
14443prefix!$prefix$ac_delim
14444program_transform_name!$program_transform_name$ac_delim
14445bindir!$bindir$ac_delim
14446sbindir!$sbindir$ac_delim
14447libexecdir!$libexecdir$ac_delim
14448datarootdir!$datarootdir$ac_delim
14449datadir!$datadir$ac_delim
14450sysconfdir!$sysconfdir$ac_delim
14451sharedstatedir!$sharedstatedir$ac_delim
14452localstatedir!$localstatedir$ac_delim
14453includedir!$includedir$ac_delim
14454oldincludedir!$oldincludedir$ac_delim
14455docdir!$docdir$ac_delim
14456infodir!$infodir$ac_delim
14457htmldir!$htmldir$ac_delim
14458dvidir!$dvidir$ac_delim
14459pdfdir!$pdfdir$ac_delim
14460psdir!$psdir$ac_delim
14461libdir!$libdir$ac_delim
14462localedir!$localedir$ac_delim
14463mandir!$mandir$ac_delim
14464DEFS!$DEFS$ac_delim
14465ECHO_C!$ECHO_C$ac_delim
14466ECHO_N!$ECHO_N$ac_delim
14467ECHO_T!$ECHO_T$ac_delim
14468LIBS!$LIBS$ac_delim
14469build_alias!$build_alias$ac_delim
14470host_alias!$host_alias$ac_delim
14471target_alias!$target_alias$ac_delim
14472build!$build$ac_delim
14473build_cpu!$build_cpu$ac_delim
14474build_vendor!$build_vendor$ac_delim
14475build_os!$build_os$ac_delim
14476host!$host$ac_delim
14477host_cpu!$host_cpu$ac_delim
14478host_vendor!$host_vendor$ac_delim
14479host_os!$host_os$ac_delim
14480VERSION!$VERSION$ac_delim
14481DATE!$DATE$ac_delim
14482LSMDATE!$LSMDATE$ac_delim
14483LIBVERSION!$LIBVERSION$ac_delim
14484CC!$CC$ac_delim
14485CFLAGS!$CFLAGS$ac_delim
14486LDFLAGS!$LDFLAGS$ac_delim
14487CPPFLAGS!$CPPFLAGS$ac_delim
14488ac_ct_CC!$ac_ct_CC$ac_delim
14489EXEEXT!$EXEEXT$ac_delim
14490OBJEXT!$OBJEXT$ac_delim
14491CXX!$CXX$ac_delim
14492CXXFLAGS!$CXXFLAGS$ac_delim
14493ac_ct_CXX!$ac_ct_CXX$ac_delim
14494CPP!$CPP$ac_delim
14495INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14496INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14497INSTALL_DATA!$INSTALL_DATA$ac_delim
14498GREP!$GREP$ac_delim
14499EGREP!$EGREP$ac_delim
14500LINKER!$LINKER$ac_delim
14501INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14502RXVTNAME!$RXVTNAME$ac_delim
14503MV!$MV$ac_delim
14504CP!$CP$ac_delim
14505LN!$LN$ac_delim
14506SED!$SED$ac_delim
14507ECHO!$ECHO$ac_delim
14508CMP!$CMP$ac_delim
14509TIC!$TIC$ac_delim
14510XMKMF!$XMKMF$ac_delim
14511CXXCPP!$CXXCPP$ac_delim
14512X_CFLAGS!$X_CFLAGS$ac_delim
14513X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14514X_LIBS!$X_LIBS$ac_delim
14515X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14516XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim
14517XPM_CFLAGS!$XPM_CFLAGS$ac_delim
14518XPM_LIBS!$XPM_LIBS$ac_delim
14519rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14520rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14521rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14522rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14523rxvt_intp_define!$rxvt_intp_define$ac_delim
14524rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
14525PKG_CONFIG!$PKG_CONFIG$ac_delim
14526XFT_CONFIG!$XFT_CONFIG$ac_delim
14527PERL!$PERL$ac_delim
14528PERLLIB!$PERLLIB$ac_delim
14529PERLFLAGS!$PERLFLAGS$ac_delim
14530PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
14531IF_PERL!$IF_PERL$ac_delim
14532_ACEOF
14533
14534 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14535 break
14536 elif $ac_last_try; then
14537 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14538echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14539 { (exit 1); exit 1; }; }
14540 else
14541 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14542 fi
14543done
14544
14545ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14546if test -n "$ac_eof"; then
14547 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14548 ac_eof=`expr $ac_eof + 1`
14549fi
14550
14551cat >>$CONFIG_STATUS <<_ACEOF
14552cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14553/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14554_ACEOF
14555sed '
14556s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14557s/^/s,@/; s/!/@,|#_!!_#|/
14558:n
14559t n
14560s/'"$ac_delim"'$/,g/; t
14561s/$/\\/; p
14562N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14563' >>$CONFIG_STATUS <conf$$subs.sed
14564rm -f conf$$subs.sed
14565cat >>$CONFIG_STATUS <<_ACEOF
14566CEOF$ac_eof
14567_ACEOF
14568
14569
14570ac_delim='%!_!# '
14571for ac_last_try in false false false false false :; do
14572 cat >conf$$subs.sed <<_ACEOF
14573PERL_O!$PERL_O$ac_delim
14574DEBUG!$DEBUG$ac_delim
14575DINCLUDE!$DINCLUDE$ac_delim
14576DLIB!$DLIB$ac_delim
14577include_stdint_h!$include_stdint_h$ac_delim
14578include_stdarg_h!$include_stdarg_h$ac_delim
14579include_stdlib_h!$include_stdlib_h$ac_delim
14580include_unistd_h!$include_unistd_h$ac_delim
14581include_string_h!$include_string_h$ac_delim
14582include_fcntl_h!$include_fcntl_h$ac_delim
14583include_util_h!$include_util_h$ac_delim
14584include_assert_h!$include_assert_h$ac_delim
14585include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14586include_sys_select_h!$include_sys_select_h$ac_delim
14587include_sys_strredir_h!$include_sys_strredir_h$ac_delim
14588include_sys_time_h!$include_sys_time_h$ac_delim
14589include_time_h!$include_time_h$ac_delim
14590LIBOBJS!$LIBOBJS$ac_delim
14591LTLIBOBJS!$LTLIBOBJS$ac_delim
14592_ACEOF
14593
14594 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
14595 break
14596 elif $ac_last_try; then
14597 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14598echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14599 { (exit 1); exit 1; }; }
14600 else
14601 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14602 fi
14603done
14604
14605ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14606if test -n "$ac_eof"; then
14607 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14608 ac_eof=`expr $ac_eof + 1`
14609fi
14610
14611cat >>$CONFIG_STATUS <<_ACEOF
14612cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14613/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14614_ACEOF
14615sed '
14616s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14617s/^/s,@/; s/!/@,|#_!!_#|/
14618:n
14619t n
14620s/'"$ac_delim"'$/,g/; t
14621s/$/\\/; p
14622N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14623' >>$CONFIG_STATUS <conf$$subs.sed
14624rm -f conf$$subs.sed
14625cat >>$CONFIG_STATUS <<_ACEOF
14626:end
14627s/|#_!!_#|//g
14628CEOF$ac_eof
14629_ACEOF
14630
14631
14632# VPATH may cause trouble with some makes, so we remove $(srcdir),
14633# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14634# trailing colons and then remove the whole line if VPATH becomes empty
14635# (actually we leave an empty line to preserve line numbers).
14636if test "x$srcdir" = x.; then
14637 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14638s/:*\$(srcdir):*/:/
14639s/:*\${srcdir}:*/:/
14640s/:*@srcdir@:*/:/
14641s/^\([^=]*=[ ]*\):*/\1/
14642s/:*$//
14643s/^[^=]*=[ ]*$//
14644}'
14645fi
14646
14647cat >>$CONFIG_STATUS <<\_ACEOF
14648fi # test -n "$CONFIG_FILES"
14649
14650
14651for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
14652do
14653 case $ac_tag in
14654 :[FHLC]) ac_mode=$ac_tag; continue;;
14655 esac
14656 case $ac_mode$ac_tag in
14657 :[FHL]*:*);;
14658 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14659echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14660 { (exit 1); exit 1; }; };;
14661 :[FH]-) ac_tag=-:-;;
14662 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14663 esac
14664 ac_save_IFS=$IFS
14665 IFS=:
14666 set x $ac_tag
14667 IFS=$ac_save_IFS
14668 shift
14669 ac_file=$1
14670 shift
14671
14672 case $ac_mode in
14673 :L) ac_source=$1;;
14674 :[FH])
14675 ac_file_inputs=
14676 for ac_f
14677 do
14678 case $ac_f in
14679 -) ac_f="$tmp/stdin";;
14680 *) # Look for the file first in the build tree, then in the source tree
14681 # (if the path is not absolute). The absolute path cannot be DOS-style,
14682 # because $ac_f cannot contain `:'.
14683 test -f "$ac_f" ||
14684 case $ac_f in
14685 [\\/$]*) false;;
14686 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14687 esac ||
14688 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14689echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14690 { (exit 1); exit 1; }; };;
14691 esac
14692 ac_file_inputs="$ac_file_inputs $ac_f"
14693 done
14694
14695 # Let's still pretend it is `configure' which instantiates (i.e., don't
14696 # use $as_me), people would be surprised to read:
14697 # /* config.h. Generated by config.status. */
14698 configure_input="Generated from "`IFS=:
14699 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14700 if test x"$ac_file" != x-; then
14701 configure_input="$ac_file. $configure_input"
14702 { echo "$as_me:$LINENO: creating $ac_file" >&5
14703echo "$as_me: creating $ac_file" >&6;}
14704 fi
14705
14706 case $ac_tag in
14707 *:-:* | *:-) cat >"$tmp/stdin";;
14708 esac
14709 ;;
14710 esac
14711
14712 ac_dir=`$as_dirname -- "$ac_file" ||
14713$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14714 X"$ac_file" : 'X\(//\)[^/]' \| \
14715 X"$ac_file" : 'X\(//\)$' \| \
14716 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14717echo X"$ac_file" |
14718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14719 s//\1/
14720 q
14721 }
14722 /^X\(\/\/\)[^/].*/{
14723 s//\1/
14724 q
14725 }
14726 /^X\(\/\/\)$/{
14727 s//\1/
14728 q
14729 }
14730 /^X\(\/\).*/{
14731 s//\1/
14732 q
14733 }
14734 s/.*/./; q'`
14735 { as_dir="$ac_dir"
14736 case $as_dir in #( 8728 case $as_dir in #(
14737 -*) as_dir=./$as_dir;; 8729 -*) as_dir=./$as_dir;;
14738 esac 8730 esac
14739 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 8731 test -d "$as_dir" || eval $as_mkdir_p || {
14740 as_dirs= 8732 as_dirs=
14741 while :; do 8733 while :; do
14742 case $as_dir in #( 8734 case $as_dir in #(
14743 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 8735 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14744 *) as_qdir=$as_dir;; 8736 *) as_qdir=$as_dir;;
14745 esac 8737 esac
14746 as_dirs="'$as_qdir' $as_dirs" 8738 as_dirs="'$as_qdir' $as_dirs"
14747 as_dir=`$as_dirname -- "$as_dir" || 8739 as_dir=`$as_dirname -- "$as_dir" ||
14748$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8740$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14749 X"$as_dir" : 'X\(//\)[^/]' \| \ 8741 X"$as_dir" : 'X\(//\)[^/]' \| \
14750 X"$as_dir" : 'X\(//\)$' \| \ 8742 X"$as_dir" : 'X\(//\)$' \| \
14751 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8743 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14752echo X"$as_dir" | 8744$as_echo X"$as_dir" |
14753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14754 s//\1/ 8746 s//\1/
14755 q 8747 q
14756 } 8748 }
14757 /^X\(\/\/\)[^/].*/{ 8749 /^X\(\/\/\)[^/].*/{
14768 } 8760 }
14769 s/.*/./; q'` 8761 s/.*/./; q'`
14770 test -d "$as_dir" && break 8762 test -d "$as_dir" && break
14771 done 8763 done
14772 test -z "$as_dirs" || eval "mkdir $as_dirs" 8764 test -z "$as_dirs" || eval "mkdir $as_dirs"
14773 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 8765 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14774echo "$as_me: error: cannot create directory $as_dir" >&2;} 8766
14775 { (exit 1); exit 1; }; }; } 8767
8768} # as_fn_mkdir_p
8769if mkdir -p . 2>/dev/null; then
8770 as_mkdir_p='mkdir -p "$as_dir"'
8771else
8772 test -d ./-p && rmdir ./-p
8773 as_mkdir_p=false
8774fi
8775
8776if test -x / >/dev/null 2>&1; then
8777 as_test_x='test -x'
8778else
8779 if ls -dL / >/dev/null 2>&1; then
8780 as_ls_L_option=L
8781 else
8782 as_ls_L_option=
8783 fi
8784 as_test_x='
8785 eval sh -c '\''
8786 if test -d "$1"; then
8787 test -d "$1/.";
8788 else
8789 case $1 in #(
8790 -*)set "./$1";;
8791 esac;
8792 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8793 ???[sx]*):;;*)false;;esac;fi
8794 '\'' sh
8795 '
8796fi
8797as_executable_p=$as_test_x
8798
8799# Sed expression to map a string onto a valid CPP name.
8800as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8801
8802# Sed expression to map a string onto a valid variable name.
8803as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8804
8805
8806exec 6>&1
8807## ----------------------------------- ##
8808## Main body of $CONFIG_STATUS script. ##
8809## ----------------------------------- ##
8810_ASEOF
8811test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8812
8813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8814# Save the log message, to keep $0 and so on meaningful, and to
8815# report actual input values of CONFIG_FILES etc. instead of their
8816# values after options handling.
8817ac_log="
8818This file was extended by $as_me, which was
8819generated by GNU Autoconf 2.67. Invocation command line was
8820
8821 CONFIG_FILES = $CONFIG_FILES
8822 CONFIG_HEADERS = $CONFIG_HEADERS
8823 CONFIG_LINKS = $CONFIG_LINKS
8824 CONFIG_COMMANDS = $CONFIG_COMMANDS
8825 $ $0 $@
8826
8827on `(hostname || uname -n) 2>/dev/null | sed 1q`
8828"
8829
8830_ACEOF
8831
8832case $ac_config_files in *"
8833"*) set x $ac_config_files; shift; ac_config_files=$*;;
8834esac
8835
8836case $ac_config_headers in *"
8837"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8838esac
8839
8840
8841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8842# Files that config.status was made for.
8843config_files="$ac_config_files"
8844config_headers="$ac_config_headers"
8845
8846_ACEOF
8847
8848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8849ac_cs_usage="\
8850\`$as_me' instantiates files and other configuration actions
8851from templates according to the current configuration. Unless the files
8852and actions are specified as TAGs, all are instantiated by default.
8853
8854Usage: $0 [OPTION]... [TAG]...
8855
8856 -h, --help print this help, then exit
8857 -V, --version print version number and configuration settings, then exit
8858 --config print configuration, then exit
8859 -q, --quiet, --silent
8860 do not print progress messages
8861 -d, --debug don't remove temporary files
8862 --recheck update $as_me by reconfiguring in the same conditions
8863 --file=FILE[:TEMPLATE]
8864 instantiate the configuration file FILE
8865 --header=FILE[:TEMPLATE]
8866 instantiate the configuration header FILE
8867
8868Configuration files:
8869$config_files
8870
8871Configuration headers:
8872$config_headers
8873
8874Report bugs to the package provider."
8875
8876_ACEOF
8877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8878ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8879ac_cs_version="\\
8880config.status
8881configured by $0, generated by GNU Autoconf 2.67,
8882 with options \\"\$ac_cs_config\\"
8883
8884Copyright (C) 2010 Free Software Foundation, Inc.
8885This config.status script is free software; the Free Software Foundation
8886gives unlimited permission to copy, distribute and modify it."
8887
8888ac_pwd='$ac_pwd'
8889srcdir='$srcdir'
8890INSTALL='$INSTALL'
8891test -n "\$AWK" || AWK=awk
8892_ACEOF
8893
8894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8895# The default lists apply if the user does not specify any file.
8896ac_need_defaults=:
8897while test $# != 0
8898do
8899 case $1 in
8900 --*=?*)
8901 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8902 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8903 ac_shift=:
8904 ;;
8905 --*=)
8906 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8907 ac_optarg=
8908 ac_shift=:
8909 ;;
8910 *)
8911 ac_option=$1
8912 ac_optarg=$2
8913 ac_shift=shift
8914 ;;
8915 esac
8916
8917 case $ac_option in
8918 # Handling of the options.
8919 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8920 ac_cs_recheck=: ;;
8921 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8922 $as_echo "$ac_cs_version"; exit ;;
8923 --config | --confi | --conf | --con | --co | --c )
8924 $as_echo "$ac_cs_config"; exit ;;
8925 --debug | --debu | --deb | --de | --d | -d )
8926 debug=: ;;
8927 --file | --fil | --fi | --f )
8928 $ac_shift
8929 case $ac_optarg in
8930 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8931 '') as_fn_error $? "missing file argument" ;;
8932 esac
8933 as_fn_append CONFIG_FILES " '$ac_optarg'"
8934 ac_need_defaults=false;;
8935 --header | --heade | --head | --hea )
8936 $ac_shift
8937 case $ac_optarg in
8938 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8939 esac
8940 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8941 ac_need_defaults=false;;
8942 --he | --h)
8943 # Conflict between --help and --header
8944 as_fn_error $? "ambiguous option: \`$1'
8945Try \`$0 --help' for more information.";;
8946 --help | --hel | -h )
8947 $as_echo "$ac_cs_usage"; exit ;;
8948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8949 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8950 ac_cs_silent=: ;;
8951
8952 # This is an error.
8953 -*) as_fn_error $? "unrecognized option: \`$1'
8954Try \`$0 --help' for more information." ;;
8955
8956 *) as_fn_append ac_config_targets " $1"
8957 ac_need_defaults=false ;;
8958
8959 esac
8960 shift
8961done
8962
8963ac_configure_extra_args=
8964
8965if $ac_cs_silent; then
8966 exec 6>/dev/null
8967 ac_configure_extra_args="$ac_configure_extra_args --silent"
8968fi
8969
8970_ACEOF
8971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8972if \$ac_cs_recheck; then
8973 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8974 shift
8975 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8976 CONFIG_SHELL='$SHELL'
8977 export CONFIG_SHELL
8978 exec "\$@"
8979fi
8980
8981_ACEOF
8982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8983exec 5>>config.log
8984{
8985 echo
8986 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8987## Running $as_me. ##
8988_ASBOX
8989 $as_echo "$ac_log"
8990} >&5
8991
8992_ACEOF
8993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8994_ACEOF
8995
8996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8997
8998# Handling of arguments.
8999for ac_config_target in $ac_config_targets
9000do
9001 case $ac_config_target in
9002 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
9003 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9004 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9005 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9006
9007 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9008 esac
9009done
9010
9011
9012# If the user did not use the arguments to specify the items to instantiate,
9013# then the envvar interface is used. Set only those that are not.
9014# We use the long form for the default assignment because of an extremely
9015# bizarre bug on SunOS 4.1.3.
9016if $ac_need_defaults; then
9017 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9018 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9019fi
9020
9021# Have a temporary directory for convenience. Make it in the build tree
9022# simply because there is no reason against having it here, and in addition,
9023# creating and moving files from /tmp can sometimes cause problems.
9024# Hook for its removal unless debugging.
9025# Note that there is a small window in which the directory will not be cleaned:
9026# after its creation but before its name has been assigned to `$tmp'.
9027$debug ||
9028{
9029 tmp=
9030 trap 'exit_status=$?
9031 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9032' 0
9033 trap 'as_fn_exit 1' 1 2 13 15
9034}
9035# Create a (secure) tmp directory for tmp files.
9036
9037{
9038 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9039 test -n "$tmp" && test -d "$tmp"
9040} ||
9041{
9042 tmp=./conf$$-$RANDOM
9043 (umask 077 && mkdir "$tmp")
9044} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9045
9046# Set up the scripts for CONFIG_FILES section.
9047# No need to generate them if there are no CONFIG_FILES.
9048# This happens for instance with `./config.status config.h'.
9049if test -n "$CONFIG_FILES"; then
9050
9051
9052ac_cr=`echo X | tr X '\015'`
9053# On cygwin, bash can eat \r inside `` if the user requested igncr.
9054# But we know of no other shell where ac_cr would be empty at this
9055# point, so we can use a bashism as a fallback.
9056if test "x$ac_cr" = x; then
9057 eval ac_cr=\$\'\\r\'
9058fi
9059ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9060if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9061 ac_cs_awk_cr='\\r'
9062else
9063 ac_cs_awk_cr=$ac_cr
9064fi
9065
9066echo 'BEGIN {' >"$tmp/subs1.awk" &&
9067_ACEOF
9068
9069
9070{
9071 echo "cat >conf$$subs.awk <<_ACEOF" &&
9072 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9073 echo "_ACEOF"
9074} >conf$$subs.sh ||
9075 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9076ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9077ac_delim='%!_!# '
9078for ac_last_try in false false false false false :; do
9079 . ./conf$$subs.sh ||
9080 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9081
9082 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9083 if test $ac_delim_n = $ac_delim_num; then
9084 break
9085 elif $ac_last_try; then
9086 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9087 else
9088 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9089 fi
9090done
9091rm -f conf$$subs.sh
9092
9093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9094cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9095_ACEOF
9096sed -n '
9097h
9098s/^/S["/; s/!.*/"]=/
9099p
9100g
9101s/^[^!]*!//
9102:repl
9103t repl
9104s/'"$ac_delim"'$//
9105t delim
9106:nl
9107h
9108s/\(.\{148\}\)..*/\1/
9109t more1
9110s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9111p
9112n
9113b repl
9114:more1
9115s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9116p
9117g
9118s/.\{148\}//
9119t nl
9120:delim
9121h
9122s/\(.\{148\}\)..*/\1/
9123t more2
9124s/["\\]/\\&/g; s/^/"/; s/$/"/
9125p
9126b
9127:more2
9128s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9129p
9130g
9131s/.\{148\}//
9132t delim
9133' <conf$$subs.awk | sed '
9134/^[^""]/{
9135 N
9136 s/\n//
9137}
9138' >>$CONFIG_STATUS || ac_write_fail=1
9139rm -f conf$$subs.awk
9140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9141_ACAWK
9142cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9143 for (key in S) S_is_set[key] = 1
9144 FS = ""
9145
9146}
9147{
9148 line = $ 0
9149 nfields = split(line, field, "@")
9150 substed = 0
9151 len = length(field[1])
9152 for (i = 2; i < nfields; i++) {
9153 key = field[i]
9154 keylen = length(key)
9155 if (S_is_set[key]) {
9156 value = S[key]
9157 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9158 len += length(value) + length(field[++i])
9159 substed = 1
9160 } else
9161 len += 1 + keylen
9162 }
9163
9164 print line
9165}
9166
9167_ACAWK
9168_ACEOF
9169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9170if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9171 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9172else
9173 cat
9174fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9175 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9176_ACEOF
9177
9178# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9179# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9180# trailing colons and then remove the whole line if VPATH becomes empty
9181# (actually we leave an empty line to preserve line numbers).
9182if test "x$srcdir" = x.; then
9183 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9184h
9185s///
9186s/^/:/
9187s/[ ]*$/:/
9188s/:\$(srcdir):/:/g
9189s/:\${srcdir}:/:/g
9190s/:@srcdir@:/:/g
9191s/^:*//
9192s/:*$//
9193x
9194s/\(=[ ]*\).*/\1/
9195G
9196s/\n//
9197s/^[^=]*=[ ]*$//
9198}'
9199fi
9200
9201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9202fi # test -n "$CONFIG_FILES"
9203
9204# Set up the scripts for CONFIG_HEADERS section.
9205# No need to generate them if there are no CONFIG_HEADERS.
9206# This happens for instance with `./config.status Makefile'.
9207if test -n "$CONFIG_HEADERS"; then
9208cat >"$tmp/defines.awk" <<\_ACAWK ||
9209BEGIN {
9210_ACEOF
9211
9212# Transform confdefs.h into an awk script `defines.awk', embedded as
9213# here-document in config.status, that substitutes the proper values into
9214# config.h.in to produce config.h.
9215
9216# Create a delimiter string that does not exist in confdefs.h, to ease
9217# handling of long lines.
9218ac_delim='%!_!# '
9219for ac_last_try in false false :; do
9220 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9221 if test -z "$ac_t"; then
9222 break
9223 elif $ac_last_try; then
9224 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9225 else
9226 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9227 fi
9228done
9229
9230# For the awk script, D is an array of macro values keyed by name,
9231# likewise P contains macro parameters if any. Preserve backslash
9232# newline sequences.
9233
9234ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9235sed -n '
9236s/.\{148\}/&'"$ac_delim"'/g
9237t rset
9238:rset
9239s/^[ ]*#[ ]*define[ ][ ]*/ /
9240t def
9241d
9242:def
9243s/\\$//
9244t bsnl
9245s/["\\]/\\&/g
9246s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9247D["\1"]=" \3"/p
9248s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9249d
9250:bsnl
9251s/["\\]/\\&/g
9252s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9253D["\1"]=" \3\\\\\\n"\\/p
9254t cont
9255s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9256t cont
9257d
9258:cont
9259n
9260s/.\{148\}/&'"$ac_delim"'/g
9261t clear
9262:clear
9263s/\\$//
9264t bsnlc
9265s/["\\]/\\&/g; s/^/"/; s/$/"/p
9266d
9267:bsnlc
9268s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9269b cont
9270' <confdefs.h | sed '
9271s/'"$ac_delim"'/"\\\
9272"/g' >>$CONFIG_STATUS || ac_write_fail=1
9273
9274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9275 for (key in D) D_is_set[key] = 1
9276 FS = ""
9277}
9278/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9279 line = \$ 0
9280 split(line, arg, " ")
9281 if (arg[1] == "#") {
9282 defundef = arg[2]
9283 mac1 = arg[3]
9284 } else {
9285 defundef = substr(arg[1], 2)
9286 mac1 = arg[2]
9287 }
9288 split(mac1, mac2, "(") #)
9289 macro = mac2[1]
9290 prefix = substr(line, 1, index(line, defundef) - 1)
9291 if (D_is_set[macro]) {
9292 # Preserve the white space surrounding the "#".
9293 print prefix "define", macro P[macro] D[macro]
9294 next
9295 } else {
9296 # Replace #undef with comments. This is necessary, for example,
9297 # in the case of _POSIX_SOURCE, which is predefined and required
9298 # on some systems where configure will not decide to define it.
9299 if (defundef == "undef") {
9300 print "/*", prefix defundef, macro, "*/"
9301 next
9302 }
9303 }
9304}
9305{ print }
9306_ACAWK
9307_ACEOF
9308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9309 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9310fi # test -n "$CONFIG_HEADERS"
9311
9312
9313eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
9314shift
9315for ac_tag
9316do
9317 case $ac_tag in
9318 :[FHLC]) ac_mode=$ac_tag; continue;;
9319 esac
9320 case $ac_mode$ac_tag in
9321 :[FHL]*:*);;
9322 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9323 :[FH]-) ac_tag=-:-;;
9324 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9325 esac
9326 ac_save_IFS=$IFS
9327 IFS=:
9328 set x $ac_tag
9329 IFS=$ac_save_IFS
9330 shift
9331 ac_file=$1
9332 shift
9333
9334 case $ac_mode in
9335 :L) ac_source=$1;;
9336 :[FH])
9337 ac_file_inputs=
9338 for ac_f
9339 do
9340 case $ac_f in
9341 -) ac_f="$tmp/stdin";;
9342 *) # Look for the file first in the build tree, then in the source tree
9343 # (if the path is not absolute). The absolute path cannot be DOS-style,
9344 # because $ac_f cannot contain `:'.
9345 test -f "$ac_f" ||
9346 case $ac_f in
9347 [\\/$]*) false;;
9348 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9349 esac ||
9350 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9351 esac
9352 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9353 as_fn_append ac_file_inputs " '$ac_f'"
9354 done
9355
9356 # Let's still pretend it is `configure' which instantiates (i.e., don't
9357 # use $as_me), people would be surprised to read:
9358 # /* config.h. Generated by config.status. */
9359 configure_input='Generated from '`
9360 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9361 `' by configure.'
9362 if test x"$ac_file" != x-; then
9363 configure_input="$ac_file. $configure_input"
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9365$as_echo "$as_me: creating $ac_file" >&6;}
9366 fi
9367 # Neutralize special characters interpreted by sed in replacement strings.
9368 case $configure_input in #(
9369 *\&* | *\|* | *\\* )
9370 ac_sed_conf_input=`$as_echo "$configure_input" |
9371 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9372 *) ac_sed_conf_input=$configure_input;;
9373 esac
9374
9375 case $ac_tag in
9376 *:-:* | *:-) cat >"$tmp/stdin" \
9377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9378 esac
9379 ;;
9380 esac
9381
9382 ac_dir=`$as_dirname -- "$ac_file" ||
9383$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9384 X"$ac_file" : 'X\(//\)[^/]' \| \
9385 X"$ac_file" : 'X\(//\)$' \| \
9386 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9387$as_echo X"$ac_file" |
9388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9389 s//\1/
9390 q
9391 }
9392 /^X\(\/\/\)[^/].*/{
9393 s//\1/
9394 q
9395 }
9396 /^X\(\/\/\)$/{
9397 s//\1/
9398 q
9399 }
9400 /^X\(\/\).*/{
9401 s//\1/
9402 q
9403 }
9404 s/.*/./; q'`
9405 as_dir="$ac_dir"; as_fn_mkdir_p
14776 ac_builddir=. 9406 ac_builddir=.
14777 9407
14778case "$ac_dir" in 9408case "$ac_dir" in
14779.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9409.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14780*) 9410*)
14781 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14782 # A ".." for each directory in $ac_dir_suffix. 9412 # A ".." for each directory in $ac_dir_suffix.
14783 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 9413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14784 case $ac_top_builddir_sub in 9414 case $ac_top_builddir_sub in
14785 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14786 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14787 esac ;; 9417 esac ;;
14788esac 9418esac
14818 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9448 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14819 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9449 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14820 esac 9450 esac
14821_ACEOF 9451_ACEOF
14822 9452
14823cat >>$CONFIG_STATUS <<\_ACEOF 9453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14824# If the template does not know about datarootdir, expand it. 9454# If the template does not know about datarootdir, expand it.
14825# FIXME: This hack should be removed a few years after 2.60. 9455# FIXME: This hack should be removed a few years after 2.60.
14826ac_datarootdir_hack=; ac_datarootdir_seen= 9456ac_datarootdir_hack=; ac_datarootdir_seen=
14827 9457ac_sed_dataroot='
14828case `sed -n '/datarootdir/ { 9458/datarootdir/ {
14829 p 9459 p
14830 q 9460 q
14831} 9461}
14832/@datadir@/p 9462/@datadir@/p
14833/@docdir@/p 9463/@docdir@/p
14834/@infodir@/p 9464/@infodir@/p
14835/@localedir@/p 9465/@localedir@/p
14836/@mandir@/p 9466/@mandir@/p'
14837' $ac_file_inputs` in 9467case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14838*datarootdir*) ac_datarootdir_seen=yes;; 9468*datarootdir*) ac_datarootdir_seen=yes;;
14839*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9469*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14840 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14841echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9471$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14842_ACEOF 9472_ACEOF
14843cat >>$CONFIG_STATUS <<_ACEOF 9473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14844 ac_datarootdir_hack=' 9474 ac_datarootdir_hack='
14845 s&@datadir@&$datadir&g 9475 s&@datadir@&$datadir&g
14846 s&@docdir@&$docdir&g 9476 s&@docdir@&$docdir&g
14847 s&@infodir@&$infodir&g 9477 s&@infodir@&$infodir&g
14848 s&@localedir@&$localedir&g 9478 s&@localedir@&$localedir&g
14849 s&@mandir@&$mandir&g 9479 s&@mandir@&$mandir&g
14850 s&\\\${datarootdir}&$datarootdir&g' ;; 9480 s&\\\${datarootdir}&$datarootdir&g' ;;
14851esac 9481esac
14852_ACEOF 9482_ACEOF
14853 9483
14854# Neutralize VPATH when `$srcdir' = `.'. 9484# Neutralize VPATH when `$srcdir' = `.'.
14855# Shell code in configure.ac might set extrasub. 9485# Shell code in configure.ac might set extrasub.
14856# FIXME: do we really want to maintain this feature? 9486# FIXME: do we really want to maintain this feature?
14857cat >>$CONFIG_STATUS <<_ACEOF 9487cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14858 sed "$ac_vpsub 9488ac_sed_extra="$ac_vpsub
14859$extrasub 9489$extrasub
14860_ACEOF 9490_ACEOF
14861cat >>$CONFIG_STATUS <<\_ACEOF 9491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14862:t 9492:t
14863/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9493/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14864s&@configure_input@&$configure_input&;t t 9494s|@configure_input@|$ac_sed_conf_input|;t t
14865s&@top_builddir@&$ac_top_builddir_sub&;t t 9495s&@top_builddir@&$ac_top_builddir_sub&;t t
9496s&@top_build_prefix@&$ac_top_build_prefix&;t t
14866s&@srcdir@&$ac_srcdir&;t t 9497s&@srcdir@&$ac_srcdir&;t t
14867s&@abs_srcdir@&$ac_abs_srcdir&;t t 9498s&@abs_srcdir@&$ac_abs_srcdir&;t t
14868s&@top_srcdir@&$ac_top_srcdir&;t t 9499s&@top_srcdir@&$ac_top_srcdir&;t t
14869s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9500s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14870s&@builddir@&$ac_builddir&;t t 9501s&@builddir@&$ac_builddir&;t t
14871s&@abs_builddir@&$ac_abs_builddir&;t t 9502s&@abs_builddir@&$ac_abs_builddir&;t t
14872s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9503s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14873s&@INSTALL@&$ac_INSTALL&;t t 9504s&@INSTALL@&$ac_INSTALL&;t t
14874$ac_datarootdir_hack 9505$ac_datarootdir_hack
14875" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 9506"
9507eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9508 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14876 9509
14877test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9510test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14878 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 9511 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14879 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 9512 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14880 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14881which seems to be undefined. Please make sure it is defined." >&5 9514which seems to be undefined. Please make sure it is defined" >&5
14882echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9515$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14883which seems to be undefined. Please make sure it is defined." >&2;} 9516which seems to be undefined. Please make sure it is defined" >&2;}
14884 9517
14885 rm -f "$tmp/stdin" 9518 rm -f "$tmp/stdin"
14886 case $ac_file in 9519 case $ac_file in
14887 -) cat "$tmp/out"; rm -f "$tmp/out";; 9520 -) cat "$tmp/out" && rm -f "$tmp/out";;
14888 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 9521 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14889 esac 9522 esac \
9523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14890 ;; 9524 ;;
14891 :H) 9525 :H)
14892 # 9526 #
14893 # CONFIG_HEADER 9527 # CONFIG_HEADER
14894 # 9528 #
14895_ACEOF
14896
14897# Transform confdefs.h into a sed script `conftest.defines', that
14898# substitutes the proper values into config.h.in to produce config.h.
14899rm -f conftest.defines conftest.tail
14900# First, append a space to every undef/define line, to ease matching.
14901echo 's/$/ /' >conftest.defines
14902# Then, protect against being on the right side of a sed subst, or in
14903# an unquoted here document, in config.status. If some macros were
14904# called several times there might be several #defines for the same
14905# symbol, which is useless. But do not sort them, since the last
14906# AC_DEFINE must be honored.
14907ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14908# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14909# NAME is the cpp macro being defined, VALUE is the value it is being given.
14910# PARAMS is the parameter list in the macro definition--in most cases, it's
14911# just an empty string.
14912ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14913ac_dB='\\)[ (].*,\\1define\\2'
14914ac_dC=' '
14915ac_dD=' ,'
14916
14917uniq confdefs.h |
14918 sed -n '
14919 t rset
14920 :rset
14921 s/^[ ]*#[ ]*define[ ][ ]*//
14922 t ok
14923 d
14924 :ok
14925 s/[\\&,]/\\&/g
14926 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14927 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14928 ' >>conftest.defines
14929
14930# Remove the space that was appended to ease matching.
14931# Then replace #undef with comments. This is necessary, for
14932# example, in the case of _POSIX_SOURCE, which is predefined and required
14933# on some systems where configure will not decide to define it.
14934# (The regexp can be short, since the line contains either #define or #undef.)
14935echo 's/ $//
14936s,^[ #]*u.*,/* & */,' >>conftest.defines
14937
14938# Break up conftest.defines:
14939ac_max_sed_lines=50
14940
14941# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14942# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14943# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14944# et cetera.
14945ac_in='$ac_file_inputs'
14946ac_out='"$tmp/out1"'
14947ac_nxt='"$tmp/out2"'
14948
14949while :
14950do
14951 # Write a here document:
14952 cat >>$CONFIG_STATUS <<_ACEOF
14953 # First, check the format of the line:
14954 cat >"\$tmp/defines.sed" <<\\CEOF
14955/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14956/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14957b
14958:def
14959_ACEOF
14960 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14961 echo 'CEOF
14962 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14963 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14964 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14965 grep . conftest.tail >/dev/null || break
14966 rm -f conftest.defines
14967 mv conftest.tail conftest.defines
14968done
14969rm -f conftest.defines conftest.tail
14970
14971echo "ac_result=$ac_in" >>$CONFIG_STATUS
14972cat >>$CONFIG_STATUS <<\_ACEOF
14973 if test x"$ac_file" != x-; then 9529 if test x"$ac_file" != x-; then
9530 {
14974 echo "/* $configure_input */" >"$tmp/config.h" 9531 $as_echo "/* $configure_input */" \
14975 cat "$ac_result" >>"$tmp/config.h" 9532 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9533 } >"$tmp/config.h" \
9534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14976 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 9535 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14977 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9536 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14978echo "$as_me: $ac_file is unchanged" >&6;} 9537$as_echo "$as_me: $ac_file is unchanged" >&6;}
14979 else 9538 else
14980 rm -f $ac_file 9539 rm -f "$ac_file"
14981 mv "$tmp/config.h" $ac_file 9540 mv "$tmp/config.h" "$ac_file" \
9541 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14982 fi 9542 fi
14983 else 9543 else
14984 echo "/* $configure_input */" 9544 $as_echo "/* $configure_input */" \
14985 cat "$ac_result" 9545 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9546 || as_fn_error $? "could not create -" "$LINENO" 5
14986 fi 9547 fi
14987 rm -f "$tmp/out12"
14988 ;; 9548 ;;
14989 9549
14990 9550
14991 esac 9551 esac
14992 9552
14993done # for ac_tag 9553done # for ac_tag
14994 9554
14995 9555
14996{ (exit 0); exit 0; } 9556as_fn_exit 0
14997_ACEOF 9557_ACEOF
14998chmod +x $CONFIG_STATUS
14999ac_clean_files=$ac_clean_files_save 9558ac_clean_files=$ac_clean_files_save
9559
9560test $ac_write_fail = 0 ||
9561 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15000 9562
15001 9563
15002# configure is writing to config.log, and then calls config.status. 9564# configure is writing to config.log, and then calls config.status.
15003# config.status does its own redirection, appending to config.log. 9565# config.status does its own redirection, appending to config.log.
15004# Unfortunately, on DOS this fails, as config.log is still kept open 9566# Unfortunately, on DOS this fails, as config.log is still kept open
15015 exec 5>/dev/null 9577 exec 5>/dev/null
15016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9578 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15017 exec 5>>config.log 9579 exec 5>>config.log
15018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9580 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15019 # would make configure fail if this is the last instruction. 9581 # would make configure fail if this is the last instruction.
15020 $ac_cs_success || { (exit 1); exit 1; } 9582 $ac_cs_success || as_fn_exit 1
9583fi
9584if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9586$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15021fi 9587fi
15022 9588
15023 9589
15024echo "Configuration: 9590echo "Configuration:
15025 9591
15028 Install path: ${prefix}/bin 9594 Install path: ${prefix}/bin
15029 Compiler: $CXX 9595 Compiler: $CXX
15030 Compiler flags: $CXXFLAGS 9596 Compiler flags: $CXXFLAGS
15031 Linker: $LINKER" 9597 Linker: $LINKER"
15032 9598
15033if test x$support_xpm = xyes; then
15034 echo " Xpm library: $XPM_LIBS"
15035fi
15036
15037if test x$term != x; then 9599if test x$term != x; then
15038 echo " set TERM to: $term" 9600 echo " set TERM to: $term"
15039fi 9601fi
15040if test x$terminfo != x; then 9602if test x$terminfo != x; then
15041 echo " set TERMINFO to: $terminfo" 9603 echo " set TERMINFO to: $terminfo"
15045if test x$RESFALLBACK != x; then 9607if test x$RESFALLBACK != x; then
15046 echo " resource class fallback: $RESFALLBACK" 9608 echo " resource class fallback: $RESFALLBACK"
15047fi 9609fi
15048echo 9610echo
15049echo " embedded perl: $support_perl" 9611echo " embedded perl: $support_perl"
9612echo " image library: $image_lib"
15050echo 9613echo
15051if test x$support_xpm = xneedsmanualspecification; then
15052 echo ".----------------------------------------------------------------."
15053 echo ". WARNING: --enable-xpm-background was specified however the ."
15054 echo ". XPM includes files and libraries could not be found. ."
15055 echo ". XPM backgrounds are now being DISABLED! If you want ."
15056 echo ". to use them you should rerun configure with the ."
15057 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
15058 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
15059 echo ".----------------------------------------------------------------."
15060fi
15061if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then 9614if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
15062 echo ".----------------------------------------------------------------." 9615 echo ".----------------------------------------------------------------."
15063 echo ". WARNING: --enable-xim was specified however the locale support ." 9616 echo ". WARNING: --enable-xim was specified however the locale support ."
15064 echo ". functions could not be found. ." 9617 echo ". functions could not be found. ."
15065 echo ". XIM is now being DISABLED! ." 9618 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines