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.147 by mikachu, Tue Nov 15 01:13:49 2011 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.68.
4#
4# 5#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
7# This configure script is free software; the Free Software Foundation 11# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it. 12# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ## 13## -------------------- ##
10## M4sh Initialization. ## 14## M4sh Initialization. ##
11## --------------------- ## 15## -------------------- ##
12 16
13# Be more Bourne compatible 17# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh 18DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16 emulate sh 20 emulate sh
17 NULLCMD=: 21 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature. 23 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"' 24 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST 25 setopt NO_GLOB_SUBST
22else 26else
23 case `(set -o) 2>/dev/null` in 27 case `(set -o) 2>/dev/null` in #(
24 *posix*) set -o posix ;; 28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
25esac 32esac
26
27fi 33fi
28 34
29 35
30 36as_nl='
31 37'
32# PATH needs CR 38export as_nl
33# Avoid depending upon Character Ranges. 39# Printing a long string crashes Solaris 7 /usr/bin/printf.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37as_cr_digits='0123456789' 43# Prefer a ksh shell builtin over an external printf program on Solaris,
38as_cr_alnum=$as_cr_Letters$as_cr_digits 44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
39 73
40# The user is always right. 74# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then 75if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh 76 PATH_SEPARATOR=:
43 echo "exit 0" >>conf$$.sh 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
44 chmod +x conf$$.sh 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';' 79 PATH_SEPARATOR=';'
47 else 80 }
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi 81fi
59 82
60 83
61# IFS 84# IFS
62# We need space, tab and new line, in precisely that order. Quoting is 85# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab. 86# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.) 88# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl" 89IFS=" "" $as_nl"
69 90
70# Find who we are. Look in the path if we contain no directory separator. 91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
71case $0 in 93case $0 in #((
72 *[\\/]* ) as_myself=$0 ;; 94 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH 96for as_dir in $PATH
75do 97do
76 IFS=$as_save_IFS 98 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=. 99 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done 101 done
80IFS=$as_save_IFS 102IFS=$as_save_IFS
81 103
82 ;; 104 ;;
83esac 105esac
84# We did not find ourselves, most probably we were run as `sh COMMAND' 106# 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. 107# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then 108if test "x$as_myself" = x; then
87 as_myself=$0 109 as_myself=$0
88fi 110fi
89if test ! -f "$as_myself"; then 111if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; } 113 exit 1
92fi 114fi
93 115
94# Work around bugs in pre-3.0 UWIN ksh. 116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
95for as_var in ENV MAIL MAILPATH 120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
97done 123done
98PS1='$ ' 124PS1='$ '
99PS2='> ' 125PS2='> '
100PS4='+ ' 126PS4='+ '
101 127
102# NLS nuisances. 128# NLS nuisances.
103for as_var in \ 129LC_ALL=C
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 130export LC_ALL
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 131LANGUAGE=C
106 LC_TELEPHONE LC_TIME 132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185as_found=false
186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
107do 187do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 188 IFS=$as_save_IFS
109 eval $as_var=C; export $as_var 189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201fi
202fi
203 done;;
204 esac
205 as_found=false
206done
207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210fi; }
211IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
110 else 238 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240$0: including any error possibly output before this
241$0: message. Then install a modern shell, or manually run
242$0: the script under such a shell if you do have one."
112 fi 243 fi
113done 244 exit 1
245fi
246fi
247fi
248SHELL=${CONFIG_SHELL-/bin/sh}
249export SHELL
250# Unset more variables known to interfere with behavior of common tools.
251CLICOLOR_FORCE= GREP_OPTIONS=
252unset CLICOLOR_FORCE GREP_OPTIONS
114 253
115# Required to use basename. 254## --------------------- ##
255## M4sh Shell Functions. ##
256## --------------------- ##
257# as_fn_unset VAR
258# ---------------
259# Portably unset VAR.
260as_fn_unset ()
261{
262 { eval $1=; unset $1;}
263}
264as_unset=as_fn_unset
265
266# as_fn_set_status STATUS
267# -----------------------
268# Set $? to STATUS, without forking.
269as_fn_set_status ()
270{
271 return $1
272} # as_fn_set_status
273
274# as_fn_exit STATUS
275# -----------------
276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277as_fn_exit ()
278{
279 set +e
280 as_fn_set_status $1
281 exit $1
282} # as_fn_exit
283
284# as_fn_mkdir_p
285# -------------
286# Create "$as_dir" as a directory, including parents if necessary.
287as_fn_mkdir_p ()
288{
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306$as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330} # as_fn_mkdir_p
331# as_fn_append VAR VALUE
332# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive
336# implementations.
337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347fi # as_fn_append
348
349# as_fn_arith ARG...
350# ------------------
351# Perform arithmetic evaluation on the ARGs, and store the result in the
352# global $as_val. Take advantage of shells that can avoid forks. The arguments
353# must be portable across $(()) and expr.
354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364fi # as_fn_arith
365
366
367# as_fn_error STATUS ERROR [LINENO LOG_FD]
368# ----------------------------------------
369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371# script with STATUS, using 1 if that was 0.
372as_fn_error ()
373{
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381} # as_fn_error
382
116if expr a : '\(a\)' >/dev/null 2>&1 && 383if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr 385 as_expr=expr
119else 386else
120 as_expr=false 387 as_expr=false
124 as_basename=basename 391 as_basename=basename
125else 392else
126 as_basename=false 393 as_basename=false
127fi 394fi
128 395
396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398else
399 as_dirname=false
400fi
129 401
130# Name of the executable.
131as_me=`$as_basename -- "$0" || 402as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \ 404 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" | 406$as_echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 407 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/ 408 s//\1/
138 q 409 q
139 } 410 }
140 /^X\/\(\/\/\)$/{ 411 /^X\/\(\/\/\)$/{
145 s//\1/ 416 s//\1/
146 q 417 q
147 } 418 }
148 s/.*/./; q'` 419 s/.*/./; q'`
149 420
150# CDPATH. 421# Avoid depending upon Character Ranges.
151$as_unset CDPATH 422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425as_cr_digits='0123456789'
426as_cr_alnum=$as_cr_Letters$as_cr_digits
152 427
153 428
154if test "x$CONFIG_SHELL" = x; then 429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
155 if (eval ":") 2>/dev/null; then 430 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" && 431 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" || { 432 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. :-) 433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n ' 434 sed -n '
439 p 435 p
440 /[$]LINENO/= 436 /[$]LINENO/=
441 ' <$as_myself | 437 ' <$as_myself |
442 sed ' 438 sed '
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop 446 t loop
451 s/-\n.*// 447 s/-\n.*//
452 ' >$as_me.lineno && 448 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" || 449 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 450 { $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 451
457 # Don't try to exec as it changes $[0], causing all sort of problems 452 # 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 453 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this). 454 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno" 455 . "./$as_me.lineno"
461 # Exit status is that of the last command. 456 # Exit status is that of the last command.
462 exit 457 exit
463} 458}
464 459
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= 460ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in 461case `echo -n x` in #(((((
474-n*) 462-n*)
475 case `echo 'x\c'` in 463 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';; 465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
478 esac;; 468 esac;;
479*) 469*)
480 ECHO_N='-n';; 470 ECHO_N='-n';;
481esac 471esac
482 472
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 473rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then 474if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file 475 rm -f conf$$.dir/conf$$.file
493else 476else
494 rm -f conf$$.dir 477 rm -f conf$$.dir
495 mkdir conf$$.dir 478 mkdir conf$$.dir 2>/dev/null
496fi 479fi
497echo >conf$$.file 480if (echo >conf$$.file) 2>/dev/null; then
498if ln -s conf$$.file conf$$ 2>/dev/null; then 481 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s' 482 as_ln_s='ln -s'
500 # ... but there are two gotchas: 483 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 484 # 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. 485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'. 486 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
505 as_ln_s='cp -p' 492 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then 493 fi
507 as_ln_s=ln
508else 494else
509 as_ln_s='cp -p' 495 as_ln_s='cp -p'
510fi 496fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null 498rmdir conf$$.dir 2>/dev/null
513 499
514if mkdir -p . 2>/dev/null; then 500if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=: 501 as_mkdir_p='mkdir -p "$as_dir"'
516else 502else
517 test -d ./-p && rmdir ./-p 503 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false 504 as_mkdir_p=false
519fi 505fi
520 506
527 as_ls_L_option= 513 as_ls_L_option=
528 fi 514 fi
529 as_test_x=' 515 as_test_x='
530 eval sh -c '\'' 516 eval sh -c '\''
531 if test -d "$1"; then 517 if test -d "$1"; then
532 test -d "$1/."; 518 test -d "$1/.";
533 else 519 else
534 case $1 in 520 case $1 in #(
535 -*)set "./$1";; 521 -*)set "./$1";;
536 esac; 522 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
538 ???[sx]*):;;*)false;;esac;fi 524 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh 525 '\'' sh
540 ' 526 '
541fi 527fi
542as_executable_p=$as_test_x 528as_executable_p=$as_test_x
546 532
547# Sed expression to map a string onto a valid variable name. 533# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549 535
550 536
551 537test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 7<&0 </dev/null 6>&1 538exec 6>&1
553 539
554# Name of the host. 540# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 541# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too. 542# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 543ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 544
559# 545#
560# Initializations. 546# Initializations.
565LIBOBJS= 551LIBOBJS=
566cross_compiling=no 552cross_compiling=no
567subdirs= 553subdirs=
568MFLAGS= 554MFLAGS=
569MAKEFLAGS= 555MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571 556
572# Identity of this package. 557# Identity of this package.
573PACKAGE_NAME= 558PACKAGE_NAME=
574PACKAGE_TARNAME= 559PACKAGE_TARNAME=
575PACKAGE_VERSION= 560PACKAGE_VERSION=
576PACKAGE_STRING= 561PACKAGE_STRING=
577PACKAGE_BUGREPORT= 562PACKAGE_BUGREPORT=
563PACKAGE_URL=
578 564
579ac_unique_file="src/feature.h" 565ac_unique_file="src/feature.h"
580# Factoring default headers for most tests. 566# Factoring default headers for most tests.
581ac_includes_default="\ 567ac_includes_default="\
582#include <stdio.h> 568#include <stdio.h>
611#endif 597#endif
612#ifdef HAVE_UNISTD_H 598#ifdef HAVE_UNISTD_H
613# include <unistd.h> 599# include <unistd.h>
614#endif" 600#endif"
615 601
616ac_subst_vars='SHELL 602ac_subst_vars='LTLIBOBJS
603LIBOBJS
604PERL_O
605IF_PERL
606PERLPRIVLIBEXP
607PERLFLAGS
608PERLLIB
609PERL
610XFT_CONFIG
611AFTERIMAGE_LIBS
612AFTERIMAGE_CFLAGS
613afterimage_config
614STARTUP_NOTIFICATION_LIBS
615STARTUP_NOTIFICATION_CFLAGS
616PIXBUF_LIBS
617PIXBUF_CFLAGS
618PKG_CONFIG
619X_EXTRA_LIBS
620X_LIBS
621X_PRE_LIBS
622X_CFLAGS
623XMKMF
624TIC
625CXXCPP
626RXVTNAME
627LINKER
628EGREP
629GREP
630INSTALL_DATA
631INSTALL_SCRIPT
632INSTALL_PROGRAM
633CPP
634ac_ct_CXX
635CXXFLAGS
636CXX
637OBJEXT
638EXEEXT
639ac_ct_CC
640CPPFLAGS
641LDFLAGS
642CFLAGS
643CC
644DATE
645VERSION
646host_os
647host_vendor
648host_cpu
649host
650build_os
651build_vendor
652build_cpu
653build
654target_alias
655host_alias
656build_alias
657LIBS
658ECHO_T
659ECHO_N
660ECHO_C
661DEFS
662mandir
663localedir
664libdir
665psdir
666pdfdir
667dvidir
668htmldir
669infodir
670docdir
671oldincludedir
672includedir
673localstatedir
674sharedstatedir
675sysconfdir
676datadir
677datarootdir
678libexecdir
679sbindir
680bindir
681program_transform_name
682prefix
683exec_prefix
684PACKAGE_URL
685PACKAGE_BUGREPORT
686PACKAGE_STRING
687PACKAGE_VERSION
688PACKAGE_TARNAME
689PACKAGE_NAME
617PATH_SEPARATOR 690PATH_SEPARATOR
618PACKAGE_NAME 691SHELL'
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='' 692ac_subst_files=''
693ac_user_opts='
694enable_option_checking
695enable_everything
696enable_assert
697enable_warnings
698enable_256_color
699enable_unicode3
700enable_combining
701enable_xft
702enable_font_styles
703enable_afterimage
704with_afterimage_config
705enable_pixbuf
706enable_startup_notification
707enable_transparency
708enable_fading
709enable_rxvt_scroll
710enable_next_scroll
711enable_xterm_scroll
712enable_perl
713with_codesets
714enable_xim
715enable_backspace_key
716enable_delete_key
717enable_resources
718enable_8bitctrls
719enable_fallback
720with_res_name
721with_res_class
722with_name
723enable_swapscreen
724enable_iso14755
725enable_frills
726enable_keepscrolling
727enable_selectionscrolling
728enable_mousewheel
729enable_slipwheeling
730enable_smart_resize
731enable_text_blink
732enable_pointer_blank
733with_term
734with_terminfo
735with_x
736enable_utmp
737enable_wtmp
738enable_lastlog
739'
733 ac_precious_vars='build_alias 740 ac_precious_vars='build_alias
734host_alias 741host_alias
735target_alias 742target_alias
736CC 743CC
737CFLAGS 744CFLAGS
740CPPFLAGS 747CPPFLAGS
741CXX 748CXX
742CXXFLAGS 749CXXFLAGS
743CCC 750CCC
744CPP 751CPP
745XMKMF
746CXXCPP' 752CXXCPP
753XMKMF'
747 754
748 755
749# Initialize some variables set by options. 756# Initialize some variables set by options.
750ac_init_help= 757ac_init_help=
751ac_init_version=false 758ac_init_version=false
759ac_unrecognized_opts=
760ac_unrecognized_sep=
752# The variables have the same names as the options, with 761# The variables have the same names as the options, with
753# dashes changed to underlines. 762# dashes changed to underlines.
754cache_file=/dev/null 763cache_file=/dev/null
755exec_prefix=NONE 764exec_prefix=NONE
756no_create= 765no_create=
802 ac_prev= 811 ac_prev=
803 continue 812 continue
804 fi 813 fi
805 814
806 case $ac_option in 815 case $ac_option in
807 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 816 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 *=) ac_optarg= ;;
808 *) ac_optarg=yes ;; 818 *) ac_optarg=yes ;;
809 esac 819 esac
810 820
811 # Accept the important Cygnus configure options, so we can diagnose typos. 821 # Accept the important Cygnus configure options, so we can diagnose typos.
812 822
813 case $ac_dashdash$ac_option in 823 case $ac_dashdash$ac_option in
845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847 datarootdir=$ac_optarg ;; 857 datarootdir=$ac_optarg ;;
848 858
849 -disable-* | --disable-*) 859 -disable-* | --disable-*)
850 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 860 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names. 861 # Reject names that are not valid shell variable names.
852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 863 as_fn_error $? "invalid feature name: $ac_useropt"
854 { (exit 1); exit 1; }; } 864 ac_useropt_orig=$ac_useropt
855 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in
867 *"
868"enable_$ac_useropt"
869"*) ;;
870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
871 ac_unrecognized_sep=', ';;
872 esac
856 eval enable_$ac_feature=no ;; 873 eval enable_$ac_useropt=no ;;
857 874
858 -docdir | --docdir | --docdi | --doc | --do) 875 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;; 876 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 877 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;; 878 docdir=$ac_optarg ;;
864 ac_prev=dvidir ;; 881 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 882 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;; 883 dvidir=$ac_optarg ;;
867 884
868 -enable-* | --enable-*) 885 -enable-* | --enable-*)
869 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 886 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names. 887 # Reject names that are not valid shell variable names.
871 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 889 as_fn_error $? "invalid feature name: $ac_useropt"
873 { (exit 1); exit 1; }; } 890 ac_useropt_orig=$ac_useropt
874 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
893 *"
894"enable_$ac_useropt"
895"*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
875 eval enable_$ac_feature=\$ac_optarg ;; 899 eval enable_$ac_useropt=\$ac_optarg ;;
876 900
877 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 901 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
878 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 902 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
879 | --exec | --exe | --ex) 903 | --exec | --exe | --ex)
880 ac_prev=exec_prefix ;; 904 ac_prev=exec_prefix ;;
1061 1085
1062 -version | --version | --versio | --versi | --vers | -V) 1086 -version | --version | --versio | --versi | --vers | -V)
1063 ac_init_version=: ;; 1087 ac_init_version=: ;;
1064 1088
1065 -with-* | --with-*) 1089 -with-* | --with-*)
1066 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1090 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names. 1091 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2 1093 as_fn_error $? "invalid package name: $ac_useropt"
1070 { (exit 1); exit 1; }; } 1094 ac_useropt_orig=$ac_useropt
1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1097 *"
1098"with_$ac_useropt"
1099"*) ;;
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1102 esac
1072 eval with_$ac_package=\$ac_optarg ;; 1103 eval with_$ac_useropt=\$ac_optarg ;;
1073 1104
1074 -without-* | --without-*) 1105 -without-* | --without-*)
1075 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1106 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names. 1107 # Reject names that are not valid shell variable names.
1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid package name: $ac_package" >&2 1109 as_fn_error $? "invalid package name: $ac_useropt"
1079 { (exit 1); exit 1; }; } 1110 ac_useropt_orig=$ac_useropt
1080 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1113 *"
1114"with_$ac_useropt"
1115"*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1081 eval with_$ac_package=no ;; 1119 eval with_$ac_useropt=no ;;
1082 1120
1083 --x) 1121 --x)
1084 # Obsolete; use --with-x. 1122 # Obsolete; use --with-x.
1085 with_x=yes ;; 1123 with_x=yes ;;
1086 1124
1096 ac_prev=x_libraries ;; 1134 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1135 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1136 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099 x_libraries=$ac_optarg ;; 1137 x_libraries=$ac_optarg ;;
1100 1138
1101 -*) { echo "$as_me: error: unrecognized option: $ac_option 1139 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1102Try \`$0 --help' for more information." >&2 1140Try \`$0 --help' for more information"
1103 { (exit 1); exit 1; }; }
1104 ;; 1141 ;;
1105 1142
1106 *=*) 1143 *=*)
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1144 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names. 1145 # Reject names that are not valid shell variable names.
1109 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1146 case $ac_envvar in #(
1147 '' | [0-9]* | *[!_$as_cr_alnum]* )
1110 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1148 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1111 { (exit 1); exit 1; }; } 1149 esac
1112 eval $ac_envvar=\$ac_optarg 1150 eval $ac_envvar=\$ac_optarg
1113 export $ac_envvar ;; 1151 export $ac_envvar ;;
1114 1152
1115 *) 1153 *)
1116 # FIXME: should be removed in autoconf 3.0. 1154 # FIXME: should be removed in autoconf 3.0.
1117 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1155 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1157 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1158 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1121 ;; 1159 ;;
1122 1160
1123 esac 1161 esac
1124done 1162done
1125 1163
1126if test -n "$ac_prev"; then 1164if test -n "$ac_prev"; then
1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1165 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1128 { echo "$as_me: error: missing argument to $ac_option" >&2 1166 as_fn_error $? "missing argument to $ac_option"
1129 { (exit 1); exit 1; }; }
1130fi 1167fi
1131 1168
1132# Be sure to have absolute directory names. 1169if test -n "$ac_unrecognized_opts"; then
1170 case $enable_option_checking in
1171 no) ;;
1172 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1173 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174 esac
1175fi
1176
1177# Check all directory arguments for consistency.
1133for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1178for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134 datadir sysconfdir sharedstatedir localstatedir includedir \ 1179 datadir sysconfdir sharedstatedir localstatedir includedir \
1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136 libdir localedir mandir 1181 libdir localedir mandir
1137do 1182do
1138 eval ac_val=\$$ac_var 1183 eval ac_val=\$$ac_var
1184 # Remove trailing slashes.
1185 case $ac_val in
1186 */ )
1187 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1188 eval $ac_var=\$ac_val;;
1189 esac
1190 # Be sure to have absolute directory names.
1139 case $ac_val in 1191 case $ac_val in
1140 [\\/$]* | ?:[\\/]* ) continue;; 1192 [\\/$]* | ?:[\\/]* ) continue;;
1141 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1193 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1142 esac 1194 esac
1143 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1195 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1144 { (exit 1); exit 1; }; }
1145done 1196done
1146 1197
1147# There might be people who depend on the old broken behavior: `$host' 1198# There might be people who depend on the old broken behavior: `$host'
1148# used to hold the argument of --host etc. 1199# used to hold the argument of --host etc.
1149# FIXME: To remove some day. 1200# FIXME: To remove some day.
1153 1204
1154# FIXME: To remove some day. 1205# FIXME: To remove some day.
1155if test "x$host_alias" != x; then 1206if test "x$host_alias" != x; then
1156 if test "x$build_alias" = x; then 1207 if test "x$build_alias" = x; then
1157 cross_compiling=maybe 1208 cross_compiling=maybe
1158 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1209 $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 1210 If a cross compiler is detected then cross compile mode will be used" >&2
1160 elif test "x$build_alias" != "x$host_alias"; then 1211 elif test "x$build_alias" != "x$host_alias"; then
1161 cross_compiling=yes 1212 cross_compiling=yes
1162 fi 1213 fi
1163fi 1214fi
1164 1215
1169 1220
1170 1221
1171ac_pwd=`pwd` && test -n "$ac_pwd" && 1222ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172ac_ls_di=`ls -di .` && 1223ac_ls_di=`ls -di .` &&
1173ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1224ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174 { echo "$as_me: error: Working directory cannot be determined" >&2 1225 as_fn_error $? "working directory cannot be determined"
1175 { (exit 1); exit 1; }; }
1176test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1226test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1177 { echo "$as_me: error: pwd does not report name of working directory" >&2 1227 as_fn_error $? "pwd does not report name of working directory"
1178 { (exit 1); exit 1; }; }
1179 1228
1180 1229
1181# Find the source files, if location was not specified. 1230# Find the source files, if location was not specified.
1182if test -z "$srcdir"; then 1231if test -z "$srcdir"; then
1183 ac_srcdir_defaulted=yes 1232 ac_srcdir_defaulted=yes
1184 # Try the directory containing this script, then the parent directory. 1233 # Try the directory containing this script, then the parent directory.
1185 ac_confdir=`$as_dirname -- "$0" || 1234 ac_confdir=`$as_dirname -- "$as_myself" ||
1186$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1235$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187 X"$0" : 'X\(//\)[^/]' \| \ 1236 X"$as_myself" : 'X\(//\)[^/]' \| \
1188 X"$0" : 'X\(//\)$' \| \ 1237 X"$as_myself" : 'X\(//\)$' \| \
1189 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1238 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1190echo X"$0" | 1239$as_echo X"$as_myself" |
1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1192 s//\1/ 1241 s//\1/
1193 q 1242 q
1194 } 1243 }
1195 /^X\(\/\/\)[^/].*/{ 1244 /^X\(\/\/\)[^/].*/{
1212else 1261else
1213 ac_srcdir_defaulted=no 1262 ac_srcdir_defaulted=no
1214fi 1263fi
1215if test ! -r "$srcdir/$ac_unique_file"; then 1264if test ! -r "$srcdir/$ac_unique_file"; then
1216 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1265 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1217 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1266 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1218 { (exit 1); exit 1; }; }
1219fi 1267fi
1220ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1268ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1221ac_abs_confdir=`( 1269ac_abs_confdir=`(
1222 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1270 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1223 { (exit 1); exit 1; }; }
1224 pwd)` 1271 pwd)`
1225# When building in place, set srcdir=. 1272# When building in place, set srcdir=.
1226if test "$ac_abs_confdir" = "$ac_pwd"; then 1273if test "$ac_abs_confdir" = "$ac_pwd"; then
1227 srcdir=. 1274 srcdir=.
1228fi 1275fi
1258Configuration: 1305Configuration:
1259 -h, --help display this help and exit 1306 -h, --help display this help and exit
1260 --help=short display options specific to this package 1307 --help=short display options specific to this package
1261 --help=recursive display the short help of all the included packages 1308 --help=recursive display the short help of all the included packages
1262 -V, --version display version information and exit 1309 -V, --version display version information and exit
1263 -q, --quiet, --silent do not print \`checking...' messages 1310 -q, --quiet, --silent do not print \`checking ...' messages
1264 --cache-file=FILE cache test results in FILE [disabled] 1311 --cache-file=FILE cache test results in FILE [disabled]
1265 -C, --config-cache alias for \`--cache-file=config.cache' 1312 -C, --config-cache alias for \`--cache-file=config.cache'
1266 -n, --no-create do not create output files 1313 -n, --no-create do not create output files
1267 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1314 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1268 1315
1269Installation directories: 1316Installation directories:
1270 --prefix=PREFIX install architecture-independent files in PREFIX 1317 --prefix=PREFIX install architecture-independent files in PREFIX
1271 [$ac_default_prefix] 1318 [$ac_default_prefix]
1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1319 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1273 [PREFIX] 1320 [PREFIX]
1274 1321
1275By default, \`make install' will install all the files in 1322By default, \`make install' will install all the files in
1276\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1323\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1277an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1324an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278for instance \`--prefix=\$HOME'. 1325for instance \`--prefix=\$HOME'.
1279 1326
1280For better control, use the options below. 1327For better control, use the options below.
1281 1328
1282Fine tuning of the installation directories: 1329Fine tuning of the installation directories:
1283 --bindir=DIR user executables [EPREFIX/bin] 1330 --bindir=DIR user executables [EPREFIX/bin]
1284 --sbindir=DIR system admin executables [EPREFIX/sbin] 1331 --sbindir=DIR system admin executables [EPREFIX/sbin]
1285 --libexecdir=DIR program executables [EPREFIX/libexec] 1332 --libexecdir=DIR program executables [EPREFIX/libexec]
1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1333 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1334 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1335 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1289 --libdir=DIR object code libraries [EPREFIX/lib] 1336 --libdir=DIR object code libraries [EPREFIX/lib]
1290 --includedir=DIR C header files [PREFIX/include] 1337 --includedir=DIR C header files [PREFIX/include]
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1338 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1339 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1340 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294 --infodir=DIR info documentation [DATAROOTDIR/info] 1341 --infodir=DIR info documentation [DATAROOTDIR/info]
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1342 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296 --mandir=DIR man documentation [DATAROOTDIR/man] 1343 --mandir=DIR man documentation [DATAROOTDIR/man]
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1344 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1298 --htmldir=DIR html documentation [DOCDIR] 1345 --htmldir=DIR html documentation [DOCDIR]
1299 --dvidir=DIR dvi documentation [DOCDIR] 1346 --dvidir=DIR dvi documentation [DOCDIR]
1300 --pdfdir=DIR pdf documentation [DOCDIR] 1347 --pdfdir=DIR pdf documentation [DOCDIR]
1301 --psdir=DIR ps documentation [DOCDIR] 1348 --psdir=DIR ps documentation [DOCDIR]
1302_ACEOF 1349_ACEOF
1303 1350
1304 cat <<\_ACEOF 1351 cat <<\_ACEOF
1305 1352
1306X features: 1353X features:
1307 --x-includes=DIR X include files are in DIR 1354 --x-includes=DIR X include files are in DIR
1308 --x-libraries=DIR X library files are in DIR 1355 --x-libraries=DIR X library files are in DIR
1309 1356
1310Program names:
1311 --program-prefix=PREFIX prepend PREFIX to installed program names
1312 --program-suffix=SUFFIX append SUFFIX to installed program names
1313 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1314
1315System types: 1357System types:
1316 --build=BUILD configure for building on BUILD [guessed] 1358 --build=BUILD configure for building on BUILD [guessed]
1317 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1359 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1318_ACEOF 1360_ACEOF
1319fi 1361fi
1321if test -n "$ac_init_help"; then 1363if test -n "$ac_init_help"; then
1322 1364
1323 cat <<\_ACEOF 1365 cat <<\_ACEOF
1324 1366
1325Optional Features: 1367Optional Features:
1368 --disable-option-checking ignore unrecognized --enable/--with options
1326 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1369 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1327 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1370 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1328 --enable-everything enable standard non-multichoice features 1371 --enable-everything enable standard non-multichoice features
1329 NOTE: this option is order dependent 1372 NOTE: this option is order dependent
1330 NOTE: automatically enabled with --enable-shared 1373 --enable-assert enable assertions
1374 --enable-warnings turn on g++ warnings
1375 --enable-256-color enable 256-color support
1331 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1376 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1332 --enable-combining enable composition of base and combining characters 1377 --enable-combining enable composition of base and combining characters
1333 --enable-xft enable xft support on systems that have it 1378 --enable-xft enable xft support on systems that have it
1334 --enable-font-styles enable bold and italic support 1379 --enable-font-styles enable bold and italic support
1335 --enable-xpm-background enable XPM background pixmaps 1380 --enable-afterimage enable integration with libAfterImage for background images
1381 --enable-pixbuf enable integration with gdk-pixbuf for background images
1382 --enable-startup-notification enable freedesktop startup notification support
1336 --enable-transparency enable transparent backgrounds 1383 --enable-transparency enable transparent backgrounds
1337 --enable-tinting enable tinting of transparent bg
1338 --enable-fading enable colors fading when off focus 1384 --enable-fading enable colors fading when off focus
1339 --enable-rxvt-scroll enable rxvt style scrollbar 1385 --enable-rxvt-scroll enable rxvt style scrollbar
1340 --enable-next-scroll enable NeXT style scrollbar 1386 --enable-next-scroll enable NeXT style scrollbar
1341 --enable-xterm-scroll enable Xterm style scrollbar 1387 --enable-xterm-scroll enable Xterm style scrollbar
1342 --enable-perl enable embedded perl interpreter 1388 --enable-perl enable embedded perl interpreter
1343 --enable-plain-scroll enable plain style scrollbar
1344 --enable-xim XIM (X Input Method) protocol support 1389 --enable-xim XIM (X Input Method) protocol support
1345 --disable-backspace-key disable handling of the backspace key 1390 --disable-backspace-key disable handling of the backspace key
1346 --disable-delete-key disable handling of the delete key 1391 --disable-delete-key disable handling of the delete key
1347 --disable-resources disable all resource checking 1392 --disable-resources disable all resource checking
1348 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1393 --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) 1394 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1350 --disable-swapscreen disable swap screen support 1395 --disable-swapscreen disable swap screen support
1351 --enable-iso14755 enable support for extended ISO 14755 modes 1396 --enable-iso14755 enable support for extended ISO 14755 modes
1352 --enable-frills enable support for rarely used features 1397 --enable-frills enable support for rarely used features
1353 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1398 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1354 --enable-selectionscrolling enable scrolling during selections 1399 --enable-selectionscrolling enable scrolling during selections
1355 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1400 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1356 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1401 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1357 --enable-smart-resize enable smart growth/shrink behaviour 1402 --enable-smart-resize enable smart growth/shrink behaviour
1358 --enable-text-blink enable blinking text 1403 --enable-text-blink enable blinking text
1359 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1404 --enable-pointer-blank enable pointer blanking when typing or inactive
1360 --enable-utmp enable utmp (utmpx) support 1405 --enable-utmp enable utmp (utmpx) support
1361 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1406 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1362 --enable-lastlog enable lastlog support (requires --enable-utmp) 1407 --enable-lastlog enable lastlog support (requires --enable-utmp)
1363 1408
1364Optional Packages: 1409Optional Packages:
1365 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1366 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1412 --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) 1413 --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) 1414 --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) 1415 --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) 1416 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1371 --with-term=NAME set the terminal to NAME (default: rxvt) 1417 --with-term=NAME set the terminal to NAME (default: rxvt)
1372 --with-terminfo=PATH set the path to the terminfo tree to PATH 1418 --with-terminfo=PATH set the path to the terminfo tree to PATH
1373 --with-x use the X Window System 1419 --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 1420
1378Some influential environment variables: 1421Some influential environment variables:
1379 CC C compiler command 1422 CC C compiler command
1380 CFLAGS C compiler flags 1423 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1424 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir> 1425 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library> 1426 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 1427 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir> 1428 you have headers in a nonstandard directory <include dir>
1386 CXX C++ compiler command 1429 CXX C++ compiler command
1387 CXXFLAGS C++ compiler flags 1430 CXXFLAGS C++ compiler flags
1388 CPP C preprocessor 1431 CPP C preprocessor
1432 CXXCPP C++ preprocessor
1389 XMKMF Path to xmkmf, Makefile generator for X Window System 1433 XMKMF Path to xmkmf, Makefile generator for X Window System
1390 CXXCPP C++ preprocessor
1391 1434
1392Use these variables to override the choices made by `configure' or to help 1435Use these variables to override the choices made by `configure' or to help
1393it to find libraries and programs with nonstandard names/locations. 1436it to find libraries and programs with nonstandard names/locations.
1394 1437
1438Report bugs to the package provider.
1395_ACEOF 1439_ACEOF
1396ac_status=$? 1440ac_status=$?
1397fi 1441fi
1398 1442
1399if test "$ac_init_help" = "recursive"; then 1443if test "$ac_init_help" = "recursive"; then
1400 # If there are subdirs, report their specific --help. 1444 # If there are subdirs, report their specific --help.
1401 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1402 test -d "$ac_dir" || continue 1446 test -d "$ac_dir" ||
1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448 continue
1403 ac_builddir=. 1449 ac_builddir=.
1404 1450
1405case "$ac_dir" in 1451case "$ac_dir" in
1406.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1452.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407*) 1453*)
1408 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1409 # A ".." for each directory in $ac_dir_suffix. 1455 # A ".." for each directory in $ac_dir_suffix.
1410 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1411 case $ac_top_builddir_sub in 1457 case $ac_top_builddir_sub in
1412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414 esac ;; 1460 esac ;;
1415esac 1461esac
1441 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1442 elif test -f "$ac_srcdir/configure"; then 1488 elif test -f "$ac_srcdir/configure"; then
1443 echo && 1489 echo &&
1444 $SHELL "$ac_srcdir/configure" --help=recursive 1490 $SHELL "$ac_srcdir/configure" --help=recursive
1445 else 1491 else
1446 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 fi || ac_status=$? 1493 fi || ac_status=$?
1448 cd "$ac_pwd" || { ac_status=$?; break; } 1494 cd "$ac_pwd" || { ac_status=$?; break; }
1449 done 1495 done
1450fi 1496fi
1451 1497
1452test -n "$ac_init_help" && exit $ac_status 1498test -n "$ac_init_help" && exit $ac_status
1453if $ac_init_version; then 1499if $ac_init_version; then
1454 cat <<\_ACEOF 1500 cat <<\_ACEOF
1455configure 1501configure
1456generated by GNU Autoconf 2.61 1502generated by GNU Autoconf 2.68
1457 1503
1458Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1504Copyright (C) 2010 Free Software Foundation, Inc.
14592002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1460This configure script is free software; the Free Software Foundation 1505This configure script is free software; the Free Software Foundation
1461gives unlimited permission to copy, distribute and modify it. 1506gives unlimited permission to copy, distribute and modify it.
1462_ACEOF 1507_ACEOF
1463 exit 1508 exit
1464fi 1509fi
1510
1511## ------------------------ ##
1512## Autoconf initialization. ##
1513## ------------------------ ##
1514
1515# ac_fn_c_try_compile LINENO
1516# --------------------------
1517# Try to compile conftest.$ac_ext, and return whether this succeeded.
1518ac_fn_c_try_compile ()
1519{
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext
1522 if { { ac_try="$ac_compile"
1523case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526esac
1527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528$as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1535 fi
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest.$ac_objext; then :
1541 ac_retval=0
1542else
1543 $as_echo "$as_me: failed program was:" >&5
1544sed 's/^/| /' conftest.$ac_ext >&5
1545
1546 ac_retval=1
1547fi
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 as_fn_set_status $ac_retval
1550
1551} # ac_fn_c_try_compile
1552
1553# ac_fn_cxx_try_compile LINENO
1554# ----------------------------
1555# Try to compile conftest.$ac_ext, and return whether this succeeded.
1556ac_fn_cxx_try_compile ()
1557{
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext
1560 if { { ac_try="$ac_compile"
1561case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564esac
1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566$as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_compile") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1573 fi
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_cxx_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest.$ac_objext; then :
1579 ac_retval=0
1580else
1581 $as_echo "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1
1585fi
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1588
1589} # ac_fn_cxx_try_compile
1590
1591# ac_fn_c_try_cpp LINENO
1592# ----------------------
1593# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1594ac_fn_c_try_cpp ()
1595{
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if { { ac_try="$ac_cpp conftest.$ac_ext"
1598case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } > conftest.i && {
1613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 }; then :
1616 ac_retval=0
1617else
1618 $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622fi
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626} # ac_fn_c_try_cpp
1627
1628# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1629# -------------------------------------------------------
1630# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1631# the include files in INCLUDES and setting the cache variable VAR
1632# accordingly.
1633ac_fn_c_check_header_mongrel ()
1634{
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if eval \${$3+:} false; then :
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638$as_echo_n "checking for $2... " >&6; }
1639if eval \${$3+:} false; then :
1640 $as_echo_n "(cached) " >&6
1641fi
1642eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; }
1645else
1646 # Is the header compilable?
1647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1648$as_echo_n "checking $2 usability... " >&6; }
1649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650/* end confdefs.h. */
1651$4
1652#include <$2>
1653_ACEOF
1654if ac_fn_c_try_compile "$LINENO"; then :
1655 ac_header_compiler=yes
1656else
1657 ac_header_compiler=no
1658fi
1659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1661$as_echo "$ac_header_compiler" >&6; }
1662
1663# Is the header present?
1664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1665$as_echo_n "checking $2 presence... " >&6; }
1666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667/* end confdefs.h. */
1668#include <$2>
1669_ACEOF
1670if ac_fn_c_try_cpp "$LINENO"; then :
1671 ac_header_preproc=yes
1672else
1673 ac_header_preproc=no
1674fi
1675rm -f conftest.err conftest.i conftest.$ac_ext
1676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1677$as_echo "$ac_header_preproc" >&6; }
1678
1679# So? What about this header?
1680case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1681 yes:no: )
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1683$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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 ;;
1687 no:yes:* )
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1689$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1691$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1693$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1695$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1697$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1698 ;;
1699esac
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701$as_echo_n "checking for $2... " >&6; }
1702if eval \${$3+:} false; then :
1703 $as_echo_n "(cached) " >&6
1704else
1705 eval "$3=\$ac_header_compiler"
1706fi
1707eval ac_res=\$$3
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709$as_echo "$ac_res" >&6; }
1710fi
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712
1713} # ac_fn_c_check_header_mongrel
1714
1715# ac_fn_c_try_run LINENO
1716# ----------------------
1717# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1718# that executables *can* be run.
1719ac_fn_c_try_run ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { { ac_try="$ac_link"
1723case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>&5
1730 ac_status=$?
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1733 { { case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_try") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; }; }; then :
1743 ac_retval=0
1744else
1745 $as_echo "$as_me: program exited with status $ac_status" >&5
1746 $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=$ac_status
1750fi
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1754
1755} # ac_fn_c_try_run
1756
1757# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1758# -------------------------------------------------------
1759# Tests whether HEADER exists and can be compiled using the include files in
1760# INCLUDES, setting the cache variable VAR accordingly.
1761ac_fn_c_check_header_compile ()
1762{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765$as_echo_n "checking for $2... " >&6; }
1766if eval \${$3+:} false; then :
1767 $as_echo_n "(cached) " >&6
1768else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h. */
1771$4
1772#include <$2>
1773_ACEOF
1774if ac_fn_c_try_compile "$LINENO"; then :
1775 eval "$3=yes"
1776else
1777 eval "$3=no"
1778fi
1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780fi
1781eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783$as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786} # ac_fn_c_check_header_compile
1787
1788# ac_fn_c_try_link LINENO
1789# -----------------------
1790# Try to link conftest.$ac_ext, and return whether this succeeded.
1791ac_fn_c_try_link ()
1792{
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext conftest$ac_exeext
1795 if { { ac_try="$ac_link"
1796case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1808 fi
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_c_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest$ac_exeext && {
1814 test "$cross_compiling" = yes ||
1815 $as_test_x conftest$ac_exeext
1816 }; then :
1817 ac_retval=0
1818else
1819 $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823fi
1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826 # interfere with the next link command; also delete a directory that is
1827 # left behind by Apple's compiler. We do this before executing the actions.
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1831
1832} # ac_fn_c_try_link
1833
1834# ac_fn_cxx_try_link LINENO
1835# -------------------------
1836# Try to link conftest.$ac_ext, and return whether this succeeded.
1837ac_fn_cxx_try_link ()
1838{
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1842case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845esac
1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847$as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1854 fi
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_cxx_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 $as_test_x conftest$ac_exeext
1862 }; then :
1863 ac_retval=0
1864else
1865 $as_echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869fi
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1877
1878} # ac_fn_cxx_try_link
1879
1880# ac_fn_cxx_try_cpp LINENO
1881# ------------------------
1882# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883ac_fn_cxx_try_cpp ()
1884{
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_cpp conftest.$ac_ext"
1887case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } > conftest.i && {
1902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1903 test ! -s conftest.err
1904 }; then :
1905 ac_retval=0
1906else
1907 $as_echo "$as_me: failed program was:" >&5
1908sed 's/^/| /' conftest.$ac_ext >&5
1909
1910 ac_retval=1
1911fi
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1914
1915} # ac_fn_cxx_try_cpp
1916
1917# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1918# ---------------------------------------------------------
1919# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1920# the include files in INCLUDES and setting the cache variable VAR
1921# accordingly.
1922ac_fn_cxx_check_header_mongrel ()
1923{
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if eval \${$3+:} false; then :
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927$as_echo_n "checking for $2... " >&6; }
1928if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1930fi
1931eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
1934else
1935 # Is the header compilable?
1936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1937$as_echo_n "checking $2 usability... " >&6; }
1938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939/* end confdefs.h. */
1940$4
1941#include <$2>
1942_ACEOF
1943if ac_fn_cxx_try_compile "$LINENO"; then :
1944 ac_header_compiler=yes
1945else
1946 ac_header_compiler=no
1947fi
1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1950$as_echo "$ac_header_compiler" >&6; }
1951
1952# Is the header present?
1953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1954$as_echo_n "checking $2 presence... " >&6; }
1955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956/* end confdefs.h. */
1957#include <$2>
1958_ACEOF
1959if ac_fn_cxx_try_cpp "$LINENO"; then :
1960 ac_header_preproc=yes
1961else
1962 ac_header_preproc=no
1963fi
1964rm -f conftest.err conftest.i conftest.$ac_ext
1965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1966$as_echo "$ac_header_preproc" >&6; }
1967
1968# So? What about this header?
1969case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1970 yes:no: )
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1972$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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 ;;
1976 no:yes:* )
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1978$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1980$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1982$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1984$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1986$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 ;;
1988esac
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990$as_echo_n "checking for $2... " >&6; }
1991if eval \${$3+:} false; then :
1992 $as_echo_n "(cached) " >&6
1993else
1994 eval "$3=\$ac_header_compiler"
1995fi
1996eval ac_res=\$$3
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998$as_echo "$ac_res" >&6; }
1999fi
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002} # ac_fn_cxx_check_header_mongrel
2003
2004# ac_fn_cxx_check_func LINENO FUNC VAR
2005# ------------------------------------
2006# Tests whether FUNC exists, setting the cache variable VAR accordingly
2007ac_fn_cxx_check_func ()
2008{
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011$as_echo_n "checking for $2... " >&6; }
2012if eval \${$3+:} false; then :
2013 $as_echo_n "(cached) " >&6
2014else
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */
2017/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2019#define $2 innocuous_$2
2020
2021/* System header to define __stub macros and hopefully few prototypes,
2022 which can conflict with char $2 (); below.
2023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2024 <limits.h> exists even on freestanding compilers. */
2025
2026#ifdef __STDC__
2027# include <limits.h>
2028#else
2029# include <assert.h>
2030#endif
2031
2032#undef $2
2033
2034/* Override any GCC internal prototype to avoid an error.
2035 Use char because int might match the return type of a GCC
2036 builtin and then its argument prototype would still apply. */
2037#ifdef __cplusplus
2038extern "C"
2039#endif
2040char $2 ();
2041/* The GNU C library defines this for functions which it implements
2042 to always fail with ENOSYS. Some functions are actually named
2043 something starting with __ and the normal name is an alias. */
2044#if defined __stub_$2 || defined __stub___$2
2045choke me
2046#endif
2047
2048int
2049main ()
2050{
2051return $2 ();
2052 ;
2053 return 0;
2054}
2055_ACEOF
2056if ac_fn_cxx_try_link "$LINENO"; then :
2057 eval "$3=yes"
2058else
2059 eval "$3=no"
2060fi
2061rm -f core conftest.err conftest.$ac_objext \
2062 conftest$ac_exeext conftest.$ac_ext
2063fi
2064eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066$as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068
2069} # ac_fn_cxx_check_func
2070
2071# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2072# ---------------------------------------------
2073# Tests whether TYPE exists after having included INCLUDES, setting cache
2074# variable VAR accordingly.
2075ac_fn_cxx_check_type ()
2076{
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079$as_echo_n "checking for $2... " >&6; }
2080if eval \${$3+:} false; then :
2081 $as_echo_n "(cached) " >&6
2082else
2083 eval "$3=no"
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h. */
2086$4
2087int
2088main ()
2089{
2090if (sizeof ($2))
2091 return 0;
2092 ;
2093 return 0;
2094}
2095_ACEOF
2096if ac_fn_cxx_try_compile "$LINENO"; then :
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098/* end confdefs.h. */
2099$4
2100int
2101main ()
2102{
2103if (sizeof (($2)))
2104 return 0;
2105 ;
2106 return 0;
2107}
2108_ACEOF
2109if ac_fn_cxx_try_compile "$LINENO"; then :
2110
2111else
2112 eval "$3=yes"
2113fi
2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115fi
2116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117fi
2118eval ac_res=\$$3
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120$as_echo "$ac_res" >&6; }
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122
2123} # ac_fn_cxx_check_type
2124
2125# ac_fn_c_find_intX_t LINENO BITS VAR
2126# -----------------------------------
2127# Finds a signed integer type with width BITS, setting cache variable VAR
2128# accordingly.
2129ac_fn_c_find_intX_t ()
2130{
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2133$as_echo_n "checking for int$2_t... " >&6; }
2134if eval \${$3+:} false; then :
2135 $as_echo_n "(cached) " >&6
2136else
2137 eval "$3=no"
2138 # Order is important - never check a type that is potentially smaller
2139 # than half of the expected target width.
2140 for ac_type in int$2_t 'int' 'long int' \
2141 'long long int' 'short int' 'signed char'; do
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143/* end confdefs.h. */
2144$ac_includes_default
2145 enum { N = $2 / 2 - 1 };
2146int
2147main ()
2148{
2149static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2150test_array [0] = 0
2151
2152 ;
2153 return 0;
2154}
2155_ACEOF
2156if ac_fn_cxx_try_compile "$LINENO"; then :
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158/* end confdefs.h. */
2159$ac_includes_default
2160 enum { N = $2 / 2 - 1 };
2161int
2162main ()
2163{
2164static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2165 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2166test_array [0] = 0
2167
2168 ;
2169 return 0;
2170}
2171_ACEOF
2172if ac_fn_cxx_try_compile "$LINENO"; then :
2173
2174else
2175 case $ac_type in #(
2176 int$2_t) :
2177 eval "$3=yes" ;; #(
2178 *) :
2179 eval "$3=\$ac_type" ;;
2180esac
2181fi
2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183fi
2184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 if eval test \"x\$"$3"\" = x"no"; then :
2186
2187else
2188 break
2189fi
2190 done
2191fi
2192eval ac_res=\$$3
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194$as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2196
2197} # ac_fn_c_find_intX_t
2198
2199# ac_fn_c_find_uintX_t LINENO BITS VAR
2200# ------------------------------------
2201# Finds an unsigned integer type with width BITS, setting cache variable VAR
2202# accordingly.
2203ac_fn_c_find_uintX_t ()
2204{
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2207$as_echo_n "checking for uint$2_t... " >&6; }
2208if eval \${$3+:} false; then :
2209 $as_echo_n "(cached) " >&6
2210else
2211 eval "$3=no"
2212 # Order is important - never check a type that is potentially smaller
2213 # than half of the expected target width.
2214 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2215 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217/* end confdefs.h. */
2218$ac_includes_default
2219int
2220main ()
2221{
2222static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2223test_array [0] = 0
2224
2225 ;
2226 return 0;
2227}
2228_ACEOF
2229if ac_fn_cxx_try_compile "$LINENO"; then :
2230 case $ac_type in #(
2231 uint$2_t) :
2232 eval "$3=yes" ;; #(
2233 *) :
2234 eval "$3=\$ac_type" ;;
2235esac
2236fi
2237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 if eval test \"x\$"$3"\" = x"no"; then :
2239
2240else
2241 break
2242fi
2243 done
2244fi
2245eval ac_res=\$$3
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247$as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249
2250} # ac_fn_c_find_uintX_t
2251
2252# ac_fn_cxx_try_run LINENO
2253# ------------------------
2254# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2255# that executables *can* be run.
2256ac_fn_cxx_try_run ()
2257{
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 if { { ac_try="$ac_link"
2260case "(($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_link") 2>&5
2267 ac_status=$?
2268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2270 { { case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2273esac
2274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2275$as_echo "$ac_try_echo"; } >&5
2276 (eval "$ac_try") 2>&5
2277 ac_status=$?
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; }; }; then :
2280 ac_retval=0
2281else
2282 $as_echo "$as_me: program exited with status $ac_status" >&5
2283 $as_echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286 ac_retval=$ac_status
2287fi
2288 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290 as_fn_set_status $ac_retval
2291
2292} # ac_fn_cxx_try_run
1465cat >config.log <<_ACEOF 2293cat >config.log <<_ACEOF
1466This file contains any messages produced by compilers while 2294This file contains any messages produced by compilers while
1467running configure, to aid debugging if configure makes a mistake. 2295running configure, to aid debugging if configure makes a mistake.
1468 2296
1469It was created by $as_me, which was 2297It was created by $as_me, which was
1470generated by GNU Autoconf 2.61. Invocation command line was 2298generated by GNU Autoconf 2.68. Invocation command line was
1471 2299
1472 $ $0 $@ 2300 $ $0 $@
1473 2301
1474_ACEOF 2302_ACEOF
1475exec 5>>config.log 2303exec 5>>config.log
1501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502for as_dir in $PATH 2330for as_dir in $PATH
1503do 2331do
1504 IFS=$as_save_IFS 2332 IFS=$as_save_IFS
1505 test -z "$as_dir" && as_dir=. 2333 test -z "$as_dir" && as_dir=.
1506 echo "PATH: $as_dir" 2334 $as_echo "PATH: $as_dir"
1507done 2335 done
1508IFS=$as_save_IFS 2336IFS=$as_save_IFS
1509 2337
1510} >&5 2338} >&5
1511 2339
1512cat >&5 <<_ACEOF 2340cat >&5 <<_ACEOF
1536 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2364 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1538 | -silent | --silent | --silen | --sile | --sil) 2366 | -silent | --silent | --silen | --sile | --sil)
1539 continue ;; 2367 continue ;;
1540 *\'*) 2368 *\'*)
1541 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2369 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1542 esac 2370 esac
1543 case $ac_pass in 2371 case $ac_pass in
1544 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2372 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1545 2) 2373 2)
1546 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 2374 as_fn_append ac_configure_args1 " '$ac_arg'"
1547 if test $ac_must_keep_next = true; then 2375 if test $ac_must_keep_next = true; then
1548 ac_must_keep_next=false # Got value, back to normal. 2376 ac_must_keep_next=false # Got value, back to normal.
1549 else 2377 else
1550 case $ac_arg in 2378 case $ac_arg in
1551 *=* | --config-cache | -C | -disable-* | --disable-* \ 2379 *=* | --config-cache | -C | -disable-* | --disable-* \
1557 esac 2385 esac
1558 ;; 2386 ;;
1559 -* ) ac_must_keep_next=true ;; 2387 -* ) ac_must_keep_next=true ;;
1560 esac 2388 esac
1561 fi 2389 fi
1562 ac_configure_args="$ac_configure_args '$ac_arg'" 2390 as_fn_append ac_configure_args " '$ac_arg'"
1563 ;; 2391 ;;
1564 esac 2392 esac
1565 done 2393 done
1566done 2394done
1567$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 2395{ 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; } 2396{ ac_configure_args1=; unset ac_configure_args1;}
1569 2397
1570# When interrupted or exit'd, cleanup temporary files, and complete 2398# When interrupted or exit'd, cleanup temporary files, and complete
1571# config.log. We remove comments because anyway the quotes in there 2399# config.log. We remove comments because anyway the quotes in there
1572# would cause problems or look ugly. 2400# would cause problems or look ugly.
1573# WARNING: Use '\'' to represent an apostrophe within the trap. 2401# WARNING: Use '\'' to represent an apostrophe within the trap.
1575trap 'exit_status=$? 2403trap 'exit_status=$?
1576 # Save into config.log some information that might help in debugging. 2404 # Save into config.log some information that might help in debugging.
1577 { 2405 {
1578 echo 2406 echo
1579 2407
1580 cat <<\_ASBOX
1581## ---------------- ## 2408 $as_echo "## ---------------- ##
1582## Cache variables. ## 2409## Cache variables. ##
1583## ---------------- ## 2410## ---------------- ##"
1584_ASBOX
1585 echo 2411 echo
1586 # The following way of writing the cache mishandles newlines in values, 2412 # The following way of writing the cache mishandles newlines in values,
1587( 2413(
1588 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2414 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 2415 eval ac_val=\$$ac_var
1590 case $ac_val in #( 2416 case $ac_val in #(
1591 *${as_nl}*) 2417 *${as_nl}*)
1592 case $ac_var in #( 2418 case $ac_var in #(
1593 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 2419 *_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;} ;; 2420$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1595 esac 2421 esac
1596 case $ac_var in #( 2422 case $ac_var in #(
1597 _ | IFS | as_nl) ;; #( 2423 _ | IFS | as_nl) ;; #(
1598 *) $as_unset $ac_var ;; 2424 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2425 *) { eval $ac_var=; unset $ac_var;} ;;
1599 esac ;; 2426 esac ;;
1600 esac 2427 esac
1601 done 2428 done
1602 (set) 2>&1 | 2429 (set) 2>&1 |
1603 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2430 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1612 esac | 2439 esac |
1613 sort 2440 sort
1614) 2441)
1615 echo 2442 echo
1616 2443
1617 cat <<\_ASBOX
1618## ----------------- ## 2444 $as_echo "## ----------------- ##
1619## Output variables. ## 2445## Output variables. ##
1620## ----------------- ## 2446## ----------------- ##"
1621_ASBOX
1622 echo 2447 echo
1623 for ac_var in $ac_subst_vars 2448 for ac_var in $ac_subst_vars
1624 do 2449 do
1625 eval ac_val=\$$ac_var 2450 eval ac_val=\$$ac_var
1626 case $ac_val in 2451 case $ac_val in
1627 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2452 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 esac 2453 esac
1629 echo "$ac_var='\''$ac_val'\''" 2454 $as_echo "$ac_var='\''$ac_val'\''"
1630 done | sort 2455 done | sort
1631 echo 2456 echo
1632 2457
1633 if test -n "$ac_subst_files"; then 2458 if test -n "$ac_subst_files"; then
1634 cat <<\_ASBOX
1635## ------------------- ## 2459 $as_echo "## ------------------- ##
1636## File substitutions. ## 2460## File substitutions. ##
1637## ------------------- ## 2461## ------------------- ##"
1638_ASBOX
1639 echo 2462 echo
1640 for ac_var in $ac_subst_files 2463 for ac_var in $ac_subst_files
1641 do 2464 do
1642 eval ac_val=\$$ac_var 2465 eval ac_val=\$$ac_var
1643 case $ac_val in 2466 case $ac_val in
1644 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2467 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1645 esac 2468 esac
1646 echo "$ac_var='\''$ac_val'\''" 2469 $as_echo "$ac_var='\''$ac_val'\''"
1647 done | sort 2470 done | sort
1648 echo 2471 echo
1649 fi 2472 fi
1650 2473
1651 if test -s confdefs.h; then 2474 if test -s confdefs.h; then
1652 cat <<\_ASBOX 2475 $as_echo "## ----------- ##
1653## ----------- ##
1654## confdefs.h. ## 2476## confdefs.h. ##
1655## ----------- ## 2477## ----------- ##"
1656_ASBOX
1657 echo 2478 echo
1658 cat confdefs.h 2479 cat confdefs.h
1659 echo 2480 echo
1660 fi 2481 fi
1661 test "$ac_signal" != 0 && 2482 test "$ac_signal" != 0 &&
1662 echo "$as_me: caught signal $ac_signal" 2483 $as_echo "$as_me: caught signal $ac_signal"
1663 echo "$as_me: exit $exit_status" 2484 $as_echo "$as_me: exit $exit_status"
1664 } >&5 2485 } >&5
1665 rm -f core *.core core.conftest.* && 2486 rm -f core *.core core.conftest.* &&
1666 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2487 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1667 exit $exit_status 2488 exit $exit_status
1668' 0 2489' 0
1669for ac_signal in 1 2 13 15; do 2490for ac_signal in 1 2 13 15; do
1670 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 2491 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1671done 2492done
1672ac_signal=0 2493ac_signal=0
1673 2494
1674# confdefs.h avoids OS command line length limits that DEFS can exceed. 2495# confdefs.h avoids OS command line length limits that DEFS can exceed.
1675rm -f -r conftest* confdefs.h 2496rm -f -r conftest* confdefs.h
1676 2497
2498$as_echo "/* confdefs.h */" > confdefs.h
2499
1677# Predefined preprocessor variables. 2500# Predefined preprocessor variables.
1678 2501
1679cat >>confdefs.h <<_ACEOF 2502cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_NAME "$PACKAGE_NAME" 2503#define PACKAGE_NAME "$PACKAGE_NAME"
1681_ACEOF 2504_ACEOF
1682 2505
1683
1684cat >>confdefs.h <<_ACEOF 2506cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2507#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1686_ACEOF 2508_ACEOF
1687 2509
1688
1689cat >>confdefs.h <<_ACEOF 2510cat >>confdefs.h <<_ACEOF
1690#define PACKAGE_VERSION "$PACKAGE_VERSION" 2511#define PACKAGE_VERSION "$PACKAGE_VERSION"
1691_ACEOF 2512_ACEOF
1692 2513
1693
1694cat >>confdefs.h <<_ACEOF 2514cat >>confdefs.h <<_ACEOF
1695#define PACKAGE_STRING "$PACKAGE_STRING" 2515#define PACKAGE_STRING "$PACKAGE_STRING"
1696_ACEOF 2516_ACEOF
1697 2517
1698
1699cat >>confdefs.h <<_ACEOF 2518cat >>confdefs.h <<_ACEOF
1700#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2519#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1701_ACEOF 2520_ACEOF
1702 2521
2522cat >>confdefs.h <<_ACEOF
2523#define PACKAGE_URL "$PACKAGE_URL"
2524_ACEOF
2525
1703 2526
1704# Let the site file select an alternate cache file if it wants to. 2527# Let the site file select an alternate cache file if it wants to.
1705# Prefer explicitly selected file to automatically selected ones. 2528# Prefer an explicitly selected file to automatically selected ones.
2529ac_site_file1=NONE
2530ac_site_file2=NONE
1706if test -n "$CONFIG_SITE"; then 2531if test -n "$CONFIG_SITE"; then
1707 set x "$CONFIG_SITE" 2532 # We do not want a PATH search for config.site.
2533 case $CONFIG_SITE in #((
2534 -*) ac_site_file1=./$CONFIG_SITE;;
2535 */*) ac_site_file1=$CONFIG_SITE;;
2536 *) ac_site_file1=./$CONFIG_SITE;;
2537 esac
1708elif test "x$prefix" != xNONE; then 2538elif test "x$prefix" != xNONE; then
1709 set x "$prefix/share/config.site" "$prefix/etc/config.site" 2539 ac_site_file1=$prefix/share/config.site
2540 ac_site_file2=$prefix/etc/config.site
1710else 2541else
1711 set x "$ac_default_prefix/share/config.site" \ 2542 ac_site_file1=$ac_default_prefix/share/config.site
1712 "$ac_default_prefix/etc/config.site" 2543 ac_site_file2=$ac_default_prefix/etc/config.site
1713fi 2544fi
1714shift 2545for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1715for ac_site_file
1716do 2546do
1717 if test -r "$ac_site_file"; then 2547 test "x$ac_site_file" = xNONE && continue
2548 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 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1719echo "$as_me: loading site script $ac_site_file" >&6;} 2550$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1720 sed 's/^/| /' "$ac_site_file" >&5 2551 sed 's/^/| /' "$ac_site_file" >&5
1721 . "$ac_site_file" 2552 . "$ac_site_file" \
2553 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555as_fn_error $? "failed to load site script $ac_site_file
2556See \`config.log' for more details" "$LINENO" 5; }
1722 fi 2557 fi
1723done 2558done
1724 2559
1725if test -r "$cache_file"; then 2560if test -r "$cache_file"; then
1726 # Some versions of bash will fail to source /dev/null (special 2561 # Some versions of bash will fail to source /dev/null (special files
1727 # files actually), so we avoid doing that. 2562 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1728 if test -f "$cache_file"; then 2563 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1729 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1730echo "$as_me: loading cache $cache_file" >&6;} 2565$as_echo "$as_me: loading cache $cache_file" >&6;}
1731 case $cache_file in 2566 case $cache_file in
1732 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2567 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1733 *) . "./$cache_file";; 2568 *) . "./$cache_file";;
1734 esac 2569 esac
1735 fi 2570 fi
1736else 2571else
1737 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1738echo "$as_me: creating cache $cache_file" >&6;} 2573$as_echo "$as_me: creating cache $cache_file" >&6;}
1739 >$cache_file 2574 >$cache_file
1740fi 2575fi
1741 2576
1742# Check that the precious variables saved in the cache have kept the same 2577# Check that the precious variables saved in the cache have kept the same
1743# value. 2578# value.
1747 eval ac_new_set=\$ac_env_${ac_var}_set 2582 eval ac_new_set=\$ac_env_${ac_var}_set
1748 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2583 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1749 eval ac_new_val=\$ac_env_${ac_var}_value 2584 eval ac_new_val=\$ac_env_${ac_var}_value
1750 case $ac_old_set,$ac_new_set in 2585 case $ac_old_set,$ac_new_set in
1751 set,) 2586 set,)
1752 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2587 { $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;} 2588$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1754 ac_cache_corrupted=: ;; 2589 ac_cache_corrupted=: ;;
1755 ,set) 2590 ,set)
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2591 { $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;} 2592$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1758 ac_cache_corrupted=: ;; 2593 ac_cache_corrupted=: ;;
1759 ,);; 2594 ,);;
1760 *) 2595 *)
1761 if test "x$ac_old_val" != "x$ac_new_val"; then 2596 if test "x$ac_old_val" != "x$ac_new_val"; then
2597 # differences in whitespace do not lead to failure.
2598 ac_old_val_w=`echo x $ac_old_val`
2599 ac_new_val_w=`echo x $ac_new_val`
2600 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 2601 { $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;} 2602$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=: 2603 ac_cache_corrupted=:
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2606$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2607 eval $ac_var=\$ac_old_val
2608 fi
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2610$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2612$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1769 fi;; 2613 fi;;
1770 esac 2614 esac
1771 # Pass precious variables to config.status. 2615 # Pass precious variables to config.status.
1772 if test "$ac_new_set" = set; then 2616 if test "$ac_new_set" = set; then
1773 case $ac_new_val in 2617 case $ac_new_val in
1774 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2618 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 *) ac_arg=$ac_var=$ac_new_val ;; 2619 *) ac_arg=$ac_var=$ac_new_val ;;
1776 esac 2620 esac
1777 case " $ac_configure_args " in 2621 case " $ac_configure_args " in
1778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2622 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1779 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2623 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1780 esac 2624 esac
1781 fi 2625 fi
1782done 2626done
1783if $ac_cache_corrupted; then 2627if $ac_cache_corrupted; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1784 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2630 { $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;} 2631$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;} 2632 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1788 { (exit 1); exit 1; }; }
1789fi 2633fi
1790 2634## -------------------- ##
1791 2635## Main body of script. ##
1792 2636## -------------------- ##
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806 2637
1807ac_ext=c 2638ac_ext=c
1808ac_cpp='$CPP $CPPFLAGS' 2639ac_cpp='$CPP $CPPFLAGS'
1809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831 ac_install_sh="$ac_aux_dir/shtool install -c" 2662 ac_install_sh="$ac_aux_dir/shtool install -c"
1832 break 2663 break
1833 fi 2664 fi
1834done 2665done
1835if test -z "$ac_aux_dir"; then 2666if 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;} 2667 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1838 { (exit 1); exit 1; }; }
1839fi 2668fi
1840 2669
1841# These three variables are undocumented and unsupported, 2670# These three variables are undocumented and unsupported,
1842# and are intended to be withdrawn in a future Autoconf release. 2671# 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 2672# 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. 2676ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1848 2677
1849 2678
1850# Make sure we can run config.sub. 2679# Make sure we can run config.sub.
1851$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2680$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 2681 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 2682
1856{ echo "$as_me:$LINENO: checking build system type" >&5 2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1857echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2684$as_echo_n "checking build system type... " >&6; }
1858if test "${ac_cv_build+set}" = set; then 2685if ${ac_cv_build+:} false; then :
1859 echo $ECHO_N "(cached) $ECHO_C" >&6 2686 $as_echo_n "(cached) " >&6
1860else 2687else
1861 ac_build_alias=$build_alias 2688 ac_build_alias=$build_alias
1862test "x$ac_build_alias" = x && 2689test "x$ac_build_alias" = x &&
1863 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2690 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1864test "x$ac_build_alias" = x && 2691test "x$ac_build_alias" = x &&
1865 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2692 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1866echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1867 { (exit 1); exit 1; }; }
1868ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2693ac_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;} 2694 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1871 { (exit 1); exit 1; }; }
1872 2695
1873fi 2696fi
1874{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1875echo "${ECHO_T}$ac_cv_build" >&6; } 2698$as_echo "$ac_cv_build" >&6; }
1876case $ac_cv_build in 2699case $ac_cv_build in
1877*-*-*) ;; 2700*-*-*) ;;
1878*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2701*) 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 2702esac
1882build=$ac_cv_build 2703build=$ac_cv_build
1883ac_save_IFS=$IFS; IFS='-' 2704ac_save_IFS=$IFS; IFS='-'
1884set x $ac_cv_build 2705set x $ac_cv_build
1885shift 2706shift
1891build_os=$* 2712build_os=$*
1892IFS=$ac_save_IFS 2713IFS=$ac_save_IFS
1893case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2714case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1894 2715
1895 2716
1896{ echo "$as_me:$LINENO: checking host system type" >&5 2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1897echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2718$as_echo_n "checking host system type... " >&6; }
1898if test "${ac_cv_host+set}" = set; then 2719if ${ac_cv_host+:} false; then :
1899 echo $ECHO_N "(cached) $ECHO_C" >&6 2720 $as_echo_n "(cached) " >&6
1900else 2721else
1901 if test "x$host_alias" = x; then 2722 if test "x$host_alias" = x; then
1902 ac_cv_host=$ac_cv_build 2723 ac_cv_host=$ac_cv_build
1903else 2724else
1904 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2725 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 2726 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1906echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1907 { (exit 1); exit 1; }; }
1908fi 2727fi
1909 2728
1910fi 2729fi
1911{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1912echo "${ECHO_T}$ac_cv_host" >&6; } 2731$as_echo "$ac_cv_host" >&6; }
1913case $ac_cv_host in 2732case $ac_cv_host in
1914*-*-*) ;; 2733*-*-*) ;;
1915*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2734*) 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 2735esac
1919host=$ac_cv_host 2736host=$ac_cv_host
1920ac_save_IFS=$IFS; IFS='-' 2737ac_save_IFS=$IFS; IFS='-'
1921set x $ac_cv_host 2738set x $ac_cv_host
1922shift 2739shift
1931 2748
1932 2749
1933 2750
1934VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2751VERSION=`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` 2752DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2753
1936echo "" 2754echo ""
1937echo "configuring for rxvt $VERSION" 2755echo "configuring for rxvt $VERSION"
1938echo "" 2756echo ""
1939 2757
1940orig_CXXFLAGS="$CXXFLAGS" 2758orig_CXXFLAGS="$CXXFLAGS"
1941
1942 2759
1943ac_ext=c 2760ac_ext=c
1944ac_cpp='$CPP $CPPFLAGS' 2761ac_cpp='$CPP $CPPFLAGS'
1945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947ac_compiler_gnu=$ac_cv_c_compiler_gnu 2764ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948if test -n "$ac_tool_prefix"; then 2765if 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. 2766 # 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 2767set dummy ${ac_tool_prefix}gcc; ac_word=$2
1951{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2769$as_echo_n "checking for $ac_word... " >&6; }
1953if test "${ac_cv_prog_CC+set}" = set; then 2770if ${ac_cv_prog_CC+:} false; then :
1954 echo $ECHO_N "(cached) $ECHO_C" >&6 2771 $as_echo_n "(cached) " >&6
1955else 2772else
1956 if test -n "$CC"; then 2773 if test -n "$CC"; then
1957 ac_cv_prog_CC="$CC" # Let the user override the test. 2774 ac_cv_prog_CC="$CC" # Let the user override the test.
1958else 2775else
1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH 2777for as_dir in $PATH
1961do 2778do
1962 IFS=$as_save_IFS 2779 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=. 2780 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do 2781 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 2782 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" 2783 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1968 break 2 2785 break 2
1969 fi 2786 fi
1970done 2787done
1971done 2788 done
1972IFS=$as_save_IFS 2789IFS=$as_save_IFS
1973 2790
1974fi 2791fi
1975fi 2792fi
1976CC=$ac_cv_prog_CC 2793CC=$ac_cv_prog_CC
1977if test -n "$CC"; then 2794if test -n "$CC"; then
1978 { echo "$as_me:$LINENO: result: $CC" >&5 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1979echo "${ECHO_T}$CC" >&6; } 2796$as_echo "$CC" >&6; }
1980else 2797else
1981 { echo "$as_me:$LINENO: result: no" >&5 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1982echo "${ECHO_T}no" >&6; } 2799$as_echo "no" >&6; }
1983fi 2800fi
1984 2801
1985 2802
1986fi 2803fi
1987if test -z "$ac_cv_prog_CC"; then 2804if test -z "$ac_cv_prog_CC"; then
1988 ac_ct_CC=$CC 2805 ac_ct_CC=$CC
1989 # Extract the first word of "gcc", so it can be a program name with args. 2806 # Extract the first word of "gcc", so it can be a program name with args.
1990set dummy gcc; ac_word=$2 2807set dummy gcc; ac_word=$2
1991{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2809$as_echo_n "checking for $ac_word... " >&6; }
1993if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2810if ${ac_cv_prog_ac_ct_CC+:} false; then :
1994 echo $ECHO_N "(cached) $ECHO_C" >&6 2811 $as_echo_n "(cached) " >&6
1995else 2812else
1996 if test -n "$ac_ct_CC"; then 2813 if test -n "$ac_ct_CC"; then
1997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1998else 2815else
1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH 2817for as_dir in $PATH
2001do 2818do
2002 IFS=$as_save_IFS 2819 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=. 2820 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do 2821 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 2822 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" 2823 ac_cv_prog_ac_ct_CC="gcc"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2008 break 2 2825 break 2
2009 fi 2826 fi
2010done 2827done
2011done 2828 done
2012IFS=$as_save_IFS 2829IFS=$as_save_IFS
2013 2830
2014fi 2831fi
2015fi 2832fi
2016ac_ct_CC=$ac_cv_prog_ac_ct_CC 2833ac_ct_CC=$ac_cv_prog_ac_ct_CC
2017if test -n "$ac_ct_CC"; then 2834if test -n "$ac_ct_CC"; then
2018 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2019echo "${ECHO_T}$ac_ct_CC" >&6; } 2836$as_echo "$ac_ct_CC" >&6; }
2020else 2837else
2021 { echo "$as_me:$LINENO: result: no" >&5 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2022echo "${ECHO_T}no" >&6; } 2839$as_echo "no" >&6; }
2023fi 2840fi
2024 2841
2025 if test "x$ac_ct_CC" = x; then 2842 if test "x$ac_ct_CC" = x; then
2026 CC="" 2843 CC=""
2027 else 2844 else
2028 case $cross_compiling:$ac_tool_warned in 2845 case $cross_compiling:$ac_tool_warned in
2029yes:) 2846yes:)
2030{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2847{ $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 2848$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 ;; 2849ac_tool_warned=yes ;;
2037esac 2850esac
2038 CC=$ac_ct_CC 2851 CC=$ac_ct_CC
2039 fi 2852 fi
2040else 2853else
2043 2856
2044if test -z "$CC"; then 2857if test -z "$CC"; then
2045 if test -n "$ac_tool_prefix"; then 2858 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. 2859 # 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 2860set dummy ${ac_tool_prefix}cc; ac_word=$2
2048{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2862$as_echo_n "checking for $ac_word... " >&6; }
2050if test "${ac_cv_prog_CC+set}" = set; then 2863if ${ac_cv_prog_CC+:} false; then :
2051 echo $ECHO_N "(cached) $ECHO_C" >&6 2864 $as_echo_n "(cached) " >&6
2052else 2865else
2053 if test -n "$CC"; then 2866 if test -n "$CC"; then
2054 ac_cv_prog_CC="$CC" # Let the user override the test. 2867 ac_cv_prog_CC="$CC" # Let the user override the test.
2055else 2868else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH 2870for as_dir in $PATH
2058do 2871do
2059 IFS=$as_save_IFS 2872 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=. 2873 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do 2874 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 2875 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" 2876 ac_cv_prog_CC="${ac_tool_prefix}cc"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 break 2 2878 break 2
2066 fi 2879 fi
2067done 2880done
2068done 2881 done
2069IFS=$as_save_IFS 2882IFS=$as_save_IFS
2070 2883
2071fi 2884fi
2072fi 2885fi
2073CC=$ac_cv_prog_CC 2886CC=$ac_cv_prog_CC
2074if test -n "$CC"; then 2887if test -n "$CC"; then
2075 { echo "$as_me:$LINENO: result: $CC" >&5 2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2076echo "${ECHO_T}$CC" >&6; } 2889$as_echo "$CC" >&6; }
2077else 2890else
2078 { echo "$as_me:$LINENO: result: no" >&5 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2079echo "${ECHO_T}no" >&6; } 2892$as_echo "no" >&6; }
2080fi 2893fi
2081 2894
2082 2895
2083 fi 2896 fi
2084fi 2897fi
2085if test -z "$CC"; then 2898if test -z "$CC"; then
2086 # Extract the first word of "cc", so it can be a program name with args. 2899 # Extract the first word of "cc", so it can be a program name with args.
2087set dummy cc; ac_word=$2 2900set dummy cc; ac_word=$2
2088{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2902$as_echo_n "checking for $ac_word... " >&6; }
2090if test "${ac_cv_prog_CC+set}" = set; then 2903if ${ac_cv_prog_CC+:} false; then :
2091 echo $ECHO_N "(cached) $ECHO_C" >&6 2904 $as_echo_n "(cached) " >&6
2092else 2905else
2093 if test -n "$CC"; then 2906 if test -n "$CC"; then
2094 ac_cv_prog_CC="$CC" # Let the user override the test. 2907 ac_cv_prog_CC="$CC" # Let the user override the test.
2095else 2908else
2096 ac_prog_rejected=no 2909 ac_prog_rejected=no
2097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH 2911for as_dir in $PATH
2099do 2912do
2100 IFS=$as_save_IFS 2913 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=. 2914 test -z "$as_dir" && as_dir=.
2102 for ac_exec_ext in '' $ac_executable_extensions; do 2915 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 2916 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 2917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2105 ac_prog_rejected=yes 2918 ac_prog_rejected=yes
2106 continue 2919 continue
2107 fi 2920 fi
2108 ac_cv_prog_CC="cc" 2921 ac_cv_prog_CC="cc"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 break 2 2923 break 2
2111 fi 2924 fi
2112done 2925done
2113done 2926 done
2114IFS=$as_save_IFS 2927IFS=$as_save_IFS
2115 2928
2116if test $ac_prog_rejected = yes; then 2929if test $ac_prog_rejected = yes; then
2117 # We found a bogon in the path, so make sure we never use it. 2930 # We found a bogon in the path, so make sure we never use it.
2118 set dummy $ac_cv_prog_CC 2931 set dummy $ac_cv_prog_CC
2127fi 2940fi
2128fi 2941fi
2129fi 2942fi
2130CC=$ac_cv_prog_CC 2943CC=$ac_cv_prog_CC
2131if test -n "$CC"; then 2944if test -n "$CC"; then
2132 { echo "$as_me:$LINENO: result: $CC" >&5 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2133echo "${ECHO_T}$CC" >&6; } 2946$as_echo "$CC" >&6; }
2134else 2947else
2135 { echo "$as_me:$LINENO: result: no" >&5 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2136echo "${ECHO_T}no" >&6; } 2949$as_echo "no" >&6; }
2137fi 2950fi
2138 2951
2139 2952
2140fi 2953fi
2141if test -z "$CC"; then 2954if test -z "$CC"; then
2142 if test -n "$ac_tool_prefix"; then 2955 if test -n "$ac_tool_prefix"; then
2143 for ac_prog in cl.exe 2956 for ac_prog in cl.exe
2144 do 2957 do
2145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2958 # 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 2959set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2147{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2961$as_echo_n "checking for $ac_word... " >&6; }
2149if test "${ac_cv_prog_CC+set}" = set; then 2962if ${ac_cv_prog_CC+:} false; then :
2150 echo $ECHO_N "(cached) $ECHO_C" >&6 2963 $as_echo_n "(cached) " >&6
2151else 2964else
2152 if test -n "$CC"; then 2965 if test -n "$CC"; then
2153 ac_cv_prog_CC="$CC" # Let the user override the test. 2966 ac_cv_prog_CC="$CC" # Let the user override the test.
2154else 2967else
2155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156for as_dir in $PATH 2969for as_dir in $PATH
2157do 2970do
2158 IFS=$as_save_IFS 2971 IFS=$as_save_IFS
2159 test -z "$as_dir" && as_dir=. 2972 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do 2973 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 2974 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" 2975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 break 2 2977 break 2
2165 fi 2978 fi
2166done 2979done
2167done 2980 done
2168IFS=$as_save_IFS 2981IFS=$as_save_IFS
2169 2982
2170fi 2983fi
2171fi 2984fi
2172CC=$ac_cv_prog_CC 2985CC=$ac_cv_prog_CC
2173if test -n "$CC"; then 2986if test -n "$CC"; then
2174 { echo "$as_me:$LINENO: result: $CC" >&5 2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2175echo "${ECHO_T}$CC" >&6; } 2988$as_echo "$CC" >&6; }
2176else 2989else
2177 { echo "$as_me:$LINENO: result: no" >&5 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2178echo "${ECHO_T}no" >&6; } 2991$as_echo "no" >&6; }
2179fi 2992fi
2180 2993
2181 2994
2182 test -n "$CC" && break 2995 test -n "$CC" && break
2183 done 2996 done
2186 ac_ct_CC=$CC 2999 ac_ct_CC=$CC
2187 for ac_prog in cl.exe 3000 for ac_prog in cl.exe
2188do 3001do
2189 # Extract the first word of "$ac_prog", so it can be a program name with args. 3002 # Extract the first word of "$ac_prog", so it can be a program name with args.
2190set dummy $ac_prog; ac_word=$2 3003set dummy $ac_prog; ac_word=$2
2191{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3005$as_echo_n "checking for $ac_word... " >&6; }
2193if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3006if ${ac_cv_prog_ac_ct_CC+:} false; then :
2194 echo $ECHO_N "(cached) $ECHO_C" >&6 3007 $as_echo_n "(cached) " >&6
2195else 3008else
2196 if test -n "$ac_ct_CC"; then 3009 if test -n "$ac_ct_CC"; then
2197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2198else 3011else
2199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200for as_dir in $PATH 3013for as_dir in $PATH
2201do 3014do
2202 IFS=$as_save_IFS 3015 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=. 3016 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do 3017 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 3018 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" 3019 ac_cv_prog_ac_ct_CC="$ac_prog"
2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 break 2 3021 break 2
2209 fi 3022 fi
2210done 3023done
2211done 3024 done
2212IFS=$as_save_IFS 3025IFS=$as_save_IFS
2213 3026
2214fi 3027fi
2215fi 3028fi
2216ac_ct_CC=$ac_cv_prog_ac_ct_CC 3029ac_ct_CC=$ac_cv_prog_ac_ct_CC
2217if test -n "$ac_ct_CC"; then 3030if test -n "$ac_ct_CC"; then
2218 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2219echo "${ECHO_T}$ac_ct_CC" >&6; } 3032$as_echo "$ac_ct_CC" >&6; }
2220else 3033else
2221 { echo "$as_me:$LINENO: result: no" >&5 3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2222echo "${ECHO_T}no" >&6; } 3035$as_echo "no" >&6; }
2223fi 3036fi
2224 3037
2225 3038
2226 test -n "$ac_ct_CC" && break 3039 test -n "$ac_ct_CC" && break
2227done 3040done
2229 if test "x$ac_ct_CC" = x; then 3042 if test "x$ac_ct_CC" = x; then
2230 CC="" 3043 CC=""
2231 else 3044 else
2232 case $cross_compiling:$ac_tool_warned in 3045 case $cross_compiling:$ac_tool_warned in
2233yes:) 3046yes:)
2234{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3047{ $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 3048$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 ;; 3049ac_tool_warned=yes ;;
2241esac 3050esac
2242 CC=$ac_ct_CC 3051 CC=$ac_ct_CC
2243 fi 3052 fi
2244fi 3053fi
2245 3054
2246fi 3055fi
2247 3056
2248 3057
2249test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3058test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250See \`config.log' for more details." >&5 3059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251echo "$as_me: error: no acceptable C compiler found in \$PATH 3060as_fn_error $? "no acceptable C compiler found in \$PATH
2252See \`config.log' for more details." >&2;} 3061See \`config.log' for more details" "$LINENO" 5; }
2253 { (exit 1); exit 1; }; }
2254 3062
2255# Provide some information about the compiler. 3063# Provide some information about the compiler.
2256echo "$as_me:$LINENO: checking for C compiler version" >&5 3064$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2257ac_compiler=`set X $ac_compile; echo $2` 3065set X $ac_compile
3066ac_compiler=$2
3067for ac_option in --version -v -V -qversion; do
2258{ (ac_try="$ac_compiler --version >&5" 3068 { { ac_try="$ac_compiler $ac_option >&5"
2259case "(($ac_try" in 3069case "(($ac_try" in
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;; 3071 *) ac_try_echo=$ac_try;;
2262esac 3072esac
2263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2264 (eval "$ac_compiler --version >&5") 2>&5 3074$as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2265 ac_status=$? 3076 ac_status=$?
3077 if test -s conftest.err; then
3078 sed '10a\
3079... rest of stderr output deleted ...
3080 10q' conftest.err >conftest.er1
3081 cat conftest.er1 >&5
3082 fi
3083 rm -f conftest.er1 conftest.err
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 (exit $ac_status); } 3085 test $ac_status = 0; }
2268{ (ac_try="$ac_compiler -v >&5" 3086done
3087
3088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089/* end confdefs.h. */
3090
3091int
3092main ()
3093{
3094
3095 ;
3096 return 0;
3097}
3098_ACEOF
3099ac_clean_files_save=$ac_clean_files
3100ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3101# Try to create an executable without -o first, disregard a.out.
3102# It will help us diagnose broken compilers, and finding out an intuition
3103# of exeext.
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3105$as_echo_n "checking whether the C compiler works... " >&6; }
3106ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3107
3108# The possible output files:
3109ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3110
3111ac_rmfiles=
3112for ac_file in $ac_files
3113do
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3117 esac
3118done
3119rm -f $ac_rmfiles
3120
3121if { { ac_try="$ac_link_default"
2269case "(($ac_try" in 3122case "(($ac_try" in
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;; 3124 *) ac_try_echo=$ac_try;;
2272esac 3125esac
2273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274 (eval "$ac_compiler -v >&5") 2>&5 3127$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 3128 (eval "$ac_link_default") 2>&5
2338 ac_status=$? 3129 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2340 (exit $ac_status); }; then 3131 test $ac_status = 0; }; then :
2341 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3132 # 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' 3133# 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, 3134# 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 3135# so that the user can short-circuit this test for compilers unknown to
2345# Autoconf. 3136# Autoconf.
2346for ac_file in $ac_files '' 3137for ac_file in $ac_files ''
2347do 3138do
2348 test -f "$ac_file" || continue 3139 test -f "$ac_file" || continue
2349 case $ac_file in 3140 case $ac_file in
2350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2351 ;; 3142 ;;
2352 [ab].out ) 3143 [ab].out )
2353 # We found the default executable, but exeext='' is most 3144 # We found the default executable, but exeext='' is most
2354 # certainly right. 3145 # certainly right.
2355 break;; 3146 break;;
2356 *.* ) 3147 *.* )
2357 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3148 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2358 then :; else 3149 then :; else
2359 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3150 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2360 fi 3151 fi
2361 # We set ac_cv_exeext here because the later test for it is not 3152 # 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' 3153 # safe: cross compilers may not add the suffix if given an `-o'
2371test "$ac_cv_exeext" = no && ac_cv_exeext= 3162test "$ac_cv_exeext" = no && ac_cv_exeext=
2372 3163
2373else 3164else
2374 ac_file='' 3165 ac_file=''
2375fi 3166fi
2376
2377{ echo "$as_me:$LINENO: result: $ac_file" >&5
2378echo "${ECHO_T}$ac_file" >&6; }
2379if test -z "$ac_file"; then 3167if test -z "$ac_file"; then :
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169$as_echo "no" >&6; }
2380 echo "$as_me: failed program was:" >&5 3170$as_echo "$as_me: failed program was:" >&5
2381sed 's/^/| /' conftest.$ac_ext >&5 3171sed 's/^/| /' conftest.$ac_ext >&5
2382 3172
2383{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3173{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2384See \`config.log' for more details." >&5 3174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2385echo "$as_me: error: C compiler cannot create executables 3175as_fn_error 77 "C compiler cannot create executables
2386See \`config.log' for more details." >&2;} 3176See \`config.log' for more details" "$LINENO" 5; }
2387 { (exit 77); exit 77; }; } 3177else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179$as_echo "yes" >&6; }
2388fi 3180fi
2389 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3182$as_echo_n "checking for C compiler default output file name... " >&6; }
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3184$as_echo "$ac_file" >&6; }
2390ac_exeext=$ac_cv_exeext 3185ac_exeext=$ac_cv_exeext
2391 3186
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 3187rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2428ac_clean_files=$ac_clean_files_save 3188ac_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 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2437echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3190$as_echo_n "checking for suffix of executables... " >&6; }
2438if { (ac_try="$ac_link" 3191if { { ac_try="$ac_link"
2439case "(($ac_try" in 3192case "(($ac_try" in
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;; 3194 *) ac_try_echo=$ac_try;;
2442esac 3195esac
2443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197$as_echo "$ac_try_echo"; } >&5
2444 (eval "$ac_link") 2>&5 3198 (eval "$ac_link") 2>&5
2445 ac_status=$? 3199 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2447 (exit $ac_status); }; then 3201 test $ac_status = 0; }; then :
2448 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3202 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2449# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3203# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2450# work properly (i.e., refer to `conftest.exe'), while it won't with 3204# work properly (i.e., refer to `conftest.exe'), while it won't with
2451# `rm'. 3205# `rm'.
2452for ac_file in conftest.exe conftest conftest.*; do 3206for ac_file in conftest.exe conftest conftest.*; do
2453 test -f "$ac_file" || continue 3207 test -f "$ac_file" || continue
2454 case $ac_file in 3208 case $ac_file in
2455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2456 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3210 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2457 break;; 3211 break;;
2458 * ) break;; 3212 * ) break;;
2459 esac 3213 esac
2460done 3214done
2461else 3215else
2462 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2463See \`config.log' for more details." >&5 3217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2464echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3218as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2465See \`config.log' for more details." >&2;} 3219See \`config.log' for more details" "$LINENO" 5; }
2466 { (exit 1); exit 1; }; }
2467fi 3220fi
2468
2469rm -f conftest$ac_cv_exeext 3221rm -f conftest conftest$ac_cv_exeext
2470{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2471echo "${ECHO_T}$ac_cv_exeext" >&6; } 3223$as_echo "$ac_cv_exeext" >&6; }
2472 3224
2473rm -f conftest.$ac_ext 3225rm -f conftest.$ac_ext
2474EXEEXT=$ac_cv_exeext 3226EXEEXT=$ac_cv_exeext
2475ac_exeext=$EXEEXT 3227ac_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 3228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485cat >>conftest.$ac_ext <<_ACEOF
2486/* end confdefs.h. */ 3229/* end confdefs.h. */
2487 3230#include <stdio.h>
2488int 3231int
2489main () 3232main ()
2490{ 3233{
3234FILE *f = fopen ("conftest.out", "w");
3235 return ferror (f) || fclose (f) != 0;
2491 3236
2492 ; 3237 ;
2493 return 0; 3238 return 0;
2494} 3239}
2495_ACEOF 3240_ACEOF
2496rm -f conftest.o conftest.obj 3241ac_clean_files="$ac_clean_files conftest.out"
2497if { (ac_try="$ac_compile" 3242# Check that the compiler produces executables we can run. If not, either
3243# the compiler is broken, or we cross compile.
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3245$as_echo_n "checking whether we are cross compiling... " >&6; }
3246if test "$cross_compiling" != yes; then
3247 { { ac_try="$ac_link"
2498case "(($ac_try" in 3248case "(($ac_try" in
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;; 3250 *) ac_try_echo=$ac_try;;
2501esac 3251esac
2502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253$as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_link") 2>&5
3255 ac_status=$?
3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257 test $ac_status = 0; }
3258 if { ac_try='./conftest$ac_cv_exeext'
3259 { { case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262esac
3263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264$as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_try") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; }; then
3269 cross_compiling=no
3270 else
3271 if test "$cross_compiling" = maybe; then
3272 cross_compiling=yes
3273 else
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276as_fn_error $? "cannot run C compiled programs.
3277If you meant to cross compile, use \`--host'.
3278See \`config.log' for more details" "$LINENO" 5; }
3279 fi
3280 fi
3281fi
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3283$as_echo "$cross_compiling" >&6; }
3284
3285rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3286ac_clean_files=$ac_clean_files_save
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3288$as_echo_n "checking for suffix of object files... " >&6; }
3289if ${ac_cv_objext+:} false; then :
3290 $as_echo_n "(cached) " >&6
3291else
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h. */
3294
3295int
3296main ()
3297{
3298
3299 ;
3300 return 0;
3301}
3302_ACEOF
3303rm -f conftest.o conftest.obj
3304if { { ac_try="$ac_compile"
3305case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308esac
3309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310$as_echo "$ac_try_echo"; } >&5
2503 (eval "$ac_compile") 2>&5 3311 (eval "$ac_compile") 2>&5
2504 ac_status=$? 3312 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506 (exit $ac_status); }; then 3314 test $ac_status = 0; }; then :
2507 for ac_file in conftest.o conftest.obj conftest.*; do 3315 for ac_file in conftest.o conftest.obj conftest.*; do
2508 test -f "$ac_file" || continue; 3316 test -f "$ac_file" || continue;
2509 case $ac_file in 3317 case $ac_file in
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2512 break;; 3320 break;;
2513 esac 3321 esac
2514done 3322done
2515else 3323else
2516 echo "$as_me: failed program was:" >&5 3324 $as_echo "$as_me: failed program was:" >&5
2517sed 's/^/| /' conftest.$ac_ext >&5 3325sed 's/^/| /' conftest.$ac_ext >&5
2518 3326
2519{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3327{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2520See \`config.log' for more details." >&5 3328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521echo "$as_me: error: cannot compute suffix of object files: cannot compile 3329as_fn_error $? "cannot compute suffix of object files: cannot compile
2522See \`config.log' for more details." >&2;} 3330See \`config.log' for more details" "$LINENO" 5; }
2523 { (exit 1); exit 1; }; }
2524fi 3331fi
2525
2526rm -f conftest.$ac_cv_objext conftest.$ac_ext 3332rm -f conftest.$ac_cv_objext conftest.$ac_ext
2527fi 3333fi
2528{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2529echo "${ECHO_T}$ac_cv_objext" >&6; } 3335$as_echo "$ac_cv_objext" >&6; }
2530OBJEXT=$ac_cv_objext 3336OBJEXT=$ac_cv_objext
2531ac_objext=$OBJEXT 3337ac_objext=$OBJEXT
2532{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3338{ $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; } 3339$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2534if test "${ac_cv_c_compiler_gnu+set}" = set; then 3340if ${ac_cv_c_compiler_gnu+:} false; then :
2535 echo $ECHO_N "(cached) $ECHO_C" >&6 3341 $as_echo_n "(cached) " >&6
2536else 3342else
2537 cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h. */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext 3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
2542/* end confdefs.h. */ 3344/* end confdefs.h. */
2543 3345
2544int 3346int
2545main () 3347main ()
2546{ 3348{
2550 3352
2551 ; 3353 ;
2552 return 0; 3354 return 0;
2553} 3355}
2554_ACEOF 3356_ACEOF
2555rm -f conftest.$ac_objext 3357if 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 3358 ac_compiler_gnu=yes
2573else 3359else
2574 echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577 ac_compiler_gnu=no 3360 ac_compiler_gnu=no
2578fi 3361fi
2579
2580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581ac_cv_c_compiler_gnu=$ac_compiler_gnu 3363ac_cv_c_compiler_gnu=$ac_compiler_gnu
2582 3364
2583fi 3365fi
2584{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2585echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3367$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2586GCC=`test $ac_compiler_gnu = yes && echo yes` 3368if test $ac_compiler_gnu = yes; then
3369 GCC=yes
3370else
3371 GCC=
3372fi
2587ac_test_CFLAGS=${CFLAGS+set} 3373ac_test_CFLAGS=${CFLAGS+set}
2588ac_save_CFLAGS=$CFLAGS 3374ac_save_CFLAGS=$CFLAGS
2589{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2590echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3376$as_echo_n "checking whether $CC accepts -g... " >&6; }
2591if test "${ac_cv_prog_cc_g+set}" = set; then 3377if ${ac_cv_prog_cc_g+:} false; then :
2592 echo $ECHO_N "(cached) $ECHO_C" >&6 3378 $as_echo_n "(cached) " >&6
2593else 3379else
2594 ac_save_c_werror_flag=$ac_c_werror_flag 3380 ac_save_c_werror_flag=$ac_c_werror_flag
2595 ac_c_werror_flag=yes 3381 ac_c_werror_flag=yes
2596 ac_cv_prog_cc_g=no 3382 ac_cv_prog_cc_g=no
2597 CFLAGS="-g" 3383 CFLAGS="-g"
2598 cat >conftest.$ac_ext <<_ACEOF
2599/* confdefs.h. */
2600_ACEOF
2601cat confdefs.h >>conftest.$ac_ext 3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602cat >>conftest.$ac_ext <<_ACEOF
2603/* end confdefs.h. */ 3385/* end confdefs.h. */
2604 3386
2605int 3387int
2606main () 3388main ()
2607{ 3389{
2608 3390
2609 ; 3391 ;
2610 return 0; 3392 return 0;
2611} 3393}
2612_ACEOF 3394_ACEOF
2613rm -f conftest.$ac_objext 3395if 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 3396 ac_cv_prog_cc_g=yes
2631else 3397else
2632 echo "$as_me: failed program was:" >&5
2633sed 's/^/| /' conftest.$ac_ext >&5
2634
2635 CFLAGS="" 3398 CFLAGS=""
2636 cat >conftest.$ac_ext <<_ACEOF
2637/* confdefs.h. */
2638_ACEOF
2639cat confdefs.h >>conftest.$ac_ext 3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640cat >>conftest.$ac_ext <<_ACEOF
2641/* end confdefs.h. */ 3400/* end confdefs.h. */
2642 3401
2643int 3402int
2644main () 3403main ()
2645{ 3404{
2646 3405
2647 ; 3406 ;
2648 return 0; 3407 return 0;
2649} 3408}
2650_ACEOF 3409_ACEOF
2651rm -f conftest.$ac_objext 3410if 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 3411
3412else
2673 ac_c_werror_flag=$ac_save_c_werror_flag 3413 ac_c_werror_flag=$ac_save_c_werror_flag
2674 CFLAGS="-g" 3414 CFLAGS="-g"
2675 cat >conftest.$ac_ext <<_ACEOF
2676/* confdefs.h. */
2677_ACEOF
2678cat confdefs.h >>conftest.$ac_ext 3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679cat >>conftest.$ac_ext <<_ACEOF
2680/* end confdefs.h. */ 3416/* end confdefs.h. */
2681 3417
2682int 3418int
2683main () 3419main ()
2684{ 3420{
2685 3421
2686 ; 3422 ;
2687 return 0; 3423 return 0;
2688} 3424}
2689_ACEOF 3425_ACEOF
2690rm -f conftest.$ac_objext 3426if 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 3427 ac_cv_prog_cc_g=yes
2708else
2709 echo "$as_me: failed program was:" >&5
2710sed 's/^/| /' conftest.$ac_ext >&5
2711
2712
2713fi 3428fi
2714
2715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716fi 3430fi
2717
2718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719fi 3432fi
2720
2721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 ac_c_werror_flag=$ac_save_c_werror_flag 3434 ac_c_werror_flag=$ac_save_c_werror_flag
2723fi 3435fi
2724{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2725echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3437$as_echo "$ac_cv_prog_cc_g" >&6; }
2726if test "$ac_test_CFLAGS" = set; then 3438if test "$ac_test_CFLAGS" = set; then
2727 CFLAGS=$ac_save_CFLAGS 3439 CFLAGS=$ac_save_CFLAGS
2728elif test $ac_cv_prog_cc_g = yes; then 3440elif test $ac_cv_prog_cc_g = yes; then
2729 if test "$GCC" = yes; then 3441 if test "$GCC" = yes; then
2730 CFLAGS="-g -O2" 3442 CFLAGS="-g -O2"
2736 CFLAGS="-O2" 3448 CFLAGS="-O2"
2737 else 3449 else
2738 CFLAGS= 3450 CFLAGS=
2739 fi 3451 fi
2740fi 3452fi
2741{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3453{ $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; } 3454$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2743if test "${ac_cv_prog_cc_c89+set}" = set; then 3455if ${ac_cv_prog_cc_c89+:} false; then :
2744 echo $ECHO_N "(cached) $ECHO_C" >&6 3456 $as_echo_n "(cached) " >&6
2745else 3457else
2746 ac_cv_prog_cc_c89=no 3458 ac_cv_prog_cc_c89=no
2747ac_save_CC=$CC 3459ac_save_CC=$CC
2748cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h. */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext 3460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h. */ 3461/* end confdefs.h. */
2754#include <stdarg.h> 3462#include <stdarg.h>
2755#include <stdio.h> 3463#include <stdio.h>
2756#include <sys/types.h> 3464#include <sys/types.h>
2757#include <sys/stat.h> 3465#include <sys/stat.h>
2804_ACEOF 3512_ACEOF
2805for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3513for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3514 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2807do 3515do
2808 CC="$ac_save_CC $ac_arg" 3516 CC="$ac_save_CC $ac_arg"
2809 rm -f conftest.$ac_objext 3517 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 3518 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 3519fi
2833
2834rm -f core conftest.err conftest.$ac_objext 3520rm -f core conftest.err conftest.$ac_objext
2835 test "x$ac_cv_prog_cc_c89" != "xno" && break 3521 test "x$ac_cv_prog_cc_c89" != "xno" && break
2836done 3522done
2837rm -f conftest.$ac_ext 3523rm -f conftest.$ac_ext
2838CC=$ac_save_CC 3524CC=$ac_save_CC
2839 3525
2840fi 3526fi
2841# AC_CACHE_VAL 3527# AC_CACHE_VAL
2842case "x$ac_cv_prog_cc_c89" in 3528case "x$ac_cv_prog_cc_c89" in
2843 x) 3529 x)
2844 { echo "$as_me:$LINENO: result: none needed" >&5 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2845echo "${ECHO_T}none needed" >&6; } ;; 3531$as_echo "none needed" >&6; } ;;
2846 xno) 3532 xno)
2847 { echo "$as_me:$LINENO: result: unsupported" >&5 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2848echo "${ECHO_T}unsupported" >&6; } ;; 3534$as_echo "unsupported" >&6; } ;;
2849 *) 3535 *)
2850 CC="$CC $ac_cv_prog_cc_c89" 3536 CC="$CC $ac_cv_prog_cc_c89"
2851 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2852echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3538$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2853esac 3539esac
3540if test "x$ac_cv_prog_cc_c89" != xno; then :
2854 3541
3542fi
2855 3543
2856ac_ext=c 3544ac_ext=c
2857ac_cpp='$CPP $CPPFLAGS' 3545ac_cpp='$CPP $CPPFLAGS'
2858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 if test -n "$ac_tool_prefix"; then 3559 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 3560 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2873 do 3561 do
2874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3562 # 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 3563set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2876{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3565$as_echo_n "checking for $ac_word... " >&6; }
2878if test "${ac_cv_prog_CXX+set}" = set; then 3566if ${ac_cv_prog_CXX+:} false; then :
2879 echo $ECHO_N "(cached) $ECHO_C" >&6 3567 $as_echo_n "(cached) " >&6
2880else 3568else
2881 if test -n "$CXX"; then 3569 if test -n "$CXX"; then
2882 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3570 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2883else 3571else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH 3573for as_dir in $PATH
2886do 3574do
2887 IFS=$as_save_IFS 3575 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=. 3576 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do 3577 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 3578 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" 3579 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2 3581 break 2
2894 fi 3582 fi
2895done 3583done
2896done 3584 done
2897IFS=$as_save_IFS 3585IFS=$as_save_IFS
2898 3586
2899fi 3587fi
2900fi 3588fi
2901CXX=$ac_cv_prog_CXX 3589CXX=$ac_cv_prog_CXX
2902if test -n "$CXX"; then 3590if test -n "$CXX"; then
2903 { echo "$as_me:$LINENO: result: $CXX" >&5 3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2904echo "${ECHO_T}$CXX" >&6; } 3592$as_echo "$CXX" >&6; }
2905else 3593else
2906 { echo "$as_me:$LINENO: result: no" >&5 3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907echo "${ECHO_T}no" >&6; } 3595$as_echo "no" >&6; }
2908fi 3596fi
2909 3597
2910 3598
2911 test -n "$CXX" && break 3599 test -n "$CXX" && break
2912 done 3600 done
2915 ac_ct_CXX=$CXX 3603 ac_ct_CXX=$CXX
2916 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3604 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2917do 3605do
2918 # Extract the first word of "$ac_prog", so it can be a program name with args. 3606 # Extract the first word of "$ac_prog", so it can be a program name with args.
2919set dummy $ac_prog; ac_word=$2 3607set dummy $ac_prog; ac_word=$2
2920{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3609$as_echo_n "checking for $ac_word... " >&6; }
2922if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3610if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2923 echo $ECHO_N "(cached) $ECHO_C" >&6 3611 $as_echo_n "(cached) " >&6
2924else 3612else
2925 if test -n "$ac_ct_CXX"; then 3613 if test -n "$ac_ct_CXX"; then
2926 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3614 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2927else 3615else
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH 3617for as_dir in $PATH
2930do 3618do
2931 IFS=$as_save_IFS 3619 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=. 3620 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do 3621 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 3622 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" 3623 ac_cv_prog_ac_ct_CXX="$ac_prog"
2936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2 3625 break 2
2938 fi 3626 fi
2939done 3627done
2940done 3628 done
2941IFS=$as_save_IFS 3629IFS=$as_save_IFS
2942 3630
2943fi 3631fi
2944fi 3632fi
2945ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3633ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2946if test -n "$ac_ct_CXX"; then 3634if test -n "$ac_ct_CXX"; then
2947 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2948echo "${ECHO_T}$ac_ct_CXX" >&6; } 3636$as_echo "$ac_ct_CXX" >&6; }
2949else 3637else
2950 { echo "$as_me:$LINENO: result: no" >&5 3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951echo "${ECHO_T}no" >&6; } 3639$as_echo "no" >&6; }
2952fi 3640fi
2953 3641
2954 3642
2955 test -n "$ac_ct_CXX" && break 3643 test -n "$ac_ct_CXX" && break
2956done 3644done
2958 if test "x$ac_ct_CXX" = x; then 3646 if test "x$ac_ct_CXX" = x; then
2959 CXX="g++" 3647 CXX="g++"
2960 else 3648 else
2961 case $cross_compiling:$ac_tool_warned in 3649 case $cross_compiling:$ac_tool_warned in
2962yes:) 3650yes:)
2963{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3651{ $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 3652$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 ;; 3653ac_tool_warned=yes ;;
2970esac 3654esac
2971 CXX=$ac_ct_CXX 3655 CXX=$ac_ct_CXX
2972 fi 3656 fi
2973fi 3657fi
2974 3658
2975 fi 3659 fi
2976fi 3660fi
2977# Provide some information about the compiler. 3661# Provide some information about the compiler.
2978echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3662$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2979ac_compiler=`set X $ac_compile; echo $2` 3663set X $ac_compile
3664ac_compiler=$2
3665for ac_option in --version -v -V -qversion; do
2980{ (ac_try="$ac_compiler --version >&5" 3666 { { ac_try="$ac_compiler $ac_option >&5"
2981case "(($ac_try" in 3667case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;; 3669 *) ac_try_echo=$ac_try;;
2984esac 3670esac
2985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2986 (eval "$ac_compiler --version >&5") 2>&5 3672$as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2987 ac_status=$? 3674 ac_status=$?
3675 if test -s conftest.err; then
3676 sed '10a\
3677... rest of stderr output deleted ...
3678 10q' conftest.err >conftest.er1
3679 cat conftest.er1 >&5
3680 fi
3681 rm -f conftest.er1 conftest.err
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989 (exit $ac_status); } 3683 test $ac_status = 0; }
2990{ (ac_try="$ac_compiler -v >&5" 3684done
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 3685
3011{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3686{ $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; } 3687$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3013if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3688if ${ac_cv_cxx_compiler_gnu+:} false; then :
3014 echo $ECHO_N "(cached) $ECHO_C" >&6 3689 $as_echo_n "(cached) " >&6
3015else 3690else
3016 cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h. */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext 3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h. */ 3692/* end confdefs.h. */
3022 3693
3023int 3694int
3024main () 3695main ()
3025{ 3696{
3029 3700
3030 ; 3701 ;
3031 return 0; 3702 return 0;
3032} 3703}
3033_ACEOF 3704_ACEOF
3034rm -f conftest.$ac_objext 3705if 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 3706 ac_compiler_gnu=yes
3052else 3707else
3053 echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 ac_compiler_gnu=no 3708 ac_compiler_gnu=no
3057fi 3709fi
3058
3059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3711ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3061 3712
3062fi 3713fi
3063{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3064echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3715$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3065GXX=`test $ac_compiler_gnu = yes && echo yes` 3716if test $ac_compiler_gnu = yes; then
3717 GXX=yes
3718else
3719 GXX=
3720fi
3066ac_test_CXXFLAGS=${CXXFLAGS+set} 3721ac_test_CXXFLAGS=${CXXFLAGS+set}
3067ac_save_CXXFLAGS=$CXXFLAGS 3722ac_save_CXXFLAGS=$CXXFLAGS
3068{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3069echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3724$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3070if test "${ac_cv_prog_cxx_g+set}" = set; then 3725if ${ac_cv_prog_cxx_g+:} false; then :
3071 echo $ECHO_N "(cached) $ECHO_C" >&6 3726 $as_echo_n "(cached) " >&6
3072else 3727else
3073 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3728 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3074 ac_cxx_werror_flag=yes 3729 ac_cxx_werror_flag=yes
3075 ac_cv_prog_cxx_g=no 3730 ac_cv_prog_cxx_g=no
3076 CXXFLAGS="-g" 3731 CXXFLAGS="-g"
3077 cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h. */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext 3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h. */ 3733/* end confdefs.h. */
3083 3734
3084int 3735int
3085main () 3736main ()
3086{ 3737{
3087 3738
3088 ; 3739 ;
3089 return 0; 3740 return 0;
3090} 3741}
3091_ACEOF 3742_ACEOF
3092rm -f conftest.$ac_objext 3743if 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 3744 ac_cv_prog_cxx_g=yes
3110else 3745else
3111 echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 CXXFLAGS="" 3746 CXXFLAGS=""
3115 cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h. */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext 3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h. */ 3748/* end confdefs.h. */
3121 3749
3122int 3750int
3123main () 3751main ()
3124{ 3752{
3125 3753
3126 ; 3754 ;
3127 return 0; 3755 return 0;
3128} 3756}
3129_ACEOF 3757_ACEOF
3130rm -f conftest.$ac_objext 3758if 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 3759
3760else
3152 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3761 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3153 CXXFLAGS="-g" 3762 CXXFLAGS="-g"
3154 cat >conftest.$ac_ext <<_ACEOF
3155/* confdefs.h. */
3156_ACEOF
3157cat confdefs.h >>conftest.$ac_ext 3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158cat >>conftest.$ac_ext <<_ACEOF
3159/* end confdefs.h. */ 3764/* end confdefs.h. */
3160 3765
3161int 3766int
3162main () 3767main ()
3163{ 3768{
3164 3769
3165 ; 3770 ;
3166 return 0; 3771 return 0;
3167} 3772}
3168_ACEOF 3773_ACEOF
3169rm -f conftest.$ac_objext 3774if 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 3775 ac_cv_prog_cxx_g=yes
3187else
3188 echo "$as_me: failed program was:" >&5
3189sed 's/^/| /' conftest.$ac_ext >&5
3190
3191
3192fi 3776fi
3193
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195fi 3778fi
3196
3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198fi 3780fi
3199
3200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3782 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3202fi 3783fi
3203{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3204echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3785$as_echo "$ac_cv_prog_cxx_g" >&6; }
3205if test "$ac_test_CXXFLAGS" = set; then 3786if test "$ac_test_CXXFLAGS" = set; then
3206 CXXFLAGS=$ac_save_CXXFLAGS 3787 CXXFLAGS=$ac_save_CXXFLAGS
3207elif test $ac_cv_prog_cxx_g = yes; then 3788elif test $ac_cv_prog_cxx_g = yes; then
3208 if test "$GXX" = yes; then 3789 if test "$GXX" = yes; then
3209 CXXFLAGS="-g -O2" 3790 CXXFLAGS="-g -O2"
3226ac_ext=c 3807ac_ext=c
3227ac_cpp='$CPP $CPPFLAGS' 3808ac_cpp='$CPP $CPPFLAGS'
3228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230ac_compiler_gnu=$ac_cv_c_compiler_gnu 3811ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3812{ $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; } 3813$as_echo_n "checking how to run the C preprocessor... " >&6; }
3233# On Suns, sometimes $CPP names a directory. 3814# On Suns, sometimes $CPP names a directory.
3234if test -n "$CPP" && test -d "$CPP"; then 3815if test -n "$CPP" && test -d "$CPP"; then
3235 CPP= 3816 CPP=
3236fi 3817fi
3237if test -z "$CPP"; then 3818if test -z "$CPP"; then
3238 if test "${ac_cv_prog_CPP+set}" = set; then 3819 if ${ac_cv_prog_CPP+:} false; then :
3239 echo $ECHO_N "(cached) $ECHO_C" >&6 3820 $as_echo_n "(cached) " >&6
3240else 3821else
3241 # Double quotes because CPP needs to be expanded 3822 # Double quotes because CPP needs to be expanded
3242 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3823 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3243 do 3824 do
3244 ac_preproc_ok=false 3825 ac_preproc_ok=false
3248 # with a fresh cross-compiler works. 3829 # with a fresh cross-compiler works.
3249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3250 # <limits.h> exists even on freestanding compilers. 3831 # <limits.h> exists even on freestanding compilers.
3251 # On the NeXT, cc -E runs the code through the compiler's parser, 3832 # 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. 3833 # 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 3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
3258/* end confdefs.h. */ 3835/* end confdefs.h. */
3259#ifdef __STDC__ 3836#ifdef __STDC__
3260# include <limits.h> 3837# include <limits.h>
3261#else 3838#else
3262# include <assert.h> 3839# include <assert.h>
3263#endif 3840#endif
3264 Syntax error 3841 Syntax error
3265_ACEOF 3842_ACEOF
3266if { (ac_try="$ac_cpp conftest.$ac_ext" 3843if 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 3844
3845else
3287 # Broken: fails on valid input. 3846 # Broken: fails on valid input.
3288continue 3847continue
3289fi 3848fi
3290
3291rm -f conftest.err conftest.$ac_ext 3849rm -f conftest.err conftest.i conftest.$ac_ext
3292 3850
3293 # OK, works on sane cases. Now check whether nonexistent headers 3851 # OK, works on sane cases. Now check whether nonexistent headers
3294 # can be detected and how. 3852 # can be detected and how.
3295 cat >conftest.$ac_ext <<_ACEOF
3296/* confdefs.h. */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext 3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
3300/* end confdefs.h. */ 3854/* end confdefs.h. */
3301#include <ac_nonexistent.h> 3855#include <ac_nonexistent.h>
3302_ACEOF 3856_ACEOF
3303if { (ac_try="$ac_cpp conftest.$ac_ext" 3857if 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. 3858 # Broken: success on invalid input.
3320continue 3859continue
3321else 3860else
3322 echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
3325 # Passes both tests. 3861 # Passes both tests.
3326ac_preproc_ok=: 3862ac_preproc_ok=:
3327break 3863break
3328fi 3864fi
3329
3330rm -f conftest.err conftest.$ac_ext 3865rm -f conftest.err conftest.i conftest.$ac_ext
3331 3866
3332done 3867done
3333# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3868# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334rm -f conftest.err conftest.$ac_ext 3869rm -f conftest.i conftest.err conftest.$ac_ext
3335if $ac_preproc_ok; then 3870if $ac_preproc_ok; then :
3336 break 3871 break
3337fi 3872fi
3338 3873
3339 done 3874 done
3340 ac_cv_prog_CPP=$CPP 3875 ac_cv_prog_CPP=$CPP
3342fi 3877fi
3343 CPP=$ac_cv_prog_CPP 3878 CPP=$ac_cv_prog_CPP
3344else 3879else
3345 ac_cv_prog_CPP=$CPP 3880 ac_cv_prog_CPP=$CPP
3346fi 3881fi
3347{ echo "$as_me:$LINENO: result: $CPP" >&5 3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3348echo "${ECHO_T}$CPP" >&6; } 3883$as_echo "$CPP" >&6; }
3349ac_preproc_ok=false 3884ac_preproc_ok=false
3350for ac_c_preproc_warn_flag in '' yes 3885for ac_c_preproc_warn_flag in '' yes
3351do 3886do
3352 # Use a header file that comes with gcc, so configuring glibc 3887 # Use a header file that comes with gcc, so configuring glibc
3353 # with a fresh cross-compiler works. 3888 # with a fresh cross-compiler works.
3354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355 # <limits.h> exists even on freestanding compilers. 3890 # <limits.h> exists even on freestanding compilers.
3356 # On the NeXT, cc -E runs the code through the compiler's parser, 3891 # 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. 3892 # 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 3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h. */ 3894/* end confdefs.h. */
3364#ifdef __STDC__ 3895#ifdef __STDC__
3365# include <limits.h> 3896# include <limits.h>
3366#else 3897#else
3367# include <assert.h> 3898# include <assert.h>
3368#endif 3899#endif
3369 Syntax error 3900 Syntax error
3370_ACEOF 3901_ACEOF
3371if { (ac_try="$ac_cpp conftest.$ac_ext" 3902if 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 3903
3904else
3392 # Broken: fails on valid input. 3905 # Broken: fails on valid input.
3393continue 3906continue
3394fi 3907fi
3395
3396rm -f conftest.err conftest.$ac_ext 3908rm -f conftest.err conftest.i conftest.$ac_ext
3397 3909
3398 # OK, works on sane cases. Now check whether nonexistent headers 3910 # OK, works on sane cases. Now check whether nonexistent headers
3399 # can be detected and how. 3911 # can be detected and how.
3400 cat >conftest.$ac_ext <<_ACEOF
3401/* confdefs.h. */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext 3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
3405/* end confdefs.h. */ 3913/* end confdefs.h. */
3406#include <ac_nonexistent.h> 3914#include <ac_nonexistent.h>
3407_ACEOF 3915_ACEOF
3408if { (ac_try="$ac_cpp conftest.$ac_ext" 3916if 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. 3917 # Broken: success on invalid input.
3425continue 3918continue
3426else 3919else
3427 echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 # Passes both tests. 3920 # Passes both tests.
3431ac_preproc_ok=: 3921ac_preproc_ok=:
3432break 3922break
3433fi 3923fi
3434
3435rm -f conftest.err conftest.$ac_ext 3924rm -f conftest.err conftest.i conftest.$ac_ext
3436 3925
3437done 3926done
3438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439rm -f conftest.err conftest.$ac_ext 3928rm -f conftest.i conftest.err conftest.$ac_ext
3440if $ac_preproc_ok; then 3929if $ac_preproc_ok; then :
3441 : 3930
3442else 3931else
3443 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444See \`config.log' for more details." >&5 3933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3934as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3446See \`config.log' for more details." >&2;} 3935See \`config.log' for more details" "$LINENO" 5; }
3447 { (exit 1); exit 1; }; }
3448fi 3936fi
3449 3937
3450ac_ext=c 3938ac_ext=c
3451ac_cpp='$CPP $CPPFLAGS' 3939ac_cpp='$CPP $CPPFLAGS'
3452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3952# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3465# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3953# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3466# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3954# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3467# OS/2's system install, which has a completely different semantic 3955# OS/2's system install, which has a completely different semantic
3468# ./install, which can be erroneously created by make from ./install.sh. 3956# ./install, which can be erroneously created by make from ./install.sh.
3957# Reject install programs that cannot install multiple files.
3469{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3958{ $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; } 3959$as_echo_n "checking for a BSD-compatible install... " >&6; }
3471if test -z "$INSTALL"; then 3960if test -z "$INSTALL"; then
3472if test "${ac_cv_path_install+set}" = set; then 3961if ${ac_cv_path_install+:} false; then :
3473 echo $ECHO_N "(cached) $ECHO_C" >&6 3962 $as_echo_n "(cached) " >&6
3474else 3963else
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476for as_dir in $PATH 3965for as_dir in $PATH
3477do 3966do
3478 IFS=$as_save_IFS 3967 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=. 3968 test -z "$as_dir" && as_dir=.
3480 # Account for people who put trailing slashes in PATH elements. 3969 # Account for people who put trailing slashes in PATH elements.
3481case $as_dir/ in 3970case $as_dir/ in #((
3482 ./ | .// | /cC/* | \ 3971 ./ | .// | /[cC]/* | \
3483 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3972 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3484 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3973 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3485 /usr/ucb/* ) ;; 3974 /usr/ucb/* ) ;;
3486 *) 3975 *)
3487 # OSF1 and SCO ODT 3.0 have their own names for install. 3976 # 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 3977 # Don't use installbsd from OSF since it installs stuff as root
3489 # by default. 3978 # by default.
3497 elif test $ac_prog = install && 3986 elif test $ac_prog = install &&
3498 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3987 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. 3988 # program-specific install script used by HP pwplus--don't use.
3500 : 3989 :
3501 else 3990 else
3991 rm -rf conftest.one conftest.two conftest.dir
3992 echo one > conftest.one
3993 echo two > conftest.two
3994 mkdir conftest.dir
3995 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3996 test -s conftest.one && test -s conftest.two &&
3997 test -s conftest.dir/conftest.one &&
3998 test -s conftest.dir/conftest.two
3999 then
3502 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4000 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3503 break 3 4001 break 3
4002 fi
3504 fi 4003 fi
3505 fi 4004 fi
3506 done 4005 done
3507 done 4006 done
3508 ;; 4007 ;;
3509esac 4008esac
4009
3510done 4010 done
3511IFS=$as_save_IFS 4011IFS=$as_save_IFS
3512 4012
4013rm -rf conftest.one conftest.two conftest.dir
3513 4014
3514fi 4015fi
3515 if test "${ac_cv_path_install+set}" = set; then 4016 if test "${ac_cv_path_install+set}" = set; then
3516 INSTALL=$ac_cv_path_install 4017 INSTALL=$ac_cv_path_install
3517 else 4018 else
3520 # break other packages using the cache if that directory is 4021 # break other packages using the cache if that directory is
3521 # removed, or if the value is a relative name. 4022 # removed, or if the value is a relative name.
3522 INSTALL=$ac_install_sh 4023 INSTALL=$ac_install_sh
3523 fi 4024 fi
3524fi 4025fi
3525{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3526echo "${ECHO_T}$INSTALL" >&6; } 4027$as_echo "$INSTALL" >&6; }
3527 4028
3528# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4029# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3529# It thinks the first close brace ends the variable substitution. 4030# It thinks the first close brace ends the variable substitution.
3530test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4031test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3531 4032
3534test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4035test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3535 4036
3536 4037
3537 4038
3538 4039
3539{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4040{ $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; } 4041$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3541if test "${ac_cv_path_GREP+set}" = set; then 4042if ${ac_cv_path_GREP+:} false; then :
3542 echo $ECHO_N "(cached) $ECHO_C" >&6 4043 $as_echo_n "(cached) " >&6
3543else 4044else
3544 # Extract the first word of "grep ggrep" to use in msg output
3545if test -z "$GREP"; then 4045 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 4046 ac_path_GREP_found=false
3551# Loop through the user's path and test for each of PROGNAME-LIST 4047 # Loop through the user's path and test for each of PROGNAME-LIST
3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4049for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3554do 4050do
3555 IFS=$as_save_IFS 4051 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=. 4052 test -z "$as_dir" && as_dir=.
3557 for ac_prog in grep ggrep; do 4053 for ac_prog in grep ggrep; do
3558 for ac_exec_ext in '' $ac_executable_extensions; do 4054 for ac_exec_ext in '' $ac_executable_extensions; do
3559 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4055 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3560 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4056 { 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. 4057# Check for GNU ac_path_GREP and select it if it is found.
3562 # Check for GNU $ac_path_GREP 4058 # Check for GNU $ac_path_GREP
3563case `"$ac_path_GREP" --version 2>&1` in 4059case `"$ac_path_GREP" --version 2>&1` in
3564*GNU*) 4060*GNU*)
3565 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4061 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3566*) 4062*)
3567 ac_count=0 4063 ac_count=0
3568 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4064 $as_echo_n 0123456789 >"conftest.in"
3569 while : 4065 while :
3570 do 4066 do
3571 cat "conftest.in" "conftest.in" >"conftest.tmp" 4067 cat "conftest.in" "conftest.in" >"conftest.tmp"
3572 mv "conftest.tmp" "conftest.in" 4068 mv "conftest.tmp" "conftest.in"
3573 cp "conftest.in" "conftest.nl" 4069 cp "conftest.in" "conftest.nl"
3574 echo 'GREP' >> "conftest.nl" 4070 $as_echo 'GREP' >> "conftest.nl"
3575 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4071 "$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 4072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3577 ac_count=`expr $ac_count + 1` 4073 as_fn_arith $ac_count + 1 && ac_count=$as_val
3578 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4074 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 4075 # Best one so far, save it but keep looking for a better one
3580 ac_cv_path_GREP="$ac_path_GREP" 4076 ac_cv_path_GREP="$ac_path_GREP"
3581 ac_path_GREP_max=$ac_count 4077 ac_path_GREP_max=$ac_count
3582 fi 4078 fi
3584 test $ac_count -gt 10 && break 4080 test $ac_count -gt 10 && break
3585 done 4081 done
3586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3587esac 4083esac
3588 4084
3589
3590 $ac_path_GREP_found && break 3 4085 $ac_path_GREP_found && break 3
4086 done
3591 done 4087 done
3592done 4088 done
3593
3594done
3595IFS=$as_save_IFS 4089IFS=$as_save_IFS
3596
3597
3598fi
3599
3600GREP="$ac_cv_path_GREP"
3601if test -z "$GREP"; then 4090 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 4091 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;} 4092 fi
3604 { (exit 1); exit 1; }; }
3605fi
3606
3607else 4093else
3608 ac_cv_path_GREP=$GREP 4094 ac_cv_path_GREP=$GREP
3609fi 4095fi
3610 4096
3611
3612fi 4097fi
3613{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3614echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4099$as_echo "$ac_cv_path_GREP" >&6; }
3615 GREP="$ac_cv_path_GREP" 4100 GREP="$ac_cv_path_GREP"
3616 4101
3617 4102
3618{ echo "$as_me:$LINENO: checking for egrep" >&5 4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3619echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4104$as_echo_n "checking for egrep... " >&6; }
3620if test "${ac_cv_path_EGREP+set}" = set; then 4105if ${ac_cv_path_EGREP+:} false; then :
3621 echo $ECHO_N "(cached) $ECHO_C" >&6 4106 $as_echo_n "(cached) " >&6
3622else 4107else
3623 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4108 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3624 then ac_cv_path_EGREP="$GREP -E" 4109 then ac_cv_path_EGREP="$GREP -E"
3625 else 4110 else
3626 # Extract the first word of "egrep" to use in msg output
3627if test -z "$EGREP"; then 4111 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 4112 ac_path_EGREP_found=false
3633# Loop through the user's path and test for each of PROGNAME-LIST 4113 # Loop through the user's path and test for each of PROGNAME-LIST
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4115for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3636do 4116do
3637 IFS=$as_save_IFS 4117 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=. 4118 test -z "$as_dir" && as_dir=.
3639 for ac_prog in egrep; do 4119 for ac_prog in egrep; do
3640 for ac_exec_ext in '' $ac_executable_extensions; do 4120 for ac_exec_ext in '' $ac_executable_extensions; do
3641 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4121 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3642 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4122 { 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. 4123# Check for GNU ac_path_EGREP and select it if it is found.
3644 # Check for GNU $ac_path_EGREP 4124 # Check for GNU $ac_path_EGREP
3645case `"$ac_path_EGREP" --version 2>&1` in 4125case `"$ac_path_EGREP" --version 2>&1` in
3646*GNU*) 4126*GNU*)
3647 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4127 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3648*) 4128*)
3649 ac_count=0 4129 ac_count=0
3650 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4130 $as_echo_n 0123456789 >"conftest.in"
3651 while : 4131 while :
3652 do 4132 do
3653 cat "conftest.in" "conftest.in" >"conftest.tmp" 4133 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in" 4134 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl" 4135 cp "conftest.in" "conftest.nl"
3656 echo 'EGREP' >> "conftest.nl" 4136 $as_echo 'EGREP' >> "conftest.nl"
3657 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4137 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659 ac_count=`expr $ac_count + 1` 4139 as_fn_arith $ac_count + 1 && ac_count=$as_val
3660 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4140 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 4141 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_EGREP="$ac_path_EGREP" 4142 ac_cv_path_EGREP="$ac_path_EGREP"
3663 ac_path_EGREP_max=$ac_count 4143 ac_path_EGREP_max=$ac_count
3664 fi 4144 fi
3666 test $ac_count -gt 10 && break 4146 test $ac_count -gt 10 && break
3667 done 4147 done
3668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3669esac 4149esac
3670 4150
3671
3672 $ac_path_EGREP_found && break 3 4151 $ac_path_EGREP_found && break 3
4152 done
3673 done 4153 done
4154 done
4155IFS=$as_save_IFS
4156 if test -z "$ac_cv_path_EGREP"; then
4157 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4158 fi
4159else
4160 ac_cv_path_EGREP=$EGREP
4161fi
4162
4163 fi
4164fi
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4166$as_echo "$ac_cv_path_EGREP" >&6; }
4167 EGREP="$ac_cv_path_EGREP"
4168
4169
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4171$as_echo_n "checking for ANSI C header files... " >&6; }
4172if ${ac_cv_header_stdc+:} false; then :
4173 $as_echo_n "(cached) " >&6
4174else
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176/* end confdefs.h. */
4177#include <stdlib.h>
4178#include <stdarg.h>
4179#include <string.h>
4180#include <float.h>
4181
4182int
4183main ()
4184{
4185
4186 ;
4187 return 0;
4188}
4189_ACEOF
4190if ac_fn_c_try_compile "$LINENO"; then :
4191 ac_cv_header_stdc=yes
4192else
4193 ac_cv_header_stdc=no
4194fi
4195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196
4197if test $ac_cv_header_stdc = yes; then
4198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200/* end confdefs.h. */
4201#include <string.h>
4202
4203_ACEOF
4204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4205 $EGREP "memchr" >/dev/null 2>&1; then :
4206
4207else
4208 ac_cv_header_stdc=no
4209fi
4210rm -f conftest*
4211
4212fi
4213
4214if test $ac_cv_header_stdc = yes; then
4215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217/* end confdefs.h. */
4218#include <stdlib.h>
4219
4220_ACEOF
4221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4222 $EGREP "free" >/dev/null 2>&1; then :
4223
4224else
4225 ac_cv_header_stdc=no
4226fi
4227rm -f conftest*
4228
4229fi
4230
4231if test $ac_cv_header_stdc = yes; then
4232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4233 if test "$cross_compiling" = yes; then :
4234 :
4235else
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237/* end confdefs.h. */
4238#include <ctype.h>
4239#include <stdlib.h>
4240#if ((' ' & 0x0FF) == 0x020)
4241# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4242# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4243#else
4244# define ISLOWER(c) \
4245 (('a' <= (c) && (c) <= 'i') \
4246 || ('j' <= (c) && (c) <= 'r') \
4247 || ('s' <= (c) && (c) <= 'z'))
4248# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4249#endif
4250
4251#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4252int
4253main ()
4254{
4255 int i;
4256 for (i = 0; i < 256; i++)
4257 if (XOR (islower (i), ISLOWER (i))
4258 || toupper (i) != TOUPPER (i))
4259 return 2;
4260 return 0;
4261}
4262_ACEOF
4263if ac_fn_c_try_run "$LINENO"; then :
4264
4265else
4266 ac_cv_header_stdc=no
4267fi
4268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4269 conftest.$ac_objext conftest.beam conftest.$ac_ext
4270fi
4271
4272fi
4273fi
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4275$as_echo "$ac_cv_header_stdc" >&6; }
4276if test $ac_cv_header_stdc = yes; then
4277
4278$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4279
4280fi
4281
4282# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4283for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4284 inttypes.h stdint.h unistd.h
4285do :
4286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4287ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4288"
4289if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4290 cat >>confdefs.h <<_ACEOF
4291#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4292_ACEOF
4293
4294fi
4295
3674done 4296done
3675 4297
3676done
3677IFS=$as_save_IFS
3678 4298
3679 4299
3680fi 4300 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3681 4301if test "x$ac_cv_header_minix_config_h" = xyes; then :
3682EGREP="$ac_cv_path_EGREP" 4302 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 4303else
3690 ac_cv_path_EGREP=$EGREP 4304 MINIX=
3691fi 4305fi
3692 4306
3693 4307
4308 if test "$MINIX" = yes; then
4309
4310$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4311
4312
4313$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4314
4315
4316$as_echo "#define _MINIX 1" >>confdefs.h
4317
3694 fi 4318 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 4319
3700 4320
3701 4321 { $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 4322$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3703echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } 4323if ${ac_cv_safe_to_define___extensions__+:} false; then :
3704cat >conftest.$ac_ext <<_ACEOF 4324 $as_echo_n "(cached) " >&6
3705/* confdefs.h. */ 4325else
3706_ACEOF
3707cat confdefs.h >>conftest.$ac_ext 4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708cat >>conftest.$ac_ext <<_ACEOF
3709/* end confdefs.h. */ 4327/* end confdefs.h. */
3710#ifdef _AIX
3711 yes
3712#endif
3713 4328
3714_ACEOF 4329# define __EXTENSIONS__ 1
3715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4330 $ac_includes_default
3716 $EGREP "yes" >/dev/null 2>&1; then 4331int
3717 { echo "$as_me:$LINENO: result: yes" >&5 4332main ()
3718echo "${ECHO_T}yes" >&6; } 4333{
3719cat >>confdefs.h <<\_ACEOF
3720#define _ALL_SOURCE 1
3721_ACEOF
3722 4334
4335 ;
4336 return 0;
4337}
4338_ACEOF
4339if ac_fn_c_try_compile "$LINENO"; then :
4340 ac_cv_safe_to_define___extensions__=yes
3723else 4341else
3724 { echo "$as_me:$LINENO: result: no" >&5 4342 ac_cv_safe_to_define___extensions__=no
3725echo "${ECHO_T}no" >&6; }
3726fi 4343fi
3727rm -f conftest* 4344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345fi
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4347$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4348 test $ac_cv_safe_to_define___extensions__ = yes &&
4349 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3728 4350
4351 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3729 4352
4353 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4354
4355 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4356
4357 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4358
4359
4360
4361
3730{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3731echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 4363$as_echo_n "checking for library containing strerror... " >&6; }
3732if test "${ac_cv_search_strerror+set}" = set; then 4364if ${ac_cv_search_strerror+:} false; then :
3733 echo $ECHO_N "(cached) $ECHO_C" >&6 4365 $as_echo_n "(cached) " >&6
3734else 4366else
3735 ac_func_search_save_LIBS=$LIBS 4367 ac_func_search_save_LIBS=$LIBS
3736cat >conftest.$ac_ext <<_ACEOF
3737/* confdefs.h. */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext 4368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
3741/* end confdefs.h. */ 4369/* end confdefs.h. */
3742 4370
3743/* Override any GCC internal prototype to avoid an error. 4371/* Override any GCC internal prototype to avoid an error.
3744 Use char because int might match the return type of a GCC 4372 Use char because int might match the return type of a GCC
3745 builtin and then its argument prototype would still apply. */ 4373 builtin and then its argument prototype would still apply. */
3760 ac_res="none required" 4388 ac_res="none required"
3761 else 4389 else
3762 ac_res=-l$ac_lib 4390 ac_res=-l$ac_lib
3763 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4391 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3764 fi 4392 fi
3765 rm -f conftest.$ac_objext conftest$ac_exeext 4393 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 4394 ac_cv_search_strerror=$ac_res
3784else
3785 echo "$as_me: failed program was:" >&5
3786sed 's/^/| /' conftest.$ac_ext >&5
3787
3788
3789fi 4395fi
3790
3791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4396rm -f core conftest.err conftest.$ac_objext \
3792 conftest$ac_exeext 4397 conftest$ac_exeext
3793 if test "${ac_cv_search_strerror+set}" = set; then 4398 if ${ac_cv_search_strerror+:} false; then :
3794 break 4399 break
3795fi 4400fi
3796done 4401done
3797if test "${ac_cv_search_strerror+set}" = set; then 4402if ${ac_cv_search_strerror+:} false; then :
3798 : 4403
3799else 4404else
3800 ac_cv_search_strerror=no 4405 ac_cv_search_strerror=no
3801fi 4406fi
3802rm conftest.$ac_ext 4407rm conftest.$ac_ext
3803LIBS=$ac_func_search_save_LIBS 4408LIBS=$ac_func_search_save_LIBS
3804fi 4409fi
3805{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 4410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3806echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 4411$as_echo "$ac_cv_search_strerror" >&6; }
3807ac_res=$ac_cv_search_strerror 4412ac_res=$ac_cv_search_strerror
3808if test "$ac_res" != no; then 4413if test "$ac_res" != no; then :
3809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3810 4415
3811fi 4416fi
3812 4417
3813ac_ext=cpp 4418ac_ext=cpp
3816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3818 4423
3819 4424
3820if test x$GCC = xyes && test x$GXX = xyes; then 4425if test x$GCC = xyes && test x$GXX = xyes; then
3821 { echo "$as_me:$LINENO: checking for working libsupc++" >&5 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
3822echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6; } 4427$as_echo_n "checking for working libsupc++... " >&6; }
3823 save_CXX="$CXX" 4428 save_CXX="$CXX"
3824 save_LIBS="$LIBS" 4429 save_LIBS="$LIBS"
3825 CXX="$CC" 4430 CXX="$CC"
3826 LIBS="$LIBS -lsupc++" 4431 LIBS="$LIBS -lsupc++"
3827 LINKER="$CC" 4432 LINKER="$CC"
3828 4433
3829cat >conftest.$ac_ext <<_ACEOF
3830/* confdefs.h. */
3831_ACEOF
3832cat confdefs.h >>conftest.$ac_ext 4434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833cat >>conftest.$ac_ext <<_ACEOF
3834/* end confdefs.h. */ 4435/* end confdefs.h. */
3835struct test { }; void f() try { throw new test; } catch (...) { throw; } 4436struct test { }; void f() try { throw new test; } catch (...) { throw; }
3836int 4437int
3837main () 4438main ()
3838{ 4439{
3839 4440
3840 ; 4441 ;
3841 return 0; 4442 return 0;
3842} 4443}
3843_ACEOF 4444_ACEOF
3844rm -f conftest.$ac_objext conftest$ac_exeext 4445if 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 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
3863echo "${ECHO_T}ok" >&6; } 4447$as_echo "ok" >&6; }
3864else 4448else
3865 echo "$as_me: failed program was:" >&5
3866sed 's/^/| /' conftest.$ac_ext >&5
3867 4449
3868
3869 { echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5 4450 { $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; } 4451$as_echo "no, making everything bigger and slower" >&6; }
3871 LIBS="$save_LIBS" 4452 LIBS="$save_LIBS"
3872 LINKER="$save_CXX" 4453 LINKER="$save_CXX"
3873 4454
3874 4455
3875fi 4456fi
3876
3877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4457rm -f core conftest.err conftest.$ac_objext \
3878 conftest$ac_exeext conftest.$ac_ext 4458 conftest$ac_exeext conftest.$ac_ext
3879 CXX="$save_CXX" 4459 CXX="$save_CXX"
3880fi 4460fi
3881LINKER=$LINKER 4461LINKER=$LINKER
3882 4462
3883 4463
3884if test -z "$orig_CXXFLAGS"; then 4464if test -z "$orig_CXXFLAGS"; then
3885 if test x$GCC = xyes && test "x$GXX" = xyes; then 4465 if test x$GCC = xyes && test "x$GXX" = xyes; then
3886 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 4466 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 4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */ 4468/* end confdefs.h. */
3893 4469
3894int 4470int
3895main () 4471main ()
3896{ 4472{
3897 4473
3898 ; 4474 ;
3899 return 0; 4475 return 0;
3900} 4476}
3901_ACEOF 4477_ACEOF
3902rm -f conftest.$ac_objext 4478if 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 4479
4480else
3924 CXXFLAGS="-g -O3" 4481 CXXFLAGS="-g -O3"
3925fi 4482fi
3926
3927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 else 4484 else
3929 CXXFLAGS="-O" 4485 CXXFLAGS="-O"
3930 fi 4486 fi
3931 CFLAGS="$CXXFLAGS" 4487 CFLAGS="$CXXFLAGS"
3932fi 4488fi
3933 4489
3934
3935cat >>confdefs.h <<\_ACEOF
3936#define _GNU_SOURCE 1
3937_ACEOF
3938
3939
3940case $host in 4490case $host in
3941 *-*-solaris* ) 4491 *-*-solaris* )
3942 4492
3943cat >>confdefs.h <<\_ACEOF 4493$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 4494
3957 ;; 4495 ;;
3958esac 4496esac
3959 4497
3960 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
3961{ echo "$as_me:$LINENO: checking for setlocale" >&5 4499$as_echo_n "checking for library containing setlocale... " >&6; }
3962echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 4500if ${ac_cv_search_setlocale+:} false; then :
3963if test "${ac_cv_func_setlocale+set}" = set; then 4501 $as_echo_n "(cached) " >&6
3964 echo $ECHO_N "(cached) $ECHO_C" >&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 4502else
3984# include <assert.h> 4503 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 4504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056cat >>conftest.$ac_ext <<_ACEOF
4057/* end confdefs.h. */ 4505/* end confdefs.h. */
4058 4506
4059/* Override any GCC internal prototype to avoid an error. 4507/* Override any GCC internal prototype to avoid an error.
4060 Use char because int might match the return type of a GCC 4508 Use char because int might match the return type of a GCC
4061 builtin and then its argument prototype would still apply. */ 4509 builtin and then its argument prototype would still apply. */
4069return setlocale (); 4517return setlocale ();
4070 ; 4518 ;
4071 return 0; 4519 return 0;
4072} 4520}
4073_ACEOF 4521_ACEOF
4074rm -f conftest.$ac_objext conftest$ac_exeext 4522for ac_lib in '' xpg4; do
4075if { (ac_try="$ac_link" 4523 if test -z "$ac_lib"; then
4076case "(($ac_try" in 4524 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 4525 else
4094 echo "$as_me: failed program was:" >&5 4526 ac_res=-l$ac_lib
4095sed 's/^/| /' conftest.$ac_ext >&5 4527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4096 4528 fi
4097 ac_cv_lib_xpg4_setlocale=no 4529 if ac_fn_cxx_try_link "$LINENO"; then :
4530 ac_cv_search_setlocale=$ac_res
4098fi 4531fi
4099
4100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4532rm -f core conftest.err conftest.$ac_objext \
4101 conftest$ac_exeext conftest.$ac_ext 4533 conftest$ac_exeext
4102LIBS=$ac_check_lib_save_LIBS 4534 if ${ac_cv_search_setlocale+:} false; then :
4535 break
4103fi 4536fi
4104{ echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 4537done
4105echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; } 4538if ${ac_cv_search_setlocale+:} false; then :
4106if test $ac_cv_lib_xpg4_setlocale = yes; then
4107 LIBS="$LIBS -lxpg4"
4108fi
4109 4539
4110fi
4111
4112
4113{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
4114echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4115if test "${ac_cv_func_gethostbyname+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&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 4540else
4136# include <assert.h> 4541 ac_cv_search_setlocale=no
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 4542fi
4188 4543rm conftest.$ac_ext
4189rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4544LIBS=$ac_func_search_save_LIBS
4190 conftest$ac_exeext conftest.$ac_ext
4191fi 4545fi
4192{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5
4193echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 4547$as_echo "$ac_cv_search_setlocale" >&6; }
4194if test $ac_cv_func_gethostbyname = yes; then 4548ac_res=$ac_cv_search_setlocale
4195 : 4549if test "$ac_res" != no; then :
4550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4551
4552fi
4553
4554
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4556$as_echo_n "checking for library containing gethostbyname... " >&6; }
4557if ${ac_cv_search_gethostbyname+:} false; then :
4558 $as_echo_n "(cached) " >&6
4196else 4559else
4197 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 4560 ac_func_search_save_LIBS=$LIBS
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 4561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h. */ 4562/* end confdefs.h. */
4210 4563
4211/* Override any GCC internal prototype to avoid an error. 4564/* Override any GCC internal prototype to avoid an error.
4212 Use char because int might match the return type of a GCC 4565 Use char because int might match the return type of a GCC
4213 builtin and then its argument prototype would still apply. */ 4566 builtin and then its argument prototype would still apply. */
4221return gethostbyname (); 4574return gethostbyname ();
4222 ; 4575 ;
4223 return 0; 4576 return 0;
4224} 4577}
4225_ACEOF 4578_ACEOF
4226rm -f conftest.$ac_objext conftest$ac_exeext 4579for ac_lib in '' nsl; do
4227if { (ac_try="$ac_link" 4580 if test -z "$ac_lib"; then
4228case "(($ac_try" in 4581 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 4582 else
4246 echo "$as_me: failed program was:" >&5 4583 ac_res=-l$ac_lib
4247sed 's/^/| /' conftest.$ac_ext >&5 4584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4248 4585 fi
4249 ac_cv_lib_nsl_gethostbyname=no 4586 if ac_fn_cxx_try_link "$LINENO"; then :
4587 ac_cv_search_gethostbyname=$ac_res
4250fi 4588fi
4251
4252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4589rm -f core conftest.err conftest.$ac_objext \
4253 conftest$ac_exeext conftest.$ac_ext 4590 conftest$ac_exeext
4254LIBS=$ac_check_lib_save_LIBS 4591 if ${ac_cv_search_gethostbyname+:} false; then :
4592 break
4255fi 4593fi
4256{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 4594done
4257echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 4595if ${ac_cv_search_gethostbyname+:} false; then :
4258if test $ac_cv_lib_nsl_gethostbyname = yes; then
4259 LIBS="$LIBS -lnsl"
4260fi
4261 4596
4262fi
4263
4264{ echo "$as_me:$LINENO: checking for socket" >&5
4265echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
4266if test "${ac_cv_func_socket+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&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 4597else
4287# include <assert.h> 4598 ac_cv_search_gethostbyname=no
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 4599fi
4339 4600rm conftest.$ac_ext
4340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4601LIBS=$ac_func_search_save_LIBS
4341 conftest$ac_exeext conftest.$ac_ext
4342fi 4602fi
4343{ echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 4603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4344echo "${ECHO_T}$ac_cv_func_socket" >&6; } 4604$as_echo "$ac_cv_search_gethostbyname" >&6; }
4345if test $ac_cv_func_socket = yes; then 4605ac_res=$ac_cv_search_gethostbyname
4346 : 4606if test "$ac_res" != no; then :
4607 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4608
4609fi
4610
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4612$as_echo_n "checking for library containing socket... " >&6; }
4613if ${ac_cv_search_socket+:} false; then :
4614 $as_echo_n "(cached) " >&6
4347else 4615else
4348 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 4616 ac_func_search_save_LIBS=$LIBS
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 4617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
4360/* end confdefs.h. */ 4618/* end confdefs.h. */
4361 4619
4362/* Override any GCC internal prototype to avoid an error. 4620/* Override any GCC internal prototype to avoid an error.
4363 Use char because int might match the return type of a GCC 4621 Use char because int might match the return type of a GCC
4364 builtin and then its argument prototype would still apply. */ 4622 builtin and then its argument prototype would still apply. */
4372return socket (); 4630return socket ();
4373 ; 4631 ;
4374 return 0; 4632 return 0;
4375} 4633}
4376_ACEOF 4634_ACEOF
4377rm -f conftest.$ac_objext conftest$ac_exeext 4635for ac_lib in '' socket; do
4378if { (ac_try="$ac_link" 4636 if test -z "$ac_lib"; then
4379case "(($ac_try" in 4637 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 4638 else
4397 echo "$as_me: failed program was:" >&5 4639 ac_res=-l$ac_lib
4398sed 's/^/| /' conftest.$ac_ext >&5 4640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4399 4641 fi
4400 ac_cv_lib_socket_socket=no 4642 if ac_fn_cxx_try_link "$LINENO"; then :
4643 ac_cv_search_socket=$ac_res
4401fi 4644fi
4402
4403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4645rm -f core conftest.err conftest.$ac_objext \
4404 conftest$ac_exeext conftest.$ac_ext 4646 conftest$ac_exeext
4405LIBS=$ac_check_lib_save_LIBS 4647 if ${ac_cv_search_socket+:} false; then :
4648 break
4406fi 4649fi
4650done
4651if ${ac_cv_search_socket+:} false; then :
4652
4653else
4654 ac_cv_search_socket=no
4655fi
4656rm conftest.$ac_ext
4657LIBS=$ac_func_search_save_LIBS
4658fi
4407{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4408echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 4660$as_echo "$ac_cv_search_socket" >&6; }
4409if test $ac_cv_lib_socket_socket = yes; then 4661ac_res=$ac_cv_search_socket
4410 LIBS="$LIBS -lsocket" 4662if test "$ac_res" != no; then :
4411fi 4663 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4412 4664
4413fi 4665fi
4414
4415 4666
4416 4667
4417support_frills=yes 4668support_frills=yes
4418support_inheritpixmap=yes 4669support_inheritpixmap=yes
4419support_tinting=yes
4420support_fading=yes 4670support_fading=yes
4421support_keepscrolling=yes 4671support_keepscrolling=yes
4422support_selectionscrolling=yes 4672support_selectionscrolling=yes
4423support_mousewheel=yes 4673support_mousewheel=yes
4424support_mouseslipwheel=yes 4674support_mouseslipwheel=yes
4425support_text_blink=yes 4675support_text_blink=yes
4426support_pointer_blank=yes 4676support_pointer_blank=yes
4427support_scroll_rxvt=yes 4677support_scroll_rxvt=yes
4428support_scroll_next=yes 4678support_scroll_next=yes
4429support_scroll_xterm=yes 4679support_scroll_xterm=yes
4430support_scroll_plain=yes
4431support_xim=yes 4680support_xim=yes
4432support_xpm=yes 4681support_pixbuf=yes
4682support_startup_notification=yes
4683support_afterimage=yes
4433support_xft=yes 4684support_xft=yes
4434support_unicode3=no 4685support_unicode3=no
4435support_combining=yes 4686support_combining=yes
4436support_8bitctrls=no 4687support_8bitctrls=no
4437support_iso14755=yes 4688support_iso14755=yes
4438support_styles=yes 4689support_styles=yes
4439support_perl=yes 4690support_perl=yes
4440codesets=all 4691codesets=all
4441 4692
4442 4693
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. 4694# Check whether --enable-everything was given.
4454if test "${enable_everything+set}" = set; then 4695if test "${enable_everything+set}" = set; then :
4455 enableval=$enable_everything; 4696 enableval=$enable_everything;
4456 if test x$enableval = xno; then 4697 if test x$enableval = xno; then
4457 support_frills=no 4698 support_frills=no
4458 support_inheritpixmap=no 4699 support_inheritpixmap=no
4459 support_tinting=no
4460 support_fading=no 4700 support_fading=no
4461 support_keepscrolling=no 4701 support_keepscrolling=no
4462 support_selectionscrolling=no 4702 support_selectionscrolling=no
4463 support_lastlog=no 4703 support_lastlog=no
4464 support_mousewheel=no 4704 support_mousewheel=no
4466 support_text_blink=no 4706 support_text_blink=no
4467 support_pointer_blank=no 4707 support_pointer_blank=no
4468 support_scroll_rxvt=no 4708 support_scroll_rxvt=no
4469 support_scroll_next=no 4709 support_scroll_next=no
4470 support_scroll_xterm=no 4710 support_scroll_xterm=no
4471 support_scroll_plain=no
4472 support_utmp=no 4711 support_utmp=no
4473 support_wtmp=no 4712 support_wtmp=no
4474 support_xim=no 4713 support_xim=no
4475 support_xpm=no 4714 support_pixbuf=no
4715 support_startup_notification=no
4716 support_afterimage=no
4476 support_xft=no 4717 support_xft=no
4477 support_unicode3=no 4718 support_unicode3=no
4478 support_combining=no 4719 support_combining=no
4479 support_8bitctrls=no 4720 support_8bitctrls=no
4480 support_iso14755=no 4721 support_iso14755=no
4483 codesets= 4724 codesets=
4484 fi 4725 fi
4485 if test x$enableval = xyes; then 4726 if test x$enableval = xyes; then
4486 support_frills=yes 4727 support_frills=yes
4487 support_inheritpixmap=yes 4728 support_inheritpixmap=yes
4488 support_tinting=yes
4489 support_fading=yes 4729 support_fading=yes
4490 support_keepscrolling=yes 4730 support_keepscrolling=yes
4491 support_selectionscrolling=yes 4731 support_selectionscrolling=yes
4492 support_lastlog=yes 4732 support_lastlog=yes
4493 support_mousewheel=yes 4733 support_mousewheel=yes
4495 support_text_blink=yes 4735 support_text_blink=yes
4496 support_pointer_blank=yes 4736 support_pointer_blank=yes
4497 support_scroll_rxvt=yes 4737 support_scroll_rxvt=yes
4498 support_scroll_next=yes 4738 support_scroll_next=yes
4499 support_scroll_xterm=yes 4739 support_scroll_xterm=yes
4500 support_scroll_plain=yes
4501 support_utmp=yes 4740 support_utmp=yes
4502 support_wtmp=yes 4741 support_wtmp=yes
4503 support_xim=yes 4742 support_xim=yes
4504 support_xpm=yes 4743 support_pixbuf=yes
4744 support_startup_notification=yes
4745 support_afterimage=yes
4505 support_xft=yes 4746 support_xft=yes
4506 support_unicode3=yes 4747 support_unicode3=yes
4507 support_combining=yes 4748 support_combining=yes
4508 #support_8bitctrls=yes 4749 #support_8bitctrls=yes
4509 support_iso14755=yes 4750 support_iso14755=yes
4513 fi 4754 fi
4514 4755
4515fi 4756fi
4516 4757
4517 4758
4759ASSERTIONS=no
4760# Check whether --enable-assert was given.
4761if test "${enable_assert+set}" = set; then :
4762 enableval=$enable_assert; if test x$enableval = xyes; then
4763 ASSERTIONS=yes
4764 fi
4765fi
4766
4767if test x$ASSERTIONS = xno; then
4768
4769$as_echo "#define NDEBUG 1" >>confdefs.h
4770
4771fi
4772
4773WARNINGS=no
4774# Check whether --enable-warnings was given.
4775if test "${enable_warnings+set}" = set; then :
4776 enableval=$enable_warnings; if test x$enableval = xyes; then
4777 WARNINGS=yes
4778 fi
4779fi
4780
4781if test x$GXX = xyes; then
4782 if test $WARNINGS = yes; then
4783 save_CXXFLAGS="$CXXFLAGS"
4784 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786/* end confdefs.h. */
4787
4788int
4789main ()
4790{
4791
4792 ;
4793 return 0;
4794}
4795_ACEOF
4796if ac_fn_cxx_try_compile "$LINENO"; then :
4797
4798else
4799 CXXFLAGS="$save_CXXFLAGS"
4800fi
4801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 else
4803 CXXFLAGS="$CXXFLAGS -w"
4804 fi
4805fi
4806
4807support_256_color=no
4808# Check whether --enable-256-color was given.
4809if test "${enable_256_color+set}" = set; then :
4810 enableval=$enable_256_color; if test x$enableval = xyes; then
4811 support_256_color=yes
4812 fi
4813fi
4814
4815if test x$support_256_color = xyes; then
4816
4817$as_echo "#define USE_256_COLORS 1" >>confdefs.h
4818
4819fi
4820
4518# Check whether --enable-unicode3 was given. 4821# Check whether --enable-unicode3 was given.
4519if test "${enable_unicode3+set}" = set; then 4822if test "${enable_unicode3+set}" = set; then :
4520 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4823 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4521 support_unicode3=$enableval 4824 support_unicode3=$enableval
4522 fi 4825 fi
4523fi 4826fi
4524 4827
4525 4828
4526# Check whether --enable-combining was given. 4829# Check whether --enable-combining was given.
4527if test "${enable_combining+set}" = set; then 4830if test "${enable_combining+set}" = set; then :
4528 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then 4831 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then
4529 support_combining=$enableval 4832 support_combining=$enableval
4530 fi 4833 fi
4531fi 4834fi
4532 4835
4533 4836
4534# Check whether --enable-xft was given. 4837# Check whether --enable-xft was given.
4535if test "${enable_xft+set}" = set; then 4838if test "${enable_xft+set}" = set; then :
4536 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then 4839 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then
4537 support_xft=$enableval 4840 support_xft=$enableval
4538 fi 4841 fi
4539fi 4842fi
4540 4843
4541 4844
4542# Check whether --enable-font-styles was given. 4845# Check whether --enable-font-styles was given.
4543if test "${enable_font_styles+set}" = set; then 4846if test "${enable_font_styles+set}" = set; then :
4544 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then 4847 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
4545 support_styles=$enableval 4848 support_styles=$enableval
4546 fi 4849 fi
4547fi 4850fi
4548 4851
4549 4852
4853# Check whether --enable-afterimage was given.
4854if test "${enable_afterimage+set}" = set; then :
4855 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4856 support_afterimage=$enableval
4857 fi
4858fi
4859
4860
4861
4862# Check whether --with-afterimage_config was given.
4863if test "${with_afterimage_config+set}" = set; then :
4864 withval=$with_afterimage_config; if test "x$withval" != x; then
4865 afterimage_config=$withval/afterimage-config
4866 fi
4867fi
4868
4869
4550# Check whether --enable-xpm-background was given. 4870# Check whether --enable-pixbuf was given.
4551if test "${enable_xpm_background+set}" = set; then 4871if test "${enable_pixbuf+set}" = set; then :
4552 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then 4872 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then
4553 support_xpm=$enableval 4873 support_pixbuf=$enableval
4874 fi
4875fi
4876
4877
4878# Check whether --enable-startup-notification was given.
4879if test "${enable_startup_notification+set}" = set; then :
4880 enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then
4881 support_startup_notification=$enableval
4554 fi 4882 fi
4555fi 4883fi
4556 4884
4557 4885
4558# Check whether --enable-transparency was given. 4886# Check whether --enable-transparency was given.
4559if test "${enable_transparency+set}" = set; then 4887if test "${enable_transparency+set}" = set; then :
4560 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then 4888 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4561 support_inheritpixmap=$enableval 4889 support_inheritpixmap=$enableval
4562 fi 4890 fi
4563fi 4891fi
4564 4892
4565 4893
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. 4894# Check whether --enable-fading was given.
4575if test "${enable_fading+set}" = set; then 4895if test "${enable_fading+set}" = set; then :
4576 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then 4896 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4577 support_fading=$enableval 4897 support_fading=$enableval
4578 fi 4898 fi
4579fi 4899fi
4580 4900
4581 4901
4582# Check whether --enable-rxvt-scroll was given. 4902# Check whether --enable-rxvt-scroll was given.
4583if test "${enable_rxvt_scroll+set}" = set; then 4903if test "${enable_rxvt_scroll+set}" = set; then :
4584 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4904 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4585 support_scroll_rxvt=$enableval 4905 support_scroll_rxvt=$enableval
4586 fi 4906 fi
4587fi 4907fi
4588 4908
4589 4909
4590# Check whether --enable-next-scroll was given. 4910# Check whether --enable-next-scroll was given.
4591if test "${enable_next_scroll+set}" = set; then 4911if test "${enable_next_scroll+set}" = set; then :
4592 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4912 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4593 support_scroll_next=$enableval 4913 support_scroll_next=$enableval
4594 fi 4914 fi
4595fi 4915fi
4596 4916
4597 4917
4598# Check whether --enable-xterm-scroll was given. 4918# Check whether --enable-xterm-scroll was given.
4599if test "${enable_xterm_scroll+set}" = set; then 4919if test "${enable_xterm_scroll+set}" = set; then :
4600 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4920 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4601 support_scroll_xterm=$enableval 4921 support_scroll_xterm=$enableval
4602 fi 4922 fi
4603fi 4923fi
4604 4924
4605 4925
4606# Check whether --enable-perl was given. 4926# Check whether --enable-perl was given.
4607if test "${enable_perl+set}" = set; then 4927if test "${enable_perl+set}" = set; then :
4608 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then 4928 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4609 support_perl=$enableval 4929 support_perl=$enableval
4610 fi 4930 fi
4611fi 4931fi
4612 4932
4613 4933
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 4934
4623# Check whether --with-codesets was given. 4935# Check whether --with-codesets was given.
4624if test "${with_codesets+set}" = set; then 4936if test "${with_codesets+set}" = set; then :
4625 withval=$with_codesets; codesets="$withval" 4937 withval=$with_codesets; codesets="$withval"
4626fi 4938fi
4627 4939
4628 4940
4629# Check whether --enable-xim was given. 4941# Check whether --enable-xim was given.
4630if test "${enable_xim+set}" = set; then 4942if test "${enable_xim+set}" = set; then :
4631 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then 4943 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
4632 support_xim=$enableval 4944 support_xim=$enableval
4633 fi 4945 fi
4634fi 4946fi
4635 4947
4636 4948
4637# Check whether --enable-backspace-key was given. 4949# Check whether --enable-backspace-key was given.
4638if test "${enable_backspace_key+set}" = set; then 4950if test "${enable_backspace_key+set}" = set; then :
4639 enableval=$enable_backspace_key; if test x$enableval = xno; then 4951 enableval=$enable_backspace_key; if test x$enableval = xno; then
4640 4952
4641cat >>confdefs.h <<\_ACEOF 4953$as_echo "#define NO_BACKSPACE_KEY 1" >>confdefs.h
4642#define NO_BACKSPACE_KEY 1
4643_ACEOF
4644 4954
4645 fi 4955 fi
4646fi 4956fi
4647 4957
4648 4958
4649# Check whether --enable-delete-key was given. 4959# Check whether --enable-delete-key was given.
4650if test "${enable_delete_key+set}" = set; then 4960if test "${enable_delete_key+set}" = set; then :
4651 enableval=$enable_delete_key; if test x$enableval = xno; then 4961 enableval=$enable_delete_key; if test x$enableval = xno; then
4652 4962
4653cat >>confdefs.h <<\_ACEOF 4963$as_echo "#define NO_DELETE_KEY 1" >>confdefs.h
4654#define NO_DELETE_KEY 1
4655_ACEOF
4656 4964
4657 fi 4965 fi
4658fi 4966fi
4659 4967
4660 4968
4661# Check whether --enable-resources was given. 4969# Check whether --enable-resources was given.
4662if test "${enable_resources+set}" = set; then 4970if test "${enable_resources+set}" = set; then :
4663 enableval=$enable_resources; if test x$enableval = xno; then 4971 enableval=$enable_resources; if test x$enableval = xno; then
4664 4972
4665cat >>confdefs.h <<\_ACEOF 4973$as_echo "#define NO_RESOURCES 1" >>confdefs.h
4666#define NO_RESOURCES 1
4667_ACEOF
4668 4974
4669 fi 4975 fi
4670fi 4976fi
4671 4977
4672 4978
4673# Check whether --enable-8bitctrls was given. 4979# Check whether --enable-8bitctrls was given.
4674if test "${enable_8bitctrls+set}" = set; then 4980if test "${enable_8bitctrls+set}" = set; then :
4675 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then 4981 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
4676 support_8bitctrls=$enableval 4982 support_8bitctrls=$enableval
4677 fi 4983 fi
4678fi 4984fi
4679 4985
4680 4986
4681RESFALLBACK=Rxvt 4987RESFALLBACK=Rxvt
4682# Check whether --enable-fallback was given. 4988# Check whether --enable-fallback was given.
4683if test "${enable_fallback+set}" = set; then 4989if test "${enable_fallback+set}" = set; then :
4684 enableval=$enable_fallback; 4990 enableval=$enable_fallback;
4685 test x$enableval = xyes && enableval=Rxvt 4991 test x$enableval = xyes && enableval=Rxvt
4686 test x$enableval = xno && enableval= 4992 test x$enableval = xno && enableval=
4687 RESFALLBACK="$enableval" 4993 RESFALLBACK="$enableval"
4688 4994
4698fi 5004fi
4699 5005
4700RESNAME=urxvt 5006RESNAME=urxvt
4701 5007
4702# Check whether --with-res-name was given. 5008# Check whether --with-res-name was given.
4703if test "${with_res_name+set}" = set; then 5009if test "${with_res_name+set}" = set; then :
4704 withval=$with_res_name; RESNAME="$withval" 5010 withval=$with_res_name; RESNAME="$withval"
4705fi 5011fi
4706 5012
4707 5013
4708cat >>confdefs.h <<_ACEOF 5014cat >>confdefs.h <<_ACEOF
4711 5017
4712 5018
4713RESCLASS=URxvt 5019RESCLASS=URxvt
4714 5020
4715# Check whether --with-res-class was given. 5021# Check whether --with-res-class was given.
4716if test "${with_res_class+set}" = set; then 5022if test "${with_res_class+set}" = set; then :
4717 withval=$with_res_class; RESCLASS="$withval" 5023 withval=$with_res_class; RESCLASS="$withval"
4718fi 5024fi
4719 5025
4720 5026
4721cat >>confdefs.h <<_ACEOF 5027cat >>confdefs.h <<_ACEOF
4724 5030
4725 5031
4726RXVTNAME=urxvt 5032RXVTNAME=urxvt
4727 5033
4728# Check whether --with-name was given. 5034# Check whether --with-name was given.
4729if test "${with_name+set}" = set; then 5035if test "${with_name+set}" = set; then :
4730 withval=$with_name; RXVTNAME="$withval" 5036 withval=$with_name; RXVTNAME="$withval"
4731fi 5037fi
4732 5038
4733 5039
4734cat >>confdefs.h <<_ACEOF 5040cat >>confdefs.h <<_ACEOF
4735#define RXVTNAME "$RXVTNAME" 5041#define RXVTNAME "$RXVTNAME"
4736_ACEOF 5042_ACEOF
4737 5043
4738 5044
4739RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4740 5045
4741 5046
4742# Check whether --enable-swapscreen was given. 5047# Check whether --enable-swapscreen was given.
4743if test "${enable_swapscreen+set}" = set; then 5048if test "${enable_swapscreen+set}" = set; then :
4744 enableval=$enable_swapscreen; if test x$enableval = xno; then 5049 enableval=$enable_swapscreen; if test x$enableval = xno; then
4745 5050
4746cat >>confdefs.h <<\_ACEOF 5051$as_echo "#define NO_SECONDARY_SCREEN 1" >>confdefs.h
4747#define NO_SECONDARY_SCREEN 1
4748_ACEOF
4749 5052
4750 fi 5053 fi
4751fi 5054fi
4752 5055
4753 5056
4754# Check whether --enable-iso14755 was given. 5057# Check whether --enable-iso14755 was given.
4755if test "${enable_iso14755+set}" = set; then 5058if test "${enable_iso14755+set}" = set; then :
4756 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then 5059 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
4757 support_iso14755=$enableval 5060 support_iso14755=$enableval
4758 fi 5061 fi
4759fi 5062fi
4760 5063
4761 5064
4762# Check whether --enable-frills was given. 5065# Check whether --enable-frills was given.
4763if test "${enable_frills+set}" = set; then 5066if test "${enable_frills+set}" = set; then :
4764 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then 5067 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
4765 support_frills=$enableval 5068 support_frills=$enableval
4766 fi 5069 fi
4767fi 5070fi
4768 5071
4769 5072
4770# Check whether --enable-keepscrolling was given. 5073# Check whether --enable-keepscrolling was given.
4771if test "${enable_keepscrolling+set}" = set; then 5074if test "${enable_keepscrolling+set}" = set; then :
4772 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then 5075 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
4773 support_keepscrolling=$enableval 5076 support_keepscrolling=$enableval
4774 fi 5077 fi
4775fi 5078fi
4776 5079
4777 5080
4778# Check whether --enable-selectionscrolling was given. 5081# Check whether --enable-selectionscrolling was given.
4779if test "${enable_selectionscrolling+set}" = set; then 5082if test "${enable_selectionscrolling+set}" = set; then :
4780 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then 5083 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
4781 support_selectionscrolling=$enableval 5084 support_selectionscrolling=$enableval
4782 fi 5085 fi
4783fi 5086fi
4784 5087
4785 5088
4786# Check whether --enable-mousewheel was given. 5089# Check whether --enable-mousewheel was given.
4787if test "${enable_mousewheel+set}" = set; then 5090if test "${enable_mousewheel+set}" = set; then :
4788 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then 5091 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
4789 support_mousewheel=$enableval 5092 support_mousewheel=$enableval
4790 fi 5093 fi
4791fi 5094fi
4792 5095
4793 5096
4794# Check whether --enable-slipwheeling was given. 5097# Check whether --enable-slipwheeling was given.
4795if test "${enable_slipwheeling+set}" = set; then 5098if test "${enable_slipwheeling+set}" = set; then :
4796 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then 5099 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
4797 support_mouseslipwheel=$enableval 5100 support_mouseslipwheel=$enableval
4798 fi 5101 fi
4799fi 5102fi
4800 5103
4801 5104
4802# Check whether --enable-smart-resize was given. 5105# Check whether --enable-smart-resize was given.
4803if test "${enable_smart_resize+set}" = set; then 5106if test "${enable_smart_resize+set}" = set; then :
4804 enableval=$enable_smart_resize; if test x$enableval = xyes; then 5107 enableval=$enable_smart_resize; if test x$enableval = xyes; then
4805 5108
4806cat >>confdefs.h <<\_ACEOF 5109$as_echo "#define SMART_RESIZE 1" >>confdefs.h
4807#define SMART_RESIZE 1
4808_ACEOF
4809 5110
4810 fi 5111 fi
4811fi 5112fi
4812 5113
4813 5114
4814# Check whether --enable-text-blink was given. 5115# Check whether --enable-text-blink was given.
4815if test "${enable_text_blink+set}" = set; then 5116if test "${enable_text_blink+set}" = set; then :
4816 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then 5117 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
4817 support_text_blink=$enableval 5118 support_text_blink=$enableval
4818 fi 5119 fi
4819fi 5120fi
4820 5121
4821 5122
4822# Check whether --enable-pointer-blank was given. 5123# Check whether --enable-pointer-blank was given.
4823if test "${enable_pointer_blank+set}" = set; then 5124if test "${enable_pointer_blank+set}" = set; then :
4824 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then 5125 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
4825 support_pointer_blank=$enableval 5126 support_pointer_blank=$enableval
4826 fi 5127 fi
4827fi 5128fi
4828 5129
4829 5130
4830 5131
4831# Check whether --with-term was given. 5132# Check whether --with-term was given.
4832if test "${with_term+set}" = set; then 5133if test "${with_term+set}" = set; then :
4833 withval=$with_term; if test x$withval != x; then 5134 withval=$with_term; if test x$withval != x; then
4834 5135
4835cat >>confdefs.h <<_ACEOF 5136cat >>confdefs.h <<_ACEOF
4836#define TERMENV "$withval" 5137#define TERMENV "$withval"
4837_ACEOF 5138_ACEOF
4840fi 5141fi
4841 5142
4842 5143
4843 5144
4844# Check whether --with-terminfo was given. 5145# Check whether --with-terminfo was given.
4845if test "${with_terminfo+set}" = set; then 5146if test "${with_terminfo+set}" = set; then :
4846 withval=$with_terminfo; if test x$withval != x; then 5147 withval=$with_terminfo; if test x$withval != x; then
4847 5148
4848cat >>confdefs.h <<_ACEOF 5149cat >>confdefs.h <<_ACEOF
4849#define RXVT_TERMINFO "$withval" 5150#define RXVT_TERMINFO "$withval"
4850_ACEOF 5151_ACEOF
4852 fi 5153 fi
4853fi 5154fi
4854 5155
4855 5156
4856 5157
4857# Extract the first word of "mv", so it can be a program name with args. 5158LIBEV_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 5159
5146ac_ext=cpp 5160ac_ext=cpp
5147ac_cpp='$CXXCPP $CPPFLAGS' 5161ac_cpp='$CXXCPP $CPPFLAGS'
5148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5151{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5165{ $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; } 5166$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5153if test -z "$CXXCPP"; then 5167if test -z "$CXXCPP"; then
5154 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5168 if ${ac_cv_prog_CXXCPP+:} false; then :
5155 echo $ECHO_N "(cached) $ECHO_C" >&6 5169 $as_echo_n "(cached) " >&6
5156else 5170else
5157 # Double quotes because CXXCPP needs to be expanded 5171 # Double quotes because CXXCPP needs to be expanded
5158 for CXXCPP in "$CXX -E" "/lib/cpp" 5172 for CXXCPP in "$CXX -E" "/lib/cpp"
5159 do 5173 do
5160 ac_preproc_ok=false 5174 ac_preproc_ok=false
5164 # with a fresh cross-compiler works. 5178 # with a fresh cross-compiler works.
5165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166 # <limits.h> exists even on freestanding compilers. 5180 # <limits.h> exists even on freestanding compilers.
5167 # On the NeXT, cc -E runs the code through the compiler's parser, 5181 # 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. 5182 # 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 5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h. */ 5184/* end confdefs.h. */
5175#ifdef __STDC__ 5185#ifdef __STDC__
5176# include <limits.h> 5186# include <limits.h>
5177#else 5187#else
5178# include <assert.h> 5188# include <assert.h>
5179#endif 5189#endif
5180 Syntax error 5190 Syntax error
5181_ACEOF 5191_ACEOF
5182if { (ac_try="$ac_cpp conftest.$ac_ext" 5192if 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 5193
5194else
5203 # Broken: fails on valid input. 5195 # Broken: fails on valid input.
5204continue 5196continue
5205fi 5197fi
5206
5207rm -f conftest.err conftest.$ac_ext 5198rm -f conftest.err conftest.i conftest.$ac_ext
5208 5199
5209 # OK, works on sane cases. Now check whether nonexistent headers 5200 # OK, works on sane cases. Now check whether nonexistent headers
5210 # can be detected and how. 5201 # can be detected and how.
5211 cat >conftest.$ac_ext <<_ACEOF
5212/* confdefs.h. */
5213_ACEOF
5214cat confdefs.h >>conftest.$ac_ext 5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215cat >>conftest.$ac_ext <<_ACEOF
5216/* end confdefs.h. */ 5203/* end confdefs.h. */
5217#include <ac_nonexistent.h> 5204#include <ac_nonexistent.h>
5218_ACEOF 5205_ACEOF
5219if { (ac_try="$ac_cpp conftest.$ac_ext" 5206if 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. 5207 # Broken: success on invalid input.
5236continue 5208continue
5237else 5209else
5238 echo "$as_me: failed program was:" >&5
5239sed 's/^/| /' conftest.$ac_ext >&5
5240
5241 # Passes both tests. 5210 # Passes both tests.
5242ac_preproc_ok=: 5211ac_preproc_ok=:
5243break 5212break
5244fi 5213fi
5245
5246rm -f conftest.err conftest.$ac_ext 5214rm -f conftest.err conftest.i conftest.$ac_ext
5247 5215
5248done 5216done
5249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5217# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5250rm -f conftest.err conftest.$ac_ext 5218rm -f conftest.i conftest.err conftest.$ac_ext
5251if $ac_preproc_ok; then 5219if $ac_preproc_ok; then :
5252 break 5220 break
5253fi 5221fi
5254 5222
5255 done 5223 done
5256 ac_cv_prog_CXXCPP=$CXXCPP 5224 ac_cv_prog_CXXCPP=$CXXCPP
5258fi 5226fi
5259 CXXCPP=$ac_cv_prog_CXXCPP 5227 CXXCPP=$ac_cv_prog_CXXCPP
5260else 5228else
5261 ac_cv_prog_CXXCPP=$CXXCPP 5229 ac_cv_prog_CXXCPP=$CXXCPP
5262fi 5230fi
5263{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5264echo "${ECHO_T}$CXXCPP" >&6; } 5232$as_echo "$CXXCPP" >&6; }
5265ac_preproc_ok=false 5233ac_preproc_ok=false
5266for ac_cxx_preproc_warn_flag in '' yes 5234for ac_cxx_preproc_warn_flag in '' yes
5267do 5235do
5268 # Use a header file that comes with gcc, so configuring glibc 5236 # Use a header file that comes with gcc, so configuring glibc
5269 # with a fresh cross-compiler works. 5237 # with a fresh cross-compiler works.
5270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5271 # <limits.h> exists even on freestanding compilers. 5239 # <limits.h> exists even on freestanding compilers.
5272 # On the NeXT, cc -E runs the code through the compiler's parser, 5240 # 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. 5241 # 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 5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278cat >>conftest.$ac_ext <<_ACEOF
5279/* end confdefs.h. */ 5243/* end confdefs.h. */
5280#ifdef __STDC__ 5244#ifdef __STDC__
5281# include <limits.h> 5245# include <limits.h>
5282#else 5246#else
5283# include <assert.h> 5247# include <assert.h>
5284#endif 5248#endif
5285 Syntax error 5249 Syntax error
5286_ACEOF 5250_ACEOF
5287if { (ac_try="$ac_cpp conftest.$ac_ext" 5251if 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 5252
5253else
5308 # Broken: fails on valid input. 5254 # Broken: fails on valid input.
5309continue 5255continue
5310fi 5256fi
5311
5312rm -f conftest.err conftest.$ac_ext 5257rm -f conftest.err conftest.i conftest.$ac_ext
5313 5258
5314 # OK, works on sane cases. Now check whether nonexistent headers 5259 # OK, works on sane cases. Now check whether nonexistent headers
5315 # can be detected and how. 5260 # can be detected and how.
5316 cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h. */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext 5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h. */ 5262/* end confdefs.h. */
5322#include <ac_nonexistent.h> 5263#include <ac_nonexistent.h>
5323_ACEOF 5264_ACEOF
5324if { (ac_try="$ac_cpp conftest.$ac_ext" 5265if 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. 5266 # Broken: success on invalid input.
5341continue 5267continue
5342else 5268else
5343 echo "$as_me: failed program was:" >&5
5344sed 's/^/| /' conftest.$ac_ext >&5
5345
5346 # Passes both tests. 5269 # Passes both tests.
5347ac_preproc_ok=: 5270ac_preproc_ok=:
5348break 5271break
5349fi 5272fi
5350
5351rm -f conftest.err conftest.$ac_ext 5273rm -f conftest.err conftest.i conftest.$ac_ext
5352 5274
5353done 5275done
5354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5276# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355rm -f conftest.err conftest.$ac_ext 5277rm -f conftest.i conftest.err conftest.$ac_ext
5356if $ac_preproc_ok; then 5278if $ac_preproc_ok; then :
5357 : 5279
5358else 5280else
5359 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5360See \`config.log' for more details." >&5 5282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5361echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5283as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5362See \`config.log' for more details." >&2;} 5284See \`config.log' for more details" "$LINENO" 5; }
5363 { (exit 1); exit 1; }; }
5364fi 5285fi
5365 5286
5366ac_ext=cpp 5287ac_ext=cpp
5367ac_cpp='$CXXCPP $CPPFLAGS' 5288ac_cpp='$CXXCPP $CPPFLAGS'
5368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5371 5292
5372 5293
5294for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h
5295do :
5296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5297ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5298if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5299 cat >>confdefs.h <<_ACEOF
5300#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5301_ACEOF
5302
5303fi
5304
5305done
5306
5307
5308for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5309do :
5310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5311ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5312if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5313 cat >>confdefs.h <<_ACEOF
5314#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5315_ACEOF
5316
5317fi
5318done
5319
5320
5321for ac_func in clock_gettime
5322do :
5323 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5324if test "x$ac_cv_func_clock_gettime" = xyes; then :
5325 cat >>confdefs.h <<_ACEOF
5326#define HAVE_CLOCK_GETTIME 1
5327_ACEOF
5328
5329else
5330
5331 if test $(uname) = Linux; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5333$as_echo_n "checking for clock_gettime syscall... " >&6; }
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335/* end confdefs.h. */
5336#include <unistd.h>
5337 #include <sys/syscall.h>
5338 #include <time.h>
5339int
5340main ()
5341{
5342struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5343 ;
5344 return 0;
5345}
5346_ACEOF
5347if ac_fn_cxx_try_link "$LINENO"; then :
5348 ac_have_clock_syscall=1
5349
5350$as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
5351
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5353$as_echo "yes" >&6; }
5354else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356$as_echo "no" >&6; }
5357fi
5358rm -f core conftest.err conftest.$ac_objext \
5359 conftest$ac_exeext conftest.$ac_ext
5360 fi
5361 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5363$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
5364if ${ac_cv_lib_rt_clock_gettime+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366else
5367 ac_check_lib_save_LIBS=$LIBS
5368LIBS="-lrt $LIBS"
5369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370/* end confdefs.h. */
5371
5372/* Override any GCC internal prototype to avoid an error.
5373 Use char because int might match the return type of a GCC
5374 builtin and then its argument prototype would still apply. */
5375#ifdef __cplusplus
5376extern "C"
5377#endif
5378char clock_gettime ();
5379int
5380main ()
5381{
5382return clock_gettime ();
5383 ;
5384 return 0;
5385}
5386_ACEOF
5387if ac_fn_cxx_try_link "$LINENO"; then :
5388 ac_cv_lib_rt_clock_gettime=yes
5389else
5390 ac_cv_lib_rt_clock_gettime=no
5391fi
5392rm -f core conftest.err conftest.$ac_objext \
5393 conftest$ac_exeext conftest.$ac_ext
5394LIBS=$ac_check_lib_save_LIBS
5395fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5397$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
5398if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
5399 cat >>confdefs.h <<_ACEOF
5400#define HAVE_LIBRT 1
5401_ACEOF
5402
5403 LIBS="-lrt $LIBS"
5404
5405fi
5406
5407 unset ac_cv_func_clock_gettime
5408 for ac_func in clock_gettime
5409do :
5410 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5411if test "x$ac_cv_func_clock_gettime" = xyes; then :
5412 cat >>confdefs.h <<_ACEOF
5413#define HAVE_CLOCK_GETTIME 1
5414_ACEOF
5415
5416fi
5417done
5418
5419 fi
5420
5421fi
5422done
5423
5424
5425for ac_func in nanosleep
5426do :
5427 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5428if test "x$ac_cv_func_nanosleep" = xyes; then :
5429 cat >>confdefs.h <<_ACEOF
5430#define HAVE_NANOSLEEP 1
5431_ACEOF
5432
5433else
5434
5435 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5437$as_echo_n "checking for nanosleep in -lrt... " >&6; }
5438if ${ac_cv_lib_rt_nanosleep+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440else
5441 ac_check_lib_save_LIBS=$LIBS
5442LIBS="-lrt $LIBS"
5443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444/* end confdefs.h. */
5445
5446/* Override any GCC internal prototype to avoid an error.
5447 Use char because int might match the return type of a GCC
5448 builtin and then its argument prototype would still apply. */
5449#ifdef __cplusplus
5450extern "C"
5451#endif
5452char nanosleep ();
5453int
5454main ()
5455{
5456return nanosleep ();
5457 ;
5458 return 0;
5459}
5460_ACEOF
5461if ac_fn_cxx_try_link "$LINENO"; then :
5462 ac_cv_lib_rt_nanosleep=yes
5463else
5464 ac_cv_lib_rt_nanosleep=no
5465fi
5466rm -f core conftest.err conftest.$ac_objext \
5467 conftest$ac_exeext conftest.$ac_ext
5468LIBS=$ac_check_lib_save_LIBS
5469fi
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5471$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
5472if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
5473 cat >>confdefs.h <<_ACEOF
5474#define HAVE_LIBRT 1
5475_ACEOF
5476
5477 LIBS="-lrt $LIBS"
5478
5479fi
5480
5481 unset ac_cv_func_nanosleep
5482 for ac_func in nanosleep
5483do :
5484 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5485if test "x$ac_cv_func_nanosleep" = xyes; then :
5486 cat >>confdefs.h <<_ACEOF
5487#define HAVE_NANOSLEEP 1
5488_ACEOF
5489
5490fi
5491done
5492
5493 fi
5494
5495fi
5496done
5497
5498
5499if test -z "$LIBEV_M4_AVOID_LIBM"; then
5500 LIBM=m
5501fi
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
5503$as_echo_n "checking for library containing floor... " >&6; }
5504if ${ac_cv_search_floor+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506else
5507 ac_func_search_save_LIBS=$LIBS
5508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509/* end confdefs.h. */
5510
5511/* Override any GCC internal prototype to avoid an error.
5512 Use char because int might match the return type of a GCC
5513 builtin and then its argument prototype would still apply. */
5514#ifdef __cplusplus
5515extern "C"
5516#endif
5517char floor ();
5518int
5519main ()
5520{
5521return floor ();
5522 ;
5523 return 0;
5524}
5525_ACEOF
5526for ac_lib in '' $LIBM; do
5527 if test -z "$ac_lib"; then
5528 ac_res="none required"
5529 else
5530 ac_res=-l$ac_lib
5531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5532 fi
5533 if ac_fn_cxx_try_link "$LINENO"; then :
5534 ac_cv_search_floor=$ac_res
5535fi
5536rm -f core conftest.err conftest.$ac_objext \
5537 conftest$ac_exeext
5538 if ${ac_cv_search_floor+:} false; then :
5539 break
5540fi
5541done
5542if ${ac_cv_search_floor+:} false; then :
5543
5544else
5545 ac_cv_search_floor=no
5546fi
5547rm conftest.$ac_ext
5548LIBS=$ac_func_search_save_LIBS
5549fi
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
5551$as_echo "$ac_cv_search_floor" >&6; }
5552ac_res=$ac_cv_search_floor
5553if test "$ac_res" != no; then :
5554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5555
5556$as_echo "#define HAVE_FLOOR 1" >>confdefs.h
5557
5558fi
5559
5560
5561
5562
5563
5564# Extract the first word of "tic", so it can be a program name with args.
5565set dummy tic; ac_word=$2
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567$as_echo_n "checking for $ac_word... " >&6; }
5568if ${ac_cv_path_TIC+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570else
5571 case $TIC in
5572 [\\/]* | ?:[\\/]*)
5573 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5574 ;;
5575 *)
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577for as_dir in $PATH
5578do
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 break 2
5586 fi
5587done
5588 done
5589IFS=$as_save_IFS
5590
5591 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5592 ;;
5593esac
5594fi
5595TIC=$ac_cv_path_TIC
5596if test -n "$TIC"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5
5598$as_echo "$TIC" >&6; }
5599else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601$as_echo "no" >&6; }
5602fi
5603
5604
5605
5373{ echo "$as_me:$LINENO: checking for X" >&5 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5374echo $ECHO_N "checking for X... $ECHO_C" >&6; } 5607$as_echo_n "checking for X... " >&6; }
5375 5608
5376 5609
5377# Check whether --with-x was given. 5610# Check whether --with-x was given.
5378if test "${with_x+set}" = set; then 5611if test "${with_x+set}" = set; then :
5379 withval=$with_x; 5612 withval=$with_x;
5380fi 5613fi
5381 5614
5382# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 5615# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5383if test "x$with_x" = xno; then 5616if test "x$with_x" = xno; then
5384 # The user explicitly disabled X. 5617 # The user explicitly disabled X.
5385 have_x=disabled 5618 have_x=disabled
5386else 5619else
5387 case $x_includes,$x_libraries in #( 5620 case $x_includes,$x_libraries in #(
5388 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 5621 *\'*) 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 5622 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5392 echo $ECHO_N "(cached) $ECHO_C" >&6 5623 $as_echo_n "(cached) " >&6
5393else 5624else
5394 # One or both of the vars are not set, and there is no cached value. 5625 # One or both of the vars are not set, and there is no cached value.
5395ac_x_includes=no ac_x_libraries=no 5626ac_x_includes=no ac_x_libraries=no
5396rm -f -r conftest.dir 5627rm -f -r conftest.dir
5397if mkdir conftest.dir; then 5628if mkdir conftest.dir; then
5403 @echo usrlibdir='${USRLIBDIR}' 5634 @echo usrlibdir='${USRLIBDIR}'
5404libdir: 5635libdir:
5405 @echo libdir='${LIBDIR}' 5636 @echo libdir='${LIBDIR}'
5406_ACEOF 5637_ACEOF
5407 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 5638 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5408 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5639 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5409 for ac_var in incroot usrlibdir libdir; do 5640 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'\`" 5641 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5411 done 5642 done
5412 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 5643 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5413 for ac_extension in a so sl; do 5644 for ac_extension in a so sl dylib la dll; do
5414 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 5645 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5415 test -f "$ac_im_libdir/libX11.$ac_extension"; then 5646 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5416 ac_im_usrlibdir=$ac_im_libdir; break 5647 ac_im_usrlibdir=$ac_im_libdir; break
5417 fi 5648 fi
5418 done 5649 done
5422 case $ac_im_incroot in 5653 case $ac_im_incroot in
5423 /usr/include) ac_x_includes= ;; 5654 /usr/include) ac_x_includes= ;;
5424 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 5655 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5425 esac 5656 esac
5426 case $ac_im_usrlibdir in 5657 case $ac_im_usrlibdir in
5427 /usr/lib | /lib) ;; 5658 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5428 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 5659 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5429 esac 5660 esac
5430 fi 5661 fi
5431 cd .. 5662 cd ..
5432 rm -f -r conftest.dir 5663 rm -f -r conftest.dir
5434 5665
5435# Standard set of common directories for X headers. 5666# Standard set of common directories for X headers.
5436# Check X11 before X11Rn because it is often a symlink to the current release. 5667# Check X11 before X11Rn because it is often a symlink to the current release.
5437ac_x_header_dirs=' 5668ac_x_header_dirs='
5438/usr/X11/include 5669/usr/X11/include
5670/usr/X11R7/include
5439/usr/X11R6/include 5671/usr/X11R6/include
5440/usr/X11R5/include 5672/usr/X11R5/include
5441/usr/X11R4/include 5673/usr/X11R4/include
5442 5674
5443/usr/include/X11 5675/usr/include/X11
5676/usr/include/X11R7
5444/usr/include/X11R6 5677/usr/include/X11R6
5445/usr/include/X11R5 5678/usr/include/X11R5
5446/usr/include/X11R4 5679/usr/include/X11R4
5447 5680
5448/usr/local/X11/include 5681/usr/local/X11/include
5682/usr/local/X11R7/include
5449/usr/local/X11R6/include 5683/usr/local/X11R6/include
5450/usr/local/X11R5/include 5684/usr/local/X11R5/include
5451/usr/local/X11R4/include 5685/usr/local/X11R4/include
5452 5686
5453/usr/local/include/X11 5687/usr/local/include/X11
5688/usr/local/include/X11R7
5454/usr/local/include/X11R6 5689/usr/local/include/X11R6
5455/usr/local/include/X11R5 5690/usr/local/include/X11R5
5456/usr/local/include/X11R4 5691/usr/local/include/X11R4
5457 5692
5458/usr/X386/include 5693/usr/X386/include
5470/usr/openwin/share/include' 5705/usr/openwin/share/include'
5471 5706
5472if test "$ac_x_includes" = no; then 5707if test "$ac_x_includes" = no; then
5473 # Guess where to find include files, by looking for Xlib.h. 5708 # Guess where to find include files, by looking for Xlib.h.
5474 # First, try using that file with no special directory specified. 5709 # 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 5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479cat >>conftest.$ac_ext <<_ACEOF
5480/* end confdefs.h. */ 5711/* end confdefs.h. */
5481#include <X11/Xlib.h> 5712#include <X11/Xlib.h>
5482_ACEOF 5713_ACEOF
5483if { (ac_try="$ac_cpp conftest.$ac_ext" 5714if 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. 5715 # We can compile using X headers with no special include directory.
5500ac_x_includes= 5716ac_x_includes=
5501else 5717else
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 5718 for ac_dir in $ac_x_header_dirs; do
5506 if test -r "$ac_dir/X11/Xlib.h"; then 5719 if test -r "$ac_dir/X11/Xlib.h"; then
5507 ac_x_includes=$ac_dir 5720 ac_x_includes=$ac_dir
5508 break 5721 break
5509 fi 5722 fi
5510done 5723done
5511fi 5724fi
5512
5513rm -f conftest.err conftest.$ac_ext 5725rm -f conftest.err conftest.i conftest.$ac_ext
5514fi # $ac_x_includes = no 5726fi # $ac_x_includes = no
5515 5727
5516if test "$ac_x_libraries" = no; then 5728if test "$ac_x_libraries" = no; then
5517 # Check for the libraries. 5729 # Check for the libraries.
5518 # See if we find them without any special options. 5730 # See if we find them without any special options.
5519 # Don't add to $LIBS permanently. 5731 # Don't add to $LIBS permanently.
5520 ac_save_LIBS=$LIBS 5732 ac_save_LIBS=$LIBS
5521 LIBS="-lX11 $LIBS" 5733 LIBS="-lX11 $LIBS"
5522 cat >conftest.$ac_ext <<_ACEOF
5523/* confdefs.h. */
5524_ACEOF
5525cat confdefs.h >>conftest.$ac_ext 5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526cat >>conftest.$ac_ext <<_ACEOF
5527/* end confdefs.h. */ 5735/* end confdefs.h. */
5528#include <X11/Xlib.h> 5736#include <X11/Xlib.h>
5529int 5737int
5530main () 5738main ()
5531{ 5739{
5532XrmInitialize () 5740XrmInitialize ()
5533 ; 5741 ;
5534 return 0; 5742 return 0;
5535} 5743}
5536_ACEOF 5744_ACEOF
5537rm -f conftest.$ac_objext conftest$ac_exeext 5745if 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 5746 LIBS=$ac_save_LIBS
5556# We can link X programs with no special library path. 5747# We can link X programs with no special library path.
5557ac_x_libraries= 5748ac_x_libraries=
5558else 5749else
5559 echo "$as_me: failed program was:" >&5
5560sed 's/^/| /' conftest.$ac_ext >&5
5561
5562 LIBS=$ac_save_LIBS 5750 LIBS=$ac_save_LIBS
5563for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5751for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5564do 5752do
5565 # Don't even attempt the hair of trying to link an X program! 5753 # Don't even attempt the hair of trying to link an X program!
5566 for ac_extension in a so sl; do 5754 for ac_extension in a so sl dylib la dll; do
5567 if test -r "$ac_dir/libX11.$ac_extension"; then 5755 if test -r "$ac_dir/libX11.$ac_extension"; then
5568 ac_x_libraries=$ac_dir 5756 ac_x_libraries=$ac_dir
5569 break 2 5757 break 2
5570 fi 5758 fi
5571 done 5759 done
5572done 5760done
5573fi 5761fi
5574
5575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5762rm -f core conftest.err conftest.$ac_objext \
5576 conftest$ac_exeext conftest.$ac_ext 5763 conftest$ac_exeext conftest.$ac_ext
5577fi # $ac_x_libraries = no 5764fi # $ac_x_libraries = no
5578 5765
5579case $ac_x_includes,$ac_x_libraries in #( 5766case $ac_x_includes,$ac_x_libraries in #(
5580 no,* | *,no | *\'*) 5767 no,* | *,no | *\'*)
5581 # Didn't find X, or a directory has "'" in its name. 5768 # Didn't find X, or a directory has "'" in its name.
5592 esac 5779 esac
5593 eval "$ac_cv_have_x" 5780 eval "$ac_cv_have_x"
5594fi # $with_x != no 5781fi # $with_x != no
5595 5782
5596if test "$have_x" != yes; then 5783if test "$have_x" != yes; then
5597 { echo "$as_me:$LINENO: result: $have_x" >&5 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5598echo "${ECHO_T}$have_x" >&6; } 5785$as_echo "$have_x" >&6; }
5599 no_x=yes 5786 no_x=yes
5600else 5787else
5601 # If each of the values was on the command line, it overrides each guess. 5788 # 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 5789 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5603 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5790 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5604 # Update the cache value to reflect the command line values. 5791 # Update the cache value to reflect the command line values.
5605 ac_cv_have_x="have_x=yes\ 5792 ac_cv_have_x="have_x=yes\
5606 ac_x_includes='$x_includes'\ 5793 ac_x_includes='$x_includes'\
5607 ac_x_libraries='$x_libraries'" 5794 ac_x_libraries='$x_libraries'"
5608 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 5795 { $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; } 5796$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5610fi 5797fi
5611 5798
5612if test "$no_x" = yes; then 5799if test "$no_x" = yes; then
5613 # Not all programs may use this symbol, but it does not hurt to define it. 5800 # Not all programs may use this symbol, but it does not hurt to define it.
5614 5801
5615cat >>confdefs.h <<\_ACEOF 5802$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5616#define X_DISPLAY_MISSING 1
5617_ACEOF
5618 5803
5619 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 5804 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5620else 5805else
5621 if test -n "$x_includes"; then 5806 if test -n "$x_includes"; then
5622 X_CFLAGS="$X_CFLAGS -I$x_includes" 5807 X_CFLAGS="$X_CFLAGS -I$x_includes"
5625 # It would also be nice to do this for all -L options, not just this one. 5810 # It would also be nice to do this for all -L options, not just this one.
5626 if test -n "$x_libraries"; then 5811 if test -n "$x_libraries"; then
5627 X_LIBS="$X_LIBS -L$x_libraries" 5812 X_LIBS="$X_LIBS -L$x_libraries"
5628 # For Solaris; some versions of Sun CC require a space after -R and 5813 # For Solaris; some versions of Sun CC require a space after -R and
5629 # others require no space. Words are not sufficient . . . . 5814 # others require no space. Words are not sufficient . . . .
5630 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 5815 { $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; } 5816$as_echo_n "checking whether -R must be followed by a space... " >&6; }
5632 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 5817 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5633 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 5818 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
5634 ac_cxx_werror_flag=yes 5819 ac_cxx_werror_flag=yes
5635 cat >conftest.$ac_ext <<_ACEOF
5636/* confdefs.h. */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext 5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h. */ 5821/* end confdefs.h. */
5641 5822
5642int 5823int
5643main () 5824main ()
5644{ 5825{
5645 5826
5646 ; 5827 ;
5647 return 0; 5828 return 0;
5648} 5829}
5649_ACEOF 5830_ACEOF
5650rm -f conftest.$ac_objext conftest$ac_exeext 5831if 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 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669echo "${ECHO_T}no" >&6; } 5833$as_echo "no" >&6; }
5670 X_LIBS="$X_LIBS -R$x_libraries" 5834 X_LIBS="$X_LIBS -R$x_libraries"
5671else 5835else
5672 echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
5675 LIBS="$ac_xsave_LIBS -R $x_libraries" 5836 LIBS="$ac_xsave_LIBS -R $x_libraries"
5676 cat >conftest.$ac_ext <<_ACEOF
5677/* confdefs.h. */
5678_ACEOF
5679cat confdefs.h >>conftest.$ac_ext 5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680cat >>conftest.$ac_ext <<_ACEOF
5681/* end confdefs.h. */ 5838/* end confdefs.h. */
5682 5839
5683int 5840int
5684main () 5841main ()
5685{ 5842{
5686 5843
5687 ; 5844 ;
5688 return 0; 5845 return 0;
5689} 5846}
5690_ACEOF 5847_ACEOF
5691rm -f conftest.$ac_objext conftest$ac_exeext 5848if 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 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5710echo "${ECHO_T}yes" >&6; } 5850$as_echo "yes" >&6; }
5711 X_LIBS="$X_LIBS -R $x_libraries" 5851 X_LIBS="$X_LIBS -R $x_libraries"
5712else 5852else
5713 echo "$as_me: failed program was:" >&5
5714sed 's/^/| /' conftest.$ac_ext >&5
5715
5716 { echo "$as_me:$LINENO: result: neither works" >&5 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5717echo "${ECHO_T}neither works" >&6; } 5854$as_echo "neither works" >&6; }
5718fi 5855fi
5719
5720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5856rm -f core conftest.err conftest.$ac_objext \
5721 conftest$ac_exeext conftest.$ac_ext 5857 conftest$ac_exeext conftest.$ac_ext
5722fi 5858fi
5723
5724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5859rm -f core conftest.err conftest.$ac_objext \
5725 conftest$ac_exeext conftest.$ac_ext 5860 conftest$ac_exeext conftest.$ac_ext
5726 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 5861 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5727 LIBS=$ac_xsave_LIBS 5862 LIBS=$ac_xsave_LIBS
5728 fi 5863 fi
5729 5864
5730 # Check for system-dependent libraries X programs must link with. 5865 # Check for system-dependent libraries X programs must link with.
5736 else 5871 else
5737 # Martyn Johnson says this is needed for Ultrix, if the X 5872 # Martyn Johnson says this is needed for Ultrix, if the X
5738 # libraries were built with DECnet support. And Karl Berry says 5873 # libraries were built with DECnet support. And Karl Berry says
5739 # the Alpha needs dnet_stub (dnet does not exist). 5874 # the Alpha needs dnet_stub (dnet does not exist).
5740 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 5875 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 5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745cat >>conftest.$ac_ext <<_ACEOF
5746/* end confdefs.h. */ 5877/* end confdefs.h. */
5747 5878
5748/* Override any GCC internal prototype to avoid an error. 5879/* Override any GCC internal prototype to avoid an error.
5749 Use char because int might match the return type of a GCC 5880 Use char because int might match the return type of a GCC
5750 builtin and then its argument prototype would still apply. */ 5881 builtin and then its argument prototype would still apply. */
5758return XOpenDisplay (); 5889return XOpenDisplay ();
5759 ; 5890 ;
5760 return 0; 5891 return 0;
5761} 5892}
5762_ACEOF 5893_ACEOF
5763rm -f conftest.$ac_objext conftest$ac_exeext 5894if 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 5895
5896else
5786 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 5897 { $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; } 5898$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5788if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 5899if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
5789 echo $ECHO_N "(cached) $ECHO_C" >&6 5900 $as_echo_n "(cached) " >&6
5790else 5901else
5791 ac_check_lib_save_LIBS=$LIBS 5902 ac_check_lib_save_LIBS=$LIBS
5792LIBS="-ldnet $LIBS" 5903LIBS="-ldnet $LIBS"
5793cat >conftest.$ac_ext <<_ACEOF
5794/* confdefs.h. */
5795_ACEOF
5796cat confdefs.h >>conftest.$ac_ext 5904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797cat >>conftest.$ac_ext <<_ACEOF
5798/* end confdefs.h. */ 5905/* end confdefs.h. */
5799 5906
5800/* Override any GCC internal prototype to avoid an error. 5907/* Override any GCC internal prototype to avoid an error.
5801 Use char because int might match the return type of a GCC 5908 Use char because int might match the return type of a GCC
5802 builtin and then its argument prototype would still apply. */ 5909 builtin and then its argument prototype would still apply. */
5810return dnet_ntoa (); 5917return dnet_ntoa ();
5811 ; 5918 ;
5812 return 0; 5919 return 0;
5813} 5920}
5814_ACEOF 5921_ACEOF
5815rm -f conftest.$ac_objext conftest$ac_exeext 5922if 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 5923 ac_cv_lib_dnet_dnet_ntoa=yes
5834else 5924else
5835 echo "$as_me: failed program was:" >&5
5836sed 's/^/| /' conftest.$ac_ext >&5
5837
5838 ac_cv_lib_dnet_dnet_ntoa=no 5925 ac_cv_lib_dnet_dnet_ntoa=no
5839fi 5926fi
5840
5841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5927rm -f core conftest.err conftest.$ac_objext \
5842 conftest$ac_exeext conftest.$ac_ext 5928 conftest$ac_exeext conftest.$ac_ext
5843LIBS=$ac_check_lib_save_LIBS 5929LIBS=$ac_check_lib_save_LIBS
5844fi 5930fi
5845{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 5931{ $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; } 5932$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5847if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 5933if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
5848 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 5934 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5849fi 5935fi
5850 5936
5851 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5937 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5852 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 5938 { $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; } 5939$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5854if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 5940if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
5855 echo $ECHO_N "(cached) $ECHO_C" >&6 5941 $as_echo_n "(cached) " >&6
5856else 5942else
5857 ac_check_lib_save_LIBS=$LIBS 5943 ac_check_lib_save_LIBS=$LIBS
5858LIBS="-ldnet_stub $LIBS" 5944LIBS="-ldnet_stub $LIBS"
5859cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h. */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext 5945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h. */ 5946/* end confdefs.h. */
5865 5947
5866/* Override any GCC internal prototype to avoid an error. 5948/* Override any GCC internal prototype to avoid an error.
5867 Use char because int might match the return type of a GCC 5949 Use char because int might match the return type of a GCC
5868 builtin and then its argument prototype would still apply. */ 5950 builtin and then its argument prototype would still apply. */
5876return dnet_ntoa (); 5958return dnet_ntoa ();
5877 ; 5959 ;
5878 return 0; 5960 return 0;
5879} 5961}
5880_ACEOF 5962_ACEOF
5881rm -f conftest.$ac_objext conftest$ac_exeext 5963if 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 5964 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5900else 5965else
5901 echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
5904 ac_cv_lib_dnet_stub_dnet_ntoa=no 5966 ac_cv_lib_dnet_stub_dnet_ntoa=no
5905fi 5967fi
5906
5907rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5968rm -f core conftest.err conftest.$ac_objext \
5908 conftest$ac_exeext conftest.$ac_ext 5969 conftest$ac_exeext conftest.$ac_ext
5909LIBS=$ac_check_lib_save_LIBS 5970LIBS=$ac_check_lib_save_LIBS
5910fi 5971fi
5911{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 5972{ $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; } 5973$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5913if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 5974if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
5914 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 5975 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5915fi 5976fi
5916 5977
5917 fi 5978 fi
5918fi 5979fi
5919
5920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5980rm -f core conftest.err conftest.$ac_objext \
5921 conftest$ac_exeext conftest.$ac_ext 5981 conftest$ac_exeext conftest.$ac_ext
5922 LIBS="$ac_xsave_LIBS" 5982 LIBS="$ac_xsave_LIBS"
5923 5983
5924 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 5984 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5925 # to get the SysV transport functions. 5985 # to get the SysV transport functions.
5926 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 5986 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5927 # needs -lnsl. 5987 # needs -lnsl.
5928 # The nsl library prevents programs from opening the X display 5988 # The nsl library prevents programs from opening the X display
5929 # on Irix 5.2, according to T.E. Dickey. 5989 # on Irix 5.2, according to T.E. Dickey.
5930 # The functions gethostbyname, getservbyname, and inet_addr are 5990 # The functions gethostbyname, getservbyname, and inet_addr are
5931 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 5991 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5932 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5992 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 5993if test "x$ac_cv_func_gethostbyname" = xyes; 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 5994
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 5995fi
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 5996
6014 if test $ac_cv_func_gethostbyname = no; then 5997 if test $ac_cv_func_gethostbyname = no; then
6015 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6016echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5999$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6017if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 6000if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6018 echo $ECHO_N "(cached) $ECHO_C" >&6 6001 $as_echo_n "(cached) " >&6
6019else 6002else
6020 ac_check_lib_save_LIBS=$LIBS 6003 ac_check_lib_save_LIBS=$LIBS
6021LIBS="-lnsl $LIBS" 6004LIBS="-lnsl $LIBS"
6022cat >conftest.$ac_ext <<_ACEOF
6023/* confdefs.h. */
6024_ACEOF
6025cat confdefs.h >>conftest.$ac_ext 6005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026cat >>conftest.$ac_ext <<_ACEOF
6027/* end confdefs.h. */ 6006/* end confdefs.h. */
6028 6007
6029/* Override any GCC internal prototype to avoid an error. 6008/* Override any GCC internal prototype to avoid an error.
6030 Use char because int might match the return type of a GCC 6009 Use char because int might match the return type of a GCC
6031 builtin and then its argument prototype would still apply. */ 6010 builtin and then its argument prototype would still apply. */
6039return gethostbyname (); 6018return gethostbyname ();
6040 ; 6019 ;
6041 return 0; 6020 return 0;
6042} 6021}
6043_ACEOF 6022_ACEOF
6044rm -f conftest.$ac_objext conftest$ac_exeext 6023if 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 6024 ac_cv_lib_nsl_gethostbyname=yes
6063else 6025else
6064 echo "$as_me: failed program was:" >&5
6065sed 's/^/| /' conftest.$ac_ext >&5
6066
6067 ac_cv_lib_nsl_gethostbyname=no 6026 ac_cv_lib_nsl_gethostbyname=no
6068fi 6027fi
6069
6070rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6028rm -f core conftest.err conftest.$ac_objext \
6071 conftest$ac_exeext conftest.$ac_ext 6029 conftest$ac_exeext conftest.$ac_ext
6072LIBS=$ac_check_lib_save_LIBS 6030LIBS=$ac_check_lib_save_LIBS
6073fi 6031fi
6074{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6075echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 6033$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6076if test $ac_cv_lib_nsl_gethostbyname = yes; then 6034if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6077 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6035 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6078fi 6036fi
6079 6037
6080 if test $ac_cv_lib_nsl_gethostbyname = no; then 6038 if test $ac_cv_lib_nsl_gethostbyname = no; then
6081 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6082echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 6040$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6083if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 6041if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
6084 echo $ECHO_N "(cached) $ECHO_C" >&6 6042 $as_echo_n "(cached) " >&6
6085else 6043else
6086 ac_check_lib_save_LIBS=$LIBS 6044 ac_check_lib_save_LIBS=$LIBS
6087LIBS="-lbsd $LIBS" 6045LIBS="-lbsd $LIBS"
6088cat >conftest.$ac_ext <<_ACEOF
6089/* confdefs.h. */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext 6046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h. */ 6047/* end confdefs.h. */
6094 6048
6095/* Override any GCC internal prototype to avoid an error. 6049/* Override any GCC internal prototype to avoid an error.
6096 Use char because int might match the return type of a GCC 6050 Use char because int might match the return type of a GCC
6097 builtin and then its argument prototype would still apply. */ 6051 builtin and then its argument prototype would still apply. */
6105return gethostbyname (); 6059return gethostbyname ();
6106 ; 6060 ;
6107 return 0; 6061 return 0;
6108} 6062}
6109_ACEOF 6063_ACEOF
6110rm -f conftest.$ac_objext conftest$ac_exeext 6064if 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 6065 ac_cv_lib_bsd_gethostbyname=yes
6129else 6066else
6130 echo "$as_me: failed program was:" >&5
6131sed 's/^/| /' conftest.$ac_ext >&5
6132
6133 ac_cv_lib_bsd_gethostbyname=no 6067 ac_cv_lib_bsd_gethostbyname=no
6134fi 6068fi
6135
6136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6069rm -f core conftest.err conftest.$ac_objext \
6137 conftest$ac_exeext conftest.$ac_ext 6070 conftest$ac_exeext conftest.$ac_ext
6138LIBS=$ac_check_lib_save_LIBS 6071LIBS=$ac_check_lib_save_LIBS
6139fi 6072fi
6140{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6141echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 6074$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6142if test $ac_cv_lib_bsd_gethostbyname = yes; then 6075if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
6143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6076 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6144fi 6077fi
6145 6078
6146 fi 6079 fi
6147 fi 6080 fi
6151 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 6084 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6152 # on later versions), says Simon Leinen: it contains gethostby* 6085 # on later versions), says Simon Leinen: it contains gethostby*
6153 # variants that don't use the name server (or something). -lsocket 6086 # variants that don't use the name server (or something). -lsocket
6154 # must be given before -lnsl if both are needed. We assume that 6087 # must be given before -lnsl if both are needed. We assume that
6155 # if connect needs -lnsl, so does gethostbyname. 6088 # if connect needs -lnsl, so does gethostbyname.
6156 { echo "$as_me:$LINENO: checking for connect" >&5 6089 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6157echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6158if test "${ac_cv_func_connect+set}" = set; then 6090if test "x$ac_cv_func_connect" = xyes; 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 6091
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 6092fi
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 6093
6238 if test $ac_cv_func_connect = no; then 6094 if test $ac_cv_func_connect = no; then
6239 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6240echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 6096$as_echo_n "checking for connect in -lsocket... " >&6; }
6241if test "${ac_cv_lib_socket_connect+set}" = set; then 6097if ${ac_cv_lib_socket_connect+:} false; then :
6242 echo $ECHO_N "(cached) $ECHO_C" >&6 6098 $as_echo_n "(cached) " >&6
6243else 6099else
6244 ac_check_lib_save_LIBS=$LIBS 6100 ac_check_lib_save_LIBS=$LIBS
6245LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6101LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6246cat >conftest.$ac_ext <<_ACEOF
6247/* confdefs.h. */
6248_ACEOF
6249cat confdefs.h >>conftest.$ac_ext 6102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250cat >>conftest.$ac_ext <<_ACEOF
6251/* end confdefs.h. */ 6103/* end confdefs.h. */
6252 6104
6253/* Override any GCC internal prototype to avoid an error. 6105/* Override any GCC internal prototype to avoid an error.
6254 Use char because int might match the return type of a GCC 6106 Use char because int might match the return type of a GCC
6255 builtin and then its argument prototype would still apply. */ 6107 builtin and then its argument prototype would still apply. */
6263return connect (); 6115return connect ();
6264 ; 6116 ;
6265 return 0; 6117 return 0;
6266} 6118}
6267_ACEOF 6119_ACEOF
6268rm -f conftest.$ac_objext conftest$ac_exeext 6120if 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 6121 ac_cv_lib_socket_connect=yes
6287else 6122else
6288 echo "$as_me: failed program was:" >&5
6289sed 's/^/| /' conftest.$ac_ext >&5
6290
6291 ac_cv_lib_socket_connect=no 6123 ac_cv_lib_socket_connect=no
6292fi 6124fi
6293
6294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6125rm -f core conftest.err conftest.$ac_objext \
6295 conftest$ac_exeext conftest.$ac_ext 6126 conftest$ac_exeext conftest.$ac_ext
6296LIBS=$ac_check_lib_save_LIBS 6127LIBS=$ac_check_lib_save_LIBS
6297fi 6128fi
6298{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6299echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 6130$as_echo "$ac_cv_lib_socket_connect" >&6; }
6300if test $ac_cv_lib_socket_connect = yes; then 6131if test "x$ac_cv_lib_socket_connect" = xyes; then :
6301 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6132 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6302fi 6133fi
6303 6134
6304 fi 6135 fi
6305 6136
6306 # Guillermo Gomez says -lposix is necessary on A/UX. 6137 # Guillermo Gomez says -lposix is necessary on A/UX.
6307 { echo "$as_me:$LINENO: checking for remove" >&5 6138 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6308echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
6309if test "${ac_cv_func_remove+set}" = set; then 6139if test "x$ac_cv_func_remove" = xyes; 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 6140
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 6141fi
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 6142
6389 if test $ac_cv_func_remove = no; then 6143 if test $ac_cv_func_remove = no; then
6390 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6391echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 6145$as_echo_n "checking for remove in -lposix... " >&6; }
6392if test "${ac_cv_lib_posix_remove+set}" = set; then 6146if ${ac_cv_lib_posix_remove+:} false; then :
6393 echo $ECHO_N "(cached) $ECHO_C" >&6 6147 $as_echo_n "(cached) " >&6
6394else 6148else
6395 ac_check_lib_save_LIBS=$LIBS 6149 ac_check_lib_save_LIBS=$LIBS
6396LIBS="-lposix $LIBS" 6150LIBS="-lposix $LIBS"
6397cat >conftest.$ac_ext <<_ACEOF
6398/* confdefs.h. */
6399_ACEOF
6400cat confdefs.h >>conftest.$ac_ext 6151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401cat >>conftest.$ac_ext <<_ACEOF
6402/* end confdefs.h. */ 6152/* end confdefs.h. */
6403 6153
6404/* Override any GCC internal prototype to avoid an error. 6154/* Override any GCC internal prototype to avoid an error.
6405 Use char because int might match the return type of a GCC 6155 Use char because int might match the return type of a GCC
6406 builtin and then its argument prototype would still apply. */ 6156 builtin and then its argument prototype would still apply. */
6414return remove (); 6164return remove ();
6415 ; 6165 ;
6416 return 0; 6166 return 0;
6417} 6167}
6418_ACEOF 6168_ACEOF
6419rm -f conftest.$ac_objext conftest$ac_exeext 6169if 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 6170 ac_cv_lib_posix_remove=yes
6438else 6171else
6439 echo "$as_me: failed program was:" >&5
6440sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 ac_cv_lib_posix_remove=no 6172 ac_cv_lib_posix_remove=no
6443fi 6173fi
6444
6445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6174rm -f core conftest.err conftest.$ac_objext \
6446 conftest$ac_exeext conftest.$ac_ext 6175 conftest$ac_exeext conftest.$ac_ext
6447LIBS=$ac_check_lib_save_LIBS 6176LIBS=$ac_check_lib_save_LIBS
6448fi 6177fi
6449{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6450echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 6179$as_echo "$ac_cv_lib_posix_remove" >&6; }
6451if test $ac_cv_lib_posix_remove = yes; then 6180if test "x$ac_cv_lib_posix_remove" = xyes; then :
6452 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 6181 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6453fi 6182fi
6454 6183
6455 fi 6184 fi
6456 6185
6457 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6186 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6458 { echo "$as_me:$LINENO: checking for shmat" >&5 6187 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6459echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
6460if test "${ac_cv_func_shmat+set}" = set; then 6188if test "x$ac_cv_func_shmat" = xyes; 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 6189
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 6190fi
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 6191
6540 if test $ac_cv_func_shmat = no; then 6192 if test $ac_cv_func_shmat = no; then
6541 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6542echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 6194$as_echo_n "checking for shmat in -lipc... " >&6; }
6543if test "${ac_cv_lib_ipc_shmat+set}" = set; then 6195if ${ac_cv_lib_ipc_shmat+:} false; then :
6544 echo $ECHO_N "(cached) $ECHO_C" >&6 6196 $as_echo_n "(cached) " >&6
6545else 6197else
6546 ac_check_lib_save_LIBS=$LIBS 6198 ac_check_lib_save_LIBS=$LIBS
6547LIBS="-lipc $LIBS" 6199LIBS="-lipc $LIBS"
6548cat >conftest.$ac_ext <<_ACEOF
6549/* confdefs.h. */
6550_ACEOF
6551cat confdefs.h >>conftest.$ac_ext 6200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552cat >>conftest.$ac_ext <<_ACEOF
6553/* end confdefs.h. */ 6201/* end confdefs.h. */
6554 6202
6555/* Override any GCC internal prototype to avoid an error. 6203/* Override any GCC internal prototype to avoid an error.
6556 Use char because int might match the return type of a GCC 6204 Use char because int might match the return type of a GCC
6557 builtin and then its argument prototype would still apply. */ 6205 builtin and then its argument prototype would still apply. */
6565return shmat (); 6213return shmat ();
6566 ; 6214 ;
6567 return 0; 6215 return 0;
6568} 6216}
6569_ACEOF 6217_ACEOF
6570rm -f conftest.$ac_objext conftest$ac_exeext 6218if 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 6219 ac_cv_lib_ipc_shmat=yes
6589else 6220else
6590 echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_cv_lib_ipc_shmat=no 6221 ac_cv_lib_ipc_shmat=no
6594fi 6222fi
6595
6596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6223rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext 6224 conftest$ac_exeext conftest.$ac_ext
6598LIBS=$ac_check_lib_save_LIBS 6225LIBS=$ac_check_lib_save_LIBS
6599fi 6226fi
6600{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6601echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 6228$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6602if test $ac_cv_lib_ipc_shmat = yes; then 6229if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
6603 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6230 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6604fi 6231fi
6605 6232
6606 fi 6233 fi
6607 fi 6234 fi
6613 # check for ICE first), but we must link in the order -lSM -lICE or 6240 # 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. 6241 # 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 6242 # These have to be linked with before -lX11, unlike the other
6616 # libraries we check for below, so use a different variable. 6243 # libraries we check for below, so use a different variable.
6617 # John Interrante, Karl Berry 6244 # John Interrante, Karl Berry
6618 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6619echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 6246$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6620if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 6247if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
6621 echo $ECHO_N "(cached) $ECHO_C" >&6 6248 $as_echo_n "(cached) " >&6
6622else 6249else
6623 ac_check_lib_save_LIBS=$LIBS 6250 ac_check_lib_save_LIBS=$LIBS
6624LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6251LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6625cat >conftest.$ac_ext <<_ACEOF
6626/* confdefs.h. */
6627_ACEOF
6628cat confdefs.h >>conftest.$ac_ext 6252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629cat >>conftest.$ac_ext <<_ACEOF
6630/* end confdefs.h. */ 6253/* end confdefs.h. */
6631 6254
6632/* Override any GCC internal prototype to avoid an error. 6255/* Override any GCC internal prototype to avoid an error.
6633 Use char because int might match the return type of a GCC 6256 Use char because int might match the return type of a GCC
6634 builtin and then its argument prototype would still apply. */ 6257 builtin and then its argument prototype would still apply. */
6642return IceConnectionNumber (); 6265return IceConnectionNumber ();
6643 ; 6266 ;
6644 return 0; 6267 return 0;
6645} 6268}
6646_ACEOF 6269_ACEOF
6647rm -f conftest.$ac_objext conftest$ac_exeext 6270if ac_fn_cxx_try_link "$LINENO"; then :
6648if { (ac_try="$ac_link" 6271 ac_cv_lib_ICE_IceConnectionNumber=yes
6649case "(($ac_try" in 6272else
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6273 ac_cv_lib_ICE_IceConnectionNumber=no
6651 *) ac_try_echo=$ac_try;; 6274fi
6275rm -f core conftest.err conftest.$ac_objext \
6276 conftest$ac_exeext conftest.$ac_ext
6277LIBS=$ac_check_lib_save_LIBS
6278fi
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6280$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6281if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
6282 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6283fi
6284
6285 LDFLAGS=$ac_save_LDFLAGS
6286
6287fi
6288
6289
6290image_lib=none
6291
6292PIXBUF_CFLAGS=
6293PIXBUF_LIBS=
6294
6295if test x$support_pixbuf = xyes; then
6296 support_pixbuf=no
6297 # Extract the first word of "pkg-config", so it can be a program name with args.
6298set dummy pkg-config; ac_word=$2
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300$as_echo_n "checking for $ac_word... " >&6; }
6301if ${ac_cv_path_PKG_CONFIG+:} false; then :
6302 $as_echo_n "(cached) " >&6
6303else
6304 case $PKG_CONFIG in
6305 [\\/]* | ?:[\\/]*)
6306 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6307 ;;
6308 *)
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320done
6321 done
6322IFS=$as_save_IFS
6323
6324 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6325 ;;
6652esac 6326esac
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 6327fi
6672 6328PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6329if test -n "$PKG_CONFIG"; then
6674 conftest$ac_exeext conftest.$ac_ext 6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6675LIBS=$ac_check_lib_save_LIBS 6331$as_echo "$PKG_CONFIG" >&6; }
6332else
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334$as_echo "no" >&6; }
6676fi 6335fi
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 6336
6683 LDFLAGS=$ac_save_LDFLAGS
6684 6337
6685fi 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5
6339$as_echo_n "checking for gdk-pixbuf... " >&6; }
6340 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
6341 PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`"
6342 PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`"
6343 support_pixbuf=yes
6344 fi
6686 6345
6687
6688
6689if test x$support_xpm = xyes; then 6346 if test x$support_pixbuf = xyes; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6348$as_echo "ok" >&6; }
6349 image_lib=gdk-pixbuf
6350 support_afterimage=no
6690 6351
6352$as_echo "#define HAVE_PIXBUF 1" >>confdefs.h
6691 6353
6692 6354
6693# Initialize some more variables set by options. 6355$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6694# The variables have the same names as the options, with
6695# dashes changed to underlines.
6696 6356
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 6357 else
6738 vt_xpm_includes=NO 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359$as_echo "no" >&6; }
6739 fi 6360 fi
6740 if test -n "$xpm_libraries"; then 6361fi
6741 vt_xpm_libraries=$xpm_libraries 6362
6363
6364
6365
6366STARTUP_NOTIFICATION_CFLAGS=
6367STARTUP_NOTIFICATION_LIBS=
6368
6369if test x$support_startup_notification = xyes; then
6370 support_startup_notification=no
6371 # Extract the first word of "pkg-config", so it can be a program name with args.
6372set dummy pkg-config; ac_word=$2
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374$as_echo_n "checking for $ac_word... " >&6; }
6375if ${ac_cv_path_PKG_CONFIG+:} false; then :
6376 $as_echo_n "(cached) " >&6
6377else
6378 case $PKG_CONFIG in
6379 [\\/]* | ?:[\\/]*)
6380 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6381 ;;
6382 *)
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH
6385do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6390 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394done
6395 done
6396IFS=$as_save_IFS
6397
6398 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6399 ;;
6400esac
6401fi
6402PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6403if test -n "$PKG_CONFIG"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6405$as_echo "$PKG_CONFIG" >&6; }
6406else
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408$as_echo "no" >&6; }
6409fi
6410
6411
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5
6413$as_echo_n "checking for libstartup-notification... " >&6; }
6414 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
6415 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`"
6416 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`"
6417 support_startup_notification=yes
6418 fi
6419
6420 if test x$support_startup_notification = xyes; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6422$as_echo "ok" >&6; }
6423
6424$as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
6425
6742 else 6426 else
6743 vt_xpm_libraries=NO 6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428$as_echo "no" >&6; }
6744 fi 6429 fi
6430fi
6745 6431
6746 if test "$vt_xpm_includes" = NO; then
6747 # Guess where to find xpm.h
6748 6432
6749ac_save_CPPFLAGS="$CPPFLAGS"
6750CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6751 6433
6752 # First, try using that file with no special directory specified. 6434
6753cat >conftest.$ac_ext <<_ACEOF 6435AFTERIMAGE_CFLAGS=
6754/* confdefs.h. */ 6436AFTERIMAGE_LIBS=
6755_ACEOF 6437AFTERIMAGE_VERSION=
6756cat confdefs.h >>conftest.$ac_ext 6438
6757cat >>conftest.$ac_ext <<_ACEOF 6439if test x$support_afterimage = xyes; then
6758/* end confdefs.h. */ 6440 support_afterimage=no
6759#include <X11/xpm.h> 6441
6760_ACEOF 6442 if test "x$afterimage_config" = "x" ; then
6761if { (ac_try="$ac_cpp conftest.$ac_ext" 6443 # Extract the first word of "afterimage-config", so it can be a program name with args.
6762case "(($ac_try" in 6444set dummy afterimage-config; ac_word=$2
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 *) ac_try_echo=$ac_try;; 6446$as_echo_n "checking for $ac_word... " >&6; }
6447if ${ac_cv_path_afterimage_config+:} false; then :
6448 $as_echo_n "(cached) " >&6
6449else
6450 case $afterimage_config in
6451 [\\/]* | ?:[\\/]*)
6452 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6453 ;;
6454 *)
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466done
6467 done
6468IFS=$as_save_IFS
6469
6470 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6471 ;;
6765esac 6472esac
6766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6473fi
6767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6474afterimage_config=$ac_cv_path_afterimage_config
6768 ac_status=$? 6475if test -n "$afterimage_config"; then
6769 grep -v '^ *+' conftest.er1 >conftest.err 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afterimage_config" >&5
6770 rm -f conftest.er1 6477$as_echo "$afterimage_config" >&6; }
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 6478else
6781 echo "$as_me: failed program was:" >&5 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782sed 's/^/| /' conftest.$ac_ext >&5 6480$as_echo "no" >&6; }
6481fi
6783 6482
6784 CPPFLAGS="$ac_save_CPPFLAGS" 6483
6785# Look for the header file in a standard set of common directories. 6484 fi
6786 for ac_dir in \ 6485 if test "x$afterimage_config" != "xno" ; then
6787 /usr/X11/include \ 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5
6788 /usr/X11R6/include \ 6487$as_echo_n "checking for libAfterImage version >= 1.15... " >&6; }
6789 /usr/X11R5/include \ 6488 xAFTERIMAGE_VERSION=`$afterimage_config --version`
6790 /usr/X11R4/include \ 6489 if test -n "$xAFTERIMAGE_VERSION" ; then
6791 \ 6490 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6792 /usr/include/X11 \ 6491 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6793 /usr/include/X11R6 \ 6492 if test "x$xAFTERIMAGE_LIBS" != "x"; then
6794 /usr/include/X11R5 \ 6493 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
6795 /usr/include/X11R4 \ 6494 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
6796 \ 6495 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6797 /usr/local/X11/include \ 6496 support_afterimage=yes
6798 /usr/local/X11R6/include \ 6497 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6799 /usr/local/X11R5/include \ 6498 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6800 /usr/local/X11R4/include \ 6499 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6801 \ 6500 fi
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 6501 fi
6831 fi 6502 fi
6503 if test "x$support_afterimage" = "xyes"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5
6505$as_echo "$AFTERIMAGE_LIBS" >&6; }
6506 image_lib=libafterimage
6507
6508$as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h
6509
6510
6511$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6512
6513 else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515$as_echo "no" >&6; }
6516 fi
6517 fi
6518fi
6519
6520
6521
6522
6523for ac_header in \
6524 sys/byteorder.h \
6525 sys/ioctl.h \
6526 sys/sockio.h \
6527 sys/strredir.h \
6528 stdint.h \
6529 wchar.h \
6530 cwchar \
6531
6532do :
6533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6534ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6535if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6536 cat >>confdefs.h <<_ACEOF
6537#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6538_ACEOF
6539
6540fi
6541
6832 done 6542done
6833fi
6834 6543
6835rm -f conftest.err conftest.$ac_ext
6836fi
6837 6544
6838if test "$vt_xpm_libraries" = NO; then 6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
6839 # Check for the libraries. 6546$as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
6840 6547if ${rxvt_cv_xlib_illegal_access+:} false; then :
6841 # See if we find them without any special options. 6548 $as_echo_n "(cached) " >&6
6842 # Don't add to $LIBS permanently. 6549else
6843 ac_save_LIBS="$LIBS"
6844 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6845cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h. */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext 6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h. */ 6551/* end confdefs.h. */
6552
6553#define XLIB_ILLEGAL_ACCESS
6554#include <X11/Xlib.h>
6851 6555
6852int 6556int
6853main () 6557main ()
6854{ 6558{
6855XpmReadFileToPixmap() 6559
6560 Display *dpy;
6561 dpy->xdefaults = (char *)0;
6562
6856 ; 6563 ;
6857 return 0; 6564 return 0;
6858} 6565}
6859_ACEOF 6566_ACEOF
6860rm -f conftest.$ac_objext conftest$ac_exeext 6567if ac_fn_cxx_try_compile "$LINENO"; then :
6861if { (ac_try="$ac_link" 6568 rxvt_cv_xlib_illegal_access=yes
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 6569else
6882 echo "$as_me: failed program was:" >&5 6570 rxvt_cv_xlib_illegal_access=no
6883sed 's/^/| /' conftest.$ac_ext >&5
6884 6571
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 6572fi
6932
6933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934 conftest$ac_exeext conftest.$ac_ext
6935fi 6574fi
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6576$as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6577if test x$rxvt_cv_xlib_illegal_access = xyes; then
6936 6578
6579$as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6937 6580
6938 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then 6581fi
6939 ac_cv_have_xpm="have_xpm=no" 6582
6583ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6584if test "x$ac_cv_type_mode_t" = xyes; then :
6585
6940 else 6586else
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 6587
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
6999 fi
7000 fi
7001 vt_xpm_includes=$xpm_includes
7002 fi
7003 if test "x$xpm_libraries" != xNO; then
7004 vt_xpm_libraries=$xpm_libraries
7005 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 6588cat >>confdefs.h <<_ACEOF
7026#define XPM_INC_X11 1 6589#define mode_t int
7027_ACEOF 6590_ACEOF
7028 6591
7029 fi
7030fi 6592fi
7031 6593
6594ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6595if test "x$ac_cv_type_pid_t" = xyes; then :
7032 6596
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 6597else
7046 cat >conftest.$ac_ext <<_ACEOF 6598
7047/* confdefs.h. */ 6599cat >>confdefs.h <<_ACEOF
6600#define pid_t int
7048_ACEOF 6601_ACEOF
6602
6603fi
6604
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6606$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6607if ${ac_cv_type_uid_t+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609else
7049cat confdefs.h >>conftest.$ac_ext 6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050cat >>conftest.$ac_ext <<_ACEOF
7051/* end confdefs.h. */ 6611/* end confdefs.h. */
7052#include <sys/types.h> 6612#include <sys/types.h>
6613
6614_ACEOF
6615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6616 $EGREP "uid_t" >/dev/null 2>&1; then :
6617 ac_cv_type_uid_t=yes
6618else
6619 ac_cv_type_uid_t=no
6620fi
6621rm -f conftest*
6622
6623fi
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6625$as_echo "$ac_cv_type_uid_t" >&6; }
6626if test $ac_cv_type_uid_t = no; then
6627
6628$as_echo "#define uid_t int" >>confdefs.h
6629
6630
6631$as_echo "#define gid_t int" >>confdefs.h
6632
6633fi
6634
6635ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6636case $ac_cv_c_int16_t in #(
6637 no|yes) ;; #(
6638 *)
6639
6640cat >>confdefs.h <<_ACEOF
6641#define int16_t $ac_cv_c_int16_t
6642_ACEOF
6643;;
6644esac
6645
6646ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6647case $ac_cv_c_uint16_t in #(
6648 no|yes) ;; #(
6649 *)
6650
6651
6652cat >>confdefs.h <<_ACEOF
6653#define uint16_t $ac_cv_c_uint16_t
6654_ACEOF
6655;;
6656 esac
6657
6658ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6659case $ac_cv_c_int32_t in #(
6660 no|yes) ;; #(
6661 *)
6662
6663cat >>confdefs.h <<_ACEOF
6664#define int32_t $ac_cv_c_int32_t
6665_ACEOF
6666;;
6667esac
6668
6669ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6670case $ac_cv_c_uint32_t in #(
6671 no|yes) ;; #(
6672 *)
6673
6674$as_echo "#define _UINT32_T 1" >>confdefs.h
6675
6676
6677cat >>confdefs.h <<_ACEOF
6678#define uint32_t $ac_cv_c_uint32_t
6679_ACEOF
6680;;
6681 esac
6682
6683
6684for ac_func in unsetenv
6685do :
6686 ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6687if test "x$ac_cv_func_unsetenv" = xyes; then :
6688 cat >>confdefs.h <<_ACEOF
6689#define HAVE_UNSETENV 1
6690_ACEOF
6691
6692fi
6693done
6694
6695
6696
6697support_utmp=yes
6698support_wtmp=yes
6699support_lastlog=yes
6700
6701# Check whether --enable-utmp was given.
6702if test "${enable_utmp+set}" = set; then :
6703 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
6704 support_utmp=$enableval
6705 fi
6706fi
6707
6708
6709# Check whether --enable-wtmp was given.
6710if test "${enable_wtmp+set}" = set; then :
6711 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
6712 support_wtmp=$enableval
6713 fi
6714fi
6715
6716
6717# Check whether --enable-lastlog was given.
6718if test "${enable_lastlog+set}" = set; then :
6719 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
6720 support_lastlog=$enableval
6721 fi
6722fi
6723
6724
6725if test x$support_utmp = xyes; then
6726
6727$as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
6728
6729fi
6730if test x$support_wtmp = xyes; then
6731
6732$as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
6733
6734fi
6735if test x$support_lastlog = xyes; then
6736
6737$as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
6738
6739fi
6740
6741for ac_func in \
6742 updwtmp \
6743 updwtmpx \
6744 updlastlogx \
6745
6746do :
6747 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6748ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6749if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6750 cat >>confdefs.h <<_ACEOF
6751#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6752_ACEOF
6753
6754fi
6755done
6756
6757
6758for ac_header in lastlog.h
6759do :
6760 ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
6761if test "x$ac_cv_header_lastlog_h" = xyes; then :
6762 cat >>confdefs.h <<_ACEOF
6763#define HAVE_LASTLOG_H 1
6764_ACEOF
6765
6766fi
6767
6768done
6769
6770
6771
6772for ac_header in utmp.h
6773do :
6774 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6775if test "x$ac_cv_header_utmp_h" = xyes; then :
6776 cat >>confdefs.h <<_ACEOF
6777#define HAVE_UTMP_H 1
6778_ACEOF
6779 ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
7053#include <sys/wait.h> 6780#include <sys/types.h>
7054#ifndef WEXITSTATUS 6781#include <utmp.h>
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 6782
6783"
6784if test "x$ac_cv_type_struct_utmp" = xyes; then :
6785
6786cat >>confdefs.h <<_ACEOF
6787#define HAVE_STRUCT_UTMP 1
6788_ACEOF
6789
6790
6791fi
6792
6793
6794
6795# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
6796# ------------------------------------------------------
6797# Tries to find if the field MEMBER exists in type AGGR, after including
6798# INCLUDES, setting cache variable VAR accordingly.
6799ac_fn_cxx_check_member ()
6800{
6801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
6803$as_echo_n "checking for $2.$3... " >&6; }
6804if eval \${$4+:} false; then :
6805 $as_echo_n "(cached) " >&6
6806else
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h. */
6809$5
7061int 6810int
7062main () 6811main ()
7063{ 6812{
7064 int s; 6813static $2 ac_aggr;
7065 wait (&s); 6814if (ac_aggr.$3)
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
7368for 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 \
7377 sys/ioctl.h \
7378 sys/select.h \
7379 sys/sockio.h \
7380 sys/strredir.h \
7381 sys/time.h \
7382 stdint.h \
7383 wchar.h \
7384 cwchar \
7385 clocale \
7386
7387do
7388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394fi
7395ac_res=`eval echo '${'$as_ac_Header'}'`
7396 { echo "$as_me:$LINENO: result: $ac_res" >&5
7397echo "${ECHO_T}$ac_res" >&6; }
7398else
7399 # Is the header compilable?
7400{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7402cat >conftest.$ac_ext <<_ACEOF
7403/* confdefs.h. */
7404_ACEOF
7405cat confdefs.h >>conftest.$ac_ext
7406cat >>conftest.$ac_ext <<_ACEOF
7407/* end confdefs.h. */
7408$ac_includes_default
7409#include <$ac_header>
7410_ACEOF
7411rm -f conftest.$ac_objext
7412if { (ac_try="$ac_compile"
7413case "(($ac_try" in
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7416esac
7417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_compile") 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_cxx_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.$ac_objext; then
7428 ac_header_compiler=yes
7429else
7430 echo "$as_me: failed program was:" >&5
7431sed 's/^/| /' conftest.$ac_ext >&5
7432
7433 ac_header_compiler=no
7434fi
7435
7436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7438echo "${ECHO_T}$ac_header_compiler" >&6; }
7439
7440# Is the header present?
7441{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7442echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7443cat >conftest.$ac_ext <<_ACEOF
7444/* confdefs.h. */
7445_ACEOF
7446cat confdefs.h >>conftest.$ac_ext
7447cat >>conftest.$ac_ext <<_ACEOF
7448/* end confdefs.h. */
7449#include <$ac_header>
7450_ACEOF
7451if { (ac_try="$ac_cpp conftest.$ac_ext"
7452case "(($ac_try" in
7453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454 *) ac_try_echo=$ac_try;;
7455esac
7456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7458 ac_status=$?
7459 grep -v '^ *+' conftest.er1 >conftest.err
7460 rm -f conftest.er1
7461 cat conftest.err >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } >/dev/null && {
7464 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7465 test ! -s conftest.err
7466 }; then
7467 ac_header_preproc=yes
7468else
7469 echo "$as_me: failed program was:" >&5
7470sed 's/^/| /' conftest.$ac_ext >&5
7471
7472 ac_header_preproc=no
7473fi
7474
7475rm -f conftest.err conftest.$ac_ext
7476{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7477echo "${ECHO_T}$ac_header_preproc" >&6; }
7478
7479# So? What about this header?
7480case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7481 yes:no: )
7482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7486 ac_header_preproc=yes
7487 ;;
7488 no:yes:* )
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7501
7502 ;;
7503esac
7504{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7508else
7509 eval "$as_ac_Header=\$ac_header_preproc"
7510fi
7511ac_res=`eval echo '${'$as_ac_Header'}'`
7512 { echo "$as_me:$LINENO: result: $ac_res" >&5
7513echo "${ECHO_T}$ac_res" >&6; }
7514
7515fi
7516if test `eval echo '${'$as_ac_Header'}'` = yes; then
7517 cat >>confdefs.h <<_ACEOF
7518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7519_ACEOF
7520
7521fi
7522
7523done
7524
7525
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; 6815return 0;
7546 ; 6816 ;
7547 return 0; 6817 return 0;
7548} 6818}
7549_ACEOF 6819_ACEOF
7550rm -f conftest.$ac_objext 6820if ac_fn_cxx_try_compile "$LINENO"; then :
7551if { (ac_try="$ac_compile" 6821 eval "$4=yes"
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 6822else
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 6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597cat >>conftest.$ac_ext <<_ACEOF
7598/* end confdefs.h. */ 6824/* end confdefs.h. */
7599#include <stdio.h> 6825$5
7600#include <sys/ioctl.h>
7601#ifdef HAVE_TERMIOS_H
7602#include <termios.h>
7603#endif
7604int 6826int
7605main () 6827main ()
7606{ 6828{
7607int a = ECHO; 6829static $2 ac_aggr;
6830if (sizeof ac_aggr.$3)
6831return 0;
7608 ; 6832 ;
7609 return 0; 6833 return 0;
7610} 6834}
7611_ACEOF 6835_ACEOF
7612rm -f conftest.$ac_objext 6836if ac_fn_cxx_try_compile "$LINENO"; then :
7613if { (ac_try="$ac_compile" 6837 eval "$4=yes"
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 6838else
7631 echo "$as_me: failed program was:" >&5 6839 eval "$4=no"
7632sed 's/^/| /' conftest.$ac_ext >&5
7633
7634 rxvt_cv_header_sysioctl=no
7635fi 6840fi
7636
7637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638fi 6842fi
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
7779echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7780if test "${rxvt_cv_xpointer+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7782else
7783 cat >conftest.$ac_ext <<_ACEOF
7784/* confdefs.h. */
7785_ACEOF
7786cat confdefs.h >>conftest.$ac_ext
7787cat >>conftest.$ac_ext <<_ACEOF
7788/* end confdefs.h. */
7789#include <X11/Xlib.h>
7790int
7791main ()
7792{
7793XPointer dummy;
7794 ;
7795 return 0;
7796}
7797_ACEOF
7798rm -f conftest.$ac_objext
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
7816else
7817 echo "$as_me: failed program was:" >&5
7818sed 's/^/| /' conftest.$ac_ext >&5
7819
7820 rxvt_cv_xpointer=no
7821fi
7822
7823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824fi 6844fi
7825{ echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5 6845eval ac_res=\$$4
7826echo "${ECHO_T}$rxvt_cv_xpointer" >&6; }
7827if test x$rxvt_cv_xpointer = xyes; then
7828
7829cat >>confdefs.h <<\_ACEOF
7830#define HAVE_XPOINTER 1
7831_ACEOF
7832
7833fi
7834LIBS=$ac_save_LIBS
7835CFLAGS=$ac_save_CFLAGS
7836
7837{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7838echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; }
7839if test "${rxvt_xlib_illegal_access+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841else
7842 cat >conftest.$ac_ext <<_ACEOF
7843/* confdefs.h. */
7844_ACEOF
7845cat confdefs.h >>conftest.$ac_ext
7846cat >>conftest.$ac_ext <<_ACEOF
7847/* end confdefs.h. */
7848
7849#define XLIB_ILLEGAL_ACCESS
7850#include <X11/Xlib.h>
7851
7852int
7853main ()
7854{
7855
7856 Display *dpy;
7857 dpy->xdefaults = (char *)0;
7858
7859 ;
7860 return 0;
7861}
7862_ACEOF
7863rm -f conftest.$ac_objext
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
7881else
7882 echo "$as_me: failed program was:" >&5
7883sed 's/^/| /' conftest.$ac_ext >&5
7884
7885 rxvt_xlib_illegal_access=no
7886
7887fi
7888
7889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890fi
7891{ echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7892echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6; }
7893if test x$rxvt_xlib_illegal_access = xyes; then
7894
7895cat >>confdefs.h <<\_ACEOF
7896#define XLIB_ILLEGAL_ACCESS 1
7897_ACEOF
7898
7899fi
7900
7901{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
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
8132 :
8133else
8134
8135cat >>confdefs.h <<_ACEOF
8136#define mode_t int
8137_ACEOF
8138
8139fi
8140
8141{ echo "$as_me:$LINENO: checking for pid_t" >&5
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
8195 :
8196else
8197
8198cat >>confdefs.h <<_ACEOF
8199#define pid_t int
8200_ACEOF
8201
8202fi
8203
8204{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8205echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
8206if test "${ac_cv_type_uid_t+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8208else
8209 cat >conftest.$ac_ext <<_ACEOF
8210/* confdefs.h. */
8211_ACEOF
8212cat confdefs.h >>conftest.$ac_ext
8213cat >>conftest.$ac_ext <<_ACEOF
8214/* end confdefs.h. */
8215#include <sys/types.h>
8216
8217_ACEOF
8218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8219 $EGREP "uid_t" >/dev/null 2>&1; then
8220 ac_cv_type_uid_t=yes
8221else
8222 ac_cv_type_uid_t=no
8223fi
8224rm -f conftest*
8225
8226fi
8227{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8228echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
8229if test $ac_cv_type_uid_t = no; then
8230
8231cat >>confdefs.h <<\_ACEOF
8232#define uid_t int
8233_ACEOF
8234
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
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
8289 ac_cv_type_short=no
8290fi
8291
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
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
8313/* end confdefs.h. */
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
8326rm -f conftest.$ac_objext
8327if { (ac_try="$ac_compile"
8328case "(($ac_try" in
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8331esac
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
8359 ;
8360 return 0;
8361}
8362_ACEOF
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
8385 ac_lo=`expr $ac_mid + 1`
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
8642
8643cat >>confdefs.h <<_ACEOF
8644#define SIZEOF_SHORT $ac_cv_sizeof_short
8645_ACEOF
8646
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
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
8694 ac_cv_type_int=no
8695fi
8696
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 \
10263 unsetenv \
10264 setutent \
10265 on_exit \
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 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10350echo "${ECHO_T}$ac_res" >&6; } 6847$as_echo "$ac_res" >&6; }
10351if test `eval echo '${'$as_ac_var'}'` = yes; then 6848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
10352 cat >>confdefs.h <<_ACEOF
10353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10354_ACEOF
10355 6849
10356fi 6850} # ac_fn_cxx_check_member
10357done 6851ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
10358
10359
10360
10361support_utmp=yes
10362support_wtmp=yes
10363support_lastlog=yes
10364
10365# Check whether --enable-utmp was given.
10366if test "${enable_utmp+set}" = set; then
10367 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
10368 support_utmp=$enableval
10369 fi
10370fi
10371
10372
10373# Check whether --enable-wtmp was given.
10374if test "${enable_wtmp+set}" = set; then
10375 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
10376 support_wtmp=$enableval
10377 fi
10378fi
10379
10380
10381# Check whether --enable-lastlog was given.
10382if test "${enable_lastlog+set}" = set; then
10383 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
10384 support_lastlog=$enableval
10385 fi
10386fi
10387
10388
10389if test x$support_utmp = xyes; then
10390
10391cat >>confdefs.h <<\_ACEOF
10392#define UTMP_SUPPORT 1
10393_ACEOF
10394
10395fi
10396if test x$support_wtmp = xyes; then
10397
10398cat >>confdefs.h <<\_ACEOF
10399#define WTMP_SUPPORT 1
10400_ACEOF
10401
10402fi
10403if test x$support_lastlog = xyes; then
10404
10405cat >>confdefs.h <<\_ACEOF
10406#define LASTLOG_SUPPORT 1
10407_ACEOF
10408
10409fi
10410
10411
10412
10413
10414for ac_func in \
10415 ttyslot \
10416 updwtmp \
10417 updwtmpx \
10418
10419do
10420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10421{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10423if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10425else
10426 cat >conftest.$ac_ext <<_ACEOF
10427/* confdefs.h. */
10428_ACEOF
10429cat confdefs.h >>conftest.$ac_ext
10430cat >>conftest.$ac_ext <<_ACEOF
10431/* end confdefs.h. */
10432/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10434#define $ac_func innocuous_$ac_func
10435
10436/* System header to define __stub macros and hopefully few prototypes,
10437 which can conflict with char $ac_func (); below.
10438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10439 <limits.h> exists even on freestanding compilers. */
10440
10441#ifdef __STDC__
10442# include <limits.h>
10443#else
10444# include <assert.h>
10445#endif
10446
10447#undef $ac_func
10448
10449/* Override any GCC internal prototype to avoid an error.
10450 Use char because int might match the return type of a GCC
10451 builtin and then its argument prototype would still apply. */
10452#ifdef __cplusplus
10453extern "C"
10454#endif
10455char $ac_func ();
10456/* The GNU C library defines this for functions which it implements
10457 to always fail with ENOSYS. Some functions are actually named
10458 something starting with __ and the normal name is an alias. */
10459#if defined __stub_$ac_func || defined __stub___$ac_func
10460choke me
10461#endif
10462
10463int
10464main ()
10465{
10466return $ac_func ();
10467 ;
10468 return 0;
10469}
10470_ACEOF
10471rm -f conftest.$ac_objext conftest$ac_exeext
10472if { (ac_try="$ac_link"
10473case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10476esac
10477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478 (eval "$ac_link") 2>conftest.er1
10479 ac_status=$?
10480 grep -v '^ *+' conftest.er1 >conftest.err
10481 rm -f conftest.er1
10482 cat conftest.err >&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } && {
10485 test -z "$ac_cxx_werror_flag" ||
10486 test ! -s conftest.err
10487 } && test -s conftest$ac_exeext &&
10488 $as_test_x conftest$ac_exeext; then
10489 eval "$as_ac_var=yes"
10490else
10491 echo "$as_me: failed program was:" >&5
10492sed 's/^/| /' conftest.$ac_ext >&5
10493
10494 eval "$as_ac_var=no"
10495fi
10496
10497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10498 conftest$ac_exeext conftest.$ac_ext
10499fi
10500ac_res=`eval echo '${'$as_ac_var'}'`
10501 { echo "$as_me:$LINENO: result: $ac_res" >&5
10502echo "${ECHO_T}$ac_res" >&6; }
10503if test `eval echo '${'$as_ac_var'}'` = yes; then
10504 cat >>confdefs.h <<_ACEOF
10505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10506_ACEOF
10507
10508fi
10509done
10510
10511
10512
10513
10514
10515for ac_header in \
10516 utmp.h \
10517 utmpx.h \
10518 lastlog.h \
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
10651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10652_ACEOF
10653
10654fi
10655
10656done
10657
10658
10659
10660if test "${ac_cv_header_utmp_h+set}" = set; then
10661 { echo "$as_me:$LINENO: checking for utmp.h" >&5
10662echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; }
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
10786 { echo "$as_me:$LINENO: checking for struct utmp" >&5
10787echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; }
10788if test "${struct_utmp+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790else
10791 cat >conftest.$ac_ext <<_ACEOF
10792/* confdefs.h. */
10793_ACEOF
10794cat confdefs.h >>conftest.$ac_ext
10795cat >>conftest.$ac_ext <<_ACEOF
10796/* end confdefs.h. */
10797#include <sys/types.h> 6852#include <sys/types.h>
10798#include <utmp.h> 6853#include <utmp.h>
10799int
10800main ()
10801{
10802struct utmp ut;
10803 ;
10804 return 0;
10805}
10806_ACEOF
10807rm -f conftest.$ac_objext
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
10825else
10826 echo "$as_me: failed program was:" >&5
10827sed 's/^/| /' conftest.$ac_ext >&5
10828 6854
10829 struct_utmp=no 6855"
10830fi 6856if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
10831 6857
10832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6858$as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
10833fi
10834{ echo "$as_me:$LINENO: result: $struct_utmp" >&5
10835echo "${ECHO_T}$struct_utmp" >&6; }
10836if test x$struct_utmp = xyes; then
10837 6859
10838cat >>confdefs.h <<\_ACEOF
10839#define HAVE_STRUCT_UTMP 1
10840_ACEOF
10841
10842fi 6860fi
10843 6861
10844 6862
10845{ echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 6863ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
10846echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6; }
10847if test "${struct_utmp_host+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10849else
10850 cat >conftest.$ac_ext <<_ACEOF
10851/* confdefs.h. */
10852_ACEOF
10853cat confdefs.h >>conftest.$ac_ext
10854cat >>conftest.$ac_ext <<_ACEOF
10855/* end confdefs.h. */
10856#include <sys/types.h> 6864#include <sys/types.h>
10857#include <utmp.h> 6865#include <utmp.h>
10858int
10859main ()
10860{
10861struct utmp ut; ut.ut_host;
10862 ;
10863 return 0;
10864}
10865_ACEOF
10866rm -f conftest.$ac_objext
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
10884else
10885 echo "$as_me: failed program was:" >&5
10886sed 's/^/| /' conftest.$ac_ext >&5
10887 6866
10888 struct_utmp_host=no 6867"
10889fi 6868if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
10890 6869
10891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6870$as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
10892fi
10893{ echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
10894echo "${ECHO_T}$struct_utmp_host" >&6; }
10895if test x$struct_utmp_host = xyes; then
10896 6871
6872fi
6873
6874
6875fi
6876
6877done
6878
6879
6880for ac_header in utmpx.h
6881do :
6882 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6883if test "x$ac_cv_header_utmpx_h" = xyes; then :
10897cat >>confdefs.h <<\_ACEOF 6884 cat >>confdefs.h <<_ACEOF
10898#define HAVE_UTMP_HOST 1 6885#define HAVE_UTMPX_H 1
10899_ACEOF 6886_ACEOF
10900 6887 ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" "
10901fi
10902
10903{ echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10904echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6; }
10905if test "${struct_utmp_pid+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10907else
10908 cat >conftest.$ac_ext <<_ACEOF
10909/* confdefs.h. */
10910_ACEOF
10911cat confdefs.h >>conftest.$ac_ext
10912cat >>conftest.$ac_ext <<_ACEOF
10913/* end confdefs.h. */
10914#include <sys/types.h>
10915#include <utmp.h>
10916int
10917main ()
10918{
10919struct utmp ut; ut.ut_pid;
10920 ;
10921 return 0;
10922}
10923_ACEOF
10924rm -f conftest.$ac_objext
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
10942else
10943 echo "$as_me: failed program was:" >&5
10944sed 's/^/| /' conftest.$ac_ext >&5
10945
10946 struct_utmp_pid=no
10947fi
10948
10949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950fi
10951{ echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
10952echo "${ECHO_T}$struct_utmp_pid" >&6; }
10953if test x$struct_utmp_pid = xyes; then
10954
10955cat >>confdefs.h <<\_ACEOF
10956#define HAVE_UTMP_PID 1
10957_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
11092echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; }
11093if test "${struct_utmpx+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11095else
11096 cat >conftest.$ac_ext <<_ACEOF
11097/* confdefs.h. */
11098_ACEOF
11099cat confdefs.h >>conftest.$ac_ext
11100cat >>conftest.$ac_ext <<_ACEOF
11101/* end confdefs.h. */
11102#include <sys/types.h> 6888#include <sys/types.h>
11103#include <utmpx.h> 6889#include <utmpx.h>
11104int
11105main ()
11106{
11107struct utmpx ut;
11108 ;
11109 return 0;
11110}
11111_ACEOF
11112rm -f conftest.$ac_objext
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
11130else
11131 echo "$as_me: failed program was:" >&5
11132sed 's/^/| /' conftest.$ac_ext >&5
11133 6890
11134 struct_utmpx=no 6891"
11135fi
11136
11137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11138fi
11139{ echo "$as_me:$LINENO: result: $struct_utmpx" >&5
11140echo "${ECHO_T}$struct_utmpx" >&6; }
11141if test x$struct_utmpx = xyes; then 6892if test "x$ac_cv_type_struct_utmpx" = xyes; then :
11142 6893
11143cat >>confdefs.h <<\_ACEOF 6894cat >>confdefs.h <<_ACEOF
11144#define HAVE_STRUCT_UTMPX 1 6895#define HAVE_STRUCT_UTMPX 1
11145_ACEOF 6896_ACEOF
11146 6897
11147fi
11148 6898
6899fi
11149 6900
11150{ echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 6901
11151echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6; } 6902ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
11152if test "${struct_utmpx_host+set}" = set; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11154else
11155 cat >conftest.$ac_ext <<_ACEOF
11156/* confdefs.h. */
11157_ACEOF
11158cat confdefs.h >>conftest.$ac_ext
11159cat >>conftest.$ac_ext <<_ACEOF
11160/* end confdefs.h. */
11161#include <sys/types.h> 6903#include <sys/types.h>
11162#include <utmpx.h> 6904#include <utmpx.h>
11163int
11164main ()
11165{
11166struct utmpx utx; utx.ut_host;
11167 ;
11168 return 0;
11169}
11170_ACEOF
11171rm -f conftest.$ac_objext
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
11189else
11190 echo "$as_me: failed program was:" >&5
11191sed 's/^/| /' conftest.$ac_ext >&5
11192 6905
11193 struct_utmpx_host=no 6906"
11194fi
11195
11196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11197fi
11198{ echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
11199echo "${ECHO_T}$struct_utmpx_host" >&6; }
11200if test x$struct_utmpx_host = xyes; then 6907if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
11201 6908
11202cat >>confdefs.h <<\_ACEOF 6909$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
11203#define HAVE_UTMPX_HOST 1
11204_ACEOF
11205 6910
11206fi 6911fi
11207 6912
11208{ echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 6913
11209echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6; } 6914ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_session" "ac_cv_member_struct_utmpx_ut_session" "
11210if test "${struct_utmpx_session+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212else
11213 cat >conftest.$ac_ext <<_ACEOF
11214/* confdefs.h. */
11215_ACEOF
11216cat confdefs.h >>conftest.$ac_ext
11217cat >>conftest.$ac_ext <<_ACEOF
11218/* end confdefs.h. */
11219#include <sys/types.h> 6915#include <sys/types.h>
11220#include <utmpx.h> 6916#include <utmpx.h>
11221int
11222main ()
11223{
11224struct utmpx utx; utx.ut_session;
11225 ;
11226 return 0;
11227}
11228_ACEOF
11229rm -f conftest.$ac_objext
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
11247else
11248 echo "$as_me: failed program was:" >&5
11249sed 's/^/| /' conftest.$ac_ext >&5
11250 6917
11251 struct_utmpx_session=no 6918"
11252fi
11253
11254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11255fi
11256{ echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
11257echo "${ECHO_T}$struct_utmpx_session" >&6; }
11258if test x$struct_utmpx_session = xyes; then 6919if test "x$ac_cv_member_struct_utmpx_ut_session" = xyes; then :
11259 6920
11260cat >>confdefs.h <<\_ACEOF 6921$as_echo "#define HAVE_UTMPX_SESSION 1" >>confdefs.h
11261#define HAVE_UTMPX_SESSION 1
11262_ACEOF
11263 6922
11264fi 6923fi
11265 6924
11266fi
11267 6925
6926fi
11268 6927
11269{ echo "$as_me:$LINENO: checking for struct lastlog" >&5 6928done
11270echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } 6929
11271if test "${struct_lastlog+set}" = set; then 6930ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11273else
11274 cat >conftest.$ac_ext <<_ACEOF
11275/* confdefs.h. */
11276_ACEOF
11277cat confdefs.h >>conftest.$ac_ext
11278cat >>conftest.$ac_ext <<_ACEOF
11279/* end confdefs.h. */
11280#include <sys/types.h> 6931#include <sys/types.h>
11281#include <utmp.h> 6932#include <utmp.h>
11282#ifdef HAVE_LASTLOG_H 6933#ifdef HAVE_LASTLOG_H
11283#include <lastlog.h> 6934#include <lastlog.h>
11284#endif 6935#endif
11285 6936
11286int 6937"
11287main ()
11288{
11289struct lastlog ll;
11290 ;
11291 return 0;
11292}
11293_ACEOF
11294rm -f conftest.$ac_objext
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
11312else
11313 echo "$as_me: failed program was:" >&5
11314sed 's/^/| /' conftest.$ac_ext >&5
11315
11316 struct_lastlog=no
11317fi
11318
11319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11320fi
11321{ echo "$as_me:$LINENO: result: $struct_lastlog" >&5
11322echo "${ECHO_T}$struct_lastlog" >&6; }
11323if test x$struct_lastlog = xyes; then 6938if test "x$ac_cv_type_struct_lastlog" = xyes; then :
11324 6939
11325cat >>confdefs.h <<\_ACEOF 6940cat >>confdefs.h <<_ACEOF
11326#define HAVE_STRUCT_LASTLOG 1 6941#define HAVE_STRUCT_LASTLOG 1
11327_ACEOF 6942_ACEOF
11328 6943
11329fi
11330 6944
11331{ echo "$as_me:$LINENO: checking for struct lastlogx" >&5 6945fi
11332echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6; } 6946
11333if test "${struct_lastlogx+set}" = set; then 6947
11334 echo $ECHO_N "(cached) $ECHO_C" >&6 6948ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" "
11335else
11336 cat >conftest.$ac_ext <<_ACEOF
11337/* confdefs.h. */
11338_ACEOF
11339cat confdefs.h >>conftest.$ac_ext
11340cat >>conftest.$ac_ext <<_ACEOF
11341/* end confdefs.h. */
11342#include <sys/types.h> 6949#include <sys/types.h>
11343#include <utmpx.h> 6950#include <utmpx.h>
11344#ifdef HAVE_LASTLOG_H 6951#ifdef HAVE_LASTLOG_H
11345#include <lastlog.h> 6952#include <lastlog.h>
11346#endif 6953#endif
11347 6954
11348int 6955"
11349main ()
11350{
11351struct lastlogx ll;
11352 ;
11353 return 0;
11354}
11355_ACEOF
11356rm -f conftest.$ac_objext
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
11374else
11375 echo "$as_me: failed program was:" >&5
11376sed 's/^/| /' conftest.$ac_ext >&5
11377
11378 struct_lastlogx=no
11379fi
11380
11381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11382fi
11383{ echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
11384echo "${ECHO_T}$struct_lastlogx" >&6; }
11385if test x$struct_lastlogx = xyes; then 6956if test "x$ac_cv_type_struct_lastlogx" = xyes; then :
11386 6957
11387cat >>confdefs.h <<\_ACEOF 6958cat >>confdefs.h <<_ACEOF
11388#define HAVE_STRUCT_LASTLOGX 1 6959#define HAVE_STRUCT_LASTLOGX 1
11389_ACEOF 6960_ACEOF
11390 6961
11391fi
11392 6962
6963fi
11393 6964
6965
6966
11394{ echo "$as_me:$LINENO: checking where utmp is located" >&5 6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where utmp is located" >&5
11395echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6; } 6968$as_echo_n "checking where utmp is located... " >&6; }
11396if test "${path_utmp+set}" = set; then 6969if ${pt_cv_path_utmp+:} false; then :
11397 echo $ECHO_N "(cached) $ECHO_C" >&6 6970 $as_echo_n "(cached) " >&6
11398else 6971else
11399 if test "$cross_compiling" = yes; then 6972 if test "$cross_compiling" = yes; then :
11400 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5 6973 { $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;} 6974$as_echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
11402else 6975else
11403 cat >conftest.$ac_ext <<_ACEOF
11404/* confdefs.h. */
11405_ACEOF
11406cat confdefs.h >>conftest.$ac_ext 6976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407cat >>conftest.$ac_ext <<_ACEOF
11408/* end confdefs.h. */ 6977/* end confdefs.h. */
11409#include <stdio.h> 6978#include <stdio.h>
11410#include <stdlib.h> 6979#include <stdlib.h>
6980#include <sys/stat.h>
6981
11411#include <sys/types.h> 6982#include <sys/types.h>
11412#include <utmp.h> 6983#include <utmp.h>
11413#include <errno.h> 6984
11414main() 6985int main()
11415{ 6986{
11416 char **u, *utmplist[] = {
11417 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; 6987 const char **path, *list[] = { "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
11418 FILE *a, *f=fopen("conftestval", "w"); 6988 FILE *f = fopen("conftestval", "w");
11419 if (!f) exit(1); 6989 if (!f) return 1;
11420#ifdef UTMP_FILE 6990#ifdef UTMP_FILE
11421 fprintf(f, "%s\n", UTMP_FILE); 6991 fprintf(f, "%s\n", UTMP_FILE);
11422 exit(0); 6992#elif defined(_PATH_UTMP)
6993 fprintf(f, "%s\n", _PATH_UTMP);
6994#else
6995 for (path = list; *path; path++) {
6996 struct stat st;
6997 if (stat(*path, &st) == 0) {
6998 fprintf(f, "%s\n", *path);
6999 break;
7000 }
7001 }
11423#endif 7002#endif
11424#ifdef _PATH_UTMP 7003 return fclose(f) != 0;
11425 fprintf(f, "%s\n", _PATH_UTMP);
11426 exit(0);
11427#endif
11428 for (u = utmplist; *u; u++) {
11429 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11430 fprintf(f, "%s\n", *u);
11431 exit(0);
11432 }
11433 }
11434 exit(0);
11435} 7004}
11436_ACEOF 7005_ACEOF
11437rm -f conftest$ac_exeext 7006if 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` 7007 pt_cv_path_utmp=`cat conftestval`
11458else 7008else
11459 echo "$as_me: program exited with status $ac_status" >&5 7009 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 7010fi
11466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7012 conftest.$ac_objext conftest.beam conftest.$ac_ext
11467fi 7013fi
11468 7014
11469
11470fi 7015fi
11471{ echo "$as_me:$LINENO: result: $path_utmp" >&5 7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
11472echo "${ECHO_T}$path_utmp" >&6; } 7017$as_echo "$pt_cv_path_utmp" >&6; }
11473if test x$path_utmp != x; then 7018if test x$pt_cv_path_utmp != x; then
11474 7019
11475cat >>confdefs.h <<_ACEOF 7020cat >>confdefs.h <<_ACEOF
11476#define UTMP_FILE "$path_utmp" 7021#define UTMP_FILE "$pt_cv_path_utmp"
11477_ACEOF 7022_ACEOF
11478 7023
11479fi 7024fi
11480 7025
11481 7026
11482{ echo "$as_me:$LINENO: checking where utmpx is located" >&5 7027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmp is located" >&5
11483echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6; } 7028$as_echo_n "checking where wtmp is located... " >&6; }
11484if test "${path_utmpx+set}" = set; then 7029if ${pt_cv_path_wtmp+:} false; then :
11485 echo $ECHO_N "(cached) $ECHO_C" >&6 7030 $as_echo_n "(cached) " >&6
11486else 7031else
11487 if test "$cross_compiling" = yes; then 7032 if test "$cross_compiling" = yes; then :
11488 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMP_FILE in config.h manually" >&5
11489echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;} 7034$as_echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
11490else 7035else
11491 cat >conftest.$ac_ext <<_ACEOF
11492/* confdefs.h. */
11493_ACEOF
11494cat confdefs.h >>conftest.$ac_ext 7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495cat >>conftest.$ac_ext <<_ACEOF
11496/* end confdefs.h. */ 7037/* end confdefs.h. */
11497#include <stdio.h> 7038#include <stdio.h>
11498#include <stdlib.h> 7039#include <stdlib.h>
11499#include <sys/types.h>
11500#include <utmpx.h>
11501#include <errno.h>
11502#include <sys/stat.h> 7040#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 7041
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
11587echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
11588else
11589 cat >conftest.$ac_ext <<_ACEOF
11590/* confdefs.h. */
11591_ACEOF
11592cat confdefs.h >>conftest.$ac_ext
11593cat >>conftest.$ac_ext <<_ACEOF
11594/* end confdefs.h. */
11595#include <stdio.h>
11596#include <stdlib.h>
11597#include <sys/types.h> 7042#include <sys/types.h>
11598#ifdef HAVE_UTMP_H 7043#ifdef HAVE_UTMP_H
11599#include <utmp.h> 7044#include <utmp.h>
11600#endif 7045#endif
11601#include <errno.h> 7046
11602main() 7047int main()
11603{ 7048{
11604 char **w, *wtmplist[] = {
11605 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; 7049 const char **path, *list[] = { "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11606 FILE *a, *f=fopen("conftestval", "w"); 7050 FILE *f = fopen("conftestval", "w");
11607 if (!f) exit(1); 7051 if (!f) return 1;
11608#ifdef WTMP_FILE 7052#ifdef WTMP_FILE
11609 fprintf(f, "%s\n", WTMP_FILE); 7053 fprintf(f, "%s\n", WTMP_FILE);
11610 exit(0); 7054#elif defined(_PATH_WTMP)
7055 fprintf(f, "%s\n", _PATH_WTMP);
7056#else
7057 for (path = list; *path; path++) {
7058 struct stat st;
7059 if (stat(*path, &st) == 0) {
7060 fprintf(f, "%s\n", *path);
7061 break;
7062 }
7063 }
11611#endif 7064#endif
11612#ifdef _PATH_WTMP 7065 return fclose(f) != 0;
11613 fprintf(f, "%s\n", _PATH_WTMP);
11614 exit(0);
11615#endif
11616 for (w = wtmplist; *w; w++) {
11617 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11618 fprintf(f, "%s\n", *w);
11619 exit(0);
11620 }
11621 }
11622 exit(0);
11623} 7066}
11624_ACEOF 7067_ACEOF
11625rm -f conftest$ac_exeext 7068if 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` 7069 pt_cv_path_wtmp=`cat conftestval`
11646else 7070else
11647 echo "$as_me: program exited with status $ac_status" >&5 7071 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 7072fi
11654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7073rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7074 conftest.$ac_objext conftest.beam conftest.$ac_ext
11655fi 7075fi
11656 7076
11657
11658fi 7077fi
11659{ echo "$as_me:$LINENO: result: $path_wtmp" >&5 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
11660echo "${ECHO_T}$path_wtmp" >&6; } 7079$as_echo "$pt_cv_path_wtmp" >&6; }
11661if test x$path_wtmp != x; then 7080if test x$pt_cv_path_wtmp != x; then
11662 7081
11663cat >>confdefs.h <<_ACEOF 7082cat >>confdefs.h <<_ACEOF
11664#define WTMP_FILE "$path_wtmp" 7083#define WTMP_FILE "$pt_cv_path_wtmp"
11665_ACEOF 7084_ACEOF
11666 7085
11667fi 7086fi
11668 7087
11669{ echo "$as_me:$LINENO: checking where wtmpx is located" >&5 7088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmpx is located" >&5
11670echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6; } 7089$as_echo_n "checking where wtmpx is located... " >&6; }
11671if test "${path_wtmpx+set}" = set; then 7090if ${pt_cv_path_wtmpx+:} false; then :
11672 echo $ECHO_N "(cached) $ECHO_C" >&6 7091 $as_echo_n "(cached) " >&6
11673else 7092else
11674 if test "$cross_compiling" = yes; then 7093 if test "$cross_compiling" = yes; then :
11675 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 7094 { $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;} 7095$as_echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
11677else 7096else
11678 cat >conftest.$ac_ext <<_ACEOF
11679/* confdefs.h. */
11680_ACEOF
11681cat confdefs.h >>conftest.$ac_ext 7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682cat >>conftest.$ac_ext <<_ACEOF
11683/* end confdefs.h. */ 7098/* end confdefs.h. */
11684#include <stdio.h> 7099#include <stdio.h>
11685#include <stdlib.h> 7100#include <stdlib.h>
7101#include <sys/stat.h>
7102
11686#ifdef HAVE_UTMPX_H 7103#ifdef HAVE_UTMPX_H
11687#include <utmpx.h> 7104#include <utmpx.h>
11688#endif 7105#endif
11689#include <errno.h> 7106
11690main() 7107int main()
11691{ 7108{
11692 char **w, *wtmplist[] = {
11693 "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; 7109 const char **path, *list[] = { "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11694 FILE *a, *f=fopen("conftestval", "w"); 7110 FILE *f = fopen("conftestval", "w");
11695 if (!f) exit(1); 7111 if (!f) return 1;
11696#ifdef WTMPX_FILE 7112#ifdef WTMPX_FILE
11697 fprintf(f, "%s\n", WTMPX_FILE); 7113 fprintf(f, "%s\n", WTMPX_FILE);
11698 exit(0); 7114#elif defined(_PATH_WTMPX)
7115 fprintf(f, "%s\n", _PATH_WTMPX);
7116#else
7117 for (path = list; *path; path++) {
7118 struct stat st;
7119 if (stat(*path, &st) == 0) {
7120 fprintf(f, "%s\n", *path);
7121 break;
7122 }
7123 }
11699#endif 7124#endif
11700#ifdef _PATH_WTMPX 7125 return fclose(f) != 0;
11701 fprintf(f, "%s\n", _PATH_WTMPX);
11702 exit(0);
11703#endif
11704 for (w = wtmplist; *w; w++) {
11705 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11706 fprintf(f, "%s\n", *w);
11707 exit(0);
11708 }
11709 }
11710 exit(0);
11711} 7126}
11712_ACEOF 7127_ACEOF
11713rm -f conftest$ac_exeext 7128if 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` 7129 pt_cv_path_wtmpx=`cat conftestval`
11734else 7130else
11735 echo "$as_me: program exited with status $ac_status" >&5 7131 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 7132fi
11742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7133rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7134 conftest.$ac_objext conftest.beam conftest.$ac_ext
11743fi 7135fi
11744 7136
11745
11746fi 7137fi
11747{ echo "$as_me:$LINENO: result: $path_wtmpx" >&5 7138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
11748echo "${ECHO_T}$path_wtmpx" >&6; } 7139$as_echo "$pt_cv_path_wtmpx" >&6; }
11749if test x$path_wtmpx != x; then 7140if test x$pt_cv_path_wtmpx != x; then
11750 7141
11751cat >>confdefs.h <<_ACEOF 7142cat >>confdefs.h <<_ACEOF
11752#define WTMPX_FILE "$path_wtmpx" 7143#define WTMPX_FILE "$pt_cv_path_wtmpx"
11753_ACEOF 7144_ACEOF
11754 7145
11755fi 7146fi
11756 7147
11757{ echo "$as_me:$LINENO: checking where lastlog is located" >&5 7148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlog is located" >&5
11758echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6; } 7149$as_echo_n "checking where lastlog is located... " >&6; }
11759if test "${path_lastlog+set}" = set; then 7150if ${pt_cv_path_lastlog+:} false; then :
11760 echo $ECHO_N "(cached) $ECHO_C" >&6 7151 $as_echo_n "(cached) " >&6
11761else 7152else
11762 if test "$cross_compiling" = yes; then 7153 if test "$cross_compiling" = yes; then :
11763 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 7154 { $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;} 7155$as_echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
11765else 7156else
11766 cat >conftest.$ac_ext <<_ACEOF
11767/* confdefs.h. */
11768_ACEOF
11769cat confdefs.h >>conftest.$ac_ext 7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770cat >>conftest.$ac_ext <<_ACEOF
11771/* end confdefs.h. */ 7158/* end confdefs.h. */
11772#include <stdio.h> 7159#include <stdio.h>
11773#include <stdlib.h> 7160#include <stdlib.h>
7161#include <sys/stat.h>
7162
11774#include <sys/types.h> 7163#include <sys/types.h>
11775#ifdef HAVE_UTMPX_H 7164#ifdef HAVE_UTMP_H
11776#include <utmpx.h>
11777#elif defined(HAVE_UTMP_H)
11778#include <utmp.h> 7165#include <utmp.h>
11779#endif 7166#endif
11780#ifdef HAVE_LASTLOG_H 7167#ifdef HAVE_LASTLOG_H
11781#include <lastlog.h> 7168#include <lastlog.h>
11782#endif 7169#endif
11783#include <errno.h> 7170
11784main() 7171int main()
11785{ 7172{
11786 char **w, *lastloglist[] = { "/var/log/lastlog", NULL }; 7173 const char **path, *list[] = { "/var/log/lastlog", NULL };
11787 FILE *a, *f=fopen("conftestval", "w"); 7174 FILE *f = fopen("conftestval", "w");
11788 if (!f) exit(1); 7175 if (!f) return 1;
11789#ifdef LASTLOG_FILE 7176#ifdef LASTLOG_FILE
11790 fprintf(f, "%s\n", LASTLOG_FILE); 7177 fprintf(f, "%s\n", LASTLOG_FILE);
11791 exit(0); 7178#elif defined(_PATH_LASTLOG)
7179 fprintf(f, "%s\n", _PATH_LASTLOG);
7180#else
7181 for (path = list; *path; path++) {
7182 struct stat st;
7183 if (stat(*path, &st) == 0) {
7184 fprintf(f, "%s\n", *path);
7185 break;
7186 }
7187 }
11792#endif 7188#endif
11793#ifdef _PATH_LASTLOG 7189 return fclose(f) != 0;
11794 fprintf(f, "%s\n", _PATH_LASTLOG);
11795 exit(0);
11796#endif
11797 for (w = lastloglist; *w; w++) {
11798 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11799 fprintf(f, "%s\n", *w);
11800 exit(0);
11801 }
11802 }
11803 exit(0);
11804} 7190}
11805_ACEOF 7191_ACEOF
11806rm -f conftest$ac_exeext 7192if 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` 7193 pt_cv_path_lastlog=`cat conftestval`
11827else 7194else
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= 7195 pt_cv_path_lastlog=
11834fi 7196fi
11835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7197rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7198 conftest.$ac_objext conftest.beam conftest.$ac_ext
11836fi 7199fi
11837 7200
11838
11839fi 7201fi
11840{ echo "$as_me:$LINENO: result: $path_lastlog" >&5 7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
11841echo "${ECHO_T}$path_lastlog" >&6; } 7203$as_echo "$pt_cv_path_lastlog" >&6; }
11842if test x$path_lastlog != x; then 7204if test x$pt_cv_path_lastlog != x; then
11843 7205
11844cat >>confdefs.h <<_ACEOF 7206cat >>confdefs.h <<_ACEOF
11845#define LASTLOG_FILE "$path_lastlog" 7207#define LASTLOG_FILE "$pt_cv_path_lastlog"
11846_ACEOF 7208_ACEOF
11847 7209
11848 if test -d "$path_lastlog"; then
11849
11850cat >>confdefs.h <<\_ACEOF
11851#define LASTLOG_IS_DIR 1
11852_ACEOF
11853
11854 fi
11855fi 7210fi
11856 7211
11857{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlogx is located" >&5
11858echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 7213$as_echo_n "checking where lastlogx is located... " >&6; }
11859if test "${path_lastlogx+set}" = set; then 7214if ${pt_cv_path_lastlogx+:} false; then :
11860 echo $ECHO_N "(cached) $ECHO_C" >&6 7215 $as_echo_n "(cached) " >&6
11861else 7216else
11862 if test "$cross_compiling" = yes; then 7217 if test "$cross_compiling" = yes; then :
11863 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 7218 { $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;} 7219$as_echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
11865else 7220else
11866 cat >conftest.$ac_ext <<_ACEOF
11867/* confdefs.h. */
11868_ACEOF
11869cat confdefs.h >>conftest.$ac_ext 7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870cat >>conftest.$ac_ext <<_ACEOF
11871/* end confdefs.h. */ 7222/* end confdefs.h. */
11872#include <stdio.h> 7223#include <stdio.h>
11873#include <stdlib.h> 7224#include <stdlib.h>
7225#include <sys/stat.h>
7226
11874#ifdef HAVE_UTMPX_H 7227#ifdef HAVE_UTMPX_H
11875#include <utmpx.h> 7228#include <utmpx.h>
11876#endif 7229#endif
11877#include <errno.h> 7230
11878main() 7231int main()
11879{ 7232{
11880 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; 7233 const char **path, *list[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11881 FILE *a, *f=fopen("conftestval", "w"); 7234 FILE *f = fopen("conftestval", "w");
11882 if (!f) exit(1); 7235 if (!f) return 1;
11883#ifdef LASTLOGX_FILE 7236#ifdef LASTLOGX_FILE
11884 fprintf(f, "%s\n", LASTLOGX_FILE); 7237 fprintf(f, "%s\n", LASTLOGX_FILE);
11885 exit(0); 7238#elif defined(_PATH_LASTLOGX)
7239 fprintf(f, "%s\n", _PATH_LASTLOGX);
7240#else
7241 for (path = list; *path; path++) {
7242 struct stat st;
7243 if (stat(*path, &st) == 0) {
7244 fprintf(f, "%s\n", *path);
7245 break;
7246 }
7247 }
11886#endif 7248#endif
11887#ifdef _PATH_LASTLOGX 7249 return fclose(f) != 0;
11888 fprintf(f, "%s\n", _PATH_LASTLOGX);
11889 exit(0);
11890#endif
11891 for (w = wtmplist; *w; w++) {
11892 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11893 fprintf(f, "%s\n", *w);
11894 exit(0);
11895 }
11896 }
11897 exit(0);
11898} 7250}
11899_ACEOF 7251_ACEOF
11900rm -f conftest$ac_exeext 7252if 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` 7253 pt_cv_path_lastlogx=`cat conftestval`
11921else 7254else
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= 7255 pt_cv_path_lastlogx=
11928fi 7256fi
11929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7257rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7258 conftest.$ac_objext conftest.beam conftest.$ac_ext
11930fi 7259fi
11931 7260
11932
11933fi 7261fi
11934{ echo "$as_me:$LINENO: result: $path_lastlogx" >&5 7262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
11935echo "${ECHO_T}$path_lastlogx" >&6; } 7263$as_echo "$pt_cv_path_lastlogx" >&6; }
11936if test x$path_lastlogx != x; then 7264if test x$pt_cv_path_lastlogx != x; then
11937 7265
11938cat >>confdefs.h <<_ACEOF 7266cat >>confdefs.h <<_ACEOF
11939#define LASTLOGX_FILE "$path_lastlogx" 7267#define LASTLOGX_FILE "$pt_cv_path_lastlogx"
11940_ACEOF 7268_ACEOF
11941 7269
11942fi 7270fi
11943 7271
11944 7272
11945 7273
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 7274
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 7275save_LIBS=$LIBS
11972ac_save_CFLAGS=$CFLAGS 7276save_CFLAGS=$CFLAGS
11973CFLAGS="$CFLAGS $X_CFLAGS" 7277CFLAGS="$CFLAGS $X_CFLAGS"
11974LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 7278LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11975if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 7279if test x$support_xim = xyes; then
11976 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11977fi
11978{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
11979echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 7281$as_echo_n "checking for working Xlocale... " >&6; }
11980if test "${rxvt_cv_func_xlocale+set}" = set; then 7282if ${rxvt_cv_func_xlocale+:} false; then :
11981 echo $ECHO_N "(cached) $ECHO_C" >&6 7283 $as_echo_n "(cached) " >&6
11982else 7284else
11983 if test "$cross_compiling" = yes; then 7285 if test "$cross_compiling" = yes; then :
11984 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 7286 :
11985echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11986else 7287else
11987 cat >conftest.$ac_ext <<_ACEOF
11988/* confdefs.h. */
11989_ACEOF
11990cat confdefs.h >>conftest.$ac_ext 7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991cat >>conftest.$ac_ext <<_ACEOF
11992/* end confdefs.h. */ 7289/* end confdefs.h. */
7290
11993#include <X11/Xlib.h> 7291 #include <X11/Xlib.h>
11994#include <stdlib.h> 7292 #include <stdlib.h>
11995main() { 7293 int main() {
11996char *p; 7294 char *p;
11997if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 7295 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11998exit (XSupportsLocale() ? 0 : 1); 7296 exit (XSupportsLocale() ? 0 : 1);
11999else 7297 else
12000exit (1);} 7298 exit (1);
7299 }
7300
12001_ACEOF 7301_ACEOF
12002rm -f conftest$ac_exeext 7302if ac_fn_cxx_try_run "$LINENO"; then :
12003if { (ac_try="$ac_link"
12004case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12007esac
12008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_link") 2>&5
12010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12013 { (case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12016esac
12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_try") 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 rxvt_cv_func_xlocale=yes 7303 rxvt_cv_func_xlocale=yes
12023else 7304else
12024 echo "$as_me: program exited with status $ac_status" >&5
12025echo "$as_me: failed program was:" >&5
12026sed 's/^/| /' conftest.$ac_ext >&5
12027
12028( exit $ac_status )
12029rxvt_cv_func_xlocale=no 7305 rxvt_cv_func_xlocale=no
12030fi 7306fi
12031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7308 conftest.$ac_objext conftest.beam conftest.$ac_ext
12032fi 7309fi
12033 7310
12034
12035fi 7311fi
12036{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 7312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
12037echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 7313$as_echo "$rxvt_cv_func_xlocale" >&6; }
12038if test x$rxvt_cv_func_xlocale = xyes; then 7314 if test x$rxvt_cv_func_xlocale = xyes; then
12039 7315
12040cat >>confdefs.h <<\_ACEOF 7316$as_echo "#define USE_XIM 1" >>confdefs.h
12041#define HAVE_XLOCALE 1
12042_ACEOF
12043 7317
12044fi 7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
12045 7319$as_echo_n "checking for broken XIM callback... " >&6; }
12046{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 7320if ${rxvt_cv_broken_ximcb+:} false; then :
12047echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 7321 $as_echo_n "(cached) " >&6
12048if test "${rxvt_cv_func_xsetlocale+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12050else 7322else
12051 cat >conftest.$ac_ext <<_ACEOF 7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052/* confdefs.h. */ 7324/* end confdefs.h. */
7325
7326 #include <X11/Xlib.h>
7327
7328 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
7329
7330 void f() {
7331 XIMCallback cb;
7332 cb.callback = im_destroy_cb;
7333 }
7334
12053_ACEOF 7335_ACEOF
7336if ac_fn_cxx_try_compile "$LINENO"; then :
7337 rxvt_cv_broken_ximcb=yes
7338else
7339 rxvt_cv_broken_ximcb=no
7340fi
7341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342fi
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
7344$as_echo "$rxvt_cv_broken_ximcb" >&6; }
7345
7346 if test x$rxvt_cv_broken_ximcb = xyes; then
7347
7348$as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
7349
7350 fi
7351 fi
7352fi
7353
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
7355$as_echo_n "checking for working X setlocale... " >&6; }
7356if ${rxvt_cv_func_xsetlocale+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358else
12054cat confdefs.h >>conftest.$ac_ext 7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055cat >>conftest.$ac_ext <<_ACEOF
12056/* end confdefs.h. */ 7360/* end confdefs.h. */
12057#define X_LOCALE 1 7361#define X_LOCALE 1
12058#include <X11/Xlocale.h> 7362#include <X11/Xlocale.h>
12059int 7363int
12060main () 7364main ()
12062setlocale(LC_CTYPE, ""); 7366setlocale(LC_CTYPE, "");
12063 ; 7367 ;
12064 return 0; 7368 return 0;
12065} 7369}
12066_ACEOF 7370_ACEOF
12067rm -f conftest.$ac_objext conftest$ac_exeext 7371if ac_fn_cxx_try_link "$LINENO"; then :
12068if { (ac_try="$ac_link"
12069case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12072esac
12073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_link") 2>conftest.er1
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && {
12081 test -z "$ac_cxx_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest$ac_exeext &&
12084 $as_test_x conftest$ac_exeext; then
12085 rxvt_cv_func_xsetlocale=yes 7372 rxvt_cv_func_xsetlocale=yes
12086else 7373else
12087 echo "$as_me: failed program was:" >&5
12088sed 's/^/| /' conftest.$ac_ext >&5
12089
12090 rxvt_cv_func_xsetlocale=no 7374 rxvt_cv_func_xsetlocale=no
12091fi 7375fi
12092
12093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7376rm -f core conftest.err conftest.$ac_objext \
12094 conftest$ac_exeext conftest.$ac_ext 7377 conftest$ac_exeext conftest.$ac_ext
12095fi 7378fi
12096{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
12097echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6; } 7380$as_echo "$rxvt_cv_func_xsetlocale" >&6; }
12098if test x$rxvt_cv_func_xsetlocale = xyes; then 7381if test x$rxvt_cv_func_xsetlocale = xyes; then
12099 7382
12100cat >>confdefs.h <<\_ACEOF 7383$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
12101#define HAVE_XSETLOCALE 1
12102_ACEOF
12103 7384
12104fi 7385fi
12105LIBS=$ac_save_LIBS 7386LIBS=$save_LIBS
12106CFLAGS=$ac_save_CFLAGS 7387CFLAGS=$save_CFLAGS
12107 7388
12108{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5
12109echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 7390$as_echo_n "checking for working plain setlocale... " >&6; }
12110if test "${rxvt_cv_func_setlocale+set}" = set; then 7391if ${rxvt_cv_func_setlocale+:} false; then :
12111 echo $ECHO_N "(cached) $ECHO_C" >&6 7392 $as_echo_n "(cached) " >&6
12112else 7393else
12113 cat >conftest.$ac_ext <<_ACEOF
12114/* confdefs.h. */
12115_ACEOF
12116cat confdefs.h >>conftest.$ac_ext 7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117cat >>conftest.$ac_ext <<_ACEOF
12118/* end confdefs.h. */ 7395/* end confdefs.h. */
12119#include <clocale> 7396#include <clocale>
12120int 7397int
12121main () 7398main ()
12122{ 7399{
12123setlocale(LC_CTYPE, ""); 7400setlocale(LC_CTYPE, "");
12124 ; 7401 ;
12125 return 0; 7402 return 0;
12126} 7403}
12127_ACEOF 7404_ACEOF
12128rm -f conftest.$ac_objext conftest$ac_exeext 7405if ac_fn_cxx_try_link "$LINENO"; then :
12129if { (ac_try="$ac_link"
12130case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12133esac
12134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_link") 2>conftest.er1
12136 ac_status=$?
12137 grep -v '^ *+' conftest.er1 >conftest.err
12138 rm -f conftest.er1
12139 cat conftest.err >&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } && {
12142 test -z "$ac_cxx_werror_flag" ||
12143 test ! -s conftest.err
12144 } && test -s conftest$ac_exeext &&
12145 $as_test_x conftest$ac_exeext; then
12146 rxvt_cv_func_setlocale=yes 7406 rxvt_cv_func_setlocale=yes
12147else 7407else
12148 echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151 rxvt_cv_func_setlocale=no 7408 rxvt_cv_func_setlocale=no
12152fi 7409fi
12153
12154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7410rm -f core conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext 7411 conftest$ac_exeext conftest.$ac_ext
12156fi 7412fi
12157{ echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5 7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5
12158echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6; } 7414$as_echo "$rxvt_cv_func_setlocale" >&6; }
12159if test x$rxvt_cv_func_setlocale = xyes; then 7415if test x$rxvt_cv_func_setlocale = xyes; then
12160 7416
12161cat >>confdefs.h <<\_ACEOF 7417$as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
12162#define HAVE_SETLOCALE 1
12163_ACEOF
12164 7418
12165fi 7419fi
12166 7420
12167{ echo "$as_me:$LINENO: checking for working nl_langinfo" >&5 7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
12168echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6; } 7422$as_echo_n "checking for working nl_langinfo... " >&6; }
12169if test "${rxvt_cv_func_nl_langinfo+set}" = set; then 7423if ${rxvt_cv_func_nl_langinfo+:} false; then :
12170 echo $ECHO_N "(cached) $ECHO_C" >&6 7424 $as_echo_n "(cached) " >&6
12171else 7425else
12172 cat >conftest.$ac_ext <<_ACEOF
12173/* confdefs.h. */
12174_ACEOF
12175cat confdefs.h >>conftest.$ac_ext 7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176cat >>conftest.$ac_ext <<_ACEOF
12177/* end confdefs.h. */ 7427/* end confdefs.h. */
12178#include <langinfo.h> 7428#include <langinfo.h>
12179int 7429int
12180main () 7430main ()
12181{ 7431{
12182nl_langinfo(CODESET); 7432nl_langinfo(CODESET);
12183 ; 7433 ;
12184 return 0; 7434 return 0;
12185} 7435}
12186_ACEOF 7436_ACEOF
12187rm -f conftest.$ac_objext conftest$ac_exeext 7437if ac_fn_cxx_try_link "$LINENO"; then :
12188if { (ac_try="$ac_link"
12189case "(($ac_try" in
12190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191 *) ac_try_echo=$ac_try;;
12192esac
12193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194 (eval "$ac_link") 2>conftest.er1
12195 ac_status=$?
12196 grep -v '^ *+' conftest.er1 >conftest.err
12197 rm -f conftest.er1
12198 cat conftest.err >&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } && {
12201 test -z "$ac_cxx_werror_flag" ||
12202 test ! -s conftest.err
12203 } && test -s conftest$ac_exeext &&
12204 $as_test_x conftest$ac_exeext; then
12205 rxvt_cv_func_nl_langinfo=yes 7438 rxvt_cv_func_nl_langinfo=yes
12206else 7439else
12207 echo "$as_me: failed program was:" >&5
12208sed 's/^/| /' conftest.$ac_ext >&5
12209
12210 rxvt_cv_func_nl_langinfo=no 7440 rxvt_cv_func_nl_langinfo=no
12211fi 7441fi
12212
12213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7442rm -f core conftest.err conftest.$ac_objext \
12214 conftest$ac_exeext conftest.$ac_ext 7443 conftest$ac_exeext conftest.$ac_ext
12215fi 7444fi
12216{ echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5 7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
12217echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6; } 7446$as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
12218if test x$rxvt_cv_func_nl_langinfo = xyes; then 7447if test x$rxvt_cv_func_nl_langinfo = xyes; then
12219 7448
12220cat >>confdefs.h <<\_ACEOF 7449$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
12221#define HAVE_NL_LANGINFO 1
12222_ACEOF
12223 7450
12224fi 7451fi
12225 7452
12226 7453
12227{ echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 7454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
12228echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6; } 7455$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
12229if test "${can_pass_fds+set}" = set; then 7456if ${pt_cv_can_pass_fds+:} false; then :
12230 echo $ECHO_N "(cached) $ECHO_C" >&6 7457 $as_echo_n "(cached) " >&6
12231else 7458else
12232 cat >conftest.$ac_ext <<_ACEOF
12233/* confdefs.h. */
12234_ACEOF
12235cat confdefs.h >>conftest.$ac_ext 7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236cat >>conftest.$ac_ext <<_ACEOF
12237/* end confdefs.h. */ 7460/* end confdefs.h. */
12238 7461
12239#include <cstddef> // broken bsds (is that redundant?) need this 7462#include <cstddef> // broken bsds (is that redundant?) need this
12240#include <sys/types.h> 7463#include <sys/types.h>
12241#include <sys/socket.h> 7464#include <sys/socket.h>
12271 7494
12272 ; 7495 ;
12273 return 0; 7496 return 0;
12274} 7497}
12275_ACEOF 7498_ACEOF
12276rm -f conftest.$ac_objext conftest$ac_exeext 7499if ac_fn_cxx_try_link "$LINENO"; then :
12277if { (ac_try="$ac_link"
12278case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12281esac
12282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_link") 2>conftest.er1
12284 ac_status=$?
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } && {
12290 test -z "$ac_cxx_werror_flag" ||
12291 test ! -s conftest.err
12292 } && test -s conftest$ac_exeext &&
12293 $as_test_x conftest$ac_exeext; then
12294 can_pass_fds=yes 7500 pt_cv_can_pass_fds=yes
12295else 7501else
12296 echo "$as_me: failed program was:" >&5
12297sed 's/^/| /' conftest.$ac_ext >&5
12298
12299 can_pass_fds=no 7502 pt_cv_can_pass_fds=no
12300fi 7503fi
12301
12302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7504rm -f core conftest.err conftest.$ac_objext \
12303 conftest$ac_exeext conftest.$ac_ext 7505 conftest$ac_exeext conftest.$ac_ext
12304fi 7506fi
12305{ echo "$as_me:$LINENO: result: $can_pass_fds" >&5 7507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
12306echo "${ECHO_T}$can_pass_fds" >&6; } 7508$as_echo "$pt_cv_can_pass_fds" >&6; }
12307if test x$can_pass_fds = xyes; then 7509if test x$pt_cv_can_pass_fds = xyes; then
12308 7510
12309cat >>confdefs.h <<\_ACEOF 7511$as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
12310#define HAVE_UNIX_FDPASS 1
12311_ACEOF
12312 7512
12313else 7513else
12314 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
12315echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} 7514 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
12316 { (exit 1); exit 1; }; }
12317fi 7515fi
12318
12319
12320{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5
12321echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
12322if test "${rxvt_broken_ximcb+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324else
12325 cat >conftest.$ac_ext <<_ACEOF
12326
12327#include <X11/Xlib.h>
12328
12329void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
12330
12331void f() {
12332 XIMCallback cb;
12333 cb.callback = im_destroy_cb;
12334}
12335
12336_ACEOF
12337rm -f conftest.$ac_objext
12338if { (ac_try="$ac_compile"
12339case "(($ac_try" in
12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341 *) ac_try_echo=$ac_try;;
12342esac
12343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344 (eval "$ac_compile") 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } && {
12351 test -z "$ac_cxx_werror_flag" ||
12352 test ! -s conftest.err
12353 } && test -s conftest.$ac_objext; then
12354 rxvt_broken_ximcb=yes
12355else
12356 echo "$as_me: failed program was:" >&5
12357sed 's/^/| /' conftest.$ac_ext >&5
12358
12359 rxvt_broken_ximcb=no
12360fi
12361
12362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363fi
12364{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12365echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12366
12367if test x$rxvt_broken_ximcb = xyes; then
12368
12369cat >>confdefs.h <<\_ACEOF
12370#define XIMCB_PROTO_BROKEN 1
12371_ACEOF
12372
12373fi
12374
12375
12376
12377
12378 7516
12379 7517
12380 7518
12381for ac_header in \ 7519for ac_header in \
12382 pty.h \ 7520 pty.h \
12383 util.h \ 7521 util.h \
12384 libutil.h \ 7522 libutil.h \
12385 sys/ioctl.h \ 7523 sys/ioctl.h \
12386 sys/stropts.h \ 7524 sys/stropts.h \
7525 stropts.h \
12387 7526
12388do 7527do :
12389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7529ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12391 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7530if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12395fi
12396ac_res=`eval echo '${'$as_ac_Header'}'`
12397 { echo "$as_me:$LINENO: result: $ac_res" >&5
12398echo "${ECHO_T}$ac_res" >&6; }
12399else
12400 # Is the header compilable?
12401{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12402echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12403cat >conftest.$ac_ext <<_ACEOF
12404/* confdefs.h. */
12405_ACEOF
12406cat confdefs.h >>conftest.$ac_ext
12407cat >>conftest.$ac_ext <<_ACEOF
12408/* end confdefs.h. */
12409$ac_includes_default
12410#include <$ac_header>
12411_ACEOF
12412rm -f conftest.$ac_objext
12413if { (ac_try="$ac_compile"
12414case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12417esac
12418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_compile") 2>conftest.er1
12420 ac_status=$?
12421 grep -v '^ *+' conftest.er1 >conftest.err
12422 rm -f conftest.er1
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } && {
12426 test -z "$ac_cxx_werror_flag" ||
12427 test ! -s conftest.err
12428 } && test -s conftest.$ac_objext; then
12429 ac_header_compiler=yes
12430else
12431 echo "$as_me: failed program was:" >&5
12432sed 's/^/| /' conftest.$ac_ext >&5
12433
12434 ac_header_compiler=no
12435fi
12436
12437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12439echo "${ECHO_T}$ac_header_compiler" >&6; }
12440
12441# Is the header present?
12442{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12443echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12444cat >conftest.$ac_ext <<_ACEOF
12445/* confdefs.h. */
12446_ACEOF
12447cat confdefs.h >>conftest.$ac_ext
12448cat >>conftest.$ac_ext <<_ACEOF
12449/* end confdefs.h. */
12450#include <$ac_header>
12451_ACEOF
12452if { (ac_try="$ac_cpp conftest.$ac_ext"
12453case "(($ac_try" in
12454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455 *) ac_try_echo=$ac_try;;
12456esac
12457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12459 ac_status=$?
12460 grep -v '^ *+' conftest.er1 >conftest.err
12461 rm -f conftest.er1
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } >/dev/null && {
12465 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12466 test ! -s conftest.err
12467 }; then
12468 ac_header_preproc=yes
12469else
12470 echo "$as_me: failed program was:" >&5
12471sed 's/^/| /' conftest.$ac_ext >&5
12472
12473 ac_header_preproc=no
12474fi
12475
12476rm -f conftest.err conftest.$ac_ext
12477{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12478echo "${ECHO_T}$ac_header_preproc" >&6; }
12479
12480# So? What about this header?
12481case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12482 yes:no: )
12483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12484echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12486echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12487 ac_header_preproc=yes
12488 ;;
12489 no:yes:* )
12490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12495echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12497echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12499echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12501echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12502
12503 ;;
12504esac
12505{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12509else
12510 eval "$as_ac_Header=\$ac_header_preproc"
12511fi
12512ac_res=`eval echo '${'$as_ac_Header'}'`
12513 { echo "$as_me:$LINENO: result: $ac_res" >&5
12514echo "${ECHO_T}$ac_res" >&6; }
12515
12516fi
12517if test `eval echo '${'$as_ac_Header'}'` = yes; then
12518 cat >>confdefs.h <<_ACEOF 7531 cat >>confdefs.h <<_ACEOF
12519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7532#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12520_ACEOF 7533_ACEOF
12521 7534
12522fi 7535fi
12523 7536
12524done 7537done
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534 7538
12535 7539
12536for ac_func in \ 7540for ac_func in \
12537 revoke \ 7541 revoke \
12538 _getpty \ 7542 _getpty \
12542 setuid \ 7546 setuid \
12543 seteuid \ 7547 seteuid \
12544 setreuid \ 7548 setreuid \
12545 setresuid \ 7549 setresuid \
12546 7550
12547do 7551do :
12548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7552 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12549{ echo "$as_me:$LINENO: checking for $ac_func" >&5 7553ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 7554if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12551if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553else
12554 cat >conftest.$ac_ext <<_ACEOF
12555/* confdefs.h. */
12556_ACEOF
12557cat confdefs.h >>conftest.$ac_ext
12558cat >>conftest.$ac_ext <<_ACEOF
12559/* end confdefs.h. */
12560/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12562#define $ac_func innocuous_$ac_func
12563
12564/* System header to define __stub macros and hopefully few prototypes,
12565 which can conflict with char $ac_func (); below.
12566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12567 <limits.h> exists even on freestanding compilers. */
12568
12569#ifdef __STDC__
12570# include <limits.h>
12571#else
12572# include <assert.h>
12573#endif
12574
12575#undef $ac_func
12576
12577/* Override any GCC internal prototype to avoid an error.
12578 Use char because int might match the return type of a GCC
12579 builtin and then its argument prototype would still apply. */
12580#ifdef __cplusplus
12581extern "C"
12582#endif
12583char $ac_func ();
12584/* The GNU C library defines this for functions which it implements
12585 to always fail with ENOSYS. Some functions are actually named
12586 something starting with __ and the normal name is an alias. */
12587#if defined __stub_$ac_func || defined __stub___$ac_func
12588choke me
12589#endif
12590
12591int
12592main ()
12593{
12594return $ac_func ();
12595 ;
12596 return 0;
12597}
12598_ACEOF
12599rm -f conftest.$ac_objext conftest$ac_exeext
12600if { (ac_try="$ac_link"
12601case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12604esac
12605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_link") 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && {
12613 test -z "$ac_cxx_werror_flag" ||
12614 test ! -s conftest.err
12615 } && test -s conftest$ac_exeext &&
12616 $as_test_x conftest$ac_exeext; then
12617 eval "$as_ac_var=yes"
12618else
12619 echo "$as_me: failed program was:" >&5
12620sed 's/^/| /' conftest.$ac_ext >&5
12621
12622 eval "$as_ac_var=no"
12623fi
12624
12625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12626 conftest$ac_exeext conftest.$ac_ext
12627fi
12628ac_res=`eval echo '${'$as_ac_var'}'`
12629 { echo "$as_me:$LINENO: result: $ac_res" >&5
12630echo "${ECHO_T}$ac_res" >&6; }
12631if test `eval echo '${'$as_ac_var'}'` = yes; then
12632 cat >>confdefs.h <<_ACEOF 7555 cat >>confdefs.h <<_ACEOF
12633#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7556#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12634_ACEOF 7557_ACEOF
12635 7558
12636fi 7559fi
12637done 7560done
12638 7561
12639 7562
12640have_clone=no
12641
12642{ echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12643echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6; }
12644if test -e /dev/ptym/clone; then
12645 { echo "$as_me:$LINENO: result: yes" >&5
12646echo "${ECHO_T}yes" >&6; }
12647
12648cat >>confdefs.h <<\_ACEOF
12649#define HAVE_DEV_CLONE 1
12650_ACEOF
12651
12652
12653cat >>confdefs.h <<\_ACEOF
12654#define CLONE_DEVICE "/dev/ptym/clone"
12655_ACEOF
12656
12657 have_clone=yes
12658else
12659 { echo "$as_me:$LINENO: result: no" >&5
12660echo "${ECHO_T}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
12683
12684case $host in
12685 *-*-cygwin*)
12686 have_clone=yes
12687
12688cat >>confdefs.h <<\_ACEOF
12689#define CLONE_DEVICE "/dev/ptmx"
12690_ACEOF
12691
12692 ;;
12693 *)
12694 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12695echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
12696 if test -e /dev/ptmx; then
12697 { echo "$as_me:$LINENO: result: yes" >&5
12698echo "${ECHO_T}yes" >&6; }
12699
12700cat >>confdefs.h <<\_ACEOF
12701#define HAVE_DEV_PTMX 1
12702_ACEOF
12703
12704
12705cat >>confdefs.h <<\_ACEOF
12706#define CLONE_DEVICE "/dev/ptmx"
12707_ACEOF
12708
12709 have_clone=yes
12710 else
12711 { echo "$as_me:$LINENO: result: no" >&5
12712echo "${ECHO_T}no" >&6; }
12713 fi
12714 ;;
12715esac
12716
12717if 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 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
12719echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6; } 7564$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 7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724cat >>conftest.$ac_ext <<_ACEOF
12725/* end confdefs.h. */ 7566/* end confdefs.h. */
12726#include <stdlib.h> 7567#include <stdlib.h>
12727int 7568int
12728main () 7569main ()
12729{ 7570{
12730grantpt(0);unlockpt(0);ptsname(0); 7571grantpt(0);unlockpt(0);ptsname(0);
12731 ; 7572 ;
12732 return 0; 7573 return 0;
12733} 7574}
12734_ACEOF 7575_ACEOF
12735rm -f conftest.$ac_objext conftest$ac_exeext 7576if 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 7577 unix98_pty=yes
12754 7578
12755cat >>confdefs.h <<\_ACEOF 7579$as_echo "#define UNIX98_PTY 1" >>confdefs.h
12756#define UNIX98_PTY 1
12757_ACEOF
12758 7580
12759 { echo "$as_me:$LINENO: result: yes" >&5 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12760echo "${ECHO_T}yes" >&6; } 7582$as_echo "yes" >&6; }
12761else 7583else
12762 echo "$as_me: failed program was:" >&5
12763sed 's/^/| /' conftest.$ac_ext >&5
12764
12765 { echo "$as_me:$LINENO: result: no" >&5 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766echo "${ECHO_T}no" >&6; } 7585$as_echo "no" >&6; }
12767fi 7586fi
12768
12769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7587rm -f core conftest.err conftest.$ac_objext \
12770 conftest$ac_exeext conftest.$ac_ext 7588 conftest$ac_exeext conftest.$ac_ext
12771fi
12772 7589
12773if test -z "$unix98_pty"; then 7590if test -z "$unix98_pty"; then
12774 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
12775for ac_func in openpty 7592$as_echo_n "checking for library containing openpty... " >&6; }
12776do 7593if ${ac_cv_search_openpty+:} false; then :
12777as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7594 $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 7595else
12801# include <assert.h> 7596 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 7597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877cat >>conftest.$ac_ext <<_ACEOF
12878/* end confdefs.h. */ 7598/* end confdefs.h. */
12879 7599
12880/* Override any GCC internal prototype to avoid an error. 7600/* Override any GCC internal prototype to avoid an error.
12881 Use char because int might match the return type of a GCC 7601 Use char because int might match the return type of a GCC
12882 builtin and then its argument prototype would still apply. */ 7602 builtin and then its argument prototype would still apply. */
12890return openpty (); 7610return openpty ();
12891 ; 7611 ;
12892 return 0; 7612 return 0;
12893} 7613}
12894_ACEOF 7614_ACEOF
12895rm -f conftest.$ac_objext conftest$ac_exeext 7615for ac_lib in '' util; do
12896if { (ac_try="$ac_link" 7616 if test -z "$ac_lib"; then
12897case "(($ac_try" in 7617 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 7618 else
12915 echo "$as_me: failed program was:" >&5 7619 ac_res=-l$ac_lib
12916sed 's/^/| /' conftest.$ac_ext >&5 7620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12917 7621 fi
12918 ac_cv_lib_util_openpty=no 7622 if ac_fn_cxx_try_link "$LINENO"; then :
7623 ac_cv_search_openpty=$ac_res
12919fi 7624fi
12920
12921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7625rm -f core conftest.err conftest.$ac_objext \
12922 conftest$ac_exeext conftest.$ac_ext 7626 conftest$ac_exeext
12923LIBS=$ac_check_lib_save_LIBS 7627 if ${ac_cv_search_openpty+:} false; then :
12924fi 7628 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 7629fi
12935done 7630done
7631if ${ac_cv_search_openpty+:} false; then :
12936 7632
7633else
7634 ac_cv_search_openpty=no
12937fi 7635fi
7636rm conftest.$ac_ext
7637LIBS=$ac_func_search_save_LIBS
7638fi
7639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7640$as_echo "$ac_cv_search_openpty" >&6; }
7641ac_res=$ac_cv_search_openpty
7642if test "$ac_res" != no; then :
7643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12938 7644
7645$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
12939 7646
7647fi
12940 7648
7649fi
7650
7651
7652
12941{ echo "$as_me:$LINENO: checking for tty group" >&5 7653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
12942echo $ECHO_N "checking for tty group... $ECHO_C" >&6; } 7654$as_echo_n "checking for tty group... " >&6; }
12943if test "${tty_group+set}" = set; then 7655if ${pt_cv_tty_group+:} false; then :
12944 echo $ECHO_N "(cached) $ECHO_C" >&6 7656 $as_echo_n "(cached) " >&6
12945else 7657else
12946 if test "$cross_compiling" = yes; then 7658 if test "$cross_compiling" = yes; then :
12947 tty_group=no 7659 pt_cv_tty_group=no
12948else 7660else
12949 cat >conftest.$ac_ext <<_ACEOF
12950/* confdefs.h. */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext 7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
12954/* end confdefs.h. */ 7662/* end confdefs.h. */
12955 7663
12956#include <sys/types.h> 7664#include <sys/types.h>
12957#include <sys/stat.h> 7665#include <sys/stat.h>
12958#include <unistd.h> 7666#include <unistd.h>
12959#include <grp.h> 7667#include <grp.h>
12960 7668
12961main() 7669int main()
12962{ 7670{
12963 struct stat st; 7671 struct stat st;
12964 struct group *gr; 7672 struct group *gr;
12965 char *tty; 7673 char *tty;
12966 gr = getgrnam("tty"); 7674 gr = getgrnam("tty");
12972 return 0; 7680 return 0;
12973 else 7681 else
12974 return 1; 7682 return 1;
12975} 7683}
12976_ACEOF 7684_ACEOF
12977rm -f conftest$ac_exeext 7685if 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 7686 pt_cv_tty_group=yes
12998else 7687else
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 7688 pt_cv_tty_group=no
13005fi 7689fi
13006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7691 conftest.$ac_objext conftest.beam conftest.$ac_ext
13007fi 7692fi
13008 7693
13009
13010fi 7694fi
13011{ echo "$as_me:$LINENO: result: $tty_group" >&5 7695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
13012echo "${ECHO_T}$tty_group" >&6; } 7696$as_echo "$pt_cv_tty_group" >&6; }
13013if test x$tty_group = xyes; then 7697if test x$pt_cv_tty_group = xyes; then
13014 7698
13015cat >>confdefs.h <<\_ACEOF 7699$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
13016#define TTY_GID_SUPPORT 1
13017_ACEOF
13018 7700
13019fi 7701fi
13020 7702
13021if test x$support_xft = xyes; then 7703if test x$support_xft = xyes || test x$support_inheritpixmap = xyes; then
7704 rxvt_have_xrender=no
13022 # Extract the first word of "pkg-config", so it can be a program name with args. 7705 # Extract the first word of "pkg-config", so it can be a program name with args.
13023set dummy pkg-config; ac_word=$2 7706set dummy pkg-config; ac_word=$2
13024{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7708$as_echo_n "checking for $ac_word... " >&6; }
13026if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 7709if ${ac_cv_path_PKG_CONFIG+:} false; then :
13027 echo $ECHO_N "(cached) $ECHO_C" >&6 7710 $as_echo_n "(cached) " >&6
13028else 7711else
13029 case $PKG_CONFIG in 7712 case $PKG_CONFIG in
13030 [\\/]* | ?:[\\/]*) 7713 [\\/]* | ?:[\\/]*)
13031 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7714 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13032 ;; 7715 ;;
13034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035for as_dir in $PATH 7718for as_dir in $PATH
13036do 7719do
13037 IFS=$as_save_IFS 7720 IFS=$as_save_IFS
13038 test -z "$as_dir" && as_dir=. 7721 test -z "$as_dir" && as_dir=.
13039 for ac_exec_ext in '' $ac_executable_extensions; do 7722 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 7723 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" 7724 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 7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13043 break 2 7726 break 2
13044 fi 7727 fi
13045done 7728done
13046done 7729 done
13047IFS=$as_save_IFS 7730IFS=$as_save_IFS
13048 7731
13049 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7732 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13050 ;; 7733 ;;
13051esac 7734esac
13052fi 7735fi
13053PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7736PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13054if test -n "$PKG_CONFIG"; then 7737if test -n "$PKG_CONFIG"; then
13055 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13056echo "${ECHO_T}$PKG_CONFIG" >&6; } 7739$as_echo "$PKG_CONFIG" >&6; }
13057else 7740else
13058 { echo "$as_me:$LINENO: result: no" >&5 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059echo "${ECHO_T}no" >&6; } 7742$as_echo "no" >&6; }
7743fi
7744
7745
7746 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
7747 X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS"
7748 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`"
7749 rxvt_have_xrender=yes
7750
7751 save_LIBS="$LIBS"
7752 LIBS="$LIBS $X_LIBS"
7753 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
7754if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then :
7755
7756else
7757 rxvt_have_xrender=no
7758fi
7759
7760
7761 ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
7762if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes; then :
7763
7764else
7765 rxvt_have_xrender=no
7766fi
7767
7768 LIBS="$save_LIBS"
7769 fi
7770fi
7771
7772if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
7773 # Extract the first word of "pkg-config", so it can be a program name with args.
7774set dummy pkg-config; ac_word=$2
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776$as_echo_n "checking for $ac_word... " >&6; }
7777if ${ac_cv_path_PKG_CONFIG+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779else
7780 case $PKG_CONFIG in
7781 [\\/]* | ?:[\\/]*)
7782 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7783 ;;
7784 *)
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786for as_dir in $PATH
7787do
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7792 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 break 2
7795 fi
7796done
7797 done
7798IFS=$as_save_IFS
7799
7800 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7801 ;;
7802esac
7803fi
7804PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7805if test -n "$PKG_CONFIG"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7807$as_echo "$PKG_CONFIG" >&6; }
7808else
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810$as_echo "no" >&6; }
13060fi 7811fi
13061 7812
13062 7813
13063 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 7814 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
13064 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 7815 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
13065 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 7816 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
13066 else 7817 else
13067 # Extract the first word of "xft-config", so it can be a program name with args. 7818 # Extract the first word of "xft-config", so it can be a program name with args.
13068set dummy xft-config; ac_word=$2 7819set dummy xft-config; ac_word=$2
13069{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7821$as_echo_n "checking for $ac_word... " >&6; }
13071if test "${ac_cv_path_XFT_CONFIG+set}" = set; then 7822if ${ac_cv_path_XFT_CONFIG+:} false; then :
13072 echo $ECHO_N "(cached) $ECHO_C" >&6 7823 $as_echo_n "(cached) " >&6
13073else 7824else
13074 case $XFT_CONFIG in 7825 case $XFT_CONFIG in
13075 [\\/]* | ?:[\\/]*) 7826 [\\/]* | ?:[\\/]*)
13076 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. 7827 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
13077 ;; 7828 ;;
13079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080for as_dir in $PATH 7831for as_dir in $PATH
13081do 7832do
13082 IFS=$as_save_IFS 7833 IFS=$as_save_IFS
13083 test -z "$as_dir" && as_dir=. 7834 test -z "$as_dir" && as_dir=.
13084 for ac_exec_ext in '' $ac_executable_extensions; do 7835 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 7836 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" 7837 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 7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 break 2 7839 break 2
13089 fi 7840 fi
13090done 7841done
13091done 7842 done
13092IFS=$as_save_IFS 7843IFS=$as_save_IFS
13093 7844
13094 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" 7845 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
13095 ;; 7846 ;;
13096esac 7847esac
13097fi 7848fi
13098XFT_CONFIG=$ac_cv_path_XFT_CONFIG 7849XFT_CONFIG=$ac_cv_path_XFT_CONFIG
13099if test -n "$XFT_CONFIG"; then 7850if test -n "$XFT_CONFIG"; then
13100 { echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
13101echo "${ECHO_T}$XFT_CONFIG" >&6; } 7852$as_echo "$XFT_CONFIG" >&6; }
13102else 7853else
13103 { echo "$as_me:$LINENO: result: no" >&5 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104echo "${ECHO_T}no" >&6; } 7855$as_echo "no" >&6; }
13105fi 7856fi
13106 7857
13107 7858
13108 if test $XFT_CONFIG != no; then 7859 if test $XFT_CONFIG != no; then
13109 LIBS="$LIBS `$XFT_CONFIG --libs`" 7860 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
13110 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 7861 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
13111 fi 7862 fi
13112 fi 7863 fi
13113 7864
7865 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then
7866 X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS"
7867 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
7868 fi
13114 7869
7870 save_LIBS="$LIBS"
7871 LIBS="$LIBS $X_LIBS"
13115for ac_header in X11/Xft/Xft.h 7872 for ac_header in X11/Xft/Xft.h
13116do 7873do :
13117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7874 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 7875if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; 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 7876 cat >>confdefs.h <<_ACEOF
13247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7877#define HAVE_X11_XFT_XFT_H 1
13248_ACEOF 7878_ACEOF
13249 7879
13250else 7880else
13251 support_xft=no 7881 support_xft=no
13252fi 7882fi
13253 7883
13254done 7884done
13255 7885
13256
13257{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5
13258echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 7887$as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
13259if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 7888if ${ac_cv_lib_Xft_XftDrawString32+:} false; then :
13260 echo $ECHO_N "(cached) $ECHO_C" >&6 7889 $as_echo_n "(cached) " >&6
13261else 7890else
13262 ac_check_lib_save_LIBS=$LIBS 7891 ac_check_lib_save_LIBS=$LIBS
13263LIBS="-lXft $LIBS" 7892LIBS="-lXft $LIBS"
13264cat >conftest.$ac_ext <<_ACEOF
13265/* confdefs.h. */
13266_ACEOF
13267cat confdefs.h >>conftest.$ac_ext 7893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268cat >>conftest.$ac_ext <<_ACEOF
13269/* end confdefs.h. */ 7894/* end confdefs.h. */
13270 7895
13271/* Override any GCC internal prototype to avoid an error. 7896/* Override any GCC internal prototype to avoid an error.
13272 Use char because int might match the return type of a GCC 7897 Use char because int might match the return type of a GCC
13273 builtin and then its argument prototype would still apply. */ 7898 builtin and then its argument prototype would still apply. */
13281return XftDrawString32 (); 7906return XftDrawString32 ();
13282 ; 7907 ;
13283 return 0; 7908 return 0;
13284} 7909}
13285_ACEOF 7910_ACEOF
13286rm -f conftest.$ac_objext conftest$ac_exeext 7911if 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 7912 ac_cv_lib_Xft_XftDrawString32=yes
13305else 7913else
13306 echo "$as_me: failed program was:" >&5
13307sed 's/^/| /' conftest.$ac_ext >&5
13308
13309 ac_cv_lib_Xft_XftDrawString32=no 7914 ac_cv_lib_Xft_XftDrawString32=no
13310fi 7915fi
13311
13312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7916rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext 7917 conftest$ac_exeext conftest.$ac_ext
13314LIBS=$ac_check_lib_save_LIBS 7918LIBS=$ac_check_lib_save_LIBS
13315fi 7919fi
13316{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 7920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13317echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 7921$as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
13318if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 7922if test "x$ac_cv_lib_Xft_XftDrawString32" = xyes; then :
7923 :
7924else
7925 support_xft=no
7926fi
7927
7928 for ac_header in fontconfig/fontconfig.h
7929do :
7930 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
7931if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
13319 cat >>confdefs.h <<_ACEOF 7932 cat >>confdefs.h <<_ACEOF
13320#define HAVE_LIBXFT 1 7933#define HAVE_FONTCONFIG_FONTCONFIG_H 1
13321_ACEOF 7934_ACEOF
13322
13323 LIBS="-lXft $LIBS"
13324 7935
13325else 7936else
13326 support_xft=no 7937 support_xft=no
13327fi 7938fi
13328 7939
7940done
7941
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5
7943$as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; }
7944if ${ac_cv_lib_fontconfig_FcPatternGet+:} false; then :
7945 $as_echo_n "(cached) " >&6
7946else
7947 ac_check_lib_save_LIBS=$LIBS
7948LIBS="-lfontconfig $LIBS"
7949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950/* end confdefs.h. */
7951
7952/* Override any GCC internal prototype to avoid an error.
7953 Use char because int might match the return type of a GCC
7954 builtin and then its argument prototype would still apply. */
7955#ifdef __cplusplus
7956extern "C"
7957#endif
7958char FcPatternGet ();
7959int
7960main ()
7961{
7962return FcPatternGet ();
7963 ;
7964 return 0;
7965}
7966_ACEOF
7967if ac_fn_cxx_try_link "$LINENO"; then :
7968 ac_cv_lib_fontconfig_FcPatternGet=yes
7969else
7970 ac_cv_lib_fontconfig_FcPatternGet=no
7971fi
7972rm -f core conftest.err conftest.$ac_objext \
7973 conftest$ac_exeext conftest.$ac_ext
7974LIBS=$ac_check_lib_save_LIBS
7975fi
7976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5
7977$as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; }
7978if test "x$ac_cv_lib_fontconfig_FcPatternGet" = xyes; then :
7979 :
7980else
7981 support_xft=no
7982fi
7983
7984 LIBS="$save_LIBS"
13329 7985
13330 if test x$support_xft = xyes; then 7986 if test x$support_xft = xyes; then
13331 7987
13332cat >>confdefs.h <<\_ACEOF 7988$as_echo "#define XFT 1" >>confdefs.h
13333#define XFT 1
13334_ACEOF
13335 7989
13336 fi 7990 fi
13337fi 7991fi
13338if test x$support_styles = xyes; then 7992if test x$support_styles = xyes; then
13339 7993
13340cat >>confdefs.h <<\_ACEOF 7994$as_echo "#define ENABLE_STYLES 1" >>confdefs.h
13341#define ENABLE_STYLES 1
13342_ACEOF
13343 7995
13344fi 7996fi
13345if test x$support_iso14755 = xyes; then 7997if test x$support_iso14755 = xyes; then
13346 7998
13347cat >>confdefs.h <<\_ACEOF 7999$as_echo "#define ISO_14755 1" >>confdefs.h
13348#define ISO_14755 1
13349_ACEOF
13350 8000
13351fi 8001fi
13352if test x$support_8bitctrls = xyes; then 8002if test x$support_8bitctrls = xyes; then
13353 8003
13354cat >>confdefs.h <<\_ACEOF 8004$as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
13355#define EIGHT_BIT_CONTROLS 1
13356_ACEOF
13357 8005
13358fi 8006fi
13359if test x$support_fading = xyes; then 8007if test x$support_fading = xyes; then
13360 8008
13361cat >>confdefs.h <<\_ACEOF 8009$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 8010
13372fi 8011fi
13373if test x$support_inheritpixmap = xyes; then 8012if test x$support_inheritpixmap = xyes; then
8013 if test x$rxvt_have_xrender = xyes; then
8014 LIBS="$LIBS -lm"
13374 8015
13375cat >>confdefs.h <<\_ACEOF 8016$as_echo "#define XRENDER 1" >>confdefs.h
13376#define TRANSPARENT 1 8017
13377_ACEOF 8018 fi
8019
8020$as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
13378 8021
13379fi 8022fi
13380if test x$support_keepscrolling = xno; then 8023if test x$support_keepscrolling = xno; then
13381 8024
13382cat >>confdefs.h <<\_ACEOF
13383#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 8025$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
13384_ACEOF
13385 8026
13386fi 8027fi
13387if test x$support_selectionscrolling = xyes; then 8028if test x$support_selectionscrolling = xyes; then
13388 8029
13389cat >>confdefs.h <<\_ACEOF 8030$as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h
13390#define SELECTION_SCROLLING 1
13391_ACEOF
13392 8031
13393fi 8032fi
13394if test x$support_frills = xyes; then 8033if test x$support_frills = xyes; then
13395 8034
13396cat >>confdefs.h <<\_ACEOF 8035$as_echo "#define ENABLE_FRILLS 1" >>confdefs.h
13397#define ENABLE_FRILLS 1
13398_ACEOF
13399 8036
13400fi 8037fi
13401if test x$support_mousewheel = xyes; then 8038if test x$support_mousewheel = xyes; then
13402 8039
13403cat >>confdefs.h <<\_ACEOF 8040$as_echo "#define MOUSE_WHEEL 1" >>confdefs.h
13404#define MOUSE_WHEEL 1
13405_ACEOF
13406 8041
13407fi 8042fi
13408if test x$support_mouseslipwheel = xyes; then 8043if test x$support_mouseslipwheel = xyes; then
13409 8044
13410cat >>confdefs.h <<\_ACEOF 8045$as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
13411#define MOUSE_SLIP_WHEELING 1
13412_ACEOF
13413 8046
13414fi 8047fi
13415if test x$support_xim = xyes -o x$multichar_set = xyes; then
13416 if test x$rxvt_cv_func_xlocale = xyes; then
13417 8048
13418cat >>confdefs.h <<\_ACEOF 8049scrolltypes=plain
13419#define USE_XIM 1
13420_ACEOF
13421 8050
13422 fi 8051$as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h
13423fi
13424if test x$support_xpm = xyes; then
13425 8052
13426cat >>confdefs.h <<\_ACEOF
13427#define XPM_BACKGROUND 1
13428_ACEOF
13429 8053
13430fi
13431if test x$support_scroll_rxvt = xyes; then 8054if test x$support_scroll_rxvt = xyes; then
13432 8055
13433cat >>confdefs.h <<\_ACEOF 8056$as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h
13434#define RXVT_SCROLLBAR 1
13435_ACEOF
13436 8057
13437 scrolltypes="rxvt" 8058 scrolltypes="$scrolltypes rxvt"
13438fi 8059fi
13439if test x$support_scroll_next = xyes; then 8060if test x$support_scroll_next = xyes; then
13440 8061
13441cat >>confdefs.h <<\_ACEOF 8062$as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h
13442#define NEXT_SCROLLBAR 1
13443_ACEOF
13444 8063
13445 scrolltypes="$scrolltypes next" 8064 scrolltypes="$scrolltypes next"
13446fi 8065fi
13447if test x$support_scroll_xterm = xyes; then 8066if test x$support_scroll_xterm = xyes; then
13448 8067
13449cat >>confdefs.h <<\_ACEOF 8068$as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h
13450#define XTERM_SCROLLBAR 1
13451_ACEOF
13452 8069
13453 scrolltypes="$scrolltypes xterm" 8070 scrolltypes="$scrolltypes xterm"
13454fi 8071fi
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 8072if test x$support_pointer_blank = xyes; then
13464 8073
13465cat >>confdefs.h <<\_ACEOF 8074$as_echo "#define POINTER_BLANK 1" >>confdefs.h
13466#define POINTER_BLANK 1
13467_ACEOF
13468 8075
13469fi 8076fi
13470if test x$support_text_blink = xyes; then 8077if test x$support_text_blink = xyes; then
13471 8078
13472cat >>confdefs.h <<\_ACEOF 8079$as_echo "#define TEXT_BLINK 1" >>confdefs.h
13473#define TEXT_BLINK 1
13474_ACEOF
13475 8080
13476fi 8081fi
13477if test x$support_unicode3 = xyes; then 8082if test x$support_unicode3 = xyes; then
13478 8083
13479cat >>confdefs.h <<\_ACEOF 8084$as_echo "#define UNICODE_3 1" >>confdefs.h
13480#define UNICODE_3 1
13481_ACEOF
13482 8085
13483fi 8086fi
13484if test x$support_combining = xyes; then 8087if test x$support_combining = xyes; then
13485 8088
13486cat >>confdefs.h <<\_ACEOF 8089$as_echo "#define ENABLE_COMBINING 1" >>confdefs.h
13487#define ENABLE_COMBINING 1
13488_ACEOF
13489 8090
13490fi 8091fi
13491if test x$codesets = xall; then 8092if test x$codesets = xall; then
13492 codesets=jp,jp-ext,kr,zh,zh-ext 8093 codesets=jp,jp-ext,kr,zh,zh-ext
13493fi 8094fi
13494 8095
13495cat >>confdefs.h <<\_ACEOF 8096$as_echo "#define ENCODING_EU 1" >>confdefs.h
13496#define ENCODING_EU 1
13497_ACEOF
13498 8097
13499 8098
13500cat >>confdefs.h <<\_ACEOF 8099$as_echo "#define ENCODING_VN 1" >>confdefs.h
13501#define ENCODING_VN 1
13502_ACEOF
13503 8100
13504for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 8101for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13505 case "$codeset" in 8102 case "$codeset" in
13506 JP ) 8103 JP )
13507cat >>confdefs.h <<\_ACEOF 8104$as_echo "#define ENCODING_JP 1" >>confdefs.h
13508#define ENCODING_JP 1
13509_ACEOF
13510 ;; 8105 ;;
13511 JP_EXT ) 8106 JP_EXT )
13512cat >>confdefs.h <<\_ACEOF 8107$as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h
13513#define ENCODING_JP_EXT 1
13514_ACEOF
13515 ;; 8108 ;;
13516 KR ) 8109 KR )
13517cat >>confdefs.h <<\_ACEOF 8110$as_echo "#define ENCODING_KR 1" >>confdefs.h
13518#define ENCODING_KR 1
13519_ACEOF
13520 ;; 8111 ;;
13521 ZH ) 8112 ZH )
13522cat >>confdefs.h <<\_ACEOF 8113$as_echo "#define ENCODING_ZH 1" >>confdefs.h
13523#define ENCODING_ZH 1
13524_ACEOF
13525 ;; 8114 ;;
13526 ZH_EXT ) 8115 ZH_EXT )
13527cat >>confdefs.h <<\_ACEOF 8116$as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h
13528#define ENCODING_ZH_EXT 1
13529_ACEOF
13530 ;; 8117 ;;
13531 esac 8118 esac
13532done 8119done
13533 8120
13534IF_PERL=\# 8121IF_PERL=\#
13535if test x$support_perl = xyes; then 8122if test x$support_perl = xyes; then
13536 # Extract the first word of "perl5", so it can be a program name with args. 8123 # Extract the first word of "perl5", so it can be a program name with args.
13537set dummy perl5; ac_word=$2 8124set dummy perl5; ac_word=$2
13538{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8126$as_echo_n "checking for $ac_word... " >&6; }
13540if test "${ac_cv_path_PERL+set}" = set; then 8127if ${ac_cv_path_PERL+:} false; then :
13541 echo $ECHO_N "(cached) $ECHO_C" >&6 8128 $as_echo_n "(cached) " >&6
13542else 8129else
13543 case $PERL in 8130 case $PERL in
13544 [\\/]* | ?:[\\/]*) 8131 [\\/]* | ?:[\\/]*)
13545 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 8132 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13546 ;; 8133 ;;
13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549for as_dir in $PATH 8136for as_dir in $PATH
13550do 8137do
13551 IFS=$as_save_IFS 8138 IFS=$as_save_IFS
13552 test -z "$as_dir" && as_dir=. 8139 test -z "$as_dir" && as_dir=.
13553 for ac_exec_ext in '' $ac_executable_extensions; do 8140 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 8141 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" 8142 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 8143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13557 break 2 8144 break 2
13558 fi 8145 fi
13559done 8146done
13560done 8147 done
13561IFS=$as_save_IFS 8148IFS=$as_save_IFS
13562 8149
13563 ;; 8150 ;;
13564esac 8151esac
13565fi 8152fi
13566PERL=$ac_cv_path_PERL 8153PERL=$ac_cv_path_PERL
13567if test -n "$PERL"; then 8154if test -n "$PERL"; then
13568 { echo "$as_me:$LINENO: result: $PERL" >&5 8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13569echo "${ECHO_T}$PERL" >&6; } 8156$as_echo "$PERL" >&6; }
13570else 8157else
13571 { echo "$as_me:$LINENO: result: no" >&5 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13572echo "${ECHO_T}no" >&6; } 8159$as_echo "no" >&6; }
13573fi 8160fi
13574 8161
13575 8162
13576 # Extract the first word of "perl", so it can be a program name with args. 8163 # Extract the first word of "perl", so it can be a program name with args.
13577set dummy perl; ac_word=$2 8164set dummy perl; ac_word=$2
13578{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8166$as_echo_n "checking for $ac_word... " >&6; }
13580if test "${ac_cv_path_PERL+set}" = set; then 8167if ${ac_cv_path_PERL+:} false; then :
13581 echo $ECHO_N "(cached) $ECHO_C" >&6 8168 $as_echo_n "(cached) " >&6
13582else 8169else
13583 case $PERL in 8170 case $PERL in
13584 [\\/]* | ?:[\\/]*) 8171 [\\/]* | ?:[\\/]*)
13585 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 8172 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13586 ;; 8173 ;;
13588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589for as_dir in $PATH 8176for as_dir in $PATH
13590do 8177do
13591 IFS=$as_save_IFS 8178 IFS=$as_save_IFS
13592 test -z "$as_dir" && as_dir=. 8179 test -z "$as_dir" && as_dir=.
13593 for ac_exec_ext in '' $ac_executable_extensions; do 8180 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 8181 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" 8182 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 8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 break 2 8184 break 2
13598 fi 8185 fi
13599done 8186done
13600done 8187 done
13601IFS=$as_save_IFS 8188IFS=$as_save_IFS
13602 8189
13603 ;; 8190 ;;
13604esac 8191esac
13605fi 8192fi
13606PERL=$ac_cv_path_PERL 8193PERL=$ac_cv_path_PERL
13607if test -n "$PERL"; then 8194if test -n "$PERL"; then
13608 { echo "$as_me:$LINENO: result: $PERL" >&5 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13609echo "${ECHO_T}$PERL" >&6; } 8196$as_echo "$PERL" >&6; }
13610else 8197else
13611 { echo "$as_me:$LINENO: result: no" >&5 8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612echo "${ECHO_T}no" >&6; } 8199$as_echo "no" >&6; }
13613fi 8200fi
13614 8201
13615 8202
13616 8203
13617 { echo "$as_me:$LINENO: checking for $PERL suitability" >&5 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
13618echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6; } 8205$as_echo_n "checking for $PERL suitability... " >&6; }
13619 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then 8206 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13620 8207
13621 save_CXXFLAGS="$CXXFLAGS" 8208 save_CXXFLAGS="$CXXFLAGS"
13622 save_LIBS="$LIBS" 8209 save_LIBS="$LIBS"
13623 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" 8210 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13624 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" 8211 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13625 cat >conftest.$ac_ext <<_ACEOF
13626/* confdefs.h. */
13627_ACEOF
13628cat confdefs.h >>conftest.$ac_ext 8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629cat >>conftest.$ac_ext <<_ACEOF
13630/* end confdefs.h. */ 8213/* end confdefs.h. */
13631 8214
13632#include <EXTERN.h> 8215#include <EXTERN.h>
13633#include <perl.h> 8216#include <perl.h>
13634#include <XSUB.h> 8217#include <XSUB.h>
13641 8224
13642 ; 8225 ;
13643 return 0; 8226 return 0;
13644} 8227}
13645_ACEOF 8228_ACEOF
13646rm -f conftest.$ac_objext conftest$ac_exeext 8229if 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 8230 rxvt_perl_link=yes
13665else 8231else
13666 echo "$as_me: failed program was:" >&5
13667sed 's/^/| /' conftest.$ac_ext >&5
13668
13669 rxvt_perl_link=no 8232 rxvt_perl_link=no
13670fi 8233fi
13671
13672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8234rm -f core conftest.err conftest.$ac_objext \
13673 conftest$ac_exeext conftest.$ac_ext 8235 conftest$ac_exeext conftest.$ac_ext
13674 CXXFLAGS="$save_CXXFLAGS" 8236 CXXFLAGS="$save_CXXFLAGS"
13675 LIBS="$save_LIBS" 8237 LIBS="$save_LIBS"
13676 8238
13677 if test x$rxvt_perl_link = xyes; then 8239 if test x$rxvt_perl_link = xyes; then
13678 { echo "$as_me:$LINENO: result: ok" >&5 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13679echo "${ECHO_T}ok" >&6; } 8241$as_echo "ok" >&6; }
13680 8242
13681cat >>confdefs.h <<\_ACEOF 8243$as_echo "#define ENABLE_PERL 1" >>confdefs.h
13682#define ENABLE_PERL 1
13683_ACEOF
13684 8244
13685 IF_PERL= 8245 IF_PERL=
13686 PERL_O=rxvtperl.o 8246 PERL_O=rxvtperl.o
13687 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 8247 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13688 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 8248 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13689 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" 8249 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13690 else 8250 else
13691 { { echo "$as_me:$LINENO: error: no, unable to link" >&5 8251 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 8252 fi
13695 else 8253 else
13696 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 8254 as_fn_error $? "no working perl found, or perl not version >= 5.8" "$LINENO" 5
13697echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13698 { (exit 1); exit 1; }; }
13699 fi 8255 fi
13700fi 8256fi
13701 8257
13702 8258
13703 8259
13704 8260
13705 8261
13706 8262
13707 8263
13708if test x$support_perl = xyes; then
13709 support_frills=yes
13710fi
13711 8264
13712
13713
13714
13715
13716
13717
13718
13719if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13720 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
13721 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13722 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13723 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13724 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13725fi
13726
13727
13728
13729
13730
13731test "$program_prefix" != NONE &&
13732 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13733# Use a double $ so make ignores it.
13734test "$program_suffix" != NONE &&
13735 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
13736# Double any \ or $. echo might interpret backslashes.
13737# By default was `s,x,x', remove it if useless.
13738cat <<\_ACEOF >conftest.sed
13739s/[\\$]/&&/g;s/;s,x,x,$//
13740_ACEOF
13741program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13742rm -f conftest.sed
13743
13744
13745
13746
13747
13748if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13749 include_stdint_h="#include <stdint.h>"
13750else
13751 include_stdint_h="/* #include <stdint.h> */"
13752fi
13753if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13754 include_stdarg_h="#include <cstdarg>"
13755else
13756 include_stdarg_h="/* #include <cstdarg> */"
13757fi
13758if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13759 include_stdlib_h="#include <cstdlib>"
13760else
13761 include_stdlib_h="/* #include <cstdlib> */"
13762fi
13763if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13764 include_unistd_h="#include <unistd.h>"
13765else
13766 include_unistd_h="/* #include <unistd.h> */"
13767fi
13768if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13769 include_string_h="#include <cstring>"
13770else
13771 include_string_h="/* #include <cstring> */"
13772fi
13773if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13774 include_fcntl_h="#include <fcntl.h>"
13775else
13776 include_fcntl_h="/* #include <fcntl.h> */"
13777fi
13778if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13779 include_util_h="#include <util.h>"
13780else
13781 include_util_h="/* #include <util.h> */"
13782fi
13783if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13784 include_assert_h="#include <assert.h>"
13785else
13786 include_assert_h="/* #include <assert.h> */"
13787fi
13788if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13789 include_sys_ioctl_h="#include <sys/ioctl.h>"
13790else
13791 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13792fi
13793if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13794 include_sys_select_h="#include <sys/select.h>"
13795else
13796 include_sys_select_h="/* #include <sys/select.h> */"
13797fi
13798if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13799 include_sys_strredir_h="#include <sys/strredir.h>"
13800else
13801 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13802fi
13803if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13804 include_sys_time_h="#include <sys/time.h>"
13805else
13806 include_sys_time_h="/* #include <sys/time.h> */"
13807fi
13808if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13809 include_time_h="#include <time.h>"
13810else
13811 include_time_h="/* #include <time.h> */"
13812fi
13813
13814ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 8265ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13815 8266
13816cat >confcache <<\_ACEOF 8267cat >confcache <<\_ACEOF
13817# This file is a shell script that caches the results of configure 8268# 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 8269# tests run on this system so they can be shared between configure
13819# scripts and configure runs, see configure's option --config-cache. 8270# 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 8289 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 8290 eval ac_val=\$$ac_var
13840 case $ac_val in #( 8291 case $ac_val in #(
13841 *${as_nl}*) 8292 *${as_nl}*)
13842 case $ac_var in #( 8293 case $ac_var in #(
13843 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 8294 *_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;} ;; 8295$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13845 esac 8296 esac
13846 case $ac_var in #( 8297 case $ac_var in #(
13847 _ | IFS | as_nl) ;; #( 8298 _ | IFS | as_nl) ;; #(
13848 *) $as_unset $ac_var ;; 8299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8300 *) { eval $ac_var=; unset $ac_var;} ;;
13849 esac ;; 8301 esac ;;
13850 esac 8302 esac
13851 done 8303 done
13852 8304
13853 (set) 2>&1 | 8305 (set) 2>&1 |
13854 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8306 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13855 *${as_nl}ac_space=\ *) 8307 *${as_nl}ac_space=\ *)
13856 # `set' does not quote correctly, so add quotes (double-quote 8308 # `set' does not quote correctly, so add quotes: double-quote
13857 # substitution turns \\\\ into \\, and sed turns \\ into \). 8309 # substitution turns \\\\ into \\, and sed turns \\ into \.
13858 sed -n \ 8310 sed -n \
13859 "s/'/'\\\\''/g; 8311 "s/'/'\\\\''/g;
13860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13861 ;; #( 8313 ;; #(
13862 *) 8314 *)
13874 t end 8326 t end
13875 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13876 :end' >>confcache 8328 :end' >>confcache
13877if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8329if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13878 if test -w "$cache_file"; then 8330 if test -w "$cache_file"; then
13879 test "x$cache_file" != "x/dev/null" && 8331 if test "x$cache_file" != "x/dev/null"; then
13880 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 8332 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13881echo "$as_me: updating cache $cache_file" >&6;} 8333$as_echo "$as_me: updating cache $cache_file" >&6;}
8334 if test ! -f "$cache_file" || test -h "$cache_file"; then
13882 cat confcache >$cache_file 8335 cat confcache >"$cache_file"
8336 else
8337 case $cache_file in #(
8338 */* | ?:*)
8339 mv -f confcache "$cache_file"$$ &&
8340 mv -f "$cache_file"$$ "$cache_file" ;; #(
8341 *)
8342 mv -f confcache "$cache_file" ;;
8343 esac
8344 fi
8345 fi
13883 else 8346 else
13884 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 8347 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13885echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8348$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13886 fi 8349 fi
13887fi 8350fi
13888rm -f confcache 8351rm -f confcache
13889 8352
13890test "x$prefix" = xNONE && prefix=$ac_default_prefix 8353test "x$prefix" = xNONE && prefix=$ac_default_prefix
13893 8356
13894DEFS=-DHAVE_CONFIG_H 8357DEFS=-DHAVE_CONFIG_H
13895 8358
13896ac_libobjs= 8359ac_libobjs=
13897ac_ltlibobjs= 8360ac_ltlibobjs=
8361U=
13898for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8362for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13899 # 1. Remove the extension, and $U if already installed. 8363 # 1. Remove the extension, and $U if already installed.
13900 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8364 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13901 ac_i=`echo "$ac_i" | sed "$ac_script"` 8365 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13902 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8366 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13903 # will be set to the directory where LIBOBJS objects are built. 8367 # will be set to the directory where LIBOBJS objects are built.
13904 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8368 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13905 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 8369 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13906done 8370done
13907LIBOBJS=$ac_libobjs 8371LIBOBJS=$ac_libobjs
13908 8372
13909LTLIBOBJS=$ac_ltlibobjs 8373LTLIBOBJS=$ac_ltlibobjs
13910 8374
13911 8375
13912 8376
13913: ${CONFIG_STATUS=./config.status} 8377: "${CONFIG_STATUS=./config.status}"
8378ac_write_fail=0
13914ac_clean_files_save=$ac_clean_files 8379ac_clean_files_save=$ac_clean_files
13915ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8380ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13916{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8381{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13917echo "$as_me: creating $CONFIG_STATUS" >&6;} 8382$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13918cat >$CONFIG_STATUS <<_ACEOF 8383as_write_fail=0
8384cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13919#! $SHELL 8385#! $SHELL
13920# Generated by $as_me. 8386# Generated by $as_me.
13921# Run this file to recreate the current configuration. 8387# Run this file to recreate the current configuration.
13922# Compiler output produced by configure, useful for debugging 8388# Compiler output produced by configure, useful for debugging
13923# configure, is in config.log if it exists. 8389# configure, is in config.log if it exists.
13924 8390
13925debug=false 8391debug=false
13926ac_cs_recheck=false 8392ac_cs_recheck=false
13927ac_cs_silent=false 8393ac_cs_silent=false
8394
13928SHELL=\${CONFIG_SHELL-$SHELL} 8395SHELL=\${CONFIG_SHELL-$SHELL}
8396export SHELL
13929_ACEOF 8397_ASEOF
13930 8398cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13931cat >>$CONFIG_STATUS <<\_ACEOF
13932## --------------------- ## 8399## -------------------- ##
13933## M4sh Initialization. ## 8400## M4sh Initialization. ##
13934## --------------------- ## 8401## -------------------- ##
13935 8402
13936# Be more Bourne compatible 8403# Be more Bourne compatible
13937DUALCASE=1; export DUALCASE # for MKS sh 8404DUALCASE=1; export DUALCASE # for MKS sh
13938if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8405if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13939 emulate sh 8406 emulate sh
13940 NULLCMD=: 8407 NULLCMD=:
13941 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8408 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13942 # is contrary to our usage. Disable this feature. 8409 # is contrary to our usage. Disable this feature.
13943 alias -g '${1+"$@"}'='"$@"' 8410 alias -g '${1+"$@"}'='"$@"'
13944 setopt NO_GLOB_SUBST 8411 setopt NO_GLOB_SUBST
13945else 8412else
13946 case `(set -o) 2>/dev/null` in 8413 case `(set -o) 2>/dev/null` in #(
13947 *posix*) set -o posix ;; 8414 *posix*) :
8415 set -o posix ;; #(
8416 *) :
8417 ;;
13948esac 8418esac
13949
13950fi 8419fi
13951 8420
13952 8421
13953 8422as_nl='
13954 8423'
13955# PATH needs CR 8424export as_nl
13956# Avoid depending upon Character Ranges. 8425# Printing a long string crashes Solaris 7 /usr/bin/printf.
13957as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8426as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13958as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8427as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13959as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8428as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13960as_cr_digits='0123456789' 8429# Prefer a ksh shell builtin over an external printf program on Solaris,
13961as_cr_alnum=$as_cr_Letters$as_cr_digits 8430# but without wasting forks for bash or zsh.
8431if test -z "$BASH_VERSION$ZSH_VERSION" \
8432 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8433 as_echo='print -r --'
8434 as_echo_n='print -rn --'
8435elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8436 as_echo='printf %s\n'
8437 as_echo_n='printf %s'
8438else
8439 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8440 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8441 as_echo_n='/usr/ucb/echo -n'
8442 else
8443 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8444 as_echo_n_body='eval
8445 arg=$1;
8446 case $arg in #(
8447 *"$as_nl"*)
8448 expr "X$arg" : "X\\(.*\\)$as_nl";
8449 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8450 esac;
8451 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8452 '
8453 export as_echo_n_body
8454 as_echo_n='sh -c $as_echo_n_body as_echo'
8455 fi
8456 export as_echo_body
8457 as_echo='sh -c $as_echo_body as_echo'
8458fi
13962 8459
13963# The user is always right. 8460# The user is always right.
13964if test "${PATH_SEPARATOR+set}" != set; then 8461if test "${PATH_SEPARATOR+set}" != set; then
13965 echo "#! /bin/sh" >conf$$.sh 8462 PATH_SEPARATOR=:
13966 echo "exit 0" >>conf$$.sh 8463 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13967 chmod +x conf$$.sh 8464 (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=';' 8465 PATH_SEPARATOR=';'
13970 else 8466 }
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 8467fi
13982 8468
13983 8469
13984# IFS 8470# IFS
13985# We need space, tab and new line, in precisely that order. Quoting is 8471# We need space, tab and new line, in precisely that order. Quoting is
13986# there to prevent editors from complaining about space-tab. 8472# there to prevent editors from complaining about space-tab.
13987# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8473# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13988# splitting by setting IFS to empty value.) 8474# splitting by setting IFS to empty value.)
13989as_nl='
13990'
13991IFS=" "" $as_nl" 8475IFS=" "" $as_nl"
13992 8476
13993# Find who we are. Look in the path if we contain no directory separator. 8477# Find who we are. Look in the path if we contain no directory separator.
8478as_myself=
13994case $0 in 8479case $0 in #((
13995 *[\\/]* ) as_myself=$0 ;; 8480 *[\\/]* ) as_myself=$0 ;;
13996 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8481 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13997for as_dir in $PATH 8482for as_dir in $PATH
13998do 8483do
13999 IFS=$as_save_IFS 8484 IFS=$as_save_IFS
14000 test -z "$as_dir" && as_dir=. 8485 test -z "$as_dir" && as_dir=.
14001 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8486 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14002done 8487 done
14003IFS=$as_save_IFS 8488IFS=$as_save_IFS
14004 8489
14005 ;; 8490 ;;
14006esac 8491esac
14007# We did not find ourselves, most probably we were run as `sh COMMAND' 8492# 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. 8493# in which case we are not to be found in the path.
14009if test "x$as_myself" = x; then 8494if test "x$as_myself" = x; then
14010 as_myself=$0 8495 as_myself=$0
14011fi 8496fi
14012if test ! -f "$as_myself"; then 8497if test ! -f "$as_myself"; then
14013 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8498 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14014 { (exit 1); exit 1; } 8499 exit 1
14015fi 8500fi
14016 8501
14017# Work around bugs in pre-3.0 UWIN ksh. 8502# Unset variables that we do not need and which cause bugs (e.g. in
8503# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8504# suppresses any "Segmentation fault" message there. '((' could
8505# trigger a bug in pdksh 5.2.14.
14018for as_var in ENV MAIL MAILPATH 8506for as_var in BASH_ENV ENV MAIL MAILPATH
8507do eval test x\${$as_var+set} = xset \
14019do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8508 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14020done 8509done
14021PS1='$ ' 8510PS1='$ '
14022PS2='> ' 8511PS2='> '
14023PS4='+ ' 8512PS4='+ '
14024 8513
14025# NLS nuisances. 8514# NLS nuisances.
14026for as_var in \ 8515LC_ALL=C
14027 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8516export LC_ALL
14028 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8517LANGUAGE=C
14029 LC_TELEPHONE LC_TIME 8518export LANGUAGE
14030do 8519
14031 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8520# CDPATH.
14032 eval $as_var=C; export $as_var 8521(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8522
8523
8524# as_fn_error STATUS ERROR [LINENO LOG_FD]
8525# ----------------------------------------
8526# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8527# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8528# script with STATUS, using 1 if that was 0.
8529as_fn_error ()
8530{
8531 as_status=$1; test $as_status -eq 0 && as_status=1
8532 if test "$4"; then
8533 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8534 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8535 fi
8536 $as_echo "$as_me: error: $2" >&2
8537 as_fn_exit $as_status
8538} # as_fn_error
8539
8540
8541# as_fn_set_status STATUS
8542# -----------------------
8543# Set $? to STATUS, without forking.
8544as_fn_set_status ()
8545{
8546 return $1
8547} # as_fn_set_status
8548
8549# as_fn_exit STATUS
8550# -----------------
8551# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8552as_fn_exit ()
8553{
8554 set +e
8555 as_fn_set_status $1
8556 exit $1
8557} # as_fn_exit
8558
8559# as_fn_unset VAR
8560# ---------------
8561# Portably unset VAR.
8562as_fn_unset ()
8563{
8564 { eval $1=; unset $1;}
8565}
8566as_unset=as_fn_unset
8567# as_fn_append VAR VALUE
8568# ----------------------
8569# Append the text in VALUE to the end of the definition contained in VAR. Take
8570# advantage of any shell optimizations that allow amortized linear growth over
8571# repeated appends, instead of the typical quadratic growth present in naive
8572# implementations.
8573if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8574 eval 'as_fn_append ()
8575 {
8576 eval $1+=\$2
8577 }'
14033 else 8578else
14034 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8579 as_fn_append ()
14035 fi 8580 {
14036done 8581 eval $1=\$$1\$2
8582 }
8583fi # as_fn_append
14037 8584
14038# Required to use basename. 8585# as_fn_arith ARG...
8586# ------------------
8587# Perform arithmetic evaluation on the ARGs, and store the result in the
8588# global $as_val. Take advantage of shells that can avoid forks. The arguments
8589# must be portable across $(()) and expr.
8590if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8591 eval 'as_fn_arith ()
8592 {
8593 as_val=$(( $* ))
8594 }'
8595else
8596 as_fn_arith ()
8597 {
8598 as_val=`expr "$@" || test $? -eq 1`
8599 }
8600fi # as_fn_arith
8601
8602
14039if expr a : '\(a\)' >/dev/null 2>&1 && 8603if expr a : '\(a\)' >/dev/null 2>&1 &&
14040 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8604 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14041 as_expr=expr 8605 as_expr=expr
14042else 8606else
14043 as_expr=false 8607 as_expr=false
14047 as_basename=basename 8611 as_basename=basename
14048else 8612else
14049 as_basename=false 8613 as_basename=false
14050fi 8614fi
14051 8615
8616if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8617 as_dirname=dirname
8618else
8619 as_dirname=false
8620fi
14052 8621
14053# Name of the executable.
14054as_me=`$as_basename -- "$0" || 8622as_me=`$as_basename -- "$0" ||
14055$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8623$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14056 X"$0" : 'X\(//\)$' \| \ 8624 X"$0" : 'X\(//\)$' \| \
14057 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8625 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14058echo X/"$0" | 8626$as_echo X/"$0" |
14059 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8627 sed '/^.*\/\([^/][^/]*\)\/*$/{
14060 s//\1/ 8628 s//\1/
14061 q 8629 q
14062 } 8630 }
14063 /^X\/\(\/\/\)$/{ 8631 /^X\/\(\/\/\)$/{
14068 s//\1/ 8636 s//\1/
14069 q 8637 q
14070 } 8638 }
14071 s/.*/./; q'` 8639 s/.*/./; q'`
14072 8640
14073# CDPATH. 8641# Avoid depending upon Character Ranges.
14074$as_unset CDPATH 8642as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14075 8643as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14076 8644as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14077 8645as_cr_digits='0123456789'
14078 as_lineno_1=$LINENO 8646as_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 8647
14127ECHO_C= ECHO_N= ECHO_T= 8648ECHO_C= ECHO_N= ECHO_T=
14128case `echo -n x` in 8649case `echo -n x` in #(((((
14129-n*) 8650-n*)
14130 case `echo 'x\c'` in 8651 case `echo 'xy\c'` in
14131 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8652 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14132 *) ECHO_C='\c';; 8653 xy) ECHO_C='\c';;
8654 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8655 ECHO_T=' ';;
14133 esac;; 8656 esac;;
14134*) 8657*)
14135 ECHO_N='-n';; 8658 ECHO_N='-n';;
14136esac 8659esac
14137 8660
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 8661rm -f conf$$ conf$$.exe conf$$.file
14146if test -d conf$$.dir; then 8662if test -d conf$$.dir; then
14147 rm -f conf$$.dir/conf$$.file 8663 rm -f conf$$.dir/conf$$.file
14148else 8664else
14149 rm -f conf$$.dir 8665 rm -f conf$$.dir
14150 mkdir conf$$.dir 8666 mkdir conf$$.dir 2>/dev/null
14151fi 8667fi
14152echo >conf$$.file 8668if (echo >conf$$.file) 2>/dev/null; then
14153if ln -s conf$$.file conf$$ 2>/dev/null; then 8669 if ln -s conf$$.file conf$$ 2>/dev/null; then
14154 as_ln_s='ln -s' 8670 as_ln_s='ln -s'
14155 # ... but there are two gotchas: 8671 # ... but there are two gotchas:
14156 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8672 # 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. 8673 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14158 # In both cases, we have to default to `cp -p'. 8674 # In both cases, we have to default to `cp -p'.
14159 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8675 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8676 as_ln_s='cp -p'
8677 elif ln conf$$.file conf$$ 2>/dev/null; then
8678 as_ln_s=ln
8679 else
14160 as_ln_s='cp -p' 8680 as_ln_s='cp -p'
14161elif ln conf$$.file conf$$ 2>/dev/null; then 8681 fi
14162 as_ln_s=ln
14163else 8682else
14164 as_ln_s='cp -p' 8683 as_ln_s='cp -p'
14165fi 8684fi
14166rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8685rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14167rmdir conf$$.dir 2>/dev/null 8686rmdir conf$$.dir 2>/dev/null
14168 8687
14169if mkdir -p . 2>/dev/null; then 8688
14170 as_mkdir_p=: 8689# as_fn_mkdir_p
14171else 8690# -------------
14172 test -d ./-p && rmdir ./-p 8691# Create "$as_dir" as a directory, including parents if necessary.
14173 as_mkdir_p=false 8692as_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{ 8693{
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 8694
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 #( 8695 case $as_dir in #(
14737 -*) as_dir=./$as_dir;; 8696 -*) as_dir=./$as_dir;;
14738 esac 8697 esac
14739 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 8698 test -d "$as_dir" || eval $as_mkdir_p || {
14740 as_dirs= 8699 as_dirs=
14741 while :; do 8700 while :; do
14742 case $as_dir in #( 8701 case $as_dir in #(
14743 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 8702 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14744 *) as_qdir=$as_dir;; 8703 *) as_qdir=$as_dir;;
14745 esac 8704 esac
14746 as_dirs="'$as_qdir' $as_dirs" 8705 as_dirs="'$as_qdir' $as_dirs"
14747 as_dir=`$as_dirname -- "$as_dir" || 8706 as_dir=`$as_dirname -- "$as_dir" ||
14748$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8707$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14749 X"$as_dir" : 'X\(//\)[^/]' \| \ 8708 X"$as_dir" : 'X\(//\)[^/]' \| \
14750 X"$as_dir" : 'X\(//\)$' \| \ 8709 X"$as_dir" : 'X\(//\)$' \| \
14751 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8710 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14752echo X"$as_dir" | 8711$as_echo X"$as_dir" |
14753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14754 s//\1/ 8713 s//\1/
14755 q 8714 q
14756 } 8715 }
14757 /^X\(\/\/\)[^/].*/{ 8716 /^X\(\/\/\)[^/].*/{
14768 } 8727 }
14769 s/.*/./; q'` 8728 s/.*/./; q'`
14770 test -d "$as_dir" && break 8729 test -d "$as_dir" && break
14771 done 8730 done
14772 test -z "$as_dirs" || eval "mkdir $as_dirs" 8731 test -z "$as_dirs" || eval "mkdir $as_dirs"
14773 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 8732 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14774echo "$as_me: error: cannot create directory $as_dir" >&2;} 8733
14775 { (exit 1); exit 1; }; }; } 8734
8735} # as_fn_mkdir_p
8736if mkdir -p . 2>/dev/null; then
8737 as_mkdir_p='mkdir -p "$as_dir"'
8738else
8739 test -d ./-p && rmdir ./-p
8740 as_mkdir_p=false
8741fi
8742
8743if test -x / >/dev/null 2>&1; then
8744 as_test_x='test -x'
8745else
8746 if ls -dL / >/dev/null 2>&1; then
8747 as_ls_L_option=L
8748 else
8749 as_ls_L_option=
8750 fi
8751 as_test_x='
8752 eval sh -c '\''
8753 if test -d "$1"; then
8754 test -d "$1/.";
8755 else
8756 case $1 in #(
8757 -*)set "./$1";;
8758 esac;
8759 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8760 ???[sx]*):;;*)false;;esac;fi
8761 '\'' sh
8762 '
8763fi
8764as_executable_p=$as_test_x
8765
8766# Sed expression to map a string onto a valid CPP name.
8767as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8768
8769# Sed expression to map a string onto a valid variable name.
8770as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8771
8772
8773exec 6>&1
8774## ----------------------------------- ##
8775## Main body of $CONFIG_STATUS script. ##
8776## ----------------------------------- ##
8777_ASEOF
8778test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8779
8780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8781# Save the log message, to keep $0 and so on meaningful, and to
8782# report actual input values of CONFIG_FILES etc. instead of their
8783# values after options handling.
8784ac_log="
8785This file was extended by $as_me, which was
8786generated by GNU Autoconf 2.68. Invocation command line was
8787
8788 CONFIG_FILES = $CONFIG_FILES
8789 CONFIG_HEADERS = $CONFIG_HEADERS
8790 CONFIG_LINKS = $CONFIG_LINKS
8791 CONFIG_COMMANDS = $CONFIG_COMMANDS
8792 $ $0 $@
8793
8794on `(hostname || uname -n) 2>/dev/null | sed 1q`
8795"
8796
8797_ACEOF
8798
8799case $ac_config_files in *"
8800"*) set x $ac_config_files; shift; ac_config_files=$*;;
8801esac
8802
8803case $ac_config_headers in *"
8804"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8805esac
8806
8807
8808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8809# Files that config.status was made for.
8810config_files="$ac_config_files"
8811config_headers="$ac_config_headers"
8812
8813_ACEOF
8814
8815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8816ac_cs_usage="\
8817\`$as_me' instantiates files and other configuration actions
8818from templates according to the current configuration. Unless the files
8819and actions are specified as TAGs, all are instantiated by default.
8820
8821Usage: $0 [OPTION]... [TAG]...
8822
8823 -h, --help print this help, then exit
8824 -V, --version print version number and configuration settings, then exit
8825 --config print configuration, then exit
8826 -q, --quiet, --silent
8827 do not print progress messages
8828 -d, --debug don't remove temporary files
8829 --recheck update $as_me by reconfiguring in the same conditions
8830 --file=FILE[:TEMPLATE]
8831 instantiate the configuration file FILE
8832 --header=FILE[:TEMPLATE]
8833 instantiate the configuration header FILE
8834
8835Configuration files:
8836$config_files
8837
8838Configuration headers:
8839$config_headers
8840
8841Report bugs to the package provider."
8842
8843_ACEOF
8844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8845ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8846ac_cs_version="\\
8847config.status
8848configured by $0, generated by GNU Autoconf 2.68,
8849 with options \\"\$ac_cs_config\\"
8850
8851Copyright (C) 2010 Free Software Foundation, Inc.
8852This config.status script is free software; the Free Software Foundation
8853gives unlimited permission to copy, distribute and modify it."
8854
8855ac_pwd='$ac_pwd'
8856srcdir='$srcdir'
8857INSTALL='$INSTALL'
8858test -n "\$AWK" || AWK=awk
8859_ACEOF
8860
8861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8862# The default lists apply if the user does not specify any file.
8863ac_need_defaults=:
8864while test $# != 0
8865do
8866 case $1 in
8867 --*=?*)
8868 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8869 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8870 ac_shift=:
8871 ;;
8872 --*=)
8873 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8874 ac_optarg=
8875 ac_shift=:
8876 ;;
8877 *)
8878 ac_option=$1
8879 ac_optarg=$2
8880 ac_shift=shift
8881 ;;
8882 esac
8883
8884 case $ac_option in
8885 # Handling of the options.
8886 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8887 ac_cs_recheck=: ;;
8888 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8889 $as_echo "$ac_cs_version"; exit ;;
8890 --config | --confi | --conf | --con | --co | --c )
8891 $as_echo "$ac_cs_config"; exit ;;
8892 --debug | --debu | --deb | --de | --d | -d )
8893 debug=: ;;
8894 --file | --fil | --fi | --f )
8895 $ac_shift
8896 case $ac_optarg in
8897 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8898 '') as_fn_error $? "missing file argument" ;;
8899 esac
8900 as_fn_append CONFIG_FILES " '$ac_optarg'"
8901 ac_need_defaults=false;;
8902 --header | --heade | --head | --hea )
8903 $ac_shift
8904 case $ac_optarg in
8905 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8906 esac
8907 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8908 ac_need_defaults=false;;
8909 --he | --h)
8910 # Conflict between --help and --header
8911 as_fn_error $? "ambiguous option: \`$1'
8912Try \`$0 --help' for more information.";;
8913 --help | --hel | -h )
8914 $as_echo "$ac_cs_usage"; exit ;;
8915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8916 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8917 ac_cs_silent=: ;;
8918
8919 # This is an error.
8920 -*) as_fn_error $? "unrecognized option: \`$1'
8921Try \`$0 --help' for more information." ;;
8922
8923 *) as_fn_append ac_config_targets " $1"
8924 ac_need_defaults=false ;;
8925
8926 esac
8927 shift
8928done
8929
8930ac_configure_extra_args=
8931
8932if $ac_cs_silent; then
8933 exec 6>/dev/null
8934 ac_configure_extra_args="$ac_configure_extra_args --silent"
8935fi
8936
8937_ACEOF
8938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8939if \$ac_cs_recheck; then
8940 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8941 shift
8942 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8943 CONFIG_SHELL='$SHELL'
8944 export CONFIG_SHELL
8945 exec "\$@"
8946fi
8947
8948_ACEOF
8949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8950exec 5>>config.log
8951{
8952 echo
8953 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8954## Running $as_me. ##
8955_ASBOX
8956 $as_echo "$ac_log"
8957} >&5
8958
8959_ACEOF
8960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8961_ACEOF
8962
8963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8964
8965# Handling of arguments.
8966for ac_config_target in $ac_config_targets
8967do
8968 case $ac_config_target in
8969 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
8970 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8971 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8972 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8973
8974 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8975 esac
8976done
8977
8978
8979# If the user did not use the arguments to specify the items to instantiate,
8980# then the envvar interface is used. Set only those that are not.
8981# We use the long form for the default assignment because of an extremely
8982# bizarre bug on SunOS 4.1.3.
8983if $ac_need_defaults; then
8984 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8985 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8986fi
8987
8988# Have a temporary directory for convenience. Make it in the build tree
8989# simply because there is no reason against having it here, and in addition,
8990# creating and moving files from /tmp can sometimes cause problems.
8991# Hook for its removal unless debugging.
8992# Note that there is a small window in which the directory will not be cleaned:
8993# after its creation but before its name has been assigned to `$tmp'.
8994$debug ||
8995{
8996 tmp= ac_tmp=
8997 trap 'exit_status=$?
8998 : "${ac_tmp:=$tmp}"
8999 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9000' 0
9001 trap 'as_fn_exit 1' 1 2 13 15
9002}
9003# Create a (secure) tmp directory for tmp files.
9004
9005{
9006 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9007 test -d "$tmp"
9008} ||
9009{
9010 tmp=./conf$$-$RANDOM
9011 (umask 077 && mkdir "$tmp")
9012} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9013ac_tmp=$tmp
9014
9015# Set up the scripts for CONFIG_FILES section.
9016# No need to generate them if there are no CONFIG_FILES.
9017# This happens for instance with `./config.status config.h'.
9018if test -n "$CONFIG_FILES"; then
9019
9020
9021ac_cr=`echo X | tr X '\015'`
9022# On cygwin, bash can eat \r inside `` if the user requested igncr.
9023# But we know of no other shell where ac_cr would be empty at this
9024# point, so we can use a bashism as a fallback.
9025if test "x$ac_cr" = x; then
9026 eval ac_cr=\$\'\\r\'
9027fi
9028ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9029if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9030 ac_cs_awk_cr='\\r'
9031else
9032 ac_cs_awk_cr=$ac_cr
9033fi
9034
9035echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9036_ACEOF
9037
9038
9039{
9040 echo "cat >conf$$subs.awk <<_ACEOF" &&
9041 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9042 echo "_ACEOF"
9043} >conf$$subs.sh ||
9044 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9045ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9046ac_delim='%!_!# '
9047for ac_last_try in false false false false false :; do
9048 . ./conf$$subs.sh ||
9049 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9050
9051 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9052 if test $ac_delim_n = $ac_delim_num; then
9053 break
9054 elif $ac_last_try; then
9055 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9056 else
9057 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9058 fi
9059done
9060rm -f conf$$subs.sh
9061
9062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9063cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9064_ACEOF
9065sed -n '
9066h
9067s/^/S["/; s/!.*/"]=/
9068p
9069g
9070s/^[^!]*!//
9071:repl
9072t repl
9073s/'"$ac_delim"'$//
9074t delim
9075:nl
9076h
9077s/\(.\{148\}\)..*/\1/
9078t more1
9079s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9080p
9081n
9082b repl
9083:more1
9084s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9085p
9086g
9087s/.\{148\}//
9088t nl
9089:delim
9090h
9091s/\(.\{148\}\)..*/\1/
9092t more2
9093s/["\\]/\\&/g; s/^/"/; s/$/"/
9094p
9095b
9096:more2
9097s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9098p
9099g
9100s/.\{148\}//
9101t delim
9102' <conf$$subs.awk | sed '
9103/^[^""]/{
9104 N
9105 s/\n//
9106}
9107' >>$CONFIG_STATUS || ac_write_fail=1
9108rm -f conf$$subs.awk
9109cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9110_ACAWK
9111cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9112 for (key in S) S_is_set[key] = 1
9113 FS = ""
9114
9115}
9116{
9117 line = $ 0
9118 nfields = split(line, field, "@")
9119 substed = 0
9120 len = length(field[1])
9121 for (i = 2; i < nfields; i++) {
9122 key = field[i]
9123 keylen = length(key)
9124 if (S_is_set[key]) {
9125 value = S[key]
9126 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9127 len += length(value) + length(field[++i])
9128 substed = 1
9129 } else
9130 len += 1 + keylen
9131 }
9132
9133 print line
9134}
9135
9136_ACAWK
9137_ACEOF
9138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9139if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9140 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9141else
9142 cat
9143fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9144 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9145_ACEOF
9146
9147# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9148# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9149# trailing colons and then remove the whole line if VPATH becomes empty
9150# (actually we leave an empty line to preserve line numbers).
9151if test "x$srcdir" = x.; then
9152 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9153h
9154s///
9155s/^/:/
9156s/[ ]*$/:/
9157s/:\$(srcdir):/:/g
9158s/:\${srcdir}:/:/g
9159s/:@srcdir@:/:/g
9160s/^:*//
9161s/:*$//
9162x
9163s/\(=[ ]*\).*/\1/
9164G
9165s/\n//
9166s/^[^=]*=[ ]*$//
9167}'
9168fi
9169
9170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9171fi # test -n "$CONFIG_FILES"
9172
9173# Set up the scripts for CONFIG_HEADERS section.
9174# No need to generate them if there are no CONFIG_HEADERS.
9175# This happens for instance with `./config.status Makefile'.
9176if test -n "$CONFIG_HEADERS"; then
9177cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9178BEGIN {
9179_ACEOF
9180
9181# Transform confdefs.h into an awk script `defines.awk', embedded as
9182# here-document in config.status, that substitutes the proper values into
9183# config.h.in to produce config.h.
9184
9185# Create a delimiter string that does not exist in confdefs.h, to ease
9186# handling of long lines.
9187ac_delim='%!_!# '
9188for ac_last_try in false false :; do
9189 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9190 if test -z "$ac_tt"; then
9191 break
9192 elif $ac_last_try; then
9193 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9194 else
9195 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9196 fi
9197done
9198
9199# For the awk script, D is an array of macro values keyed by name,
9200# likewise P contains macro parameters if any. Preserve backslash
9201# newline sequences.
9202
9203ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9204sed -n '
9205s/.\{148\}/&'"$ac_delim"'/g
9206t rset
9207:rset
9208s/^[ ]*#[ ]*define[ ][ ]*/ /
9209t def
9210d
9211:def
9212s/\\$//
9213t bsnl
9214s/["\\]/\\&/g
9215s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9216D["\1"]=" \3"/p
9217s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9218d
9219:bsnl
9220s/["\\]/\\&/g
9221s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9222D["\1"]=" \3\\\\\\n"\\/p
9223t cont
9224s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9225t cont
9226d
9227:cont
9228n
9229s/.\{148\}/&'"$ac_delim"'/g
9230t clear
9231:clear
9232s/\\$//
9233t bsnlc
9234s/["\\]/\\&/g; s/^/"/; s/$/"/p
9235d
9236:bsnlc
9237s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9238b cont
9239' <confdefs.h | sed '
9240s/'"$ac_delim"'/"\\\
9241"/g' >>$CONFIG_STATUS || ac_write_fail=1
9242
9243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9244 for (key in D) D_is_set[key] = 1
9245 FS = ""
9246}
9247/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9248 line = \$ 0
9249 split(line, arg, " ")
9250 if (arg[1] == "#") {
9251 defundef = arg[2]
9252 mac1 = arg[3]
9253 } else {
9254 defundef = substr(arg[1], 2)
9255 mac1 = arg[2]
9256 }
9257 split(mac1, mac2, "(") #)
9258 macro = mac2[1]
9259 prefix = substr(line, 1, index(line, defundef) - 1)
9260 if (D_is_set[macro]) {
9261 # Preserve the white space surrounding the "#".
9262 print prefix "define", macro P[macro] D[macro]
9263 next
9264 } else {
9265 # Replace #undef with comments. This is necessary, for example,
9266 # in the case of _POSIX_SOURCE, which is predefined and required
9267 # on some systems where configure will not decide to define it.
9268 if (defundef == "undef") {
9269 print "/*", prefix defundef, macro, "*/"
9270 next
9271 }
9272 }
9273}
9274{ print }
9275_ACAWK
9276_ACEOF
9277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9278 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9279fi # test -n "$CONFIG_HEADERS"
9280
9281
9282eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
9283shift
9284for ac_tag
9285do
9286 case $ac_tag in
9287 :[FHLC]) ac_mode=$ac_tag; continue;;
9288 esac
9289 case $ac_mode$ac_tag in
9290 :[FHL]*:*);;
9291 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9292 :[FH]-) ac_tag=-:-;;
9293 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9294 esac
9295 ac_save_IFS=$IFS
9296 IFS=:
9297 set x $ac_tag
9298 IFS=$ac_save_IFS
9299 shift
9300 ac_file=$1
9301 shift
9302
9303 case $ac_mode in
9304 :L) ac_source=$1;;
9305 :[FH])
9306 ac_file_inputs=
9307 for ac_f
9308 do
9309 case $ac_f in
9310 -) ac_f="$ac_tmp/stdin";;
9311 *) # Look for the file first in the build tree, then in the source tree
9312 # (if the path is not absolute). The absolute path cannot be DOS-style,
9313 # because $ac_f cannot contain `:'.
9314 test -f "$ac_f" ||
9315 case $ac_f in
9316 [\\/$]*) false;;
9317 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9318 esac ||
9319 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9320 esac
9321 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9322 as_fn_append ac_file_inputs " '$ac_f'"
9323 done
9324
9325 # Let's still pretend it is `configure' which instantiates (i.e., don't
9326 # use $as_me), people would be surprised to read:
9327 # /* config.h. Generated by config.status. */
9328 configure_input='Generated from '`
9329 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9330 `' by configure.'
9331 if test x"$ac_file" != x-; then
9332 configure_input="$ac_file. $configure_input"
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9334$as_echo "$as_me: creating $ac_file" >&6;}
9335 fi
9336 # Neutralize special characters interpreted by sed in replacement strings.
9337 case $configure_input in #(
9338 *\&* | *\|* | *\\* )
9339 ac_sed_conf_input=`$as_echo "$configure_input" |
9340 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9341 *) ac_sed_conf_input=$configure_input;;
9342 esac
9343
9344 case $ac_tag in
9345 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9346 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9347 esac
9348 ;;
9349 esac
9350
9351 ac_dir=`$as_dirname -- "$ac_file" ||
9352$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9353 X"$ac_file" : 'X\(//\)[^/]' \| \
9354 X"$ac_file" : 'X\(//\)$' \| \
9355 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9356$as_echo X"$ac_file" |
9357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9358 s//\1/
9359 q
9360 }
9361 /^X\(\/\/\)[^/].*/{
9362 s//\1/
9363 q
9364 }
9365 /^X\(\/\/\)$/{
9366 s//\1/
9367 q
9368 }
9369 /^X\(\/\).*/{
9370 s//\1/
9371 q
9372 }
9373 s/.*/./; q'`
9374 as_dir="$ac_dir"; as_fn_mkdir_p
14776 ac_builddir=. 9375 ac_builddir=.
14777 9376
14778case "$ac_dir" in 9377case "$ac_dir" in
14779.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9378.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14780*) 9379*)
14781 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9380 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14782 # A ".." for each directory in $ac_dir_suffix. 9381 # A ".." for each directory in $ac_dir_suffix.
14783 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 9382 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14784 case $ac_top_builddir_sub in 9383 case $ac_top_builddir_sub in
14785 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14786 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14787 esac ;; 9386 esac ;;
14788esac 9387esac
14818 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9417 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14819 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9418 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14820 esac 9419 esac
14821_ACEOF 9420_ACEOF
14822 9421
14823cat >>$CONFIG_STATUS <<\_ACEOF 9422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14824# If the template does not know about datarootdir, expand it. 9423# If the template does not know about datarootdir, expand it.
14825# FIXME: This hack should be removed a few years after 2.60. 9424# FIXME: This hack should be removed a few years after 2.60.
14826ac_datarootdir_hack=; ac_datarootdir_seen= 9425ac_datarootdir_hack=; ac_datarootdir_seen=
14827 9426ac_sed_dataroot='
14828case `sed -n '/datarootdir/ { 9427/datarootdir/ {
14829 p 9428 p
14830 q 9429 q
14831} 9430}
14832/@datadir@/p 9431/@datadir@/p
14833/@docdir@/p 9432/@docdir@/p
14834/@infodir@/p 9433/@infodir@/p
14835/@localedir@/p 9434/@localedir@/p
14836/@mandir@/p 9435/@mandir@/p'
14837' $ac_file_inputs` in 9436case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14838*datarootdir*) ac_datarootdir_seen=yes;; 9437*datarootdir*) ac_datarootdir_seen=yes;;
14839*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9438*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14840 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9439 { $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;} 9440$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14842_ACEOF 9441_ACEOF
14843cat >>$CONFIG_STATUS <<_ACEOF 9442cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14844 ac_datarootdir_hack=' 9443 ac_datarootdir_hack='
14845 s&@datadir@&$datadir&g 9444 s&@datadir@&$datadir&g
14846 s&@docdir@&$docdir&g 9445 s&@docdir@&$docdir&g
14847 s&@infodir@&$infodir&g 9446 s&@infodir@&$infodir&g
14848 s&@localedir@&$localedir&g 9447 s&@localedir@&$localedir&g
14849 s&@mandir@&$mandir&g 9448 s&@mandir@&$mandir&g
14850 s&\\\${datarootdir}&$datarootdir&g' ;; 9449 s&\\\${datarootdir}&$datarootdir&g' ;;
14851esac 9450esac
14852_ACEOF 9451_ACEOF
14853 9452
14854# Neutralize VPATH when `$srcdir' = `.'. 9453# Neutralize VPATH when `$srcdir' = `.'.
14855# Shell code in configure.ac might set extrasub. 9454# Shell code in configure.ac might set extrasub.
14856# FIXME: do we really want to maintain this feature? 9455# FIXME: do we really want to maintain this feature?
14857cat >>$CONFIG_STATUS <<_ACEOF 9456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14858 sed "$ac_vpsub 9457ac_sed_extra="$ac_vpsub
14859$extrasub 9458$extrasub
14860_ACEOF 9459_ACEOF
14861cat >>$CONFIG_STATUS <<\_ACEOF 9460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14862:t 9461:t
14863/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9462/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14864s&@configure_input@&$configure_input&;t t 9463s|@configure_input@|$ac_sed_conf_input|;t t
14865s&@top_builddir@&$ac_top_builddir_sub&;t t 9464s&@top_builddir@&$ac_top_builddir_sub&;t t
9465s&@top_build_prefix@&$ac_top_build_prefix&;t t
14866s&@srcdir@&$ac_srcdir&;t t 9466s&@srcdir@&$ac_srcdir&;t t
14867s&@abs_srcdir@&$ac_abs_srcdir&;t t 9467s&@abs_srcdir@&$ac_abs_srcdir&;t t
14868s&@top_srcdir@&$ac_top_srcdir&;t t 9468s&@top_srcdir@&$ac_top_srcdir&;t t
14869s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9469s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14870s&@builddir@&$ac_builddir&;t t 9470s&@builddir@&$ac_builddir&;t t
14871s&@abs_builddir@&$ac_abs_builddir&;t t 9471s&@abs_builddir@&$ac_abs_builddir&;t t
14872s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9472s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14873s&@INSTALL@&$ac_INSTALL&;t t 9473s&@INSTALL@&$ac_INSTALL&;t t
14874$ac_datarootdir_hack 9474$ac_datarootdir_hack
14875" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 9475"
9476eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9477 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14876 9478
14877test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9479test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14878 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 9480 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14879 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 9481 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9482 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14880 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9483 { $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 9484which seems to be undefined. Please make sure it is defined" >&5
14882echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9485$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;} 9486which seems to be undefined. Please make sure it is defined" >&2;}
14884 9487
14885 rm -f "$tmp/stdin" 9488 rm -f "$ac_tmp/stdin"
14886 case $ac_file in 9489 case $ac_file in
14887 -) cat "$tmp/out"; rm -f "$tmp/out";; 9490 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14888 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 9491 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14889 esac 9492 esac \
9493 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14890 ;; 9494 ;;
14891 :H) 9495 :H)
14892 # 9496 #
14893 # CONFIG_HEADER 9497 # CONFIG_HEADER
14894 # 9498 #
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 9499 if test x"$ac_file" != x-; then
9500 {
14974 echo "/* $configure_input */" >"$tmp/config.h" 9501 $as_echo "/* $configure_input */" \
14975 cat "$ac_result" >>"$tmp/config.h" 9502 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9503 } >"$ac_tmp/config.h" \
9504 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14976 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 9505 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14977 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9506 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14978echo "$as_me: $ac_file is unchanged" >&6;} 9507$as_echo "$as_me: $ac_file is unchanged" >&6;}
14979 else 9508 else
14980 rm -f $ac_file 9509 rm -f "$ac_file"
14981 mv "$tmp/config.h" $ac_file 9510 mv "$ac_tmp/config.h" "$ac_file" \
9511 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14982 fi 9512 fi
14983 else 9513 else
14984 echo "/* $configure_input */" 9514 $as_echo "/* $configure_input */" \
14985 cat "$ac_result" 9515 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9516 || as_fn_error $? "could not create -" "$LINENO" 5
14986 fi 9517 fi
14987 rm -f "$tmp/out12"
14988 ;; 9518 ;;
14989 9519
14990 9520
14991 esac 9521 esac
14992 9522
14993done # for ac_tag 9523done # for ac_tag
14994 9524
14995 9525
14996{ (exit 0); exit 0; } 9526as_fn_exit 0
14997_ACEOF 9527_ACEOF
14998chmod +x $CONFIG_STATUS
14999ac_clean_files=$ac_clean_files_save 9528ac_clean_files=$ac_clean_files_save
9529
9530test $ac_write_fail = 0 ||
9531 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15000 9532
15001 9533
15002# configure is writing to config.log, and then calls config.status. 9534# configure is writing to config.log, and then calls config.status.
15003# config.status does its own redirection, appending to config.log. 9535# config.status does its own redirection, appending to config.log.
15004# Unfortunately, on DOS this fails, as config.log is still kept open 9536# Unfortunately, on DOS this fails, as config.log is still kept open
15015 exec 5>/dev/null 9547 exec 5>/dev/null
15016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9548 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15017 exec 5>>config.log 9549 exec 5>>config.log
15018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9550 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15019 # would make configure fail if this is the last instruction. 9551 # would make configure fail if this is the last instruction.
15020 $ac_cs_success || { (exit 1); exit 1; } 9552 $ac_cs_success || as_fn_exit 1
9553fi
9554if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9556$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15021fi 9557fi
15022 9558
15023 9559
15024echo "Configuration: 9560echo "Configuration:
15025 9561
15028 Install path: ${prefix}/bin 9564 Install path: ${prefix}/bin
15029 Compiler: $CXX 9565 Compiler: $CXX
15030 Compiler flags: $CXXFLAGS 9566 Compiler flags: $CXXFLAGS
15031 Linker: $LINKER" 9567 Linker: $LINKER"
15032 9568
15033if test x$support_xpm = xyes; then
15034 echo " Xpm library: $XPM_LIBS"
15035fi
15036
15037if test x$term != x; then 9569if test x$term != x; then
15038 echo " set TERM to: $term" 9570 echo " set TERM to: $term"
15039fi 9571fi
15040if test x$terminfo != x; then 9572if test x$terminfo != x; then
15041 echo " set TERMINFO to: $terminfo" 9573 echo " set TERMINFO to: $terminfo"
15045if test x$RESFALLBACK != x; then 9577if test x$RESFALLBACK != x; then
15046 echo " resource class fallback: $RESFALLBACK" 9578 echo " resource class fallback: $RESFALLBACK"
15047fi 9579fi
15048echo 9580echo
15049echo " embedded perl: $support_perl" 9581echo " embedded perl: $support_perl"
9582echo " image library: $image_lib"
15050echo 9583echo
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 9584if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
15062 echo ".----------------------------------------------------------------." 9585 echo ".----------------------------------------------------------------."
15063 echo ". WARNING: --enable-xim was specified however the locale support ." 9586 echo ". WARNING: --enable-xim was specified however the locale support ."
15064 echo ". functions could not be found. ." 9587 echo ". functions could not be found. ."
15065 echo ". XIM is now being DISABLED! ." 9588 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines