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.133 by sf-exg, Wed Jul 21 09:06:20 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.65.
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 Free Software Foundation,
8# 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 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=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&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, 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`
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
596AFTERIMAGE_LIBS
597AFTERIMAGE_CFLAGS
598PERL_O
599IF_PERL
600PERLPRIVLIBEXP
601PERLFLAGS
602PERLLIB
603PERL
604XFT_CONFIG
605PKG_CONFIG
606afterimage_config
607X_EXTRA_LIBS
608X_LIBS
609X_PRE_LIBS
610X_CFLAGS
611XMKMF
612TIC
613CXXCPP
614RXVTNAME
615LINKER
616EGREP
617GREP
618INSTALL_DATA
619INSTALL_SCRIPT
620INSTALL_PROGRAM
621CPP
622ac_ct_CXX
623CXXFLAGS
624CXX
625OBJEXT
626EXEEXT
627ac_ct_CC
628CPPFLAGS
629LDFLAGS
630CFLAGS
631CC
632DATE
633VERSION
634host_os
635host_vendor
636host_cpu
637host
638build_os
639build_vendor
640build_cpu
641build
642target_alias
643host_alias
644build_alias
645LIBS
646ECHO_T
647ECHO_N
648ECHO_C
649DEFS
650mandir
651localedir
652libdir
653psdir
654pdfdir
655dvidir
656htmldir
657infodir
658docdir
659oldincludedir
660includedir
661localstatedir
662sharedstatedir
663sysconfdir
664datadir
665datarootdir
666libexecdir
667sbindir
668bindir
669program_transform_name
670prefix
671exec_prefix
672PACKAGE_URL
673PACKAGE_BUGREPORT
674PACKAGE_STRING
675PACKAGE_VERSION
676PACKAGE_TARNAME
677PACKAGE_NAME
617PATH_SEPARATOR 678PATH_SEPARATOR
618PACKAGE_NAME 679SHELL'
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='' 680ac_subst_files=''
681ac_user_opts='
682enable_option_checking
683enable_everything
684enable_assert
685enable_warnings
686enable_256_color
687enable_unicode3
688enable_combining
689enable_xft
690enable_font_styles
691enable_afterimage
692with_afterimage_config
693enable_transparency
694enable_fading
695enable_rxvt_scroll
696enable_next_scroll
697enable_xterm_scroll
698enable_perl
699with_codesets
700enable_xim
701enable_backspace_key
702enable_delete_key
703enable_resources
704enable_8bitctrls
705enable_fallback
706with_res_name
707with_res_class
708with_name
709enable_swapscreen
710enable_iso14755
711enable_frills
712enable_keepscrolling
713enable_selectionscrolling
714enable_mousewheel
715enable_slipwheeling
716enable_smart_resize
717enable_text_blink
718enable_pointer_blank
719with_term
720with_terminfo
721with_x
722enable_utmp
723enable_wtmp
724enable_lastlog
725'
733 ac_precious_vars='build_alias 726 ac_precious_vars='build_alias
734host_alias 727host_alias
735target_alias 728target_alias
736CC 729CC
737CFLAGS 730CFLAGS
740CPPFLAGS 733CPPFLAGS
741CXX 734CXX
742CXXFLAGS 735CXXFLAGS
743CCC 736CCC
744CPP 737CPP
745XMKMF
746CXXCPP' 738CXXCPP
739XMKMF'
747 740
748 741
749# Initialize some variables set by options. 742# Initialize some variables set by options.
750ac_init_help= 743ac_init_help=
751ac_init_version=false 744ac_init_version=false
745ac_unrecognized_opts=
746ac_unrecognized_sep=
752# The variables have the same names as the options, with 747# The variables have the same names as the options, with
753# dashes changed to underlines. 748# dashes changed to underlines.
754cache_file=/dev/null 749cache_file=/dev/null
755exec_prefix=NONE 750exec_prefix=NONE
756no_create= 751no_create=
845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 840 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 841 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847 datarootdir=$ac_optarg ;; 842 datarootdir=$ac_optarg ;;
848 843
849 -disable-* | --disable-*) 844 -disable-* | --disable-*)
850 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 845 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names. 846 # Reject names that are not valid shell variable names.
852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 847 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 848 as_fn_error "invalid feature name: $ac_useropt"
854 { (exit 1); exit 1; }; } 849 ac_useropt_orig=$ac_useropt
855 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 850 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
851 case $ac_user_opts in
852 *"
853"enable_$ac_useropt"
854"*) ;;
855 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
856 ac_unrecognized_sep=', ';;
857 esac
856 eval enable_$ac_feature=no ;; 858 eval enable_$ac_useropt=no ;;
857 859
858 -docdir | --docdir | --docdi | --doc | --do) 860 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;; 861 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;; 863 docdir=$ac_optarg ;;
864 ac_prev=dvidir ;; 866 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;; 868 dvidir=$ac_optarg ;;
867 869
868 -enable-* | --enable-*) 870 -enable-* | --enable-*)
869 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 871 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names. 872 # Reject names that are not valid shell variable names.
871 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 874 as_fn_error "invalid feature name: $ac_useropt"
873 { (exit 1); exit 1; }; } 875 ac_useropt_orig=$ac_useropt
874 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 876 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
878 *"
879"enable_$ac_useropt"
880"*) ;;
881 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
882 ac_unrecognized_sep=', ';;
883 esac
875 eval enable_$ac_feature=\$ac_optarg ;; 884 eval enable_$ac_useropt=\$ac_optarg ;;
876 885
877 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 886 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
878 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 887 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
879 | --exec | --exe | --ex) 888 | --exec | --exe | --ex)
880 ac_prev=exec_prefix ;; 889 ac_prev=exec_prefix ;;
1061 1070
1062 -version | --version | --versio | --versi | --vers | -V) 1071 -version | --version | --versio | --versi | --vers | -V)
1063 ac_init_version=: ;; 1072 ac_init_version=: ;;
1064 1073
1065 -with-* | --with-*) 1074 -with-* | --with-*)
1066 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1075 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names. 1076 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2 1078 as_fn_error "invalid package name: $ac_useropt"
1070 { (exit 1); exit 1; }; } 1079 ac_useropt_orig=$ac_useropt
1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1082 *"
1083"with_$ac_useropt"
1084"*) ;;
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1087 esac
1072 eval with_$ac_package=\$ac_optarg ;; 1088 eval with_$ac_useropt=\$ac_optarg ;;
1073 1089
1074 -without-* | --without-*) 1090 -without-* | --without-*)
1075 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1091 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names. 1092 # Reject names that are not valid shell variable names.
1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid package name: $ac_package" >&2 1094 as_fn_error "invalid package name: $ac_useropt"
1079 { (exit 1); exit 1; }; } 1095 ac_useropt_orig=$ac_useropt
1080 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1098 *"
1099"with_$ac_useropt"
1100"*) ;;
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1103 esac
1081 eval with_$ac_package=no ;; 1104 eval with_$ac_useropt=no ;;
1082 1105
1083 --x) 1106 --x)
1084 # Obsolete; use --with-x. 1107 # Obsolete; use --with-x.
1085 with_x=yes ;; 1108 with_x=yes ;;
1086 1109
1096 ac_prev=x_libraries ;; 1119 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1120 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1121 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099 x_libraries=$ac_optarg ;; 1122 x_libraries=$ac_optarg ;;
1100 1123
1101 -*) { echo "$as_me: error: unrecognized option: $ac_option 1124 -*) as_fn_error "unrecognized option: \`$ac_option'
1102Try \`$0 --help' for more information." >&2 1125Try \`$0 --help' for more information."
1103 { (exit 1); exit 1; }; }
1104 ;; 1126 ;;
1105 1127
1106 *=*) 1128 *=*)
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1129 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names. 1130 # Reject names that are not valid shell variable names.
1109 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1131 case $ac_envvar in #(
1132 '' | [0-9]* | *[!_$as_cr_alnum]* )
1110 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1133 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1111 { (exit 1); exit 1; }; } 1134 esac
1112 eval $ac_envvar=\$ac_optarg 1135 eval $ac_envvar=\$ac_optarg
1113 export $ac_envvar ;; 1136 export $ac_envvar ;;
1114 1137
1115 *) 1138 *)
1116 # FIXME: should be removed in autoconf 3.0. 1139 # FIXME: should be removed in autoconf 3.0.
1117 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1140 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1141 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1142 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1143 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121 ;; 1144 ;;
1122 1145
1123 esac 1146 esac
1124done 1147done
1125 1148
1126if test -n "$ac_prev"; then 1149if test -n "$ac_prev"; then
1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1150 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1128 { echo "$as_me: error: missing argument to $ac_option" >&2 1151 as_fn_error "missing argument to $ac_option"
1129 { (exit 1); exit 1; }; }
1130fi 1152fi
1131 1153
1132# Be sure to have absolute directory names. 1154if test -n "$ac_unrecognized_opts"; then
1155 case $enable_option_checking in
1156 no) ;;
1157 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1158 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1159 esac
1160fi
1161
1162# Check all directory arguments for consistency.
1133for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1163for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134 datadir sysconfdir sharedstatedir localstatedir includedir \ 1164 datadir sysconfdir sharedstatedir localstatedir includedir \
1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1165 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136 libdir localedir mandir 1166 libdir localedir mandir
1137do 1167do
1138 eval ac_val=\$$ac_var 1168 eval ac_val=\$$ac_var
1169 # Remove trailing slashes.
1170 case $ac_val in
1171 */ )
1172 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1173 eval $ac_var=\$ac_val;;
1174 esac
1175 # Be sure to have absolute directory names.
1139 case $ac_val in 1176 case $ac_val in
1140 [\\/$]* | ?:[\\/]* ) continue;; 1177 [\\/$]* | ?:[\\/]* ) continue;;
1141 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1178 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1142 esac 1179 esac
1143 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1180 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1144 { (exit 1); exit 1; }; }
1145done 1181done
1146 1182
1147# There might be people who depend on the old broken behavior: `$host' 1183# There might be people who depend on the old broken behavior: `$host'
1148# used to hold the argument of --host etc. 1184# used to hold the argument of --host etc.
1149# FIXME: To remove some day. 1185# FIXME: To remove some day.
1153 1189
1154# FIXME: To remove some day. 1190# FIXME: To remove some day.
1155if test "x$host_alias" != x; then 1191if test "x$host_alias" != x; then
1156 if test "x$build_alias" = x; then 1192 if test "x$build_alias" = x; then
1157 cross_compiling=maybe 1193 cross_compiling=maybe
1158 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1194 $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 1195 If a cross compiler is detected then cross compile mode will be used." >&2
1160 elif test "x$build_alias" != "x$host_alias"; then 1196 elif test "x$build_alias" != "x$host_alias"; then
1161 cross_compiling=yes 1197 cross_compiling=yes
1162 fi 1198 fi
1163fi 1199fi
1169 1205
1170 1206
1171ac_pwd=`pwd` && test -n "$ac_pwd" && 1207ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172ac_ls_di=`ls -di .` && 1208ac_ls_di=`ls -di .` &&
1173ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1209ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174 { echo "$as_me: error: Working directory cannot be determined" >&2 1210 as_fn_error "working directory cannot be determined"
1175 { (exit 1); exit 1; }; }
1176test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1211test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1177 { echo "$as_me: error: pwd does not report name of working directory" >&2 1212 as_fn_error "pwd does not report name of working directory"
1178 { (exit 1); exit 1; }; }
1179 1213
1180 1214
1181# Find the source files, if location was not specified. 1215# Find the source files, if location was not specified.
1182if test -z "$srcdir"; then 1216if test -z "$srcdir"; then
1183 ac_srcdir_defaulted=yes 1217 ac_srcdir_defaulted=yes
1184 # Try the directory containing this script, then the parent directory. 1218 # Try the directory containing this script, then the parent directory.
1185 ac_confdir=`$as_dirname -- "$0" || 1219 ac_confdir=`$as_dirname -- "$as_myself" ||
1186$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1220$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187 X"$0" : 'X\(//\)[^/]' \| \ 1221 X"$as_myself" : 'X\(//\)[^/]' \| \
1188 X"$0" : 'X\(//\)$' \| \ 1222 X"$as_myself" : 'X\(//\)$' \| \
1189 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1223 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1190echo X"$0" | 1224$as_echo X"$as_myself" |
1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1192 s//\1/ 1226 s//\1/
1193 q 1227 q
1194 } 1228 }
1195 /^X\(\/\/\)[^/].*/{ 1229 /^X\(\/\/\)[^/].*/{
1212else 1246else
1213 ac_srcdir_defaulted=no 1247 ac_srcdir_defaulted=no
1214fi 1248fi
1215if test ! -r "$srcdir/$ac_unique_file"; then 1249if test ! -r "$srcdir/$ac_unique_file"; then
1216 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1250 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1217 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1251 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1218 { (exit 1); exit 1; }; }
1219fi 1252fi
1220ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1253ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1221ac_abs_confdir=`( 1254ac_abs_confdir=`(
1222 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1255 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1223 { (exit 1); exit 1; }; }
1224 pwd)` 1256 pwd)`
1225# When building in place, set srcdir=. 1257# When building in place, set srcdir=.
1226if test "$ac_abs_confdir" = "$ac_pwd"; then 1258if test "$ac_abs_confdir" = "$ac_pwd"; then
1227 srcdir=. 1259 srcdir=.
1228fi 1260fi
1266 -n, --no-create do not create output files 1298 -n, --no-create do not create output files
1267 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1299 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1268 1300
1269Installation directories: 1301Installation directories:
1270 --prefix=PREFIX install architecture-independent files in PREFIX 1302 --prefix=PREFIX install architecture-independent files in PREFIX
1271 [$ac_default_prefix] 1303 [$ac_default_prefix]
1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1273 [PREFIX] 1305 [PREFIX]
1274 1306
1275By default, \`make install' will install all the files in 1307By default, \`make install' will install all the files in
1276\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1308\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1277an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1309an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278for instance \`--prefix=\$HOME'. 1310for instance \`--prefix=\$HOME'.
1279 1311
1280For better control, use the options below. 1312For better control, use the options below.
1281 1313
1282Fine tuning of the installation directories: 1314Fine tuning of the installation directories:
1283 --bindir=DIR user executables [EPREFIX/bin] 1315 --bindir=DIR user executables [EPREFIX/bin]
1284 --sbindir=DIR system admin executables [EPREFIX/sbin] 1316 --sbindir=DIR system admin executables [EPREFIX/sbin]
1285 --libexecdir=DIR program executables [EPREFIX/libexec] 1317 --libexecdir=DIR program executables [EPREFIX/libexec]
1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1318 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1319 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1320 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1289 --libdir=DIR object code libraries [EPREFIX/lib] 1321 --libdir=DIR object code libraries [EPREFIX/lib]
1290 --includedir=DIR C header files [PREFIX/include] 1322 --includedir=DIR C header files [PREFIX/include]
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1323 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1324 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1325 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294 --infodir=DIR info documentation [DATAROOTDIR/info] 1326 --infodir=DIR info documentation [DATAROOTDIR/info]
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1327 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296 --mandir=DIR man documentation [DATAROOTDIR/man] 1328 --mandir=DIR man documentation [DATAROOTDIR/man]
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1329 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1298 --htmldir=DIR html documentation [DOCDIR] 1330 --htmldir=DIR html documentation [DOCDIR]
1299 --dvidir=DIR dvi documentation [DOCDIR] 1331 --dvidir=DIR dvi documentation [DOCDIR]
1300 --pdfdir=DIR pdf documentation [DOCDIR] 1332 --pdfdir=DIR pdf documentation [DOCDIR]
1301 --psdir=DIR ps documentation [DOCDIR] 1333 --psdir=DIR ps documentation [DOCDIR]
1302_ACEOF 1334_ACEOF
1303 1335
1304 cat <<\_ACEOF 1336 cat <<\_ACEOF
1305 1337
1306X features: 1338X features:
1321if test -n "$ac_init_help"; then 1353if test -n "$ac_init_help"; then
1322 1354
1323 cat <<\_ACEOF 1355 cat <<\_ACEOF
1324 1356
1325Optional Features: 1357Optional Features:
1358 --disable-option-checking ignore unrecognized --enable/--with options
1326 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1359 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1327 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1360 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1328 --enable-everything enable standard non-multichoice features 1361 --enable-everything enable standard non-multichoice features
1329 NOTE: this option is order dependent 1362 NOTE: this option is order dependent
1330 NOTE: automatically enabled with --enable-shared 1363 --enable-assert enable assertions
1364 --enable-warnings turn on g++ warnings
1365 --enable-256-color enable 256-color support
1331 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1366 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1332 --enable-combining enable composition of base and combining characters 1367 --enable-combining enable composition of base and combining characters
1333 --enable-xft enable xft support on systems that have it 1368 --enable-xft enable xft support on systems that have it
1334 --enable-font-styles enable bold and italic support 1369 --enable-font-styles enable bold and italic support
1335 --enable-xpm-background enable XPM background pixmaps 1370 --enable-afterimage enable integration with libAfterImage 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.65
1457 1491
1458Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1492Copyright (C) 2009 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; } >/dev/null && {
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 { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626$as_echo_n "checking for $2... " >&6; }
1627if { as_var=$3; eval "test \"\${$as_var+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.$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 { as_var=$3; eval "test \"\${$as_var+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 { as_var=$3; eval "test \"\${$as_var+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; } >/dev/null && {
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 { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915$as_echo_n "checking for $2... " >&6; }
1916if { as_var=$3; eval "test \"\${$as_var+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.$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 { as_var=$3; eval "test \"\${$as_var+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 { as_var=$3; eval "test \"\${$as_var+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 { as_var=$3; eval "test \"\${$as_var+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 { as_var=$3; eval "test \"\${$as_var+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
2133int
2134main ()
2135{
2136static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
2137 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
2148int
2149main ()
2150{
2151static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
2152 ($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 eval as_val=\$$3
2174 if test "x$as_val" = x""no; then :
2175
2176else
2177 break
2178fi
2179 done
2180fi
2181eval ac_res=\$$3
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183$as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2185
2186} # ac_fn_c_find_intX_t
2187
2188# ac_fn_c_find_uintX_t LINENO BITS VAR
2189# ------------------------------------
2190# Finds an unsigned integer type with width BITS, setting cache variable VAR
2191# accordingly.
2192ac_fn_c_find_uintX_t ()
2193{
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2196$as_echo_n "checking for uint$2_t... " >&6; }
2197if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2198 $as_echo_n "(cached) " >&6
2199else
2200 eval "$3=no"
2201 # Order is important - never check a type that is potentially smaller
2202 # than half of the expected target width.
2203 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2204 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206/* end confdefs.h. */
2207$ac_includes_default
2208int
2209main ()
2210{
2211static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2212test_array [0] = 0
2213
2214 ;
2215 return 0;
2216}
2217_ACEOF
2218if ac_fn_cxx_try_compile "$LINENO"; then :
2219 case $ac_type in #(
2220 uint$2_t) :
2221 eval "$3=yes" ;; #(
2222 *) :
2223 eval "$3=\$ac_type" ;;
2224esac
2225fi
2226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 eval as_val=\$$3
2228 if test "x$as_val" = x""no; then :
2229
2230else
2231 break
2232fi
2233 done
2234fi
2235eval ac_res=\$$3
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237$as_echo "$ac_res" >&6; }
2238 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2239
2240} # ac_fn_c_find_uintX_t
2241
2242# ac_fn_cxx_try_run LINENO
2243# ------------------------
2244# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2245# that executables *can* be run.
2246ac_fn_cxx_try_run ()
2247{
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 if { { ac_try="$ac_link"
2250case "(($ac_try" in
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2253esac
2254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2255$as_echo "$ac_try_echo"; } >&5
2256 (eval "$ac_link") 2>&5
2257 ac_status=$?
2258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2259 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2260 { { case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2263esac
2264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265$as_echo "$ac_try_echo"; } >&5
2266 (eval "$ac_try") 2>&5
2267 ac_status=$?
2268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269 test $ac_status = 0; }; }; then :
2270 ac_retval=0
2271else
2272 $as_echo "$as_me: program exited with status $ac_status" >&5
2273 $as_echo "$as_me: failed program was:" >&5
2274sed 's/^/| /' conftest.$ac_ext >&5
2275
2276 ac_retval=$ac_status
2277fi
2278 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2279 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2280 as_fn_set_status $ac_retval
2281
2282} # ac_fn_cxx_try_run
1465cat >config.log <<_ACEOF 2283cat >config.log <<_ACEOF
1466This file contains any messages produced by compilers while 2284This file contains any messages produced by compilers while
1467running configure, to aid debugging if configure makes a mistake. 2285running configure, to aid debugging if configure makes a mistake.
1468 2286
1469It was created by $as_me, which was 2287It was created by $as_me, which was
1470generated by GNU Autoconf 2.61. Invocation command line was 2288generated by GNU Autoconf 2.65. Invocation command line was
1471 2289
1472 $ $0 $@ 2290 $ $0 $@
1473 2291
1474_ACEOF 2292_ACEOF
1475exec 5>>config.log 2293exec 5>>config.log
1501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502for as_dir in $PATH 2320for as_dir in $PATH
1503do 2321do
1504 IFS=$as_save_IFS 2322 IFS=$as_save_IFS
1505 test -z "$as_dir" && as_dir=. 2323 test -z "$as_dir" && as_dir=.
1506 echo "PATH: $as_dir" 2324 $as_echo "PATH: $as_dir"
1507done 2325 done
1508IFS=$as_save_IFS 2326IFS=$as_save_IFS
1509 2327
1510} >&5 2328} >&5
1511 2329
1512cat >&5 <<_ACEOF 2330cat >&5 <<_ACEOF
1536 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2354 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1538 | -silent | --silent | --silen | --sile | --sil) 2356 | -silent | --silent | --silen | --sile | --sil)
1539 continue ;; 2357 continue ;;
1540 *\'*) 2358 *\'*)
1541 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2359 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1542 esac 2360 esac
1543 case $ac_pass in 2361 case $ac_pass in
1544 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2362 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1545 2) 2363 2)
1546 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 2364 as_fn_append ac_configure_args1 " '$ac_arg'"
1547 if test $ac_must_keep_next = true; then 2365 if test $ac_must_keep_next = true; then
1548 ac_must_keep_next=false # Got value, back to normal. 2366 ac_must_keep_next=false # Got value, back to normal.
1549 else 2367 else
1550 case $ac_arg in 2368 case $ac_arg in
1551 *=* | --config-cache | -C | -disable-* | --disable-* \ 2369 *=* | --config-cache | -C | -disable-* | --disable-* \
1557 esac 2375 esac
1558 ;; 2376 ;;
1559 -* ) ac_must_keep_next=true ;; 2377 -* ) ac_must_keep_next=true ;;
1560 esac 2378 esac
1561 fi 2379 fi
1562 ac_configure_args="$ac_configure_args '$ac_arg'" 2380 as_fn_append ac_configure_args " '$ac_arg'"
1563 ;; 2381 ;;
1564 esac 2382 esac
1565 done 2383 done
1566done 2384done
1567$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 2385{ 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; } 2386{ ac_configure_args1=; unset ac_configure_args1;}
1569 2387
1570# When interrupted or exit'd, cleanup temporary files, and complete 2388# When interrupted or exit'd, cleanup temporary files, and complete
1571# config.log. We remove comments because anyway the quotes in there 2389# config.log. We remove comments because anyway the quotes in there
1572# would cause problems or look ugly. 2390# would cause problems or look ugly.
1573# WARNING: Use '\'' to represent an apostrophe within the trap. 2391# WARNING: Use '\'' to represent an apostrophe within the trap.
1588 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2406 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 2407 eval ac_val=\$$ac_var
1590 case $ac_val in #( 2408 case $ac_val in #(
1591 *${as_nl}*) 2409 *${as_nl}*)
1592 case $ac_var in #( 2410 case $ac_var in #(
1593 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 2411 *_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;} ;; 2412$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1595 esac 2413 esac
1596 case $ac_var in #( 2414 case $ac_var in #(
1597 _ | IFS | as_nl) ;; #( 2415 _ | IFS | as_nl) ;; #(
1598 *) $as_unset $ac_var ;; 2416 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2417 *) { eval $ac_var=; unset $ac_var;} ;;
1599 esac ;; 2418 esac ;;
1600 esac 2419 esac
1601 done 2420 done
1602 (set) 2>&1 | 2421 (set) 2>&1 |
1603 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2422 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1622 echo 2441 echo
1623 for ac_var in $ac_subst_vars 2442 for ac_var in $ac_subst_vars
1624 do 2443 do
1625 eval ac_val=\$$ac_var 2444 eval ac_val=\$$ac_var
1626 case $ac_val in 2445 case $ac_val in
1627 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 esac 2447 esac
1629 echo "$ac_var='\''$ac_val'\''" 2448 $as_echo "$ac_var='\''$ac_val'\''"
1630 done | sort 2449 done | sort
1631 echo 2450 echo
1632 2451
1633 if test -n "$ac_subst_files"; then 2452 if test -n "$ac_subst_files"; then
1634 cat <<\_ASBOX 2453 cat <<\_ASBOX
1639 echo 2458 echo
1640 for ac_var in $ac_subst_files 2459 for ac_var in $ac_subst_files
1641 do 2460 do
1642 eval ac_val=\$$ac_var 2461 eval ac_val=\$$ac_var
1643 case $ac_val in 2462 case $ac_val in
1644 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2463 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1645 esac 2464 esac
1646 echo "$ac_var='\''$ac_val'\''" 2465 $as_echo "$ac_var='\''$ac_val'\''"
1647 done | sort 2466 done | sort
1648 echo 2467 echo
1649 fi 2468 fi
1650 2469
1651 if test -s confdefs.h; then 2470 if test -s confdefs.h; then
1657 echo 2476 echo
1658 cat confdefs.h 2477 cat confdefs.h
1659 echo 2478 echo
1660 fi 2479 fi
1661 test "$ac_signal" != 0 && 2480 test "$ac_signal" != 0 &&
1662 echo "$as_me: caught signal $ac_signal" 2481 $as_echo "$as_me: caught signal $ac_signal"
1663 echo "$as_me: exit $exit_status" 2482 $as_echo "$as_me: exit $exit_status"
1664 } >&5 2483 } >&5
1665 rm -f core *.core core.conftest.* && 2484 rm -f core *.core core.conftest.* &&
1666 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2485 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1667 exit $exit_status 2486 exit $exit_status
1668' 0 2487' 0
1669for ac_signal in 1 2 13 15; do 2488for ac_signal in 1 2 13 15; do
1670 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 2489 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1671done 2490done
1672ac_signal=0 2491ac_signal=0
1673 2492
1674# confdefs.h avoids OS command line length limits that DEFS can exceed. 2493# confdefs.h avoids OS command line length limits that DEFS can exceed.
1675rm -f -r conftest* confdefs.h 2494rm -f -r conftest* confdefs.h
1676 2495
2496$as_echo "/* confdefs.h */" > confdefs.h
2497
1677# Predefined preprocessor variables. 2498# Predefined preprocessor variables.
1678 2499
1679cat >>confdefs.h <<_ACEOF 2500cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_NAME "$PACKAGE_NAME" 2501#define PACKAGE_NAME "$PACKAGE_NAME"
1681_ACEOF 2502_ACEOF
1682 2503
1683
1684cat >>confdefs.h <<_ACEOF 2504cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2505#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1686_ACEOF 2506_ACEOF
1687 2507
1688
1689cat >>confdefs.h <<_ACEOF 2508cat >>confdefs.h <<_ACEOF
1690#define PACKAGE_VERSION "$PACKAGE_VERSION" 2509#define PACKAGE_VERSION "$PACKAGE_VERSION"
1691_ACEOF 2510_ACEOF
1692 2511
1693
1694cat >>confdefs.h <<_ACEOF 2512cat >>confdefs.h <<_ACEOF
1695#define PACKAGE_STRING "$PACKAGE_STRING" 2513#define PACKAGE_STRING "$PACKAGE_STRING"
1696_ACEOF 2514_ACEOF
1697 2515
1698
1699cat >>confdefs.h <<_ACEOF 2516cat >>confdefs.h <<_ACEOF
1700#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2517#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1701_ACEOF 2518_ACEOF
1702 2519
2520cat >>confdefs.h <<_ACEOF
2521#define PACKAGE_URL "$PACKAGE_URL"
2522_ACEOF
2523
1703 2524
1704# Let the site file select an alternate cache file if it wants to. 2525# Let the site file select an alternate cache file if it wants to.
1705# Prefer explicitly selected file to automatically selected ones. 2526# Prefer an explicitly selected file to automatically selected ones.
2527ac_site_file1=NONE
2528ac_site_file2=NONE
1706if test -n "$CONFIG_SITE"; then 2529if test -n "$CONFIG_SITE"; then
1707 set x "$CONFIG_SITE" 2530 ac_site_file1=$CONFIG_SITE
1708elif test "x$prefix" != xNONE; then 2531elif test "x$prefix" != xNONE; then
1709 set x "$prefix/share/config.site" "$prefix/etc/config.site" 2532 ac_site_file1=$prefix/share/config.site
2533 ac_site_file2=$prefix/etc/config.site
1710else 2534else
1711 set x "$ac_default_prefix/share/config.site" \ 2535 ac_site_file1=$ac_default_prefix/share/config.site
1712 "$ac_default_prefix/etc/config.site" 2536 ac_site_file2=$ac_default_prefix/etc/config.site
1713fi 2537fi
1714shift 2538for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1715for ac_site_file
1716do 2539do
1717 if test -r "$ac_site_file"; then 2540 test "x$ac_site_file" = xNONE && continue
2541 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 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1719echo "$as_me: loading site script $ac_site_file" >&6;} 2543$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1720 sed 's/^/| /' "$ac_site_file" >&5 2544 sed 's/^/| /' "$ac_site_file" >&5
1721 . "$ac_site_file" 2545 . "$ac_site_file"
1722 fi 2546 fi
1723done 2547done
1724 2548
1725if test -r "$cache_file"; then 2549if test -r "$cache_file"; then
1726 # Some versions of bash will fail to source /dev/null (special 2550 # Some versions of bash will fail to source /dev/null (special files
1727 # files actually), so we avoid doing that. 2551 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1728 if test -f "$cache_file"; then 2552 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1729 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1730echo "$as_me: loading cache $cache_file" >&6;} 2554$as_echo "$as_me: loading cache $cache_file" >&6;}
1731 case $cache_file in 2555 case $cache_file in
1732 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2556 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1733 *) . "./$cache_file";; 2557 *) . "./$cache_file";;
1734 esac 2558 esac
1735 fi 2559 fi
1736else 2560else
1737 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1738echo "$as_me: creating cache $cache_file" >&6;} 2562$as_echo "$as_me: creating cache $cache_file" >&6;}
1739 >$cache_file 2563 >$cache_file
1740fi 2564fi
1741 2565
1742# Check that the precious variables saved in the cache have kept the same 2566# Check that the precious variables saved in the cache have kept the same
1743# value. 2567# value.
1747 eval ac_new_set=\$ac_env_${ac_var}_set 2571 eval ac_new_set=\$ac_env_${ac_var}_set
1748 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2572 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1749 eval ac_new_val=\$ac_env_${ac_var}_value 2573 eval ac_new_val=\$ac_env_${ac_var}_value
1750 case $ac_old_set,$ac_new_set in 2574 case $ac_old_set,$ac_new_set in
1751 set,) 2575 set,)
1752 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2576 { $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;} 2577$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1754 ac_cache_corrupted=: ;; 2578 ac_cache_corrupted=: ;;
1755 ,set) 2579 ,set)
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2580 { $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;} 2581$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1758 ac_cache_corrupted=: ;; 2582 ac_cache_corrupted=: ;;
1759 ,);; 2583 ,);;
1760 *) 2584 *)
1761 if test "x$ac_old_val" != "x$ac_new_val"; then 2585 if test "x$ac_old_val" != "x$ac_new_val"; then
2586 # differences in whitespace do not lead to failure.
2587 ac_old_val_w=`echo x $ac_old_val`
2588 ac_new_val_w=`echo x $ac_new_val`
2589 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 2590 { $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;} 2591$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=: 2592 ac_cache_corrupted=:
2593 else
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2595$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2596 eval $ac_var=\$ac_old_val
2597 fi
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2599$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2601$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1769 fi;; 2602 fi;;
1770 esac 2603 esac
1771 # Pass precious variables to config.status. 2604 # Pass precious variables to config.status.
1772 if test "$ac_new_set" = set; then 2605 if test "$ac_new_set" = set; then
1773 case $ac_new_val in 2606 case $ac_new_val in
1774 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2607 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 *) ac_arg=$ac_var=$ac_new_val ;; 2608 *) ac_arg=$ac_var=$ac_new_val ;;
1776 esac 2609 esac
1777 case " $ac_configure_args " in 2610 case " $ac_configure_args " in
1778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2611 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1779 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2612 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1780 esac 2613 esac
1781 fi 2614 fi
1782done 2615done
1783if $ac_cache_corrupted; then 2616if $ac_cache_corrupted; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1784 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2619 { $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;} 2620$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;} 2621 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1788 { (exit 1); exit 1; }; }
1789fi 2622fi
1790 2623## -------------------- ##
1791 2624## Main body of script. ##
1792 2625## -------------------- ##
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806 2626
1807ac_ext=c 2627ac_ext=c
1808ac_cpp='$CPP $CPPFLAGS' 2628ac_cpp='$CPP $CPPFLAGS'
1809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1816ac_config_headers="$ac_config_headers config.h:config.h.in" 2636ac_config_headers="$ac_config_headers config.h:config.h.in"
1817 2637
1818 2638
1819ac_aux_dir= 2639ac_aux_dir=
1820for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2640for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2641 for ac_t in install-sh install.sh shtool; do
1821 if test -f "$ac_dir/install-sh"; then 2642 if test -f "$ac_dir/$ac_t"; then
1822 ac_aux_dir=$ac_dir 2643 ac_aux_dir=$ac_dir
1823 ac_install_sh="$ac_aux_dir/install-sh -c" 2644 ac_install_sh="$ac_aux_dir/$ac_t -c"
1824 break 2645 break 2
1825 elif test -f "$ac_dir/install.sh"; then
1826 ac_aux_dir=$ac_dir
1827 ac_install_sh="$ac_aux_dir/install.sh -c"
1828 break
1829 elif test -f "$ac_dir/shtool"; then
1830 ac_aux_dir=$ac_dir
1831 ac_install_sh="$ac_aux_dir/shtool install -c"
1832 break
1833 fi 2646 fi
2647 done
1834done 2648done
1835if test -z "$ac_aux_dir"; then 2649if 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;} 2650 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1838 { (exit 1); exit 1; }; }
1839fi 2651fi
1840 2652
1841# These three variables are undocumented and unsupported, 2653# These three variables are undocumented and unsupported,
1842# and are intended to be withdrawn in a future Autoconf release. 2654# 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 2655# 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. 2659ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1848 2660
1849 2661
1850# Make sure we can run config.sub. 2662# Make sure we can run config.sub.
1851$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2663$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 2664 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 2665
1856{ echo "$as_me:$LINENO: checking build system type" >&5 2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1857echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2667$as_echo_n "checking build system type... " >&6; }
1858if test "${ac_cv_build+set}" = set; then 2668if test "${ac_cv_build+set}" = set; then :
1859 echo $ECHO_N "(cached) $ECHO_C" >&6 2669 $as_echo_n "(cached) " >&6
1860else 2670else
1861 ac_build_alias=$build_alias 2671 ac_build_alias=$build_alias
1862test "x$ac_build_alias" = x && 2672test "x$ac_build_alias" = x &&
1863 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2673 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1864test "x$ac_build_alias" = x && 2674test "x$ac_build_alias" = x &&
1865 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1866echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2675 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
1867 { (exit 1); exit 1; }; }
1868ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2676ac_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;} 2677 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1871 { (exit 1); exit 1; }; }
1872 2678
1873fi 2679fi
1874{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1875echo "${ECHO_T}$ac_cv_build" >&6; } 2681$as_echo "$ac_cv_build" >&6; }
1876case $ac_cv_build in 2682case $ac_cv_build in
1877*-*-*) ;; 2683*-*-*) ;;
1878*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2684*) 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 2685esac
1882build=$ac_cv_build 2686build=$ac_cv_build
1883ac_save_IFS=$IFS; IFS='-' 2687ac_save_IFS=$IFS; IFS='-'
1884set x $ac_cv_build 2688set x $ac_cv_build
1885shift 2689shift
1891build_os=$* 2695build_os=$*
1892IFS=$ac_save_IFS 2696IFS=$ac_save_IFS
1893case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2697case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1894 2698
1895 2699
1896{ echo "$as_me:$LINENO: checking host system type" >&5 2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1897echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2701$as_echo_n "checking host system type... " >&6; }
1898if test "${ac_cv_host+set}" = set; then 2702if test "${ac_cv_host+set}" = set; then :
1899 echo $ECHO_N "(cached) $ECHO_C" >&6 2703 $as_echo_n "(cached) " >&6
1900else 2704else
1901 if test "x$host_alias" = x; then 2705 if test "x$host_alias" = x; then
1902 ac_cv_host=$ac_cv_build 2706 ac_cv_host=$ac_cv_build
1903else 2707else
1904 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2708 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
1906echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2709 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1907 { (exit 1); exit 1; }; }
1908fi 2710fi
1909 2711
1910fi 2712fi
1911{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1912echo "${ECHO_T}$ac_cv_host" >&6; } 2714$as_echo "$ac_cv_host" >&6; }
1913case $ac_cv_host in 2715case $ac_cv_host in
1914*-*-*) ;; 2716*-*-*) ;;
1915*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2717*) 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 2718esac
1919host=$ac_cv_host 2719host=$ac_cv_host
1920ac_save_IFS=$IFS; IFS='-' 2720ac_save_IFS=$IFS; IFS='-'
1921set x $ac_cv_host 2721set x $ac_cv_host
1922shift 2722shift
1931 2731
1932 2732
1933 2733
1934VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2734VERSION=`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` 2735DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2736
1936echo "" 2737echo ""
1937echo "configuring for rxvt $VERSION" 2738echo "configuring for rxvt $VERSION"
1938echo "" 2739echo ""
1939 2740
1940orig_CXXFLAGS="$CXXFLAGS" 2741orig_CXXFLAGS="$CXXFLAGS"
1941
1942 2742
1943ac_ext=c 2743ac_ext=c
1944ac_cpp='$CPP $CPPFLAGS' 2744ac_cpp='$CPP $CPPFLAGS'
1945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947ac_compiler_gnu=$ac_cv_c_compiler_gnu 2747ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948if test -n "$ac_tool_prefix"; then 2748if 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. 2749 # 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 2750set dummy ${ac_tool_prefix}gcc; ac_word=$2
1951{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2752$as_echo_n "checking for $ac_word... " >&6; }
1953if test "${ac_cv_prog_CC+set}" = set; then 2753if test "${ac_cv_prog_CC+set}" = set; then :
1954 echo $ECHO_N "(cached) $ECHO_C" >&6 2754 $as_echo_n "(cached) " >&6
1955else 2755else
1956 if test -n "$CC"; then 2756 if test -n "$CC"; then
1957 ac_cv_prog_CC="$CC" # Let the user override the test. 2757 ac_cv_prog_CC="$CC" # Let the user override the test.
1958else 2758else
1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH 2760for as_dir in $PATH
1961do 2761do
1962 IFS=$as_save_IFS 2762 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=. 2763 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do 2764 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 2765 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" 2766 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1968 break 2 2768 break 2
1969 fi 2769 fi
1970done 2770done
1971done 2771 done
1972IFS=$as_save_IFS 2772IFS=$as_save_IFS
1973 2773
1974fi 2774fi
1975fi 2775fi
1976CC=$ac_cv_prog_CC 2776CC=$ac_cv_prog_CC
1977if test -n "$CC"; then 2777if test -n "$CC"; then
1978 { echo "$as_me:$LINENO: result: $CC" >&5 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1979echo "${ECHO_T}$CC" >&6; } 2779$as_echo "$CC" >&6; }
1980else 2780else
1981 { echo "$as_me:$LINENO: result: no" >&5 2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1982echo "${ECHO_T}no" >&6; } 2782$as_echo "no" >&6; }
1983fi 2783fi
1984 2784
1985 2785
1986fi 2786fi
1987if test -z "$ac_cv_prog_CC"; then 2787if test -z "$ac_cv_prog_CC"; then
1988 ac_ct_CC=$CC 2788 ac_ct_CC=$CC
1989 # Extract the first word of "gcc", so it can be a program name with args. 2789 # Extract the first word of "gcc", so it can be a program name with args.
1990set dummy gcc; ac_word=$2 2790set dummy gcc; ac_word=$2
1991{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2792$as_echo_n "checking for $ac_word... " >&6; }
1993if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2793if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
1994 echo $ECHO_N "(cached) $ECHO_C" >&6 2794 $as_echo_n "(cached) " >&6
1995else 2795else
1996 if test -n "$ac_ct_CC"; then 2796 if test -n "$ac_ct_CC"; then
1997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1998else 2798else
1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH 2800for as_dir in $PATH
2001do 2801do
2002 IFS=$as_save_IFS 2802 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=. 2803 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do 2804 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 2805 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" 2806 ac_cv_prog_ac_ct_CC="gcc"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2008 break 2 2808 break 2
2009 fi 2809 fi
2010done 2810done
2011done 2811 done
2012IFS=$as_save_IFS 2812IFS=$as_save_IFS
2013 2813
2014fi 2814fi
2015fi 2815fi
2016ac_ct_CC=$ac_cv_prog_ac_ct_CC 2816ac_ct_CC=$ac_cv_prog_ac_ct_CC
2017if test -n "$ac_ct_CC"; then 2817if test -n "$ac_ct_CC"; then
2018 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2019echo "${ECHO_T}$ac_ct_CC" >&6; } 2819$as_echo "$ac_ct_CC" >&6; }
2020else 2820else
2021 { echo "$as_me:$LINENO: result: no" >&5 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2022echo "${ECHO_T}no" >&6; } 2822$as_echo "no" >&6; }
2023fi 2823fi
2024 2824
2025 if test "x$ac_ct_CC" = x; then 2825 if test "x$ac_ct_CC" = x; then
2026 CC="" 2826 CC=""
2027 else 2827 else
2028 case $cross_compiling:$ac_tool_warned in 2828 case $cross_compiling:$ac_tool_warned in
2029yes:) 2829yes:)
2030{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2830{ $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 2831$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 ;; 2832ac_tool_warned=yes ;;
2037esac 2833esac
2038 CC=$ac_ct_CC 2834 CC=$ac_ct_CC
2039 fi 2835 fi
2040else 2836else
2043 2839
2044if test -z "$CC"; then 2840if test -z "$CC"; then
2045 if test -n "$ac_tool_prefix"; then 2841 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. 2842 # 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 2843set dummy ${ac_tool_prefix}cc; ac_word=$2
2048{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2845$as_echo_n "checking for $ac_word... " >&6; }
2050if test "${ac_cv_prog_CC+set}" = set; then 2846if test "${ac_cv_prog_CC+set}" = set; then :
2051 echo $ECHO_N "(cached) $ECHO_C" >&6 2847 $as_echo_n "(cached) " >&6
2052else 2848else
2053 if test -n "$CC"; then 2849 if test -n "$CC"; then
2054 ac_cv_prog_CC="$CC" # Let the user override the test. 2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2055else 2851else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH 2853for as_dir in $PATH
2058do 2854do
2059 IFS=$as_save_IFS 2855 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=. 2856 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do 2857 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 2858 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" 2859 ac_cv_prog_CC="${ac_tool_prefix}cc"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 break 2 2861 break 2
2066 fi 2862 fi
2067done 2863done
2068done 2864 done
2069IFS=$as_save_IFS 2865IFS=$as_save_IFS
2070 2866
2071fi 2867fi
2072fi 2868fi
2073CC=$ac_cv_prog_CC 2869CC=$ac_cv_prog_CC
2074if test -n "$CC"; then 2870if test -n "$CC"; then
2075 { echo "$as_me:$LINENO: result: $CC" >&5 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2076echo "${ECHO_T}$CC" >&6; } 2872$as_echo "$CC" >&6; }
2077else 2873else
2078 { echo "$as_me:$LINENO: result: no" >&5 2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2079echo "${ECHO_T}no" >&6; } 2875$as_echo "no" >&6; }
2080fi 2876fi
2081 2877
2082 2878
2083 fi 2879 fi
2084fi 2880fi
2085if test -z "$CC"; then 2881if test -z "$CC"; then
2086 # Extract the first word of "cc", so it can be a program name with args. 2882 # Extract the first word of "cc", so it can be a program name with args.
2087set dummy cc; ac_word=$2 2883set dummy cc; ac_word=$2
2088{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2885$as_echo_n "checking for $ac_word... " >&6; }
2090if test "${ac_cv_prog_CC+set}" = set; then 2886if test "${ac_cv_prog_CC+set}" = set; then :
2091 echo $ECHO_N "(cached) $ECHO_C" >&6 2887 $as_echo_n "(cached) " >&6
2092else 2888else
2093 if test -n "$CC"; then 2889 if test -n "$CC"; then
2094 ac_cv_prog_CC="$CC" # Let the user override the test. 2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2095else 2891else
2096 ac_prog_rejected=no 2892 ac_prog_rejected=no
2097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH 2894for as_dir in $PATH
2099do 2895do
2100 IFS=$as_save_IFS 2896 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=. 2897 test -z "$as_dir" && as_dir=.
2102 for ac_exec_ext in '' $ac_executable_extensions; do 2898 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 2899 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 2900 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2105 ac_prog_rejected=yes 2901 ac_prog_rejected=yes
2106 continue 2902 continue
2107 fi 2903 fi
2108 ac_cv_prog_CC="cc" 2904 ac_cv_prog_CC="cc"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 break 2 2906 break 2
2111 fi 2907 fi
2112done 2908done
2113done 2909 done
2114IFS=$as_save_IFS 2910IFS=$as_save_IFS
2115 2911
2116if test $ac_prog_rejected = yes; then 2912if test $ac_prog_rejected = yes; then
2117 # We found a bogon in the path, so make sure we never use it. 2913 # We found a bogon in the path, so make sure we never use it.
2118 set dummy $ac_cv_prog_CC 2914 set dummy $ac_cv_prog_CC
2127fi 2923fi
2128fi 2924fi
2129fi 2925fi
2130CC=$ac_cv_prog_CC 2926CC=$ac_cv_prog_CC
2131if test -n "$CC"; then 2927if test -n "$CC"; then
2132 { echo "$as_me:$LINENO: result: $CC" >&5 2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2133echo "${ECHO_T}$CC" >&6; } 2929$as_echo "$CC" >&6; }
2134else 2930else
2135 { echo "$as_me:$LINENO: result: no" >&5 2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2136echo "${ECHO_T}no" >&6; } 2932$as_echo "no" >&6; }
2137fi 2933fi
2138 2934
2139 2935
2140fi 2936fi
2141if test -z "$CC"; then 2937if test -z "$CC"; then
2142 if test -n "$ac_tool_prefix"; then 2938 if test -n "$ac_tool_prefix"; then
2143 for ac_prog in cl.exe 2939 for ac_prog in cl.exe
2144 do 2940 do
2145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2941 # 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 2942set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2147{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2944$as_echo_n "checking for $ac_word... " >&6; }
2149if test "${ac_cv_prog_CC+set}" = set; then 2945if test "${ac_cv_prog_CC+set}" = set; then :
2150 echo $ECHO_N "(cached) $ECHO_C" >&6 2946 $as_echo_n "(cached) " >&6
2151else 2947else
2152 if test -n "$CC"; then 2948 if test -n "$CC"; then
2153 ac_cv_prog_CC="$CC" # Let the user override the test. 2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2154else 2950else
2155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156for as_dir in $PATH 2952for as_dir in $PATH
2157do 2953do
2158 IFS=$as_save_IFS 2954 IFS=$as_save_IFS
2159 test -z "$as_dir" && as_dir=. 2955 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do 2956 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 2957 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" 2958 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 break 2 2960 break 2
2165 fi 2961 fi
2166done 2962done
2167done 2963 done
2168IFS=$as_save_IFS 2964IFS=$as_save_IFS
2169 2965
2170fi 2966fi
2171fi 2967fi
2172CC=$ac_cv_prog_CC 2968CC=$ac_cv_prog_CC
2173if test -n "$CC"; then 2969if test -n "$CC"; then
2174 { echo "$as_me:$LINENO: result: $CC" >&5 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2175echo "${ECHO_T}$CC" >&6; } 2971$as_echo "$CC" >&6; }
2176else 2972else
2177 { echo "$as_me:$LINENO: result: no" >&5 2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2178echo "${ECHO_T}no" >&6; } 2974$as_echo "no" >&6; }
2179fi 2975fi
2180 2976
2181 2977
2182 test -n "$CC" && break 2978 test -n "$CC" && break
2183 done 2979 done
2186 ac_ct_CC=$CC 2982 ac_ct_CC=$CC
2187 for ac_prog in cl.exe 2983 for ac_prog in cl.exe
2188do 2984do
2189 # Extract the first word of "$ac_prog", so it can be a program name with args. 2985 # Extract the first word of "$ac_prog", so it can be a program name with args.
2190set dummy $ac_prog; ac_word=$2 2986set dummy $ac_prog; ac_word=$2
2191{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2988$as_echo_n "checking for $ac_word... " >&6; }
2193if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2989if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2194 echo $ECHO_N "(cached) $ECHO_C" >&6 2990 $as_echo_n "(cached) " >&6
2195else 2991else
2196 if test -n "$ac_ct_CC"; then 2992 if test -n "$ac_ct_CC"; then
2197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2198else 2994else
2199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200for as_dir in $PATH 2996for as_dir in $PATH
2201do 2997do
2202 IFS=$as_save_IFS 2998 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=. 2999 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do 3000 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 3001 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" 3002 ac_cv_prog_ac_ct_CC="$ac_prog"
2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 break 2 3004 break 2
2209 fi 3005 fi
2210done 3006done
2211done 3007 done
2212IFS=$as_save_IFS 3008IFS=$as_save_IFS
2213 3009
2214fi 3010fi
2215fi 3011fi
2216ac_ct_CC=$ac_cv_prog_ac_ct_CC 3012ac_ct_CC=$ac_cv_prog_ac_ct_CC
2217if test -n "$ac_ct_CC"; then 3013if test -n "$ac_ct_CC"; then
2218 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2219echo "${ECHO_T}$ac_ct_CC" >&6; } 3015$as_echo "$ac_ct_CC" >&6; }
2220else 3016else
2221 { echo "$as_me:$LINENO: result: no" >&5 3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2222echo "${ECHO_T}no" >&6; } 3018$as_echo "no" >&6; }
2223fi 3019fi
2224 3020
2225 3021
2226 test -n "$ac_ct_CC" && break 3022 test -n "$ac_ct_CC" && break
2227done 3023done
2229 if test "x$ac_ct_CC" = x; then 3025 if test "x$ac_ct_CC" = x; then
2230 CC="" 3026 CC=""
2231 else 3027 else
2232 case $cross_compiling:$ac_tool_warned in 3028 case $cross_compiling:$ac_tool_warned in
2233yes:) 3029yes:)
2234{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3030{ $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 3031$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 ;; 3032ac_tool_warned=yes ;;
2241esac 3033esac
2242 CC=$ac_ct_CC 3034 CC=$ac_ct_CC
2243 fi 3035 fi
2244fi 3036fi
2245 3037
2246fi 3038fi
2247 3039
2248 3040
2249test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3041test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250See \`config.log' for more details." >&5 3042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251echo "$as_me: error: no acceptable C compiler found in \$PATH 3043as_fn_error "no acceptable C compiler found in \$PATH
2252See \`config.log' for more details." >&2;} 3044See \`config.log' for more details." "$LINENO" 5; }
2253 { (exit 1); exit 1; }; }
2254 3045
2255# Provide some information about the compiler. 3046# Provide some information about the compiler.
2256echo "$as_me:$LINENO: checking for C compiler version" >&5 3047$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2257ac_compiler=`set X $ac_compile; echo $2` 3048set X $ac_compile
3049ac_compiler=$2
3050for ac_option in --version -v -V -qversion; do
2258{ (ac_try="$ac_compiler --version >&5" 3051 { { ac_try="$ac_compiler $ac_option >&5"
2259case "(($ac_try" in 3052case "(($ac_try" in
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;; 3054 *) ac_try_echo=$ac_try;;
2262esac 3055esac
2263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2264 (eval "$ac_compiler --version >&5") 2>&5 3057$as_echo "$ac_try_echo"; } >&5
3058 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2265 ac_status=$? 3059 ac_status=$?
3060 if test -s conftest.err; then
3061 sed '10a\
3062... rest of stderr output deleted ...
3063 10q' conftest.err >conftest.er1
3064 cat conftest.er1 >&5
3065 fi
3066 rm -f conftest.er1 conftest.err
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 (exit $ac_status); } 3068 test $ac_status = 0; }
2268{ (ac_try="$ac_compiler -v >&5" 3069done
3070
3071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072/* end confdefs.h. */
3073
3074int
3075main ()
3076{
3077
3078 ;
3079 return 0;
3080}
3081_ACEOF
3082ac_clean_files_save=$ac_clean_files
3083ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3084# Try to create an executable without -o first, disregard a.out.
3085# It will help us diagnose broken compilers, and finding out an intuition
3086# of exeext.
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3088$as_echo_n "checking whether the C compiler works... " >&6; }
3089ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3090
3091# The possible output files:
3092ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3093
3094ac_rmfiles=
3095for ac_file in $ac_files
3096do
3097 case $ac_file in
3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3099 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3100 esac
3101done
3102rm -f $ac_rmfiles
3103
3104if { { ac_try="$ac_link_default"
2269case "(($ac_try" in 3105case "(($ac_try" in
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;; 3107 *) ac_try_echo=$ac_try;;
2272esac 3108esac
2273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274 (eval "$ac_compiler -v >&5") 2>&5 3110$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 3111 (eval "$ac_link_default") 2>&5
2338 ac_status=$? 3112 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2340 (exit $ac_status); }; then 3114 test $ac_status = 0; }; then :
2341 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3115 # 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' 3116# 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, 3117# 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 3118# so that the user can short-circuit this test for compilers unknown to
2345# Autoconf. 3119# Autoconf.
2346for ac_file in $ac_files '' 3120for ac_file in $ac_files ''
2347do 3121do
2348 test -f "$ac_file" || continue 3122 test -f "$ac_file" || continue
2349 case $ac_file in 3123 case $ac_file in
2350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2351 ;; 3125 ;;
2352 [ab].out ) 3126 [ab].out )
2353 # We found the default executable, but exeext='' is most 3127 # We found the default executable, but exeext='' is most
2354 # certainly right. 3128 # certainly right.
2355 break;; 3129 break;;
2356 *.* ) 3130 *.* )
2357 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3131 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2358 then :; else 3132 then :; else
2359 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3133 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2360 fi 3134 fi
2361 # We set ac_cv_exeext here because the later test for it is not 3135 # 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' 3136 # safe: cross compilers may not add the suffix if given an `-o'
2371test "$ac_cv_exeext" = no && ac_cv_exeext= 3145test "$ac_cv_exeext" = no && ac_cv_exeext=
2372 3146
2373else 3147else
2374 ac_file='' 3148 ac_file=''
2375fi 3149fi
2376
2377{ echo "$as_me:$LINENO: result: $ac_file" >&5
2378echo "${ECHO_T}$ac_file" >&6; }
2379if test -z "$ac_file"; then 3150if test -z "$ac_file"; then :
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152$as_echo "no" >&6; }
2380 echo "$as_me: failed program was:" >&5 3153$as_echo "$as_me: failed program was:" >&5
2381sed 's/^/| /' conftest.$ac_ext >&5 3154sed 's/^/| /' conftest.$ac_ext >&5
2382 3155
2383{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3156{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2384See \`config.log' for more details." >&5 3157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158{ as_fn_set_status 77
2385echo "$as_me: error: C compiler cannot create executables 3159as_fn_error "C compiler cannot create executables
2386See \`config.log' for more details." >&2;} 3160See \`config.log' for more details." "$LINENO" 5; }; }
2387 { (exit 77); exit 77; }; } 3161else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163$as_echo "yes" >&6; }
2388fi 3164fi
2389 3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3166$as_echo_n "checking for C compiler default output file name... " >&6; }
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3168$as_echo "$ac_file" >&6; }
2390ac_exeext=$ac_cv_exeext 3169ac_exeext=$ac_cv_exeext
2391 3170
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 3171rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2428ac_clean_files=$ac_clean_files_save 3172ac_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 3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2437echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3174$as_echo_n "checking for suffix of executables... " >&6; }
2438if { (ac_try="$ac_link" 3175if { { ac_try="$ac_link"
2439case "(($ac_try" in 3176case "(($ac_try" in
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;; 3178 *) ac_try_echo=$ac_try;;
2442esac 3179esac
2443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181$as_echo "$ac_try_echo"; } >&5
2444 (eval "$ac_link") 2>&5 3182 (eval "$ac_link") 2>&5
2445 ac_status=$? 3183 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2447 (exit $ac_status); }; then 3185 test $ac_status = 0; }; then :
2448 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3186 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2449# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3187# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2450# work properly (i.e., refer to `conftest.exe'), while it won't with 3188# work properly (i.e., refer to `conftest.exe'), while it won't with
2451# `rm'. 3189# `rm'.
2452for ac_file in conftest.exe conftest conftest.*; do 3190for ac_file in conftest.exe conftest conftest.*; do
2453 test -f "$ac_file" || continue 3191 test -f "$ac_file" || continue
2454 case $ac_file in 3192 case $ac_file in
2455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2456 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3194 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2457 break;; 3195 break;;
2458 * ) break;; 3196 * ) break;;
2459 esac 3197 esac
2460done 3198done
2461else 3199else
2462 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2463See \`config.log' for more details." >&5 3201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2464echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3202as_fn_error "cannot compute suffix of executables: cannot compile and link
2465See \`config.log' for more details." >&2;} 3203See \`config.log' for more details." "$LINENO" 5; }
2466 { (exit 1); exit 1; }; }
2467fi 3204fi
2468
2469rm -f conftest$ac_cv_exeext 3205rm -f conftest conftest$ac_cv_exeext
2470{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2471echo "${ECHO_T}$ac_cv_exeext" >&6; } 3207$as_echo "$ac_cv_exeext" >&6; }
2472 3208
2473rm -f conftest.$ac_ext 3209rm -f conftest.$ac_ext
2474EXEEXT=$ac_cv_exeext 3210EXEEXT=$ac_cv_exeext
2475ac_exeext=$EXEEXT 3211ac_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 3212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485cat >>conftest.$ac_ext <<_ACEOF
2486/* end confdefs.h. */ 3213/* end confdefs.h. */
2487 3214#include <stdio.h>
2488int 3215int
2489main () 3216main ()
2490{ 3217{
3218FILE *f = fopen ("conftest.out", "w");
3219 return ferror (f) || fclose (f) != 0;
2491 3220
2492 ; 3221 ;
2493 return 0; 3222 return 0;
2494} 3223}
2495_ACEOF 3224_ACEOF
2496rm -f conftest.o conftest.obj 3225ac_clean_files="$ac_clean_files conftest.out"
2497if { (ac_try="$ac_compile" 3226# Check that the compiler produces executables we can run. If not, either
3227# the compiler is broken, or we cross compile.
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3229$as_echo_n "checking whether we are cross compiling... " >&6; }
3230if test "$cross_compiling" != yes; then
3231 { { ac_try="$ac_link"
2498case "(($ac_try" in 3232case "(($ac_try" in
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;; 3234 *) ac_try_echo=$ac_try;;
2501esac 3235esac
2502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237$as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_link") 2>&5
3239 ac_status=$?
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }
3242 if { ac_try='./conftest$ac_cv_exeext'
3243 { { case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246esac
3247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248$as_echo "$ac_try_echo"; } >&5
3249 (eval "$ac_try") 2>&5
3250 ac_status=$?
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }; }; then
3253 cross_compiling=no
3254 else
3255 if test "$cross_compiling" = maybe; then
3256 cross_compiling=yes
3257 else
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260as_fn_error "cannot run C compiled programs.
3261If you meant to cross compile, use \`--host'.
3262See \`config.log' for more details." "$LINENO" 5; }
3263 fi
3264 fi
3265fi
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3267$as_echo "$cross_compiling" >&6; }
3268
3269rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3270ac_clean_files=$ac_clean_files_save
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3272$as_echo_n "checking for suffix of object files... " >&6; }
3273if test "${ac_cv_objext+set}" = set; then :
3274 $as_echo_n "(cached) " >&6
3275else
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277/* end confdefs.h. */
3278
3279int
3280main ()
3281{
3282
3283 ;
3284 return 0;
3285}
3286_ACEOF
3287rm -f conftest.o conftest.obj
3288if { { ac_try="$ac_compile"
3289case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292esac
3293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294$as_echo "$ac_try_echo"; } >&5
2503 (eval "$ac_compile") 2>&5 3295 (eval "$ac_compile") 2>&5
2504 ac_status=$? 3296 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506 (exit $ac_status); }; then 3298 test $ac_status = 0; }; then :
2507 for ac_file in conftest.o conftest.obj conftest.*; do 3299 for ac_file in conftest.o conftest.obj conftest.*; do
2508 test -f "$ac_file" || continue; 3300 test -f "$ac_file" || continue;
2509 case $ac_file in 3301 case $ac_file in
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3303 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2512 break;; 3304 break;;
2513 esac 3305 esac
2514done 3306done
2515else 3307else
2516 echo "$as_me: failed program was:" >&5 3308 $as_echo "$as_me: failed program was:" >&5
2517sed 's/^/| /' conftest.$ac_ext >&5 3309sed 's/^/| /' conftest.$ac_ext >&5
2518 3310
2519{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3311{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2520See \`config.log' for more details." >&5 3312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521echo "$as_me: error: cannot compute suffix of object files: cannot compile 3313as_fn_error "cannot compute suffix of object files: cannot compile
2522See \`config.log' for more details." >&2;} 3314See \`config.log' for more details." "$LINENO" 5; }
2523 { (exit 1); exit 1; }; }
2524fi 3315fi
2525
2526rm -f conftest.$ac_cv_objext conftest.$ac_ext 3316rm -f conftest.$ac_cv_objext conftest.$ac_ext
2527fi 3317fi
2528{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2529echo "${ECHO_T}$ac_cv_objext" >&6; } 3319$as_echo "$ac_cv_objext" >&6; }
2530OBJEXT=$ac_cv_objext 3320OBJEXT=$ac_cv_objext
2531ac_objext=$OBJEXT 3321ac_objext=$OBJEXT
2532{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3322{ $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; } 3323$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2534if test "${ac_cv_c_compiler_gnu+set}" = set; then 3324if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2535 echo $ECHO_N "(cached) $ECHO_C" >&6 3325 $as_echo_n "(cached) " >&6
2536else 3326else
2537 cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h. */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext 3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
2542/* end confdefs.h. */ 3328/* end confdefs.h. */
2543 3329
2544int 3330int
2545main () 3331main ()
2546{ 3332{
2550 3336
2551 ; 3337 ;
2552 return 0; 3338 return 0;
2553} 3339}
2554_ACEOF 3340_ACEOF
2555rm -f conftest.$ac_objext 3341if 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 3342 ac_compiler_gnu=yes
2573else 3343else
2574 echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577 ac_compiler_gnu=no 3344 ac_compiler_gnu=no
2578fi 3345fi
2579
2580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581ac_cv_c_compiler_gnu=$ac_compiler_gnu 3347ac_cv_c_compiler_gnu=$ac_compiler_gnu
2582 3348
2583fi 3349fi
2584{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2585echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3351$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2586GCC=`test $ac_compiler_gnu = yes && echo yes` 3352if test $ac_compiler_gnu = yes; then
3353 GCC=yes
3354else
3355 GCC=
3356fi
2587ac_test_CFLAGS=${CFLAGS+set} 3357ac_test_CFLAGS=${CFLAGS+set}
2588ac_save_CFLAGS=$CFLAGS 3358ac_save_CFLAGS=$CFLAGS
2589{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2590echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3360$as_echo_n "checking whether $CC accepts -g... " >&6; }
2591if test "${ac_cv_prog_cc_g+set}" = set; then 3361if test "${ac_cv_prog_cc_g+set}" = set; then :
2592 echo $ECHO_N "(cached) $ECHO_C" >&6 3362 $as_echo_n "(cached) " >&6
2593else 3363else
2594 ac_save_c_werror_flag=$ac_c_werror_flag 3364 ac_save_c_werror_flag=$ac_c_werror_flag
2595 ac_c_werror_flag=yes 3365 ac_c_werror_flag=yes
2596 ac_cv_prog_cc_g=no 3366 ac_cv_prog_cc_g=no
2597 CFLAGS="-g" 3367 CFLAGS="-g"
2598 cat >conftest.$ac_ext <<_ACEOF
2599/* confdefs.h. */
2600_ACEOF
2601cat confdefs.h >>conftest.$ac_ext 3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602cat >>conftest.$ac_ext <<_ACEOF
2603/* end confdefs.h. */ 3369/* end confdefs.h. */
2604 3370
2605int 3371int
2606main () 3372main ()
2607{ 3373{
2608 3374
2609 ; 3375 ;
2610 return 0; 3376 return 0;
2611} 3377}
2612_ACEOF 3378_ACEOF
2613rm -f conftest.$ac_objext 3379if 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 3380 ac_cv_prog_cc_g=yes
2631else 3381else
2632 echo "$as_me: failed program was:" >&5
2633sed 's/^/| /' conftest.$ac_ext >&5
2634
2635 CFLAGS="" 3382 CFLAGS=""
2636 cat >conftest.$ac_ext <<_ACEOF
2637/* confdefs.h. */
2638_ACEOF
2639cat confdefs.h >>conftest.$ac_ext 3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640cat >>conftest.$ac_ext <<_ACEOF
2641/* end confdefs.h. */ 3384/* end confdefs.h. */
2642 3385
2643int 3386int
2644main () 3387main ()
2645{ 3388{
2646 3389
2647 ; 3390 ;
2648 return 0; 3391 return 0;
2649} 3392}
2650_ACEOF 3393_ACEOF
2651rm -f conftest.$ac_objext 3394if 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 3395
3396else
2673 ac_c_werror_flag=$ac_save_c_werror_flag 3397 ac_c_werror_flag=$ac_save_c_werror_flag
2674 CFLAGS="-g" 3398 CFLAGS="-g"
2675 cat >conftest.$ac_ext <<_ACEOF
2676/* confdefs.h. */
2677_ACEOF
2678cat confdefs.h >>conftest.$ac_ext 3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679cat >>conftest.$ac_ext <<_ACEOF
2680/* end confdefs.h. */ 3400/* end confdefs.h. */
2681 3401
2682int 3402int
2683main () 3403main ()
2684{ 3404{
2685 3405
2686 ; 3406 ;
2687 return 0; 3407 return 0;
2688} 3408}
2689_ACEOF 3409_ACEOF
2690rm -f conftest.$ac_objext 3410if 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 3411 ac_cv_prog_cc_g=yes
2708else
2709 echo "$as_me: failed program was:" >&5
2710sed 's/^/| /' conftest.$ac_ext >&5
2711
2712
2713fi 3412fi
2714
2715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716fi 3414fi
2717
2718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719fi 3416fi
2720
2721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 ac_c_werror_flag=$ac_save_c_werror_flag 3418 ac_c_werror_flag=$ac_save_c_werror_flag
2723fi 3419fi
2724{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2725echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3421$as_echo "$ac_cv_prog_cc_g" >&6; }
2726if test "$ac_test_CFLAGS" = set; then 3422if test "$ac_test_CFLAGS" = set; then
2727 CFLAGS=$ac_save_CFLAGS 3423 CFLAGS=$ac_save_CFLAGS
2728elif test $ac_cv_prog_cc_g = yes; then 3424elif test $ac_cv_prog_cc_g = yes; then
2729 if test "$GCC" = yes; then 3425 if test "$GCC" = yes; then
2730 CFLAGS="-g -O2" 3426 CFLAGS="-g -O2"
2736 CFLAGS="-O2" 3432 CFLAGS="-O2"
2737 else 3433 else
2738 CFLAGS= 3434 CFLAGS=
2739 fi 3435 fi
2740fi 3436fi
2741{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3437{ $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; } 3438$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2743if test "${ac_cv_prog_cc_c89+set}" = set; then 3439if test "${ac_cv_prog_cc_c89+set}" = set; then :
2744 echo $ECHO_N "(cached) $ECHO_C" >&6 3440 $as_echo_n "(cached) " >&6
2745else 3441else
2746 ac_cv_prog_cc_c89=no 3442 ac_cv_prog_cc_c89=no
2747ac_save_CC=$CC 3443ac_save_CC=$CC
2748cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h. */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext 3444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h. */ 3445/* end confdefs.h. */
2754#include <stdarg.h> 3446#include <stdarg.h>
2755#include <stdio.h> 3447#include <stdio.h>
2756#include <sys/types.h> 3448#include <sys/types.h>
2757#include <sys/stat.h> 3449#include <sys/stat.h>
2804_ACEOF 3496_ACEOF
2805for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3497for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3498 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2807do 3499do
2808 CC="$ac_save_CC $ac_arg" 3500 CC="$ac_save_CC $ac_arg"
2809 rm -f conftest.$ac_objext 3501 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 3502 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 3503fi
2833
2834rm -f core conftest.err conftest.$ac_objext 3504rm -f core conftest.err conftest.$ac_objext
2835 test "x$ac_cv_prog_cc_c89" != "xno" && break 3505 test "x$ac_cv_prog_cc_c89" != "xno" && break
2836done 3506done
2837rm -f conftest.$ac_ext 3507rm -f conftest.$ac_ext
2838CC=$ac_save_CC 3508CC=$ac_save_CC
2839 3509
2840fi 3510fi
2841# AC_CACHE_VAL 3511# AC_CACHE_VAL
2842case "x$ac_cv_prog_cc_c89" in 3512case "x$ac_cv_prog_cc_c89" in
2843 x) 3513 x)
2844 { echo "$as_me:$LINENO: result: none needed" >&5 3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2845echo "${ECHO_T}none needed" >&6; } ;; 3515$as_echo "none needed" >&6; } ;;
2846 xno) 3516 xno)
2847 { echo "$as_me:$LINENO: result: unsupported" >&5 3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2848echo "${ECHO_T}unsupported" >&6; } ;; 3518$as_echo "unsupported" >&6; } ;;
2849 *) 3519 *)
2850 CC="$CC $ac_cv_prog_cc_c89" 3520 CC="$CC $ac_cv_prog_cc_c89"
2851 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2852echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3522$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2853esac 3523esac
3524if test "x$ac_cv_prog_cc_c89" != xno; then :
2854 3525
3526fi
2855 3527
2856ac_ext=c 3528ac_ext=c
2857ac_cpp='$CPP $CPPFLAGS' 3529ac_cpp='$CPP $CPPFLAGS'
2858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 if test -n "$ac_tool_prefix"; then 3543 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 3544 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2873 do 3545 do
2874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3546 # 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 3547set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2876{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3549$as_echo_n "checking for $ac_word... " >&6; }
2878if test "${ac_cv_prog_CXX+set}" = set; then 3550if test "${ac_cv_prog_CXX+set}" = set; then :
2879 echo $ECHO_N "(cached) $ECHO_C" >&6 3551 $as_echo_n "(cached) " >&6
2880else 3552else
2881 if test -n "$CXX"; then 3553 if test -n "$CXX"; then
2882 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3554 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2883else 3555else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH 3557for as_dir in $PATH
2886do 3558do
2887 IFS=$as_save_IFS 3559 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=. 3560 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do 3561 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 3562 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" 3563 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2 3565 break 2
2894 fi 3566 fi
2895done 3567done
2896done 3568 done
2897IFS=$as_save_IFS 3569IFS=$as_save_IFS
2898 3570
2899fi 3571fi
2900fi 3572fi
2901CXX=$ac_cv_prog_CXX 3573CXX=$ac_cv_prog_CXX
2902if test -n "$CXX"; then 3574if test -n "$CXX"; then
2903 { echo "$as_me:$LINENO: result: $CXX" >&5 3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2904echo "${ECHO_T}$CXX" >&6; } 3576$as_echo "$CXX" >&6; }
2905else 3577else
2906 { echo "$as_me:$LINENO: result: no" >&5 3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907echo "${ECHO_T}no" >&6; } 3579$as_echo "no" >&6; }
2908fi 3580fi
2909 3581
2910 3582
2911 test -n "$CXX" && break 3583 test -n "$CXX" && break
2912 done 3584 done
2915 ac_ct_CXX=$CXX 3587 ac_ct_CXX=$CXX
2916 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3588 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2917do 3589do
2918 # Extract the first word of "$ac_prog", so it can be a program name with args. 3590 # Extract the first word of "$ac_prog", so it can be a program name with args.
2919set dummy $ac_prog; ac_word=$2 3591set dummy $ac_prog; ac_word=$2
2920{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3593$as_echo_n "checking for $ac_word... " >&6; }
2922if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3594if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2923 echo $ECHO_N "(cached) $ECHO_C" >&6 3595 $as_echo_n "(cached) " >&6
2924else 3596else
2925 if test -n "$ac_ct_CXX"; then 3597 if test -n "$ac_ct_CXX"; then
2926 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3598 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2927else 3599else
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH 3601for as_dir in $PATH
2930do 3602do
2931 IFS=$as_save_IFS 3603 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=. 3604 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do 3605 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 3606 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" 3607 ac_cv_prog_ac_ct_CXX="$ac_prog"
2936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2 3609 break 2
2938 fi 3610 fi
2939done 3611done
2940done 3612 done
2941IFS=$as_save_IFS 3613IFS=$as_save_IFS
2942 3614
2943fi 3615fi
2944fi 3616fi
2945ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3617ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2946if test -n "$ac_ct_CXX"; then 3618if test -n "$ac_ct_CXX"; then
2947 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2948echo "${ECHO_T}$ac_ct_CXX" >&6; } 3620$as_echo "$ac_ct_CXX" >&6; }
2949else 3621else
2950 { echo "$as_me:$LINENO: result: no" >&5 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951echo "${ECHO_T}no" >&6; } 3623$as_echo "no" >&6; }
2952fi 3624fi
2953 3625
2954 3626
2955 test -n "$ac_ct_CXX" && break 3627 test -n "$ac_ct_CXX" && break
2956done 3628done
2958 if test "x$ac_ct_CXX" = x; then 3630 if test "x$ac_ct_CXX" = x; then
2959 CXX="g++" 3631 CXX="g++"
2960 else 3632 else
2961 case $cross_compiling:$ac_tool_warned in 3633 case $cross_compiling:$ac_tool_warned in
2962yes:) 3634yes:)
2963{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3635{ $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 3636$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 ;; 3637ac_tool_warned=yes ;;
2970esac 3638esac
2971 CXX=$ac_ct_CXX 3639 CXX=$ac_ct_CXX
2972 fi 3640 fi
2973fi 3641fi
2974 3642
2975 fi 3643 fi
2976fi 3644fi
2977# Provide some information about the compiler. 3645# Provide some information about the compiler.
2978echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3646$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2979ac_compiler=`set X $ac_compile; echo $2` 3647set X $ac_compile
3648ac_compiler=$2
3649for ac_option in --version -v -V -qversion; do
2980{ (ac_try="$ac_compiler --version >&5" 3650 { { ac_try="$ac_compiler $ac_option >&5"
2981case "(($ac_try" in 3651case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;; 3653 *) ac_try_echo=$ac_try;;
2984esac 3654esac
2985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2986 (eval "$ac_compiler --version >&5") 2>&5 3656$as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2987 ac_status=$? 3658 ac_status=$?
3659 if test -s conftest.err; then
3660 sed '10a\
3661... rest of stderr output deleted ...
3662 10q' conftest.err >conftest.er1
3663 cat conftest.er1 >&5
3664 fi
3665 rm -f conftest.er1 conftest.err
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989 (exit $ac_status); } 3667 test $ac_status = 0; }
2990{ (ac_try="$ac_compiler -v >&5" 3668done
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 3669
3011{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3670{ $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; } 3671$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3013if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3672if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3014 echo $ECHO_N "(cached) $ECHO_C" >&6 3673 $as_echo_n "(cached) " >&6
3015else 3674else
3016 cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h. */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext 3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h. */ 3676/* end confdefs.h. */
3022 3677
3023int 3678int
3024main () 3679main ()
3025{ 3680{
3029 3684
3030 ; 3685 ;
3031 return 0; 3686 return 0;
3032} 3687}
3033_ACEOF 3688_ACEOF
3034rm -f conftest.$ac_objext 3689if 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 3690 ac_compiler_gnu=yes
3052else 3691else
3053 echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 ac_compiler_gnu=no 3692 ac_compiler_gnu=no
3057fi 3693fi
3058
3059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3695ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3061 3696
3062fi 3697fi
3063{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3064echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3699$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3065GXX=`test $ac_compiler_gnu = yes && echo yes` 3700if test $ac_compiler_gnu = yes; then
3701 GXX=yes
3702else
3703 GXX=
3704fi
3066ac_test_CXXFLAGS=${CXXFLAGS+set} 3705ac_test_CXXFLAGS=${CXXFLAGS+set}
3067ac_save_CXXFLAGS=$CXXFLAGS 3706ac_save_CXXFLAGS=$CXXFLAGS
3068{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3069echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3708$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3070if test "${ac_cv_prog_cxx_g+set}" = set; then 3709if test "${ac_cv_prog_cxx_g+set}" = set; then :
3071 echo $ECHO_N "(cached) $ECHO_C" >&6 3710 $as_echo_n "(cached) " >&6
3072else 3711else
3073 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3712 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3074 ac_cxx_werror_flag=yes 3713 ac_cxx_werror_flag=yes
3075 ac_cv_prog_cxx_g=no 3714 ac_cv_prog_cxx_g=no
3076 CXXFLAGS="-g" 3715 CXXFLAGS="-g"
3077 cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h. */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext 3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h. */ 3717/* end confdefs.h. */
3083 3718
3084int 3719int
3085main () 3720main ()
3086{ 3721{
3087 3722
3088 ; 3723 ;
3089 return 0; 3724 return 0;
3090} 3725}
3091_ACEOF 3726_ACEOF
3092rm -f conftest.$ac_objext 3727if 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 3728 ac_cv_prog_cxx_g=yes
3110else 3729else
3111 echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 CXXFLAGS="" 3730 CXXFLAGS=""
3115 cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h. */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext 3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h. */ 3732/* end confdefs.h. */
3121 3733
3122int 3734int
3123main () 3735main ()
3124{ 3736{
3125 3737
3126 ; 3738 ;
3127 return 0; 3739 return 0;
3128} 3740}
3129_ACEOF 3741_ACEOF
3130rm -f conftest.$ac_objext 3742if 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 3743
3744else
3152 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3745 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3153 CXXFLAGS="-g" 3746 CXXFLAGS="-g"
3154 cat >conftest.$ac_ext <<_ACEOF
3155/* confdefs.h. */
3156_ACEOF
3157cat confdefs.h >>conftest.$ac_ext 3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158cat >>conftest.$ac_ext <<_ACEOF
3159/* end confdefs.h. */ 3748/* end confdefs.h. */
3160 3749
3161int 3750int
3162main () 3751main ()
3163{ 3752{
3164 3753
3165 ; 3754 ;
3166 return 0; 3755 return 0;
3167} 3756}
3168_ACEOF 3757_ACEOF
3169rm -f conftest.$ac_objext 3758if 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 3759 ac_cv_prog_cxx_g=yes
3187else
3188 echo "$as_me: failed program was:" >&5
3189sed 's/^/| /' conftest.$ac_ext >&5
3190
3191
3192fi 3760fi
3193
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195fi 3762fi
3196
3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198fi 3764fi
3199
3200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3766 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3202fi 3767fi
3203{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3204echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3769$as_echo "$ac_cv_prog_cxx_g" >&6; }
3205if test "$ac_test_CXXFLAGS" = set; then 3770if test "$ac_test_CXXFLAGS" = set; then
3206 CXXFLAGS=$ac_save_CXXFLAGS 3771 CXXFLAGS=$ac_save_CXXFLAGS
3207elif test $ac_cv_prog_cxx_g = yes; then 3772elif test $ac_cv_prog_cxx_g = yes; then
3208 if test "$GXX" = yes; then 3773 if test "$GXX" = yes; then
3209 CXXFLAGS="-g -O2" 3774 CXXFLAGS="-g -O2"
3226ac_ext=c 3791ac_ext=c
3227ac_cpp='$CPP $CPPFLAGS' 3792ac_cpp='$CPP $CPPFLAGS'
3228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230ac_compiler_gnu=$ac_cv_c_compiler_gnu 3795ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3796{ $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; } 3797$as_echo_n "checking how to run the C preprocessor... " >&6; }
3233# On Suns, sometimes $CPP names a directory. 3798# On Suns, sometimes $CPP names a directory.
3234if test -n "$CPP" && test -d "$CPP"; then 3799if test -n "$CPP" && test -d "$CPP"; then
3235 CPP= 3800 CPP=
3236fi 3801fi
3237if test -z "$CPP"; then 3802if test -z "$CPP"; then
3238 if test "${ac_cv_prog_CPP+set}" = set; then 3803 if test "${ac_cv_prog_CPP+set}" = set; then :
3239 echo $ECHO_N "(cached) $ECHO_C" >&6 3804 $as_echo_n "(cached) " >&6
3240else 3805else
3241 # Double quotes because CPP needs to be expanded 3806 # Double quotes because CPP needs to be expanded
3242 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3807 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3243 do 3808 do
3244 ac_preproc_ok=false 3809 ac_preproc_ok=false
3248 # with a fresh cross-compiler works. 3813 # with a fresh cross-compiler works.
3249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3250 # <limits.h> exists even on freestanding compilers. 3815 # <limits.h> exists even on freestanding compilers.
3251 # On the NeXT, cc -E runs the code through the compiler's parser, 3816 # 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. 3817 # 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 3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
3258/* end confdefs.h. */ 3819/* end confdefs.h. */
3259#ifdef __STDC__ 3820#ifdef __STDC__
3260# include <limits.h> 3821# include <limits.h>
3261#else 3822#else
3262# include <assert.h> 3823# include <assert.h>
3263#endif 3824#endif
3264 Syntax error 3825 Syntax error
3265_ACEOF 3826_ACEOF
3266if { (ac_try="$ac_cpp conftest.$ac_ext" 3827if 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 3828
3829else
3287 # Broken: fails on valid input. 3830 # Broken: fails on valid input.
3288continue 3831continue
3289fi 3832fi
3290
3291rm -f conftest.err conftest.$ac_ext 3833rm -f conftest.err conftest.$ac_ext
3292 3834
3293 # OK, works on sane cases. Now check whether nonexistent headers 3835 # OK, works on sane cases. Now check whether nonexistent headers
3294 # can be detected and how. 3836 # can be detected and how.
3295 cat >conftest.$ac_ext <<_ACEOF
3296/* confdefs.h. */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext 3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
3300/* end confdefs.h. */ 3838/* end confdefs.h. */
3301#include <ac_nonexistent.h> 3839#include <ac_nonexistent.h>
3302_ACEOF 3840_ACEOF
3303if { (ac_try="$ac_cpp conftest.$ac_ext" 3841if 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. 3842 # Broken: success on invalid input.
3320continue 3843continue
3321else 3844else
3322 echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
3325 # Passes both tests. 3845 # Passes both tests.
3326ac_preproc_ok=: 3846ac_preproc_ok=:
3327break 3847break
3328fi 3848fi
3329
3330rm -f conftest.err conftest.$ac_ext 3849rm -f conftest.err conftest.$ac_ext
3331 3850
3332done 3851done
3333# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3852# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334rm -f conftest.err conftest.$ac_ext 3853rm -f conftest.err conftest.$ac_ext
3335if $ac_preproc_ok; then 3854if $ac_preproc_ok; then :
3336 break 3855 break
3337fi 3856fi
3338 3857
3339 done 3858 done
3340 ac_cv_prog_CPP=$CPP 3859 ac_cv_prog_CPP=$CPP
3342fi 3861fi
3343 CPP=$ac_cv_prog_CPP 3862 CPP=$ac_cv_prog_CPP
3344else 3863else
3345 ac_cv_prog_CPP=$CPP 3864 ac_cv_prog_CPP=$CPP
3346fi 3865fi
3347{ echo "$as_me:$LINENO: result: $CPP" >&5 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3348echo "${ECHO_T}$CPP" >&6; } 3867$as_echo "$CPP" >&6; }
3349ac_preproc_ok=false 3868ac_preproc_ok=false
3350for ac_c_preproc_warn_flag in '' yes 3869for ac_c_preproc_warn_flag in '' yes
3351do 3870do
3352 # Use a header file that comes with gcc, so configuring glibc 3871 # Use a header file that comes with gcc, so configuring glibc
3353 # with a fresh cross-compiler works. 3872 # with a fresh cross-compiler works.
3354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355 # <limits.h> exists even on freestanding compilers. 3874 # <limits.h> exists even on freestanding compilers.
3356 # On the NeXT, cc -E runs the code through the compiler's parser, 3875 # 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. 3876 # 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 3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h. */ 3878/* end confdefs.h. */
3364#ifdef __STDC__ 3879#ifdef __STDC__
3365# include <limits.h> 3880# include <limits.h>
3366#else 3881#else
3367# include <assert.h> 3882# include <assert.h>
3368#endif 3883#endif
3369 Syntax error 3884 Syntax error
3370_ACEOF 3885_ACEOF
3371if { (ac_try="$ac_cpp conftest.$ac_ext" 3886if 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 3887
3888else
3392 # Broken: fails on valid input. 3889 # Broken: fails on valid input.
3393continue 3890continue
3394fi 3891fi
3395
3396rm -f conftest.err conftest.$ac_ext 3892rm -f conftest.err conftest.$ac_ext
3397 3893
3398 # OK, works on sane cases. Now check whether nonexistent headers 3894 # OK, works on sane cases. Now check whether nonexistent headers
3399 # can be detected and how. 3895 # can be detected and how.
3400 cat >conftest.$ac_ext <<_ACEOF
3401/* confdefs.h. */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext 3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
3405/* end confdefs.h. */ 3897/* end confdefs.h. */
3406#include <ac_nonexistent.h> 3898#include <ac_nonexistent.h>
3407_ACEOF 3899_ACEOF
3408if { (ac_try="$ac_cpp conftest.$ac_ext" 3900if 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. 3901 # Broken: success on invalid input.
3425continue 3902continue
3426else 3903else
3427 echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 # Passes both tests. 3904 # Passes both tests.
3431ac_preproc_ok=: 3905ac_preproc_ok=:
3432break 3906break
3433fi 3907fi
3434
3435rm -f conftest.err conftest.$ac_ext 3908rm -f conftest.err conftest.$ac_ext
3436 3909
3437done 3910done
3438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439rm -f conftest.err conftest.$ac_ext 3912rm -f conftest.err conftest.$ac_ext
3440if $ac_preproc_ok; then 3913if $ac_preproc_ok; then :
3441 : 3914
3442else 3915else
3443 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444See \`config.log' for more details." >&5 3917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3918as_fn_error "C preprocessor \"$CPP\" fails sanity check
3446See \`config.log' for more details." >&2;} 3919See \`config.log' for more details." "$LINENO" 5; }
3447 { (exit 1); exit 1; }; }
3448fi 3920fi
3449 3921
3450ac_ext=c 3922ac_ext=c
3451ac_cpp='$CPP $CPPFLAGS' 3923ac_cpp='$CPP $CPPFLAGS'
3452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3936# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3465# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3937# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3466# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3938# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3467# OS/2's system install, which has a completely different semantic 3939# OS/2's system install, which has a completely different semantic
3468# ./install, which can be erroneously created by make from ./install.sh. 3940# ./install, which can be erroneously created by make from ./install.sh.
3941# Reject install programs that cannot install multiple files.
3469{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3942{ $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; } 3943$as_echo_n "checking for a BSD-compatible install... " >&6; }
3471if test -z "$INSTALL"; then 3944if test -z "$INSTALL"; then
3472if test "${ac_cv_path_install+set}" = set; then 3945if test "${ac_cv_path_install+set}" = set; then :
3473 echo $ECHO_N "(cached) $ECHO_C" >&6 3946 $as_echo_n "(cached) " >&6
3474else 3947else
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476for as_dir in $PATH 3949for as_dir in $PATH
3477do 3950do
3478 IFS=$as_save_IFS 3951 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=. 3952 test -z "$as_dir" && as_dir=.
3480 # Account for people who put trailing slashes in PATH elements. 3953 # Account for people who put trailing slashes in PATH elements.
3481case $as_dir/ in 3954case $as_dir/ in #((
3482 ./ | .// | /cC/* | \ 3955 ./ | .// | /[cC]/* | \
3483 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3956 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3484 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3957 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3485 /usr/ucb/* ) ;; 3958 /usr/ucb/* ) ;;
3486 *) 3959 *)
3487 # OSF1 and SCO ODT 3.0 have their own names for install. 3960 # 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 3961 # Don't use installbsd from OSF since it installs stuff as root
3489 # by default. 3962 # by default.
3497 elif test $ac_prog = install && 3970 elif test $ac_prog = install &&
3498 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3971 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. 3972 # program-specific install script used by HP pwplus--don't use.
3500 : 3973 :
3501 else 3974 else
3975 rm -rf conftest.one conftest.two conftest.dir
3976 echo one > conftest.one
3977 echo two > conftest.two
3978 mkdir conftest.dir
3979 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3980 test -s conftest.one && test -s conftest.two &&
3981 test -s conftest.dir/conftest.one &&
3982 test -s conftest.dir/conftest.two
3983 then
3502 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3984 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3503 break 3 3985 break 3
3986 fi
3504 fi 3987 fi
3505 fi 3988 fi
3506 done 3989 done
3507 done 3990 done
3508 ;; 3991 ;;
3509esac 3992esac
3993
3510done 3994 done
3511IFS=$as_save_IFS 3995IFS=$as_save_IFS
3512 3996
3997rm -rf conftest.one conftest.two conftest.dir
3513 3998
3514fi 3999fi
3515 if test "${ac_cv_path_install+set}" = set; then 4000 if test "${ac_cv_path_install+set}" = set; then
3516 INSTALL=$ac_cv_path_install 4001 INSTALL=$ac_cv_path_install
3517 else 4002 else
3520 # break other packages using the cache if that directory is 4005 # break other packages using the cache if that directory is
3521 # removed, or if the value is a relative name. 4006 # removed, or if the value is a relative name.
3522 INSTALL=$ac_install_sh 4007 INSTALL=$ac_install_sh
3523 fi 4008 fi
3524fi 4009fi
3525{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3526echo "${ECHO_T}$INSTALL" >&6; } 4011$as_echo "$INSTALL" >&6; }
3527 4012
3528# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4013# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3529# It thinks the first close brace ends the variable substitution. 4014# It thinks the first close brace ends the variable substitution.
3530test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4015test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3531 4016
3534test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4019test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3535 4020
3536 4021
3537 4022
3538 4023
3539{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4024{ $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; } 4025$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3541if test "${ac_cv_path_GREP+set}" = set; then 4026if test "${ac_cv_path_GREP+set}" = set; then :
3542 echo $ECHO_N "(cached) $ECHO_C" >&6 4027 $as_echo_n "(cached) " >&6
3543else 4028else
3544 # Extract the first word of "grep ggrep" to use in msg output
3545if test -z "$GREP"; then 4029 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 4030 ac_path_GREP_found=false
3551# Loop through the user's path and test for each of PROGNAME-LIST 4031 # Loop through the user's path and test for each of PROGNAME-LIST
3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4033for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3554do 4034do
3555 IFS=$as_save_IFS 4035 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=. 4036 test -z "$as_dir" && as_dir=.
3557 for ac_prog in grep ggrep; do 4037 for ac_prog in grep ggrep; do
3558 for ac_exec_ext in '' $ac_executable_extensions; do 4038 for ac_exec_ext in '' $ac_executable_extensions; do
3559 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4039 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3560 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4040 { 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. 4041# Check for GNU ac_path_GREP and select it if it is found.
3562 # Check for GNU $ac_path_GREP 4042 # Check for GNU $ac_path_GREP
3563case `"$ac_path_GREP" --version 2>&1` in 4043case `"$ac_path_GREP" --version 2>&1` in
3564*GNU*) 4044*GNU*)
3565 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4045 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3566*) 4046*)
3567 ac_count=0 4047 ac_count=0
3568 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4048 $as_echo_n 0123456789 >"conftest.in"
3569 while : 4049 while :
3570 do 4050 do
3571 cat "conftest.in" "conftest.in" >"conftest.tmp" 4051 cat "conftest.in" "conftest.in" >"conftest.tmp"
3572 mv "conftest.tmp" "conftest.in" 4052 mv "conftest.tmp" "conftest.in"
3573 cp "conftest.in" "conftest.nl" 4053 cp "conftest.in" "conftest.nl"
3574 echo 'GREP' >> "conftest.nl" 4054 $as_echo 'GREP' >> "conftest.nl"
3575 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4055 "$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 4056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3577 ac_count=`expr $ac_count + 1` 4057 as_fn_arith $ac_count + 1 && ac_count=$as_val
3578 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4058 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 4059 # Best one so far, save it but keep looking for a better one
3580 ac_cv_path_GREP="$ac_path_GREP" 4060 ac_cv_path_GREP="$ac_path_GREP"
3581 ac_path_GREP_max=$ac_count 4061 ac_path_GREP_max=$ac_count
3582 fi 4062 fi
3584 test $ac_count -gt 10 && break 4064 test $ac_count -gt 10 && break
3585 done 4065 done
3586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3587esac 4067esac
3588 4068
3589
3590 $ac_path_GREP_found && break 3 4069 $ac_path_GREP_found && break 3
4070 done
3591 done 4071 done
3592done 4072 done
3593
3594done
3595IFS=$as_save_IFS 4073IFS=$as_save_IFS
3596
3597
3598fi
3599
3600GREP="$ac_cv_path_GREP"
3601if test -z "$GREP"; then 4074 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 4075 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;} 4076 fi
3604 { (exit 1); exit 1; }; }
3605fi
3606
3607else 4077else
3608 ac_cv_path_GREP=$GREP 4078 ac_cv_path_GREP=$GREP
3609fi 4079fi
3610 4080
3611
3612fi 4081fi
3613{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3614echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4083$as_echo "$ac_cv_path_GREP" >&6; }
3615 GREP="$ac_cv_path_GREP" 4084 GREP="$ac_cv_path_GREP"
3616 4085
3617 4086
3618{ echo "$as_me:$LINENO: checking for egrep" >&5 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3619echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4088$as_echo_n "checking for egrep... " >&6; }
3620if test "${ac_cv_path_EGREP+set}" = set; then 4089if test "${ac_cv_path_EGREP+set}" = set; then :
3621 echo $ECHO_N "(cached) $ECHO_C" >&6 4090 $as_echo_n "(cached) " >&6
3622else 4091else
3623 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4092 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3624 then ac_cv_path_EGREP="$GREP -E" 4093 then ac_cv_path_EGREP="$GREP -E"
3625 else 4094 else
3626 # Extract the first word of "egrep" to use in msg output
3627if test -z "$EGREP"; then 4095 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 4096 ac_path_EGREP_found=false
3633# Loop through the user's path and test for each of PROGNAME-LIST 4097 # Loop through the user's path and test for each of PROGNAME-LIST
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4099for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3636do 4100do
3637 IFS=$as_save_IFS 4101 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=. 4102 test -z "$as_dir" && as_dir=.
3639 for ac_prog in egrep; do 4103 for ac_prog in egrep; do
3640 for ac_exec_ext in '' $ac_executable_extensions; do 4104 for ac_exec_ext in '' $ac_executable_extensions; do
3641 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4105 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3642 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4106 { 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. 4107# Check for GNU ac_path_EGREP and select it if it is found.
3644 # Check for GNU $ac_path_EGREP 4108 # Check for GNU $ac_path_EGREP
3645case `"$ac_path_EGREP" --version 2>&1` in 4109case `"$ac_path_EGREP" --version 2>&1` in
3646*GNU*) 4110*GNU*)
3647 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4111 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3648*) 4112*)
3649 ac_count=0 4113 ac_count=0
3650 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4114 $as_echo_n 0123456789 >"conftest.in"
3651 while : 4115 while :
3652 do 4116 do
3653 cat "conftest.in" "conftest.in" >"conftest.tmp" 4117 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in" 4118 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl" 4119 cp "conftest.in" "conftest.nl"
3656 echo 'EGREP' >> "conftest.nl" 4120 $as_echo 'EGREP' >> "conftest.nl"
3657 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4121 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659 ac_count=`expr $ac_count + 1` 4123 as_fn_arith $ac_count + 1 && ac_count=$as_val
3660 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4124 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 4125 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_EGREP="$ac_path_EGREP" 4126 ac_cv_path_EGREP="$ac_path_EGREP"
3663 ac_path_EGREP_max=$ac_count 4127 ac_path_EGREP_max=$ac_count
3664 fi 4128 fi
3666 test $ac_count -gt 10 && break 4130 test $ac_count -gt 10 && break
3667 done 4131 done
3668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3669esac 4133esac
3670 4134
3671
3672 $ac_path_EGREP_found && break 3 4135 $ac_path_EGREP_found && break 3
4136 done
3673 done 4137 done
4138 done
4139IFS=$as_save_IFS
4140 if test -z "$ac_cv_path_EGREP"; then
4141 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4142 fi
4143else
4144 ac_cv_path_EGREP=$EGREP
4145fi
4146
4147 fi
4148fi
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4150$as_echo "$ac_cv_path_EGREP" >&6; }
4151 EGREP="$ac_cv_path_EGREP"
4152
4153
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4155$as_echo_n "checking for ANSI C header files... " >&6; }
4156if test "${ac_cv_header_stdc+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
4158else
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160/* end confdefs.h. */
4161#include <stdlib.h>
4162#include <stdarg.h>
4163#include <string.h>
4164#include <float.h>
4165
4166int
4167main ()
4168{
4169
4170 ;
4171 return 0;
4172}
4173_ACEOF
4174if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_cv_header_stdc=yes
4176else
4177 ac_cv_header_stdc=no
4178fi
4179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180
4181if test $ac_cv_header_stdc = yes; then
4182 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184/* end confdefs.h. */
4185#include <string.h>
4186
4187_ACEOF
4188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4189 $EGREP "memchr" >/dev/null 2>&1; then :
4190
4191else
4192 ac_cv_header_stdc=no
4193fi
4194rm -f conftest*
4195
4196fi
4197
4198if test $ac_cv_header_stdc = yes; then
4199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201/* end confdefs.h. */
4202#include <stdlib.h>
4203
4204_ACEOF
4205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206 $EGREP "free" >/dev/null 2>&1; then :
4207
4208else
4209 ac_cv_header_stdc=no
4210fi
4211rm -f conftest*
4212
4213fi
4214
4215if test $ac_cv_header_stdc = yes; then
4216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4217 if test "$cross_compiling" = yes; then :
4218 :
4219else
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221/* end confdefs.h. */
4222#include <ctype.h>
4223#include <stdlib.h>
4224#if ((' ' & 0x0FF) == 0x020)
4225# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4226# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4227#else
4228# define ISLOWER(c) \
4229 (('a' <= (c) && (c) <= 'i') \
4230 || ('j' <= (c) && (c) <= 'r') \
4231 || ('s' <= (c) && (c) <= 'z'))
4232# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4233#endif
4234
4235#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4236int
4237main ()
4238{
4239 int i;
4240 for (i = 0; i < 256; i++)
4241 if (XOR (islower (i), ISLOWER (i))
4242 || toupper (i) != TOUPPER (i))
4243 return 2;
4244 return 0;
4245}
4246_ACEOF
4247if ac_fn_c_try_run "$LINENO"; then :
4248
4249else
4250 ac_cv_header_stdc=no
4251fi
4252rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4253 conftest.$ac_objext conftest.beam conftest.$ac_ext
4254fi
4255
4256fi
4257fi
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4259$as_echo "$ac_cv_header_stdc" >&6; }
4260if test $ac_cv_header_stdc = yes; then
4261
4262$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4263
4264fi
4265
4266# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4267for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4268 inttypes.h stdint.h unistd.h
4269do :
4270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4272"
4273eval as_val=\$$as_ac_Header
4274 if test "x$as_val" = x""yes; then :
4275 cat >>confdefs.h <<_ACEOF
4276#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4277_ACEOF
4278
4279fi
4280
3674done 4281done
3675 4282
3676done
3677IFS=$as_save_IFS
3678 4283
3679 4284
3680fi 4285 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3681 4286if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3682EGREP="$ac_cv_path_EGREP" 4287 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 4288else
3690 ac_cv_path_EGREP=$EGREP 4289 MINIX=
3691fi 4290fi
3692 4291
3693 4292
4293 if test "$MINIX" = yes; then
4294
4295$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4296
4297
4298$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4299
4300
4301$as_echo "#define _MINIX 1" >>confdefs.h
4302
3694 fi 4303 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 4304
3700 4305
3701 4306 { $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 4307$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3703echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } 4308if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3704cat >conftest.$ac_ext <<_ACEOF 4309 $as_echo_n "(cached) " >&6
3705/* confdefs.h. */ 4310else
3706_ACEOF
3707cat confdefs.h >>conftest.$ac_ext 4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708cat >>conftest.$ac_ext <<_ACEOF
3709/* end confdefs.h. */ 4312/* end confdefs.h. */
3710#ifdef _AIX
3711 yes
3712#endif
3713 4313
3714_ACEOF 4314# define __EXTENSIONS__ 1
3715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4315 $ac_includes_default
3716 $EGREP "yes" >/dev/null 2>&1; then 4316int
3717 { echo "$as_me:$LINENO: result: yes" >&5 4317main ()
3718echo "${ECHO_T}yes" >&6; } 4318{
3719cat >>confdefs.h <<\_ACEOF
3720#define _ALL_SOURCE 1
3721_ACEOF
3722 4319
4320 ;
4321 return 0;
4322}
4323_ACEOF
4324if ac_fn_c_try_compile "$LINENO"; then :
4325 ac_cv_safe_to_define___extensions__=yes
3723else 4326else
3724 { echo "$as_me:$LINENO: result: no" >&5 4327 ac_cv_safe_to_define___extensions__=no
3725echo "${ECHO_T}no" >&6; }
3726fi 4328fi
3727rm -f conftest* 4329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330fi
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4332$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4333 test $ac_cv_safe_to_define___extensions__ = yes &&
4334 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3728 4335
4336 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3729 4337
4338 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4339
4340 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4341
4342 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4343
4344
4345
4346
3730{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3731echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 4348$as_echo_n "checking for library containing strerror... " >&6; }
3732if test "${ac_cv_search_strerror+set}" = set; then 4349if test "${ac_cv_search_strerror+set}" = set; then :
3733 echo $ECHO_N "(cached) $ECHO_C" >&6 4350 $as_echo_n "(cached) " >&6
3734else 4351else
3735 ac_func_search_save_LIBS=$LIBS 4352 ac_func_search_save_LIBS=$LIBS
3736cat >conftest.$ac_ext <<_ACEOF
3737/* confdefs.h. */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext 4353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
3741/* end confdefs.h. */ 4354/* end confdefs.h. */
3742 4355
3743/* Override any GCC internal prototype to avoid an error. 4356/* Override any GCC internal prototype to avoid an error.
3744 Use char because int might match the return type of a GCC 4357 Use char because int might match the return type of a GCC
3745 builtin and then its argument prototype would still apply. */ 4358 builtin and then its argument prototype would still apply. */
3760 ac_res="none required" 4373 ac_res="none required"
3761 else 4374 else
3762 ac_res=-l$ac_lib 4375 ac_res=-l$ac_lib
3763 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3764 fi 4377 fi
3765 rm -f conftest.$ac_objext conftest$ac_exeext 4378 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 4379 ac_cv_search_strerror=$ac_res
3784else
3785 echo "$as_me: failed program was:" >&5
3786sed 's/^/| /' conftest.$ac_ext >&5
3787
3788
3789fi 4380fi
3790
3791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4381rm -f core conftest.err conftest.$ac_objext \
3792 conftest$ac_exeext 4382 conftest$ac_exeext
3793 if test "${ac_cv_search_strerror+set}" = set; then 4383 if test "${ac_cv_search_strerror+set}" = set; then :
3794 break 4384 break
3795fi 4385fi
3796done 4386done
3797if test "${ac_cv_search_strerror+set}" = set; then 4387if test "${ac_cv_search_strerror+set}" = set; then :
3798 : 4388
3799else 4389else
3800 ac_cv_search_strerror=no 4390 ac_cv_search_strerror=no
3801fi 4391fi
3802rm conftest.$ac_ext 4392rm conftest.$ac_ext
3803LIBS=$ac_func_search_save_LIBS 4393LIBS=$ac_func_search_save_LIBS
3804fi 4394fi
3805{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 4395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3806echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 4396$as_echo "$ac_cv_search_strerror" >&6; }
3807ac_res=$ac_cv_search_strerror 4397ac_res=$ac_cv_search_strerror
3808if test "$ac_res" != no; then 4398if test "$ac_res" != no; then :
3809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3810 4400
3811fi 4401fi
3812 4402
3813ac_ext=cpp 4403ac_ext=cpp
3816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3818 4408
3819 4409
3820if test x$GCC = xyes && test x$GXX = xyes; then 4410if test x$GCC = xyes && test x$GXX = xyes; then
3821 { echo "$as_me:$LINENO: checking for working libsupc++" >&5 4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
3822echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6; } 4412$as_echo_n "checking for working libsupc++... " >&6; }
3823 save_CXX="$CXX" 4413 save_CXX="$CXX"
3824 save_LIBS="$LIBS" 4414 save_LIBS="$LIBS"
3825 CXX="$CC" 4415 CXX="$CC"
3826 LIBS="$LIBS -lsupc++" 4416 LIBS="$LIBS -lsupc++"
3827 LINKER="$CC" 4417 LINKER="$CC"
3828 4418
3829cat >conftest.$ac_ext <<_ACEOF
3830/* confdefs.h. */
3831_ACEOF
3832cat confdefs.h >>conftest.$ac_ext 4419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833cat >>conftest.$ac_ext <<_ACEOF
3834/* end confdefs.h. */ 4420/* end confdefs.h. */
3835struct test { }; void f() try { throw new test; } catch (...) { throw; } 4421struct test { }; void f() try { throw new test; } catch (...) { throw; }
3836int 4422int
3837main () 4423main ()
3838{ 4424{
3839 4425
3840 ; 4426 ;
3841 return 0; 4427 return 0;
3842} 4428}
3843_ACEOF 4429_ACEOF
3844rm -f conftest.$ac_objext conftest$ac_exeext 4430if 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 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
3863echo "${ECHO_T}ok" >&6; } 4432$as_echo "ok" >&6; }
3864else 4433else
3865 echo "$as_me: failed program was:" >&5
3866sed 's/^/| /' conftest.$ac_ext >&5
3867 4434
3868
3869 { echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5 4435 { $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; } 4436$as_echo "no, making everything bigger and slower" >&6; }
3871 LIBS="$save_LIBS" 4437 LIBS="$save_LIBS"
3872 LINKER="$save_CXX" 4438 LINKER="$save_CXX"
3873 4439
3874 4440
3875fi 4441fi
3876
3877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4442rm -f core conftest.err conftest.$ac_objext \
3878 conftest$ac_exeext conftest.$ac_ext 4443 conftest$ac_exeext conftest.$ac_ext
3879 CXX="$save_CXX" 4444 CXX="$save_CXX"
3880fi 4445fi
3881LINKER=$LINKER 4446LINKER=$LINKER
3882 4447
3883 4448
3884if test -z "$orig_CXXFLAGS"; then 4449if test -z "$orig_CXXFLAGS"; then
3885 if test x$GCC = xyes && test "x$GXX" = xyes; then 4450 if test x$GCC = xyes && test "x$GXX" = xyes; then
3886 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 4451 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 4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */ 4453/* end confdefs.h. */
3893 4454
3894int 4455int
3895main () 4456main ()
3896{ 4457{
3897 4458
3898 ; 4459 ;
3899 return 0; 4460 return 0;
3900} 4461}
3901_ACEOF 4462_ACEOF
3902rm -f conftest.$ac_objext 4463if 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 4464
4465else
3924 CXXFLAGS="-g -O3" 4466 CXXFLAGS="-g -O3"
3925fi 4467fi
3926
3927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 else 4469 else
3929 CXXFLAGS="-O" 4470 CXXFLAGS="-O"
3930 fi 4471 fi
3931 CFLAGS="$CXXFLAGS" 4472 CFLAGS="$CXXFLAGS"
3932fi 4473fi
3933 4474
3934
3935cat >>confdefs.h <<\_ACEOF
3936#define _GNU_SOURCE 1
3937_ACEOF
3938
3939
3940case $host in 4475case $host in
3941 *-*-solaris* ) 4476 *-*-solaris* )
3942 4477
3943cat >>confdefs.h <<\_ACEOF 4478$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 4479
3957 ;; 4480 ;;
3958esac 4481esac
3959 4482
3960 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
3961{ echo "$as_me:$LINENO: checking for setlocale" >&5 4484$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 4485if test "${ac_cv_search_setlocale+set}" = set; then :
3964 echo $ECHO_N "(cached) $ECHO_C" >&6 4486 $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 4487else
3984# include <assert.h> 4488 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 4489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056cat >>conftest.$ac_ext <<_ACEOF
4057/* end confdefs.h. */ 4490/* end confdefs.h. */
4058 4491
4059/* Override any GCC internal prototype to avoid an error. 4492/* Override any GCC internal prototype to avoid an error.
4060 Use char because int might match the return type of a GCC 4493 Use char because int might match the return type of a GCC
4061 builtin and then its argument prototype would still apply. */ 4494 builtin and then its argument prototype would still apply. */
4069return setlocale (); 4502return setlocale ();
4070 ; 4503 ;
4071 return 0; 4504 return 0;
4072} 4505}
4073_ACEOF 4506_ACEOF
4074rm -f conftest.$ac_objext conftest$ac_exeext 4507for ac_lib in '' xpg4; do
4075if { (ac_try="$ac_link" 4508 if test -z "$ac_lib"; then
4076case "(($ac_try" in 4509 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 4510 else
4094 echo "$as_me: failed program was:" >&5 4511 ac_res=-l$ac_lib
4095sed 's/^/| /' conftest.$ac_ext >&5 4512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4096 4513 fi
4097 ac_cv_lib_xpg4_setlocale=no 4514 if ac_fn_cxx_try_link "$LINENO"; then :
4515 ac_cv_search_setlocale=$ac_res
4098fi 4516fi
4099
4100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4517rm -f core conftest.err conftest.$ac_objext \
4101 conftest$ac_exeext conftest.$ac_ext 4518 conftest$ac_exeext
4102LIBS=$ac_check_lib_save_LIBS 4519 if test "${ac_cv_search_setlocale+set}" = set; then :
4520 break
4103fi 4521fi
4522done
4523if test "${ac_cv_search_setlocale+set}" = set; then :
4524
4525else
4526 ac_cv_search_setlocale=no
4527fi
4528rm conftest.$ac_ext
4529LIBS=$ac_func_search_save_LIBS
4530fi
4104{ echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 4531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5
4105echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; } 4532$as_echo "$ac_cv_search_setlocale" >&6; }
4106if test $ac_cv_lib_xpg4_setlocale = yes; then 4533ac_res=$ac_cv_search_setlocale
4107 LIBS="$LIBS -lxpg4" 4534if test "$ac_res" != no; then :
4108fi 4535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4109 4536
4110fi 4537fi
4111 4538
4112 4539
4113{ echo "$as_me:$LINENO: checking for gethostbyname" >&5 4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4114echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 4541$as_echo_n "checking for library containing gethostbyname... " >&6; }
4115if test "${ac_cv_func_gethostbyname+set}" = set; then 4542if test "${ac_cv_search_gethostbyname+set}" = set; then :
4116 echo $ECHO_N "(cached) $ECHO_C" >&6 4543 $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 4544else
4136# include <assert.h> 4545 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 4546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h. */ 4547/* end confdefs.h. */
4210 4548
4211/* Override any GCC internal prototype to avoid an error. 4549/* Override any GCC internal prototype to avoid an error.
4212 Use char because int might match the return type of a GCC 4550 Use char because int might match the return type of a GCC
4213 builtin and then its argument prototype would still apply. */ 4551 builtin and then its argument prototype would still apply. */
4221return gethostbyname (); 4559return gethostbyname ();
4222 ; 4560 ;
4223 return 0; 4561 return 0;
4224} 4562}
4225_ACEOF 4563_ACEOF
4226rm -f conftest.$ac_objext conftest$ac_exeext 4564for ac_lib in '' nsl; do
4227if { (ac_try="$ac_link" 4565 if test -z "$ac_lib"; then
4228case "(($ac_try" in 4566 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 4567 else
4246 echo "$as_me: failed program was:" >&5 4568 ac_res=-l$ac_lib
4247sed 's/^/| /' conftest.$ac_ext >&5 4569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4248 4570 fi
4249 ac_cv_lib_nsl_gethostbyname=no 4571 if ac_fn_cxx_try_link "$LINENO"; then :
4572 ac_cv_search_gethostbyname=$ac_res
4250fi 4573fi
4251
4252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4574rm -f core conftest.err conftest.$ac_objext \
4253 conftest$ac_exeext conftest.$ac_ext 4575 conftest$ac_exeext
4254LIBS=$ac_check_lib_save_LIBS 4576 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4577 break
4255fi 4578fi
4579done
4580if test "${ac_cv_search_gethostbyname+set}" = set; then :
4581
4582else
4583 ac_cv_search_gethostbyname=no
4584fi
4585rm conftest.$ac_ext
4586LIBS=$ac_func_search_save_LIBS
4587fi
4256{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4257echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 4589$as_echo "$ac_cv_search_gethostbyname" >&6; }
4258if test $ac_cv_lib_nsl_gethostbyname = yes; then 4590ac_res=$ac_cv_search_gethostbyname
4259 LIBS="$LIBS -lnsl" 4591if test "$ac_res" != no; then :
4260fi 4592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4261 4593
4262fi 4594fi
4263 4595
4264{ echo "$as_me:$LINENO: checking for socket" >&5 4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4265echo $ECHO_N "checking for socket... $ECHO_C" >&6; } 4597$as_echo_n "checking for library containing socket... " >&6; }
4266if test "${ac_cv_func_socket+set}" = set; then 4598if test "${ac_cv_search_socket+set}" = set; then :
4267 echo $ECHO_N "(cached) $ECHO_C" >&6 4599 $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 4600else
4287# include <assert.h> 4601 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 4602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
4360/* end confdefs.h. */ 4603/* end confdefs.h. */
4361 4604
4362/* Override any GCC internal prototype to avoid an error. 4605/* Override any GCC internal prototype to avoid an error.
4363 Use char because int might match the return type of a GCC 4606 Use char because int might match the return type of a GCC
4364 builtin and then its argument prototype would still apply. */ 4607 builtin and then its argument prototype would still apply. */
4372return socket (); 4615return socket ();
4373 ; 4616 ;
4374 return 0; 4617 return 0;
4375} 4618}
4376_ACEOF 4619_ACEOF
4377rm -f conftest.$ac_objext conftest$ac_exeext 4620for ac_lib in '' socket; do
4378if { (ac_try="$ac_link" 4621 if test -z "$ac_lib"; then
4379case "(($ac_try" in 4622 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 4623 else
4397 echo "$as_me: failed program was:" >&5 4624 ac_res=-l$ac_lib
4398sed 's/^/| /' conftest.$ac_ext >&5 4625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4399 4626 fi
4400 ac_cv_lib_socket_socket=no 4627 if ac_fn_cxx_try_link "$LINENO"; then :
4628 ac_cv_search_socket=$ac_res
4401fi 4629fi
4402
4403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4630rm -f core conftest.err conftest.$ac_objext \
4404 conftest$ac_exeext conftest.$ac_ext 4631 conftest$ac_exeext
4405LIBS=$ac_check_lib_save_LIBS 4632 if test "${ac_cv_search_socket+set}" = set; then :
4633 break
4406fi 4634fi
4635done
4636if test "${ac_cv_search_socket+set}" = set; then :
4637
4638else
4639 ac_cv_search_socket=no
4640fi
4641rm conftest.$ac_ext
4642LIBS=$ac_func_search_save_LIBS
4643fi
4407{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 4644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4408echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 4645$as_echo "$ac_cv_search_socket" >&6; }
4409if test $ac_cv_lib_socket_socket = yes; then 4646ac_res=$ac_cv_search_socket
4410 LIBS="$LIBS -lsocket" 4647if test "$ac_res" != no; then :
4411fi 4648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4412 4649
4413fi 4650fi
4414
4415 4651
4416 4652
4417support_frills=yes 4653support_frills=yes
4418support_inheritpixmap=yes 4654support_inheritpixmap=yes
4419support_tinting=yes
4420support_fading=yes 4655support_fading=yes
4421support_keepscrolling=yes 4656support_keepscrolling=yes
4422support_selectionscrolling=yes 4657support_selectionscrolling=yes
4423support_mousewheel=yes 4658support_mousewheel=yes
4424support_mouseslipwheel=yes 4659support_mouseslipwheel=yes
4425support_text_blink=yes 4660support_text_blink=yes
4426support_pointer_blank=yes 4661support_pointer_blank=yes
4427support_scroll_rxvt=yes 4662support_scroll_rxvt=yes
4428support_scroll_next=yes 4663support_scroll_next=yes
4429support_scroll_xterm=yes 4664support_scroll_xterm=yes
4430support_scroll_plain=yes
4431support_xim=yes 4665support_xim=yes
4432support_xpm=yes 4666support_afterimage=yes
4667support_afterstep=yes
4433support_xft=yes 4668support_xft=yes
4434support_unicode3=no 4669support_unicode3=no
4435support_combining=yes 4670support_combining=yes
4436support_8bitctrls=no 4671support_8bitctrls=no
4437support_iso14755=yes 4672support_iso14755=yes
4438support_styles=yes 4673support_styles=yes
4439support_perl=yes 4674support_perl=yes
4440codesets=all 4675codesets=all
4441 4676
4442 4677
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. 4678# Check whether --enable-everything was given.
4454if test "${enable_everything+set}" = set; then 4679if test "${enable_everything+set}" = set; then :
4455 enableval=$enable_everything; 4680 enableval=$enable_everything;
4456 if test x$enableval = xno; then 4681 if test x$enableval = xno; then
4457 support_frills=no 4682 support_frills=no
4458 support_inheritpixmap=no 4683 support_inheritpixmap=no
4459 support_tinting=no
4460 support_fading=no 4684 support_fading=no
4461 support_keepscrolling=no 4685 support_keepscrolling=no
4462 support_selectionscrolling=no 4686 support_selectionscrolling=no
4463 support_lastlog=no 4687 support_lastlog=no
4464 support_mousewheel=no 4688 support_mousewheel=no
4466 support_text_blink=no 4690 support_text_blink=no
4467 support_pointer_blank=no 4691 support_pointer_blank=no
4468 support_scroll_rxvt=no 4692 support_scroll_rxvt=no
4469 support_scroll_next=no 4693 support_scroll_next=no
4470 support_scroll_xterm=no 4694 support_scroll_xterm=no
4471 support_scroll_plain=no
4472 support_utmp=no 4695 support_utmp=no
4473 support_wtmp=no 4696 support_wtmp=no
4474 support_xim=no 4697 support_xim=no
4698 support_afterimage=no
4475 support_xpm=no 4699 support_afterstep=no
4476 support_xft=no 4700 support_xft=no
4477 support_unicode3=no 4701 support_unicode3=no
4478 support_combining=no 4702 support_combining=no
4479 support_8bitctrls=no 4703 support_8bitctrls=no
4480 support_iso14755=no 4704 support_iso14755=no
4483 codesets= 4707 codesets=
4484 fi 4708 fi
4485 if test x$enableval = xyes; then 4709 if test x$enableval = xyes; then
4486 support_frills=yes 4710 support_frills=yes
4487 support_inheritpixmap=yes 4711 support_inheritpixmap=yes
4488 support_tinting=yes
4489 support_fading=yes 4712 support_fading=yes
4490 support_keepscrolling=yes 4713 support_keepscrolling=yes
4491 support_selectionscrolling=yes 4714 support_selectionscrolling=yes
4492 support_lastlog=yes 4715 support_lastlog=yes
4493 support_mousewheel=yes 4716 support_mousewheel=yes
4495 support_text_blink=yes 4718 support_text_blink=yes
4496 support_pointer_blank=yes 4719 support_pointer_blank=yes
4497 support_scroll_rxvt=yes 4720 support_scroll_rxvt=yes
4498 support_scroll_next=yes 4721 support_scroll_next=yes
4499 support_scroll_xterm=yes 4722 support_scroll_xterm=yes
4500 support_scroll_plain=yes
4501 support_utmp=yes 4723 support_utmp=yes
4502 support_wtmp=yes 4724 support_wtmp=yes
4503 support_xim=yes 4725 support_xim=yes
4726 support_afterimage=yes
4504 support_xpm=yes 4727 support_afterstep=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
4550# Check whether --enable-xpm-background was given. 4835# Check whether --enable-afterimage was given.
4551if test "${enable_xpm_background+set}" = set; then 4836if test "${enable_afterimage+set}" = set; then :
4552 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then 4837 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4553 support_xpm=$enableval 4838 support_afterimage=$enableval
4554 fi 4839 fi
4555fi 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
4556 4851
4557 4852
4558# Check whether --enable-transparency was given. 4853# Check whether --enable-transparency was given.
4559if test "${enable_transparency+set}" = set; then 4854if test "${enable_transparency+set}" = set; then :
4560 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then 4855 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4561 support_inheritpixmap=$enableval 4856 support_inheritpixmap=$enableval
4562 fi 4857 fi
4563fi 4858fi
4564 4859
4565 4860
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. 4861# Check whether --enable-fading was given.
4575if test "${enable_fading+set}" = set; then 4862if test "${enable_fading+set}" = set; then :
4576 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then 4863 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4577 support_fading=$enableval 4864 support_fading=$enableval
4578 fi 4865 fi
4579fi 4866fi
4580 4867
4581 4868
4582# Check whether --enable-rxvt-scroll was given. 4869# Check whether --enable-rxvt-scroll was given.
4583if test "${enable_rxvt_scroll+set}" = set; then 4870if test "${enable_rxvt_scroll+set}" = set; then :
4584 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4871 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4585 support_scroll_rxvt=$enableval 4872 support_scroll_rxvt=$enableval
4586 fi 4873 fi
4587fi 4874fi
4588 4875
4589 4876
4590# Check whether --enable-next-scroll was given. 4877# Check whether --enable-next-scroll was given.
4591if test "${enable_next_scroll+set}" = set; then 4878if test "${enable_next_scroll+set}" = set; then :
4592 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4879 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4593 support_scroll_next=$enableval 4880 support_scroll_next=$enableval
4594 fi 4881 fi
4595fi 4882fi
4596 4883
4597 4884
4598# Check whether --enable-xterm-scroll was given. 4885# Check whether --enable-xterm-scroll was given.
4599if test "${enable_xterm_scroll+set}" = set; then 4886if test "${enable_xterm_scroll+set}" = set; then :
4600 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4887 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4601 support_scroll_xterm=$enableval 4888 support_scroll_xterm=$enableval
4602 fi 4889 fi
4603fi 4890fi
4604 4891
4605 4892
4606# Check whether --enable-perl was given. 4893# Check whether --enable-perl was given.
4607if test "${enable_perl+set}" = set; then 4894if test "${enable_perl+set}" = set; then :
4608 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then 4895 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4609 support_perl=$enableval 4896 support_perl=$enableval
4610 fi 4897 fi
4611fi 4898fi
4612 4899
4613 4900
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 4901
4623# Check whether --with-codesets was given. 4902# Check whether --with-codesets was given.
4624if test "${with_codesets+set}" = set; then 4903if test "${with_codesets+set}" = set; then :
4625 withval=$with_codesets; codesets="$withval" 4904 withval=$with_codesets; codesets="$withval"
4626fi 4905fi
4627 4906
4628 4907
4629# Check whether --enable-xim was given. 4908# Check whether --enable-xim was given.
4630if test "${enable_xim+set}" = set; then 4909if test "${enable_xim+set}" = set; then :
4631 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then 4910 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
4632 support_xim=$enableval 4911 support_xim=$enableval
4633 fi 4912 fi
4634fi 4913fi
4635 4914
4636 4915
4637# Check whether --enable-backspace-key was given. 4916# Check whether --enable-backspace-key was given.
4638if test "${enable_backspace_key+set}" = set; then 4917if test "${enable_backspace_key+set}" = set; then :
4639 enableval=$enable_backspace_key; if test x$enableval = xno; then 4918 enableval=$enable_backspace_key; if test x$enableval = xno; then
4640 4919
4641cat >>confdefs.h <<\_ACEOF 4920$as_echo "#define NO_BACKSPACE_KEY 1" >>confdefs.h
4642#define NO_BACKSPACE_KEY 1
4643_ACEOF
4644 4921
4645 fi 4922 fi
4646fi 4923fi
4647 4924
4648 4925
4649# Check whether --enable-delete-key was given. 4926# Check whether --enable-delete-key was given.
4650if test "${enable_delete_key+set}" = set; then 4927if test "${enable_delete_key+set}" = set; then :
4651 enableval=$enable_delete_key; if test x$enableval = xno; then 4928 enableval=$enable_delete_key; if test x$enableval = xno; then
4652 4929
4653cat >>confdefs.h <<\_ACEOF 4930$as_echo "#define NO_DELETE_KEY 1" >>confdefs.h
4654#define NO_DELETE_KEY 1
4655_ACEOF
4656 4931
4657 fi 4932 fi
4658fi 4933fi
4659 4934
4660 4935
4661# Check whether --enable-resources was given. 4936# Check whether --enable-resources was given.
4662if test "${enable_resources+set}" = set; then 4937if test "${enable_resources+set}" = set; then :
4663 enableval=$enable_resources; if test x$enableval = xno; then 4938 enableval=$enable_resources; if test x$enableval = xno; then
4664 4939
4665cat >>confdefs.h <<\_ACEOF 4940$as_echo "#define NO_RESOURCES 1" >>confdefs.h
4666#define NO_RESOURCES 1
4667_ACEOF
4668 4941
4669 fi 4942 fi
4670fi 4943fi
4671 4944
4672 4945
4673# Check whether --enable-8bitctrls was given. 4946# Check whether --enable-8bitctrls was given.
4674if test "${enable_8bitctrls+set}" = set; then 4947if test "${enable_8bitctrls+set}" = set; then :
4675 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then 4948 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
4676 support_8bitctrls=$enableval 4949 support_8bitctrls=$enableval
4677 fi 4950 fi
4678fi 4951fi
4679 4952
4680 4953
4681RESFALLBACK=Rxvt 4954RESFALLBACK=Rxvt
4682# Check whether --enable-fallback was given. 4955# Check whether --enable-fallback was given.
4683if test "${enable_fallback+set}" = set; then 4956if test "${enable_fallback+set}" = set; then :
4684 enableval=$enable_fallback; 4957 enableval=$enable_fallback;
4685 test x$enableval = xyes && enableval=Rxvt 4958 test x$enableval = xyes && enableval=Rxvt
4686 test x$enableval = xno && enableval= 4959 test x$enableval = xno && enableval=
4687 RESFALLBACK="$enableval" 4960 RESFALLBACK="$enableval"
4688 4961
4698fi 4971fi
4699 4972
4700RESNAME=urxvt 4973RESNAME=urxvt
4701 4974
4702# Check whether --with-res-name was given. 4975# Check whether --with-res-name was given.
4703if test "${with_res_name+set}" = set; then 4976if test "${with_res_name+set}" = set; then :
4704 withval=$with_res_name; RESNAME="$withval" 4977 withval=$with_res_name; RESNAME="$withval"
4705fi 4978fi
4706 4979
4707 4980
4708cat >>confdefs.h <<_ACEOF 4981cat >>confdefs.h <<_ACEOF
4711 4984
4712 4985
4713RESCLASS=URxvt 4986RESCLASS=URxvt
4714 4987
4715# Check whether --with-res-class was given. 4988# Check whether --with-res-class was given.
4716if test "${with_res_class+set}" = set; then 4989if test "${with_res_class+set}" = set; then :
4717 withval=$with_res_class; RESCLASS="$withval" 4990 withval=$with_res_class; RESCLASS="$withval"
4718fi 4991fi
4719 4992
4720 4993
4721cat >>confdefs.h <<_ACEOF 4994cat >>confdefs.h <<_ACEOF
4724 4997
4725 4998
4726RXVTNAME=urxvt 4999RXVTNAME=urxvt
4727 5000
4728# Check whether --with-name was given. 5001# Check whether --with-name was given.
4729if test "${with_name+set}" = set; then 5002if test "${with_name+set}" = set; then :
4730 withval=$with_name; RXVTNAME="$withval" 5003 withval=$with_name; RXVTNAME="$withval"
4731fi 5004fi
4732 5005
4733 5006
4734cat >>confdefs.h <<_ACEOF 5007cat >>confdefs.h <<_ACEOF
4738 5011
4739RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 5012RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4740 5013
4741 5014
4742# Check whether --enable-swapscreen was given. 5015# Check whether --enable-swapscreen was given.
4743if test "${enable_swapscreen+set}" = set; then 5016if test "${enable_swapscreen+set}" = set; then :
4744 enableval=$enable_swapscreen; if test x$enableval = xno; then 5017 enableval=$enable_swapscreen; if test x$enableval = xno; then
4745 5018
4746cat >>confdefs.h <<\_ACEOF 5019$as_echo "#define NO_SECONDARY_SCREEN 1" >>confdefs.h
4747#define NO_SECONDARY_SCREEN 1
4748_ACEOF
4749 5020
4750 fi 5021 fi
4751fi 5022fi
4752 5023
4753 5024
4754# Check whether --enable-iso14755 was given. 5025# Check whether --enable-iso14755 was given.
4755if test "${enable_iso14755+set}" = set; then 5026if test "${enable_iso14755+set}" = set; then :
4756 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then 5027 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
4757 support_iso14755=$enableval 5028 support_iso14755=$enableval
4758 fi 5029 fi
4759fi 5030fi
4760 5031
4761 5032
4762# Check whether --enable-frills was given. 5033# Check whether --enable-frills was given.
4763if test "${enable_frills+set}" = set; then 5034if test "${enable_frills+set}" = set; then :
4764 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then 5035 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
4765 support_frills=$enableval 5036 support_frills=$enableval
4766 fi 5037 fi
4767fi 5038fi
4768 5039
4769 5040
4770# Check whether --enable-keepscrolling was given. 5041# Check whether --enable-keepscrolling was given.
4771if test "${enable_keepscrolling+set}" = set; then 5042if test "${enable_keepscrolling+set}" = set; then :
4772 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then 5043 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
4773 support_keepscrolling=$enableval 5044 support_keepscrolling=$enableval
4774 fi 5045 fi
4775fi 5046fi
4776 5047
4777 5048
4778# Check whether --enable-selectionscrolling was given. 5049# Check whether --enable-selectionscrolling was given.
4779if test "${enable_selectionscrolling+set}" = set; then 5050if test "${enable_selectionscrolling+set}" = set; then :
4780 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then 5051 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
4781 support_selectionscrolling=$enableval 5052 support_selectionscrolling=$enableval
4782 fi 5053 fi
4783fi 5054fi
4784 5055
4785 5056
4786# Check whether --enable-mousewheel was given. 5057# Check whether --enable-mousewheel was given.
4787if test "${enable_mousewheel+set}" = set; then 5058if test "${enable_mousewheel+set}" = set; then :
4788 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then 5059 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
4789 support_mousewheel=$enableval 5060 support_mousewheel=$enableval
4790 fi 5061 fi
4791fi 5062fi
4792 5063
4793 5064
4794# Check whether --enable-slipwheeling was given. 5065# Check whether --enable-slipwheeling was given.
4795if test "${enable_slipwheeling+set}" = set; then 5066if test "${enable_slipwheeling+set}" = set; then :
4796 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then 5067 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
4797 support_mouseslipwheel=$enableval 5068 support_mouseslipwheel=$enableval
4798 fi 5069 fi
4799fi 5070fi
4800 5071
4801 5072
4802# Check whether --enable-smart-resize was given. 5073# Check whether --enable-smart-resize was given.
4803if test "${enable_smart_resize+set}" = set; then 5074if test "${enable_smart_resize+set}" = set; then :
4804 enableval=$enable_smart_resize; if test x$enableval = xyes; then 5075 enableval=$enable_smart_resize; if test x$enableval = xyes; then
4805 5076
4806cat >>confdefs.h <<\_ACEOF 5077$as_echo "#define SMART_RESIZE 1" >>confdefs.h
4807#define SMART_RESIZE 1
4808_ACEOF
4809 5078
4810 fi 5079 fi
4811fi 5080fi
4812 5081
4813 5082
4814# Check whether --enable-text-blink was given. 5083# Check whether --enable-text-blink was given.
4815if test "${enable_text_blink+set}" = set; then 5084if test "${enable_text_blink+set}" = set; then :
4816 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then 5085 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
4817 support_text_blink=$enableval 5086 support_text_blink=$enableval
4818 fi 5087 fi
4819fi 5088fi
4820 5089
4821 5090
4822# Check whether --enable-pointer-blank was given. 5091# Check whether --enable-pointer-blank was given.
4823if test "${enable_pointer_blank+set}" = set; then 5092if test "${enable_pointer_blank+set}" = set; then :
4824 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then 5093 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
4825 support_pointer_blank=$enableval 5094 support_pointer_blank=$enableval
4826 fi 5095 fi
4827fi 5096fi
4828 5097
4829 5098
4830 5099
4831# Check whether --with-term was given. 5100# Check whether --with-term was given.
4832if test "${with_term+set}" = set; then 5101if test "${with_term+set}" = set; then :
4833 withval=$with_term; if test x$withval != x; then 5102 withval=$with_term; if test x$withval != x; then
4834 5103
4835cat >>confdefs.h <<_ACEOF 5104cat >>confdefs.h <<_ACEOF
4836#define TERMENV "$withval" 5105#define TERMENV "$withval"
4837_ACEOF 5106_ACEOF
4840fi 5109fi
4841 5110
4842 5111
4843 5112
4844# Check whether --with-terminfo was given. 5113# Check whether --with-terminfo was given.
4845if test "${with_terminfo+set}" = set; then 5114if test "${with_terminfo+set}" = set; then :
4846 withval=$with_terminfo; if test x$withval != x; then 5115 withval=$with_terminfo; if test x$withval != x; then
4847 5116
4848cat >>confdefs.h <<_ACEOF 5117cat >>confdefs.h <<_ACEOF
4849#define RXVT_TERMINFO "$withval" 5118#define RXVT_TERMINFO "$withval"
4850_ACEOF 5119_ACEOF
4852 fi 5121 fi
4853fi 5122fi
4854 5123
4855 5124
4856 5125
4857# Extract the first word of "mv", so it can be a program name with args. 5126LIBEV_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 5127
5146ac_ext=cpp 5128ac_ext=cpp
5147ac_cpp='$CXXCPP $CPPFLAGS' 5129ac_cpp='$CXXCPP $CPPFLAGS'
5148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5151{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5133{ $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; } 5134$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5153if test -z "$CXXCPP"; then 5135if test -z "$CXXCPP"; then
5154 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5136 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5155 echo $ECHO_N "(cached) $ECHO_C" >&6 5137 $as_echo_n "(cached) " >&6
5156else 5138else
5157 # Double quotes because CXXCPP needs to be expanded 5139 # Double quotes because CXXCPP needs to be expanded
5158 for CXXCPP in "$CXX -E" "/lib/cpp" 5140 for CXXCPP in "$CXX -E" "/lib/cpp"
5159 do 5141 do
5160 ac_preproc_ok=false 5142 ac_preproc_ok=false
5164 # with a fresh cross-compiler works. 5146 # with a fresh cross-compiler works.
5165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166 # <limits.h> exists even on freestanding compilers. 5148 # <limits.h> exists even on freestanding compilers.
5167 # On the NeXT, cc -E runs the code through the compiler's parser, 5149 # 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. 5150 # 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 5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h. */ 5152/* end confdefs.h. */
5175#ifdef __STDC__ 5153#ifdef __STDC__
5176# include <limits.h> 5154# include <limits.h>
5177#else 5155#else
5178# include <assert.h> 5156# include <assert.h>
5179#endif 5157#endif
5180 Syntax error 5158 Syntax error
5181_ACEOF 5159_ACEOF
5182if { (ac_try="$ac_cpp conftest.$ac_ext" 5160if 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 5161
5162else
5203 # Broken: fails on valid input. 5163 # Broken: fails on valid input.
5204continue 5164continue
5205fi 5165fi
5206
5207rm -f conftest.err conftest.$ac_ext 5166rm -f conftest.err conftest.$ac_ext
5208 5167
5209 # OK, works on sane cases. Now check whether nonexistent headers 5168 # OK, works on sane cases. Now check whether nonexistent headers
5210 # can be detected and how. 5169 # can be detected and how.
5211 cat >conftest.$ac_ext <<_ACEOF
5212/* confdefs.h. */
5213_ACEOF
5214cat confdefs.h >>conftest.$ac_ext 5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215cat >>conftest.$ac_ext <<_ACEOF
5216/* end confdefs.h. */ 5171/* end confdefs.h. */
5217#include <ac_nonexistent.h> 5172#include <ac_nonexistent.h>
5218_ACEOF 5173_ACEOF
5219if { (ac_try="$ac_cpp conftest.$ac_ext" 5174if 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. 5175 # Broken: success on invalid input.
5236continue 5176continue
5237else 5177else
5238 echo "$as_me: failed program was:" >&5
5239sed 's/^/| /' conftest.$ac_ext >&5
5240
5241 # Passes both tests. 5178 # Passes both tests.
5242ac_preproc_ok=: 5179ac_preproc_ok=:
5243break 5180break
5244fi 5181fi
5245
5246rm -f conftest.err conftest.$ac_ext 5182rm -f conftest.err conftest.$ac_ext
5247 5183
5248done 5184done
5249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5185# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5250rm -f conftest.err conftest.$ac_ext 5186rm -f conftest.err conftest.$ac_ext
5251if $ac_preproc_ok; then 5187if $ac_preproc_ok; then :
5252 break 5188 break
5253fi 5189fi
5254 5190
5255 done 5191 done
5256 ac_cv_prog_CXXCPP=$CXXCPP 5192 ac_cv_prog_CXXCPP=$CXXCPP
5258fi 5194fi
5259 CXXCPP=$ac_cv_prog_CXXCPP 5195 CXXCPP=$ac_cv_prog_CXXCPP
5260else 5196else
5261 ac_cv_prog_CXXCPP=$CXXCPP 5197 ac_cv_prog_CXXCPP=$CXXCPP
5262fi 5198fi
5263{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5264echo "${ECHO_T}$CXXCPP" >&6; } 5200$as_echo "$CXXCPP" >&6; }
5265ac_preproc_ok=false 5201ac_preproc_ok=false
5266for ac_cxx_preproc_warn_flag in '' yes 5202for ac_cxx_preproc_warn_flag in '' yes
5267do 5203do
5268 # Use a header file that comes with gcc, so configuring glibc 5204 # Use a header file that comes with gcc, so configuring glibc
5269 # with a fresh cross-compiler works. 5205 # with a fresh cross-compiler works.
5270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5206 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5271 # <limits.h> exists even on freestanding compilers. 5207 # <limits.h> exists even on freestanding compilers.
5272 # On the NeXT, cc -E runs the code through the compiler's parser, 5208 # 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. 5209 # 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 5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278cat >>conftest.$ac_ext <<_ACEOF
5279/* end confdefs.h. */ 5211/* end confdefs.h. */
5280#ifdef __STDC__ 5212#ifdef __STDC__
5281# include <limits.h> 5213# include <limits.h>
5282#else 5214#else
5283# include <assert.h> 5215# include <assert.h>
5284#endif 5216#endif
5285 Syntax error 5217 Syntax error
5286_ACEOF 5218_ACEOF
5287if { (ac_try="$ac_cpp conftest.$ac_ext" 5219if 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 5220
5221else
5308 # Broken: fails on valid input. 5222 # Broken: fails on valid input.
5309continue 5223continue
5310fi 5224fi
5311
5312rm -f conftest.err conftest.$ac_ext 5225rm -f conftest.err conftest.$ac_ext
5313 5226
5314 # OK, works on sane cases. Now check whether nonexistent headers 5227 # OK, works on sane cases. Now check whether nonexistent headers
5315 # can be detected and how. 5228 # can be detected and how.
5316 cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h. */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext 5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h. */ 5230/* end confdefs.h. */
5322#include <ac_nonexistent.h> 5231#include <ac_nonexistent.h>
5323_ACEOF 5232_ACEOF
5324if { (ac_try="$ac_cpp conftest.$ac_ext" 5233if 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. 5234 # Broken: success on invalid input.
5341continue 5235continue
5342else 5236else
5343 echo "$as_me: failed program was:" >&5
5344sed 's/^/| /' conftest.$ac_ext >&5
5345
5346 # Passes both tests. 5237 # Passes both tests.
5347ac_preproc_ok=: 5238ac_preproc_ok=:
5348break 5239break
5349fi 5240fi
5350
5351rm -f conftest.err conftest.$ac_ext 5241rm -f conftest.err conftest.$ac_ext
5352 5242
5353done 5243done
5354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5244# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355rm -f conftest.err conftest.$ac_ext 5245rm -f conftest.err conftest.$ac_ext
5356if $ac_preproc_ok; then 5246if $ac_preproc_ok; then :
5357 : 5247
5358else 5248else
5359 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5360See \`config.log' for more details." >&5 5250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5361echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5251as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5362See \`config.log' for more details." >&2;} 5252See \`config.log' for more details." "$LINENO" 5; }
5363 { (exit 1); exit 1; }; }
5364fi 5253fi
5365 5254
5366ac_ext=cpp 5255ac_ext=cpp
5367ac_cpp='$CXXCPP $CPPFLAGS' 5256ac_cpp='$CXXCPP $CPPFLAGS'
5368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5371 5260
5372 5261
5262for 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
5263do :
5264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5265ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5266eval as_val=\$$as_ac_Header
5267 if test "x$as_val" = x""yes; then :
5268 cat >>confdefs.h <<_ACEOF
5269#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5270_ACEOF
5271
5272fi
5273
5274done
5275
5276
5277for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5278do :
5279 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5280ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5281eval as_val=\$$as_ac_var
5282 if test "x$as_val" = x""yes; then :
5283 cat >>confdefs.h <<_ACEOF
5284#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5285_ACEOF
5286
5287fi
5288done
5289
5290
5291ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5292if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5293
5294else
5295
5296 if test $(uname) = Linux; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5298$as_echo_n "checking for clock_gettime syscall... " >&6; }
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300/* end confdefs.h. */
5301#include <unistd.h>
5302 #include <sys/syscall.h>
5303 #include <time.h>
5304int
5305main ()
5306{
5307struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5308 ;
5309 return 0;
5310}
5311_ACEOF
5312if ac_fn_cxx_try_link "$LINENO"; then :
5313 ac_have_clock_syscall=1
5314
5315$as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
5316
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5318$as_echo "yes" >&6; }
5319else
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321$as_echo "no" >&6; }
5322fi
5323rm -f core conftest.err conftest.$ac_objext \
5324 conftest$ac_exeext conftest.$ac_ext
5325 fi
5326 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5328$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
5329if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
5330 $as_echo_n "(cached) " >&6
5331else
5332 ac_check_lib_save_LIBS=$LIBS
5333LIBS="-lrt $LIBS"
5334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335/* end confdefs.h. */
5336
5337/* Override any GCC internal prototype to avoid an error.
5338 Use char because int might match the return type of a GCC
5339 builtin and then its argument prototype would still apply. */
5340#ifdef __cplusplus
5341extern "C"
5342#endif
5343char clock_gettime ();
5344int
5345main ()
5346{
5347return clock_gettime ();
5348 ;
5349 return 0;
5350}
5351_ACEOF
5352if ac_fn_cxx_try_link "$LINENO"; then :
5353 ac_cv_lib_rt_clock_gettime=yes
5354else
5355 ac_cv_lib_rt_clock_gettime=no
5356fi
5357rm -f core conftest.err conftest.$ac_objext \
5358 conftest$ac_exeext conftest.$ac_ext
5359LIBS=$ac_check_lib_save_LIBS
5360fi
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5362$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
5363if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
5364 cat >>confdefs.h <<_ACEOF
5365#define HAVE_LIBRT 1
5366_ACEOF
5367
5368 LIBS="-lrt $LIBS"
5369
5370fi
5371
5372 unset ac_cv_func_clock_gettime
5373 for ac_func in clock_gettime
5374do :
5375 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5376if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5377 cat >>confdefs.h <<_ACEOF
5378#define HAVE_CLOCK_GETTIME 1
5379_ACEOF
5380
5381fi
5382done
5383
5384 fi
5385
5386fi
5387
5388
5389ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5390if test "x$ac_cv_func_nanosleep" = x""yes; then :
5391
5392else
5393
5394 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5396$as_echo_n "checking for nanosleep in -lrt... " >&6; }
5397if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
5398 $as_echo_n "(cached) " >&6
5399else
5400 ac_check_lib_save_LIBS=$LIBS
5401LIBS="-lrt $LIBS"
5402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403/* end confdefs.h. */
5404
5405/* Override any GCC internal prototype to avoid an error.
5406 Use char because int might match the return type of a GCC
5407 builtin and then its argument prototype would still apply. */
5408#ifdef __cplusplus
5409extern "C"
5410#endif
5411char nanosleep ();
5412int
5413main ()
5414{
5415return nanosleep ();
5416 ;
5417 return 0;
5418}
5419_ACEOF
5420if ac_fn_cxx_try_link "$LINENO"; then :
5421 ac_cv_lib_rt_nanosleep=yes
5422else
5423 ac_cv_lib_rt_nanosleep=no
5424fi
5425rm -f core conftest.err conftest.$ac_objext \
5426 conftest$ac_exeext conftest.$ac_ext
5427LIBS=$ac_check_lib_save_LIBS
5428fi
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5430$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
5431if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
5432 cat >>confdefs.h <<_ACEOF
5433#define HAVE_LIBRT 1
5434_ACEOF
5435
5436 LIBS="-lrt $LIBS"
5437
5438fi
5439
5440 unset ac_cv_func_nanosleep
5441 for ac_func in nanosleep
5442do :
5443 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5444if test "x$ac_cv_func_nanosleep" = x""yes; then :
5445 cat >>confdefs.h <<_ACEOF
5446#define HAVE_NANOSLEEP 1
5447_ACEOF
5448
5449fi
5450done
5451
5452 fi
5453
5454fi
5455
5456
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5
5458$as_echo_n "checking for ceil in -lm... " >&6; }
5459if test "${ac_cv_lib_m_ceil+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5461else
5462 ac_check_lib_save_LIBS=$LIBS
5463LIBS="-lm $LIBS"
5464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465/* end confdefs.h. */
5466
5467/* Override any GCC internal prototype to avoid an error.
5468 Use char because int might match the return type of a GCC
5469 builtin and then its argument prototype would still apply. */
5470#ifdef __cplusplus
5471extern "C"
5472#endif
5473char ceil ();
5474int
5475main ()
5476{
5477return ceil ();
5478 ;
5479 return 0;
5480}
5481_ACEOF
5482if ac_fn_cxx_try_link "$LINENO"; then :
5483 ac_cv_lib_m_ceil=yes
5484else
5485 ac_cv_lib_m_ceil=no
5486fi
5487rm -f core conftest.err conftest.$ac_objext \
5488 conftest$ac_exeext conftest.$ac_ext
5489LIBS=$ac_check_lib_save_LIBS
5490fi
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceil" >&5
5492$as_echo "$ac_cv_lib_m_ceil" >&6; }
5493if test "x$ac_cv_lib_m_ceil" = x""yes; then :
5494 cat >>confdefs.h <<_ACEOF
5495#define HAVE_LIBM 1
5496_ACEOF
5497
5498 LIBS="-lm $LIBS"
5499
5500fi
5501
5502
5503
5504
5505
5506# Extract the first word of "tic", so it can be a program name with args.
5507set dummy tic; ac_word=$2
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509$as_echo_n "checking for $ac_word... " >&6; }
5510if test "${ac_cv_path_TIC+set}" = set; then :
5511 $as_echo_n "(cached) " >&6
5512else
5513 case $TIC in
5514 [\\/]* | ?:[\\/]*)
5515 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5516 ;;
5517 *)
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519for as_dir in $PATH
5520do
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5525 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 break 2
5528 fi
5529done
5530 done
5531IFS=$as_save_IFS
5532
5533 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5534 ;;
5535esac
5536fi
5537TIC=$ac_cv_path_TIC
5538if test -n "$TIC"; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5
5540$as_echo "$TIC" >&6; }
5541else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543$as_echo "no" >&6; }
5544fi
5545
5546
5547
5373{ echo "$as_me:$LINENO: checking for X" >&5 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5374echo $ECHO_N "checking for X... $ECHO_C" >&6; } 5549$as_echo_n "checking for X... " >&6; }
5375 5550
5376 5551
5377# Check whether --with-x was given. 5552# Check whether --with-x was given.
5378if test "${with_x+set}" = set; then 5553if test "${with_x+set}" = set; then :
5379 withval=$with_x; 5554 withval=$with_x;
5380fi 5555fi
5381 5556
5382# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 5557# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5383if test "x$with_x" = xno; then 5558if test "x$with_x" = xno; then
5384 # The user explicitly disabled X. 5559 # The user explicitly disabled X.
5385 have_x=disabled 5560 have_x=disabled
5386else 5561else
5387 case $x_includes,$x_libraries in #( 5562 case $x_includes,$x_libraries in #(
5388 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 5563 *\'*) 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 5564 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5392 echo $ECHO_N "(cached) $ECHO_C" >&6 5565 $as_echo_n "(cached) " >&6
5393else 5566else
5394 # One or both of the vars are not set, and there is no cached value. 5567 # One or both of the vars are not set, and there is no cached value.
5395ac_x_includes=no ac_x_libraries=no 5568ac_x_includes=no ac_x_libraries=no
5396rm -f -r conftest.dir 5569rm -f -r conftest.dir
5397if mkdir conftest.dir; then 5570if mkdir conftest.dir; then
5408 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5581 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5409 for ac_var in incroot usrlibdir libdir; do 5582 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'\`" 5583 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5411 done 5584 done
5412 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 5585 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5413 for ac_extension in a so sl; do 5586 for ac_extension in a so sl dylib la dll; do
5414 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 5587 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5415 test -f "$ac_im_libdir/libX11.$ac_extension"; then 5588 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5416 ac_im_usrlibdir=$ac_im_libdir; break 5589 ac_im_usrlibdir=$ac_im_libdir; break
5417 fi 5590 fi
5418 done 5591 done
5422 case $ac_im_incroot in 5595 case $ac_im_incroot in
5423 /usr/include) ac_x_includes= ;; 5596 /usr/include) ac_x_includes= ;;
5424 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 5597 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5425 esac 5598 esac
5426 case $ac_im_usrlibdir in 5599 case $ac_im_usrlibdir in
5427 /usr/lib | /lib) ;; 5600 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5428 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 5601 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5429 esac 5602 esac
5430 fi 5603 fi
5431 cd .. 5604 cd ..
5432 rm -f -r conftest.dir 5605 rm -f -r conftest.dir
5434 5607
5435# Standard set of common directories for X headers. 5608# Standard set of common directories for X headers.
5436# Check X11 before X11Rn because it is often a symlink to the current release. 5609# Check X11 before X11Rn because it is often a symlink to the current release.
5437ac_x_header_dirs=' 5610ac_x_header_dirs='
5438/usr/X11/include 5611/usr/X11/include
5612/usr/X11R7/include
5439/usr/X11R6/include 5613/usr/X11R6/include
5440/usr/X11R5/include 5614/usr/X11R5/include
5441/usr/X11R4/include 5615/usr/X11R4/include
5442 5616
5443/usr/include/X11 5617/usr/include/X11
5618/usr/include/X11R7
5444/usr/include/X11R6 5619/usr/include/X11R6
5445/usr/include/X11R5 5620/usr/include/X11R5
5446/usr/include/X11R4 5621/usr/include/X11R4
5447 5622
5448/usr/local/X11/include 5623/usr/local/X11/include
5624/usr/local/X11R7/include
5449/usr/local/X11R6/include 5625/usr/local/X11R6/include
5450/usr/local/X11R5/include 5626/usr/local/X11R5/include
5451/usr/local/X11R4/include 5627/usr/local/X11R4/include
5452 5628
5453/usr/local/include/X11 5629/usr/local/include/X11
5630/usr/local/include/X11R7
5454/usr/local/include/X11R6 5631/usr/local/include/X11R6
5455/usr/local/include/X11R5 5632/usr/local/include/X11R5
5456/usr/local/include/X11R4 5633/usr/local/include/X11R4
5457 5634
5458/usr/X386/include 5635/usr/X386/include
5470/usr/openwin/share/include' 5647/usr/openwin/share/include'
5471 5648
5472if test "$ac_x_includes" = no; then 5649if test "$ac_x_includes" = no; then
5473 # Guess where to find include files, by looking for Xlib.h. 5650 # Guess where to find include files, by looking for Xlib.h.
5474 # First, try using that file with no special directory specified. 5651 # 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 5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479cat >>conftest.$ac_ext <<_ACEOF
5480/* end confdefs.h. */ 5653/* end confdefs.h. */
5481#include <X11/Xlib.h> 5654#include <X11/Xlib.h>
5482_ACEOF 5655_ACEOF
5483if { (ac_try="$ac_cpp conftest.$ac_ext" 5656if 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. 5657 # We can compile using X headers with no special include directory.
5500ac_x_includes= 5658ac_x_includes=
5501else 5659else
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 5660 for ac_dir in $ac_x_header_dirs; do
5506 if test -r "$ac_dir/X11/Xlib.h"; then 5661 if test -r "$ac_dir/X11/Xlib.h"; then
5507 ac_x_includes=$ac_dir 5662 ac_x_includes=$ac_dir
5508 break 5663 break
5509 fi 5664 fi
5510done 5665done
5511fi 5666fi
5512
5513rm -f conftest.err conftest.$ac_ext 5667rm -f conftest.err conftest.$ac_ext
5514fi # $ac_x_includes = no 5668fi # $ac_x_includes = no
5515 5669
5516if test "$ac_x_libraries" = no; then 5670if test "$ac_x_libraries" = no; then
5517 # Check for the libraries. 5671 # Check for the libraries.
5518 # See if we find them without any special options. 5672 # See if we find them without any special options.
5519 # Don't add to $LIBS permanently. 5673 # Don't add to $LIBS permanently.
5520 ac_save_LIBS=$LIBS 5674 ac_save_LIBS=$LIBS
5521 LIBS="-lX11 $LIBS" 5675 LIBS="-lX11 $LIBS"
5522 cat >conftest.$ac_ext <<_ACEOF
5523/* confdefs.h. */
5524_ACEOF
5525cat confdefs.h >>conftest.$ac_ext 5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526cat >>conftest.$ac_ext <<_ACEOF
5527/* end confdefs.h. */ 5677/* end confdefs.h. */
5528#include <X11/Xlib.h> 5678#include <X11/Xlib.h>
5529int 5679int
5530main () 5680main ()
5531{ 5681{
5532XrmInitialize () 5682XrmInitialize ()
5533 ; 5683 ;
5534 return 0; 5684 return 0;
5535} 5685}
5536_ACEOF 5686_ACEOF
5537rm -f conftest.$ac_objext conftest$ac_exeext 5687if 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 5688 LIBS=$ac_save_LIBS
5556# We can link X programs with no special library path. 5689# We can link X programs with no special library path.
5557ac_x_libraries= 5690ac_x_libraries=
5558else 5691else
5559 echo "$as_me: failed program was:" >&5
5560sed 's/^/| /' conftest.$ac_ext >&5
5561
5562 LIBS=$ac_save_LIBS 5692 LIBS=$ac_save_LIBS
5563for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5693for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5564do 5694do
5565 # Don't even attempt the hair of trying to link an X program! 5695 # Don't even attempt the hair of trying to link an X program!
5566 for ac_extension in a so sl; do 5696 for ac_extension in a so sl dylib la dll; do
5567 if test -r "$ac_dir/libX11.$ac_extension"; then 5697 if test -r "$ac_dir/libX11.$ac_extension"; then
5568 ac_x_libraries=$ac_dir 5698 ac_x_libraries=$ac_dir
5569 break 2 5699 break 2
5570 fi 5700 fi
5571 done 5701 done
5572done 5702done
5573fi 5703fi
5574
5575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5704rm -f core conftest.err conftest.$ac_objext \
5576 conftest$ac_exeext conftest.$ac_ext 5705 conftest$ac_exeext conftest.$ac_ext
5577fi # $ac_x_libraries = no 5706fi # $ac_x_libraries = no
5578 5707
5579case $ac_x_includes,$ac_x_libraries in #( 5708case $ac_x_includes,$ac_x_libraries in #(
5580 no,* | *,no | *\'*) 5709 no,* | *,no | *\'*)
5581 # Didn't find X, or a directory has "'" in its name. 5710 # Didn't find X, or a directory has "'" in its name.
5592 esac 5721 esac
5593 eval "$ac_cv_have_x" 5722 eval "$ac_cv_have_x"
5594fi # $with_x != no 5723fi # $with_x != no
5595 5724
5596if test "$have_x" != yes; then 5725if test "$have_x" != yes; then
5597 { echo "$as_me:$LINENO: result: $have_x" >&5 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5598echo "${ECHO_T}$have_x" >&6; } 5727$as_echo "$have_x" >&6; }
5599 no_x=yes 5728 no_x=yes
5600else 5729else
5601 # If each of the values was on the command line, it overrides each guess. 5730 # 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 5731 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5603 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5732 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5604 # Update the cache value to reflect the command line values. 5733 # Update the cache value to reflect the command line values.
5605 ac_cv_have_x="have_x=yes\ 5734 ac_cv_have_x="have_x=yes\
5606 ac_x_includes='$x_includes'\ 5735 ac_x_includes='$x_includes'\
5607 ac_x_libraries='$x_libraries'" 5736 ac_x_libraries='$x_libraries'"
5608 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 5737 { $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; } 5738$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5610fi 5739fi
5611 5740
5612if test "$no_x" = yes; then 5741if test "$no_x" = yes; then
5613 # Not all programs may use this symbol, but it does not hurt to define it. 5742 # Not all programs may use this symbol, but it does not hurt to define it.
5614 5743
5615cat >>confdefs.h <<\_ACEOF 5744$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5616#define X_DISPLAY_MISSING 1
5617_ACEOF
5618 5745
5619 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 5746 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5620else 5747else
5621 if test -n "$x_includes"; then 5748 if test -n "$x_includes"; then
5622 X_CFLAGS="$X_CFLAGS -I$x_includes" 5749 X_CFLAGS="$X_CFLAGS -I$x_includes"
5625 # It would also be nice to do this for all -L options, not just this one. 5752 # It would also be nice to do this for all -L options, not just this one.
5626 if test -n "$x_libraries"; then 5753 if test -n "$x_libraries"; then
5627 X_LIBS="$X_LIBS -L$x_libraries" 5754 X_LIBS="$X_LIBS -L$x_libraries"
5628 # For Solaris; some versions of Sun CC require a space after -R and 5755 # For Solaris; some versions of Sun CC require a space after -R and
5629 # others require no space. Words are not sufficient . . . . 5756 # others require no space. Words are not sufficient . . . .
5630 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 5757 { $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; } 5758$as_echo_n "checking whether -R must be followed by a space... " >&6; }
5632 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 5759 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5633 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 5760 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
5634 ac_cxx_werror_flag=yes 5761 ac_cxx_werror_flag=yes
5635 cat >conftest.$ac_ext <<_ACEOF
5636/* confdefs.h. */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext 5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h. */ 5763/* end confdefs.h. */
5641 5764
5642int 5765int
5643main () 5766main ()
5644{ 5767{
5645 5768
5646 ; 5769 ;
5647 return 0; 5770 return 0;
5648} 5771}
5649_ACEOF 5772_ACEOF
5650rm -f conftest.$ac_objext conftest$ac_exeext 5773if 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 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669echo "${ECHO_T}no" >&6; } 5775$as_echo "no" >&6; }
5670 X_LIBS="$X_LIBS -R$x_libraries" 5776 X_LIBS="$X_LIBS -R$x_libraries"
5671else 5777else
5672 echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
5675 LIBS="$ac_xsave_LIBS -R $x_libraries" 5778 LIBS="$ac_xsave_LIBS -R $x_libraries"
5676 cat >conftest.$ac_ext <<_ACEOF
5677/* confdefs.h. */
5678_ACEOF
5679cat confdefs.h >>conftest.$ac_ext 5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680cat >>conftest.$ac_ext <<_ACEOF
5681/* end confdefs.h. */ 5780/* end confdefs.h. */
5682 5781
5683int 5782int
5684main () 5783main ()
5685{ 5784{
5686 5785
5687 ; 5786 ;
5688 return 0; 5787 return 0;
5689} 5788}
5690_ACEOF 5789_ACEOF
5691rm -f conftest.$ac_objext conftest$ac_exeext 5790if 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 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5710echo "${ECHO_T}yes" >&6; } 5792$as_echo "yes" >&6; }
5711 X_LIBS="$X_LIBS -R $x_libraries" 5793 X_LIBS="$X_LIBS -R $x_libraries"
5712else 5794else
5713 echo "$as_me: failed program was:" >&5
5714sed 's/^/| /' conftest.$ac_ext >&5
5715
5716 { echo "$as_me:$LINENO: result: neither works" >&5 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5717echo "${ECHO_T}neither works" >&6; } 5796$as_echo "neither works" >&6; }
5718fi 5797fi
5719
5720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5798rm -f core conftest.err conftest.$ac_objext \
5721 conftest$ac_exeext conftest.$ac_ext 5799 conftest$ac_exeext conftest.$ac_ext
5722fi 5800fi
5723
5724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5801rm -f core conftest.err conftest.$ac_objext \
5725 conftest$ac_exeext conftest.$ac_ext 5802 conftest$ac_exeext conftest.$ac_ext
5726 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 5803 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5727 LIBS=$ac_xsave_LIBS 5804 LIBS=$ac_xsave_LIBS
5728 fi 5805 fi
5729 5806
5730 # Check for system-dependent libraries X programs must link with. 5807 # Check for system-dependent libraries X programs must link with.
5736 else 5813 else
5737 # Martyn Johnson says this is needed for Ultrix, if the X 5814 # Martyn Johnson says this is needed for Ultrix, if the X
5738 # libraries were built with DECnet support. And Karl Berry says 5815 # libraries were built with DECnet support. And Karl Berry says
5739 # the Alpha needs dnet_stub (dnet does not exist). 5816 # the Alpha needs dnet_stub (dnet does not exist).
5740 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 5817 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 5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745cat >>conftest.$ac_ext <<_ACEOF
5746/* end confdefs.h. */ 5819/* end confdefs.h. */
5747 5820
5748/* Override any GCC internal prototype to avoid an error. 5821/* Override any GCC internal prototype to avoid an error.
5749 Use char because int might match the return type of a GCC 5822 Use char because int might match the return type of a GCC
5750 builtin and then its argument prototype would still apply. */ 5823 builtin and then its argument prototype would still apply. */
5758return XOpenDisplay (); 5831return XOpenDisplay ();
5759 ; 5832 ;
5760 return 0; 5833 return 0;
5761} 5834}
5762_ACEOF 5835_ACEOF
5763rm -f conftest.$ac_objext conftest$ac_exeext 5836if 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 5837
5838else
5786 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 5839 { $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; } 5840$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5788if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 5841if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5789 echo $ECHO_N "(cached) $ECHO_C" >&6 5842 $as_echo_n "(cached) " >&6
5790else 5843else
5791 ac_check_lib_save_LIBS=$LIBS 5844 ac_check_lib_save_LIBS=$LIBS
5792LIBS="-ldnet $LIBS" 5845LIBS="-ldnet $LIBS"
5793cat >conftest.$ac_ext <<_ACEOF
5794/* confdefs.h. */
5795_ACEOF
5796cat confdefs.h >>conftest.$ac_ext 5846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797cat >>conftest.$ac_ext <<_ACEOF
5798/* end confdefs.h. */ 5847/* end confdefs.h. */
5799 5848
5800/* Override any GCC internal prototype to avoid an error. 5849/* Override any GCC internal prototype to avoid an error.
5801 Use char because int might match the return type of a GCC 5850 Use char because int might match the return type of a GCC
5802 builtin and then its argument prototype would still apply. */ 5851 builtin and then its argument prototype would still apply. */
5810return dnet_ntoa (); 5859return dnet_ntoa ();
5811 ; 5860 ;
5812 return 0; 5861 return 0;
5813} 5862}
5814_ACEOF 5863_ACEOF
5815rm -f conftest.$ac_objext conftest$ac_exeext 5864if 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 5865 ac_cv_lib_dnet_dnet_ntoa=yes
5834else 5866else
5835 echo "$as_me: failed program was:" >&5
5836sed 's/^/| /' conftest.$ac_ext >&5
5837
5838 ac_cv_lib_dnet_dnet_ntoa=no 5867 ac_cv_lib_dnet_dnet_ntoa=no
5839fi 5868fi
5840
5841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5869rm -f core conftest.err conftest.$ac_objext \
5842 conftest$ac_exeext conftest.$ac_ext 5870 conftest$ac_exeext conftest.$ac_ext
5843LIBS=$ac_check_lib_save_LIBS 5871LIBS=$ac_check_lib_save_LIBS
5844fi 5872fi
5845{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 5873{ $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; } 5874$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5847if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 5875if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5848 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 5876 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5849fi 5877fi
5850 5878
5851 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5879 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5852 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 5880 { $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; } 5881$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5854if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 5882if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5855 echo $ECHO_N "(cached) $ECHO_C" >&6 5883 $as_echo_n "(cached) " >&6
5856else 5884else
5857 ac_check_lib_save_LIBS=$LIBS 5885 ac_check_lib_save_LIBS=$LIBS
5858LIBS="-ldnet_stub $LIBS" 5886LIBS="-ldnet_stub $LIBS"
5859cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h. */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext 5887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h. */ 5888/* end confdefs.h. */
5865 5889
5866/* Override any GCC internal prototype to avoid an error. 5890/* Override any GCC internal prototype to avoid an error.
5867 Use char because int might match the return type of a GCC 5891 Use char because int might match the return type of a GCC
5868 builtin and then its argument prototype would still apply. */ 5892 builtin and then its argument prototype would still apply. */
5876return dnet_ntoa (); 5900return dnet_ntoa ();
5877 ; 5901 ;
5878 return 0; 5902 return 0;
5879} 5903}
5880_ACEOF 5904_ACEOF
5881rm -f conftest.$ac_objext conftest$ac_exeext 5905if 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 5906 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5900else 5907else
5901 echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
5904 ac_cv_lib_dnet_stub_dnet_ntoa=no 5908 ac_cv_lib_dnet_stub_dnet_ntoa=no
5905fi 5909fi
5906
5907rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5910rm -f core conftest.err conftest.$ac_objext \
5908 conftest$ac_exeext conftest.$ac_ext 5911 conftest$ac_exeext conftest.$ac_ext
5909LIBS=$ac_check_lib_save_LIBS 5912LIBS=$ac_check_lib_save_LIBS
5910fi 5913fi
5911{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 5914{ $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; } 5915$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5913if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 5916if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5914 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 5917 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5915fi 5918fi
5916 5919
5917 fi 5920 fi
5918fi 5921fi
5919
5920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5922rm -f core conftest.err conftest.$ac_objext \
5921 conftest$ac_exeext conftest.$ac_ext 5923 conftest$ac_exeext conftest.$ac_ext
5922 LIBS="$ac_xsave_LIBS" 5924 LIBS="$ac_xsave_LIBS"
5923 5925
5924 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 5926 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5925 # to get the SysV transport functions. 5927 # to get the SysV transport functions.
5926 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 5928 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5927 # needs -lnsl. 5929 # needs -lnsl.
5928 # The nsl library prevents programs from opening the X display 5930 # The nsl library prevents programs from opening the X display
5929 # on Irix 5.2, according to T.E. Dickey. 5931 # on Irix 5.2, according to T.E. Dickey.
5930 # The functions gethostbyname, getservbyname, and inet_addr are 5932 # The functions gethostbyname, getservbyname, and inet_addr are
5931 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 5933 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5932 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5934 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 5935if 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 5936
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 5937fi
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 5938
6014 if test $ac_cv_func_gethostbyname = no; then 5939 if test $ac_cv_func_gethostbyname = no; then
6015 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6016echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5941$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6017if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5942if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6018 echo $ECHO_N "(cached) $ECHO_C" >&6 5943 $as_echo_n "(cached) " >&6
6019else 5944else
6020 ac_check_lib_save_LIBS=$LIBS 5945 ac_check_lib_save_LIBS=$LIBS
6021LIBS="-lnsl $LIBS" 5946LIBS="-lnsl $LIBS"
6022cat >conftest.$ac_ext <<_ACEOF
6023/* confdefs.h. */
6024_ACEOF
6025cat confdefs.h >>conftest.$ac_ext 5947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026cat >>conftest.$ac_ext <<_ACEOF
6027/* end confdefs.h. */ 5948/* end confdefs.h. */
6028 5949
6029/* Override any GCC internal prototype to avoid an error. 5950/* Override any GCC internal prototype to avoid an error.
6030 Use char because int might match the return type of a GCC 5951 Use char because int might match the return type of a GCC
6031 builtin and then its argument prototype would still apply. */ 5952 builtin and then its argument prototype would still apply. */
6039return gethostbyname (); 5960return gethostbyname ();
6040 ; 5961 ;
6041 return 0; 5962 return 0;
6042} 5963}
6043_ACEOF 5964_ACEOF
6044rm -f conftest.$ac_objext conftest$ac_exeext 5965if 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 5966 ac_cv_lib_nsl_gethostbyname=yes
6063else 5967else
6064 echo "$as_me: failed program was:" >&5
6065sed 's/^/| /' conftest.$ac_ext >&5
6066
6067 ac_cv_lib_nsl_gethostbyname=no 5968 ac_cv_lib_nsl_gethostbyname=no
6068fi 5969fi
6069
6070rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5970rm -f core conftest.err conftest.$ac_objext \
6071 conftest$ac_exeext conftest.$ac_ext 5971 conftest$ac_exeext conftest.$ac_ext
6072LIBS=$ac_check_lib_save_LIBS 5972LIBS=$ac_check_lib_save_LIBS
6073fi 5973fi
6074{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6075echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5975$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6076if test $ac_cv_lib_nsl_gethostbyname = yes; then 5976if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6077 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 5977 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6078fi 5978fi
6079 5979
6080 if test $ac_cv_lib_nsl_gethostbyname = no; then 5980 if test $ac_cv_lib_nsl_gethostbyname = no; then
6081 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6082echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 5982$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6083if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 5983if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
6084 echo $ECHO_N "(cached) $ECHO_C" >&6 5984 $as_echo_n "(cached) " >&6
6085else 5985else
6086 ac_check_lib_save_LIBS=$LIBS 5986 ac_check_lib_save_LIBS=$LIBS
6087LIBS="-lbsd $LIBS" 5987LIBS="-lbsd $LIBS"
6088cat >conftest.$ac_ext <<_ACEOF
6089/* confdefs.h. */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext 5988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h. */ 5989/* end confdefs.h. */
6094 5990
6095/* Override any GCC internal prototype to avoid an error. 5991/* Override any GCC internal prototype to avoid an error.
6096 Use char because int might match the return type of a GCC 5992 Use char because int might match the return type of a GCC
6097 builtin and then its argument prototype would still apply. */ 5993 builtin and then its argument prototype would still apply. */
6105return gethostbyname (); 6001return gethostbyname ();
6106 ; 6002 ;
6107 return 0; 6003 return 0;
6108} 6004}
6109_ACEOF 6005_ACEOF
6110rm -f conftest.$ac_objext conftest$ac_exeext 6006if 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 6007 ac_cv_lib_bsd_gethostbyname=yes
6129else 6008else
6130 echo "$as_me: failed program was:" >&5
6131sed 's/^/| /' conftest.$ac_ext >&5
6132
6133 ac_cv_lib_bsd_gethostbyname=no 6009 ac_cv_lib_bsd_gethostbyname=no
6134fi 6010fi
6135
6136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6011rm -f core conftest.err conftest.$ac_objext \
6137 conftest$ac_exeext conftest.$ac_ext 6012 conftest$ac_exeext conftest.$ac_ext
6138LIBS=$ac_check_lib_save_LIBS 6013LIBS=$ac_check_lib_save_LIBS
6139fi 6014fi
6140{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6141echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 6016$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6142if test $ac_cv_lib_bsd_gethostbyname = yes; then 6017if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
6143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6018 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6144fi 6019fi
6145 6020
6146 fi 6021 fi
6147 fi 6022 fi
6151 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 6026 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6152 # on later versions), says Simon Leinen: it contains gethostby* 6027 # on later versions), says Simon Leinen: it contains gethostby*
6153 # variants that don't use the name server (or something). -lsocket 6028 # variants that don't use the name server (or something). -lsocket
6154 # must be given before -lnsl if both are needed. We assume that 6029 # must be given before -lnsl if both are needed. We assume that
6155 # if connect needs -lnsl, so does gethostbyname. 6030 # if connect needs -lnsl, so does gethostbyname.
6156 { echo "$as_me:$LINENO: checking for connect" >&5 6031 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6157echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 6032if 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 6033
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 6034fi
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 6035
6238 if test $ac_cv_func_connect = no; then 6036 if test $ac_cv_func_connect = no; then
6239 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6240echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 6038$as_echo_n "checking for connect in -lsocket... " >&6; }
6241if test "${ac_cv_lib_socket_connect+set}" = set; then 6039if test "${ac_cv_lib_socket_connect+set}" = set; then :
6242 echo $ECHO_N "(cached) $ECHO_C" >&6 6040 $as_echo_n "(cached) " >&6
6243else 6041else
6244 ac_check_lib_save_LIBS=$LIBS 6042 ac_check_lib_save_LIBS=$LIBS
6245LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6043LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6246cat >conftest.$ac_ext <<_ACEOF
6247/* confdefs.h. */
6248_ACEOF
6249cat confdefs.h >>conftest.$ac_ext 6044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250cat >>conftest.$ac_ext <<_ACEOF
6251/* end confdefs.h. */ 6045/* end confdefs.h. */
6252 6046
6253/* Override any GCC internal prototype to avoid an error. 6047/* Override any GCC internal prototype to avoid an error.
6254 Use char because int might match the return type of a GCC 6048 Use char because int might match the return type of a GCC
6255 builtin and then its argument prototype would still apply. */ 6049 builtin and then its argument prototype would still apply. */
6263return connect (); 6057return connect ();
6264 ; 6058 ;
6265 return 0; 6059 return 0;
6266} 6060}
6267_ACEOF 6061_ACEOF
6268rm -f conftest.$ac_objext conftest$ac_exeext 6062if 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 6063 ac_cv_lib_socket_connect=yes
6287else 6064else
6288 echo "$as_me: failed program was:" >&5
6289sed 's/^/| /' conftest.$ac_ext >&5
6290
6291 ac_cv_lib_socket_connect=no 6065 ac_cv_lib_socket_connect=no
6292fi 6066fi
6293
6294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6067rm -f core conftest.err conftest.$ac_objext \
6295 conftest$ac_exeext conftest.$ac_ext 6068 conftest$ac_exeext conftest.$ac_ext
6296LIBS=$ac_check_lib_save_LIBS 6069LIBS=$ac_check_lib_save_LIBS
6297fi 6070fi
6298{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6299echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 6072$as_echo "$ac_cv_lib_socket_connect" >&6; }
6300if test $ac_cv_lib_socket_connect = yes; then 6073if test "x$ac_cv_lib_socket_connect" = x""yes; then :
6301 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6074 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6302fi 6075fi
6303 6076
6304 fi 6077 fi
6305 6078
6306 # Guillermo Gomez says -lposix is necessary on A/UX. 6079 # Guillermo Gomez says -lposix is necessary on A/UX.
6307 { echo "$as_me:$LINENO: checking for remove" >&5 6080 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6308echo $ECHO_N "checking for remove... $ECHO_C" >&6; } 6081if 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 6082
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 6083fi
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 6084
6389 if test $ac_cv_func_remove = no; then 6085 if test $ac_cv_func_remove = no; then
6390 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6391echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 6087$as_echo_n "checking for remove in -lposix... " >&6; }
6392if test "${ac_cv_lib_posix_remove+set}" = set; then 6088if test "${ac_cv_lib_posix_remove+set}" = set; then :
6393 echo $ECHO_N "(cached) $ECHO_C" >&6 6089 $as_echo_n "(cached) " >&6
6394else 6090else
6395 ac_check_lib_save_LIBS=$LIBS 6091 ac_check_lib_save_LIBS=$LIBS
6396LIBS="-lposix $LIBS" 6092LIBS="-lposix $LIBS"
6397cat >conftest.$ac_ext <<_ACEOF
6398/* confdefs.h. */
6399_ACEOF
6400cat confdefs.h >>conftest.$ac_ext 6093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401cat >>conftest.$ac_ext <<_ACEOF
6402/* end confdefs.h. */ 6094/* end confdefs.h. */
6403 6095
6404/* Override any GCC internal prototype to avoid an error. 6096/* Override any GCC internal prototype to avoid an error.
6405 Use char because int might match the return type of a GCC 6097 Use char because int might match the return type of a GCC
6406 builtin and then its argument prototype would still apply. */ 6098 builtin and then its argument prototype would still apply. */
6414return remove (); 6106return remove ();
6415 ; 6107 ;
6416 return 0; 6108 return 0;
6417} 6109}
6418_ACEOF 6110_ACEOF
6419rm -f conftest.$ac_objext conftest$ac_exeext 6111if 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 6112 ac_cv_lib_posix_remove=yes
6438else 6113else
6439 echo "$as_me: failed program was:" >&5
6440sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 ac_cv_lib_posix_remove=no 6114 ac_cv_lib_posix_remove=no
6443fi 6115fi
6444
6445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6116rm -f core conftest.err conftest.$ac_objext \
6446 conftest$ac_exeext conftest.$ac_ext 6117 conftest$ac_exeext conftest.$ac_ext
6447LIBS=$ac_check_lib_save_LIBS 6118LIBS=$ac_check_lib_save_LIBS
6448fi 6119fi
6449{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 6120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6450echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 6121$as_echo "$ac_cv_lib_posix_remove" >&6; }
6451if test $ac_cv_lib_posix_remove = yes; then 6122if test "x$ac_cv_lib_posix_remove" = x""yes; then :
6452 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 6123 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6453fi 6124fi
6454 6125
6455 fi 6126 fi
6456 6127
6457 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6128 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6458 { echo "$as_me:$LINENO: checking for shmat" >&5 6129 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6459echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } 6130if 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 6131
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 6132fi
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 6133
6540 if test $ac_cv_func_shmat = no; then 6134 if test $ac_cv_func_shmat = no; then
6541 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6542echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 6136$as_echo_n "checking for shmat in -lipc... " >&6; }
6543if test "${ac_cv_lib_ipc_shmat+set}" = set; then 6137if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
6544 echo $ECHO_N "(cached) $ECHO_C" >&6 6138 $as_echo_n "(cached) " >&6
6545else 6139else
6546 ac_check_lib_save_LIBS=$LIBS 6140 ac_check_lib_save_LIBS=$LIBS
6547LIBS="-lipc $LIBS" 6141LIBS="-lipc $LIBS"
6548cat >conftest.$ac_ext <<_ACEOF
6549/* confdefs.h. */
6550_ACEOF
6551cat confdefs.h >>conftest.$ac_ext 6142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552cat >>conftest.$ac_ext <<_ACEOF
6553/* end confdefs.h. */ 6143/* end confdefs.h. */
6554 6144
6555/* Override any GCC internal prototype to avoid an error. 6145/* Override any GCC internal prototype to avoid an error.
6556 Use char because int might match the return type of a GCC 6146 Use char because int might match the return type of a GCC
6557 builtin and then its argument prototype would still apply. */ 6147 builtin and then its argument prototype would still apply. */
6565return shmat (); 6155return shmat ();
6566 ; 6156 ;
6567 return 0; 6157 return 0;
6568} 6158}
6569_ACEOF 6159_ACEOF
6570rm -f conftest.$ac_objext conftest$ac_exeext 6160if 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 6161 ac_cv_lib_ipc_shmat=yes
6589else 6162else
6590 echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_cv_lib_ipc_shmat=no 6163 ac_cv_lib_ipc_shmat=no
6594fi 6164fi
6595
6596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6165rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext 6166 conftest$ac_exeext conftest.$ac_ext
6598LIBS=$ac_check_lib_save_LIBS 6167LIBS=$ac_check_lib_save_LIBS
6599fi 6168fi
6600{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 6169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6601echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 6170$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6602if test $ac_cv_lib_ipc_shmat = yes; then 6171if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
6603 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6172 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6604fi 6173fi
6605 6174
6606 fi 6175 fi
6607 fi 6176 fi
6613 # check for ICE first), but we must link in the order -lSM -lICE or 6182 # 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. 6183 # 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 6184 # These have to be linked with before -lX11, unlike the other
6616 # libraries we check for below, so use a different variable. 6185 # libraries we check for below, so use a different variable.
6617 # John Interrante, Karl Berry 6186 # John Interrante, Karl Berry
6618 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6619echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 6188$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6620if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 6189if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
6621 echo $ECHO_N "(cached) $ECHO_C" >&6 6190 $as_echo_n "(cached) " >&6
6622else 6191else
6623 ac_check_lib_save_LIBS=$LIBS 6192 ac_check_lib_save_LIBS=$LIBS
6624LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6193LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6625cat >conftest.$ac_ext <<_ACEOF
6626/* confdefs.h. */
6627_ACEOF
6628cat confdefs.h >>conftest.$ac_ext 6194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629cat >>conftest.$ac_ext <<_ACEOF
6630/* end confdefs.h. */ 6195/* end confdefs.h. */
6631 6196
6632/* Override any GCC internal prototype to avoid an error. 6197/* Override any GCC internal prototype to avoid an error.
6633 Use char because int might match the return type of a GCC 6198 Use char because int might match the return type of a GCC
6634 builtin and then its argument prototype would still apply. */ 6199 builtin and then its argument prototype would still apply. */
6642return IceConnectionNumber (); 6207return IceConnectionNumber ();
6643 ; 6208 ;
6644 return 0; 6209 return 0;
6645} 6210}
6646_ACEOF 6211_ACEOF
6647rm -f conftest.$ac_objext conftest$ac_exeext 6212if ac_fn_cxx_try_link "$LINENO"; then :
6648if { (ac_try="$ac_link" 6213 ac_cv_lib_ICE_IceConnectionNumber=yes
6649case "(($ac_try" in 6214else
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6215 ac_cv_lib_ICE_IceConnectionNumber=no
6651 *) ac_try_echo=$ac_try;; 6216fi
6217rm -f core conftest.err conftest.$ac_objext \
6218 conftest$ac_exeext conftest.$ac_ext
6219LIBS=$ac_check_lib_save_LIBS
6220fi
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6222$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6223if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
6224 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6225fi
6226
6227 LDFLAGS=$ac_save_LDFLAGS
6228
6229fi
6230
6231
6232AFTERIMAGE_CFLAGS=
6233AFTERIMAGE_LIBS=
6234AFTERIMAGE_VERSION=
6235
6236if test x$support_afterimage = xyes; then
6237 support_afterimage=no
6238
6239 if test "x$afterimage_config" = "x" ; then
6240 # Extract the first word of "afterimage-config", so it can be a program name with args.
6241set dummy afterimage-config; ac_word=$2
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243$as_echo_n "checking for $ac_word... " >&6; }
6244if test "${ac_cv_path_afterimage_config+set}" = set; then :
6245 $as_echo_n "(cached) " >&6
6246else
6247 case $afterimage_config in
6248 [\\/]* | ?:[\\/]*)
6249 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6250 ;;
6251 *)
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253for as_dir in $PATH
6254do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6259 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6262 fi
6263done
6264 done
6265IFS=$as_save_IFS
6266
6267 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6268 ;;
6652esac 6269esac
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 6270fi
6672 6271afterimage_config=$ac_cv_path_afterimage_config
6673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6272if test -n "$afterimage_config"; then
6674 conftest$ac_exeext conftest.$ac_ext 6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afterimage_config" >&5
6675LIBS=$ac_check_lib_save_LIBS 6274$as_echo "$afterimage_config" >&6; }
6676fi
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
6683 LDFLAGS=$ac_save_LDFLAGS
6684
6685fi
6686
6687
6688
6689if test x$support_xpm = xyes; then
6690
6691
6692
6693# Initialize some more variables set by options.
6694# The variables have the same names as the options, with
6695# dashes changed to underlines.
6696
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 6275else
6738 vt_xpm_includes=NO 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 fi 6277$as_echo "no" >&6; }
6740 if test -n "$xpm_libraries"; then 6278fi
6741 vt_xpm_libraries=$xpm_libraries
6742 else
6743 vt_xpm_libraries=NO
6744 fi
6745 6279
6746 if test "$vt_xpm_includes" = NO; then
6747 # Guess where to find xpm.h
6748 6280
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
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 6281 fi
6832 done 6282 if test "x$afterimage_config" != "xno" ; then
6833fi 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5
6834 6284$as_echo_n "checking for libAfterImage version >= 1.15... " >&6; }
6835rm -f conftest.err conftest.$ac_ext 6285 xAFTERIMAGE_VERSION=`$afterimage_config --version`
6836fi 6286 if test -n "$xAFTERIMAGE_VERSION" ; then
6837 6287 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6838if test "$vt_xpm_libraries" = NO; then 6288 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6839 # Check for the libraries. 6289 if test "x$xAFTERIMAGE_LIBS" != "x"; then
6840 6290 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
6841 # See if we find them without any special options. 6291 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
6842 # Don't add to $LIBS permanently. 6292 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6843 ac_save_LIBS="$LIBS" 6293 support_afterimage=yes
6844 LIBS="$LIBS $X_LIBS -lXpm -lX11" 6294 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6845cat >conftest.$ac_ext <<_ACEOF 6295 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6846/* confdefs.h. */ 6296 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
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
6941 ac_cv_have_xpm="have_xpm=yes \
6942 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6943 vt_xpm_include_X11=$vt_xpm_include_X11"
6944 fi
6945fi
6946 eval "$ac_cv_have_xpm"
6947fi
6948
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
6991
6992fi
6993
6994rm -f conftest.err conftest.$ac_ext
6995 else
6996 if test -r "$xpm_includes/X11/xpm.h"; then
6997 vt_xpm_include_X11=yes
6998 fi 6297 fi
6999 fi 6298 fi
7000 fi 6299 fi
7001 vt_xpm_includes=$xpm_includes 6300 if test "x$support_afterimage" = "xyes"; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5
6302$as_echo "$AFTERIMAGE_LIBS" >&6; }
6303 else
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305$as_echo "no" >&6; }
7002 fi 6306 fi
7003 if test "x$xpm_libraries" != xNO; then
7004 vt_xpm_libraries=$xpm_libraries
7005 fi 6307 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 6308fi
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
7365
7366
7367 6309
7368for ac_header in \ 6310for 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 \ 6311 sys/byteorder.h \
7377 sys/ioctl.h \ 6312 sys/ioctl.h \
7378 sys/select.h \
7379 sys/sockio.h \ 6313 sys/sockio.h \
7380 sys/strredir.h \ 6314 sys/strredir.h \
7381 sys/time.h \
7382 stdint.h \ 6315 stdint.h \
7383 wchar.h \ 6316 wchar.h \
7384 cwchar \ 6317 cwchar \
7385 clocale \
7386 6318
7387do 6319do :
7388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6320 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 6321ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7390 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6322eval as_val=\$$as_ac_Header
7391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6323 if test "x$as_val" = x""yes; then :
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 6324 cat >>confdefs.h <<_ACEOF
7518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6325#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7519_ACEOF 6326_ACEOF
7520 6327
7521fi 6328fi
7522 6329
7523done 6330done
7524 6331
7525 6332
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 6333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPointer" >&5
7779echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } 6334$as_echo_n "checking for XPointer... " >&6; }
7780if test "${rxvt_cv_xpointer+set}" = set; then 6335if test "${rxvt_cv_xpointer+set}" = set; then :
7781 echo $ECHO_N "(cached) $ECHO_C" >&6 6336 $as_echo_n "(cached) " >&6
7782else 6337else
7783 cat >conftest.$ac_ext <<_ACEOF
7784/* confdefs.h. */
7785_ACEOF
7786cat confdefs.h >>conftest.$ac_ext 6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787cat >>conftest.$ac_ext <<_ACEOF
7788/* end confdefs.h. */ 6339/* end confdefs.h. */
7789#include <X11/Xlib.h> 6340#include <X11/Xlib.h>
7790int 6341int
7791main () 6342main ()
7792{ 6343{
7793XPointer dummy; 6344XPointer dummy;
7794 ; 6345 ;
7795 return 0; 6346 return 0;
7796} 6347}
7797_ACEOF 6348_ACEOF
7798rm -f conftest.$ac_objext 6349if 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 6350 rxvt_cv_xpointer=yes
7816else 6351else
7817 echo "$as_me: failed program was:" >&5
7818sed 's/^/| /' conftest.$ac_ext >&5
7819
7820 rxvt_cv_xpointer=no 6352 rxvt_cv_xpointer=no
7821fi 6353fi
7822
7823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824fi 6355fi
7825{ echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xpointer" >&5
7826echo "${ECHO_T}$rxvt_cv_xpointer" >&6; } 6357$as_echo "$rxvt_cv_xpointer" >&6; }
7827if test x$rxvt_cv_xpointer = xyes; then 6358if test x$rxvt_cv_xpointer = xyes; then
7828 6359
7829cat >>confdefs.h <<\_ACEOF 6360$as_echo "#define HAVE_XPOINTER 1" >>confdefs.h
7830#define HAVE_XPOINTER 1
7831_ACEOF
7832 6361
7833fi 6362fi
7834LIBS=$ac_save_LIBS
7835CFLAGS=$ac_save_CFLAGS
7836 6363
7837{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 6364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
7838echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } 6365$as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
7839if test "${rxvt_xlib_illegal_access+set}" = set; then 6366if test "${rxvt_cv_xlib_illegal_access+set}" = set; then :
7840 echo $ECHO_N "(cached) $ECHO_C" >&6 6367 $as_echo_n "(cached) " >&6
7841else 6368else
7842 cat >conftest.$ac_ext <<_ACEOF
7843/* confdefs.h. */
7844_ACEOF
7845cat confdefs.h >>conftest.$ac_ext 6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846cat >>conftest.$ac_ext <<_ACEOF
7847/* end confdefs.h. */ 6370/* end confdefs.h. */
7848 6371
7849#define XLIB_ILLEGAL_ACCESS 6372#define XLIB_ILLEGAL_ACCESS
7850#include <X11/Xlib.h> 6373#include <X11/Xlib.h>
7851 6374
7858 6381
7859 ; 6382 ;
7860 return 0; 6383 return 0;
7861} 6384}
7862_ACEOF 6385_ACEOF
7863rm -f conftest.$ac_objext 6386if 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 6387 rxvt_cv_xlib_illegal_access=yes
7881else 6388else
7882 echo "$as_me: failed program was:" >&5
7883sed 's/^/| /' conftest.$ac_ext >&5
7884
7885 rxvt_xlib_illegal_access=no 6389 rxvt_cv_xlib_illegal_access=no
7886 6390
7887fi 6391fi
7888
7889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890fi 6393fi
7891{ echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5 6394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
7892echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6; } 6395$as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
7893if test x$rxvt_xlib_illegal_access = xyes; then 6396if test x$rxvt_cv_xlib_illegal_access = xyes; then
7894 6397
7895cat >>confdefs.h <<\_ACEOF 6398$as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
7896#define XLIB_ILLEGAL_ACCESS 1
7897_ACEOF
7898 6399
7899fi 6400fi
7900 6401
7901{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 6402ac_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 6403if test "x$ac_cv_type_mode_t" = x""yes; then :
8132 : 6404
8133else 6405else
8134 6406
8135cat >>confdefs.h <<_ACEOF 6407cat >>confdefs.h <<_ACEOF
8136#define mode_t int 6408#define mode_t int
8137_ACEOF 6409_ACEOF
8138 6410
8139fi 6411fi
8140 6412
8141{ echo "$as_me:$LINENO: checking for pid_t" >&5 6413ac_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 6414if test "x$ac_cv_type_pid_t" = x""yes; then :
8195 : 6415
8196else 6416else
8197 6417
8198cat >>confdefs.h <<_ACEOF 6418cat >>confdefs.h <<_ACEOF
8199#define pid_t int 6419#define pid_t int
8200_ACEOF 6420_ACEOF
8201 6421
8202fi 6422fi
8203 6423
8204{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 6424{ $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; } 6425$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8206if test "${ac_cv_type_uid_t+set}" = set; then 6426if test "${ac_cv_type_uid_t+set}" = set; then :
8207 echo $ECHO_N "(cached) $ECHO_C" >&6 6427 $as_echo_n "(cached) " >&6
8208else 6428else
8209 cat >conftest.$ac_ext <<_ACEOF
8210/* confdefs.h. */
8211_ACEOF
8212cat confdefs.h >>conftest.$ac_ext 6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213cat >>conftest.$ac_ext <<_ACEOF
8214/* end confdefs.h. */ 6430/* end confdefs.h. */
8215#include <sys/types.h> 6431#include <sys/types.h>
8216 6432
8217_ACEOF 6433_ACEOF
8218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8219 $EGREP "uid_t" >/dev/null 2>&1; then 6435 $EGREP "uid_t" >/dev/null 2>&1; then :
8220 ac_cv_type_uid_t=yes 6436 ac_cv_type_uid_t=yes
8221else 6437else
8222 ac_cv_type_uid_t=no 6438 ac_cv_type_uid_t=no
8223fi 6439fi
8224rm -f conftest* 6440rm -f conftest*
8225 6441
8226fi 6442fi
8227{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 6443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8228echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } 6444$as_echo "$ac_cv_type_uid_t" >&6; }
8229if test $ac_cv_type_uid_t = no; then 6445if test $ac_cv_type_uid_t = no; then
8230 6446
6447$as_echo "#define uid_t int" >>confdefs.h
6448
6449
6450$as_echo "#define gid_t int" >>confdefs.h
6451
6452fi
6453
6454ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6455case $ac_cv_c_int16_t in #(
6456 no|yes) ;; #(
6457 *)
6458
8231cat >>confdefs.h <<\_ACEOF 6459cat >>confdefs.h <<_ACEOF
8232#define uid_t int 6460#define int16_t $ac_cv_c_int16_t
8233_ACEOF 6461_ACEOF
8234 6462;;
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 6463esac
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 6464
8289 ac_cv_type_short=no 6465ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
8290fi 6466case $ac_cv_c_uint16_t in #(
6467 no|yes) ;; #(
6468 *)
8291 6469
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 6470
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 6471cat >>confdefs.h <<_ACEOF
8313/* end confdefs.h. */ 6472#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 6473_ACEOF
8326rm -f conftest.$ac_objext 6474;;
8327if { (ac_try="$ac_compile" 6475 esac
8328case "(($ac_try" in 6476
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6477ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
8330 *) ac_try_echo=$ac_try;; 6478case $ac_cv_c_int32_t in #(
6479 no|yes) ;; #(
6480 *)
6481
6482cat >>confdefs.h <<_ACEOF
6483#define int32_t $ac_cv_c_int32_t
6484_ACEOF
6485;;
8331esac 6486esac
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 6487
8359 ; 6488ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
8360 return 0; 6489case $ac_cv_c_uint32_t in #(
8361} 6490 no|yes) ;; #(
8362_ACEOF 6491 *)
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 6492
8385 ac_lo=`expr $ac_mid + 1` 6493$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 6494
8642 6495
8643cat >>confdefs.h <<_ACEOF 6496cat >>confdefs.h <<_ACEOF
8644#define SIZEOF_SHORT $ac_cv_sizeof_short 6497#define uint32_t $ac_cv_c_uint32_t
8645_ACEOF 6498_ACEOF
8646 6499;;
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 6500 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 6501
8694 ac_cv_type_int=no
8695fi
8696 6502
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 \ 6503for ac_func in unsetenv
10263 unsetenv \ 6504do :
10264 setutent \ 6505 ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
10265 on_exit \ 6506if 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 6507 cat >>confdefs.h <<_ACEOF
10353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6508#define HAVE_UNSETENV 1
10354_ACEOF 6509_ACEOF
10355 6510
10356fi 6511fi
10357done 6512done
10358 6513
10361support_utmp=yes 6516support_utmp=yes
10362support_wtmp=yes 6517support_wtmp=yes
10363support_lastlog=yes 6518support_lastlog=yes
10364 6519
10365# Check whether --enable-utmp was given. 6520# Check whether --enable-utmp was given.
10366if test "${enable_utmp+set}" = set; then 6521if test "${enable_utmp+set}" = set; then :
10367 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then 6522 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
10368 support_utmp=$enableval 6523 support_utmp=$enableval
10369 fi 6524 fi
10370fi 6525fi
10371 6526
10372 6527
10373# Check whether --enable-wtmp was given. 6528# Check whether --enable-wtmp was given.
10374if test "${enable_wtmp+set}" = set; then 6529if test "${enable_wtmp+set}" = set; then :
10375 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then 6530 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
10376 support_wtmp=$enableval 6531 support_wtmp=$enableval
10377 fi 6532 fi
10378fi 6533fi
10379 6534
10380 6535
10381# Check whether --enable-lastlog was given. 6536# Check whether --enable-lastlog was given.
10382if test "${enable_lastlog+set}" = set; then 6537if test "${enable_lastlog+set}" = set; then :
10383 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then 6538 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
10384 support_lastlog=$enableval 6539 support_lastlog=$enableval
10385 fi 6540 fi
10386fi 6541fi
10387 6542
10388 6543
10389if test x$support_utmp = xyes; then 6544if test x$support_utmp = xyes; then
10390 6545
10391cat >>confdefs.h <<\_ACEOF 6546$as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
10392#define UTMP_SUPPORT 1
10393_ACEOF
10394 6547
10395fi 6548fi
10396if test x$support_wtmp = xyes; then 6549if test x$support_wtmp = xyes; then
10397 6550
10398cat >>confdefs.h <<\_ACEOF 6551$as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
10399#define WTMP_SUPPORT 1
10400_ACEOF
10401 6552
10402fi 6553fi
10403if test x$support_lastlog = xyes; then 6554if test x$support_lastlog = xyes; then
10404 6555
10405cat >>confdefs.h <<\_ACEOF 6556$as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
10406#define LASTLOG_SUPPORT 1
10407_ACEOF
10408 6557
10409fi 6558fi
10410
10411
10412
10413 6559
10414for ac_func in \ 6560for ac_func in \
10415 ttyslot \
10416 updwtmp \ 6561 updwtmp \
10417 updwtmpx \ 6562 updwtmpx \
6563 updlastlogx \
10418 6564
10419do 6565do :
10420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10421{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6567ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6568eval as_val=\$$as_ac_var
10423if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6569 if test "x$as_val" = x""yes; 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 6570 cat >>confdefs.h <<_ACEOF
10505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6571#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10506_ACEOF 6572_ACEOF
10507 6573
10508fi 6574fi
10509done 6575done
10510 6576
10511 6577
10512
10513
10514
10515for ac_header in \ 6578for ac_header in lastlog.h
10516 utmp.h \ 6579do :
10517 utmpx.h \ 6580 ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
10518 lastlog.h \ 6581if 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 6582 cat >>confdefs.h <<_ACEOF
10651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6583#define HAVE_LASTLOG_H 1
10652_ACEOF 6584_ACEOF
10653 6585
10654fi 6586fi
10655 6587
10656done 6588done
10657 6589
10658 6590
10659 6591
10660if test "${ac_cv_header_utmp_h+set}" = set; then 6592for ac_header in utmp.h
10661 { echo "$as_me:$LINENO: checking for utmp.h" >&5 6593do :
10662echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 6594 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 6595if test "x$ac_cv_header_utmp_h" = x""yes; then :
6596 cat >>confdefs.h <<_ACEOF
6597#define HAVE_UTMP_H 1
6598_ACEOF
10786 { echo "$as_me:$LINENO: checking for struct utmp" >&5 6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utmp" >&5
10787echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } 6600$as_echo_n "checking for struct utmp... " >&6; }
10788if test "${struct_utmp+set}" = set; then 6601if test "${pt_cv_struct_utmp+set}" = set; then :
10789 echo $ECHO_N "(cached) $ECHO_C" >&6 6602 $as_echo_n "(cached) " >&6
10790else 6603else
10791 cat >conftest.$ac_ext <<_ACEOF
10792/* confdefs.h. */
10793_ACEOF
10794cat confdefs.h >>conftest.$ac_ext 6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795cat >>conftest.$ac_ext <<_ACEOF
10796/* end confdefs.h. */ 6605/* end confdefs.h. */
10797#include <sys/types.h> 6606#include <sys/types.h>
10798#include <utmp.h> 6607#include <utmp.h>
10799int 6608int
10800main () 6609main ()
10802struct utmp ut; 6611struct utmp ut;
10803 ; 6612 ;
10804 return 0; 6613 return 0;
10805} 6614}
10806_ACEOF 6615_ACEOF
10807rm -f conftest.$ac_objext 6616if 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 6617 pt_cv_struct_utmp=yes
10825else 6618else
10826 echo "$as_me: failed program was:" >&5
10827sed 's/^/| /' conftest.$ac_ext >&5
10828
10829 struct_utmp=no 6619 pt_cv_struct_utmp=no
10830fi 6620fi
10831
10832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10833fi 6622fi
10834{ echo "$as_me:$LINENO: result: $struct_utmp" >&5 6623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmp" >&5
10835echo "${ECHO_T}$struct_utmp" >&6; } 6624$as_echo "$pt_cv_struct_utmp" >&6; }
10836if test x$struct_utmp = xyes; then 6625if test x$pt_cv_struct_utmp = xyes; then
10837 6626
10838cat >>confdefs.h <<\_ACEOF 6627$as_echo "#define HAVE_STRUCT_UTMP 1" >>confdefs.h
10839#define HAVE_STRUCT_UTMP 1
10840_ACEOF
10841 6628
10842fi 6629fi
10843 6630
10844 6631
10845{ echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 6632{ $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; } 6633$as_echo_n "checking for ut_host in utmp struct... " >&6; }
10847if test "${struct_utmp_host+set}" = set; then 6634if test "${pt_cv_struct_utmp_host+set}" = set; then :
10848 echo $ECHO_N "(cached) $ECHO_C" >&6 6635 $as_echo_n "(cached) " >&6
10849else 6636else
10850 cat >conftest.$ac_ext <<_ACEOF
10851/* confdefs.h. */
10852_ACEOF
10853cat confdefs.h >>conftest.$ac_ext 6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854cat >>conftest.$ac_ext <<_ACEOF
10855/* end confdefs.h. */ 6638/* end confdefs.h. */
10856#include <sys/types.h> 6639#include <sys/types.h>
10857#include <utmp.h> 6640#include <utmp.h>
10858int 6641int
10859main () 6642main ()
10861struct utmp ut; ut.ut_host; 6644struct utmp ut; ut.ut_host;
10862 ; 6645 ;
10863 return 0; 6646 return 0;
10864} 6647}
10865_ACEOF 6648_ACEOF
10866rm -f conftest.$ac_objext 6649if 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 6650 pt_cv_struct_utmp_host=yes
10884else 6651else
10885 echo "$as_me: failed program was:" >&5
10886sed 's/^/| /' conftest.$ac_ext >&5
10887
10888 struct_utmp_host=no 6652 pt_cv_struct_utmp_host=no
10889fi 6653fi
10890
10891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10892fi 6655fi
10893{ echo "$as_me:$LINENO: result: $struct_utmp_host" >&5 6656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmp_host" >&5
10894echo "${ECHO_T}$struct_utmp_host" >&6; } 6657$as_echo "$pt_cv_struct_utmp_host" >&6; }
10895if test x$struct_utmp_host = xyes; then 6658if test x$pt_cv_struct_utmp_host = xyes; then
10896 6659
10897cat >>confdefs.h <<\_ACEOF 6660$as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
10898#define HAVE_UTMP_HOST 1
10899_ACEOF
10900 6661
10901fi 6662fi
10902 6663
10903{ echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 6664{ $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; } 6665$as_echo_n "checking for ut_pid in utmp struct... " >&6; }
10905if test "${struct_utmp_pid+set}" = set; then 6666if test "${pt_cv_struct_utmp_pid+set}" = set; then :
10906 echo $ECHO_N "(cached) $ECHO_C" >&6 6667 $as_echo_n "(cached) " >&6
10907else 6668else
10908 cat >conftest.$ac_ext <<_ACEOF
10909/* confdefs.h. */
10910_ACEOF
10911cat confdefs.h >>conftest.$ac_ext 6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10912cat >>conftest.$ac_ext <<_ACEOF
10913/* end confdefs.h. */ 6670/* end confdefs.h. */
10914#include <sys/types.h> 6671#include <sys/types.h>
10915#include <utmp.h> 6672#include <utmp.h>
10916int 6673int
10917main () 6674main ()
10919struct utmp ut; ut.ut_pid; 6676struct utmp ut; ut.ut_pid;
10920 ; 6677 ;
10921 return 0; 6678 return 0;
10922} 6679}
10923_ACEOF 6680_ACEOF
10924rm -f conftest.$ac_objext 6681if 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 6682 pt_cv_struct_utmp_pid=yes
10942else 6683else
10943 echo "$as_me: failed program was:" >&5
10944sed 's/^/| /' conftest.$ac_ext >&5
10945
10946 struct_utmp_pid=no 6684 pt_cv_struct_utmp_pid=no
10947fi 6685fi
10948
10949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950fi 6687fi
10951{ echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5 6688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmp_pid" >&5
10952echo "${ECHO_T}$struct_utmp_pid" >&6; } 6689$as_echo "$pt_cv_struct_utmp_pid" >&6; }
10953if test x$struct_utmp_pid = xyes; then 6690if test x$pt_cv_struct_utmp_pid = xyes; then
10954 6691
6692$as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
6693
6694fi
6695
6696fi
6697
6698done
6699
6700
6701for ac_header in utmpx.h
6702do :
6703 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6704if test "x$ac_cv_header_utmpx_h" = x""yes; then :
10955cat >>confdefs.h <<\_ACEOF 6705 cat >>confdefs.h <<_ACEOF
10956#define HAVE_UTMP_PID 1 6706#define HAVE_UTMPX_H 1
10957_ACEOF 6707_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 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utmpx" >&5
11092echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } 6709$as_echo_n "checking for struct utmpx... " >&6; }
11093if test "${struct_utmpx+set}" = set; then 6710if test "${pt_cv_struct_utmpx+set}" = set; then :
11094 echo $ECHO_N "(cached) $ECHO_C" >&6 6711 $as_echo_n "(cached) " >&6
11095else 6712else
11096 cat >conftest.$ac_ext <<_ACEOF
11097/* confdefs.h. */
11098_ACEOF
11099cat confdefs.h >>conftest.$ac_ext 6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100cat >>conftest.$ac_ext <<_ACEOF
11101/* end confdefs.h. */ 6714/* end confdefs.h. */
11102#include <sys/types.h> 6715#include <sys/types.h>
11103#include <utmpx.h> 6716#include <utmpx.h>
11104int 6717int
11105main () 6718main ()
11107struct utmpx ut; 6720struct utmpx ut;
11108 ; 6721 ;
11109 return 0; 6722 return 0;
11110} 6723}
11111_ACEOF 6724_ACEOF
11112rm -f conftest.$ac_objext 6725if 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 6726 pt_cv_struct_utmpx=yes
11130else 6727else
11131 echo "$as_me: failed program was:" >&5
11132sed 's/^/| /' conftest.$ac_ext >&5
11133
11134 struct_utmpx=no 6728 pt_cv_struct_utmpx=no
11135fi 6729fi
11136
11137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11138fi 6731fi
11139{ echo "$as_me:$LINENO: result: $struct_utmpx" >&5 6732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmpx" >&5
11140echo "${ECHO_T}$struct_utmpx" >&6; } 6733$as_echo "$pt_cv_struct_utmpx" >&6; }
11141if test x$struct_utmpx = xyes; then 6734if test x$pt_cv_struct_utmpx = xyes; then
11142 6735
11143cat >>confdefs.h <<\_ACEOF 6736$as_echo "#define HAVE_STRUCT_UTMPX 1" >>confdefs.h
11144#define HAVE_STRUCT_UTMPX 1
11145_ACEOF
11146 6737
11147fi 6738fi
11148 6739
11149 6740
11150{ echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 6741{ $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; } 6742$as_echo_n "checking for host in utmpx struct... " >&6; }
11152if test "${struct_utmpx_host+set}" = set; then 6743if test "${pt_cv_struct_utmpx_host+set}" = set; then :
11153 echo $ECHO_N "(cached) $ECHO_C" >&6 6744 $as_echo_n "(cached) " >&6
11154else 6745else
11155 cat >conftest.$ac_ext <<_ACEOF
11156/* confdefs.h. */
11157_ACEOF
11158cat confdefs.h >>conftest.$ac_ext 6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159cat >>conftest.$ac_ext <<_ACEOF
11160/* end confdefs.h. */ 6747/* end confdefs.h. */
11161#include <sys/types.h> 6748#include <sys/types.h>
11162#include <utmpx.h> 6749#include <utmpx.h>
11163int 6750int
11164main () 6751main ()
11166struct utmpx utx; utx.ut_host; 6753struct utmpx utx; utx.ut_host;
11167 ; 6754 ;
11168 return 0; 6755 return 0;
11169} 6756}
11170_ACEOF 6757_ACEOF
11171rm -f conftest.$ac_objext 6758if 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 6759 pt_cv_struct_utmpx_host=yes
11189else 6760else
11190 echo "$as_me: failed program was:" >&5
11191sed 's/^/| /' conftest.$ac_ext >&5
11192
11193 struct_utmpx_host=no 6761 pt_cv_struct_utmpx_host=no
11194fi 6762fi
11195
11196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11197fi 6764fi
11198{ echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5 6765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmpx_host" >&5
11199echo "${ECHO_T}$struct_utmpx_host" >&6; } 6766$as_echo "$pt_cv_struct_utmpx_host" >&6; }
11200if test x$struct_utmpx_host = xyes; then 6767if test x$pt_cv_struct_utmpx_host = xyes; then
11201 6768
11202cat >>confdefs.h <<\_ACEOF 6769$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
11203#define HAVE_UTMPX_HOST 1
11204_ACEOF
11205 6770
11206fi 6771fi
11207 6772
11208{ echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 6773{ $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; } 6774$as_echo_n "checking for session in utmpx struct... " >&6; }
11210if test "${struct_utmpx_session+set}" = set; then 6775if test "${pt_cv_struct_utmpx_session+set}" = set; then :
11211 echo $ECHO_N "(cached) $ECHO_C" >&6 6776 $as_echo_n "(cached) " >&6
11212else 6777else
11213 cat >conftest.$ac_ext <<_ACEOF
11214/* confdefs.h. */
11215_ACEOF
11216cat confdefs.h >>conftest.$ac_ext 6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217cat >>conftest.$ac_ext <<_ACEOF
11218/* end confdefs.h. */ 6779/* end confdefs.h. */
11219#include <sys/types.h> 6780#include <sys/types.h>
11220#include <utmpx.h> 6781#include <utmpx.h>
11221int 6782int
11222main () 6783main ()
11224struct utmpx utx; utx.ut_session; 6785struct utmpx utx; utx.ut_session;
11225 ; 6786 ;
11226 return 0; 6787 return 0;
11227} 6788}
11228_ACEOF 6789_ACEOF
11229rm -f conftest.$ac_objext 6790if 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 6791 pt_cv_struct_utmpx_session=yes
11247else 6792else
11248 echo "$as_me: failed program was:" >&5
11249sed 's/^/| /' conftest.$ac_ext >&5
11250
11251 struct_utmpx_session=no 6793 pt_cv_struct_utmpx_session=no
11252fi 6794fi
11253
11254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11255fi 6796fi
11256{ echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmpx_session" >&5
11257echo "${ECHO_T}$struct_utmpx_session" >&6; } 6798$as_echo "$pt_cv_struct_utmpx_session" >&6; }
11258if test x$struct_utmpx_session = xyes; then 6799if test x$pt_cv_struct_utmpx_session = xyes; then
11259 6800
11260cat >>confdefs.h <<\_ACEOF 6801$as_echo "#define HAVE_UTMPX_SESSION 1" >>confdefs.h
11261#define HAVE_UTMPX_SESSION 1
11262_ACEOF
11263 6802
11264fi 6803fi
11265 6804
11266fi 6805fi
11267 6806
6807done
11268 6808
11269{ echo "$as_me:$LINENO: checking for struct lastlog" >&5 6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lastlog" >&5
11270echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } 6810$as_echo_n "checking for struct lastlog... " >&6; }
11271if test "${struct_lastlog+set}" = set; then 6811if test "${pt_cv_struct_lastlog+set}" = set; then :
11272 echo $ECHO_N "(cached) $ECHO_C" >&6 6812 $as_echo_n "(cached) " >&6
11273else 6813else
11274 cat >conftest.$ac_ext <<_ACEOF
11275/* confdefs.h. */
11276_ACEOF
11277cat confdefs.h >>conftest.$ac_ext 6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278cat >>conftest.$ac_ext <<_ACEOF
11279/* end confdefs.h. */ 6815/* end confdefs.h. */
11280#include <sys/types.h> 6816#include <sys/types.h>
11281#include <utmp.h> 6817#include <utmp.h>
11282#ifdef HAVE_LASTLOG_H 6818#ifdef HAVE_LASTLOG_H
11283#include <lastlog.h> 6819#include <lastlog.h>
11289struct lastlog ll; 6825struct lastlog ll;
11290 ; 6826 ;
11291 return 0; 6827 return 0;
11292} 6828}
11293_ACEOF 6829_ACEOF
11294rm -f conftest.$ac_objext 6830if 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 6831 pt_cv_struct_lastlog=yes
11312else 6832else
11313 echo "$as_me: failed program was:" >&5
11314sed 's/^/| /' conftest.$ac_ext >&5
11315
11316 struct_lastlog=no 6833 pt_cv_struct_lastlog=no
11317fi 6834fi
11318
11319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11320fi 6836fi
11321{ echo "$as_me:$LINENO: result: $struct_lastlog" >&5 6837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_lastlog" >&5
11322echo "${ECHO_T}$struct_lastlog" >&6; } 6838$as_echo "$pt_cv_struct_lastlog" >&6; }
11323if test x$struct_lastlog = xyes; then 6839if test x$pt_cv_struct_lastlog = xyes; then
11324 6840
11325cat >>confdefs.h <<\_ACEOF 6841$as_echo "#define HAVE_STRUCT_LASTLOG 1" >>confdefs.h
11326#define HAVE_STRUCT_LASTLOG 1
11327_ACEOF
11328 6842
11329fi 6843fi
11330 6844
11331{ echo "$as_me:$LINENO: checking for struct lastlogx" >&5 6845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lastlogx" >&5
11332echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6; } 6846$as_echo_n "checking for struct lastlogx... " >&6; }
11333if test "${struct_lastlogx+set}" = set; then 6847if test "${pt_cv_struct_lastlogx+set}" = set; then :
11334 echo $ECHO_N "(cached) $ECHO_C" >&6 6848 $as_echo_n "(cached) " >&6
11335else 6849else
11336 cat >conftest.$ac_ext <<_ACEOF
11337/* confdefs.h. */
11338_ACEOF
11339cat confdefs.h >>conftest.$ac_ext 6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340cat >>conftest.$ac_ext <<_ACEOF
11341/* end confdefs.h. */ 6851/* end confdefs.h. */
11342#include <sys/types.h> 6852#include <sys/types.h>
11343#include <utmpx.h> 6853#include <utmpx.h>
11344#ifdef HAVE_LASTLOG_H 6854#ifdef HAVE_LASTLOG_H
11345#include <lastlog.h> 6855#include <lastlog.h>
11351struct lastlogx ll; 6861struct lastlogx ll;
11352 ; 6862 ;
11353 return 0; 6863 return 0;
11354} 6864}
11355_ACEOF 6865_ACEOF
11356rm -f conftest.$ac_objext 6866if 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 6867 pt_cv_struct_lastlogx=yes
11374else 6868else
11375 echo "$as_me: failed program was:" >&5
11376sed 's/^/| /' conftest.$ac_ext >&5
11377
11378 struct_lastlogx=no 6869 pt_cv_struct_lastlogx=no
11379fi 6870fi
11380
11381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11382fi 6872fi
11383{ echo "$as_me:$LINENO: result: $struct_lastlogx" >&5 6873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_lastlogx" >&5
11384echo "${ECHO_T}$struct_lastlogx" >&6; } 6874$as_echo "$pt_cv_struct_lastlogx" >&6; }
11385if test x$struct_lastlogx = xyes; then 6875if test x$pt_cv_struct_lastlogx = xyes; then
11386 6876
11387cat >>confdefs.h <<\_ACEOF 6877$as_echo "#define HAVE_STRUCT_LASTLOGX 1" >>confdefs.h
11388#define HAVE_STRUCT_LASTLOGX 1
11389_ACEOF
11390 6878
11391fi 6879fi
11392 6880
11393 6881
11394{ echo "$as_me:$LINENO: checking where utmp is located" >&5 6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where utmp is located" >&5
11395echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6; } 6883$as_echo_n "checking where utmp is located... " >&6; }
11396if test "${path_utmp+set}" = set; then 6884if test "${pt_cv_path_utmp+set}" = set; then :
11397 echo $ECHO_N "(cached) $ECHO_C" >&6 6885 $as_echo_n "(cached) " >&6
11398else 6886else
11399 if test "$cross_compiling" = yes; then 6887 if test "$cross_compiling" = yes; then :
11400 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5 6888 { $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;} 6889$as_echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
11402else 6890else
11403 cat >conftest.$ac_ext <<_ACEOF
11404/* confdefs.h. */
11405_ACEOF
11406cat confdefs.h >>conftest.$ac_ext 6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407cat >>conftest.$ac_ext <<_ACEOF
11408/* end confdefs.h. */ 6892/* end confdefs.h. */
11409#include <stdio.h> 6893#include <stdio.h>
11410#include <stdlib.h> 6894#include <stdlib.h>
11411#include <sys/types.h> 6895#include <sys/types.h>
11412#include <utmp.h> 6896#include <utmp.h>
11432 } 6916 }
11433 } 6917 }
11434 exit(0); 6918 exit(0);
11435} 6919}
11436_ACEOF 6920_ACEOF
11437rm -f conftest$ac_exeext 6921if 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` 6922 pt_cv_path_utmp=`cat conftestval`
11458else 6923else
11459 echo "$as_me: program exited with status $ac_status" >&5 6924 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 6925fi
11466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6927 conftest.$ac_objext conftest.beam conftest.$ac_ext
11467fi 6928fi
11468 6929
11469
11470fi 6930fi
11471{ echo "$as_me:$LINENO: result: $path_utmp" >&5 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
11472echo "${ECHO_T}$path_utmp" >&6; } 6932$as_echo "$pt_cv_path_utmp" >&6; }
11473if test x$path_utmp != x; then 6933if test x$pt_cv_path_utmp != x; then
11474 6934
11475cat >>confdefs.h <<_ACEOF 6935cat >>confdefs.h <<_ACEOF
11476#define UTMP_FILE "$path_utmp" 6936#define UTMP_FILE "$pt_cv_path_utmp"
11477_ACEOF 6937_ACEOF
11478 6938
11479fi 6939fi
11480 6940
11481 6941
11482{ echo "$as_me:$LINENO: checking where utmpx is located" >&5 6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmp is located" >&5
11483echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6; } 6943$as_echo_n "checking where wtmp is located... " >&6; }
11484if test "${path_utmpx+set}" = set; then 6944if test "${pt_cv_path_wtmp+set}" = set; then :
11485 echo $ECHO_N "(cached) $ECHO_C" >&6 6945 $as_echo_n "(cached) " >&6
11486else 6946else
11487 if test "$cross_compiling" = yes; then 6947 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 6948 { $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;} 6949$as_echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
11588else 6950else
11589 cat >conftest.$ac_ext <<_ACEOF
11590/* confdefs.h. */
11591_ACEOF
11592cat confdefs.h >>conftest.$ac_ext 6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593cat >>conftest.$ac_ext <<_ACEOF
11594/* end confdefs.h. */ 6952/* end confdefs.h. */
11595#include <stdio.h> 6953#include <stdio.h>
11596#include <stdlib.h> 6954#include <stdlib.h>
11597#include <sys/types.h> 6955#include <sys/types.h>
11598#ifdef HAVE_UTMP_H 6956#ifdef HAVE_UTMP_H
11620 } 6978 }
11621 } 6979 }
11622 exit(0); 6980 exit(0);
11623} 6981}
11624_ACEOF 6982_ACEOF
11625rm -f conftest$ac_exeext 6983if 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` 6984 pt_cv_path_wtmp=`cat conftestval`
11646else 6985else
11647 echo "$as_me: program exited with status $ac_status" >&5 6986 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 6987fi
11654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6989 conftest.$ac_objext conftest.beam conftest.$ac_ext
11655fi 6990fi
11656 6991
11657
11658fi 6992fi
11659{ echo "$as_me:$LINENO: result: $path_wtmp" >&5 6993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
11660echo "${ECHO_T}$path_wtmp" >&6; } 6994$as_echo "$pt_cv_path_wtmp" >&6; }
11661if test x$path_wtmp != x; then 6995if test x$pt_cv_path_wtmp != x; then
11662 6996
11663cat >>confdefs.h <<_ACEOF 6997cat >>confdefs.h <<_ACEOF
11664#define WTMP_FILE "$path_wtmp" 6998#define WTMP_FILE "$pt_cv_path_wtmp"
11665_ACEOF 6999_ACEOF
11666 7000
11667fi 7001fi
11668 7002
11669{ echo "$as_me:$LINENO: checking where wtmpx is located" >&5 7003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmpx is located" >&5
11670echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6; } 7004$as_echo_n "checking where wtmpx is located... " >&6; }
11671if test "${path_wtmpx+set}" = set; then 7005if test "${pt_cv_path_wtmpx+set}" = set; then :
11672 echo $ECHO_N "(cached) $ECHO_C" >&6 7006 $as_echo_n "(cached) " >&6
11673else 7007else
11674 if test "$cross_compiling" = yes; then 7008 if test "$cross_compiling" = yes; then :
11675 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 7009 { $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;} 7010$as_echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
11677else 7011else
11678 cat >conftest.$ac_ext <<_ACEOF
11679/* confdefs.h. */
11680_ACEOF
11681cat confdefs.h >>conftest.$ac_ext 7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682cat >>conftest.$ac_ext <<_ACEOF
11683/* end confdefs.h. */ 7013/* end confdefs.h. */
11684#include <stdio.h> 7014#include <stdio.h>
11685#include <stdlib.h> 7015#include <stdlib.h>
11686#ifdef HAVE_UTMPX_H 7016#ifdef HAVE_UTMPX_H
11687#include <utmpx.h> 7017#include <utmpx.h>
11708 } 7038 }
11709 } 7039 }
11710 exit(0); 7040 exit(0);
11711} 7041}
11712_ACEOF 7042_ACEOF
11713rm -f conftest$ac_exeext 7043if 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` 7044 pt_cv_path_wtmpx=`cat conftestval`
11734else 7045else
11735 echo "$as_me: program exited with status $ac_status" >&5 7046 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 7047fi
11742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7048rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7049 conftest.$ac_objext conftest.beam conftest.$ac_ext
11743fi 7050fi
11744 7051
11745
11746fi 7052fi
11747{ echo "$as_me:$LINENO: result: $path_wtmpx" >&5 7053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
11748echo "${ECHO_T}$path_wtmpx" >&6; } 7054$as_echo "$pt_cv_path_wtmpx" >&6; }
11749if test x$path_wtmpx != x; then 7055if test x$pt_cv_path_wtmpx != x; then
11750 7056
11751cat >>confdefs.h <<_ACEOF 7057cat >>confdefs.h <<_ACEOF
11752#define WTMPX_FILE "$path_wtmpx" 7058#define WTMPX_FILE "$pt_cv_path_wtmpx"
11753_ACEOF 7059_ACEOF
11754 7060
11755fi 7061fi
11756 7062
11757{ echo "$as_me:$LINENO: checking where lastlog is located" >&5 7063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlog is located" >&5
11758echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6; } 7064$as_echo_n "checking where lastlog is located... " >&6; }
11759if test "${path_lastlog+set}" = set; then 7065if test "${pt_cv_path_lastlog+set}" = set; then :
11760 echo $ECHO_N "(cached) $ECHO_C" >&6 7066 $as_echo_n "(cached) " >&6
11761else 7067else
11762 if test "$cross_compiling" = yes; then 7068 if test "$cross_compiling" = yes; then :
11763 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 7069 { $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;} 7070$as_echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
11765else 7071else
11766 cat >conftest.$ac_ext <<_ACEOF
11767/* confdefs.h. */
11768_ACEOF
11769cat confdefs.h >>conftest.$ac_ext 7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770cat >>conftest.$ac_ext <<_ACEOF
11771/* end confdefs.h. */ 7073/* end confdefs.h. */
11772#include <stdio.h> 7074#include <stdio.h>
11773#include <stdlib.h> 7075#include <stdlib.h>
11774#include <sys/types.h> 7076#include <sys/types.h>
11775#ifdef HAVE_UTMPX_H 7077#ifdef HAVE_UTMPX_H
11801 } 7103 }
11802 } 7104 }
11803 exit(0); 7105 exit(0);
11804} 7106}
11805_ACEOF 7107_ACEOF
11806rm -f conftest$ac_exeext 7108if 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` 7109 pt_cv_path_lastlog=`cat conftestval`
11827else 7110else
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= 7111 pt_cv_path_lastlog=
11834fi 7112fi
11835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7114 conftest.$ac_objext conftest.beam conftest.$ac_ext
11836fi 7115fi
11837 7116
11838
11839fi 7117fi
11840{ echo "$as_me:$LINENO: result: $path_lastlog" >&5 7118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
11841echo "${ECHO_T}$path_lastlog" >&6; } 7119$as_echo "$pt_cv_path_lastlog" >&6; }
11842if test x$path_lastlog != x; then 7120if test x$pt_cv_path_lastlog != x; then
11843 7121
11844cat >>confdefs.h <<_ACEOF 7122cat >>confdefs.h <<_ACEOF
11845#define LASTLOG_FILE "$path_lastlog" 7123#define LASTLOG_FILE "$pt_cv_path_lastlog"
11846_ACEOF 7124_ACEOF
11847 7125
11848 if test -d "$path_lastlog"; then
11849
11850cat >>confdefs.h <<\_ACEOF
11851#define LASTLOG_IS_DIR 1
11852_ACEOF
11853
11854 fi
11855fi 7126fi
11856 7127
11857{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 7128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlogx is located" >&5
11858echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 7129$as_echo_n "checking where lastlogx is located... " >&6; }
11859if test "${path_lastlogx+set}" = set; then 7130if test "${pt_cv_path_lastlogx+set}" = set; then :
11860 echo $ECHO_N "(cached) $ECHO_C" >&6 7131 $as_echo_n "(cached) " >&6
11861else 7132else
11862 if test "$cross_compiling" = yes; then 7133 if test "$cross_compiling" = yes; then :
11863 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 7134 { $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;} 7135$as_echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
11865else 7136else
11866 cat >conftest.$ac_ext <<_ACEOF
11867/* confdefs.h. */
11868_ACEOF
11869cat confdefs.h >>conftest.$ac_ext 7137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870cat >>conftest.$ac_ext <<_ACEOF
11871/* end confdefs.h. */ 7138/* end confdefs.h. */
11872#include <stdio.h> 7139#include <stdio.h>
11873#include <stdlib.h> 7140#include <stdlib.h>
11874#ifdef HAVE_UTMPX_H 7141#ifdef HAVE_UTMPX_H
11875#include <utmpx.h> 7142#include <utmpx.h>
11895 } 7162 }
11896 } 7163 }
11897 exit(0); 7164 exit(0);
11898} 7165}
11899_ACEOF 7166_ACEOF
11900rm -f conftest$ac_exeext 7167if 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` 7168 pt_cv_path_lastlogx=`cat conftestval`
11921else 7169else
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= 7170 pt_cv_path_lastlogx=
11928fi 7171fi
11929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7172rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7173 conftest.$ac_objext conftest.beam conftest.$ac_ext
11930fi 7174fi
11931 7175
11932
11933fi 7176fi
11934{ echo "$as_me:$LINENO: result: $path_lastlogx" >&5 7177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
11935echo "${ECHO_T}$path_lastlogx" >&6; } 7178$as_echo "$pt_cv_path_lastlogx" >&6; }
11936if test x$path_lastlogx != x; then 7179if test x$pt_cv_path_lastlogx != x; then
11937 7180
11938cat >>confdefs.h <<_ACEOF 7181cat >>confdefs.h <<_ACEOF
11939#define LASTLOGX_FILE "$path_lastlogx" 7182#define LASTLOGX_FILE "$pt_cv_path_lastlogx"
11940_ACEOF 7183_ACEOF
11941 7184
11942fi 7185fi
11943 7186
11944 7187
11945 7188
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 7189
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 7190save_LIBS=$LIBS
11972ac_save_CFLAGS=$CFLAGS 7191save_CFLAGS=$CFLAGS
11973CFLAGS="$CFLAGS $X_CFLAGS" 7192CFLAGS="$CFLAGS $X_CFLAGS"
11974LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 7193LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11975if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 7194if test x$support_xim = xyes; then
11976 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11977fi
11978{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
11979echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 7196$as_echo_n "checking for working Xlocale... " >&6; }
11980if test "${rxvt_cv_func_xlocale+set}" = set; then 7197if test "${rxvt_cv_func_xlocale+set}" = set; then :
11981 echo $ECHO_N "(cached) $ECHO_C" >&6 7198 $as_echo_n "(cached) " >&6
11982else 7199else
11983 if test "$cross_compiling" = yes; then 7200 if test "$cross_compiling" = yes; then :
11984 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 7201 :
11985echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11986else 7202else
11987 cat >conftest.$ac_ext <<_ACEOF
11988/* confdefs.h. */
11989_ACEOF
11990cat confdefs.h >>conftest.$ac_ext 7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991cat >>conftest.$ac_ext <<_ACEOF
11992/* end confdefs.h. */ 7204/* end confdefs.h. */
11993#include <X11/Xlib.h> 7205#include <X11/Xlib.h>
11994#include <stdlib.h> 7206 #include <stdlib.h>
11995main() { 7207 main() {
11996char *p; 7208 char *p;
11997if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 7209 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11998exit (XSupportsLocale() ? 0 : 1); 7210 exit (XSupportsLocale() ? 0 : 1);
11999else 7211 else
12000exit (1);} 7212 exit (1);}
12001_ACEOF 7213_ACEOF
12002rm -f conftest$ac_exeext 7214if 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 7215 rxvt_cv_func_xlocale=yes
12023else 7216else
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 7217 rxvt_cv_func_xlocale=no
12030fi 7218fi
12031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7219rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7220 conftest.$ac_objext conftest.beam conftest.$ac_ext
12032fi 7221fi
12033 7222
12034
12035fi 7223fi
12036{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
12037echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 7225$as_echo "$rxvt_cv_func_xlocale" >&6; }
12038if test x$rxvt_cv_func_xlocale = xyes; then 7226 if test x$rxvt_cv_func_xlocale = xyes; then
12039 7227
12040cat >>confdefs.h <<\_ACEOF 7228$as_echo "#define USE_XIM 1" >>confdefs.h
12041#define HAVE_XLOCALE 1
12042_ACEOF
12043 7229
12044fi 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
7231$as_echo_n "checking for broken XIM callback... " >&6; }
7232if test "${rxvt_cv_broken_ximcb+set}" = set; then :
7233 $as_echo_n "(cached) " >&6
7234else
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236/* end confdefs.h. */
12045 7237
7238 #include <X11/Xlib.h>
7239
7240 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
7241
7242 void f() {
7243 XIMCallback cb;
7244 cb.callback = im_destroy_cb;
7245 }
7246
7247_ACEOF
7248if ac_fn_cxx_try_compile "$LINENO"; then :
7249 rxvt_cv_broken_ximcb=yes
7250else
7251 rxvt_cv_broken_ximcb=no
7252fi
7253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254fi
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
7256$as_echo "$rxvt_cv_broken_ximcb" >&6; }
7257
7258 if test x$rxvt_cv_broken_ximcb = xyes; then
7259
7260$as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
7261
7262 fi
7263 fi
7264fi
7265
12046{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 7266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
12047echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 7267$as_echo_n "checking for working X setlocale... " >&6; }
12048if test "${rxvt_cv_func_xsetlocale+set}" = set; then 7268if test "${rxvt_cv_func_xsetlocale+set}" = set; then :
12049 echo $ECHO_N "(cached) $ECHO_C" >&6 7269 $as_echo_n "(cached) " >&6
12050else 7270else
12051 cat >conftest.$ac_ext <<_ACEOF
12052/* confdefs.h. */
12053_ACEOF
12054cat confdefs.h >>conftest.$ac_ext 7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055cat >>conftest.$ac_ext <<_ACEOF
12056/* end confdefs.h. */ 7272/* end confdefs.h. */
12057#define X_LOCALE 1 7273#define X_LOCALE 1
12058#include <X11/Xlocale.h> 7274#include <X11/Xlocale.h>
12059int 7275int
12060main () 7276main ()
12062setlocale(LC_CTYPE, ""); 7278setlocale(LC_CTYPE, "");
12063 ; 7279 ;
12064 return 0; 7280 return 0;
12065} 7281}
12066_ACEOF 7282_ACEOF
12067rm -f conftest.$ac_objext conftest$ac_exeext 7283if 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 7284 rxvt_cv_func_xsetlocale=yes
12086else 7285else
12087 echo "$as_me: failed program was:" >&5
12088sed 's/^/| /' conftest.$ac_ext >&5
12089
12090 rxvt_cv_func_xsetlocale=no 7286 rxvt_cv_func_xsetlocale=no
12091fi 7287fi
12092
12093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7288rm -f core conftest.err conftest.$ac_objext \
12094 conftest$ac_exeext conftest.$ac_ext 7289 conftest$ac_exeext conftest.$ac_ext
12095fi 7290fi
12096{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5 7291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
12097echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6; } 7292$as_echo "$rxvt_cv_func_xsetlocale" >&6; }
12098if test x$rxvt_cv_func_xsetlocale = xyes; then 7293if test x$rxvt_cv_func_xsetlocale = xyes; then
12099 7294
12100cat >>confdefs.h <<\_ACEOF 7295$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
12101#define HAVE_XSETLOCALE 1
12102_ACEOF
12103 7296
12104fi 7297fi
12105LIBS=$ac_save_LIBS 7298LIBS=$save_LIBS
12106CFLAGS=$ac_save_CFLAGS 7299CFLAGS=$save_CFLAGS
12107 7300
12108{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 7301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5
12109echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 7302$as_echo_n "checking for working plain setlocale... " >&6; }
12110if test "${rxvt_cv_func_setlocale+set}" = set; then 7303if test "${rxvt_cv_func_setlocale+set}" = set; then :
12111 echo $ECHO_N "(cached) $ECHO_C" >&6 7304 $as_echo_n "(cached) " >&6
12112else 7305else
12113 cat >conftest.$ac_ext <<_ACEOF
12114/* confdefs.h. */
12115_ACEOF
12116cat confdefs.h >>conftest.$ac_ext 7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117cat >>conftest.$ac_ext <<_ACEOF
12118/* end confdefs.h. */ 7307/* end confdefs.h. */
12119#include <clocale> 7308#include <clocale>
12120int 7309int
12121main () 7310main ()
12122{ 7311{
12123setlocale(LC_CTYPE, ""); 7312setlocale(LC_CTYPE, "");
12124 ; 7313 ;
12125 return 0; 7314 return 0;
12126} 7315}
12127_ACEOF 7316_ACEOF
12128rm -f conftest.$ac_objext conftest$ac_exeext 7317if 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 7318 rxvt_cv_func_setlocale=yes
12147else 7319else
12148 echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151 rxvt_cv_func_setlocale=no 7320 rxvt_cv_func_setlocale=no
12152fi 7321fi
12153
12154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7322rm -f core conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext 7323 conftest$ac_exeext conftest.$ac_ext
12156fi 7324fi
12157{ echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5
12158echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6; } 7326$as_echo "$rxvt_cv_func_setlocale" >&6; }
12159if test x$rxvt_cv_func_setlocale = xyes; then 7327if test x$rxvt_cv_func_setlocale = xyes; then
12160 7328
12161cat >>confdefs.h <<\_ACEOF 7329$as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
12162#define HAVE_SETLOCALE 1
12163_ACEOF
12164 7330
12165fi 7331fi
12166 7332
12167{ echo "$as_me:$LINENO: checking for working nl_langinfo" >&5 7333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
12168echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6; } 7334$as_echo_n "checking for working nl_langinfo... " >&6; }
12169if test "${rxvt_cv_func_nl_langinfo+set}" = set; then 7335if test "${rxvt_cv_func_nl_langinfo+set}" = set; then :
12170 echo $ECHO_N "(cached) $ECHO_C" >&6 7336 $as_echo_n "(cached) " >&6
12171else 7337else
12172 cat >conftest.$ac_ext <<_ACEOF
12173/* confdefs.h. */
12174_ACEOF
12175cat confdefs.h >>conftest.$ac_ext 7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176cat >>conftest.$ac_ext <<_ACEOF
12177/* end confdefs.h. */ 7339/* end confdefs.h. */
12178#include <langinfo.h> 7340#include <langinfo.h>
12179int 7341int
12180main () 7342main ()
12181{ 7343{
12182nl_langinfo(CODESET); 7344nl_langinfo(CODESET);
12183 ; 7345 ;
12184 return 0; 7346 return 0;
12185} 7347}
12186_ACEOF 7348_ACEOF
12187rm -f conftest.$ac_objext conftest$ac_exeext 7349if 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 7350 rxvt_cv_func_nl_langinfo=yes
12206else 7351else
12207 echo "$as_me: failed program was:" >&5
12208sed 's/^/| /' conftest.$ac_ext >&5
12209
12210 rxvt_cv_func_nl_langinfo=no 7352 rxvt_cv_func_nl_langinfo=no
12211fi 7353fi
12212
12213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7354rm -f core conftest.err conftest.$ac_objext \
12214 conftest$ac_exeext conftest.$ac_ext 7355 conftest$ac_exeext conftest.$ac_ext
12215fi 7356fi
12216{ echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5 7357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
12217echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6; } 7358$as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
12218if test x$rxvt_cv_func_nl_langinfo = xyes; then 7359if test x$rxvt_cv_func_nl_langinfo = xyes; then
12219 7360
12220cat >>confdefs.h <<\_ACEOF 7361$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
12221#define HAVE_NL_LANGINFO 1
12222_ACEOF
12223 7362
12224fi 7363fi
12225 7364
12226 7365
12227{ echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 7366{ $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; } 7367$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
12229if test "${can_pass_fds+set}" = set; then 7368if test "${pt_cv_can_pass_fds+set}" = set; then :
12230 echo $ECHO_N "(cached) $ECHO_C" >&6 7369 $as_echo_n "(cached) " >&6
12231else 7370else
12232 cat >conftest.$ac_ext <<_ACEOF
12233/* confdefs.h. */
12234_ACEOF
12235cat confdefs.h >>conftest.$ac_ext 7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236cat >>conftest.$ac_ext <<_ACEOF
12237/* end confdefs.h. */ 7372/* end confdefs.h. */
12238 7373
12239#include <cstddef> // broken bsds (is that redundant?) need this 7374#include <cstddef> // broken bsds (is that redundant?) need this
12240#include <sys/types.h> 7375#include <sys/types.h>
12241#include <sys/socket.h> 7376#include <sys/socket.h>
12271 7406
12272 ; 7407 ;
12273 return 0; 7408 return 0;
12274} 7409}
12275_ACEOF 7410_ACEOF
12276rm -f conftest.$ac_objext conftest$ac_exeext 7411if 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 7412 pt_cv_can_pass_fds=yes
12295else 7413else
12296 echo "$as_me: failed program was:" >&5
12297sed 's/^/| /' conftest.$ac_ext >&5
12298
12299 can_pass_fds=no 7414 pt_cv_can_pass_fds=no
12300fi 7415fi
12301
12302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7416rm -f core conftest.err conftest.$ac_objext \
12303 conftest$ac_exeext conftest.$ac_ext 7417 conftest$ac_exeext conftest.$ac_ext
12304fi 7418fi
12305{ echo "$as_me:$LINENO: result: $can_pass_fds" >&5 7419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
12306echo "${ECHO_T}$can_pass_fds" >&6; } 7420$as_echo "$pt_cv_can_pass_fds" >&6; }
12307if test x$can_pass_fds = xyes; then 7421if test x$pt_cv_can_pass_fds = xyes; then
12308 7422
12309cat >>confdefs.h <<\_ACEOF 7423$as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
12310#define HAVE_UNIX_FDPASS 1
12311_ACEOF
12312 7424
12313else 7425else
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;} 7426 as_fn_error "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
12316 { (exit 1); exit 1; }; }
12317fi 7427fi
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 7428
12379 7429
12380 7430
12381for ac_header in \ 7431for ac_header in \
12382 pty.h \ 7432 pty.h \
12383 util.h \ 7433 util.h \
12384 libutil.h \ 7434 libutil.h \
12385 sys/ioctl.h \ 7435 sys/ioctl.h \
12386 sys/stropts.h \ 7436 sys/stropts.h \
7437 stropts.h \
12387 7438
12388do 7439do :
12389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7440 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 7441ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12391 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7442eval as_val=\$$as_ac_Header
12392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7443 if test "x$as_val" = x""yes; then :
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 7444 cat >>confdefs.h <<_ACEOF
12519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7445#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12520_ACEOF 7446_ACEOF
12521 7447
12522fi 7448fi
12523 7449
12524done 7450done
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534 7451
12535 7452
12536for ac_func in \ 7453for ac_func in \
12537 revoke \ 7454 revoke \
12538 _getpty \ 7455 _getpty \
12542 setuid \ 7459 setuid \
12543 seteuid \ 7460 seteuid \
12544 setreuid \ 7461 setreuid \
12545 setresuid \ 7462 setresuid \
12546 7463
12547do 7464do :
12548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7465 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12549{ echo "$as_me:$LINENO: checking for $ac_func" >&5 7466ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 7467eval as_val=\$$as_ac_var
12551if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7468 if test "x$as_val" = x""yes; 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 7469 cat >>confdefs.h <<_ACEOF
12633#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7470#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12634_ACEOF 7471_ACEOF
12635 7472
12636fi 7473fi
12637done 7474done
12638 7475
12639 7476
12640have_clone=no 7477have_clone=no
12641 7478
12642{ echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
12643echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6; } 7480$as_echo_n "checking for /dev/ptc... " >&6; }
12644if test -e /dev/ptym/clone; then 7481if test -e /dev/ptc; then
12645 { echo "$as_me:$LINENO: result: yes" >&5 7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12646echo "${ECHO_T}yes" >&6; } 7483$as_echo "yes" >&6; }
12647 7484
12648cat >>confdefs.h <<\_ACEOF 7485$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 7486
12657 have_clone=yes 7487 have_clone=yes
12658else 7488else
12659 { echo "$as_me:$LINENO: result: no" >&5 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12660echo "${ECHO_T}no" >&6; } 7490$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 7491fi
12683 7492
12684case $host in 7493case $host in
12685 *-*-cygwin*) 7494 *-*-cygwin*)
12686 have_clone=yes 7495 have_clone=yes
12687 7496
12688cat >>confdefs.h <<\_ACEOF 7497$as_echo "#define CLONE_DEVICE \"/dev/ptmx\"" >>confdefs.h
12689#define CLONE_DEVICE "/dev/ptmx"
12690_ACEOF
12691 7498
12692 ;; 7499 ;;
12693 *) 7500 *)
12694 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
12695echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } 7502$as_echo_n "checking for /dev/ptmx... " >&6; }
12696 if test -e /dev/ptmx; then 7503 if test -e /dev/ptmx; then
12697 { echo "$as_me:$LINENO: result: yes" >&5 7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12698echo "${ECHO_T}yes" >&6; } 7505$as_echo "yes" >&6; }
12699 7506
12700cat >>confdefs.h <<\_ACEOF 7507$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
12701#define HAVE_DEV_PTMX 1
12702_ACEOF
12703 7508
12704 7509
12705cat >>confdefs.h <<\_ACEOF 7510$as_echo "#define CLONE_DEVICE \"/dev/ptmx\"" >>confdefs.h
12706#define CLONE_DEVICE "/dev/ptmx"
12707_ACEOF
12708 7511
12709 have_clone=yes 7512 have_clone=yes
12710 else 7513 else
12711 { echo "$as_me:$LINENO: result: no" >&5 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712echo "${ECHO_T}no" >&6; } 7515$as_echo "no" >&6; }
12713 fi 7516 fi
12714 ;; 7517 ;;
12715esac 7518esac
12716 7519
12717if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then 7520if 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 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
12719echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6; } 7522$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 7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724cat >>conftest.$ac_ext <<_ACEOF
12725/* end confdefs.h. */ 7524/* end confdefs.h. */
12726#include <stdlib.h> 7525#include <stdlib.h>
12727int 7526int
12728main () 7527main ()
12729{ 7528{
12730grantpt(0);unlockpt(0);ptsname(0); 7529grantpt(0);unlockpt(0);ptsname(0);
12731 ; 7530 ;
12732 return 0; 7531 return 0;
12733} 7532}
12734_ACEOF 7533_ACEOF
12735rm -f conftest.$ac_objext conftest$ac_exeext 7534if 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 7535 unix98_pty=yes
12754 7536
12755cat >>confdefs.h <<\_ACEOF 7537$as_echo "#define UNIX98_PTY 1" >>confdefs.h
12756#define UNIX98_PTY 1
12757_ACEOF
12758 7538
12759 { echo "$as_me:$LINENO: result: yes" >&5 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12760echo "${ECHO_T}yes" >&6; } 7540$as_echo "yes" >&6; }
12761else 7541else
12762 echo "$as_me: failed program was:" >&5
12763sed 's/^/| /' conftest.$ac_ext >&5
12764
12765 { echo "$as_me:$LINENO: result: no" >&5 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766echo "${ECHO_T}no" >&6; } 7543$as_echo "no" >&6; }
12767fi 7544fi
12768
12769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7545rm -f core conftest.err conftest.$ac_objext \
12770 conftest$ac_exeext conftest.$ac_ext 7546 conftest$ac_exeext conftest.$ac_ext
12771fi 7547fi
12772 7548
12773if test -z "$unix98_pty"; then 7549if test -z "$unix98_pty"; then
12774 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
12775for ac_func in openpty 7551$as_echo_n "checking for library containing openpty... " >&6; }
12776do 7552if test "${ac_cv_search_openpty+set}" = set; then :
12777as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7553 $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 7554else
12801# include <assert.h> 7555 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 7556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877cat >>conftest.$ac_ext <<_ACEOF
12878/* end confdefs.h. */ 7557/* end confdefs.h. */
12879 7558
12880/* Override any GCC internal prototype to avoid an error. 7559/* Override any GCC internal prototype to avoid an error.
12881 Use char because int might match the return type of a GCC 7560 Use char because int might match the return type of a GCC
12882 builtin and then its argument prototype would still apply. */ 7561 builtin and then its argument prototype would still apply. */
12890return openpty (); 7569return openpty ();
12891 ; 7570 ;
12892 return 0; 7571 return 0;
12893} 7572}
12894_ACEOF 7573_ACEOF
12895rm -f conftest.$ac_objext conftest$ac_exeext 7574for ac_lib in '' util; do
12896if { (ac_try="$ac_link" 7575 if test -z "$ac_lib"; then
12897case "(($ac_try" in 7576 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 7577 else
12915 echo "$as_me: failed program was:" >&5 7578 ac_res=-l$ac_lib
12916sed 's/^/| /' conftest.$ac_ext >&5 7579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12917 7580 fi
12918 ac_cv_lib_util_openpty=no 7581 if ac_fn_cxx_try_link "$LINENO"; then :
7582 ac_cv_search_openpty=$ac_res
12919fi 7583fi
12920
12921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7584rm -f core conftest.err conftest.$ac_objext \
12922 conftest$ac_exeext conftest.$ac_ext 7585 conftest$ac_exeext
12923LIBS=$ac_check_lib_save_LIBS 7586 if test "${ac_cv_search_openpty+set}" = set; then :
12924fi 7587 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 7588fi
12935done 7589done
7590if test "${ac_cv_search_openpty+set}" = set; then :
12936 7591
7592else
7593 ac_cv_search_openpty=no
12937fi 7594fi
7595rm conftest.$ac_ext
7596LIBS=$ac_func_search_save_LIBS
7597fi
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7599$as_echo "$ac_cv_search_openpty" >&6; }
7600ac_res=$ac_cv_search_openpty
7601if test "$ac_res" != no; then :
7602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12938 7603
7604$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
12939 7605
7606fi
12940 7607
7608fi
7609
7610
7611
12941{ echo "$as_me:$LINENO: checking for tty group" >&5 7612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
12942echo $ECHO_N "checking for tty group... $ECHO_C" >&6; } 7613$as_echo_n "checking for tty group... " >&6; }
12943if test "${tty_group+set}" = set; then 7614if test "${pt_cv_tty_group+set}" = set; then :
12944 echo $ECHO_N "(cached) $ECHO_C" >&6 7615 $as_echo_n "(cached) " >&6
12945else 7616else
12946 if test "$cross_compiling" = yes; then 7617 if test "$cross_compiling" = yes; then :
12947 tty_group=no 7618 pt_cv_tty_group=no
12948else 7619else
12949 cat >conftest.$ac_ext <<_ACEOF
12950/* confdefs.h. */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext 7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
12954/* end confdefs.h. */ 7621/* end confdefs.h. */
12955 7622
12956#include <sys/types.h> 7623#include <sys/types.h>
12957#include <sys/stat.h> 7624#include <sys/stat.h>
12958#include <unistd.h> 7625#include <unistd.h>
12972 return 0; 7639 return 0;
12973 else 7640 else
12974 return 1; 7641 return 1;
12975} 7642}
12976_ACEOF 7643_ACEOF
12977rm -f conftest$ac_exeext 7644if 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 7645 pt_cv_tty_group=yes
12998else 7646else
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 7647 pt_cv_tty_group=no
13005fi 7648fi
13006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7650 conftest.$ac_objext conftest.beam conftest.$ac_ext
13007fi 7651fi
13008 7652
13009
13010fi 7653fi
13011{ echo "$as_me:$LINENO: result: $tty_group" >&5 7654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
13012echo "${ECHO_T}$tty_group" >&6; } 7655$as_echo "$pt_cv_tty_group" >&6; }
13013if test x$tty_group = xyes; then 7656if test x$pt_cv_tty_group = xyes; then
13014 7657
13015cat >>confdefs.h <<\_ACEOF 7658$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
13016#define TTY_GID_SUPPORT 1
13017_ACEOF
13018 7659
13019fi 7660fi
13020 7661
13021if test x$support_xft = xyes; then 7662if test x$support_xft = xyes; then
13022 # Extract the first word of "pkg-config", so it can be a program name with args. 7663 # Extract the first word of "pkg-config", so it can be a program name with args.
13023set dummy pkg-config; ac_word=$2 7664set dummy pkg-config; ac_word=$2
13024{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7666$as_echo_n "checking for $ac_word... " >&6; }
13026if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 7667if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13027 echo $ECHO_N "(cached) $ECHO_C" >&6 7668 $as_echo_n "(cached) " >&6
13028else 7669else
13029 case $PKG_CONFIG in 7670 case $PKG_CONFIG in
13030 [\\/]* | ?:[\\/]*) 7671 [\\/]* | ?:[\\/]*)
13031 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7672 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13032 ;; 7673 ;;
13034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035for as_dir in $PATH 7676for as_dir in $PATH
13036do 7677do
13037 IFS=$as_save_IFS 7678 IFS=$as_save_IFS
13038 test -z "$as_dir" && as_dir=. 7679 test -z "$as_dir" && as_dir=.
13039 for ac_exec_ext in '' $ac_executable_extensions; do 7680 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 7681 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" 7682 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 7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13043 break 2 7684 break 2
13044 fi 7685 fi
13045done 7686done
13046done 7687 done
13047IFS=$as_save_IFS 7688IFS=$as_save_IFS
13048 7689
13049 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7690 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13050 ;; 7691 ;;
13051esac 7692esac
13052fi 7693fi
13053PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7694PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13054if test -n "$PKG_CONFIG"; then 7695if test -n "$PKG_CONFIG"; then
13055 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13056echo "${ECHO_T}$PKG_CONFIG" >&6; } 7697$as_echo "$PKG_CONFIG" >&6; }
13057else 7698else
13058 { echo "$as_me:$LINENO: result: no" >&5 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059echo "${ECHO_T}no" >&6; } 7700$as_echo "no" >&6; }
13060fi 7701fi
13061 7702
13062 7703
13063 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 7704 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
13064 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 7705 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
13065 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 7706 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
13066 else 7707 else
13067 # Extract the first word of "xft-config", so it can be a program name with args. 7708 # Extract the first word of "xft-config", so it can be a program name with args.
13068set dummy xft-config; ac_word=$2 7709set dummy xft-config; ac_word=$2
13069{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7711$as_echo_n "checking for $ac_word... " >&6; }
13071if test "${ac_cv_path_XFT_CONFIG+set}" = set; then 7712if test "${ac_cv_path_XFT_CONFIG+set}" = set; then :
13072 echo $ECHO_N "(cached) $ECHO_C" >&6 7713 $as_echo_n "(cached) " >&6
13073else 7714else
13074 case $XFT_CONFIG in 7715 case $XFT_CONFIG in
13075 [\\/]* | ?:[\\/]*) 7716 [\\/]* | ?:[\\/]*)
13076 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. 7717 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
13077 ;; 7718 ;;
13079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080for as_dir in $PATH 7721for as_dir in $PATH
13081do 7722do
13082 IFS=$as_save_IFS 7723 IFS=$as_save_IFS
13083 test -z "$as_dir" && as_dir=. 7724 test -z "$as_dir" && as_dir=.
13084 for ac_exec_ext in '' $ac_executable_extensions; do 7725 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 7726 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" 7727 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 7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 break 2 7729 break 2
13089 fi 7730 fi
13090done 7731done
13091done 7732 done
13092IFS=$as_save_IFS 7733IFS=$as_save_IFS
13093 7734
13094 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" 7735 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
13095 ;; 7736 ;;
13096esac 7737esac
13097fi 7738fi
13098XFT_CONFIG=$ac_cv_path_XFT_CONFIG 7739XFT_CONFIG=$ac_cv_path_XFT_CONFIG
13099if test -n "$XFT_CONFIG"; then 7740if test -n "$XFT_CONFIG"; then
13100 { echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
13101echo "${ECHO_T}$XFT_CONFIG" >&6; } 7742$as_echo "$XFT_CONFIG" >&6; }
13102else 7743else
13103 { echo "$as_me:$LINENO: result: no" >&5 7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104echo "${ECHO_T}no" >&6; } 7745$as_echo "no" >&6; }
13105fi 7746fi
13106 7747
13107 7748
13108 if test $XFT_CONFIG != no; then 7749 if test $XFT_CONFIG != no; then
13109 LIBS="$LIBS `$XFT_CONFIG --libs`" 7750 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
13110 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 7751 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
13111 fi 7752 fi
13112 fi 7753 fi
13113 7754
13114 7755 save_LIBS="$LIBS"
7756 LIBS="$LIBS $X_LIBS"
13115for ac_header in X11/Xft/Xft.h 7757 for ac_header in X11/Xft/Xft.h
13116do 7758do :
13117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7759 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 7760if 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 7761 cat >>confdefs.h <<_ACEOF
13247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7762#define HAVE_X11_XFT_XFT_H 1
13248_ACEOF 7763_ACEOF
13249 7764
13250else 7765else
13251 support_xft=no 7766 support_xft=no
13252fi 7767fi
13253 7768
13254done 7769done
13255 7770
13256
13257{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5
13258echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 7772$as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
13259if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 7773if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then :
13260 echo $ECHO_N "(cached) $ECHO_C" >&6 7774 $as_echo_n "(cached) " >&6
13261else 7775else
13262 ac_check_lib_save_LIBS=$LIBS 7776 ac_check_lib_save_LIBS=$LIBS
13263LIBS="-lXft $LIBS" 7777LIBS="-lXft $LIBS"
13264cat >conftest.$ac_ext <<_ACEOF
13265/* confdefs.h. */
13266_ACEOF
13267cat confdefs.h >>conftest.$ac_ext 7778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268cat >>conftest.$ac_ext <<_ACEOF
13269/* end confdefs.h. */ 7779/* end confdefs.h. */
13270 7780
13271/* Override any GCC internal prototype to avoid an error. 7781/* Override any GCC internal prototype to avoid an error.
13272 Use char because int might match the return type of a GCC 7782 Use char because int might match the return type of a GCC
13273 builtin and then its argument prototype would still apply. */ 7783 builtin and then its argument prototype would still apply. */
13281return XftDrawString32 (); 7791return XftDrawString32 ();
13282 ; 7792 ;
13283 return 0; 7793 return 0;
13284} 7794}
13285_ACEOF 7795_ACEOF
13286rm -f conftest.$ac_objext conftest$ac_exeext 7796if 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 7797 ac_cv_lib_Xft_XftDrawString32=yes
13305else 7798else
13306 echo "$as_me: failed program was:" >&5
13307sed 's/^/| /' conftest.$ac_ext >&5
13308
13309 ac_cv_lib_Xft_XftDrawString32=no 7799 ac_cv_lib_Xft_XftDrawString32=no
13310fi 7800fi
13311
13312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7801rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext 7802 conftest$ac_exeext conftest.$ac_ext
13314LIBS=$ac_check_lib_save_LIBS 7803LIBS=$ac_check_lib_save_LIBS
13315fi 7804fi
13316{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 7805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13317echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 7806$as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
13318if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 7807if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then :
13319 cat >>confdefs.h <<_ACEOF 7808 :
13320#define HAVE_LIBXFT 1
13321_ACEOF
13322
13323 LIBS="-lXft $LIBS"
13324
13325else 7809else
13326 support_xft=no 7810 support_xft=no
13327fi 7811fi
13328 7812
7813 LIBS="$save_LIBS"
13329 7814
13330 if test x$support_xft = xyes; then 7815 if test x$support_xft = xyes; then
13331 7816
13332cat >>confdefs.h <<\_ACEOF 7817$as_echo "#define XFT 1" >>confdefs.h
13333#define XFT 1
13334_ACEOF
13335 7818
13336 fi 7819 fi
13337fi 7820fi
13338if test x$support_styles = xyes; then 7821if test x$support_styles = xyes; then
13339 7822
13340cat >>confdefs.h <<\_ACEOF 7823$as_echo "#define ENABLE_STYLES 1" >>confdefs.h
13341#define ENABLE_STYLES 1
13342_ACEOF
13343 7824
13344fi 7825fi
13345if test x$support_iso14755 = xyes; then 7826if test x$support_iso14755 = xyes; then
13346 7827
13347cat >>confdefs.h <<\_ACEOF 7828$as_echo "#define ISO_14755 1" >>confdefs.h
13348#define ISO_14755 1
13349_ACEOF
13350 7829
13351fi 7830fi
13352if test x$support_8bitctrls = xyes; then 7831if test x$support_8bitctrls = xyes; then
13353 7832
13354cat >>confdefs.h <<\_ACEOF 7833$as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
13355#define EIGHT_BIT_CONTROLS 1
13356_ACEOF
13357 7834
13358fi 7835fi
13359if test x$support_fading = xyes; then 7836if test x$support_fading = xyes; then
13360 7837
13361cat >>confdefs.h <<\_ACEOF 7838$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 7839
13372fi 7840fi
13373if test x$support_inheritpixmap = xyes; then 7841if test x$support_inheritpixmap = xyes; then
13374 7842
13375cat >>confdefs.h <<\_ACEOF 7843$as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
13376#define TRANSPARENT 1
13377_ACEOF
13378 7844
13379fi 7845fi
13380if test x$support_keepscrolling = xno; then 7846if test x$support_keepscrolling = xno; then
13381 7847
13382cat >>confdefs.h <<\_ACEOF
13383#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 7848$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
13384_ACEOF
13385 7849
13386fi 7850fi
13387if test x$support_selectionscrolling = xyes; then 7851if test x$support_selectionscrolling = xyes; then
13388 7852
13389cat >>confdefs.h <<\_ACEOF 7853$as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h
13390#define SELECTION_SCROLLING 1
13391_ACEOF
13392 7854
13393fi 7855fi
13394if test x$support_frills = xyes; then 7856if test x$support_frills = xyes; then
13395 7857
13396cat >>confdefs.h <<\_ACEOF 7858$as_echo "#define ENABLE_FRILLS 1" >>confdefs.h
13397#define ENABLE_FRILLS 1
13398_ACEOF
13399 7859
13400fi 7860fi
13401if test x$support_mousewheel = xyes; then 7861if test x$support_mousewheel = xyes; then
13402 7862
13403cat >>confdefs.h <<\_ACEOF 7863$as_echo "#define MOUSE_WHEEL 1" >>confdefs.h
13404#define MOUSE_WHEEL 1
13405_ACEOF
13406 7864
13407fi 7865fi
13408if test x$support_mouseslipwheel = xyes; then 7866if test x$support_mouseslipwheel = xyes; then
13409 7867
13410cat >>confdefs.h <<\_ACEOF 7868$as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
13411#define MOUSE_SLIP_WHEELING 1
13412_ACEOF
13413 7869
13414fi 7870fi
13415if test x$support_xim = xyes -o x$multichar_set = xyes; then
13416 if test x$rxvt_cv_func_xlocale = xyes; then
13417
13418cat >>confdefs.h <<\_ACEOF
13419#define USE_XIM 1
13420_ACEOF
13421
13422 fi
13423fi
13424if test x$support_xpm = xyes; then 7871if test x$support_afterimage = xyes; then
13425 7872
13426cat >>confdefs.h <<\_ACEOF 7873$as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h
13427#define XPM_BACKGROUND 1
13428_ACEOF
13429 7874
7875
7876$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
7877
13430fi 7878fi
7879
7880
7881scrolltypes=plain
7882
7883$as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h
7884
7885
13431if test x$support_scroll_rxvt = xyes; then 7886if test x$support_scroll_rxvt = xyes; then
13432 7887
13433cat >>confdefs.h <<\_ACEOF 7888$as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h
13434#define RXVT_SCROLLBAR 1
13435_ACEOF
13436 7889
13437 scrolltypes="rxvt" 7890 scrolltypes="$scrolltypes rxvt"
13438fi 7891fi
13439if test x$support_scroll_next = xyes; then 7892if test x$support_scroll_next = xyes; then
13440 7893
13441cat >>confdefs.h <<\_ACEOF 7894$as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h
13442#define NEXT_SCROLLBAR 1
13443_ACEOF
13444 7895
13445 scrolltypes="$scrolltypes next" 7896 scrolltypes="$scrolltypes next"
13446fi 7897fi
13447if test x$support_scroll_xterm = xyes; then 7898if test x$support_scroll_xterm = xyes; then
13448 7899
13449cat >>confdefs.h <<\_ACEOF 7900$as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h
13450#define XTERM_SCROLLBAR 1
13451_ACEOF
13452 7901
13453 scrolltypes="$scrolltypes xterm" 7902 scrolltypes="$scrolltypes xterm"
13454fi 7903fi
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 7904if test x$support_pointer_blank = xyes; then
13464 7905
13465cat >>confdefs.h <<\_ACEOF 7906$as_echo "#define POINTER_BLANK 1" >>confdefs.h
13466#define POINTER_BLANK 1
13467_ACEOF
13468 7907
13469fi 7908fi
13470if test x$support_text_blink = xyes; then 7909if test x$support_text_blink = xyes; then
13471 7910
13472cat >>confdefs.h <<\_ACEOF 7911$as_echo "#define TEXT_BLINK 1" >>confdefs.h
13473#define TEXT_BLINK 1
13474_ACEOF
13475 7912
13476fi 7913fi
13477if test x$support_unicode3 = xyes; then 7914if test x$support_unicode3 = xyes; then
13478 7915
13479cat >>confdefs.h <<\_ACEOF 7916$as_echo "#define UNICODE_3 1" >>confdefs.h
13480#define UNICODE_3 1
13481_ACEOF
13482 7917
13483fi 7918fi
13484if test x$support_combining = xyes; then 7919if test x$support_combining = xyes; then
13485 7920
13486cat >>confdefs.h <<\_ACEOF 7921$as_echo "#define ENABLE_COMBINING 1" >>confdefs.h
13487#define ENABLE_COMBINING 1
13488_ACEOF
13489 7922
13490fi 7923fi
13491if test x$codesets = xall; then 7924if test x$codesets = xall; then
13492 codesets=jp,jp-ext,kr,zh,zh-ext 7925 codesets=jp,jp-ext,kr,zh,zh-ext
13493fi 7926fi
13494 7927
13495cat >>confdefs.h <<\_ACEOF 7928$as_echo "#define ENCODING_EU 1" >>confdefs.h
13496#define ENCODING_EU 1
13497_ACEOF
13498 7929
13499 7930
13500cat >>confdefs.h <<\_ACEOF 7931$as_echo "#define ENCODING_VN 1" >>confdefs.h
13501#define ENCODING_VN 1
13502_ACEOF
13503 7932
13504for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 7933for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13505 case "$codeset" in 7934 case "$codeset" in
13506 JP ) 7935 JP )
13507cat >>confdefs.h <<\_ACEOF 7936$as_echo "#define ENCODING_JP 1" >>confdefs.h
13508#define ENCODING_JP 1
13509_ACEOF
13510 ;; 7937 ;;
13511 JP_EXT ) 7938 JP_EXT )
13512cat >>confdefs.h <<\_ACEOF 7939$as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h
13513#define ENCODING_JP_EXT 1
13514_ACEOF
13515 ;; 7940 ;;
13516 KR ) 7941 KR )
13517cat >>confdefs.h <<\_ACEOF 7942$as_echo "#define ENCODING_KR 1" >>confdefs.h
13518#define ENCODING_KR 1
13519_ACEOF
13520 ;; 7943 ;;
13521 ZH ) 7944 ZH )
13522cat >>confdefs.h <<\_ACEOF 7945$as_echo "#define ENCODING_ZH 1" >>confdefs.h
13523#define ENCODING_ZH 1
13524_ACEOF
13525 ;; 7946 ;;
13526 ZH_EXT ) 7947 ZH_EXT )
13527cat >>confdefs.h <<\_ACEOF 7948$as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h
13528#define ENCODING_ZH_EXT 1
13529_ACEOF
13530 ;; 7949 ;;
13531 esac 7950 esac
13532done 7951done
13533 7952
13534IF_PERL=\# 7953IF_PERL=\#
13535if test x$support_perl = xyes; then 7954if test x$support_perl = xyes; then
13536 # Extract the first word of "perl5", so it can be a program name with args. 7955 # Extract the first word of "perl5", so it can be a program name with args.
13537set dummy perl5; ac_word=$2 7956set dummy perl5; ac_word=$2
13538{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7958$as_echo_n "checking for $ac_word... " >&6; }
13540if test "${ac_cv_path_PERL+set}" = set; then 7959if test "${ac_cv_path_PERL+set}" = set; then :
13541 echo $ECHO_N "(cached) $ECHO_C" >&6 7960 $as_echo_n "(cached) " >&6
13542else 7961else
13543 case $PERL in 7962 case $PERL in
13544 [\\/]* | ?:[\\/]*) 7963 [\\/]* | ?:[\\/]*)
13545 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 7964 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13546 ;; 7965 ;;
13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549for as_dir in $PATH 7968for as_dir in $PATH
13550do 7969do
13551 IFS=$as_save_IFS 7970 IFS=$as_save_IFS
13552 test -z "$as_dir" && as_dir=. 7971 test -z "$as_dir" && as_dir=.
13553 for ac_exec_ext in '' $ac_executable_extensions; do 7972 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 7973 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" 7974 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 7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13557 break 2 7976 break 2
13558 fi 7977 fi
13559done 7978done
13560done 7979 done
13561IFS=$as_save_IFS 7980IFS=$as_save_IFS
13562 7981
13563 ;; 7982 ;;
13564esac 7983esac
13565fi 7984fi
13566PERL=$ac_cv_path_PERL 7985PERL=$ac_cv_path_PERL
13567if test -n "$PERL"; then 7986if test -n "$PERL"; then
13568 { echo "$as_me:$LINENO: result: $PERL" >&5 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13569echo "${ECHO_T}$PERL" >&6; } 7988$as_echo "$PERL" >&6; }
13570else 7989else
13571 { echo "$as_me:$LINENO: result: no" >&5 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13572echo "${ECHO_T}no" >&6; } 7991$as_echo "no" >&6; }
13573fi 7992fi
13574 7993
13575 7994
13576 # Extract the first word of "perl", so it can be a program name with args. 7995 # Extract the first word of "perl", so it can be a program name with args.
13577set dummy perl; ac_word=$2 7996set dummy perl; ac_word=$2
13578{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7998$as_echo_n "checking for $ac_word... " >&6; }
13580if test "${ac_cv_path_PERL+set}" = set; then 7999if test "${ac_cv_path_PERL+set}" = set; then :
13581 echo $ECHO_N "(cached) $ECHO_C" >&6 8000 $as_echo_n "(cached) " >&6
13582else 8001else
13583 case $PERL in 8002 case $PERL in
13584 [\\/]* | ?:[\\/]*) 8003 [\\/]* | ?:[\\/]*)
13585 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 8004 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13586 ;; 8005 ;;
13588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589for as_dir in $PATH 8008for as_dir in $PATH
13590do 8009do
13591 IFS=$as_save_IFS 8010 IFS=$as_save_IFS
13592 test -z "$as_dir" && as_dir=. 8011 test -z "$as_dir" && as_dir=.
13593 for ac_exec_ext in '' $ac_executable_extensions; do 8012 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 8013 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" 8014 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 8015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 break 2 8016 break 2
13598 fi 8017 fi
13599done 8018done
13600done 8019 done
13601IFS=$as_save_IFS 8020IFS=$as_save_IFS
13602 8021
13603 ;; 8022 ;;
13604esac 8023esac
13605fi 8024fi
13606PERL=$ac_cv_path_PERL 8025PERL=$ac_cv_path_PERL
13607if test -n "$PERL"; then 8026if test -n "$PERL"; then
13608 { echo "$as_me:$LINENO: result: $PERL" >&5 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13609echo "${ECHO_T}$PERL" >&6; } 8028$as_echo "$PERL" >&6; }
13610else 8029else
13611 { echo "$as_me:$LINENO: result: no" >&5 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612echo "${ECHO_T}no" >&6; } 8031$as_echo "no" >&6; }
13613fi 8032fi
13614 8033
13615 8034
13616 8035
13617 { echo "$as_me:$LINENO: checking for $PERL suitability" >&5 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
13618echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6; } 8037$as_echo_n "checking for $PERL suitability... " >&6; }
13619 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then 8038 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13620 8039
13621 save_CXXFLAGS="$CXXFLAGS" 8040 save_CXXFLAGS="$CXXFLAGS"
13622 save_LIBS="$LIBS" 8041 save_LIBS="$LIBS"
13623 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" 8042 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13624 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" 8043 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13625 cat >conftest.$ac_ext <<_ACEOF
13626/* confdefs.h. */
13627_ACEOF
13628cat confdefs.h >>conftest.$ac_ext 8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629cat >>conftest.$ac_ext <<_ACEOF
13630/* end confdefs.h. */ 8045/* end confdefs.h. */
13631 8046
13632#include <EXTERN.h> 8047#include <EXTERN.h>
13633#include <perl.h> 8048#include <perl.h>
13634#include <XSUB.h> 8049#include <XSUB.h>
13641 8056
13642 ; 8057 ;
13643 return 0; 8058 return 0;
13644} 8059}
13645_ACEOF 8060_ACEOF
13646rm -f conftest.$ac_objext conftest$ac_exeext 8061if 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 8062 rxvt_perl_link=yes
13665else 8063else
13666 echo "$as_me: failed program was:" >&5
13667sed 's/^/| /' conftest.$ac_ext >&5
13668
13669 rxvt_perl_link=no 8064 rxvt_perl_link=no
13670fi 8065fi
13671
13672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8066rm -f core conftest.err conftest.$ac_objext \
13673 conftest$ac_exeext conftest.$ac_ext 8067 conftest$ac_exeext conftest.$ac_ext
13674 CXXFLAGS="$save_CXXFLAGS" 8068 CXXFLAGS="$save_CXXFLAGS"
13675 LIBS="$save_LIBS" 8069 LIBS="$save_LIBS"
13676 8070
13677 if test x$rxvt_perl_link = xyes; then 8071 if test x$rxvt_perl_link = xyes; then
13678 { echo "$as_me:$LINENO: result: ok" >&5 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13679echo "${ECHO_T}ok" >&6; } 8073$as_echo "ok" >&6; }
13680 8074
13681cat >>confdefs.h <<\_ACEOF 8075$as_echo "#define ENABLE_PERL 1" >>confdefs.h
13682#define ENABLE_PERL 1
13683_ACEOF
13684 8076
13685 IF_PERL= 8077 IF_PERL=
13686 PERL_O=rxvtperl.o 8078 PERL_O=rxvtperl.o
13687 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 8079 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13688 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 8080 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13689 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" 8081 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13690 else 8082 else
13691 { { echo "$as_me:$LINENO: error: no, unable to link" >&5 8083 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 8084 fi
13695 else 8085 else
13696 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13697echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;} 8086 as_fn_error "no working perl found, or perl not version >= 5.8" "$LINENO" 5
13698 { (exit 1); exit 1; }; }
13699 fi 8087 fi
13700fi 8088fi
13701 8089
13702 8090
13703 8091
13704 8092
13705 8093
13706 8094
13707 8095
13708if test x$support_perl = xyes; then
13709 support_frills=yes
13710fi
13711 8096
13712 8097
13713 8098
13714 8099
13715 8100
13716 8101
13717 8102
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 8103
13727 8104
13728 8105
13729 8106
13730 8107
13731test "$program_prefix" != NONE && 8108test "$program_prefix" != NONE &&
13732 program_transform_name="s&^&$program_prefix&;$program_transform_name" 8109 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13733# Use a double $ so make ignores it. 8110# Use a double $ so make ignores it.
13734test "$program_suffix" != NONE && 8111test "$program_suffix" != NONE &&
13735 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 8112 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
13736# Double any \ or $. echo might interpret backslashes. 8113# Double any \ or $.
13737# By default was `s,x,x', remove it if useless. 8114# By default was `s,x,x', remove it if useless.
13738cat <<\_ACEOF >conftest.sed
13739s/[\\$]/&&/g;s/;s,x,x,$// 8115ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
13740_ACEOF
13741program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 8116program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
13742rm -f conftest.sed
13743 8117
13744 8118
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" 8119ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13815 8120
13816cat >confcache <<\_ACEOF 8121cat >confcache <<\_ACEOF
13817# This file is a shell script that caches the results of configure 8122# 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 8123# tests run on this system so they can be shared between configure
13819# scripts and configure runs, see configure's option --config-cache. 8124# 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 8143 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 8144 eval ac_val=\$$ac_var
13840 case $ac_val in #( 8145 case $ac_val in #(
13841 *${as_nl}*) 8146 *${as_nl}*)
13842 case $ac_var in #( 8147 case $ac_var in #(
13843 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 8148 *_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;} ;; 8149$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13845 esac 8150 esac
13846 case $ac_var in #( 8151 case $ac_var in #(
13847 _ | IFS | as_nl) ;; #( 8152 _ | IFS | as_nl) ;; #(
13848 *) $as_unset $ac_var ;; 8153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8154 *) { eval $ac_var=; unset $ac_var;} ;;
13849 esac ;; 8155 esac ;;
13850 esac 8156 esac
13851 done 8157 done
13852 8158
13853 (set) 2>&1 | 8159 (set) 2>&1 |
13854 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8160 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13855 *${as_nl}ac_space=\ *) 8161 *${as_nl}ac_space=\ *)
13856 # `set' does not quote correctly, so add quotes (double-quote 8162 # `set' does not quote correctly, so add quotes: double-quote
13857 # substitution turns \\\\ into \\, and sed turns \\ into \). 8163 # substitution turns \\\\ into \\, and sed turns \\ into \.
13858 sed -n \ 8164 sed -n \
13859 "s/'/'\\\\''/g; 8165 "s/'/'\\\\''/g;
13860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13861 ;; #( 8167 ;; #(
13862 *) 8168 *)
13875 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8181 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13876 :end' >>confcache 8182 :end' >>confcache
13877if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8183if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13878 if test -w "$cache_file"; then 8184 if test -w "$cache_file"; then
13879 test "x$cache_file" != "x/dev/null" && 8185 test "x$cache_file" != "x/dev/null" &&
13880 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 8186 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13881echo "$as_me: updating cache $cache_file" >&6;} 8187$as_echo "$as_me: updating cache $cache_file" >&6;}
13882 cat confcache >$cache_file 8188 cat confcache >$cache_file
13883 else 8189 else
13884 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13885echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8191$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13886 fi 8192 fi
13887fi 8193fi
13888rm -f confcache 8194rm -f confcache
13889 8195
13890test "x$prefix" = xNONE && prefix=$ac_default_prefix 8196test "x$prefix" = xNONE && prefix=$ac_default_prefix
13896ac_libobjs= 8202ac_libobjs=
13897ac_ltlibobjs= 8203ac_ltlibobjs=
13898for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8204for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13899 # 1. Remove the extension, and $U if already installed. 8205 # 1. Remove the extension, and $U if already installed.
13900 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8206 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13901 ac_i=`echo "$ac_i" | sed "$ac_script"` 8207 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13902 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8208 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13903 # will be set to the directory where LIBOBJS objects are built. 8209 # will be set to the directory where LIBOBJS objects are built.
13904 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8210 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13905 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 8211 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13906done 8212done
13907LIBOBJS=$ac_libobjs 8213LIBOBJS=$ac_libobjs
13908 8214
13909LTLIBOBJS=$ac_ltlibobjs 8215LTLIBOBJS=$ac_ltlibobjs
13910 8216
13911 8217
13912 8218
13913: ${CONFIG_STATUS=./config.status} 8219: ${CONFIG_STATUS=./config.status}
8220ac_write_fail=0
13914ac_clean_files_save=$ac_clean_files 8221ac_clean_files_save=$ac_clean_files
13915ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8222ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13916{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8223{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13917echo "$as_me: creating $CONFIG_STATUS" >&6;} 8224$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13918cat >$CONFIG_STATUS <<_ACEOF 8225as_write_fail=0
8226cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13919#! $SHELL 8227#! $SHELL
13920# Generated by $as_me. 8228# Generated by $as_me.
13921# Run this file to recreate the current configuration. 8229# Run this file to recreate the current configuration.
13922# Compiler output produced by configure, useful for debugging 8230# Compiler output produced by configure, useful for debugging
13923# configure, is in config.log if it exists. 8231# configure, is in config.log if it exists.
13924 8232
13925debug=false 8233debug=false
13926ac_cs_recheck=false 8234ac_cs_recheck=false
13927ac_cs_silent=false 8235ac_cs_silent=false
8236
13928SHELL=\${CONFIG_SHELL-$SHELL} 8237SHELL=\${CONFIG_SHELL-$SHELL}
8238export SHELL
13929_ACEOF 8239_ASEOF
13930 8240cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13931cat >>$CONFIG_STATUS <<\_ACEOF
13932## --------------------- ## 8241## -------------------- ##
13933## M4sh Initialization. ## 8242## M4sh Initialization. ##
13934## --------------------- ## 8243## -------------------- ##
13935 8244
13936# Be more Bourne compatible 8245# Be more Bourne compatible
13937DUALCASE=1; export DUALCASE # for MKS sh 8246DUALCASE=1; export DUALCASE # for MKS sh
13938if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8247if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13939 emulate sh 8248 emulate sh
13940 NULLCMD=: 8249 NULLCMD=:
13941 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8250 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13942 # is contrary to our usage. Disable this feature. 8251 # is contrary to our usage. Disable this feature.
13943 alias -g '${1+"$@"}'='"$@"' 8252 alias -g '${1+"$@"}'='"$@"'
13944 setopt NO_GLOB_SUBST 8253 setopt NO_GLOB_SUBST
13945else 8254else
13946 case `(set -o) 2>/dev/null` in 8255 case `(set -o) 2>/dev/null` in #(
13947 *posix*) set -o posix ;; 8256 *posix*) :
8257 set -o posix ;; #(
8258 *) :
8259 ;;
13948esac 8260esac
13949
13950fi 8261fi
13951 8262
13952 8263
13953 8264as_nl='
13954 8265'
13955# PATH needs CR 8266export as_nl
13956# Avoid depending upon Character Ranges. 8267# Printing a long string crashes Solaris 7 /usr/bin/printf.
13957as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8268as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13958as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8269as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13959as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8270as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13960as_cr_digits='0123456789' 8271# Prefer a ksh shell builtin over an external printf program on Solaris,
13961as_cr_alnum=$as_cr_Letters$as_cr_digits 8272# but without wasting forks for bash or zsh.
8273if test -z "$BASH_VERSION$ZSH_VERSION" \
8274 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8275 as_echo='print -r --'
8276 as_echo_n='print -rn --'
8277elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8278 as_echo='printf %s\n'
8279 as_echo_n='printf %s'
8280else
8281 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8282 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8283 as_echo_n='/usr/ucb/echo -n'
8284 else
8285 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8286 as_echo_n_body='eval
8287 arg=$1;
8288 case $arg in #(
8289 *"$as_nl"*)
8290 expr "X$arg" : "X\\(.*\\)$as_nl";
8291 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8292 esac;
8293 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8294 '
8295 export as_echo_n_body
8296 as_echo_n='sh -c $as_echo_n_body as_echo'
8297 fi
8298 export as_echo_body
8299 as_echo='sh -c $as_echo_body as_echo'
8300fi
13962 8301
13963# The user is always right. 8302# The user is always right.
13964if test "${PATH_SEPARATOR+set}" != set; then 8303if test "${PATH_SEPARATOR+set}" != set; then
13965 echo "#! /bin/sh" >conf$$.sh 8304 PATH_SEPARATOR=:
13966 echo "exit 0" >>conf$$.sh 8305 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13967 chmod +x conf$$.sh 8306 (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=';' 8307 PATH_SEPARATOR=';'
13970 else 8308 }
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 8309fi
13982 8310
13983 8311
13984# IFS 8312# IFS
13985# We need space, tab and new line, in precisely that order. Quoting is 8313# We need space, tab and new line, in precisely that order. Quoting is
13986# there to prevent editors from complaining about space-tab. 8314# there to prevent editors from complaining about space-tab.
13987# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8315# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13988# splitting by setting IFS to empty value.) 8316# splitting by setting IFS to empty value.)
13989as_nl='
13990'
13991IFS=" "" $as_nl" 8317IFS=" "" $as_nl"
13992 8318
13993# Find who we are. Look in the path if we contain no directory separator. 8319# Find who we are. Look in the path if we contain no directory separator.
13994case $0 in 8320case $0 in #((
13995 *[\\/]* ) as_myself=$0 ;; 8321 *[\\/]* ) as_myself=$0 ;;
13996 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8322 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13997for as_dir in $PATH 8323for as_dir in $PATH
13998do 8324do
13999 IFS=$as_save_IFS 8325 IFS=$as_save_IFS
14000 test -z "$as_dir" && as_dir=. 8326 test -z "$as_dir" && as_dir=.
14001 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8327 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14002done 8328 done
14003IFS=$as_save_IFS 8329IFS=$as_save_IFS
14004 8330
14005 ;; 8331 ;;
14006esac 8332esac
14007# We did not find ourselves, most probably we were run as `sh COMMAND' 8333# 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. 8334# in which case we are not to be found in the path.
14009if test "x$as_myself" = x; then 8335if test "x$as_myself" = x; then
14010 as_myself=$0 8336 as_myself=$0
14011fi 8337fi
14012if test ! -f "$as_myself"; then 8338if test ! -f "$as_myself"; then
14013 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8339 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14014 { (exit 1); exit 1; } 8340 exit 1
14015fi 8341fi
14016 8342
14017# Work around bugs in pre-3.0 UWIN ksh. 8343# Unset variables that we do not need and which cause bugs (e.g. in
8344# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8345# suppresses any "Segmentation fault" message there. '((' could
8346# trigger a bug in pdksh 5.2.14.
14018for as_var in ENV MAIL MAILPATH 8347for as_var in BASH_ENV ENV MAIL MAILPATH
8348do eval test x\${$as_var+set} = xset \
14019do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8349 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14020done 8350done
14021PS1='$ ' 8351PS1='$ '
14022PS2='> ' 8352PS2='> '
14023PS4='+ ' 8353PS4='+ '
14024 8354
14025# NLS nuisances. 8355# NLS nuisances.
14026for as_var in \ 8356LC_ALL=C
14027 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8357export LC_ALL
14028 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8358LANGUAGE=C
14029 LC_TELEPHONE LC_TIME 8359export LANGUAGE
14030do 8360
14031 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8361# CDPATH.
14032 eval $as_var=C; export $as_var 8362(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8363
8364
8365# as_fn_error ERROR [LINENO LOG_FD]
8366# ---------------------------------
8367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8369# script with status $?, using 1 if that was 0.
8370as_fn_error ()
8371{
8372 as_status=$?; test $as_status -eq 0 && as_status=1
8373 if test "$3"; then
8374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8376 fi
8377 $as_echo "$as_me: error: $1" >&2
8378 as_fn_exit $as_status
8379} # as_fn_error
8380
8381
8382# as_fn_set_status STATUS
8383# -----------------------
8384# Set $? to STATUS, without forking.
8385as_fn_set_status ()
8386{
8387 return $1
8388} # as_fn_set_status
8389
8390# as_fn_exit STATUS
8391# -----------------
8392# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8393as_fn_exit ()
8394{
8395 set +e
8396 as_fn_set_status $1
8397 exit $1
8398} # as_fn_exit
8399
8400# as_fn_unset VAR
8401# ---------------
8402# Portably unset VAR.
8403as_fn_unset ()
8404{
8405 { eval $1=; unset $1;}
8406}
8407as_unset=as_fn_unset
8408# as_fn_append VAR VALUE
8409# ----------------------
8410# Append the text in VALUE to the end of the definition contained in VAR. Take
8411# advantage of any shell optimizations that allow amortized linear growth over
8412# repeated appends, instead of the typical quadratic growth present in naive
8413# implementations.
8414if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8415 eval 'as_fn_append ()
8416 {
8417 eval $1+=\$2
8418 }'
14033 else 8419else
14034 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8420 as_fn_append ()
14035 fi 8421 {
14036done 8422 eval $1=\$$1\$2
8423 }
8424fi # as_fn_append
14037 8425
14038# Required to use basename. 8426# as_fn_arith ARG...
8427# ------------------
8428# Perform arithmetic evaluation on the ARGs, and store the result in the
8429# global $as_val. Take advantage of shells that can avoid forks. The arguments
8430# must be portable across $(()) and expr.
8431if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8432 eval 'as_fn_arith ()
8433 {
8434 as_val=$(( $* ))
8435 }'
8436else
8437 as_fn_arith ()
8438 {
8439 as_val=`expr "$@" || test $? -eq 1`
8440 }
8441fi # as_fn_arith
8442
8443
14039if expr a : '\(a\)' >/dev/null 2>&1 && 8444if expr a : '\(a\)' >/dev/null 2>&1 &&
14040 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8445 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14041 as_expr=expr 8446 as_expr=expr
14042else 8447else
14043 as_expr=false 8448 as_expr=false
14047 as_basename=basename 8452 as_basename=basename
14048else 8453else
14049 as_basename=false 8454 as_basename=false
14050fi 8455fi
14051 8456
8457if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8458 as_dirname=dirname
8459else
8460 as_dirname=false
8461fi
14052 8462
14053# Name of the executable.
14054as_me=`$as_basename -- "$0" || 8463as_me=`$as_basename -- "$0" ||
14055$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8464$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14056 X"$0" : 'X\(//\)$' \| \ 8465 X"$0" : 'X\(//\)$' \| \
14057 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8466 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14058echo X/"$0" | 8467$as_echo X/"$0" |
14059 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8468 sed '/^.*\/\([^/][^/]*\)\/*$/{
14060 s//\1/ 8469 s//\1/
14061 q 8470 q
14062 } 8471 }
14063 /^X\/\(\/\/\)$/{ 8472 /^X\/\(\/\/\)$/{
14068 s//\1/ 8477 s//\1/
14069 q 8478 q
14070 } 8479 }
14071 s/.*/./; q'` 8480 s/.*/./; q'`
14072 8481
14073# CDPATH. 8482# Avoid depending upon Character Ranges.
14074$as_unset CDPATH 8483as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14075 8484as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14076 8485as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14077 8486as_cr_digits='0123456789'
14078 as_lineno_1=$LINENO 8487as_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 8488
14127ECHO_C= ECHO_N= ECHO_T= 8489ECHO_C= ECHO_N= ECHO_T=
14128case `echo -n x` in 8490case `echo -n x` in #(((((
14129-n*) 8491-n*)
14130 case `echo 'x\c'` in 8492 case `echo 'xy\c'` in
14131 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8493 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14132 *) ECHO_C='\c';; 8494 xy) ECHO_C='\c';;
8495 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8496 ECHO_T=' ';;
14133 esac;; 8497 esac;;
14134*) 8498*)
14135 ECHO_N='-n';; 8499 ECHO_N='-n';;
14136esac 8500esac
14137 8501
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 8502rm -f conf$$ conf$$.exe conf$$.file
14146if test -d conf$$.dir; then 8503if test -d conf$$.dir; then
14147 rm -f conf$$.dir/conf$$.file 8504 rm -f conf$$.dir/conf$$.file
14148else 8505else
14149 rm -f conf$$.dir 8506 rm -f conf$$.dir
14150 mkdir conf$$.dir 8507 mkdir conf$$.dir 2>/dev/null
14151fi 8508fi
14152echo >conf$$.file 8509if (echo >conf$$.file) 2>/dev/null; then
14153if ln -s conf$$.file conf$$ 2>/dev/null; then 8510 if ln -s conf$$.file conf$$ 2>/dev/null; then
14154 as_ln_s='ln -s' 8511 as_ln_s='ln -s'
14155 # ... but there are two gotchas: 8512 # ... but there are two gotchas:
14156 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8513 # 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. 8514 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14158 # In both cases, we have to default to `cp -p'. 8515 # In both cases, we have to default to `cp -p'.
14159 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8516 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8517 as_ln_s='cp -p'
8518 elif ln conf$$.file conf$$ 2>/dev/null; then
8519 as_ln_s=ln
8520 else
14160 as_ln_s='cp -p' 8521 as_ln_s='cp -p'
14161elif ln conf$$.file conf$$ 2>/dev/null; then 8522 fi
14162 as_ln_s=ln
14163else 8523else
14164 as_ln_s='cp -p' 8524 as_ln_s='cp -p'
14165fi 8525fi
14166rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8526rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14167rmdir conf$$.dir 2>/dev/null 8527rmdir conf$$.dir 2>/dev/null
14168 8528
14169if mkdir -p . 2>/dev/null; then 8529
14170 as_mkdir_p=: 8530# as_fn_mkdir_p
14171else 8531# -------------
14172 test -d ./-p && rmdir ./-p 8532# Create "$as_dir" as a directory, including parents if necessary.
14173 as_mkdir_p=false 8533as_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{ 8534{
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 8535
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 #( 8536 case $as_dir in #(
14737 -*) as_dir=./$as_dir;; 8537 -*) as_dir=./$as_dir;;
14738 esac 8538 esac
14739 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 8539 test -d "$as_dir" || eval $as_mkdir_p || {
14740 as_dirs= 8540 as_dirs=
14741 while :; do 8541 while :; do
14742 case $as_dir in #( 8542 case $as_dir in #(
14743 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 8543 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14744 *) as_qdir=$as_dir;; 8544 *) as_qdir=$as_dir;;
14745 esac 8545 esac
14746 as_dirs="'$as_qdir' $as_dirs" 8546 as_dirs="'$as_qdir' $as_dirs"
14747 as_dir=`$as_dirname -- "$as_dir" || 8547 as_dir=`$as_dirname -- "$as_dir" ||
14748$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8548$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14749 X"$as_dir" : 'X\(//\)[^/]' \| \ 8549 X"$as_dir" : 'X\(//\)[^/]' \| \
14750 X"$as_dir" : 'X\(//\)$' \| \ 8550 X"$as_dir" : 'X\(//\)$' \| \
14751 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8551 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14752echo X"$as_dir" | 8552$as_echo X"$as_dir" |
14753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14754 s//\1/ 8554 s//\1/
14755 q 8555 q
14756 } 8556 }
14757 /^X\(\/\/\)[^/].*/{ 8557 /^X\(\/\/\)[^/].*/{
14768 } 8568 }
14769 s/.*/./; q'` 8569 s/.*/./; q'`
14770 test -d "$as_dir" && break 8570 test -d "$as_dir" && break
14771 done 8571 done
14772 test -z "$as_dirs" || eval "mkdir $as_dirs" 8572 test -z "$as_dirs" || eval "mkdir $as_dirs"
14773 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 8573 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14774echo "$as_me: error: cannot create directory $as_dir" >&2;} 8574
14775 { (exit 1); exit 1; }; }; } 8575
8576} # as_fn_mkdir_p
8577if mkdir -p . 2>/dev/null; then
8578 as_mkdir_p='mkdir -p "$as_dir"'
8579else
8580 test -d ./-p && rmdir ./-p
8581 as_mkdir_p=false
8582fi
8583
8584if test -x / >/dev/null 2>&1; then
8585 as_test_x='test -x'
8586else
8587 if ls -dL / >/dev/null 2>&1; then
8588 as_ls_L_option=L
8589 else
8590 as_ls_L_option=
8591 fi
8592 as_test_x='
8593 eval sh -c '\''
8594 if test -d "$1"; then
8595 test -d "$1/.";
8596 else
8597 case $1 in #(
8598 -*)set "./$1";;
8599 esac;
8600 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8601 ???[sx]*):;;*)false;;esac;fi
8602 '\'' sh
8603 '
8604fi
8605as_executable_p=$as_test_x
8606
8607# Sed expression to map a string onto a valid CPP name.
8608as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8609
8610# Sed expression to map a string onto a valid variable name.
8611as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8612
8613
8614exec 6>&1
8615## ----------------------------------- ##
8616## Main body of $CONFIG_STATUS script. ##
8617## ----------------------------------- ##
8618_ASEOF
8619test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8620
8621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8622# Save the log message, to keep $0 and so on meaningful, and to
8623# report actual input values of CONFIG_FILES etc. instead of their
8624# values after options handling.
8625ac_log="
8626This file was extended by $as_me, which was
8627generated by GNU Autoconf 2.65. Invocation command line was
8628
8629 CONFIG_FILES = $CONFIG_FILES
8630 CONFIG_HEADERS = $CONFIG_HEADERS
8631 CONFIG_LINKS = $CONFIG_LINKS
8632 CONFIG_COMMANDS = $CONFIG_COMMANDS
8633 $ $0 $@
8634
8635on `(hostname || uname -n) 2>/dev/null | sed 1q`
8636"
8637
8638_ACEOF
8639
8640case $ac_config_files in *"
8641"*) set x $ac_config_files; shift; ac_config_files=$*;;
8642esac
8643
8644case $ac_config_headers in *"
8645"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8646esac
8647
8648
8649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8650# Files that config.status was made for.
8651config_files="$ac_config_files"
8652config_headers="$ac_config_headers"
8653
8654_ACEOF
8655
8656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8657ac_cs_usage="\
8658\`$as_me' instantiates files and other configuration actions
8659from templates according to the current configuration. Unless the files
8660and actions are specified as TAGs, all are instantiated by default.
8661
8662Usage: $0 [OPTION]... [TAG]...
8663
8664 -h, --help print this help, then exit
8665 -V, --version print version number and configuration settings, then exit
8666 --config print configuration, then exit
8667 -q, --quiet, --silent
8668 do not print progress messages
8669 -d, --debug don't remove temporary files
8670 --recheck update $as_me by reconfiguring in the same conditions
8671 --file=FILE[:TEMPLATE]
8672 instantiate the configuration file FILE
8673 --header=FILE[:TEMPLATE]
8674 instantiate the configuration header FILE
8675
8676Configuration files:
8677$config_files
8678
8679Configuration headers:
8680$config_headers
8681
8682Report bugs to the package provider."
8683
8684_ACEOF
8685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8686ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8687ac_cs_version="\\
8688config.status
8689configured by $0, generated by GNU Autoconf 2.65,
8690 with options \\"\$ac_cs_config\\"
8691
8692Copyright (C) 2009 Free Software Foundation, Inc.
8693This config.status script is free software; the Free Software Foundation
8694gives unlimited permission to copy, distribute and modify it."
8695
8696ac_pwd='$ac_pwd'
8697srcdir='$srcdir'
8698INSTALL='$INSTALL'
8699test -n "\$AWK" || AWK=awk
8700_ACEOF
8701
8702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8703# The default lists apply if the user does not specify any file.
8704ac_need_defaults=:
8705while test $# != 0
8706do
8707 case $1 in
8708 --*=*)
8709 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8710 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8711 ac_shift=:
8712 ;;
8713 *)
8714 ac_option=$1
8715 ac_optarg=$2
8716 ac_shift=shift
8717 ;;
8718 esac
8719
8720 case $ac_option in
8721 # Handling of the options.
8722 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8723 ac_cs_recheck=: ;;
8724 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8725 $as_echo "$ac_cs_version"; exit ;;
8726 --config | --confi | --conf | --con | --co | --c )
8727 $as_echo "$ac_cs_config"; exit ;;
8728 --debug | --debu | --deb | --de | --d | -d )
8729 debug=: ;;
8730 --file | --fil | --fi | --f )
8731 $ac_shift
8732 case $ac_optarg in
8733 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8734 esac
8735 as_fn_append CONFIG_FILES " '$ac_optarg'"
8736 ac_need_defaults=false;;
8737 --header | --heade | --head | --hea )
8738 $ac_shift
8739 case $ac_optarg in
8740 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8741 esac
8742 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8743 ac_need_defaults=false;;
8744 --he | --h)
8745 # Conflict between --help and --header
8746 as_fn_error "ambiguous option: \`$1'
8747Try \`$0 --help' for more information.";;
8748 --help | --hel | -h )
8749 $as_echo "$ac_cs_usage"; exit ;;
8750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8751 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8752 ac_cs_silent=: ;;
8753
8754 # This is an error.
8755 -*) as_fn_error "unrecognized option: \`$1'
8756Try \`$0 --help' for more information." ;;
8757
8758 *) as_fn_append ac_config_targets " $1"
8759 ac_need_defaults=false ;;
8760
8761 esac
8762 shift
8763done
8764
8765ac_configure_extra_args=
8766
8767if $ac_cs_silent; then
8768 exec 6>/dev/null
8769 ac_configure_extra_args="$ac_configure_extra_args --silent"
8770fi
8771
8772_ACEOF
8773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8774if \$ac_cs_recheck; then
8775 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8776 shift
8777 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8778 CONFIG_SHELL='$SHELL'
8779 export CONFIG_SHELL
8780 exec "\$@"
8781fi
8782
8783_ACEOF
8784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8785exec 5>>config.log
8786{
8787 echo
8788 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8789## Running $as_me. ##
8790_ASBOX
8791 $as_echo "$ac_log"
8792} >&5
8793
8794_ACEOF
8795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8796_ACEOF
8797
8798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8799
8800# Handling of arguments.
8801for ac_config_target in $ac_config_targets
8802do
8803 case $ac_config_target in
8804 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
8805 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8806 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8807 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8808
8809 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8810 esac
8811done
8812
8813
8814# If the user did not use the arguments to specify the items to instantiate,
8815# then the envvar interface is used. Set only those that are not.
8816# We use the long form for the default assignment because of an extremely
8817# bizarre bug on SunOS 4.1.3.
8818if $ac_need_defaults; then
8819 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8820 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8821fi
8822
8823# Have a temporary directory for convenience. Make it in the build tree
8824# simply because there is no reason against having it here, and in addition,
8825# creating and moving files from /tmp can sometimes cause problems.
8826# Hook for its removal unless debugging.
8827# Note that there is a small window in which the directory will not be cleaned:
8828# after its creation but before its name has been assigned to `$tmp'.
8829$debug ||
8830{
8831 tmp=
8832 trap 'exit_status=$?
8833 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8834' 0
8835 trap 'as_fn_exit 1' 1 2 13 15
8836}
8837# Create a (secure) tmp directory for tmp files.
8838
8839{
8840 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8841 test -n "$tmp" && test -d "$tmp"
8842} ||
8843{
8844 tmp=./conf$$-$RANDOM
8845 (umask 077 && mkdir "$tmp")
8846} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8847
8848# Set up the scripts for CONFIG_FILES section.
8849# No need to generate them if there are no CONFIG_FILES.
8850# This happens for instance with `./config.status config.h'.
8851if test -n "$CONFIG_FILES"; then
8852
8853
8854ac_cr=`echo X | tr X '\015'`
8855# On cygwin, bash can eat \r inside `` if the user requested igncr.
8856# But we know of no other shell where ac_cr would be empty at this
8857# point, so we can use a bashism as a fallback.
8858if test "x$ac_cr" = x; then
8859 eval ac_cr=\$\'\\r\'
8860fi
8861ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8862if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8863 ac_cs_awk_cr='\r'
8864else
8865 ac_cs_awk_cr=$ac_cr
8866fi
8867
8868echo 'BEGIN {' >"$tmp/subs1.awk" &&
8869_ACEOF
8870
8871
8872{
8873 echo "cat >conf$$subs.awk <<_ACEOF" &&
8874 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8875 echo "_ACEOF"
8876} >conf$$subs.sh ||
8877 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8878ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8879ac_delim='%!_!# '
8880for ac_last_try in false false false false false :; do
8881 . ./conf$$subs.sh ||
8882 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8883
8884 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8885 if test $ac_delim_n = $ac_delim_num; then
8886 break
8887 elif $ac_last_try; then
8888 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8889 else
8890 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8891 fi
8892done
8893rm -f conf$$subs.sh
8894
8895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8896cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8897_ACEOF
8898sed -n '
8899h
8900s/^/S["/; s/!.*/"]=/
8901p
8902g
8903s/^[^!]*!//
8904:repl
8905t repl
8906s/'"$ac_delim"'$//
8907t delim
8908:nl
8909h
8910s/\(.\{148\}\)..*/\1/
8911t more1
8912s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8913p
8914n
8915b repl
8916:more1
8917s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8918p
8919g
8920s/.\{148\}//
8921t nl
8922:delim
8923h
8924s/\(.\{148\}\)..*/\1/
8925t more2
8926s/["\\]/\\&/g; s/^/"/; s/$/"/
8927p
8928b
8929:more2
8930s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8931p
8932g
8933s/.\{148\}//
8934t delim
8935' <conf$$subs.awk | sed '
8936/^[^""]/{
8937 N
8938 s/\n//
8939}
8940' >>$CONFIG_STATUS || ac_write_fail=1
8941rm -f conf$$subs.awk
8942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8943_ACAWK
8944cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8945 for (key in S) S_is_set[key] = 1
8946 FS = ""
8947
8948}
8949{
8950 line = $ 0
8951 nfields = split(line, field, "@")
8952 substed = 0
8953 len = length(field[1])
8954 for (i = 2; i < nfields; i++) {
8955 key = field[i]
8956 keylen = length(key)
8957 if (S_is_set[key]) {
8958 value = S[key]
8959 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8960 len += length(value) + length(field[++i])
8961 substed = 1
8962 } else
8963 len += 1 + keylen
8964 }
8965
8966 print line
8967}
8968
8969_ACAWK
8970_ACEOF
8971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8972if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8973 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8974else
8975 cat
8976fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8977 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8978_ACEOF
8979
8980# VPATH may cause trouble with some makes, so we remove $(srcdir),
8981# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8982# trailing colons and then remove the whole line if VPATH becomes empty
8983# (actually we leave an empty line to preserve line numbers).
8984if test "x$srcdir" = x.; then
8985 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8986s/:*\$(srcdir):*/:/
8987s/:*\${srcdir}:*/:/
8988s/:*@srcdir@:*/:/
8989s/^\([^=]*=[ ]*\):*/\1/
8990s/:*$//
8991s/^[^=]*=[ ]*$//
8992}'
8993fi
8994
8995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8996fi # test -n "$CONFIG_FILES"
8997
8998# Set up the scripts for CONFIG_HEADERS section.
8999# No need to generate them if there are no CONFIG_HEADERS.
9000# This happens for instance with `./config.status Makefile'.
9001if test -n "$CONFIG_HEADERS"; then
9002cat >"$tmp/defines.awk" <<\_ACAWK ||
9003BEGIN {
9004_ACEOF
9005
9006# Transform confdefs.h into an awk script `defines.awk', embedded as
9007# here-document in config.status, that substitutes the proper values into
9008# config.h.in to produce config.h.
9009
9010# Create a delimiter string that does not exist in confdefs.h, to ease
9011# handling of long lines.
9012ac_delim='%!_!# '
9013for ac_last_try in false false :; do
9014 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9015 if test -z "$ac_t"; then
9016 break
9017 elif $ac_last_try; then
9018 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
9019 else
9020 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9021 fi
9022done
9023
9024# For the awk script, D is an array of macro values keyed by name,
9025# likewise P contains macro parameters if any. Preserve backslash
9026# newline sequences.
9027
9028ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9029sed -n '
9030s/.\{148\}/&'"$ac_delim"'/g
9031t rset
9032:rset
9033s/^[ ]*#[ ]*define[ ][ ]*/ /
9034t def
9035d
9036:def
9037s/\\$//
9038t bsnl
9039s/["\\]/\\&/g
9040s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9041D["\1"]=" \3"/p
9042s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9043d
9044:bsnl
9045s/["\\]/\\&/g
9046s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9047D["\1"]=" \3\\\\\\n"\\/p
9048t cont
9049s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9050t cont
9051d
9052:cont
9053n
9054s/.\{148\}/&'"$ac_delim"'/g
9055t clear
9056:clear
9057s/\\$//
9058t bsnlc
9059s/["\\]/\\&/g; s/^/"/; s/$/"/p
9060d
9061:bsnlc
9062s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9063b cont
9064' <confdefs.h | sed '
9065s/'"$ac_delim"'/"\\\
9066"/g' >>$CONFIG_STATUS || ac_write_fail=1
9067
9068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9069 for (key in D) D_is_set[key] = 1
9070 FS = ""
9071}
9072/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9073 line = \$ 0
9074 split(line, arg, " ")
9075 if (arg[1] == "#") {
9076 defundef = arg[2]
9077 mac1 = arg[3]
9078 } else {
9079 defundef = substr(arg[1], 2)
9080 mac1 = arg[2]
9081 }
9082 split(mac1, mac2, "(") #)
9083 macro = mac2[1]
9084 prefix = substr(line, 1, index(line, defundef) - 1)
9085 if (D_is_set[macro]) {
9086 # Preserve the white space surrounding the "#".
9087 print prefix "define", macro P[macro] D[macro]
9088 next
9089 } else {
9090 # Replace #undef with comments. This is necessary, for example,
9091 # in the case of _POSIX_SOURCE, which is predefined and required
9092 # on some systems where configure will not decide to define it.
9093 if (defundef == "undef") {
9094 print "/*", prefix defundef, macro, "*/"
9095 next
9096 }
9097 }
9098}
9099{ print }
9100_ACAWK
9101_ACEOF
9102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9103 as_fn_error "could not setup config headers machinery" "$LINENO" 5
9104fi # test -n "$CONFIG_HEADERS"
9105
9106
9107eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
9108shift
9109for ac_tag
9110do
9111 case $ac_tag in
9112 :[FHLC]) ac_mode=$ac_tag; continue;;
9113 esac
9114 case $ac_mode$ac_tag in
9115 :[FHL]*:*);;
9116 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
9117 :[FH]-) ac_tag=-:-;;
9118 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9119 esac
9120 ac_save_IFS=$IFS
9121 IFS=:
9122 set x $ac_tag
9123 IFS=$ac_save_IFS
9124 shift
9125 ac_file=$1
9126 shift
9127
9128 case $ac_mode in
9129 :L) ac_source=$1;;
9130 :[FH])
9131 ac_file_inputs=
9132 for ac_f
9133 do
9134 case $ac_f in
9135 -) ac_f="$tmp/stdin";;
9136 *) # Look for the file first in the build tree, then in the source tree
9137 # (if the path is not absolute). The absolute path cannot be DOS-style,
9138 # because $ac_f cannot contain `:'.
9139 test -f "$ac_f" ||
9140 case $ac_f in
9141 [\\/$]*) false;;
9142 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9143 esac ||
9144 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9145 esac
9146 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9147 as_fn_append ac_file_inputs " '$ac_f'"
9148 done
9149
9150 # Let's still pretend it is `configure' which instantiates (i.e., don't
9151 # use $as_me), people would be surprised to read:
9152 # /* config.h. Generated by config.status. */
9153 configure_input='Generated from '`
9154 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9155 `' by configure.'
9156 if test x"$ac_file" != x-; then
9157 configure_input="$ac_file. $configure_input"
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9159$as_echo "$as_me: creating $ac_file" >&6;}
9160 fi
9161 # Neutralize special characters interpreted by sed in replacement strings.
9162 case $configure_input in #(
9163 *\&* | *\|* | *\\* )
9164 ac_sed_conf_input=`$as_echo "$configure_input" |
9165 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9166 *) ac_sed_conf_input=$configure_input;;
9167 esac
9168
9169 case $ac_tag in
9170 *:-:* | *:-) cat >"$tmp/stdin" \
9171 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
9172 esac
9173 ;;
9174 esac
9175
9176 ac_dir=`$as_dirname -- "$ac_file" ||
9177$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9178 X"$ac_file" : 'X\(//\)[^/]' \| \
9179 X"$ac_file" : 'X\(//\)$' \| \
9180 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9181$as_echo X"$ac_file" |
9182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9183 s//\1/
9184 q
9185 }
9186 /^X\(\/\/\)[^/].*/{
9187 s//\1/
9188 q
9189 }
9190 /^X\(\/\/\)$/{
9191 s//\1/
9192 q
9193 }
9194 /^X\(\/\).*/{
9195 s//\1/
9196 q
9197 }
9198 s/.*/./; q'`
9199 as_dir="$ac_dir"; as_fn_mkdir_p
14776 ac_builddir=. 9200 ac_builddir=.
14777 9201
14778case "$ac_dir" in 9202case "$ac_dir" in
14779.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9203.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14780*) 9204*)
14781 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9205 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14782 # A ".." for each directory in $ac_dir_suffix. 9206 # A ".." for each directory in $ac_dir_suffix.
14783 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 9207 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14784 case $ac_top_builddir_sub in 9208 case $ac_top_builddir_sub in
14785 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9209 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14786 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9210 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14787 esac ;; 9211 esac ;;
14788esac 9212esac
14818 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9242 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14819 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9243 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14820 esac 9244 esac
14821_ACEOF 9245_ACEOF
14822 9246
14823cat >>$CONFIG_STATUS <<\_ACEOF 9247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14824# If the template does not know about datarootdir, expand it. 9248# If the template does not know about datarootdir, expand it.
14825# FIXME: This hack should be removed a few years after 2.60. 9249# FIXME: This hack should be removed a few years after 2.60.
14826ac_datarootdir_hack=; ac_datarootdir_seen= 9250ac_datarootdir_hack=; ac_datarootdir_seen=
14827 9251ac_sed_dataroot='
14828case `sed -n '/datarootdir/ { 9252/datarootdir/ {
14829 p 9253 p
14830 q 9254 q
14831} 9255}
14832/@datadir@/p 9256/@datadir@/p
14833/@docdir@/p 9257/@docdir@/p
14834/@infodir@/p 9258/@infodir@/p
14835/@localedir@/p 9259/@localedir@/p
14836/@mandir@/p 9260/@mandir@/p'
14837' $ac_file_inputs` in 9261case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14838*datarootdir*) ac_datarootdir_seen=yes;; 9262*datarootdir*) ac_datarootdir_seen=yes;;
14839*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9263*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14840 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9264 { $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;} 9265$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14842_ACEOF 9266_ACEOF
14843cat >>$CONFIG_STATUS <<_ACEOF 9267cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14844 ac_datarootdir_hack=' 9268 ac_datarootdir_hack='
14845 s&@datadir@&$datadir&g 9269 s&@datadir@&$datadir&g
14846 s&@docdir@&$docdir&g 9270 s&@docdir@&$docdir&g
14847 s&@infodir@&$infodir&g 9271 s&@infodir@&$infodir&g
14848 s&@localedir@&$localedir&g 9272 s&@localedir@&$localedir&g
14849 s&@mandir@&$mandir&g 9273 s&@mandir@&$mandir&g
14850 s&\\\${datarootdir}&$datarootdir&g' ;; 9274 s&\\\${datarootdir}&$datarootdir&g' ;;
14851esac 9275esac
14852_ACEOF 9276_ACEOF
14853 9277
14854# Neutralize VPATH when `$srcdir' = `.'. 9278# Neutralize VPATH when `$srcdir' = `.'.
14855# Shell code in configure.ac might set extrasub. 9279# Shell code in configure.ac might set extrasub.
14856# FIXME: do we really want to maintain this feature? 9280# FIXME: do we really want to maintain this feature?
14857cat >>$CONFIG_STATUS <<_ACEOF 9281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14858 sed "$ac_vpsub 9282ac_sed_extra="$ac_vpsub
14859$extrasub 9283$extrasub
14860_ACEOF 9284_ACEOF
14861cat >>$CONFIG_STATUS <<\_ACEOF 9285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14862:t 9286:t
14863/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9287/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14864s&@configure_input@&$configure_input&;t t 9288s|@configure_input@|$ac_sed_conf_input|;t t
14865s&@top_builddir@&$ac_top_builddir_sub&;t t 9289s&@top_builddir@&$ac_top_builddir_sub&;t t
9290s&@top_build_prefix@&$ac_top_build_prefix&;t t
14866s&@srcdir@&$ac_srcdir&;t t 9291s&@srcdir@&$ac_srcdir&;t t
14867s&@abs_srcdir@&$ac_abs_srcdir&;t t 9292s&@abs_srcdir@&$ac_abs_srcdir&;t t
14868s&@top_srcdir@&$ac_top_srcdir&;t t 9293s&@top_srcdir@&$ac_top_srcdir&;t t
14869s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9294s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14870s&@builddir@&$ac_builddir&;t t 9295s&@builddir@&$ac_builddir&;t t
14871s&@abs_builddir@&$ac_abs_builddir&;t t 9296s&@abs_builddir@&$ac_abs_builddir&;t t
14872s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9297s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14873s&@INSTALL@&$ac_INSTALL&;t t 9298s&@INSTALL@&$ac_INSTALL&;t t
14874$ac_datarootdir_hack 9299$ac_datarootdir_hack
14875" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 9300"
9301eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9302 || as_fn_error "could not create $ac_file" "$LINENO" 5
14876 9303
14877test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9304test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14878 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 9305 { 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"; } && 9306 { 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' 9307 { $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 9308which seems to be undefined. Please make sure it is defined." >&5
14882echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9309$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;} 9310which seems to be undefined. Please make sure it is defined." >&2;}
14884 9311
14885 rm -f "$tmp/stdin" 9312 rm -f "$tmp/stdin"
14886 case $ac_file in 9313 case $ac_file in
14887 -) cat "$tmp/out"; rm -f "$tmp/out";; 9314 -) cat "$tmp/out" && rm -f "$tmp/out";;
14888 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 9315 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14889 esac 9316 esac \
9317 || as_fn_error "could not create $ac_file" "$LINENO" 5
14890 ;; 9318 ;;
14891 :H) 9319 :H)
14892 # 9320 #
14893 # CONFIG_HEADER 9321 # CONFIG_HEADER
14894 # 9322 #
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 9323 if test x"$ac_file" != x-; then
9324 {
14974 echo "/* $configure_input */" >"$tmp/config.h" 9325 $as_echo "/* $configure_input */" \
14975 cat "$ac_result" >>"$tmp/config.h" 9326 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9327 } >"$tmp/config.h" \
9328 || as_fn_error "could not create $ac_file" "$LINENO" 5
14976 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 9329 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14977 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9330 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14978echo "$as_me: $ac_file is unchanged" >&6;} 9331$as_echo "$as_me: $ac_file is unchanged" >&6;}
14979 else 9332 else
14980 rm -f $ac_file 9333 rm -f "$ac_file"
14981 mv "$tmp/config.h" $ac_file 9334 mv "$tmp/config.h" "$ac_file" \
9335 || as_fn_error "could not create $ac_file" "$LINENO" 5
14982 fi 9336 fi
14983 else 9337 else
14984 echo "/* $configure_input */" 9338 $as_echo "/* $configure_input */" \
14985 cat "$ac_result" 9339 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9340 || as_fn_error "could not create -" "$LINENO" 5
14986 fi 9341 fi
14987 rm -f "$tmp/out12"
14988 ;; 9342 ;;
14989 9343
14990 9344
14991 esac 9345 esac
14992 9346
14993done # for ac_tag 9347done # for ac_tag
14994 9348
14995 9349
14996{ (exit 0); exit 0; } 9350as_fn_exit 0
14997_ACEOF 9351_ACEOF
14998chmod +x $CONFIG_STATUS
14999ac_clean_files=$ac_clean_files_save 9352ac_clean_files=$ac_clean_files_save
9353
9354test $ac_write_fail = 0 ||
9355 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15000 9356
15001 9357
15002# configure is writing to config.log, and then calls config.status. 9358# configure is writing to config.log, and then calls config.status.
15003# config.status does its own redirection, appending to config.log. 9359# config.status does its own redirection, appending to config.log.
15004# Unfortunately, on DOS this fails, as config.log is still kept open 9360# Unfortunately, on DOS this fails, as config.log is still kept open
15015 exec 5>/dev/null 9371 exec 5>/dev/null
15016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9372 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15017 exec 5>>config.log 9373 exec 5>>config.log
15018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9374 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15019 # would make configure fail if this is the last instruction. 9375 # would make configure fail if this is the last instruction.
15020 $ac_cs_success || { (exit 1); exit 1; } 9376 $ac_cs_success || as_fn_exit $?
9377fi
9378if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9380$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15021fi 9381fi
15022 9382
15023 9383
15024echo "Configuration: 9384echo "Configuration:
15025 9385
15028 Install path: ${prefix}/bin 9388 Install path: ${prefix}/bin
15029 Compiler: $CXX 9389 Compiler: $CXX
15030 Compiler flags: $CXXFLAGS 9390 Compiler flags: $CXXFLAGS
15031 Linker: $LINKER" 9391 Linker: $LINKER"
15032 9392
15033if test x$support_xpm = xyes; then
15034 echo " Xpm library: $XPM_LIBS"
15035fi
15036
15037if test x$term != x; then 9393if test x$term != x; then
15038 echo " set TERM to: $term" 9394 echo " set TERM to: $term"
15039fi 9395fi
15040if test x$terminfo != x; then 9396if test x$terminfo != x; then
15041 echo " set TERMINFO to: $terminfo" 9397 echo " set TERMINFO to: $terminfo"
15045if test x$RESFALLBACK != x; then 9401if test x$RESFALLBACK != x; then
15046 echo " resource class fallback: $RESFALLBACK" 9402 echo " resource class fallback: $RESFALLBACK"
15047fi 9403fi
15048echo 9404echo
15049echo " embedded perl: $support_perl" 9405echo " embedded perl: $support_perl"
9406echo " libafterimage: $support_afterimage"
15050echo 9407echo
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 9408if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
15062 echo ".----------------------------------------------------------------." 9409 echo ".----------------------------------------------------------------."
15063 echo ". WARNING: --enable-xim was specified however the locale support ." 9410 echo ". WARNING: --enable-xim was specified however the locale support ."
15064 echo ". functions could not be found. ." 9411 echo ". functions could not be found. ."
15065 echo ". XIM is now being DISABLED! ." 9412 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines