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.152 by root, Thu Jan 19 17:10:54 2012 UTC

1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61. 3# Generated by GNU Autoconf 2.67.
4#
4# 5#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
7# This configure script is free software; the Free Software Foundation 11# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it. 12# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ## 13## -------------------- ##
10## M4sh Initialization. ## 14## M4sh Initialization. ##
11## --------------------- ## 15## -------------------- ##
12 16
13# Be more Bourne compatible 17# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh 18DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16 emulate sh 20 emulate sh
17 NULLCMD=: 21 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature. 23 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"' 24 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST 25 setopt NO_GLOB_SUBST
22else 26else
23 case `(set -o) 2>/dev/null` in 27 case `(set -o) 2>/dev/null` in #(
24 *posix*) set -o posix ;; 28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
25esac 32esac
26
27fi 33fi
28 34
29 35
30 36as_nl='
31 37'
32# PATH needs CR 38export as_nl
33# Avoid depending upon Character Ranges. 39# Printing a long string crashes Solaris 7 /usr/bin/printf.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37as_cr_digits='0123456789' 43# Prefer a ksh shell builtin over an external printf program on Solaris,
38as_cr_alnum=$as_cr_Letters$as_cr_digits 44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
39 73
40# The user is always right. 74# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then 75if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh 76 PATH_SEPARATOR=:
43 echo "exit 0" >>conf$$.sh 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
44 chmod +x conf$$.sh 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';' 79 PATH_SEPARATOR=';'
47 else 80 }
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi 81fi
59 82
60 83
61# IFS 84# IFS
62# We need space, tab and new line, in precisely that order. Quoting is 85# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab. 86# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.) 88# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl" 89IFS=" "" $as_nl"
69 90
70# Find who we are. Look in the path if we contain no directory separator. 91# Find who we are. Look in the path if we contain no directory separator.
71case $0 in 92case $0 in #((
72 *[\\/]* ) as_myself=$0 ;; 93 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH 95for as_dir in $PATH
75do 96do
76 IFS=$as_save_IFS 97 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=. 98 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done 100 done
80IFS=$as_save_IFS 101IFS=$as_save_IFS
81 102
82 ;; 103 ;;
83esac 104esac
84# We did not find ourselves, most probably we were run as `sh COMMAND' 105# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path. 106# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then 107if test "x$as_myself" = x; then
87 as_myself=$0 108 as_myself=$0
88fi 109fi
89if test ! -f "$as_myself"; then 110if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; } 112 exit 1
92fi 113fi
93 114
94# Work around bugs in pre-3.0 UWIN ksh. 115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
95for as_var in ENV MAIL MAILPATH 119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
97done 122done
98PS1='$ ' 123PS1='$ '
99PS2='> ' 124PS2='> '
100PS4='+ ' 125PS4='+ '
101 126
102# NLS nuisances. 127# NLS nuisances.
103for as_var in \ 128LC_ALL=C
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 129export LC_ALL
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 130LANGUAGE=C
106 LC_TELEPHONE LC_TIME 131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
107do 186do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 187 IFS=$as_save_IFS
109 eval $as_var=C; export $as_var 188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
110 else 230 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
112 fi 235 fi
113done 236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
114 245
115# Required to use basename. 246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error STATUS ERROR [LINENO LOG_FD]
360# ----------------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with STATUS, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
116if expr a : '\(a\)' >/dev/null 2>&1 && 375if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr 377 as_expr=expr
119else 378else
120 as_expr=false 379 as_expr=false
124 as_basename=basename 383 as_basename=basename
125else 384else
126 as_basename=false 385 as_basename=false
127fi 386fi
128 387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
129 393
130# Name of the executable.
131as_me=`$as_basename -- "$0" || 394as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \ 396 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" | 398$as_echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 399 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/ 400 s//\1/
138 q 401 q
139 } 402 }
140 /^X\/\(\/\/\)$/{ 403 /^X\/\(\/\/\)$/{
145 s//\1/ 408 s//\1/
146 q 409 q
147 } 410 }
148 s/.*/./; q'` 411 s/.*/./; q'`
149 412
150# CDPATH. 413# Avoid depending upon Character Ranges.
151$as_unset CDPATH 414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
152 419
153 420
154if test "x$CONFIG_SHELL" = x; then 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
155 if (eval ":") 2>/dev/null; then 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" && 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-) 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n ' 426 sed -n '
439 p 427 p
440 /[$]LINENO/= 428 /[$]LINENO/=
441 ' <$as_myself | 429 ' <$as_myself |
442 sed ' 430 sed '
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop 438 t loop
451 s/-\n.*// 439 s/-\n.*//
452 ' >$as_me.lineno && 440 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" || 441 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 { (exit 1); exit 1; }; }
456 443
457 # Don't try to exec as it changes $[0], causing all sort of problems 444 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the 445 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this). 446 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno" 447 . "./$as_me.lineno"
461 # Exit status is that of the last command. 448 # Exit status is that of the last command.
462 exit 449 exit
463} 450}
464 451
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T= 452ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in 453case `echo -n x` in #(((((
474-n*) 454-n*)
475 case `echo 'x\c'` in 455 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';; 457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
478 esac;; 460 esac;;
479*) 461*)
480 ECHO_N='-n';; 462 ECHO_N='-n';;
481esac 463esac
482 464
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file 465rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then 466if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file 467 rm -f conf$$.dir/conf$$.file
493else 468else
494 rm -f conf$$.dir 469 rm -f conf$$.dir
495 mkdir conf$$.dir 470 mkdir conf$$.dir 2>/dev/null
496fi 471fi
497echo >conf$$.file 472if (echo >conf$$.file) 2>/dev/null; then
498if ln -s conf$$.file conf$$ 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s' 474 as_ln_s='ln -s'
500 # ... but there are two gotchas: 475 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'. 478 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
505 as_ln_s='cp -p' 484 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then 485 fi
507 as_ln_s=ln
508else 486else
509 as_ln_s='cp -p' 487 as_ln_s='cp -p'
510fi 488fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null 490rmdir conf$$.dir 2>/dev/null
513 491
514if mkdir -p . 2>/dev/null; then 492if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=: 493 as_mkdir_p='mkdir -p "$as_dir"'
516else 494else
517 test -d ./-p && rmdir ./-p 495 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false 496 as_mkdir_p=false
519fi 497fi
520 498
527 as_ls_L_option= 505 as_ls_L_option=
528 fi 506 fi
529 as_test_x=' 507 as_test_x='
530 eval sh -c '\'' 508 eval sh -c '\''
531 if test -d "$1"; then 509 if test -d "$1"; then
532 test -d "$1/."; 510 test -d "$1/.";
533 else 511 else
534 case $1 in 512 case $1 in #(
535 -*)set "./$1";; 513 -*)set "./$1";;
536 esac; 514 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
538 ???[sx]*):;;*)false;;esac;fi 516 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh 517 '\'' sh
540 ' 518 '
541fi 519fi
542as_executable_p=$as_test_x 520as_executable_p=$as_test_x
546 524
547# Sed expression to map a string onto a valid variable name. 525# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549 527
550 528
551 529test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 7<&0 </dev/null 6>&1 530exec 6>&1
553 531
554# Name of the host. 532# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too. 534# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 536
559# 537#
560# Initializations. 538# Initializations.
565LIBOBJS= 543LIBOBJS=
566cross_compiling=no 544cross_compiling=no
567subdirs= 545subdirs=
568MFLAGS= 546MFLAGS=
569MAKEFLAGS= 547MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571 548
572# Identity of this package. 549# Identity of this package.
573PACKAGE_NAME= 550PACKAGE_NAME=
574PACKAGE_TARNAME= 551PACKAGE_TARNAME=
575PACKAGE_VERSION= 552PACKAGE_VERSION=
576PACKAGE_STRING= 553PACKAGE_STRING=
577PACKAGE_BUGREPORT= 554PACKAGE_BUGREPORT=
555PACKAGE_URL=
578 556
579ac_unique_file="src/feature.h" 557ac_unique_file="src/feature.h"
580# Factoring default headers for most tests. 558# Factoring default headers for most tests.
581ac_includes_default="\ 559ac_includes_default="\
582#include <stdio.h> 560#include <stdio.h>
611#endif 589#endif
612#ifdef HAVE_UNISTD_H 590#ifdef HAVE_UNISTD_H
613# include <unistd.h> 591# include <unistd.h>
614#endif" 592#endif"
615 593
616ac_subst_vars='SHELL 594ac_subst_vars='LTLIBOBJS
595LIBOBJS
596PERL_O
597IF_PERL
598PERLPRIVLIBEXP
599PERLFLAGS
600PERLLIB
601PERL
602XFT_CONFIG
603AFTERIMAGE_LIBS
604AFTERIMAGE_CFLAGS
605afterimage_config
606STARTUP_NOTIFICATION_LIBS
607STARTUP_NOTIFICATION_CFLAGS
608PIXBUF_LIBS
609PIXBUF_CFLAGS
610PKG_CONFIG
611X_EXTRA_LIBS
612X_LIBS
613X_PRE_LIBS
614X_CFLAGS
615XMKMF
616TIC
617CXXCPP
618RXVTNAME
619LINKER
620EGREP
621GREP
622INSTALL_DATA
623INSTALL_SCRIPT
624INSTALL_PROGRAM
625CPP
626ac_ct_CXX
627CXXFLAGS
628CXX
629OBJEXT
630EXEEXT
631ac_ct_CC
632CPPFLAGS
633LDFLAGS
634CFLAGS
635CC
636DATE
637VERSION
638host_os
639host_vendor
640host_cpu
641host
642build_os
643build_vendor
644build_cpu
645build
646target_alias
647host_alias
648build_alias
649LIBS
650ECHO_T
651ECHO_N
652ECHO_C
653DEFS
654mandir
655localedir
656libdir
657psdir
658pdfdir
659dvidir
660htmldir
661infodir
662docdir
663oldincludedir
664includedir
665localstatedir
666sharedstatedir
667sysconfdir
668datadir
669datarootdir
670libexecdir
671sbindir
672bindir
673program_transform_name
674prefix
675exec_prefix
676PACKAGE_URL
677PACKAGE_BUGREPORT
678PACKAGE_STRING
679PACKAGE_VERSION
680PACKAGE_TARNAME
681PACKAGE_NAME
617PATH_SEPARATOR 682PATH_SEPARATOR
618PACKAGE_NAME 683SHELL'
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='' 684ac_subst_files=''
685ac_user_opts='
686enable_option_checking
687enable_everything
688enable_assert
689enable_warnings
690enable_256_color
691enable_unicode3
692enable_combining
693enable_xft
694enable_font_styles
695enable_afterimage
696with_afterimage_config
697enable_pixbuf
698enable_startup_notification
699enable_transparency
700enable_fading
701enable_rxvt_scroll
702enable_next_scroll
703enable_xterm_scroll
704enable_perl
705with_codesets
706enable_xim
707enable_backspace_key
708enable_delete_key
709enable_resources
710enable_8bitctrls
711enable_fallback
712with_res_name
713with_res_class
714with_name
715enable_swapscreen
716enable_iso14755
717enable_frills
718enable_keepscrolling
719enable_selectionscrolling
720enable_mousewheel
721enable_slipwheeling
722enable_smart_resize
723enable_text_blink
724enable_pointer_blank
725with_term
726with_terminfo
727with_x
728enable_utmp
729enable_wtmp
730enable_lastlog
731'
733 ac_precious_vars='build_alias 732 ac_precious_vars='build_alias
734host_alias 733host_alias
735target_alias 734target_alias
736CC 735CC
737CFLAGS 736CFLAGS
740CPPFLAGS 739CPPFLAGS
741CXX 740CXX
742CXXFLAGS 741CXXFLAGS
743CCC 742CCC
744CPP 743CPP
745XMKMF
746CXXCPP' 744CXXCPP
745XMKMF'
747 746
748 747
749# Initialize some variables set by options. 748# Initialize some variables set by options.
750ac_init_help= 749ac_init_help=
751ac_init_version=false 750ac_init_version=false
751ac_unrecognized_opts=
752ac_unrecognized_sep=
752# The variables have the same names as the options, with 753# The variables have the same names as the options, with
753# dashes changed to underlines. 754# dashes changed to underlines.
754cache_file=/dev/null 755cache_file=/dev/null
755exec_prefix=NONE 756exec_prefix=NONE
756no_create= 757no_create=
802 ac_prev= 803 ac_prev=
803 continue 804 continue
804 fi 805 fi
805 806
806 case $ac_option in 807 case $ac_option in
807 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 808 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809 *=) ac_optarg= ;;
808 *) ac_optarg=yes ;; 810 *) ac_optarg=yes ;;
809 esac 811 esac
810 812
811 # Accept the important Cygnus configure options, so we can diagnose typos. 813 # Accept the important Cygnus configure options, so we can diagnose typos.
812 814
813 case $ac_dashdash$ac_option in 815 case $ac_dashdash$ac_option in
845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847 datarootdir=$ac_optarg ;; 849 datarootdir=$ac_optarg ;;
848 850
849 -disable-* | --disable-*) 851 -disable-* | --disable-*)
850 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 852 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names. 853 # Reject names that are not valid shell variable names.
852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 855 as_fn_error $? "invalid feature name: $ac_useropt"
854 { (exit 1); exit 1; }; } 856 ac_useropt_orig=$ac_useropt
855 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
859 *"
860"enable_$ac_useropt"
861"*) ;;
862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
863 ac_unrecognized_sep=', ';;
864 esac
856 eval enable_$ac_feature=no ;; 865 eval enable_$ac_useropt=no ;;
857 866
858 -docdir | --docdir | --docdi | --doc | --do) 867 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;; 868 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 869 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;; 870 docdir=$ac_optarg ;;
864 ac_prev=dvidir ;; 873 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 874 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;; 875 dvidir=$ac_optarg ;;
867 876
868 -enable-* | --enable-*) 877 -enable-* | --enable-*)
869 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 878 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names. 879 # Reject names that are not valid shell variable names.
871 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 881 as_fn_error $? "invalid feature name: $ac_useropt"
873 { (exit 1); exit 1; }; } 882 ac_useropt_orig=$ac_useropt
874 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884 case $ac_user_opts in
885 *"
886"enable_$ac_useropt"
887"*) ;;
888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
889 ac_unrecognized_sep=', ';;
890 esac
875 eval enable_$ac_feature=\$ac_optarg ;; 891 eval enable_$ac_useropt=\$ac_optarg ;;
876 892
877 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 893 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
878 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 894 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
879 | --exec | --exe | --ex) 895 | --exec | --exe | --ex)
880 ac_prev=exec_prefix ;; 896 ac_prev=exec_prefix ;;
1061 1077
1062 -version | --version | --versio | --versi | --vers | -V) 1078 -version | --version | --versio | --versi | --vers | -V)
1063 ac_init_version=: ;; 1079 ac_init_version=: ;;
1064 1080
1065 -with-* | --with-*) 1081 -with-* | --with-*)
1066 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1082 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names. 1083 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2 1085 as_fn_error $? "invalid package name: $ac_useropt"
1070 { (exit 1); exit 1; }; } 1086 ac_useropt_orig=$ac_useropt
1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1089 *"
1090"with_$ac_useropt"
1091"*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1072 eval with_$ac_package=\$ac_optarg ;; 1095 eval with_$ac_useropt=\$ac_optarg ;;
1073 1096
1074 -without-* | --without-*) 1097 -without-* | --without-*)
1075 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1098 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names. 1099 # Reject names that are not valid shell variable names.
1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid package name: $ac_package" >&2 1101 as_fn_error $? "invalid package name: $ac_useropt"
1079 { (exit 1); exit 1; }; } 1102 ac_useropt_orig=$ac_useropt
1080 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1105 *"
1106"with_$ac_useropt"
1107"*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1081 eval with_$ac_package=no ;; 1111 eval with_$ac_useropt=no ;;
1082 1112
1083 --x) 1113 --x)
1084 # Obsolete; use --with-x. 1114 # Obsolete; use --with-x.
1085 with_x=yes ;; 1115 with_x=yes ;;
1086 1116
1096 ac_prev=x_libraries ;; 1126 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1127 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1128 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099 x_libraries=$ac_optarg ;; 1129 x_libraries=$ac_optarg ;;
1100 1130
1101 -*) { echo "$as_me: error: unrecognized option: $ac_option 1131 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1102Try \`$0 --help' for more information." >&2 1132Try \`$0 --help' for more information"
1103 { (exit 1); exit 1; }; }
1104 ;; 1133 ;;
1105 1134
1106 *=*) 1135 *=*)
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1136 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names. 1137 # Reject names that are not valid shell variable names.
1109 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1138 case $ac_envvar in #(
1139 '' | [0-9]* | *[!_$as_cr_alnum]* )
1110 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1140 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1111 { (exit 1); exit 1; }; } 1141 esac
1112 eval $ac_envvar=\$ac_optarg 1142 eval $ac_envvar=\$ac_optarg
1113 export $ac_envvar ;; 1143 export $ac_envvar ;;
1114 1144
1115 *) 1145 *)
1116 # FIXME: should be removed in autoconf 3.0. 1146 # FIXME: should be removed in autoconf 3.0.
1117 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1147 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1148 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1149 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1150 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121 ;; 1151 ;;
1122 1152
1123 esac 1153 esac
1124done 1154done
1125 1155
1126if test -n "$ac_prev"; then 1156if test -n "$ac_prev"; then
1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1157 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1128 { echo "$as_me: error: missing argument to $ac_option" >&2 1158 as_fn_error $? "missing argument to $ac_option"
1129 { (exit 1); exit 1; }; }
1130fi 1159fi
1131 1160
1132# Be sure to have absolute directory names. 1161if test -n "$ac_unrecognized_opts"; then
1162 case $enable_option_checking in
1163 no) ;;
1164 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1165 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1166 esac
1167fi
1168
1169# Check all directory arguments for consistency.
1133for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1170for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134 datadir sysconfdir sharedstatedir localstatedir includedir \ 1171 datadir sysconfdir sharedstatedir localstatedir includedir \
1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1172 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136 libdir localedir mandir 1173 libdir localedir mandir
1137do 1174do
1138 eval ac_val=\$$ac_var 1175 eval ac_val=\$$ac_var
1176 # Remove trailing slashes.
1177 case $ac_val in
1178 */ )
1179 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1180 eval $ac_var=\$ac_val;;
1181 esac
1182 # Be sure to have absolute directory names.
1139 case $ac_val in 1183 case $ac_val in
1140 [\\/$]* | ?:[\\/]* ) continue;; 1184 [\\/$]* | ?:[\\/]* ) continue;;
1141 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1185 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1142 esac 1186 esac
1143 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1187 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1144 { (exit 1); exit 1; }; }
1145done 1188done
1146 1189
1147# There might be people who depend on the old broken behavior: `$host' 1190# There might be people who depend on the old broken behavior: `$host'
1148# used to hold the argument of --host etc. 1191# used to hold the argument of --host etc.
1149# FIXME: To remove some day. 1192# FIXME: To remove some day.
1153 1196
1154# FIXME: To remove some day. 1197# FIXME: To remove some day.
1155if test "x$host_alias" != x; then 1198if test "x$host_alias" != x; then
1156 if test "x$build_alias" = x; then 1199 if test "x$build_alias" = x; then
1157 cross_compiling=maybe 1200 cross_compiling=maybe
1158 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1201 $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 1202 If a cross compiler is detected then cross compile mode will be used" >&2
1160 elif test "x$build_alias" != "x$host_alias"; then 1203 elif test "x$build_alias" != "x$host_alias"; then
1161 cross_compiling=yes 1204 cross_compiling=yes
1162 fi 1205 fi
1163fi 1206fi
1164 1207
1169 1212
1170 1213
1171ac_pwd=`pwd` && test -n "$ac_pwd" && 1214ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172ac_ls_di=`ls -di .` && 1215ac_ls_di=`ls -di .` &&
1173ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1216ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174 { echo "$as_me: error: Working directory cannot be determined" >&2 1217 as_fn_error $? "working directory cannot be determined"
1175 { (exit 1); exit 1; }; }
1176test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1218test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1177 { echo "$as_me: error: pwd does not report name of working directory" >&2 1219 as_fn_error $? "pwd does not report name of working directory"
1178 { (exit 1); exit 1; }; }
1179 1220
1180 1221
1181# Find the source files, if location was not specified. 1222# Find the source files, if location was not specified.
1182if test -z "$srcdir"; then 1223if test -z "$srcdir"; then
1183 ac_srcdir_defaulted=yes 1224 ac_srcdir_defaulted=yes
1184 # Try the directory containing this script, then the parent directory. 1225 # Try the directory containing this script, then the parent directory.
1185 ac_confdir=`$as_dirname -- "$0" || 1226 ac_confdir=`$as_dirname -- "$as_myself" ||
1186$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1227$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187 X"$0" : 'X\(//\)[^/]' \| \ 1228 X"$as_myself" : 'X\(//\)[^/]' \| \
1188 X"$0" : 'X\(//\)$' \| \ 1229 X"$as_myself" : 'X\(//\)$' \| \
1189 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1230 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1190echo X"$0" | 1231$as_echo X"$as_myself" |
1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1192 s//\1/ 1233 s//\1/
1193 q 1234 q
1194 } 1235 }
1195 /^X\(\/\/\)[^/].*/{ 1236 /^X\(\/\/\)[^/].*/{
1212else 1253else
1213 ac_srcdir_defaulted=no 1254 ac_srcdir_defaulted=no
1214fi 1255fi
1215if test ! -r "$srcdir/$ac_unique_file"; then 1256if test ! -r "$srcdir/$ac_unique_file"; then
1216 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1217 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1258 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1218 { (exit 1); exit 1; }; }
1219fi 1259fi
1220ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1260ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1221ac_abs_confdir=`( 1261ac_abs_confdir=`(
1222 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1223 { (exit 1); exit 1; }; }
1224 pwd)` 1263 pwd)`
1225# When building in place, set srcdir=. 1264# When building in place, set srcdir=.
1226if test "$ac_abs_confdir" = "$ac_pwd"; then 1265if test "$ac_abs_confdir" = "$ac_pwd"; then
1227 srcdir=. 1266 srcdir=.
1228fi 1267fi
1258Configuration: 1297Configuration:
1259 -h, --help display this help and exit 1298 -h, --help display this help and exit
1260 --help=short display options specific to this package 1299 --help=short display options specific to this package
1261 --help=recursive display the short help of all the included packages 1300 --help=recursive display the short help of all the included packages
1262 -V, --version display version information and exit 1301 -V, --version display version information and exit
1263 -q, --quiet, --silent do not print \`checking...' messages 1302 -q, --quiet, --silent do not print \`checking ...' messages
1264 --cache-file=FILE cache test results in FILE [disabled] 1303 --cache-file=FILE cache test results in FILE [disabled]
1265 -C, --config-cache alias for \`--cache-file=config.cache' 1304 -C, --config-cache alias for \`--cache-file=config.cache'
1266 -n, --no-create do not create output files 1305 -n, --no-create do not create output files
1267 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1306 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1268 1307
1269Installation directories: 1308Installation directories:
1270 --prefix=PREFIX install architecture-independent files in PREFIX 1309 --prefix=PREFIX install architecture-independent files in PREFIX
1271 [$ac_default_prefix] 1310 [$ac_default_prefix]
1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1273 [PREFIX] 1312 [PREFIX]
1274 1313
1275By default, \`make install' will install all the files in 1314By default, \`make install' will install all the files in
1276\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1315\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1277an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1316an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278for instance \`--prefix=\$HOME'. 1317for instance \`--prefix=\$HOME'.
1279 1318
1280For better control, use the options below. 1319For better control, use the options below.
1281 1320
1282Fine tuning of the installation directories: 1321Fine tuning of the installation directories:
1283 --bindir=DIR user executables [EPREFIX/bin] 1322 --bindir=DIR user executables [EPREFIX/bin]
1284 --sbindir=DIR system admin executables [EPREFIX/sbin] 1323 --sbindir=DIR system admin executables [EPREFIX/sbin]
1285 --libexecdir=DIR program executables [EPREFIX/libexec] 1324 --libexecdir=DIR program executables [EPREFIX/libexec]
1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1289 --libdir=DIR object code libraries [EPREFIX/lib] 1328 --libdir=DIR object code libraries [EPREFIX/lib]
1290 --includedir=DIR C header files [PREFIX/include] 1329 --includedir=DIR C header files [PREFIX/include]
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1330 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294 --infodir=DIR info documentation [DATAROOTDIR/info] 1333 --infodir=DIR info documentation [DATAROOTDIR/info]
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296 --mandir=DIR man documentation [DATAROOTDIR/man] 1335 --mandir=DIR man documentation [DATAROOTDIR/man]
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1336 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1298 --htmldir=DIR html documentation [DOCDIR] 1337 --htmldir=DIR html documentation [DOCDIR]
1299 --dvidir=DIR dvi documentation [DOCDIR] 1338 --dvidir=DIR dvi documentation [DOCDIR]
1300 --pdfdir=DIR pdf documentation [DOCDIR] 1339 --pdfdir=DIR pdf documentation [DOCDIR]
1301 --psdir=DIR ps documentation [DOCDIR] 1340 --psdir=DIR ps documentation [DOCDIR]
1302_ACEOF 1341_ACEOF
1303 1342
1304 cat <<\_ACEOF 1343 cat <<\_ACEOF
1305 1344
1306X features: 1345X features:
1307 --x-includes=DIR X include files are in DIR 1346 --x-includes=DIR X include files are in DIR
1308 --x-libraries=DIR X library files are in DIR 1347 --x-libraries=DIR X library files are in DIR
1309 1348
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: 1349System types:
1316 --build=BUILD configure for building on BUILD [guessed] 1350 --build=BUILD configure for building on BUILD [guessed]
1317 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1351 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1318_ACEOF 1352_ACEOF
1319fi 1353fi
1321if test -n "$ac_init_help"; then 1355if test -n "$ac_init_help"; then
1322 1356
1323 cat <<\_ACEOF 1357 cat <<\_ACEOF
1324 1358
1325Optional Features: 1359Optional Features:
1360 --disable-option-checking ignore unrecognized --enable/--with options
1326 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1361 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1327 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1362 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1328 --enable-everything enable standard non-multichoice features 1363 --enable-everything enable standard non-multichoice features
1329 NOTE: this option is order dependent 1364 NOTE: this option is order dependent
1330 NOTE: automatically enabled with --enable-shared 1365 --enable-assert enable assertions
1366 --enable-warnings turn on g++ warnings
1367 --enable-256-color enable 256-color support
1331 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1368 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1332 --enable-combining enable composition of base and combining characters 1369 --enable-combining enable composition of base and combining characters
1333 --enable-xft enable xft support on systems that have it 1370 --enable-xft enable xft support on systems that have it
1334 --enable-font-styles enable bold and italic support 1371 --enable-font-styles enable bold and italic support
1335 --enable-xpm-background enable XPM background pixmaps 1372 --enable-afterimage enable integration with libAfterImage for background images (deprecated)
1373 --enable-pixbuf enable integration with gdk-pixbuf for background images
1374 --enable-startup-notification enable freedesktop startup notification support
1336 --enable-transparency enable transparent backgrounds 1375 --enable-transparency enable transparent backgrounds
1337 --enable-tinting enable tinting of transparent bg
1338 --enable-fading enable colors fading when off focus 1376 --enable-fading enable colors fading when off focus
1339 --enable-rxvt-scroll enable rxvt style scrollbar 1377 --enable-rxvt-scroll enable rxvt style scrollbar
1340 --enable-next-scroll enable NeXT style scrollbar 1378 --enable-next-scroll enable NeXT style scrollbar
1341 --enable-xterm-scroll enable Xterm style scrollbar 1379 --enable-xterm-scroll enable Xterm style scrollbar
1342 --enable-perl enable embedded perl interpreter 1380 --enable-perl enable embedded perl interpreter
1343 --enable-plain-scroll enable plain style scrollbar
1344 --enable-xim XIM (X Input Method) protocol support 1381 --enable-xim XIM (X Input Method) protocol support
1345 --disable-backspace-key disable handling of the backspace key 1382 --disable-backspace-key disable handling of the backspace key
1346 --disable-delete-key disable handling of the delete key 1383 --disable-delete-key disable handling of the delete key
1347 --disable-resources disable all resource checking 1384 --disable-resources disable all resource checking
1348 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1385 --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) 1386 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1350 --disable-swapscreen disable swap screen support 1387 --disable-swapscreen disable swap screen support
1351 --enable-iso14755 enable support for extended ISO 14755 modes 1388 --enable-iso14755 enable support for extended ISO 14755 modes
1352 --enable-frills enable support for rarely used features 1389 --enable-frills enable support for rarely used features
1353 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1390 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1354 --enable-selectionscrolling enable scrolling during selections 1391 --enable-selectionscrolling enable scrolling during selections
1355 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1392 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1356 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1393 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1357 --enable-smart-resize enable smart growth/shrink behaviour 1394 --enable-smart-resize enable smart growth/shrink behaviour
1358 --enable-text-blink enable blinking text 1395 --enable-text-blink enable blinking text
1359 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1396 --enable-pointer-blank enable pointer blanking when typing or inactive
1360 --enable-utmp enable utmp (utmpx) support 1397 --enable-utmp enable utmp (utmpx) support
1361 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1398 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1362 --enable-lastlog enable lastlog support (requires --enable-utmp) 1399 --enable-lastlog enable lastlog support (requires --enable-utmp)
1363 1400
1364Optional Packages: 1401Optional Packages:
1365 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1366 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --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) 1405 --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) 1406 --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) 1407 --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) 1408 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1371 --with-term=NAME set the terminal to NAME (default: rxvt) 1409 --with-term=NAME set the terminal to NAME (default: rxvt)
1372 --with-terminfo=PATH set the path to the terminfo tree to PATH 1410 --with-terminfo=PATH set the path to the terminfo tree to PATH
1373 --with-x use the X Window System 1411 --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 1412
1378Some influential environment variables: 1413Some influential environment variables:
1379 CC C compiler command 1414 CC C compiler command
1380 CFLAGS C compiler flags 1415 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1416 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir> 1417 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library> 1418 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 1419 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir> 1420 you have headers in a nonstandard directory <include dir>
1386 CXX C++ compiler command 1421 CXX C++ compiler command
1387 CXXFLAGS C++ compiler flags 1422 CXXFLAGS C++ compiler flags
1388 CPP C preprocessor 1423 CPP C preprocessor
1424 CXXCPP C++ preprocessor
1389 XMKMF Path to xmkmf, Makefile generator for X Window System 1425 XMKMF Path to xmkmf, Makefile generator for X Window System
1390 CXXCPP C++ preprocessor
1391 1426
1392Use these variables to override the choices made by `configure' or to help 1427Use these variables to override the choices made by `configure' or to help
1393it to find libraries and programs with nonstandard names/locations. 1428it to find libraries and programs with nonstandard names/locations.
1394 1429
1430Report bugs to the package provider.
1395_ACEOF 1431_ACEOF
1396ac_status=$? 1432ac_status=$?
1397fi 1433fi
1398 1434
1399if test "$ac_init_help" = "recursive"; then 1435if test "$ac_init_help" = "recursive"; then
1400 # If there are subdirs, report their specific --help. 1436 # If there are subdirs, report their specific --help.
1401 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1437 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1402 test -d "$ac_dir" || continue 1438 test -d "$ac_dir" ||
1439 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1440 continue
1403 ac_builddir=. 1441 ac_builddir=.
1404 1442
1405case "$ac_dir" in 1443case "$ac_dir" in
1406.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1444.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407*) 1445*)
1408 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1409 # A ".." for each directory in $ac_dir_suffix. 1447 # A ".." for each directory in $ac_dir_suffix.
1410 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1411 case $ac_top_builddir_sub in 1449 case $ac_top_builddir_sub in
1412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414 esac ;; 1452 esac ;;
1415esac 1453esac
1441 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1479 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1442 elif test -f "$ac_srcdir/configure"; then 1480 elif test -f "$ac_srcdir/configure"; then
1443 echo && 1481 echo &&
1444 $SHELL "$ac_srcdir/configure" --help=recursive 1482 $SHELL "$ac_srcdir/configure" --help=recursive
1445 else 1483 else
1446 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1484 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 fi || ac_status=$? 1485 fi || ac_status=$?
1448 cd "$ac_pwd" || { ac_status=$?; break; } 1486 cd "$ac_pwd" || { ac_status=$?; break; }
1449 done 1487 done
1450fi 1488fi
1451 1489
1452test -n "$ac_init_help" && exit $ac_status 1490test -n "$ac_init_help" && exit $ac_status
1453if $ac_init_version; then 1491if $ac_init_version; then
1454 cat <<\_ACEOF 1492 cat <<\_ACEOF
1455configure 1493configure
1456generated by GNU Autoconf 2.61 1494generated by GNU Autoconf 2.67
1457 1495
1458Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1496Copyright (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 1497This configure script is free software; the Free Software Foundation
1461gives unlimited permission to copy, distribute and modify it. 1498gives unlimited permission to copy, distribute and modify it.
1462_ACEOF 1499_ACEOF
1463 exit 1500 exit
1464fi 1501fi
1502
1503## ------------------------ ##
1504## Autoconf initialization. ##
1505## ------------------------ ##
1506
1507# ac_fn_c_try_compile LINENO
1508# --------------------------
1509# Try to compile conftest.$ac_ext, and return whether this succeeded.
1510ac_fn_c_try_compile ()
1511{
1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513 rm -f conftest.$ac_objext
1514 if { { ac_try="$ac_compile"
1515case "(($ac_try" in
1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517 *) ac_try_echo=$ac_try;;
1518esac
1519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520$as_echo "$ac_try_echo"; } >&5
1521 (eval "$ac_compile") 2>conftest.err
1522 ac_status=$?
1523 if test -s conftest.err; then
1524 grep -v '^ *+' conftest.err >conftest.er1
1525 cat conftest.er1 >&5
1526 mv -f conftest.er1 conftest.err
1527 fi
1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529 test $ac_status = 0; } && {
1530 test -z "$ac_c_werror_flag" ||
1531 test ! -s conftest.err
1532 } && test -s conftest.$ac_objext; then :
1533 ac_retval=0
1534else
1535 $as_echo "$as_me: failed program was:" >&5
1536sed 's/^/| /' conftest.$ac_ext >&5
1537
1538 ac_retval=1
1539fi
1540 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1541 as_fn_set_status $ac_retval
1542
1543} # ac_fn_c_try_compile
1544
1545# ac_fn_cxx_try_compile LINENO
1546# ----------------------------
1547# Try to compile conftest.$ac_ext, and return whether this succeeded.
1548ac_fn_cxx_try_compile ()
1549{
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 rm -f conftest.$ac_objext
1552 if { { ac_try="$ac_compile"
1553case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1556esac
1557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558$as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_compile") 2>conftest.err
1560 ac_status=$?
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1565 fi
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } && {
1568 test -z "$ac_cxx_werror_flag" ||
1569 test ! -s conftest.err
1570 } && test -s conftest.$ac_objext; then :
1571 ac_retval=0
1572else
1573 $as_echo "$as_me: failed program was:" >&5
1574sed 's/^/| /' conftest.$ac_ext >&5
1575
1576 ac_retval=1
1577fi
1578 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1579 as_fn_set_status $ac_retval
1580
1581} # ac_fn_cxx_try_compile
1582
1583# ac_fn_c_try_cpp LINENO
1584# ----------------------
1585# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1586ac_fn_c_try_cpp ()
1587{
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 if { { ac_try="$ac_cpp conftest.$ac_ext"
1590case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593esac
1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595$as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } > conftest.i && {
1605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 }; then :
1608 ac_retval=0
1609else
1610 $as_echo "$as_me: failed program was:" >&5
1611sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1
1614fi
1615 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1616 as_fn_set_status $ac_retval
1617
1618} # ac_fn_c_try_cpp
1619
1620# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1621# -------------------------------------------------------
1622# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1623# the include files in INCLUDES and setting the cache variable VAR
1624# accordingly.
1625ac_fn_c_check_header_mongrel ()
1626{
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 if eval "test \"\${$3+set}\"" = set; then :
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630$as_echo_n "checking for $2... " >&6; }
1631if eval "test \"\${$3+set}\"" = set; then :
1632 $as_echo_n "(cached) " >&6
1633fi
1634eval ac_res=\$$3
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636$as_echo "$ac_res" >&6; }
1637else
1638 # Is the header compilable?
1639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1640$as_echo_n "checking $2 usability... " >&6; }
1641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642/* end confdefs.h. */
1643$4
1644#include <$2>
1645_ACEOF
1646if ac_fn_c_try_compile "$LINENO"; then :
1647 ac_header_compiler=yes
1648else
1649 ac_header_compiler=no
1650fi
1651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1653$as_echo "$ac_header_compiler" >&6; }
1654
1655# Is the header present?
1656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1657$as_echo_n "checking $2 presence... " >&6; }
1658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659/* end confdefs.h. */
1660#include <$2>
1661_ACEOF
1662if ac_fn_c_try_cpp "$LINENO"; then :
1663 ac_header_preproc=yes
1664else
1665 ac_header_preproc=no
1666fi
1667rm -f conftest.err conftest.i conftest.$ac_ext
1668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1669$as_echo "$ac_header_preproc" >&6; }
1670
1671# So? What about this header?
1672case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1673 yes:no: )
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1675$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1677$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1678 ;;
1679 no:yes:* )
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1681$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1683$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1685$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1687$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1689$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1690 ;;
1691esac
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693$as_echo_n "checking for $2... " >&6; }
1694if eval "test \"\${$3+set}\"" = set; then :
1695 $as_echo_n "(cached) " >&6
1696else
1697 eval "$3=\$ac_header_compiler"
1698fi
1699eval ac_res=\$$3
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701$as_echo "$ac_res" >&6; }
1702fi
1703 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1704
1705} # ac_fn_c_check_header_mongrel
1706
1707# ac_fn_c_try_run LINENO
1708# ----------------------
1709# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710# that executables *can* be run.
1711ac_fn_c_try_run ()
1712{
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_link"
1715case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>&5
1722 ac_status=$?
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725 { { case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_try") 2>&5
1732 ac_status=$?
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; }; }; then :
1735 ac_retval=0
1736else
1737 $as_echo "$as_me: program exited with status $ac_status" >&5
1738 $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=$ac_status
1742fi
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745 as_fn_set_status $ac_retval
1746
1747} # ac_fn_c_try_run
1748
1749# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750# -------------------------------------------------------
1751# Tests whether HEADER exists and can be compiled using the include files in
1752# INCLUDES, setting the cache variable VAR accordingly.
1753ac_fn_c_check_header_compile ()
1754{
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757$as_echo_n "checking for $2... " >&6; }
1758if eval "test \"\${$3+set}\"" = set; then :
1759 $as_echo_n "(cached) " >&6
1760else
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762/* end confdefs.h. */
1763$4
1764#include <$2>
1765_ACEOF
1766if ac_fn_c_try_compile "$LINENO"; then :
1767 eval "$3=yes"
1768else
1769 eval "$3=no"
1770fi
1771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772fi
1773eval ac_res=\$$3
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775$as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777
1778} # ac_fn_c_check_header_compile
1779
1780# ac_fn_c_try_link LINENO
1781# -----------------------
1782# Try to link conftest.$ac_ext, and return whether this succeeded.
1783ac_fn_c_try_link ()
1784{
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext conftest$ac_exeext
1787 if { { ac_try="$ac_link"
1788case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791esac
1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793$as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>conftest.err
1795 ac_status=$?
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1800 fi
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest$ac_exeext && {
1806 test "$cross_compiling" = yes ||
1807 $as_test_x conftest$ac_exeext
1808 }; then :
1809 ac_retval=0
1810else
1811 $as_echo "$as_me: failed program was:" >&5
1812sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=1
1815fi
1816 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818 # interfere with the next link command; also delete a directory that is
1819 # left behind by Apple's compiler. We do this before executing the actions.
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822 as_fn_set_status $ac_retval
1823
1824} # ac_fn_c_try_link
1825
1826# ac_fn_cxx_try_link LINENO
1827# -------------------------
1828# Try to link conftest.$ac_ext, and return whether this succeeded.
1829ac_fn_cxx_try_link ()
1830{
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 rm -f conftest.$ac_objext conftest$ac_exeext
1833 if { { ac_try="$ac_link"
1834case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837esac
1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839$as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_link") 2>conftest.err
1841 ac_status=$?
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1846 fi
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && {
1849 test -z "$ac_cxx_werror_flag" ||
1850 test ! -s conftest.err
1851 } && test -s conftest$ac_exeext && {
1852 test "$cross_compiling" = yes ||
1853 $as_test_x conftest$ac_exeext
1854 }; then :
1855 ac_retval=0
1856else
1857 $as_echo "$as_me: failed program was:" >&5
1858sed 's/^/| /' conftest.$ac_ext >&5
1859
1860 ac_retval=1
1861fi
1862 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1863 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1864 # interfere with the next link command; also delete a directory that is
1865 # left behind by Apple's compiler. We do this before executing the actions.
1866 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868 as_fn_set_status $ac_retval
1869
1870} # ac_fn_cxx_try_link
1871
1872# ac_fn_cxx_try_cpp LINENO
1873# ------------------------
1874# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1875ac_fn_cxx_try_cpp ()
1876{
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_cpp conftest.$ac_ext"
1879case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882esac
1883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884$as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1891 fi
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } > conftest.i && {
1894 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1895 test ! -s conftest.err
1896 }; then :
1897 ac_retval=0
1898else
1899 $as_echo "$as_me: failed program was:" >&5
1900sed 's/^/| /' conftest.$ac_ext >&5
1901
1902 ac_retval=1
1903fi
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905 as_fn_set_status $ac_retval
1906
1907} # ac_fn_cxx_try_cpp
1908
1909# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1910# ---------------------------------------------------------
1911# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1912# the include files in INCLUDES and setting the cache variable VAR
1913# accordingly.
1914ac_fn_cxx_check_header_mongrel ()
1915{
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 if eval "test \"\${$3+set}\"" = set; then :
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if eval "test \"\${$3+set}\"" = set; then :
1921 $as_echo_n "(cached) " >&6
1922fi
1923eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925$as_echo "$ac_res" >&6; }
1926else
1927 # Is the header compilable?
1928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1929$as_echo_n "checking $2 usability... " >&6; }
1930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931/* end confdefs.h. */
1932$4
1933#include <$2>
1934_ACEOF
1935if ac_fn_cxx_try_compile "$LINENO"; then :
1936 ac_header_compiler=yes
1937else
1938 ac_header_compiler=no
1939fi
1940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1942$as_echo "$ac_header_compiler" >&6; }
1943
1944# Is the header present?
1945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1946$as_echo_n "checking $2 presence... " >&6; }
1947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948/* end confdefs.h. */
1949#include <$2>
1950_ACEOF
1951if ac_fn_cxx_try_cpp "$LINENO"; then :
1952 ac_header_preproc=yes
1953else
1954 ac_header_preproc=no
1955fi
1956rm -f conftest.err conftest.i conftest.$ac_ext
1957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1958$as_echo "$ac_header_preproc" >&6; }
1959
1960# So? What about this header?
1961case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1962 yes:no: )
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1964$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1966$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1967 ;;
1968 no:yes:* )
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1970$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1972$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1974$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1976$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1978$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 ;;
1980esac
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982$as_echo_n "checking for $2... " >&6; }
1983if eval "test \"\${$3+set}\"" = set; then :
1984 $as_echo_n "(cached) " >&6
1985else
1986 eval "$3=\$ac_header_compiler"
1987fi
1988eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990$as_echo "$ac_res" >&6; }
1991fi
1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993
1994} # ac_fn_cxx_check_header_mongrel
1995
1996# ac_fn_cxx_check_func LINENO FUNC VAR
1997# ------------------------------------
1998# Tests whether FUNC exists, setting the cache variable VAR accordingly
1999ac_fn_cxx_check_func ()
2000{
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003$as_echo_n "checking for $2... " >&6; }
2004if eval "test \"\${$3+set}\"" = set; then :
2005 $as_echo_n "(cached) " >&6
2006else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008/* end confdefs.h. */
2009/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2011#define $2 innocuous_$2
2012
2013/* System header to define __stub macros and hopefully few prototypes,
2014 which can conflict with char $2 (); below.
2015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2016 <limits.h> exists even on freestanding compilers. */
2017
2018#ifdef __STDC__
2019# include <limits.h>
2020#else
2021# include <assert.h>
2022#endif
2023
2024#undef $2
2025
2026/* Override any GCC internal prototype to avoid an error.
2027 Use char because int might match the return type of a GCC
2028 builtin and then its argument prototype would still apply. */
2029#ifdef __cplusplus
2030extern "C"
2031#endif
2032char $2 ();
2033/* The GNU C library defines this for functions which it implements
2034 to always fail with ENOSYS. Some functions are actually named
2035 something starting with __ and the normal name is an alias. */
2036#if defined __stub_$2 || defined __stub___$2
2037choke me
2038#endif
2039
2040int
2041main ()
2042{
2043return $2 ();
2044 ;
2045 return 0;
2046}
2047_ACEOF
2048if ac_fn_cxx_try_link "$LINENO"; then :
2049 eval "$3=yes"
2050else
2051 eval "$3=no"
2052fi
2053rm -f core conftest.err conftest.$ac_objext \
2054 conftest$ac_exeext conftest.$ac_ext
2055fi
2056eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058$as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2060
2061} # ac_fn_cxx_check_func
2062
2063# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2064# ---------------------------------------------
2065# Tests whether TYPE exists after having included INCLUDES, setting cache
2066# variable VAR accordingly.
2067ac_fn_cxx_check_type ()
2068{
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071$as_echo_n "checking for $2... " >&6; }
2072if eval "test \"\${$3+set}\"" = set; then :
2073 $as_echo_n "(cached) " >&6
2074else
2075 eval "$3=no"
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h. */
2078$4
2079int
2080main ()
2081{
2082if (sizeof ($2))
2083 return 0;
2084 ;
2085 return 0;
2086}
2087_ACEOF
2088if ac_fn_cxx_try_compile "$LINENO"; then :
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h. */
2091$4
2092int
2093main ()
2094{
2095if (sizeof (($2)))
2096 return 0;
2097 ;
2098 return 0;
2099}
2100_ACEOF
2101if ac_fn_cxx_try_compile "$LINENO"; then :
2102
2103else
2104 eval "$3=yes"
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109fi
2110eval ac_res=\$$3
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112$as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114
2115} # ac_fn_cxx_check_type
2116
2117# ac_fn_c_find_intX_t LINENO BITS VAR
2118# -----------------------------------
2119# Finds a signed integer type with width BITS, setting cache variable VAR
2120# accordingly.
2121ac_fn_c_find_intX_t ()
2122{
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2125$as_echo_n "checking for int$2_t... " >&6; }
2126if eval "test \"\${$3+set}\"" = set; then :
2127 $as_echo_n "(cached) " >&6
2128else
2129 eval "$3=no"
2130 # Order is important - never check a type that is potentially smaller
2131 # than half of the expected target width.
2132 for ac_type in int$2_t 'int' 'long int' \
2133 'long long int' 'short int' 'signed char'; do
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135/* end confdefs.h. */
2136$ac_includes_default
2137 enum { N = $2 / 2 - 1 };
2138int
2139main ()
2140{
2141static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2142test_array [0] = 0
2143
2144 ;
2145 return 0;
2146}
2147_ACEOF
2148if ac_fn_cxx_try_compile "$LINENO"; then :
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150/* end confdefs.h. */
2151$ac_includes_default
2152 enum { N = $2 / 2 - 1 };
2153int
2154main ()
2155{
2156static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2157 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2158test_array [0] = 0
2159
2160 ;
2161 return 0;
2162}
2163_ACEOF
2164if ac_fn_cxx_try_compile "$LINENO"; then :
2165
2166else
2167 case $ac_type in #(
2168 int$2_t) :
2169 eval "$3=yes" ;; #(
2170 *) :
2171 eval "$3=\$ac_type" ;;
2172esac
2173fi
2174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 if eval test \"x\$"$3"\" = x"no"; then :
2178
2179else
2180 break
2181fi
2182 done
2183fi
2184eval ac_res=\$$3
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186$as_echo "$ac_res" >&6; }
2187 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2188
2189} # ac_fn_c_find_intX_t
2190
2191# ac_fn_c_find_uintX_t LINENO BITS VAR
2192# ------------------------------------
2193# Finds an unsigned integer type with width BITS, setting cache variable VAR
2194# accordingly.
2195ac_fn_c_find_uintX_t ()
2196{
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2199$as_echo_n "checking for uint$2_t... " >&6; }
2200if eval "test \"\${$3+set}\"" = set; then :
2201 $as_echo_n "(cached) " >&6
2202else
2203 eval "$3=no"
2204 # Order is important - never check a type that is potentially smaller
2205 # than half of the expected target width.
2206 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2207 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209/* end confdefs.h. */
2210$ac_includes_default
2211int
2212main ()
2213{
2214static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2215test_array [0] = 0
2216
2217 ;
2218 return 0;
2219}
2220_ACEOF
2221if ac_fn_cxx_try_compile "$LINENO"; then :
2222 case $ac_type in #(
2223 uint$2_t) :
2224 eval "$3=yes" ;; #(
2225 *) :
2226 eval "$3=\$ac_type" ;;
2227esac
2228fi
2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 if eval test \"x\$"$3"\" = x"no"; then :
2231
2232else
2233 break
2234fi
2235 done
2236fi
2237eval ac_res=\$$3
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2239$as_echo "$ac_res" >&6; }
2240 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2241
2242} # ac_fn_c_find_uintX_t
2243
2244# ac_fn_cxx_try_run LINENO
2245# ------------------------
2246# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2247# that executables *can* be run.
2248ac_fn_cxx_try_run ()
2249{
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 if { { ac_try="$ac_link"
2252case "(($ac_try" in
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2255esac
2256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2257$as_echo "$ac_try_echo"; } >&5
2258 (eval "$ac_link") 2>&5
2259 ac_status=$?
2260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2261 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2262 { { case "(($ac_try" in
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2265esac
2266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2267$as_echo "$ac_try_echo"; } >&5
2268 (eval "$ac_try") 2>&5
2269 ac_status=$?
2270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2271 test $ac_status = 0; }; }; then :
2272 ac_retval=0
2273else
2274 $as_echo "$as_me: program exited with status $ac_status" >&5
2275 $as_echo "$as_me: failed program was:" >&5
2276sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 ac_retval=$ac_status
2279fi
2280 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2281 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2282 as_fn_set_status $ac_retval
2283
2284} # ac_fn_cxx_try_run
1465cat >config.log <<_ACEOF 2285cat >config.log <<_ACEOF
1466This file contains any messages produced by compilers while 2286This file contains any messages produced by compilers while
1467running configure, to aid debugging if configure makes a mistake. 2287running configure, to aid debugging if configure makes a mistake.
1468 2288
1469It was created by $as_me, which was 2289It was created by $as_me, which was
1470generated by GNU Autoconf 2.61. Invocation command line was 2290generated by GNU Autoconf 2.67. Invocation command line was
1471 2291
1472 $ $0 $@ 2292 $ $0 $@
1473 2293
1474_ACEOF 2294_ACEOF
1475exec 5>>config.log 2295exec 5>>config.log
1501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502for as_dir in $PATH 2322for as_dir in $PATH
1503do 2323do
1504 IFS=$as_save_IFS 2324 IFS=$as_save_IFS
1505 test -z "$as_dir" && as_dir=. 2325 test -z "$as_dir" && as_dir=.
1506 echo "PATH: $as_dir" 2326 $as_echo "PATH: $as_dir"
1507done 2327 done
1508IFS=$as_save_IFS 2328IFS=$as_save_IFS
1509 2329
1510} >&5 2330} >&5
1511 2331
1512cat >&5 <<_ACEOF 2332cat >&5 <<_ACEOF
1536 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2356 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1538 | -silent | --silent | --silen | --sile | --sil) 2358 | -silent | --silent | --silen | --sile | --sil)
1539 continue ;; 2359 continue ;;
1540 *\'*) 2360 *\'*)
1541 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2361 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1542 esac 2362 esac
1543 case $ac_pass in 2363 case $ac_pass in
1544 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2364 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1545 2) 2365 2)
1546 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 2366 as_fn_append ac_configure_args1 " '$ac_arg'"
1547 if test $ac_must_keep_next = true; then 2367 if test $ac_must_keep_next = true; then
1548 ac_must_keep_next=false # Got value, back to normal. 2368 ac_must_keep_next=false # Got value, back to normal.
1549 else 2369 else
1550 case $ac_arg in 2370 case $ac_arg in
1551 *=* | --config-cache | -C | -disable-* | --disable-* \ 2371 *=* | --config-cache | -C | -disable-* | --disable-* \
1557 esac 2377 esac
1558 ;; 2378 ;;
1559 -* ) ac_must_keep_next=true ;; 2379 -* ) ac_must_keep_next=true ;;
1560 esac 2380 esac
1561 fi 2381 fi
1562 ac_configure_args="$ac_configure_args '$ac_arg'" 2382 as_fn_append ac_configure_args " '$ac_arg'"
1563 ;; 2383 ;;
1564 esac 2384 esac
1565 done 2385 done
1566done 2386done
1567$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 2387{ 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; } 2388{ ac_configure_args1=; unset ac_configure_args1;}
1569 2389
1570# When interrupted or exit'd, cleanup temporary files, and complete 2390# When interrupted or exit'd, cleanup temporary files, and complete
1571# config.log. We remove comments because anyway the quotes in there 2391# config.log. We remove comments because anyway the quotes in there
1572# would cause problems or look ugly. 2392# would cause problems or look ugly.
1573# WARNING: Use '\'' to represent an apostrophe within the trap. 2393# WARNING: Use '\'' to represent an apostrophe within the trap.
1575trap 'exit_status=$? 2395trap 'exit_status=$?
1576 # Save into config.log some information that might help in debugging. 2396 # Save into config.log some information that might help in debugging.
1577 { 2397 {
1578 echo 2398 echo
1579 2399
1580 cat <<\_ASBOX
1581## ---------------- ## 2400 $as_echo "## ---------------- ##
1582## Cache variables. ## 2401## Cache variables. ##
1583## ---------------- ## 2402## ---------------- ##"
1584_ASBOX
1585 echo 2403 echo
1586 # The following way of writing the cache mishandles newlines in values, 2404 # The following way of writing the cache mishandles newlines in values,
1587( 2405(
1588 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2406 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1589 eval ac_val=\$$ac_var 2407 eval ac_val=\$$ac_var
1590 case $ac_val in #( 2408 case $ac_val in #(
1591 *${as_nl}*) 2409 *${as_nl}*)
1592 case $ac_var in #( 2410 case $ac_var in #(
1593 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 2411 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1594echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 2412$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1595 esac 2413 esac
1596 case $ac_var in #( 2414 case $ac_var in #(
1597 _ | IFS | as_nl) ;; #( 2415 _ | IFS | as_nl) ;; #(
1598 *) $as_unset $ac_var ;; 2416 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2417 *) { eval $ac_var=; unset $ac_var;} ;;
1599 esac ;; 2418 esac ;;
1600 esac 2419 esac
1601 done 2420 done
1602 (set) 2>&1 | 2421 (set) 2>&1 |
1603 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2422 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1612 esac | 2431 esac |
1613 sort 2432 sort
1614) 2433)
1615 echo 2434 echo
1616 2435
1617 cat <<\_ASBOX
1618## ----------------- ## 2436 $as_echo "## ----------------- ##
1619## Output variables. ## 2437## Output variables. ##
1620## ----------------- ## 2438## ----------------- ##"
1621_ASBOX
1622 echo 2439 echo
1623 for ac_var in $ac_subst_vars 2440 for ac_var in $ac_subst_vars
1624 do 2441 do
1625 eval ac_val=\$$ac_var 2442 eval ac_val=\$$ac_var
1626 case $ac_val in 2443 case $ac_val in
1627 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2444 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 esac 2445 esac
1629 echo "$ac_var='\''$ac_val'\''" 2446 $as_echo "$ac_var='\''$ac_val'\''"
1630 done | sort 2447 done | sort
1631 echo 2448 echo
1632 2449
1633 if test -n "$ac_subst_files"; then 2450 if test -n "$ac_subst_files"; then
1634 cat <<\_ASBOX
1635## ------------------- ## 2451 $as_echo "## ------------------- ##
1636## File substitutions. ## 2452## File substitutions. ##
1637## ------------------- ## 2453## ------------------- ##"
1638_ASBOX
1639 echo 2454 echo
1640 for ac_var in $ac_subst_files 2455 for ac_var in $ac_subst_files
1641 do 2456 do
1642 eval ac_val=\$$ac_var 2457 eval ac_val=\$$ac_var
1643 case $ac_val in 2458 case $ac_val in
1644 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2459 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1645 esac 2460 esac
1646 echo "$ac_var='\''$ac_val'\''" 2461 $as_echo "$ac_var='\''$ac_val'\''"
1647 done | sort 2462 done | sort
1648 echo 2463 echo
1649 fi 2464 fi
1650 2465
1651 if test -s confdefs.h; then 2466 if test -s confdefs.h; then
1652 cat <<\_ASBOX 2467 $as_echo "## ----------- ##
1653## ----------- ##
1654## confdefs.h. ## 2468## confdefs.h. ##
1655## ----------- ## 2469## ----------- ##"
1656_ASBOX
1657 echo 2470 echo
1658 cat confdefs.h 2471 cat confdefs.h
1659 echo 2472 echo
1660 fi 2473 fi
1661 test "$ac_signal" != 0 && 2474 test "$ac_signal" != 0 &&
1662 echo "$as_me: caught signal $ac_signal" 2475 $as_echo "$as_me: caught signal $ac_signal"
1663 echo "$as_me: exit $exit_status" 2476 $as_echo "$as_me: exit $exit_status"
1664 } >&5 2477 } >&5
1665 rm -f core *.core core.conftest.* && 2478 rm -f core *.core core.conftest.* &&
1666 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2479 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1667 exit $exit_status 2480 exit $exit_status
1668' 0 2481' 0
1669for ac_signal in 1 2 13 15; do 2482for ac_signal in 1 2 13 15; do
1670 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 2483 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1671done 2484done
1672ac_signal=0 2485ac_signal=0
1673 2486
1674# confdefs.h avoids OS command line length limits that DEFS can exceed. 2487# confdefs.h avoids OS command line length limits that DEFS can exceed.
1675rm -f -r conftest* confdefs.h 2488rm -f -r conftest* confdefs.h
1676 2489
2490$as_echo "/* confdefs.h */" > confdefs.h
2491
1677# Predefined preprocessor variables. 2492# Predefined preprocessor variables.
1678 2493
1679cat >>confdefs.h <<_ACEOF 2494cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_NAME "$PACKAGE_NAME" 2495#define PACKAGE_NAME "$PACKAGE_NAME"
1681_ACEOF 2496_ACEOF
1682 2497
1683
1684cat >>confdefs.h <<_ACEOF 2498cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2499#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1686_ACEOF 2500_ACEOF
1687 2501
1688
1689cat >>confdefs.h <<_ACEOF 2502cat >>confdefs.h <<_ACEOF
1690#define PACKAGE_VERSION "$PACKAGE_VERSION" 2503#define PACKAGE_VERSION "$PACKAGE_VERSION"
1691_ACEOF 2504_ACEOF
1692 2505
1693
1694cat >>confdefs.h <<_ACEOF 2506cat >>confdefs.h <<_ACEOF
1695#define PACKAGE_STRING "$PACKAGE_STRING" 2507#define PACKAGE_STRING "$PACKAGE_STRING"
1696_ACEOF 2508_ACEOF
1697 2509
1698
1699cat >>confdefs.h <<_ACEOF 2510cat >>confdefs.h <<_ACEOF
1700#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2511#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1701_ACEOF 2512_ACEOF
1702 2513
2514cat >>confdefs.h <<_ACEOF
2515#define PACKAGE_URL "$PACKAGE_URL"
2516_ACEOF
2517
1703 2518
1704# Let the site file select an alternate cache file if it wants to. 2519# Let the site file select an alternate cache file if it wants to.
1705# Prefer explicitly selected file to automatically selected ones. 2520# Prefer an explicitly selected file to automatically selected ones.
2521ac_site_file1=NONE
2522ac_site_file2=NONE
1706if test -n "$CONFIG_SITE"; then 2523if test -n "$CONFIG_SITE"; then
1707 set x "$CONFIG_SITE" 2524 # We do not want a PATH search for config.site.
2525 case $CONFIG_SITE in #((
2526 -*) ac_site_file1=./$CONFIG_SITE;;
2527 */*) ac_site_file1=$CONFIG_SITE;;
2528 *) ac_site_file1=./$CONFIG_SITE;;
2529 esac
1708elif test "x$prefix" != xNONE; then 2530elif test "x$prefix" != xNONE; then
1709 set x "$prefix/share/config.site" "$prefix/etc/config.site" 2531 ac_site_file1=$prefix/share/config.site
2532 ac_site_file2=$prefix/etc/config.site
1710else 2533else
1711 set x "$ac_default_prefix/share/config.site" \ 2534 ac_site_file1=$ac_default_prefix/share/config.site
1712 "$ac_default_prefix/etc/config.site" 2535 ac_site_file2=$ac_default_prefix/etc/config.site
1713fi 2536fi
1714shift 2537for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1715for ac_site_file
1716do 2538do
1717 if test -r "$ac_site_file"; then 2539 test "x$ac_site_file" = xNONE && continue
2540 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 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1719echo "$as_me: loading site script $ac_site_file" >&6;} 2542$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1720 sed 's/^/| /' "$ac_site_file" >&5 2543 sed 's/^/| /' "$ac_site_file" >&5
1721 . "$ac_site_file" 2544 . "$ac_site_file" \
2545 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2547as_fn_error $? "failed to load site script $ac_site_file
2548See \`config.log' for more details" "$LINENO" 5 ; }
1722 fi 2549 fi
1723done 2550done
1724 2551
1725if test -r "$cache_file"; then 2552if test -r "$cache_file"; then
1726 # Some versions of bash will fail to source /dev/null (special 2553 # Some versions of bash will fail to source /dev/null (special files
1727 # files actually), so we avoid doing that. 2554 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1728 if test -f "$cache_file"; then 2555 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1729 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1730echo "$as_me: loading cache $cache_file" >&6;} 2557$as_echo "$as_me: loading cache $cache_file" >&6;}
1731 case $cache_file in 2558 case $cache_file in
1732 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2559 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1733 *) . "./$cache_file";; 2560 *) . "./$cache_file";;
1734 esac 2561 esac
1735 fi 2562 fi
1736else 2563else
1737 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1738echo "$as_me: creating cache $cache_file" >&6;} 2565$as_echo "$as_me: creating cache $cache_file" >&6;}
1739 >$cache_file 2566 >$cache_file
1740fi 2567fi
1741 2568
1742# Check that the precious variables saved in the cache have kept the same 2569# Check that the precious variables saved in the cache have kept the same
1743# value. 2570# value.
1747 eval ac_new_set=\$ac_env_${ac_var}_set 2574 eval ac_new_set=\$ac_env_${ac_var}_set
1748 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2575 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1749 eval ac_new_val=\$ac_env_${ac_var}_value 2576 eval ac_new_val=\$ac_env_${ac_var}_value
1750 case $ac_old_set,$ac_new_set in 2577 case $ac_old_set,$ac_new_set in
1751 set,) 2578 set,)
1752 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2579 { $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;} 2580$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1754 ac_cache_corrupted=: ;; 2581 ac_cache_corrupted=: ;;
1755 ,set) 2582 ,set)
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2583 { $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;} 2584$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1758 ac_cache_corrupted=: ;; 2585 ac_cache_corrupted=: ;;
1759 ,);; 2586 ,);;
1760 *) 2587 *)
1761 if test "x$ac_old_val" != "x$ac_new_val"; then 2588 if test "x$ac_old_val" != "x$ac_new_val"; then
2589 # differences in whitespace do not lead to failure.
2590 ac_old_val_w=`echo x $ac_old_val`
2591 ac_new_val_w=`echo x $ac_new_val`
2592 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 2593 { $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;} 2594$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=: 2595 ac_cache_corrupted=:
2596 else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2598$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2599 eval $ac_var=\$ac_old_val
2600 fi
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2602$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2604$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1769 fi;; 2605 fi;;
1770 esac 2606 esac
1771 # Pass precious variables to config.status. 2607 # Pass precious variables to config.status.
1772 if test "$ac_new_set" = set; then 2608 if test "$ac_new_set" = set; then
1773 case $ac_new_val in 2609 case $ac_new_val in
1774 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2610 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 *) ac_arg=$ac_var=$ac_new_val ;; 2611 *) ac_arg=$ac_var=$ac_new_val ;;
1776 esac 2612 esac
1777 case " $ac_configure_args " in 2613 case " $ac_configure_args " in
1778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2614 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1779 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2615 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1780 esac 2616 esac
1781 fi 2617 fi
1782done 2618done
1783if $ac_cache_corrupted; then 2619if $ac_cache_corrupted; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1784 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2622 { $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;} 2623$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;} 2624 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1788 { (exit 1); exit 1; }; }
1789fi 2625fi
1790 2626## -------------------- ##
1791 2627## Main body of script. ##
1792 2628## -------------------- ##
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806 2629
1807ac_ext=c 2630ac_ext=c
1808ac_cpp='$CPP $CPPFLAGS' 2631ac_cpp='$CPP $CPPFLAGS'
1809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831 ac_install_sh="$ac_aux_dir/shtool install -c" 2654 ac_install_sh="$ac_aux_dir/shtool install -c"
1832 break 2655 break
1833 fi 2656 fi
1834done 2657done
1835if test -z "$ac_aux_dir"; then 2658if 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;} 2659 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1838 { (exit 1); exit 1; }; }
1839fi 2660fi
1840 2661
1841# These three variables are undocumented and unsupported, 2662# These three variables are undocumented and unsupported,
1842# and are intended to be withdrawn in a future Autoconf release. 2663# 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 2664# 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. 2668ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1848 2669
1849 2670
1850# Make sure we can run config.sub. 2671# Make sure we can run config.sub.
1851$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2672$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 2673 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 2674
1856{ echo "$as_me:$LINENO: checking build system type" >&5 2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1857echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2676$as_echo_n "checking build system type... " >&6; }
1858if test "${ac_cv_build+set}" = set; then 2677if test "${ac_cv_build+set}" = set; then :
1859 echo $ECHO_N "(cached) $ECHO_C" >&6 2678 $as_echo_n "(cached) " >&6
1860else 2679else
1861 ac_build_alias=$build_alias 2680 ac_build_alias=$build_alias
1862test "x$ac_build_alias" = x && 2681test "x$ac_build_alias" = x &&
1863 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2682 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1864test "x$ac_build_alias" = x && 2683test "x$ac_build_alias" = x &&
1865 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2684 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` || 2685ac_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;} 2686 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1871 { (exit 1); exit 1; }; }
1872 2687
1873fi 2688fi
1874{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1875echo "${ECHO_T}$ac_cv_build" >&6; } 2690$as_echo "$ac_cv_build" >&6; }
1876case $ac_cv_build in 2691case $ac_cv_build in
1877*-*-*) ;; 2692*-*-*) ;;
1878*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2693*) 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 2694esac
1882build=$ac_cv_build 2695build=$ac_cv_build
1883ac_save_IFS=$IFS; IFS='-' 2696ac_save_IFS=$IFS; IFS='-'
1884set x $ac_cv_build 2697set x $ac_cv_build
1885shift 2698shift
1891build_os=$* 2704build_os=$*
1892IFS=$ac_save_IFS 2705IFS=$ac_save_IFS
1893case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2706case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1894 2707
1895 2708
1896{ echo "$as_me:$LINENO: checking host system type" >&5 2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1897echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2710$as_echo_n "checking host system type... " >&6; }
1898if test "${ac_cv_host+set}" = set; then 2711if test "${ac_cv_host+set}" = set; then :
1899 echo $ECHO_N "(cached) $ECHO_C" >&6 2712 $as_echo_n "(cached) " >&6
1900else 2713else
1901 if test "x$host_alias" = x; then 2714 if test "x$host_alias" = x; then
1902 ac_cv_host=$ac_cv_build 2715 ac_cv_host=$ac_cv_build
1903else 2716else
1904 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2717 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 2718 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 2719fi
1909 2720
1910fi 2721fi
1911{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1912echo "${ECHO_T}$ac_cv_host" >&6; } 2723$as_echo "$ac_cv_host" >&6; }
1913case $ac_cv_host in 2724case $ac_cv_host in
1914*-*-*) ;; 2725*-*-*) ;;
1915*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2726*) 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 2727esac
1919host=$ac_cv_host 2728host=$ac_cv_host
1920ac_save_IFS=$IFS; IFS='-' 2729ac_save_IFS=$IFS; IFS='-'
1921set x $ac_cv_host 2730set x $ac_cv_host
1922shift 2731shift
1929IFS=$ac_save_IFS 2738IFS=$ac_save_IFS
1930case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2739case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1931 2740
1932 2741
1933 2742
1934VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2743VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1935DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2744DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2745
1936echo "" 2746echo ""
1937echo "configuring for rxvt $VERSION" 2747echo "configuring for rxvt $VERSION"
1938echo "" 2748echo ""
1939 2749
1940orig_CXXFLAGS="$CXXFLAGS" 2750orig_CXXFLAGS="$CXXFLAGS"
1941
1942 2751
1943ac_ext=c 2752ac_ext=c
1944ac_cpp='$CPP $CPPFLAGS' 2753ac_cpp='$CPP $CPPFLAGS'
1945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947ac_compiler_gnu=$ac_cv_c_compiler_gnu 2756ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948if test -n "$ac_tool_prefix"; then 2757if 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. 2758 # 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 2759set dummy ${ac_tool_prefix}gcc; ac_word=$2
1951{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2761$as_echo_n "checking for $ac_word... " >&6; }
1953if test "${ac_cv_prog_CC+set}" = set; then 2762if test "${ac_cv_prog_CC+set}" = set; then :
1954 echo $ECHO_N "(cached) $ECHO_C" >&6 2763 $as_echo_n "(cached) " >&6
1955else 2764else
1956 if test -n "$CC"; then 2765 if test -n "$CC"; then
1957 ac_cv_prog_CC="$CC" # Let the user override the test. 2766 ac_cv_prog_CC="$CC" # Let the user override the test.
1958else 2767else
1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH 2769for as_dir in $PATH
1961do 2770do
1962 IFS=$as_save_IFS 2771 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=. 2772 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do 2773 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 2774 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" 2775 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1968 break 2 2777 break 2
1969 fi 2778 fi
1970done 2779done
1971done 2780 done
1972IFS=$as_save_IFS 2781IFS=$as_save_IFS
1973 2782
1974fi 2783fi
1975fi 2784fi
1976CC=$ac_cv_prog_CC 2785CC=$ac_cv_prog_CC
1977if test -n "$CC"; then 2786if test -n "$CC"; then
1978 { echo "$as_me:$LINENO: result: $CC" >&5 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1979echo "${ECHO_T}$CC" >&6; } 2788$as_echo "$CC" >&6; }
1980else 2789else
1981 { echo "$as_me:$LINENO: result: no" >&5 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1982echo "${ECHO_T}no" >&6; } 2791$as_echo "no" >&6; }
1983fi 2792fi
1984 2793
1985 2794
1986fi 2795fi
1987if test -z "$ac_cv_prog_CC"; then 2796if test -z "$ac_cv_prog_CC"; then
1988 ac_ct_CC=$CC 2797 ac_ct_CC=$CC
1989 # Extract the first word of "gcc", so it can be a program name with args. 2798 # Extract the first word of "gcc", so it can be a program name with args.
1990set dummy gcc; ac_word=$2 2799set dummy gcc; ac_word=$2
1991{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2801$as_echo_n "checking for $ac_word... " >&6; }
1993if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2802if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
1994 echo $ECHO_N "(cached) $ECHO_C" >&6 2803 $as_echo_n "(cached) " >&6
1995else 2804else
1996 if test -n "$ac_ct_CC"; then 2805 if test -n "$ac_ct_CC"; then
1997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1998else 2807else
1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH 2809for as_dir in $PATH
2001do 2810do
2002 IFS=$as_save_IFS 2811 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=. 2812 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do 2813 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 2814 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" 2815 ac_cv_prog_ac_ct_CC="gcc"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2008 break 2 2817 break 2
2009 fi 2818 fi
2010done 2819done
2011done 2820 done
2012IFS=$as_save_IFS 2821IFS=$as_save_IFS
2013 2822
2014fi 2823fi
2015fi 2824fi
2016ac_ct_CC=$ac_cv_prog_ac_ct_CC 2825ac_ct_CC=$ac_cv_prog_ac_ct_CC
2017if test -n "$ac_ct_CC"; then 2826if test -n "$ac_ct_CC"; then
2018 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2019echo "${ECHO_T}$ac_ct_CC" >&6; } 2828$as_echo "$ac_ct_CC" >&6; }
2020else 2829else
2021 { echo "$as_me:$LINENO: result: no" >&5 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2022echo "${ECHO_T}no" >&6; } 2831$as_echo "no" >&6; }
2023fi 2832fi
2024 2833
2025 if test "x$ac_ct_CC" = x; then 2834 if test "x$ac_ct_CC" = x; then
2026 CC="" 2835 CC=""
2027 else 2836 else
2028 case $cross_compiling:$ac_tool_warned in 2837 case $cross_compiling:$ac_tool_warned in
2029yes:) 2838yes:)
2030{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2839{ $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 2840$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 ;; 2841ac_tool_warned=yes ;;
2037esac 2842esac
2038 CC=$ac_ct_CC 2843 CC=$ac_ct_CC
2039 fi 2844 fi
2040else 2845else
2043 2848
2044if test -z "$CC"; then 2849if test -z "$CC"; then
2045 if test -n "$ac_tool_prefix"; then 2850 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. 2851 # 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 2852set dummy ${ac_tool_prefix}cc; ac_word=$2
2048{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2854$as_echo_n "checking for $ac_word... " >&6; }
2050if test "${ac_cv_prog_CC+set}" = set; then 2855if test "${ac_cv_prog_CC+set}" = set; then :
2051 echo $ECHO_N "(cached) $ECHO_C" >&6 2856 $as_echo_n "(cached) " >&6
2052else 2857else
2053 if test -n "$CC"; then 2858 if test -n "$CC"; then
2054 ac_cv_prog_CC="$CC" # Let the user override the test. 2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2055else 2860else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH 2862for as_dir in $PATH
2058do 2863do
2059 IFS=$as_save_IFS 2864 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=. 2865 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do 2866 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 2867 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" 2868 ac_cv_prog_CC="${ac_tool_prefix}cc"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 break 2 2870 break 2
2066 fi 2871 fi
2067done 2872done
2068done 2873 done
2069IFS=$as_save_IFS 2874IFS=$as_save_IFS
2070 2875
2071fi 2876fi
2072fi 2877fi
2073CC=$ac_cv_prog_CC 2878CC=$ac_cv_prog_CC
2074if test -n "$CC"; then 2879if test -n "$CC"; then
2075 { echo "$as_me:$LINENO: result: $CC" >&5 2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2076echo "${ECHO_T}$CC" >&6; } 2881$as_echo "$CC" >&6; }
2077else 2882else
2078 { echo "$as_me:$LINENO: result: no" >&5 2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2079echo "${ECHO_T}no" >&6; } 2884$as_echo "no" >&6; }
2080fi 2885fi
2081 2886
2082 2887
2083 fi 2888 fi
2084fi 2889fi
2085if test -z "$CC"; then 2890if test -z "$CC"; then
2086 # Extract the first word of "cc", so it can be a program name with args. 2891 # Extract the first word of "cc", so it can be a program name with args.
2087set dummy cc; ac_word=$2 2892set dummy cc; ac_word=$2
2088{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2894$as_echo_n "checking for $ac_word... " >&6; }
2090if test "${ac_cv_prog_CC+set}" = set; then 2895if test "${ac_cv_prog_CC+set}" = set; then :
2091 echo $ECHO_N "(cached) $ECHO_C" >&6 2896 $as_echo_n "(cached) " >&6
2092else 2897else
2093 if test -n "$CC"; then 2898 if test -n "$CC"; then
2094 ac_cv_prog_CC="$CC" # Let the user override the test. 2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2095else 2900else
2096 ac_prog_rejected=no 2901 ac_prog_rejected=no
2097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH 2903for as_dir in $PATH
2099do 2904do
2100 IFS=$as_save_IFS 2905 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=. 2906 test -z "$as_dir" && as_dir=.
2102 for ac_exec_ext in '' $ac_executable_extensions; do 2907 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 2908 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 2909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2105 ac_prog_rejected=yes 2910 ac_prog_rejected=yes
2106 continue 2911 continue
2107 fi 2912 fi
2108 ac_cv_prog_CC="cc" 2913 ac_cv_prog_CC="cc"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 break 2 2915 break 2
2111 fi 2916 fi
2112done 2917done
2113done 2918 done
2114IFS=$as_save_IFS 2919IFS=$as_save_IFS
2115 2920
2116if test $ac_prog_rejected = yes; then 2921if test $ac_prog_rejected = yes; then
2117 # We found a bogon in the path, so make sure we never use it. 2922 # We found a bogon in the path, so make sure we never use it.
2118 set dummy $ac_cv_prog_CC 2923 set dummy $ac_cv_prog_CC
2127fi 2932fi
2128fi 2933fi
2129fi 2934fi
2130CC=$ac_cv_prog_CC 2935CC=$ac_cv_prog_CC
2131if test -n "$CC"; then 2936if test -n "$CC"; then
2132 { echo "$as_me:$LINENO: result: $CC" >&5 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2133echo "${ECHO_T}$CC" >&6; } 2938$as_echo "$CC" >&6; }
2134else 2939else
2135 { echo "$as_me:$LINENO: result: no" >&5 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2136echo "${ECHO_T}no" >&6; } 2941$as_echo "no" >&6; }
2137fi 2942fi
2138 2943
2139 2944
2140fi 2945fi
2141if test -z "$CC"; then 2946if test -z "$CC"; then
2142 if test -n "$ac_tool_prefix"; then 2947 if test -n "$ac_tool_prefix"; then
2143 for ac_prog in cl.exe 2948 for ac_prog in cl.exe
2144 do 2949 do
2145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2950 # 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 2951set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2147{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2953$as_echo_n "checking for $ac_word... " >&6; }
2149if test "${ac_cv_prog_CC+set}" = set; then 2954if test "${ac_cv_prog_CC+set}" = set; then :
2150 echo $ECHO_N "(cached) $ECHO_C" >&6 2955 $as_echo_n "(cached) " >&6
2151else 2956else
2152 if test -n "$CC"; then 2957 if test -n "$CC"; then
2153 ac_cv_prog_CC="$CC" # Let the user override the test. 2958 ac_cv_prog_CC="$CC" # Let the user override the test.
2154else 2959else
2155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156for as_dir in $PATH 2961for as_dir in $PATH
2157do 2962do
2158 IFS=$as_save_IFS 2963 IFS=$as_save_IFS
2159 test -z "$as_dir" && as_dir=. 2964 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do 2965 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 2966 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" 2967 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 break 2 2969 break 2
2165 fi 2970 fi
2166done 2971done
2167done 2972 done
2168IFS=$as_save_IFS 2973IFS=$as_save_IFS
2169 2974
2170fi 2975fi
2171fi 2976fi
2172CC=$ac_cv_prog_CC 2977CC=$ac_cv_prog_CC
2173if test -n "$CC"; then 2978if test -n "$CC"; then
2174 { echo "$as_me:$LINENO: result: $CC" >&5 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2175echo "${ECHO_T}$CC" >&6; } 2980$as_echo "$CC" >&6; }
2176else 2981else
2177 { echo "$as_me:$LINENO: result: no" >&5 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2178echo "${ECHO_T}no" >&6; } 2983$as_echo "no" >&6; }
2179fi 2984fi
2180 2985
2181 2986
2182 test -n "$CC" && break 2987 test -n "$CC" && break
2183 done 2988 done
2186 ac_ct_CC=$CC 2991 ac_ct_CC=$CC
2187 for ac_prog in cl.exe 2992 for ac_prog in cl.exe
2188do 2993do
2189 # Extract the first word of "$ac_prog", so it can be a program name with args. 2994 # Extract the first word of "$ac_prog", so it can be a program name with args.
2190set dummy $ac_prog; ac_word=$2 2995set dummy $ac_prog; ac_word=$2
2191{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2997$as_echo_n "checking for $ac_word... " >&6; }
2193if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2998if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2194 echo $ECHO_N "(cached) $ECHO_C" >&6 2999 $as_echo_n "(cached) " >&6
2195else 3000else
2196 if test -n "$ac_ct_CC"; then 3001 if test -n "$ac_ct_CC"; then
2197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2198else 3003else
2199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200for as_dir in $PATH 3005for as_dir in $PATH
2201do 3006do
2202 IFS=$as_save_IFS 3007 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=. 3008 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do 3009 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 3010 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" 3011 ac_cv_prog_ac_ct_CC="$ac_prog"
2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 break 2 3013 break 2
2209 fi 3014 fi
2210done 3015done
2211done 3016 done
2212IFS=$as_save_IFS 3017IFS=$as_save_IFS
2213 3018
2214fi 3019fi
2215fi 3020fi
2216ac_ct_CC=$ac_cv_prog_ac_ct_CC 3021ac_ct_CC=$ac_cv_prog_ac_ct_CC
2217if test -n "$ac_ct_CC"; then 3022if test -n "$ac_ct_CC"; then
2218 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2219echo "${ECHO_T}$ac_ct_CC" >&6; } 3024$as_echo "$ac_ct_CC" >&6; }
2220else 3025else
2221 { echo "$as_me:$LINENO: result: no" >&5 3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2222echo "${ECHO_T}no" >&6; } 3027$as_echo "no" >&6; }
2223fi 3028fi
2224 3029
2225 3030
2226 test -n "$ac_ct_CC" && break 3031 test -n "$ac_ct_CC" && break
2227done 3032done
2229 if test "x$ac_ct_CC" = x; then 3034 if test "x$ac_ct_CC" = x; then
2230 CC="" 3035 CC=""
2231 else 3036 else
2232 case $cross_compiling:$ac_tool_warned in 3037 case $cross_compiling:$ac_tool_warned in
2233yes:) 3038yes:)
2234{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3039{ $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 3040$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 ;; 3041ac_tool_warned=yes ;;
2241esac 3042esac
2242 CC=$ac_ct_CC 3043 CC=$ac_ct_CC
2243 fi 3044 fi
2244fi 3045fi
2245 3046
2246fi 3047fi
2247 3048
2248 3049
2249test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3050test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250See \`config.log' for more details." >&5 3051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251echo "$as_me: error: no acceptable C compiler found in \$PATH 3052as_fn_error $? "no acceptable C compiler found in \$PATH
2252See \`config.log' for more details." >&2;} 3053See \`config.log' for more details" "$LINENO" 5 ; }
2253 { (exit 1); exit 1; }; }
2254 3054
2255# Provide some information about the compiler. 3055# Provide some information about the compiler.
2256echo "$as_me:$LINENO: checking for C compiler version" >&5 3056$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2257ac_compiler=`set X $ac_compile; echo $2` 3057set X $ac_compile
3058ac_compiler=$2
3059for ac_option in --version -v -V -qversion; do
2258{ (ac_try="$ac_compiler --version >&5" 3060 { { ac_try="$ac_compiler $ac_option >&5"
2259case "(($ac_try" in 3061case "(($ac_try" in
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;; 3063 *) ac_try_echo=$ac_try;;
2262esac 3064esac
2263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2264 (eval "$ac_compiler --version >&5") 2>&5 3066$as_echo "$ac_try_echo"; } >&5
3067 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2265 ac_status=$? 3068 ac_status=$?
3069 if test -s conftest.err; then
3070 sed '10a\
3071... rest of stderr output deleted ...
3072 10q' conftest.err >conftest.er1
3073 cat conftest.er1 >&5
3074 fi
3075 rm -f conftest.er1 conftest.err
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 (exit $ac_status); } 3077 test $ac_status = 0; }
2268{ (ac_try="$ac_compiler -v >&5" 3078done
3079
3080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081/* end confdefs.h. */
3082
3083int
3084main ()
3085{
3086
3087 ;
3088 return 0;
3089}
3090_ACEOF
3091ac_clean_files_save=$ac_clean_files
3092ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3093# Try to create an executable without -o first, disregard a.out.
3094# It will help us diagnose broken compilers, and finding out an intuition
3095# of exeext.
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3097$as_echo_n "checking whether the C compiler works... " >&6; }
3098ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3099
3100# The possible output files:
3101ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3102
3103ac_rmfiles=
3104for ac_file in $ac_files
3105do
3106 case $ac_file in
3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3108 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3109 esac
3110done
3111rm -f $ac_rmfiles
3112
3113if { { ac_try="$ac_link_default"
2269case "(($ac_try" in 3114case "(($ac_try" in
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;; 3116 *) ac_try_echo=$ac_try;;
2272esac 3117esac
2273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274 (eval "$ac_compiler -v >&5") 2>&5 3119$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 3120 (eval "$ac_link_default") 2>&5
2338 ac_status=$? 3121 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2340 (exit $ac_status); }; then 3123 test $ac_status = 0; }; then :
2341 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3124 # 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' 3125# 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, 3126# 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 3127# so that the user can short-circuit this test for compilers unknown to
2345# Autoconf. 3128# Autoconf.
2346for ac_file in $ac_files '' 3129for ac_file in $ac_files ''
2347do 3130do
2348 test -f "$ac_file" || continue 3131 test -f "$ac_file" || continue
2349 case $ac_file in 3132 case $ac_file in
2350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2351 ;; 3134 ;;
2352 [ab].out ) 3135 [ab].out )
2353 # We found the default executable, but exeext='' is most 3136 # We found the default executable, but exeext='' is most
2354 # certainly right. 3137 # certainly right.
2355 break;; 3138 break;;
2356 *.* ) 3139 *.* )
2357 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3140 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2358 then :; else 3141 then :; else
2359 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3142 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2360 fi 3143 fi
2361 # We set ac_cv_exeext here because the later test for it is not 3144 # 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' 3145 # safe: cross compilers may not add the suffix if given an `-o'
2371test "$ac_cv_exeext" = no && ac_cv_exeext= 3154test "$ac_cv_exeext" = no && ac_cv_exeext=
2372 3155
2373else 3156else
2374 ac_file='' 3157 ac_file=''
2375fi 3158fi
2376
2377{ echo "$as_me:$LINENO: result: $ac_file" >&5
2378echo "${ECHO_T}$ac_file" >&6; }
2379if test -z "$ac_file"; then 3159if test -z "$ac_file"; then :
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161$as_echo "no" >&6; }
2380 echo "$as_me: failed program was:" >&5 3162$as_echo "$as_me: failed program was:" >&5
2381sed 's/^/| /' conftest.$ac_ext >&5 3163sed 's/^/| /' conftest.$ac_ext >&5
2382 3164
2383{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3165{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2384See \`config.log' for more details." >&5 3166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2385echo "$as_me: error: C compiler cannot create executables 3167as_fn_error 77 "C compiler cannot create executables
2386See \`config.log' for more details." >&2;} 3168See \`config.log' for more details" "$LINENO" 5 ; }
2387 { (exit 77); exit 77; }; } 3169else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3171$as_echo "yes" >&6; }
2388fi 3172fi
2389 3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3174$as_echo_n "checking for C compiler default output file name... " >&6; }
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3176$as_echo "$ac_file" >&6; }
2390ac_exeext=$ac_cv_exeext 3177ac_exeext=$ac_cv_exeext
2391 3178
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 3179rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2428ac_clean_files=$ac_clean_files_save 3180ac_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 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2437echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3182$as_echo_n "checking for suffix of executables... " >&6; }
2438if { (ac_try="$ac_link" 3183if { { ac_try="$ac_link"
2439case "(($ac_try" in 3184case "(($ac_try" in
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;; 3186 *) ac_try_echo=$ac_try;;
2442esac 3187esac
2443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3188eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189$as_echo "$ac_try_echo"; } >&5
2444 (eval "$ac_link") 2>&5 3190 (eval "$ac_link") 2>&5
2445 ac_status=$? 3191 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2447 (exit $ac_status); }; then 3193 test $ac_status = 0; }; then :
2448 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3194 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2449# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3195# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2450# work properly (i.e., refer to `conftest.exe'), while it won't with 3196# work properly (i.e., refer to `conftest.exe'), while it won't with
2451# `rm'. 3197# `rm'.
2452for ac_file in conftest.exe conftest conftest.*; do 3198for ac_file in conftest.exe conftest conftest.*; do
2453 test -f "$ac_file" || continue 3199 test -f "$ac_file" || continue
2454 case $ac_file in 3200 case $ac_file in
2455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2456 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3202 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2457 break;; 3203 break;;
2458 * ) break;; 3204 * ) break;;
2459 esac 3205 esac
2460done 3206done
2461else 3207else
2462 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2463See \`config.log' for more details." >&5 3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2464echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3210as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2465See \`config.log' for more details." >&2;} 3211See \`config.log' for more details" "$LINENO" 5 ; }
2466 { (exit 1); exit 1; }; }
2467fi 3212fi
2468
2469rm -f conftest$ac_cv_exeext 3213rm -f conftest conftest$ac_cv_exeext
2470{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2471echo "${ECHO_T}$ac_cv_exeext" >&6; } 3215$as_echo "$ac_cv_exeext" >&6; }
2472 3216
2473rm -f conftest.$ac_ext 3217rm -f conftest.$ac_ext
2474EXEEXT=$ac_cv_exeext 3218EXEEXT=$ac_cv_exeext
2475ac_exeext=$EXEEXT 3219ac_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 3220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485cat >>conftest.$ac_ext <<_ACEOF
2486/* end confdefs.h. */ 3221/* end confdefs.h. */
2487 3222#include <stdio.h>
2488int 3223int
2489main () 3224main ()
2490{ 3225{
3226FILE *f = fopen ("conftest.out", "w");
3227 return ferror (f) || fclose (f) != 0;
2491 3228
2492 ; 3229 ;
2493 return 0; 3230 return 0;
2494} 3231}
2495_ACEOF 3232_ACEOF
2496rm -f conftest.o conftest.obj 3233ac_clean_files="$ac_clean_files conftest.out"
2497if { (ac_try="$ac_compile" 3234# Check that the compiler produces executables we can run. If not, either
3235# the compiler is broken, or we cross compile.
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3237$as_echo_n "checking whether we are cross compiling... " >&6; }
3238if test "$cross_compiling" != yes; then
3239 { { ac_try="$ac_link"
2498case "(($ac_try" in 3240case "(($ac_try" in
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;; 3242 *) ac_try_echo=$ac_try;;
2501esac 3243esac
2502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245$as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_link") 2>&5
3247 ac_status=$?
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }
3250 if { ac_try='./conftest$ac_cv_exeext'
3251 { { case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
3255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256$as_echo "$ac_try_echo"; } >&5
3257 (eval "$ac_try") 2>&5
3258 ac_status=$?
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }; }; then
3261 cross_compiling=no
3262 else
3263 if test "$cross_compiling" = maybe; then
3264 cross_compiling=yes
3265 else
3266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268as_fn_error $? "cannot run C compiled programs.
3269If you meant to cross compile, use \`--host'.
3270See \`config.log' for more details" "$LINENO" 5 ; }
3271 fi
3272 fi
3273fi
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3275$as_echo "$cross_compiling" >&6; }
3276
3277rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3278ac_clean_files=$ac_clean_files_save
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3280$as_echo_n "checking for suffix of object files... " >&6; }
3281if test "${ac_cv_objext+set}" = set; then :
3282 $as_echo_n "(cached) " >&6
3283else
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285/* end confdefs.h. */
3286
3287int
3288main ()
3289{
3290
3291 ;
3292 return 0;
3293}
3294_ACEOF
3295rm -f conftest.o conftest.obj
3296if { { ac_try="$ac_compile"
3297case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300esac
3301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302$as_echo "$ac_try_echo"; } >&5
2503 (eval "$ac_compile") 2>&5 3303 (eval "$ac_compile") 2>&5
2504 ac_status=$? 3304 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506 (exit $ac_status); }; then 3306 test $ac_status = 0; }; then :
2507 for ac_file in conftest.o conftest.obj conftest.*; do 3307 for ac_file in conftest.o conftest.obj conftest.*; do
2508 test -f "$ac_file" || continue; 3308 test -f "$ac_file" || continue;
2509 case $ac_file in 3309 case $ac_file in
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3311 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2512 break;; 3312 break;;
2513 esac 3313 esac
2514done 3314done
2515else 3315else
2516 echo "$as_me: failed program was:" >&5 3316 $as_echo "$as_me: failed program was:" >&5
2517sed 's/^/| /' conftest.$ac_ext >&5 3317sed 's/^/| /' conftest.$ac_ext >&5
2518 3318
2519{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3319{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2520See \`config.log' for more details." >&5 3320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521echo "$as_me: error: cannot compute suffix of object files: cannot compile 3321as_fn_error $? "cannot compute suffix of object files: cannot compile
2522See \`config.log' for more details." >&2;} 3322See \`config.log' for more details" "$LINENO" 5 ; }
2523 { (exit 1); exit 1; }; }
2524fi 3323fi
2525
2526rm -f conftest.$ac_cv_objext conftest.$ac_ext 3324rm -f conftest.$ac_cv_objext conftest.$ac_ext
2527fi 3325fi
2528{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2529echo "${ECHO_T}$ac_cv_objext" >&6; } 3327$as_echo "$ac_cv_objext" >&6; }
2530OBJEXT=$ac_cv_objext 3328OBJEXT=$ac_cv_objext
2531ac_objext=$OBJEXT 3329ac_objext=$OBJEXT
2532{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3330{ $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; } 3331$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2534if test "${ac_cv_c_compiler_gnu+set}" = set; then 3332if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2535 echo $ECHO_N "(cached) $ECHO_C" >&6 3333 $as_echo_n "(cached) " >&6
2536else 3334else
2537 cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h. */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext 3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
2542/* end confdefs.h. */ 3336/* end confdefs.h. */
2543 3337
2544int 3338int
2545main () 3339main ()
2546{ 3340{
2550 3344
2551 ; 3345 ;
2552 return 0; 3346 return 0;
2553} 3347}
2554_ACEOF 3348_ACEOF
2555rm -f conftest.$ac_objext 3349if 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 3350 ac_compiler_gnu=yes
2573else 3351else
2574 echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577 ac_compiler_gnu=no 3352 ac_compiler_gnu=no
2578fi 3353fi
2579
2580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581ac_cv_c_compiler_gnu=$ac_compiler_gnu 3355ac_cv_c_compiler_gnu=$ac_compiler_gnu
2582 3356
2583fi 3357fi
2584{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2585echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3359$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2586GCC=`test $ac_compiler_gnu = yes && echo yes` 3360if test $ac_compiler_gnu = yes; then
3361 GCC=yes
3362else
3363 GCC=
3364fi
2587ac_test_CFLAGS=${CFLAGS+set} 3365ac_test_CFLAGS=${CFLAGS+set}
2588ac_save_CFLAGS=$CFLAGS 3366ac_save_CFLAGS=$CFLAGS
2589{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2590echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3368$as_echo_n "checking whether $CC accepts -g... " >&6; }
2591if test "${ac_cv_prog_cc_g+set}" = set; then 3369if test "${ac_cv_prog_cc_g+set}" = set; then :
2592 echo $ECHO_N "(cached) $ECHO_C" >&6 3370 $as_echo_n "(cached) " >&6
2593else 3371else
2594 ac_save_c_werror_flag=$ac_c_werror_flag 3372 ac_save_c_werror_flag=$ac_c_werror_flag
2595 ac_c_werror_flag=yes 3373 ac_c_werror_flag=yes
2596 ac_cv_prog_cc_g=no 3374 ac_cv_prog_cc_g=no
2597 CFLAGS="-g" 3375 CFLAGS="-g"
2598 cat >conftest.$ac_ext <<_ACEOF
2599/* confdefs.h. */
2600_ACEOF
2601cat confdefs.h >>conftest.$ac_ext 3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602cat >>conftest.$ac_ext <<_ACEOF
2603/* end confdefs.h. */ 3377/* end confdefs.h. */
2604 3378
2605int 3379int
2606main () 3380main ()
2607{ 3381{
2608 3382
2609 ; 3383 ;
2610 return 0; 3384 return 0;
2611} 3385}
2612_ACEOF 3386_ACEOF
2613rm -f conftest.$ac_objext 3387if 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 3388 ac_cv_prog_cc_g=yes
2631else 3389else
2632 echo "$as_me: failed program was:" >&5
2633sed 's/^/| /' conftest.$ac_ext >&5
2634
2635 CFLAGS="" 3390 CFLAGS=""
2636 cat >conftest.$ac_ext <<_ACEOF
2637/* confdefs.h. */
2638_ACEOF
2639cat confdefs.h >>conftest.$ac_ext 3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640cat >>conftest.$ac_ext <<_ACEOF
2641/* end confdefs.h. */ 3392/* end confdefs.h. */
2642 3393
2643int 3394int
2644main () 3395main ()
2645{ 3396{
2646 3397
2647 ; 3398 ;
2648 return 0; 3399 return 0;
2649} 3400}
2650_ACEOF 3401_ACEOF
2651rm -f conftest.$ac_objext 3402if 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 3403
3404else
2673 ac_c_werror_flag=$ac_save_c_werror_flag 3405 ac_c_werror_flag=$ac_save_c_werror_flag
2674 CFLAGS="-g" 3406 CFLAGS="-g"
2675 cat >conftest.$ac_ext <<_ACEOF
2676/* confdefs.h. */
2677_ACEOF
2678cat confdefs.h >>conftest.$ac_ext 3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679cat >>conftest.$ac_ext <<_ACEOF
2680/* end confdefs.h. */ 3408/* end confdefs.h. */
2681 3409
2682int 3410int
2683main () 3411main ()
2684{ 3412{
2685 3413
2686 ; 3414 ;
2687 return 0; 3415 return 0;
2688} 3416}
2689_ACEOF 3417_ACEOF
2690rm -f conftest.$ac_objext 3418if 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 3419 ac_cv_prog_cc_g=yes
2708else
2709 echo "$as_me: failed program was:" >&5
2710sed 's/^/| /' conftest.$ac_ext >&5
2711
2712
2713fi 3420fi
2714
2715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716fi 3422fi
2717
2718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719fi 3424fi
2720
2721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 ac_c_werror_flag=$ac_save_c_werror_flag 3426 ac_c_werror_flag=$ac_save_c_werror_flag
2723fi 3427fi
2724{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2725echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3429$as_echo "$ac_cv_prog_cc_g" >&6; }
2726if test "$ac_test_CFLAGS" = set; then 3430if test "$ac_test_CFLAGS" = set; then
2727 CFLAGS=$ac_save_CFLAGS 3431 CFLAGS=$ac_save_CFLAGS
2728elif test $ac_cv_prog_cc_g = yes; then 3432elif test $ac_cv_prog_cc_g = yes; then
2729 if test "$GCC" = yes; then 3433 if test "$GCC" = yes; then
2730 CFLAGS="-g -O2" 3434 CFLAGS="-g -O2"
2736 CFLAGS="-O2" 3440 CFLAGS="-O2"
2737 else 3441 else
2738 CFLAGS= 3442 CFLAGS=
2739 fi 3443 fi
2740fi 3444fi
2741{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3445{ $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; } 3446$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2743if test "${ac_cv_prog_cc_c89+set}" = set; then 3447if test "${ac_cv_prog_cc_c89+set}" = set; then :
2744 echo $ECHO_N "(cached) $ECHO_C" >&6 3448 $as_echo_n "(cached) " >&6
2745else 3449else
2746 ac_cv_prog_cc_c89=no 3450 ac_cv_prog_cc_c89=no
2747ac_save_CC=$CC 3451ac_save_CC=$CC
2748cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h. */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext 3452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h. */ 3453/* end confdefs.h. */
2754#include <stdarg.h> 3454#include <stdarg.h>
2755#include <stdio.h> 3455#include <stdio.h>
2756#include <sys/types.h> 3456#include <sys/types.h>
2757#include <sys/stat.h> 3457#include <sys/stat.h>
2804_ACEOF 3504_ACEOF
2805for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3505for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3506 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2807do 3507do
2808 CC="$ac_save_CC $ac_arg" 3508 CC="$ac_save_CC $ac_arg"
2809 rm -f conftest.$ac_objext 3509 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 3510 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 3511fi
2833
2834rm -f core conftest.err conftest.$ac_objext 3512rm -f core conftest.err conftest.$ac_objext
2835 test "x$ac_cv_prog_cc_c89" != "xno" && break 3513 test "x$ac_cv_prog_cc_c89" != "xno" && break
2836done 3514done
2837rm -f conftest.$ac_ext 3515rm -f conftest.$ac_ext
2838CC=$ac_save_CC 3516CC=$ac_save_CC
2839 3517
2840fi 3518fi
2841# AC_CACHE_VAL 3519# AC_CACHE_VAL
2842case "x$ac_cv_prog_cc_c89" in 3520case "x$ac_cv_prog_cc_c89" in
2843 x) 3521 x)
2844 { echo "$as_me:$LINENO: result: none needed" >&5 3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2845echo "${ECHO_T}none needed" >&6; } ;; 3523$as_echo "none needed" >&6; } ;;
2846 xno) 3524 xno)
2847 { echo "$as_me:$LINENO: result: unsupported" >&5 3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2848echo "${ECHO_T}unsupported" >&6; } ;; 3526$as_echo "unsupported" >&6; } ;;
2849 *) 3527 *)
2850 CC="$CC $ac_cv_prog_cc_c89" 3528 CC="$CC $ac_cv_prog_cc_c89"
2851 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2852echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3530$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2853esac 3531esac
3532if test "x$ac_cv_prog_cc_c89" != xno; then :
2854 3533
3534fi
2855 3535
2856ac_ext=c 3536ac_ext=c
2857ac_cpp='$CPP $CPPFLAGS' 3537ac_cpp='$CPP $CPPFLAGS'
2858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 if test -n "$ac_tool_prefix"; then 3551 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 3552 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2873 do 3553 do
2874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3554 # 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 3555set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2876{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3557$as_echo_n "checking for $ac_word... " >&6; }
2878if test "${ac_cv_prog_CXX+set}" = set; then 3558if test "${ac_cv_prog_CXX+set}" = set; then :
2879 echo $ECHO_N "(cached) $ECHO_C" >&6 3559 $as_echo_n "(cached) " >&6
2880else 3560else
2881 if test -n "$CXX"; then 3561 if test -n "$CXX"; then
2882 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3562 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2883else 3563else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH 3565for as_dir in $PATH
2886do 3566do
2887 IFS=$as_save_IFS 3567 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=. 3568 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do 3569 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 3570 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" 3571 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2 3573 break 2
2894 fi 3574 fi
2895done 3575done
2896done 3576 done
2897IFS=$as_save_IFS 3577IFS=$as_save_IFS
2898 3578
2899fi 3579fi
2900fi 3580fi
2901CXX=$ac_cv_prog_CXX 3581CXX=$ac_cv_prog_CXX
2902if test -n "$CXX"; then 3582if test -n "$CXX"; then
2903 { echo "$as_me:$LINENO: result: $CXX" >&5 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2904echo "${ECHO_T}$CXX" >&6; } 3584$as_echo "$CXX" >&6; }
2905else 3585else
2906 { echo "$as_me:$LINENO: result: no" >&5 3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907echo "${ECHO_T}no" >&6; } 3587$as_echo "no" >&6; }
2908fi 3588fi
2909 3589
2910 3590
2911 test -n "$CXX" && break 3591 test -n "$CXX" && break
2912 done 3592 done
2915 ac_ct_CXX=$CXX 3595 ac_ct_CXX=$CXX
2916 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3596 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2917do 3597do
2918 # Extract the first word of "$ac_prog", so it can be a program name with args. 3598 # Extract the first word of "$ac_prog", so it can be a program name with args.
2919set dummy $ac_prog; ac_word=$2 3599set dummy $ac_prog; ac_word=$2
2920{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3601$as_echo_n "checking for $ac_word... " >&6; }
2922if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3602if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2923 echo $ECHO_N "(cached) $ECHO_C" >&6 3603 $as_echo_n "(cached) " >&6
2924else 3604else
2925 if test -n "$ac_ct_CXX"; then 3605 if test -n "$ac_ct_CXX"; then
2926 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3606 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2927else 3607else
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH 3609for as_dir in $PATH
2930do 3610do
2931 IFS=$as_save_IFS 3611 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=. 3612 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do 3613 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 3614 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" 3615 ac_cv_prog_ac_ct_CXX="$ac_prog"
2936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2 3617 break 2
2938 fi 3618 fi
2939done 3619done
2940done 3620 done
2941IFS=$as_save_IFS 3621IFS=$as_save_IFS
2942 3622
2943fi 3623fi
2944fi 3624fi
2945ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3625ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2946if test -n "$ac_ct_CXX"; then 3626if test -n "$ac_ct_CXX"; then
2947 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2948echo "${ECHO_T}$ac_ct_CXX" >&6; } 3628$as_echo "$ac_ct_CXX" >&6; }
2949else 3629else
2950 { echo "$as_me:$LINENO: result: no" >&5 3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951echo "${ECHO_T}no" >&6; } 3631$as_echo "no" >&6; }
2952fi 3632fi
2953 3633
2954 3634
2955 test -n "$ac_ct_CXX" && break 3635 test -n "$ac_ct_CXX" && break
2956done 3636done
2958 if test "x$ac_ct_CXX" = x; then 3638 if test "x$ac_ct_CXX" = x; then
2959 CXX="g++" 3639 CXX="g++"
2960 else 3640 else
2961 case $cross_compiling:$ac_tool_warned in 3641 case $cross_compiling:$ac_tool_warned in
2962yes:) 3642yes:)
2963{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3643{ $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 3644$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 ;; 3645ac_tool_warned=yes ;;
2970esac 3646esac
2971 CXX=$ac_ct_CXX 3647 CXX=$ac_ct_CXX
2972 fi 3648 fi
2973fi 3649fi
2974 3650
2975 fi 3651 fi
2976fi 3652fi
2977# Provide some information about the compiler. 3653# Provide some information about the compiler.
2978echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3654$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2979ac_compiler=`set X $ac_compile; echo $2` 3655set X $ac_compile
3656ac_compiler=$2
3657for ac_option in --version -v -V -qversion; do
2980{ (ac_try="$ac_compiler --version >&5" 3658 { { ac_try="$ac_compiler $ac_option >&5"
2981case "(($ac_try" in 3659case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;; 3661 *) ac_try_echo=$ac_try;;
2984esac 3662esac
2985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2986 (eval "$ac_compiler --version >&5") 2>&5 3664$as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2987 ac_status=$? 3666 ac_status=$?
3667 if test -s conftest.err; then
3668 sed '10a\
3669... rest of stderr output deleted ...
3670 10q' conftest.err >conftest.er1
3671 cat conftest.er1 >&5
3672 fi
3673 rm -f conftest.er1 conftest.err
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989 (exit $ac_status); } 3675 test $ac_status = 0; }
2990{ (ac_try="$ac_compiler -v >&5" 3676done
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 3677
3011{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3678{ $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; } 3679$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3013if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3680if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3014 echo $ECHO_N "(cached) $ECHO_C" >&6 3681 $as_echo_n "(cached) " >&6
3015else 3682else
3016 cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h. */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext 3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h. */ 3684/* end confdefs.h. */
3022 3685
3023int 3686int
3024main () 3687main ()
3025{ 3688{
3029 3692
3030 ; 3693 ;
3031 return 0; 3694 return 0;
3032} 3695}
3033_ACEOF 3696_ACEOF
3034rm -f conftest.$ac_objext 3697if 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 3698 ac_compiler_gnu=yes
3052else 3699else
3053 echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 ac_compiler_gnu=no 3700 ac_compiler_gnu=no
3057fi 3701fi
3058
3059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3703ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3061 3704
3062fi 3705fi
3063{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3064echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3707$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3065GXX=`test $ac_compiler_gnu = yes && echo yes` 3708if test $ac_compiler_gnu = yes; then
3709 GXX=yes
3710else
3711 GXX=
3712fi
3066ac_test_CXXFLAGS=${CXXFLAGS+set} 3713ac_test_CXXFLAGS=${CXXFLAGS+set}
3067ac_save_CXXFLAGS=$CXXFLAGS 3714ac_save_CXXFLAGS=$CXXFLAGS
3068{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3069echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3716$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3070if test "${ac_cv_prog_cxx_g+set}" = set; then 3717if test "${ac_cv_prog_cxx_g+set}" = set; then :
3071 echo $ECHO_N "(cached) $ECHO_C" >&6 3718 $as_echo_n "(cached) " >&6
3072else 3719else
3073 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3720 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3074 ac_cxx_werror_flag=yes 3721 ac_cxx_werror_flag=yes
3075 ac_cv_prog_cxx_g=no 3722 ac_cv_prog_cxx_g=no
3076 CXXFLAGS="-g" 3723 CXXFLAGS="-g"
3077 cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h. */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext 3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h. */ 3725/* end confdefs.h. */
3083 3726
3084int 3727int
3085main () 3728main ()
3086{ 3729{
3087 3730
3088 ; 3731 ;
3089 return 0; 3732 return 0;
3090} 3733}
3091_ACEOF 3734_ACEOF
3092rm -f conftest.$ac_objext 3735if 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 3736 ac_cv_prog_cxx_g=yes
3110else 3737else
3111 echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 CXXFLAGS="" 3738 CXXFLAGS=""
3115 cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h. */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext 3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h. */ 3740/* end confdefs.h. */
3121 3741
3122int 3742int
3123main () 3743main ()
3124{ 3744{
3125 3745
3126 ; 3746 ;
3127 return 0; 3747 return 0;
3128} 3748}
3129_ACEOF 3749_ACEOF
3130rm -f conftest.$ac_objext 3750if 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 3751
3752else
3152 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3753 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3153 CXXFLAGS="-g" 3754 CXXFLAGS="-g"
3154 cat >conftest.$ac_ext <<_ACEOF
3155/* confdefs.h. */
3156_ACEOF
3157cat confdefs.h >>conftest.$ac_ext 3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158cat >>conftest.$ac_ext <<_ACEOF
3159/* end confdefs.h. */ 3756/* end confdefs.h. */
3160 3757
3161int 3758int
3162main () 3759main ()
3163{ 3760{
3164 3761
3165 ; 3762 ;
3166 return 0; 3763 return 0;
3167} 3764}
3168_ACEOF 3765_ACEOF
3169rm -f conftest.$ac_objext 3766if 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 3767 ac_cv_prog_cxx_g=yes
3187else
3188 echo "$as_me: failed program was:" >&5
3189sed 's/^/| /' conftest.$ac_ext >&5
3190
3191
3192fi 3768fi
3193
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195fi 3770fi
3196
3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198fi 3772fi
3199
3200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3774 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3202fi 3775fi
3203{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3204echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3777$as_echo "$ac_cv_prog_cxx_g" >&6; }
3205if test "$ac_test_CXXFLAGS" = set; then 3778if test "$ac_test_CXXFLAGS" = set; then
3206 CXXFLAGS=$ac_save_CXXFLAGS 3779 CXXFLAGS=$ac_save_CXXFLAGS
3207elif test $ac_cv_prog_cxx_g = yes; then 3780elif test $ac_cv_prog_cxx_g = yes; then
3208 if test "$GXX" = yes; then 3781 if test "$GXX" = yes; then
3209 CXXFLAGS="-g -O2" 3782 CXXFLAGS="-g -O2"
3226ac_ext=c 3799ac_ext=c
3227ac_cpp='$CPP $CPPFLAGS' 3800ac_cpp='$CPP $CPPFLAGS'
3228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230ac_compiler_gnu=$ac_cv_c_compiler_gnu 3803ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3804{ $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; } 3805$as_echo_n "checking how to run the C preprocessor... " >&6; }
3233# On Suns, sometimes $CPP names a directory. 3806# On Suns, sometimes $CPP names a directory.
3234if test -n "$CPP" && test -d "$CPP"; then 3807if test -n "$CPP" && test -d "$CPP"; then
3235 CPP= 3808 CPP=
3236fi 3809fi
3237if test -z "$CPP"; then 3810if test -z "$CPP"; then
3238 if test "${ac_cv_prog_CPP+set}" = set; then 3811 if test "${ac_cv_prog_CPP+set}" = set; then :
3239 echo $ECHO_N "(cached) $ECHO_C" >&6 3812 $as_echo_n "(cached) " >&6
3240else 3813else
3241 # Double quotes because CPP needs to be expanded 3814 # Double quotes because CPP needs to be expanded
3242 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3815 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3243 do 3816 do
3244 ac_preproc_ok=false 3817 ac_preproc_ok=false
3248 # with a fresh cross-compiler works. 3821 # with a fresh cross-compiler works.
3249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3250 # <limits.h> exists even on freestanding compilers. 3823 # <limits.h> exists even on freestanding compilers.
3251 # On the NeXT, cc -E runs the code through the compiler's parser, 3824 # 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. 3825 # 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 3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
3258/* end confdefs.h. */ 3827/* end confdefs.h. */
3259#ifdef __STDC__ 3828#ifdef __STDC__
3260# include <limits.h> 3829# include <limits.h>
3261#else 3830#else
3262# include <assert.h> 3831# include <assert.h>
3263#endif 3832#endif
3264 Syntax error 3833 Syntax error
3265_ACEOF 3834_ACEOF
3266if { (ac_try="$ac_cpp conftest.$ac_ext" 3835if 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 3836
3837else
3287 # Broken: fails on valid input. 3838 # Broken: fails on valid input.
3288continue 3839continue
3289fi 3840fi
3290
3291rm -f conftest.err conftest.$ac_ext 3841rm -f conftest.err conftest.i conftest.$ac_ext
3292 3842
3293 # OK, works on sane cases. Now check whether nonexistent headers 3843 # OK, works on sane cases. Now check whether nonexistent headers
3294 # can be detected and how. 3844 # can be detected and how.
3295 cat >conftest.$ac_ext <<_ACEOF
3296/* confdefs.h. */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext 3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
3300/* end confdefs.h. */ 3846/* end confdefs.h. */
3301#include <ac_nonexistent.h> 3847#include <ac_nonexistent.h>
3302_ACEOF 3848_ACEOF
3303if { (ac_try="$ac_cpp conftest.$ac_ext" 3849if 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. 3850 # Broken: success on invalid input.
3320continue 3851continue
3321else 3852else
3322 echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
3325 # Passes both tests. 3853 # Passes both tests.
3326ac_preproc_ok=: 3854ac_preproc_ok=:
3327break 3855break
3328fi 3856fi
3329
3330rm -f conftest.err conftest.$ac_ext 3857rm -f conftest.err conftest.i conftest.$ac_ext
3331 3858
3332done 3859done
3333# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3860# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334rm -f conftest.err conftest.$ac_ext 3861rm -f conftest.i conftest.err conftest.$ac_ext
3335if $ac_preproc_ok; then 3862if $ac_preproc_ok; then :
3336 break 3863 break
3337fi 3864fi
3338 3865
3339 done 3866 done
3340 ac_cv_prog_CPP=$CPP 3867 ac_cv_prog_CPP=$CPP
3342fi 3869fi
3343 CPP=$ac_cv_prog_CPP 3870 CPP=$ac_cv_prog_CPP
3344else 3871else
3345 ac_cv_prog_CPP=$CPP 3872 ac_cv_prog_CPP=$CPP
3346fi 3873fi
3347{ echo "$as_me:$LINENO: result: $CPP" >&5 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3348echo "${ECHO_T}$CPP" >&6; } 3875$as_echo "$CPP" >&6; }
3349ac_preproc_ok=false 3876ac_preproc_ok=false
3350for ac_c_preproc_warn_flag in '' yes 3877for ac_c_preproc_warn_flag in '' yes
3351do 3878do
3352 # Use a header file that comes with gcc, so configuring glibc 3879 # Use a header file that comes with gcc, so configuring glibc
3353 # with a fresh cross-compiler works. 3880 # with a fresh cross-compiler works.
3354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355 # <limits.h> exists even on freestanding compilers. 3882 # <limits.h> exists even on freestanding compilers.
3356 # On the NeXT, cc -E runs the code through the compiler's parser, 3883 # 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. 3884 # 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 3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h. */ 3886/* end confdefs.h. */
3364#ifdef __STDC__ 3887#ifdef __STDC__
3365# include <limits.h> 3888# include <limits.h>
3366#else 3889#else
3367# include <assert.h> 3890# include <assert.h>
3368#endif 3891#endif
3369 Syntax error 3892 Syntax error
3370_ACEOF 3893_ACEOF
3371if { (ac_try="$ac_cpp conftest.$ac_ext" 3894if 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 3895
3896else
3392 # Broken: fails on valid input. 3897 # Broken: fails on valid input.
3393continue 3898continue
3394fi 3899fi
3395
3396rm -f conftest.err conftest.$ac_ext 3900rm -f conftest.err conftest.i conftest.$ac_ext
3397 3901
3398 # OK, works on sane cases. Now check whether nonexistent headers 3902 # OK, works on sane cases. Now check whether nonexistent headers
3399 # can be detected and how. 3903 # can be detected and how.
3400 cat >conftest.$ac_ext <<_ACEOF
3401/* confdefs.h. */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext 3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
3405/* end confdefs.h. */ 3905/* end confdefs.h. */
3406#include <ac_nonexistent.h> 3906#include <ac_nonexistent.h>
3407_ACEOF 3907_ACEOF
3408if { (ac_try="$ac_cpp conftest.$ac_ext" 3908if 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. 3909 # Broken: success on invalid input.
3425continue 3910continue
3426else 3911else
3427 echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 # Passes both tests. 3912 # Passes both tests.
3431ac_preproc_ok=: 3913ac_preproc_ok=:
3432break 3914break
3433fi 3915fi
3434
3435rm -f conftest.err conftest.$ac_ext 3916rm -f conftest.err conftest.i conftest.$ac_ext
3436 3917
3437done 3918done
3438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3919# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439rm -f conftest.err conftest.$ac_ext 3920rm -f conftest.i conftest.err conftest.$ac_ext
3440if $ac_preproc_ok; then 3921if $ac_preproc_ok; then :
3441 : 3922
3442else 3923else
3443 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444See \`config.log' for more details." >&5 3925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3926as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3446See \`config.log' for more details." >&2;} 3927See \`config.log' for more details" "$LINENO" 5 ; }
3447 { (exit 1); exit 1; }; }
3448fi 3928fi
3449 3929
3450ac_ext=c 3930ac_ext=c
3451ac_cpp='$CPP $CPPFLAGS' 3931ac_cpp='$CPP $CPPFLAGS'
3452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3944# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3465# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3945# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3466# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3946# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3467# OS/2's system install, which has a completely different semantic 3947# OS/2's system install, which has a completely different semantic
3468# ./install, which can be erroneously created by make from ./install.sh. 3948# ./install, which can be erroneously created by make from ./install.sh.
3949# Reject install programs that cannot install multiple files.
3469{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3950{ $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; } 3951$as_echo_n "checking for a BSD-compatible install... " >&6; }
3471if test -z "$INSTALL"; then 3952if test -z "$INSTALL"; then
3472if test "${ac_cv_path_install+set}" = set; then 3953if test "${ac_cv_path_install+set}" = set; then :
3473 echo $ECHO_N "(cached) $ECHO_C" >&6 3954 $as_echo_n "(cached) " >&6
3474else 3955else
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476for as_dir in $PATH 3957for as_dir in $PATH
3477do 3958do
3478 IFS=$as_save_IFS 3959 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=. 3960 test -z "$as_dir" && as_dir=.
3480 # Account for people who put trailing slashes in PATH elements. 3961 # Account for people who put trailing slashes in PATH elements.
3481case $as_dir/ in 3962case $as_dir/ in #((
3482 ./ | .// | /cC/* | \ 3963 ./ | .// | /[cC]/* | \
3483 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3964 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3484 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3965 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3485 /usr/ucb/* ) ;; 3966 /usr/ucb/* ) ;;
3486 *) 3967 *)
3487 # OSF1 and SCO ODT 3.0 have their own names for install. 3968 # 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 3969 # Don't use installbsd from OSF since it installs stuff as root
3489 # by default. 3970 # by default.
3497 elif test $ac_prog = install && 3978 elif test $ac_prog = install &&
3498 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3979 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. 3980 # program-specific install script used by HP pwplus--don't use.
3500 : 3981 :
3501 else 3982 else
3983 rm -rf conftest.one conftest.two conftest.dir
3984 echo one > conftest.one
3985 echo two > conftest.two
3986 mkdir conftest.dir
3987 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3988 test -s conftest.one && test -s conftest.two &&
3989 test -s conftest.dir/conftest.one &&
3990 test -s conftest.dir/conftest.two
3991 then
3502 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3992 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3503 break 3 3993 break 3
3994 fi
3504 fi 3995 fi
3505 fi 3996 fi
3506 done 3997 done
3507 done 3998 done
3508 ;; 3999 ;;
3509esac 4000esac
4001
3510done 4002 done
3511IFS=$as_save_IFS 4003IFS=$as_save_IFS
3512 4004
4005rm -rf conftest.one conftest.two conftest.dir
3513 4006
3514fi 4007fi
3515 if test "${ac_cv_path_install+set}" = set; then 4008 if test "${ac_cv_path_install+set}" = set; then
3516 INSTALL=$ac_cv_path_install 4009 INSTALL=$ac_cv_path_install
3517 else 4010 else
3520 # break other packages using the cache if that directory is 4013 # break other packages using the cache if that directory is
3521 # removed, or if the value is a relative name. 4014 # removed, or if the value is a relative name.
3522 INSTALL=$ac_install_sh 4015 INSTALL=$ac_install_sh
3523 fi 4016 fi
3524fi 4017fi
3525{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3526echo "${ECHO_T}$INSTALL" >&6; } 4019$as_echo "$INSTALL" >&6; }
3527 4020
3528# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4021# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3529# It thinks the first close brace ends the variable substitution. 4022# It thinks the first close brace ends the variable substitution.
3530test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4023test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3531 4024
3534test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4027test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3535 4028
3536 4029
3537 4030
3538 4031
3539{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4032{ $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; } 4033$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3541if test "${ac_cv_path_GREP+set}" = set; then 4034if test "${ac_cv_path_GREP+set}" = set; then :
3542 echo $ECHO_N "(cached) $ECHO_C" >&6 4035 $as_echo_n "(cached) " >&6
3543else 4036else
3544 # Extract the first word of "grep ggrep" to use in msg output
3545if test -z "$GREP"; then 4037 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 4038 ac_path_GREP_found=false
3551# Loop through the user's path and test for each of PROGNAME-LIST 4039 # Loop through the user's path and test for each of PROGNAME-LIST
3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4041for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3554do 4042do
3555 IFS=$as_save_IFS 4043 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=. 4044 test -z "$as_dir" && as_dir=.
3557 for ac_prog in grep ggrep; do 4045 for ac_prog in grep ggrep; do
3558 for ac_exec_ext in '' $ac_executable_extensions; do 4046 for ac_exec_ext in '' $ac_executable_extensions; do
3559 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4047 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3560 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4048 { 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. 4049# Check for GNU ac_path_GREP and select it if it is found.
3562 # Check for GNU $ac_path_GREP 4050 # Check for GNU $ac_path_GREP
3563case `"$ac_path_GREP" --version 2>&1` in 4051case `"$ac_path_GREP" --version 2>&1` in
3564*GNU*) 4052*GNU*)
3565 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4053 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3566*) 4054*)
3567 ac_count=0 4055 ac_count=0
3568 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4056 $as_echo_n 0123456789 >"conftest.in"
3569 while : 4057 while :
3570 do 4058 do
3571 cat "conftest.in" "conftest.in" >"conftest.tmp" 4059 cat "conftest.in" "conftest.in" >"conftest.tmp"
3572 mv "conftest.tmp" "conftest.in" 4060 mv "conftest.tmp" "conftest.in"
3573 cp "conftest.in" "conftest.nl" 4061 cp "conftest.in" "conftest.nl"
3574 echo 'GREP' >> "conftest.nl" 4062 $as_echo 'GREP' >> "conftest.nl"
3575 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4063 "$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 4064 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3577 ac_count=`expr $ac_count + 1` 4065 as_fn_arith $ac_count + 1 && ac_count=$as_val
3578 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4066 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 4067 # Best one so far, save it but keep looking for a better one
3580 ac_cv_path_GREP="$ac_path_GREP" 4068 ac_cv_path_GREP="$ac_path_GREP"
3581 ac_path_GREP_max=$ac_count 4069 ac_path_GREP_max=$ac_count
3582 fi 4070 fi
3584 test $ac_count -gt 10 && break 4072 test $ac_count -gt 10 && break
3585 done 4073 done
3586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4074 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3587esac 4075esac
3588 4076
3589
3590 $ac_path_GREP_found && break 3 4077 $ac_path_GREP_found && break 3
4078 done
3591 done 4079 done
3592done 4080 done
3593
3594done
3595IFS=$as_save_IFS 4081IFS=$as_save_IFS
3596
3597
3598fi
3599
3600GREP="$ac_cv_path_GREP"
3601if test -z "$GREP"; then 4082 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 4083 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;} 4084 fi
3604 { (exit 1); exit 1; }; }
3605fi
3606
3607else 4085else
3608 ac_cv_path_GREP=$GREP 4086 ac_cv_path_GREP=$GREP
3609fi 4087fi
3610 4088
3611
3612fi 4089fi
3613{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3614echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4091$as_echo "$ac_cv_path_GREP" >&6; }
3615 GREP="$ac_cv_path_GREP" 4092 GREP="$ac_cv_path_GREP"
3616 4093
3617 4094
3618{ echo "$as_me:$LINENO: checking for egrep" >&5 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3619echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4096$as_echo_n "checking for egrep... " >&6; }
3620if test "${ac_cv_path_EGREP+set}" = set; then 4097if test "${ac_cv_path_EGREP+set}" = set; then :
3621 echo $ECHO_N "(cached) $ECHO_C" >&6 4098 $as_echo_n "(cached) " >&6
3622else 4099else
3623 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4100 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3624 then ac_cv_path_EGREP="$GREP -E" 4101 then ac_cv_path_EGREP="$GREP -E"
3625 else 4102 else
3626 # Extract the first word of "egrep" to use in msg output
3627if test -z "$EGREP"; then 4103 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 4104 ac_path_EGREP_found=false
3633# Loop through the user's path and test for each of PROGNAME-LIST 4105 # Loop through the user's path and test for each of PROGNAME-LIST
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4107for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3636do 4108do
3637 IFS=$as_save_IFS 4109 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=. 4110 test -z "$as_dir" && as_dir=.
3639 for ac_prog in egrep; do 4111 for ac_prog in egrep; do
3640 for ac_exec_ext in '' $ac_executable_extensions; do 4112 for ac_exec_ext in '' $ac_executable_extensions; do
3641 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4113 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3642 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4114 { 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. 4115# Check for GNU ac_path_EGREP and select it if it is found.
3644 # Check for GNU $ac_path_EGREP 4116 # Check for GNU $ac_path_EGREP
3645case `"$ac_path_EGREP" --version 2>&1` in 4117case `"$ac_path_EGREP" --version 2>&1` in
3646*GNU*) 4118*GNU*)
3647 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4119 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3648*) 4120*)
3649 ac_count=0 4121 ac_count=0
3650 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4122 $as_echo_n 0123456789 >"conftest.in"
3651 while : 4123 while :
3652 do 4124 do
3653 cat "conftest.in" "conftest.in" >"conftest.tmp" 4125 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in" 4126 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl" 4127 cp "conftest.in" "conftest.nl"
3656 echo 'EGREP' >> "conftest.nl" 4128 $as_echo 'EGREP' >> "conftest.nl"
3657 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4129 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659 ac_count=`expr $ac_count + 1` 4131 as_fn_arith $ac_count + 1 && ac_count=$as_val
3660 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4132 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 4133 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_EGREP="$ac_path_EGREP" 4134 ac_cv_path_EGREP="$ac_path_EGREP"
3663 ac_path_EGREP_max=$ac_count 4135 ac_path_EGREP_max=$ac_count
3664 fi 4136 fi
3666 test $ac_count -gt 10 && break 4138 test $ac_count -gt 10 && break
3667 done 4139 done
3668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3669esac 4141esac
3670 4142
3671
3672 $ac_path_EGREP_found && break 3 4143 $ac_path_EGREP_found && break 3
4144 done
3673 done 4145 done
4146 done
4147IFS=$as_save_IFS
4148 if test -z "$ac_cv_path_EGREP"; then
4149 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4150 fi
4151else
4152 ac_cv_path_EGREP=$EGREP
4153fi
4154
4155 fi
4156fi
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4158$as_echo "$ac_cv_path_EGREP" >&6; }
4159 EGREP="$ac_cv_path_EGREP"
4160
4161
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4163$as_echo_n "checking for ANSI C header files... " >&6; }
4164if test "${ac_cv_header_stdc+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4166else
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168/* end confdefs.h. */
4169#include <stdlib.h>
4170#include <stdarg.h>
4171#include <string.h>
4172#include <float.h>
4173
4174int
4175main ()
4176{
4177
4178 ;
4179 return 0;
4180}
4181_ACEOF
4182if ac_fn_c_try_compile "$LINENO"; then :
4183 ac_cv_header_stdc=yes
4184else
4185 ac_cv_header_stdc=no
4186fi
4187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188
4189if test $ac_cv_header_stdc = yes; then
4190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192/* end confdefs.h. */
4193#include <string.h>
4194
4195_ACEOF
4196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4197 $EGREP "memchr" >/dev/null 2>&1; then :
4198
4199else
4200 ac_cv_header_stdc=no
4201fi
4202rm -f conftest*
4203
4204fi
4205
4206if test $ac_cv_header_stdc = yes; then
4207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209/* end confdefs.h. */
4210#include <stdlib.h>
4211
4212_ACEOF
4213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4214 $EGREP "free" >/dev/null 2>&1; then :
4215
4216else
4217 ac_cv_header_stdc=no
4218fi
4219rm -f conftest*
4220
4221fi
4222
4223if test $ac_cv_header_stdc = yes; then
4224 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4225 if test "$cross_compiling" = yes; then :
4226 :
4227else
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229/* end confdefs.h. */
4230#include <ctype.h>
4231#include <stdlib.h>
4232#if ((' ' & 0x0FF) == 0x020)
4233# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4234# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4235#else
4236# define ISLOWER(c) \
4237 (('a' <= (c) && (c) <= 'i') \
4238 || ('j' <= (c) && (c) <= 'r') \
4239 || ('s' <= (c) && (c) <= 'z'))
4240# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4241#endif
4242
4243#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4244int
4245main ()
4246{
4247 int i;
4248 for (i = 0; i < 256; i++)
4249 if (XOR (islower (i), ISLOWER (i))
4250 || toupper (i) != TOUPPER (i))
4251 return 2;
4252 return 0;
4253}
4254_ACEOF
4255if ac_fn_c_try_run "$LINENO"; then :
4256
4257else
4258 ac_cv_header_stdc=no
4259fi
4260rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4261 conftest.$ac_objext conftest.beam conftest.$ac_ext
4262fi
4263
4264fi
4265fi
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4267$as_echo "$ac_cv_header_stdc" >&6; }
4268if test $ac_cv_header_stdc = yes; then
4269
4270$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4271
4272fi
4273
4274# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4275for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4276 inttypes.h stdint.h unistd.h
4277do :
4278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4279ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4280"
4281if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4282 cat >>confdefs.h <<_ACEOF
4283#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4284_ACEOF
4285
4286fi
4287
3674done 4288done
3675 4289
3676done
3677IFS=$as_save_IFS
3678 4290
3679 4291
3680fi 4292 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3681 4293if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3682EGREP="$ac_cv_path_EGREP" 4294 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 4295else
3690 ac_cv_path_EGREP=$EGREP 4296 MINIX=
3691fi 4297fi
3692 4298
3693 4299
4300 if test "$MINIX" = yes; then
4301
4302$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4303
4304
4305$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4306
4307
4308$as_echo "#define _MINIX 1" >>confdefs.h
4309
3694 fi 4310 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 4311
3700 4312
3701 4313 { $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 4314$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3703echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } 4315if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3704cat >conftest.$ac_ext <<_ACEOF 4316 $as_echo_n "(cached) " >&6
3705/* confdefs.h. */ 4317else
3706_ACEOF
3707cat confdefs.h >>conftest.$ac_ext 4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708cat >>conftest.$ac_ext <<_ACEOF
3709/* end confdefs.h. */ 4319/* end confdefs.h. */
3710#ifdef _AIX
3711 yes
3712#endif
3713 4320
3714_ACEOF 4321# define __EXTENSIONS__ 1
3715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4322 $ac_includes_default
3716 $EGREP "yes" >/dev/null 2>&1; then 4323int
3717 { echo "$as_me:$LINENO: result: yes" >&5 4324main ()
3718echo "${ECHO_T}yes" >&6; } 4325{
3719cat >>confdefs.h <<\_ACEOF
3720#define _ALL_SOURCE 1
3721_ACEOF
3722 4326
4327 ;
4328 return 0;
4329}
4330_ACEOF
4331if ac_fn_c_try_compile "$LINENO"; then :
4332 ac_cv_safe_to_define___extensions__=yes
3723else 4333else
3724 { echo "$as_me:$LINENO: result: no" >&5 4334 ac_cv_safe_to_define___extensions__=no
3725echo "${ECHO_T}no" >&6; }
3726fi 4335fi
3727rm -f conftest* 4336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337fi
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4339$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4340 test $ac_cv_safe_to_define___extensions__ = yes &&
4341 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3728 4342
4343 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3729 4344
4345 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4346
4347 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4348
4349 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4350
4351
4352
4353
3730{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3731echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 4355$as_echo_n "checking for library containing strerror... " >&6; }
3732if test "${ac_cv_search_strerror+set}" = set; then 4356if test "${ac_cv_search_strerror+set}" = set; then :
3733 echo $ECHO_N "(cached) $ECHO_C" >&6 4357 $as_echo_n "(cached) " >&6
3734else 4358else
3735 ac_func_search_save_LIBS=$LIBS 4359 ac_func_search_save_LIBS=$LIBS
3736cat >conftest.$ac_ext <<_ACEOF
3737/* confdefs.h. */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext 4360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
3741/* end confdefs.h. */ 4361/* end confdefs.h. */
3742 4362
3743/* Override any GCC internal prototype to avoid an error. 4363/* Override any GCC internal prototype to avoid an error.
3744 Use char because int might match the return type of a GCC 4364 Use char because int might match the return type of a GCC
3745 builtin and then its argument prototype would still apply. */ 4365 builtin and then its argument prototype would still apply. */
3760 ac_res="none required" 4380 ac_res="none required"
3761 else 4381 else
3762 ac_res=-l$ac_lib 4382 ac_res=-l$ac_lib
3763 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3764 fi 4384 fi
3765 rm -f conftest.$ac_objext conftest$ac_exeext 4385 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 4386 ac_cv_search_strerror=$ac_res
3784else
3785 echo "$as_me: failed program was:" >&5
3786sed 's/^/| /' conftest.$ac_ext >&5
3787
3788
3789fi 4387fi
3790
3791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4388rm -f core conftest.err conftest.$ac_objext \
3792 conftest$ac_exeext 4389 conftest$ac_exeext
3793 if test "${ac_cv_search_strerror+set}" = set; then 4390 if test "${ac_cv_search_strerror+set}" = set; then :
3794 break 4391 break
3795fi 4392fi
3796done 4393done
3797if test "${ac_cv_search_strerror+set}" = set; then 4394if test "${ac_cv_search_strerror+set}" = set; then :
3798 : 4395
3799else 4396else
3800 ac_cv_search_strerror=no 4397 ac_cv_search_strerror=no
3801fi 4398fi
3802rm conftest.$ac_ext 4399rm conftest.$ac_ext
3803LIBS=$ac_func_search_save_LIBS 4400LIBS=$ac_func_search_save_LIBS
3804fi 4401fi
3805{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 4402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3806echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 4403$as_echo "$ac_cv_search_strerror" >&6; }
3807ac_res=$ac_cv_search_strerror 4404ac_res=$ac_cv_search_strerror
3808if test "$ac_res" != no; then 4405if test "$ac_res" != no; then :
3809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3810 4407
3811fi 4408fi
3812 4409
3813ac_ext=cpp 4410ac_ext=cpp
3815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3818 4415
3819 4416
4417LINKER="$CXX"
3820if test x$GCC = xyes && test x$GXX = xyes; then 4418if test x$GCC = xyes && test x$GXX = xyes; then
3821 { echo "$as_me:$LINENO: checking for working libsupc++" >&5 4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
3822echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6; } 4420$as_echo_n "checking for working libsupc++... " >&6; }
3823 save_CXX="$CXX" 4421 save_CXX="$CXX"
3824 save_LIBS="$LIBS" 4422 save_LIBS="$LIBS"
3825 CXX="$CC" 4423 CXX="$CC"
3826 LIBS="$LIBS -lsupc++" 4424 LIBS="$LIBS -lsupc++"
3827 LINKER="$CC"
3828 4425
3829cat >conftest.$ac_ext <<_ACEOF
3830/* confdefs.h. */
3831_ACEOF
3832cat confdefs.h >>conftest.$ac_ext 4426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833cat >>conftest.$ac_ext <<_ACEOF
3834/* end confdefs.h. */ 4427/* end confdefs.h. */
3835struct test { }; void f() try { throw new test; } catch (...) { throw; } 4428struct test { }; void f() try { throw new test; } catch (...) { throw; }
3836int 4429int
3837main () 4430main ()
3838{ 4431{
3839 4432
3840 ; 4433 ;
3841 return 0; 4434 return 0;
3842} 4435}
3843_ACEOF 4436_ACEOF
3844rm -f conftest.$ac_objext conftest$ac_exeext 4437if 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 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
3863echo "${ECHO_T}ok" >&6; } 4439$as_echo "ok" >&6; }
4440 LINKER="$CC"
3864else 4441else
3865 echo "$as_me: failed program was:" >&5
3866sed 's/^/| /' conftest.$ac_ext >&5
3867 4442
3868
3869 { echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5 4443 { $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; } 4444$as_echo "no, making everything bigger and slower" >&6; }
3871 LIBS="$save_LIBS" 4445 LIBS="$save_LIBS"
3872 LINKER="$save_CXX"
3873 4446
3874 4447
3875fi 4448fi
3876
3877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4449rm -f core conftest.err conftest.$ac_objext \
3878 conftest$ac_exeext conftest.$ac_ext 4450 conftest$ac_exeext conftest.$ac_ext
3879 CXX="$save_CXX" 4451 CXX="$save_CXX"
3880fi 4452fi
3881LINKER=$LINKER 4453LINKER=$LINKER
3882 4454
3883 4455
3884if test -z "$orig_CXXFLAGS"; then 4456if test -z "$orig_CXXFLAGS"; then
3885 if test x$GCC = xyes && test "x$GXX" = xyes; then 4457 if test x$GCC = xyes && test "x$GXX" = xyes; then
3886 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 4458 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 4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */ 4460/* end confdefs.h. */
3893 4461
3894int 4462int
3895main () 4463main ()
3896{ 4464{
3897 4465
3898 ; 4466 ;
3899 return 0; 4467 return 0;
3900} 4468}
3901_ACEOF 4469_ACEOF
3902rm -f conftest.$ac_objext 4470if 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 4471
4472else
3924 CXXFLAGS="-g -O3" 4473 CXXFLAGS="-g -O3"
3925fi 4474fi
3926
3927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 else 4476 else
3929 CXXFLAGS="-O" 4477 CXXFLAGS="-O"
3930 fi 4478 fi
3931 CFLAGS="$CXXFLAGS" 4479 CFLAGS="$CXXFLAGS"
3932fi 4480fi
3933 4481
3934 4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
3935cat >>confdefs.h <<\_ACEOF 4483$as_echo_n "checking for library containing setlocale... " >&6; }
3936#define _GNU_SOURCE 1
3937_ACEOF
3938
3939
3940case $host in
3941 *-*-solaris* )
3942
3943cat >>confdefs.h <<\_ACEOF
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
3957 ;;
3958esac
3959
3960
3961{ echo "$as_me:$LINENO: checking for setlocale" >&5
3962echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3963if test "${ac_cv_func_setlocale+set}" = set; then 4484if test "${ac_cv_search_setlocale+set}" = set; then :
3964 echo $ECHO_N "(cached) $ECHO_C" >&6 4485 $as_echo_n "(cached) " >&6
3965else
3966 cat >conftest.$ac_ext <<_ACEOF
3967/* confdefs.h. */
3968_ACEOF
3969cat confdefs.h >>conftest.$ac_ext
3970cat >>conftest.$ac_ext <<_ACEOF
3971/* end confdefs.h. */
3972/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3974#define setlocale innocuous_setlocale
3975
3976/* System header to define __stub macros and hopefully few prototypes,
3977 which can conflict with char setlocale (); below.
3978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3979 <limits.h> exists even on freestanding compilers. */
3980
3981#ifdef __STDC__
3982# include <limits.h>
3983#else 4486else
3984# include <assert.h> 4487 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 4488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056cat >>conftest.$ac_ext <<_ACEOF
4057/* end confdefs.h. */ 4489/* end confdefs.h. */
4058 4490
4059/* Override any GCC internal prototype to avoid an error. 4491/* Override any GCC internal prototype to avoid an error.
4060 Use char because int might match the return type of a GCC 4492 Use char because int might match the return type of a GCC
4061 builtin and then its argument prototype would still apply. */ 4493 builtin and then its argument prototype would still apply. */
4069return setlocale (); 4501return setlocale ();
4070 ; 4502 ;
4071 return 0; 4503 return 0;
4072} 4504}
4073_ACEOF 4505_ACEOF
4074rm -f conftest.$ac_objext conftest$ac_exeext 4506for ac_lib in '' xpg4; do
4075if { (ac_try="$ac_link" 4507 if test -z "$ac_lib"; then
4076case "(($ac_try" in 4508 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 4509 else
4094 echo "$as_me: failed program was:" >&5 4510 ac_res=-l$ac_lib
4095sed 's/^/| /' conftest.$ac_ext >&5 4511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4096 4512 fi
4097 ac_cv_lib_xpg4_setlocale=no 4513 if ac_fn_cxx_try_link "$LINENO"; then :
4514 ac_cv_search_setlocale=$ac_res
4098fi 4515fi
4099
4100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4516rm -f core conftest.err conftest.$ac_objext \
4101 conftest$ac_exeext conftest.$ac_ext 4517 conftest$ac_exeext
4102LIBS=$ac_check_lib_save_LIBS 4518 if test "${ac_cv_search_setlocale+set}" = set; then :
4519 break
4103fi 4520fi
4521done
4522if test "${ac_cv_search_setlocale+set}" = set; then :
4523
4524else
4525 ac_cv_search_setlocale=no
4526fi
4527rm conftest.$ac_ext
4528LIBS=$ac_func_search_save_LIBS
4529fi
4104{ echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 4530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5
4105echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; } 4531$as_echo "$ac_cv_search_setlocale" >&6; }
4106if test $ac_cv_lib_xpg4_setlocale = yes; then 4532ac_res=$ac_cv_search_setlocale
4107 LIBS="$LIBS -lxpg4" 4533if test "$ac_res" != no; then :
4108fi 4534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4109 4535
4110fi 4536fi
4111 4537
4112 4538
4113{ echo "$as_me:$LINENO: checking for gethostbyname" >&5 4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4114echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 4540$as_echo_n "checking for library containing gethostbyname... " >&6; }
4115if test "${ac_cv_func_gethostbyname+set}" = set; then 4541if test "${ac_cv_search_gethostbyname+set}" = set; then :
4116 echo $ECHO_N "(cached) $ECHO_C" >&6 4542 $as_echo_n "(cached) " >&6
4117else
4118 cat >conftest.$ac_ext <<_ACEOF
4119/* confdefs.h. */
4120_ACEOF
4121cat confdefs.h >>conftest.$ac_ext
4122cat >>conftest.$ac_ext <<_ACEOF
4123/* end confdefs.h. */
4124/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4126#define gethostbyname innocuous_gethostbyname
4127
4128/* System header to define __stub macros and hopefully few prototypes,
4129 which can conflict with char gethostbyname (); below.
4130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 <limits.h> exists even on freestanding compilers. */
4132
4133#ifdef __STDC__
4134# include <limits.h>
4135#else 4543else
4136# include <assert.h> 4544 ac_func_search_save_LIBS=$LIBS
4137#endif
4138
4139#undef gethostbyname
4140
4141/* Override any GCC internal prototype to avoid an error.
4142 Use char because int might match the return type of a GCC
4143 builtin and then its argument prototype would still apply. */
4144#ifdef __cplusplus
4145extern "C"
4146#endif
4147char gethostbyname ();
4148/* The GNU C library defines this for functions which it implements
4149 to always fail with ENOSYS. Some functions are actually named
4150 something starting with __ and the normal name is an alias. */
4151#if defined __stub_gethostbyname || defined __stub___gethostbyname
4152choke me
4153#endif
4154
4155int
4156main ()
4157{
4158return gethostbyname ();
4159 ;
4160 return 0;
4161}
4162_ACEOF
4163rm -f conftest.$ac_objext conftest$ac_exeext
4164if { (ac_try="$ac_link"
4165case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168esac
4169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_link") 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } && {
4177 test -z "$ac_cxx_werror_flag" ||
4178 test ! -s conftest.err
4179 } && test -s conftest$ac_exeext &&
4180 $as_test_x conftest$ac_exeext; then
4181 ac_cv_func_gethostbyname=yes
4182else
4183 echo "$as_me: failed program was:" >&5
4184sed 's/^/| /' conftest.$ac_ext >&5
4185
4186 ac_cv_func_gethostbyname=no
4187fi
4188
4189rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4190 conftest$ac_exeext conftest.$ac_ext
4191fi
4192{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4193echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4194if test $ac_cv_func_gethostbyname = yes; then
4195 :
4196else
4197 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4198echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4199if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202 ac_check_lib_save_LIBS=$LIBS
4203LIBS="-lnsl $LIBS"
4204cat >conftest.$ac_ext <<_ACEOF
4205/* confdefs.h. */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext 4545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h. */ 4546/* end confdefs.h. */
4210 4547
4211/* Override any GCC internal prototype to avoid an error. 4548/* Override any GCC internal prototype to avoid an error.
4212 Use char because int might match the return type of a GCC 4549 Use char because int might match the return type of a GCC
4213 builtin and then its argument prototype would still apply. */ 4550 builtin and then its argument prototype would still apply. */
4221return gethostbyname (); 4558return gethostbyname ();
4222 ; 4559 ;
4223 return 0; 4560 return 0;
4224} 4561}
4225_ACEOF 4562_ACEOF
4226rm -f conftest.$ac_objext conftest$ac_exeext 4563for ac_lib in '' nsl; do
4227if { (ac_try="$ac_link" 4564 if test -z "$ac_lib"; then
4228case "(($ac_try" in 4565 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 4566 else
4246 echo "$as_me: failed program was:" >&5 4567 ac_res=-l$ac_lib
4247sed 's/^/| /' conftest.$ac_ext >&5 4568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4248 4569 fi
4249 ac_cv_lib_nsl_gethostbyname=no 4570 if ac_fn_cxx_try_link "$LINENO"; then :
4571 ac_cv_search_gethostbyname=$ac_res
4250fi 4572fi
4251
4252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4573rm -f core conftest.err conftest.$ac_objext \
4253 conftest$ac_exeext conftest.$ac_ext 4574 conftest$ac_exeext
4254LIBS=$ac_check_lib_save_LIBS 4575 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4576 break
4255fi 4577fi
4578done
4579if test "${ac_cv_search_gethostbyname+set}" = set; then :
4580
4581else
4582 ac_cv_search_gethostbyname=no
4583fi
4584rm conftest.$ac_ext
4585LIBS=$ac_func_search_save_LIBS
4586fi
4256{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4257echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 4588$as_echo "$ac_cv_search_gethostbyname" >&6; }
4258if test $ac_cv_lib_nsl_gethostbyname = yes; then 4589ac_res=$ac_cv_search_gethostbyname
4259 LIBS="$LIBS -lnsl" 4590if test "$ac_res" != no; then :
4260fi 4591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4261 4592
4262fi 4593fi
4263 4594
4264{ echo "$as_me:$LINENO: checking for socket" >&5 4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4265echo $ECHO_N "checking for socket... $ECHO_C" >&6; } 4596$as_echo_n "checking for library containing socket... " >&6; }
4266if test "${ac_cv_func_socket+set}" = set; then 4597if test "${ac_cv_search_socket+set}" = set; then :
4267 echo $ECHO_N "(cached) $ECHO_C" >&6 4598 $as_echo_n "(cached) " >&6
4268else
4269 cat >conftest.$ac_ext <<_ACEOF
4270/* confdefs.h. */
4271_ACEOF
4272cat confdefs.h >>conftest.$ac_ext
4273cat >>conftest.$ac_ext <<_ACEOF
4274/* end confdefs.h. */
4275/* Define socket to an innocuous variant, in case <limits.h> declares socket.
4276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4277#define socket innocuous_socket
4278
4279/* System header to define __stub macros and hopefully few prototypes,
4280 which can conflict with char socket (); below.
4281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4282 <limits.h> exists even on freestanding compilers. */
4283
4284#ifdef __STDC__
4285# include <limits.h>
4286#else 4599else
4287# include <assert.h> 4600 ac_func_search_save_LIBS=$LIBS
4288#endif
4289
4290#undef socket
4291
4292/* Override any GCC internal prototype to avoid an error.
4293 Use char because int might match the return type of a GCC
4294 builtin and then its argument prototype would still apply. */
4295#ifdef __cplusplus
4296extern "C"
4297#endif
4298char socket ();
4299/* The GNU C library defines this for functions which it implements
4300 to always fail with ENOSYS. Some functions are actually named
4301 something starting with __ and the normal name is an alias. */
4302#if defined __stub_socket || defined __stub___socket
4303choke me
4304#endif
4305
4306int
4307main ()
4308{
4309return socket ();
4310 ;
4311 return 0;
4312}
4313_ACEOF
4314rm -f conftest.$ac_objext conftest$ac_exeext
4315if { (ac_try="$ac_link"
4316case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319esac
4320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_link") 2>conftest.er1
4322 ac_status=$?
4323 grep -v '^ *+' conftest.er1 >conftest.err
4324 rm -f conftest.er1
4325 cat conftest.err >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } && {
4328 test -z "$ac_cxx_werror_flag" ||
4329 test ! -s conftest.err
4330 } && test -s conftest$ac_exeext &&
4331 $as_test_x conftest$ac_exeext; then
4332 ac_cv_func_socket=yes
4333else
4334 echo "$as_me: failed program was:" >&5
4335sed 's/^/| /' conftest.$ac_ext >&5
4336
4337 ac_cv_func_socket=no
4338fi
4339
4340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4341 conftest$ac_exeext conftest.$ac_ext
4342fi
4343{ echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4344echo "${ECHO_T}$ac_cv_func_socket" >&6; }
4345if test $ac_cv_func_socket = yes; then
4346 :
4347else
4348 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4349echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4350if test "${ac_cv_lib_socket_socket+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353 ac_check_lib_save_LIBS=$LIBS
4354LIBS="-lsocket $LIBS"
4355cat >conftest.$ac_ext <<_ACEOF
4356/* confdefs.h. */
4357_ACEOF
4358cat confdefs.h >>conftest.$ac_ext 4601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
4360/* end confdefs.h. */ 4602/* end confdefs.h. */
4361 4603
4362/* Override any GCC internal prototype to avoid an error. 4604/* Override any GCC internal prototype to avoid an error.
4363 Use char because int might match the return type of a GCC 4605 Use char because int might match the return type of a GCC
4364 builtin and then its argument prototype would still apply. */ 4606 builtin and then its argument prototype would still apply. */
4372return socket (); 4614return socket ();
4373 ; 4615 ;
4374 return 0; 4616 return 0;
4375} 4617}
4376_ACEOF 4618_ACEOF
4377rm -f conftest.$ac_objext conftest$ac_exeext 4619for ac_lib in '' socket; do
4378if { (ac_try="$ac_link" 4620 if test -z "$ac_lib"; then
4379case "(($ac_try" in 4621 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 4622 else
4397 echo "$as_me: failed program was:" >&5 4623 ac_res=-l$ac_lib
4398sed 's/^/| /' conftest.$ac_ext >&5 4624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4399 4625 fi
4400 ac_cv_lib_socket_socket=no 4626 if ac_fn_cxx_try_link "$LINENO"; then :
4627 ac_cv_search_socket=$ac_res
4401fi 4628fi
4402
4403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4629rm -f core conftest.err conftest.$ac_objext \
4404 conftest$ac_exeext conftest.$ac_ext 4630 conftest$ac_exeext
4405LIBS=$ac_check_lib_save_LIBS 4631 if test "${ac_cv_search_socket+set}" = set; then :
4632 break
4406fi 4633fi
4634done
4635if test "${ac_cv_search_socket+set}" = set; then :
4636
4637else
4638 ac_cv_search_socket=no
4639fi
4640rm conftest.$ac_ext
4641LIBS=$ac_func_search_save_LIBS
4642fi
4407{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4408echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 4644$as_echo "$ac_cv_search_socket" >&6; }
4409if test $ac_cv_lib_socket_socket = yes; then 4645ac_res=$ac_cv_search_socket
4410 LIBS="$LIBS -lsocket" 4646if test "$ac_res" != no; then :
4411fi 4647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4412 4648
4413fi 4649fi
4414
4415 4650
4416 4651
4417support_frills=yes 4652support_frills=yes
4418support_inheritpixmap=yes 4653support_inheritpixmap=yes
4419support_tinting=yes
4420support_fading=yes 4654support_fading=yes
4421support_keepscrolling=yes 4655support_keepscrolling=yes
4422support_selectionscrolling=yes 4656support_selectionscrolling=yes
4423support_mousewheel=yes 4657support_mousewheel=yes
4424support_mouseslipwheel=yes 4658support_mouseslipwheel=yes
4425support_text_blink=yes 4659support_text_blink=yes
4426support_pointer_blank=yes 4660support_pointer_blank=yes
4427support_scroll_rxvt=yes 4661support_scroll_rxvt=yes
4428support_scroll_next=yes 4662support_scroll_next=yes
4429support_scroll_xterm=yes 4663support_scroll_xterm=yes
4430support_scroll_plain=yes
4431support_xim=yes 4664support_xim=yes
4432support_xpm=yes 4665support_pixbuf=yes
4666support_startup_notification=yes
4433support_xft=yes 4667support_xft=yes
4434support_unicode3=no 4668support_unicode3=no
4435support_combining=yes 4669support_combining=yes
4436support_8bitctrls=no 4670support_8bitctrls=no
4437support_iso14755=yes 4671support_iso14755=yes
4438support_styles=yes 4672support_styles=yes
4439support_perl=yes 4673support_perl=yes
4440codesets=all 4674codesets=all
4441 4675
4442 4676
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. 4677# Check whether --enable-everything was given.
4454if test "${enable_everything+set}" = set; then 4678if test "${enable_everything+set}" = set; then :
4455 enableval=$enable_everything; 4679 enableval=$enable_everything;
4456 if test x$enableval = xno; then 4680 if test x$enableval = xno; then
4457 support_frills=no 4681 support_frills=no
4458 support_inheritpixmap=no 4682 support_inheritpixmap=no
4459 support_tinting=no
4460 support_fading=no 4683 support_fading=no
4461 support_keepscrolling=no 4684 support_keepscrolling=no
4462 support_selectionscrolling=no 4685 support_selectionscrolling=no
4463 support_lastlog=no 4686 support_lastlog=no
4464 support_mousewheel=no 4687 support_mousewheel=no
4466 support_text_blink=no 4689 support_text_blink=no
4467 support_pointer_blank=no 4690 support_pointer_blank=no
4468 support_scroll_rxvt=no 4691 support_scroll_rxvt=no
4469 support_scroll_next=no 4692 support_scroll_next=no
4470 support_scroll_xterm=no 4693 support_scroll_xterm=no
4471 support_scroll_plain=no
4472 support_utmp=no 4694 support_utmp=no
4473 support_wtmp=no 4695 support_wtmp=no
4474 support_xim=no 4696 support_xim=no
4475 support_xpm=no 4697 support_pixbuf=no
4698 support_startup_notification=no
4476 support_xft=no 4699 support_xft=no
4477 support_unicode3=no 4700 support_unicode3=no
4478 support_combining=no 4701 support_combining=no
4479 support_8bitctrls=no 4702 support_8bitctrls=no
4480 support_iso14755=no 4703 support_iso14755=no
4483 codesets= 4706 codesets=
4484 fi 4707 fi
4485 if test x$enableval = xyes; then 4708 if test x$enableval = xyes; then
4486 support_frills=yes 4709 support_frills=yes
4487 support_inheritpixmap=yes 4710 support_inheritpixmap=yes
4488 support_tinting=yes
4489 support_fading=yes 4711 support_fading=yes
4490 support_keepscrolling=yes 4712 support_keepscrolling=yes
4491 support_selectionscrolling=yes 4713 support_selectionscrolling=yes
4492 support_lastlog=yes 4714 support_lastlog=yes
4493 support_mousewheel=yes 4715 support_mousewheel=yes
4495 support_text_blink=yes 4717 support_text_blink=yes
4496 support_pointer_blank=yes 4718 support_pointer_blank=yes
4497 support_scroll_rxvt=yes 4719 support_scroll_rxvt=yes
4498 support_scroll_next=yes 4720 support_scroll_next=yes
4499 support_scroll_xterm=yes 4721 support_scroll_xterm=yes
4500 support_scroll_plain=yes
4501 support_utmp=yes 4722 support_utmp=yes
4502 support_wtmp=yes 4723 support_wtmp=yes
4503 support_xim=yes 4724 support_xim=yes
4504 support_xpm=yes 4725 support_pixbuf=yes
4726 support_startup_notification=yes
4505 support_xft=yes 4727 support_xft=yes
4506 support_unicode3=yes 4728 support_unicode3=yes
4507 support_combining=yes 4729 support_combining=yes
4508 #support_8bitctrls=yes 4730 #support_8bitctrls=yes
4509 support_iso14755=yes 4731 support_iso14755=yes
4513 fi 4735 fi
4514 4736
4515fi 4737fi
4516 4738
4517 4739
4740support_assertions=no
4741# Check whether --enable-assert was given.
4742if test "${enable_assert+set}" = set; then :
4743 enableval=$enable_assert; if test x$enableval = xyes; then
4744 support_assertions=yes
4745 fi
4746fi
4747
4748if test x$support_assertions = xno; then
4749
4750$as_echo "#define NDEBUG 1" >>confdefs.h
4751
4752fi
4753
4754support_warnings=no
4755# Check whether --enable-warnings was given.
4756if test "${enable_warnings+set}" = set; then :
4757 enableval=$enable_warnings; if test x$enableval = xyes; then
4758 support_warnings=yes
4759 fi
4760fi
4761
4762if test x$GXX = xyes; then
4763 if test $support_warnings = yes; then
4764 save_CXXFLAGS="$CXXFLAGS"
4765 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value"
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767/* end confdefs.h. */
4768
4769int
4770main ()
4771{
4772
4773 ;
4774 return 0;
4775}
4776_ACEOF
4777if ac_fn_cxx_try_compile "$LINENO"; then :
4778
4779else
4780 CXXFLAGS="$save_CXXFLAGS"
4781fi
4782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 else
4784 CXXFLAGS="$CXXFLAGS -w"
4785 fi
4786fi
4787
4788support_256_color=no
4789# Check whether --enable-256-color was given.
4790if test "${enable_256_color+set}" = set; then :
4791 enableval=$enable_256_color; if test x$enableval = xyes; then
4792 support_256_color=yes
4793 fi
4794fi
4795
4796if test x$support_256_color = xyes; then
4797
4798$as_echo "#define USE_256_COLORS 1" >>confdefs.h
4799
4800fi
4801
4518# Check whether --enable-unicode3 was given. 4802# Check whether --enable-unicode3 was given.
4519if test "${enable_unicode3+set}" = set; then 4803if test "${enable_unicode3+set}" = set; then :
4520 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4804 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4521 support_unicode3=$enableval 4805 support_unicode3=$enableval
4522 fi 4806 fi
4523fi 4807fi
4524 4808
4525 4809
4526# Check whether --enable-combining was given. 4810# Check whether --enable-combining was given.
4527if test "${enable_combining+set}" = set; then 4811if test "${enable_combining+set}" = set; then :
4528 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then 4812 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then
4529 support_combining=$enableval 4813 support_combining=$enableval
4530 fi 4814 fi
4531fi 4815fi
4532 4816
4533 4817
4534# Check whether --enable-xft was given. 4818# Check whether --enable-xft was given.
4535if test "${enable_xft+set}" = set; then 4819if test "${enable_xft+set}" = set; then :
4536 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then 4820 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then
4537 support_xft=$enableval 4821 support_xft=$enableval
4538 fi 4822 fi
4539fi 4823fi
4540 4824
4541 4825
4542# Check whether --enable-font-styles was given. 4826# Check whether --enable-font-styles was given.
4543if test "${enable_font_styles+set}" = set; then 4827if test "${enable_font_styles+set}" = set; then :
4544 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then 4828 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
4545 support_styles=$enableval 4829 support_styles=$enableval
4546 fi 4830 fi
4547fi 4831fi
4548 4832
4549 4833
4834# Check whether --enable-afterimage was given.
4835if test "${enable_afterimage+set}" = set; then :
4836 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4837 support_afterimage=$enableval
4838 fi
4839fi
4840
4841
4842
4843# Check whether --with-afterimage_config was given.
4844if test "${with_afterimage_config+set}" = set; then :
4845 withval=$with_afterimage_config; if test "x$withval" != x; then
4846 afterimage_config=$withval/afterimage-config
4847 fi
4848fi
4849
4850
4550# Check whether --enable-xpm-background was given. 4851# Check whether --enable-pixbuf was given.
4551if test "${enable_xpm_background+set}" = set; then 4852if test "${enable_pixbuf+set}" = set; then :
4552 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then 4853 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then
4553 support_xpm=$enableval 4854 support_pixbuf=$enableval
4855 fi
4856fi
4857
4858
4859# Check whether --enable-startup-notification was given.
4860if test "${enable_startup_notification+set}" = set; then :
4861 enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then
4862 support_startup_notification=$enableval
4554 fi 4863 fi
4555fi 4864fi
4556 4865
4557 4866
4558# Check whether --enable-transparency was given. 4867# Check whether --enable-transparency was given.
4559if test "${enable_transparency+set}" = set; then 4868if test "${enable_transparency+set}" = set; then :
4560 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then 4869 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4561 support_inheritpixmap=$enableval 4870 support_inheritpixmap=$enableval
4562 fi 4871 fi
4563fi 4872fi
4564 4873
4565 4874
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. 4875# Check whether --enable-fading was given.
4575if test "${enable_fading+set}" = set; then 4876if test "${enable_fading+set}" = set; then :
4576 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then 4877 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4577 support_fading=$enableval 4878 support_fading=$enableval
4578 fi 4879 fi
4579fi 4880fi
4580 4881
4581 4882
4582# Check whether --enable-rxvt-scroll was given. 4883# Check whether --enable-rxvt-scroll was given.
4583if test "${enable_rxvt_scroll+set}" = set; then 4884if test "${enable_rxvt_scroll+set}" = set; then :
4584 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4885 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4585 support_scroll_rxvt=$enableval 4886 support_scroll_rxvt=$enableval
4586 fi 4887 fi
4587fi 4888fi
4588 4889
4589 4890
4590# Check whether --enable-next-scroll was given. 4891# Check whether --enable-next-scroll was given.
4591if test "${enable_next_scroll+set}" = set; then 4892if test "${enable_next_scroll+set}" = set; then :
4592 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4893 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4593 support_scroll_next=$enableval 4894 support_scroll_next=$enableval
4594 fi 4895 fi
4595fi 4896fi
4596 4897
4597 4898
4598# Check whether --enable-xterm-scroll was given. 4899# Check whether --enable-xterm-scroll was given.
4599if test "${enable_xterm_scroll+set}" = set; then 4900if test "${enable_xterm_scroll+set}" = set; then :
4600 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4901 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4601 support_scroll_xterm=$enableval 4902 support_scroll_xterm=$enableval
4602 fi 4903 fi
4603fi 4904fi
4604 4905
4605 4906
4606# Check whether --enable-perl was given. 4907# Check whether --enable-perl was given.
4607if test "${enable_perl+set}" = set; then 4908if test "${enable_perl+set}" = set; then :
4608 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then 4909 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4609 support_perl=$enableval 4910 support_perl=$enableval
4610 fi 4911 fi
4611fi 4912fi
4612 4913
4613 4914
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 4915
4623# Check whether --with-codesets was given. 4916# Check whether --with-codesets was given.
4624if test "${with_codesets+set}" = set; then 4917if test "${with_codesets+set}" = set; then :
4625 withval=$with_codesets; codesets="$withval" 4918 withval=$with_codesets; codesets="$withval"
4626fi 4919fi
4627 4920
4628 4921
4629# Check whether --enable-xim was given. 4922# Check whether --enable-xim was given.
4630if test "${enable_xim+set}" = set; then 4923if test "${enable_xim+set}" = set; then :
4631 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then 4924 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
4632 support_xim=$enableval 4925 support_xim=$enableval
4633 fi 4926 fi
4634fi 4927fi
4635 4928
4636 4929
4637# Check whether --enable-backspace-key was given. 4930# Check whether --enable-backspace-key was given.
4638if test "${enable_backspace_key+set}" = set; then 4931if test "${enable_backspace_key+set}" = set; then :
4639 enableval=$enable_backspace_key; if test x$enableval = xno; then 4932 enableval=$enable_backspace_key; if test x$enableval = xno; then
4640 4933
4641cat >>confdefs.h <<\_ACEOF 4934$as_echo "#define NO_BACKSPACE_KEY 1" >>confdefs.h
4642#define NO_BACKSPACE_KEY 1
4643_ACEOF
4644 4935
4645 fi 4936 fi
4646fi 4937fi
4647 4938
4648 4939
4649# Check whether --enable-delete-key was given. 4940# Check whether --enable-delete-key was given.
4650if test "${enable_delete_key+set}" = set; then 4941if test "${enable_delete_key+set}" = set; then :
4651 enableval=$enable_delete_key; if test x$enableval = xno; then 4942 enableval=$enable_delete_key; if test x$enableval = xno; then
4652 4943
4653cat >>confdefs.h <<\_ACEOF 4944$as_echo "#define NO_DELETE_KEY 1" >>confdefs.h
4654#define NO_DELETE_KEY 1
4655_ACEOF
4656 4945
4657 fi 4946 fi
4658fi 4947fi
4659 4948
4660 4949
4661# Check whether --enable-resources was given. 4950# Check whether --enable-resources was given.
4662if test "${enable_resources+set}" = set; then 4951if test "${enable_resources+set}" = set; then :
4663 enableval=$enable_resources; if test x$enableval = xno; then 4952 enableval=$enable_resources; if test x$enableval = xno; then
4664 4953
4665cat >>confdefs.h <<\_ACEOF 4954$as_echo "#define NO_RESOURCES 1" >>confdefs.h
4666#define NO_RESOURCES 1
4667_ACEOF
4668 4955
4669 fi 4956 fi
4670fi 4957fi
4671 4958
4672 4959
4673# Check whether --enable-8bitctrls was given. 4960# Check whether --enable-8bitctrls was given.
4674if test "${enable_8bitctrls+set}" = set; then 4961if test "${enable_8bitctrls+set}" = set; then :
4675 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then 4962 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
4676 support_8bitctrls=$enableval 4963 support_8bitctrls=$enableval
4677 fi 4964 fi
4678fi 4965fi
4679 4966
4680 4967
4681RESFALLBACK=Rxvt 4968RESFALLBACK=Rxvt
4682# Check whether --enable-fallback was given. 4969# Check whether --enable-fallback was given.
4683if test "${enable_fallback+set}" = set; then 4970if test "${enable_fallback+set}" = set; then :
4684 enableval=$enable_fallback; 4971 enableval=$enable_fallback;
4685 test x$enableval = xyes && enableval=Rxvt 4972 test x$enableval = xyes && enableval=Rxvt
4686 test x$enableval = xno && enableval= 4973 test x$enableval = xno && enableval=
4687 RESFALLBACK="$enableval" 4974 RESFALLBACK="$enableval"
4688 4975
4698fi 4985fi
4699 4986
4700RESNAME=urxvt 4987RESNAME=urxvt
4701 4988
4702# Check whether --with-res-name was given. 4989# Check whether --with-res-name was given.
4703if test "${with_res_name+set}" = set; then 4990if test "${with_res_name+set}" = set; then :
4704 withval=$with_res_name; RESNAME="$withval" 4991 withval=$with_res_name; RESNAME="$withval"
4705fi 4992fi
4706 4993
4707 4994
4708cat >>confdefs.h <<_ACEOF 4995cat >>confdefs.h <<_ACEOF
4711 4998
4712 4999
4713RESCLASS=URxvt 5000RESCLASS=URxvt
4714 5001
4715# Check whether --with-res-class was given. 5002# Check whether --with-res-class was given.
4716if test "${with_res_class+set}" = set; then 5003if test "${with_res_class+set}" = set; then :
4717 withval=$with_res_class; RESCLASS="$withval" 5004 withval=$with_res_class; RESCLASS="$withval"
4718fi 5005fi
4719 5006
4720 5007
4721cat >>confdefs.h <<_ACEOF 5008cat >>confdefs.h <<_ACEOF
4724 5011
4725 5012
4726RXVTNAME=urxvt 5013RXVTNAME=urxvt
4727 5014
4728# Check whether --with-name was given. 5015# Check whether --with-name was given.
4729if test "${with_name+set}" = set; then 5016if test "${with_name+set}" = set; then :
4730 withval=$with_name; RXVTNAME="$withval" 5017 withval=$with_name; RXVTNAME="$withval"
4731fi 5018fi
4732 5019
4733 5020
4734cat >>confdefs.h <<_ACEOF 5021cat >>confdefs.h <<_ACEOF
4735#define RXVTNAME "$RXVTNAME" 5022#define RXVTNAME "$RXVTNAME"
4736_ACEOF 5023_ACEOF
4737 5024
4738 5025
4739RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4740 5026
4741 5027
4742# Check whether --enable-swapscreen was given. 5028# Check whether --enable-swapscreen was given.
4743if test "${enable_swapscreen+set}" = set; then 5029if test "${enable_swapscreen+set}" = set; then :
4744 enableval=$enable_swapscreen; if test x$enableval = xno; then 5030 enableval=$enable_swapscreen; if test x$enableval = xno; then
4745 5031
4746cat >>confdefs.h <<\_ACEOF 5032$as_echo "#define NO_SECONDARY_SCREEN 1" >>confdefs.h
4747#define NO_SECONDARY_SCREEN 1
4748_ACEOF
4749 5033
4750 fi 5034 fi
4751fi 5035fi
4752 5036
4753 5037
4754# Check whether --enable-iso14755 was given. 5038# Check whether --enable-iso14755 was given.
4755if test "${enable_iso14755+set}" = set; then 5039if test "${enable_iso14755+set}" = set; then :
4756 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then 5040 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
4757 support_iso14755=$enableval 5041 support_iso14755=$enableval
4758 fi 5042 fi
4759fi 5043fi
4760 5044
4761 5045
4762# Check whether --enable-frills was given. 5046# Check whether --enable-frills was given.
4763if test "${enable_frills+set}" = set; then 5047if test "${enable_frills+set}" = set; then :
4764 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then 5048 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
4765 support_frills=$enableval 5049 support_frills=$enableval
4766 fi 5050 fi
4767fi 5051fi
4768 5052
4769 5053
4770# Check whether --enable-keepscrolling was given. 5054# Check whether --enable-keepscrolling was given.
4771if test "${enable_keepscrolling+set}" = set; then 5055if test "${enable_keepscrolling+set}" = set; then :
4772 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then 5056 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
4773 support_keepscrolling=$enableval 5057 support_keepscrolling=$enableval
4774 fi 5058 fi
4775fi 5059fi
4776 5060
4777 5061
4778# Check whether --enable-selectionscrolling was given. 5062# Check whether --enable-selectionscrolling was given.
4779if test "${enable_selectionscrolling+set}" = set; then 5063if test "${enable_selectionscrolling+set}" = set; then :
4780 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then 5064 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
4781 support_selectionscrolling=$enableval 5065 support_selectionscrolling=$enableval
4782 fi 5066 fi
4783fi 5067fi
4784 5068
4785 5069
4786# Check whether --enable-mousewheel was given. 5070# Check whether --enable-mousewheel was given.
4787if test "${enable_mousewheel+set}" = set; then 5071if test "${enable_mousewheel+set}" = set; then :
4788 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then 5072 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
4789 support_mousewheel=$enableval 5073 support_mousewheel=$enableval
4790 fi 5074 fi
4791fi 5075fi
4792 5076
4793 5077
4794# Check whether --enable-slipwheeling was given. 5078# Check whether --enable-slipwheeling was given.
4795if test "${enable_slipwheeling+set}" = set; then 5079if test "${enable_slipwheeling+set}" = set; then :
4796 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then 5080 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
4797 support_mouseslipwheel=$enableval 5081 support_mouseslipwheel=$enableval
4798 fi 5082 fi
4799fi 5083fi
4800 5084
4801 5085
4802# Check whether --enable-smart-resize was given. 5086# Check whether --enable-smart-resize was given.
4803if test "${enable_smart_resize+set}" = set; then 5087if test "${enable_smart_resize+set}" = set; then :
4804 enableval=$enable_smart_resize; if test x$enableval = xyes; then 5088 enableval=$enable_smart_resize; if test x$enableval = xyes; then
4805 5089
4806cat >>confdefs.h <<\_ACEOF 5090$as_echo "#define SMART_RESIZE 1" >>confdefs.h
4807#define SMART_RESIZE 1
4808_ACEOF
4809 5091
4810 fi 5092 fi
4811fi 5093fi
4812 5094
4813 5095
4814# Check whether --enable-text-blink was given. 5096# Check whether --enable-text-blink was given.
4815if test "${enable_text_blink+set}" = set; then 5097if test "${enable_text_blink+set}" = set; then :
4816 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then 5098 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
4817 support_text_blink=$enableval 5099 support_text_blink=$enableval
4818 fi 5100 fi
4819fi 5101fi
4820 5102
4821 5103
4822# Check whether --enable-pointer-blank was given. 5104# Check whether --enable-pointer-blank was given.
4823if test "${enable_pointer_blank+set}" = set; then 5105if test "${enable_pointer_blank+set}" = set; then :
4824 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then 5106 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
4825 support_pointer_blank=$enableval 5107 support_pointer_blank=$enableval
4826 fi 5108 fi
4827fi 5109fi
4828 5110
4829 5111
4830 5112
4831# Check whether --with-term was given. 5113# Check whether --with-term was given.
4832if test "${with_term+set}" = set; then 5114if test "${with_term+set}" = set; then :
4833 withval=$with_term; if test x$withval != x; then 5115 withval=$with_term; if test x$withval != x; then
4834 5116
4835cat >>confdefs.h <<_ACEOF 5117cat >>confdefs.h <<_ACEOF
4836#define TERMENV "$withval" 5118#define TERMENV "$withval"
4837_ACEOF 5119_ACEOF
4840fi 5122fi
4841 5123
4842 5124
4843 5125
4844# Check whether --with-terminfo was given. 5126# Check whether --with-terminfo was given.
4845if test "${with_terminfo+set}" = set; then 5127if test "${with_terminfo+set}" = set; then :
4846 withval=$with_terminfo; if test x$withval != x; then 5128 withval=$with_terminfo; if test x$withval != x; then
4847 5129
4848cat >>confdefs.h <<_ACEOF 5130cat >>confdefs.h <<_ACEOF
4849#define RXVT_TERMINFO "$withval" 5131#define RXVT_TERMINFO "$withval"
4850_ACEOF 5132_ACEOF
4852 fi 5134 fi
4853fi 5135fi
4854 5136
4855 5137
4856 5138
4857# Extract the first word of "mv", so it can be a program name with args. 5139LIBEV_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 5140
5146ac_ext=cpp 5141ac_ext=cpp
5147ac_cpp='$CXXCPP $CPPFLAGS' 5142ac_cpp='$CXXCPP $CPPFLAGS'
5148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5151{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5146{ $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; } 5147$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5153if test -z "$CXXCPP"; then 5148if test -z "$CXXCPP"; then
5154 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5149 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5155 echo $ECHO_N "(cached) $ECHO_C" >&6 5150 $as_echo_n "(cached) " >&6
5156else 5151else
5157 # Double quotes because CXXCPP needs to be expanded 5152 # Double quotes because CXXCPP needs to be expanded
5158 for CXXCPP in "$CXX -E" "/lib/cpp" 5153 for CXXCPP in "$CXX -E" "/lib/cpp"
5159 do 5154 do
5160 ac_preproc_ok=false 5155 ac_preproc_ok=false
5164 # with a fresh cross-compiler works. 5159 # with a fresh cross-compiler works.
5165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166 # <limits.h> exists even on freestanding compilers. 5161 # <limits.h> exists even on freestanding compilers.
5167 # On the NeXT, cc -E runs the code through the compiler's parser, 5162 # 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. 5163 # 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 5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h. */ 5165/* end confdefs.h. */
5175#ifdef __STDC__ 5166#ifdef __STDC__
5176# include <limits.h> 5167# include <limits.h>
5177#else 5168#else
5178# include <assert.h> 5169# include <assert.h>
5179#endif 5170#endif
5180 Syntax error 5171 Syntax error
5181_ACEOF 5172_ACEOF
5182if { (ac_try="$ac_cpp conftest.$ac_ext" 5173if 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 5174
5175else
5203 # Broken: fails on valid input. 5176 # Broken: fails on valid input.
5204continue 5177continue
5205fi 5178fi
5206
5207rm -f conftest.err conftest.$ac_ext 5179rm -f conftest.err conftest.i conftest.$ac_ext
5208 5180
5209 # OK, works on sane cases. Now check whether nonexistent headers 5181 # OK, works on sane cases. Now check whether nonexistent headers
5210 # can be detected and how. 5182 # can be detected and how.
5211 cat >conftest.$ac_ext <<_ACEOF
5212/* confdefs.h. */
5213_ACEOF
5214cat confdefs.h >>conftest.$ac_ext 5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215cat >>conftest.$ac_ext <<_ACEOF
5216/* end confdefs.h. */ 5184/* end confdefs.h. */
5217#include <ac_nonexistent.h> 5185#include <ac_nonexistent.h>
5218_ACEOF 5186_ACEOF
5219if { (ac_try="$ac_cpp conftest.$ac_ext" 5187if 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. 5188 # Broken: success on invalid input.
5236continue 5189continue
5237else 5190else
5238 echo "$as_me: failed program was:" >&5
5239sed 's/^/| /' conftest.$ac_ext >&5
5240
5241 # Passes both tests. 5191 # Passes both tests.
5242ac_preproc_ok=: 5192ac_preproc_ok=:
5243break 5193break
5244fi 5194fi
5245
5246rm -f conftest.err conftest.$ac_ext 5195rm -f conftest.err conftest.i conftest.$ac_ext
5247 5196
5248done 5197done
5249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5198# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5250rm -f conftest.err conftest.$ac_ext 5199rm -f conftest.i conftest.err conftest.$ac_ext
5251if $ac_preproc_ok; then 5200if $ac_preproc_ok; then :
5252 break 5201 break
5253fi 5202fi
5254 5203
5255 done 5204 done
5256 ac_cv_prog_CXXCPP=$CXXCPP 5205 ac_cv_prog_CXXCPP=$CXXCPP
5258fi 5207fi
5259 CXXCPP=$ac_cv_prog_CXXCPP 5208 CXXCPP=$ac_cv_prog_CXXCPP
5260else 5209else
5261 ac_cv_prog_CXXCPP=$CXXCPP 5210 ac_cv_prog_CXXCPP=$CXXCPP
5262fi 5211fi
5263{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5264echo "${ECHO_T}$CXXCPP" >&6; } 5213$as_echo "$CXXCPP" >&6; }
5265ac_preproc_ok=false 5214ac_preproc_ok=false
5266for ac_cxx_preproc_warn_flag in '' yes 5215for ac_cxx_preproc_warn_flag in '' yes
5267do 5216do
5268 # Use a header file that comes with gcc, so configuring glibc 5217 # Use a header file that comes with gcc, so configuring glibc
5269 # with a fresh cross-compiler works. 5218 # with a fresh cross-compiler works.
5270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5271 # <limits.h> exists even on freestanding compilers. 5220 # <limits.h> exists even on freestanding compilers.
5272 # On the NeXT, cc -E runs the code through the compiler's parser, 5221 # 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. 5222 # 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 5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278cat >>conftest.$ac_ext <<_ACEOF
5279/* end confdefs.h. */ 5224/* end confdefs.h. */
5280#ifdef __STDC__ 5225#ifdef __STDC__
5281# include <limits.h> 5226# include <limits.h>
5282#else 5227#else
5283# include <assert.h> 5228# include <assert.h>
5284#endif 5229#endif
5285 Syntax error 5230 Syntax error
5286_ACEOF 5231_ACEOF
5287if { (ac_try="$ac_cpp conftest.$ac_ext" 5232if 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 5233
5234else
5308 # Broken: fails on valid input. 5235 # Broken: fails on valid input.
5309continue 5236continue
5310fi 5237fi
5311
5312rm -f conftest.err conftest.$ac_ext 5238rm -f conftest.err conftest.i conftest.$ac_ext
5313 5239
5314 # OK, works on sane cases. Now check whether nonexistent headers 5240 # OK, works on sane cases. Now check whether nonexistent headers
5315 # can be detected and how. 5241 # can be detected and how.
5316 cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h. */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext 5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h. */ 5243/* end confdefs.h. */
5322#include <ac_nonexistent.h> 5244#include <ac_nonexistent.h>
5323_ACEOF 5245_ACEOF
5324if { (ac_try="$ac_cpp conftest.$ac_ext" 5246if 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. 5247 # Broken: success on invalid input.
5341continue 5248continue
5342else 5249else
5343 echo "$as_me: failed program was:" >&5
5344sed 's/^/| /' conftest.$ac_ext >&5
5345
5346 # Passes both tests. 5250 # Passes both tests.
5347ac_preproc_ok=: 5251ac_preproc_ok=:
5348break 5252break
5349fi 5253fi
5350
5351rm -f conftest.err conftest.$ac_ext 5254rm -f conftest.err conftest.i conftest.$ac_ext
5352 5255
5353done 5256done
5354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5257# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355rm -f conftest.err conftest.$ac_ext 5258rm -f conftest.i conftest.err conftest.$ac_ext
5356if $ac_preproc_ok; then 5259if $ac_preproc_ok; then :
5357 : 5260
5358else 5261else
5359 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5360See \`config.log' for more details." >&5 5263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5361echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5264as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5362See \`config.log' for more details." >&2;} 5265See \`config.log' for more details" "$LINENO" 5 ; }
5363 { (exit 1); exit 1; }; }
5364fi 5266fi
5365 5267
5366ac_ext=cpp 5268ac_ext=cpp
5367ac_cpp='$CXXCPP $CPPFLAGS' 5269ac_cpp='$CXXCPP $CPPFLAGS'
5368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5371 5273
5372 5274
5275for 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
5276do :
5277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5278ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5279if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5280 cat >>confdefs.h <<_ACEOF
5281#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5282_ACEOF
5283
5284fi
5285
5286done
5287
5288
5289for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5290do :
5291 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5292ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5293if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5294 cat >>confdefs.h <<_ACEOF
5295#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5296_ACEOF
5297
5298fi
5299done
5300
5301
5302for ac_func in clock_gettime
5303do :
5304 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5305if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5306 cat >>confdefs.h <<_ACEOF
5307#define HAVE_CLOCK_GETTIME 1
5308_ACEOF
5309
5310else
5311
5312 if test $(uname) = Linux; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5314$as_echo_n "checking for clock_gettime syscall... " >&6; }
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316/* end confdefs.h. */
5317#include <unistd.h>
5318 #include <sys/syscall.h>
5319 #include <time.h>
5320int
5321main ()
5322{
5323struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5324 ;
5325 return 0;
5326}
5327_ACEOF
5328if ac_fn_cxx_try_link "$LINENO"; then :
5329 ac_have_clock_syscall=1
5330
5331$as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
5332
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5334$as_echo "yes" >&6; }
5335else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337$as_echo "no" >&6; }
5338fi
5339rm -f core conftest.err conftest.$ac_objext \
5340 conftest$ac_exeext conftest.$ac_ext
5341 fi
5342 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5344$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
5345if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
5346 $as_echo_n "(cached) " >&6
5347else
5348 ac_check_lib_save_LIBS=$LIBS
5349LIBS="-lrt $LIBS"
5350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351/* end confdefs.h. */
5352
5353/* Override any GCC internal prototype to avoid an error.
5354 Use char because int might match the return type of a GCC
5355 builtin and then its argument prototype would still apply. */
5356#ifdef __cplusplus
5357extern "C"
5358#endif
5359char clock_gettime ();
5360int
5361main ()
5362{
5363return clock_gettime ();
5364 ;
5365 return 0;
5366}
5367_ACEOF
5368if ac_fn_cxx_try_link "$LINENO"; then :
5369 ac_cv_lib_rt_clock_gettime=yes
5370else
5371 ac_cv_lib_rt_clock_gettime=no
5372fi
5373rm -f core conftest.err conftest.$ac_objext \
5374 conftest$ac_exeext conftest.$ac_ext
5375LIBS=$ac_check_lib_save_LIBS
5376fi
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5378$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
5379if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
5380 cat >>confdefs.h <<_ACEOF
5381#define HAVE_LIBRT 1
5382_ACEOF
5383
5384 LIBS="-lrt $LIBS"
5385
5386fi
5387
5388 unset ac_cv_func_clock_gettime
5389 for ac_func in clock_gettime
5390do :
5391 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5392if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5393 cat >>confdefs.h <<_ACEOF
5394#define HAVE_CLOCK_GETTIME 1
5395_ACEOF
5396
5397fi
5398done
5399
5400 fi
5401
5402fi
5403done
5404
5405
5406for ac_func in nanosleep
5407do :
5408 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5409if test "x$ac_cv_func_nanosleep" = x""yes; then :
5410 cat >>confdefs.h <<_ACEOF
5411#define HAVE_NANOSLEEP 1
5412_ACEOF
5413
5414else
5415
5416 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5418$as_echo_n "checking for nanosleep in -lrt... " >&6; }
5419if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
5420 $as_echo_n "(cached) " >&6
5421else
5422 ac_check_lib_save_LIBS=$LIBS
5423LIBS="-lrt $LIBS"
5424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425/* end confdefs.h. */
5426
5427/* Override any GCC internal prototype to avoid an error.
5428 Use char because int might match the return type of a GCC
5429 builtin and then its argument prototype would still apply. */
5430#ifdef __cplusplus
5431extern "C"
5432#endif
5433char nanosleep ();
5434int
5435main ()
5436{
5437return nanosleep ();
5438 ;
5439 return 0;
5440}
5441_ACEOF
5442if ac_fn_cxx_try_link "$LINENO"; then :
5443 ac_cv_lib_rt_nanosleep=yes
5444else
5445 ac_cv_lib_rt_nanosleep=no
5446fi
5447rm -f core conftest.err conftest.$ac_objext \
5448 conftest$ac_exeext conftest.$ac_ext
5449LIBS=$ac_check_lib_save_LIBS
5450fi
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5452$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
5453if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
5454 cat >>confdefs.h <<_ACEOF
5455#define HAVE_LIBRT 1
5456_ACEOF
5457
5458 LIBS="-lrt $LIBS"
5459
5460fi
5461
5462 unset ac_cv_func_nanosleep
5463 for ac_func in nanosleep
5464do :
5465 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5466if test "x$ac_cv_func_nanosleep" = x""yes; then :
5467 cat >>confdefs.h <<_ACEOF
5468#define HAVE_NANOSLEEP 1
5469_ACEOF
5470
5471fi
5472done
5473
5474 fi
5475
5476fi
5477done
5478
5479
5480if test -z "$LIBEV_M4_AVOID_LIBM"; then
5481 LIBM=m
5482fi
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
5484$as_echo_n "checking for library containing floor... " >&6; }
5485if test "${ac_cv_search_floor+set}" = set; then :
5486 $as_echo_n "(cached) " >&6
5487else
5488 ac_func_search_save_LIBS=$LIBS
5489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490/* end confdefs.h. */
5491
5492/* Override any GCC internal prototype to avoid an error.
5493 Use char because int might match the return type of a GCC
5494 builtin and then its argument prototype would still apply. */
5495#ifdef __cplusplus
5496extern "C"
5497#endif
5498char floor ();
5499int
5500main ()
5501{
5502return floor ();
5503 ;
5504 return 0;
5505}
5506_ACEOF
5507for ac_lib in '' $LIBM; do
5508 if test -z "$ac_lib"; then
5509 ac_res="none required"
5510 else
5511 ac_res=-l$ac_lib
5512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5513 fi
5514 if ac_fn_cxx_try_link "$LINENO"; then :
5515 ac_cv_search_floor=$ac_res
5516fi
5517rm -f core conftest.err conftest.$ac_objext \
5518 conftest$ac_exeext
5519 if test "${ac_cv_search_floor+set}" = set; then :
5520 break
5521fi
5522done
5523if test "${ac_cv_search_floor+set}" = set; then :
5524
5525else
5526 ac_cv_search_floor=no
5527fi
5528rm conftest.$ac_ext
5529LIBS=$ac_func_search_save_LIBS
5530fi
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
5532$as_echo "$ac_cv_search_floor" >&6; }
5533ac_res=$ac_cv_search_floor
5534if test "$ac_res" != no; then :
5535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5536
5537$as_echo "#define HAVE_FLOOR 1" >>confdefs.h
5538
5539fi
5540
5541
5542
5543
5544
5545# Extract the first word of "tic", so it can be a program name with args.
5546set dummy tic; ac_word=$2
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548$as_echo_n "checking for $ac_word... " >&6; }
5549if test "${ac_cv_path_TIC+set}" = set; then :
5550 $as_echo_n "(cached) " >&6
5551else
5552 case $TIC in
5553 [\\/]* | ?:[\\/]*)
5554 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5555 ;;
5556 *)
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558for as_dir in $PATH
5559do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5564 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5567 fi
5568done
5569 done
5570IFS=$as_save_IFS
5571
5572 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5573 ;;
5574esac
5575fi
5576TIC=$ac_cv_path_TIC
5577if test -n "$TIC"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5
5579$as_echo "$TIC" >&6; }
5580else
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582$as_echo "no" >&6; }
5583fi
5584
5585
5586
5373{ echo "$as_me:$LINENO: checking for X" >&5 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5374echo $ECHO_N "checking for X... $ECHO_C" >&6; } 5588$as_echo_n "checking for X... " >&6; }
5375 5589
5376 5590
5377# Check whether --with-x was given. 5591# Check whether --with-x was given.
5378if test "${with_x+set}" = set; then 5592if test "${with_x+set}" = set; then :
5379 withval=$with_x; 5593 withval=$with_x;
5380fi 5594fi
5381 5595
5382# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 5596# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5383if test "x$with_x" = xno; then 5597if test "x$with_x" = xno; then
5384 # The user explicitly disabled X. 5598 # The user explicitly disabled X.
5385 have_x=disabled 5599 have_x=disabled
5386else 5600else
5387 case $x_includes,$x_libraries in #( 5601 case $x_includes,$x_libraries in #(
5388 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 5602 *\'*) 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 5603 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5392 echo $ECHO_N "(cached) $ECHO_C" >&6 5604 $as_echo_n "(cached) " >&6
5393else 5605else
5394 # One or both of the vars are not set, and there is no cached value. 5606 # One or both of the vars are not set, and there is no cached value.
5395ac_x_includes=no ac_x_libraries=no 5607ac_x_includes=no ac_x_libraries=no
5396rm -f -r conftest.dir 5608rm -f -r conftest.dir
5397if mkdir conftest.dir; then 5609if mkdir conftest.dir; then
5403 @echo usrlibdir='${USRLIBDIR}' 5615 @echo usrlibdir='${USRLIBDIR}'
5404libdir: 5616libdir:
5405 @echo libdir='${LIBDIR}' 5617 @echo libdir='${LIBDIR}'
5406_ACEOF 5618_ACEOF
5407 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 5619 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. 5620 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5409 for ac_var in incroot usrlibdir libdir; do 5621 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'\`" 5622 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5411 done 5623 done
5412 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 5624 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5413 for ac_extension in a so sl; do 5625 for ac_extension in a so sl dylib la dll; do
5414 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 5626 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5415 test -f "$ac_im_libdir/libX11.$ac_extension"; then 5627 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5416 ac_im_usrlibdir=$ac_im_libdir; break 5628 ac_im_usrlibdir=$ac_im_libdir; break
5417 fi 5629 fi
5418 done 5630 done
5422 case $ac_im_incroot in 5634 case $ac_im_incroot in
5423 /usr/include) ac_x_includes= ;; 5635 /usr/include) ac_x_includes= ;;
5424 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 5636 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5425 esac 5637 esac
5426 case $ac_im_usrlibdir in 5638 case $ac_im_usrlibdir in
5427 /usr/lib | /lib) ;; 5639 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5428 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 5640 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5429 esac 5641 esac
5430 fi 5642 fi
5431 cd .. 5643 cd ..
5432 rm -f -r conftest.dir 5644 rm -f -r conftest.dir
5434 5646
5435# Standard set of common directories for X headers. 5647# Standard set of common directories for X headers.
5436# Check X11 before X11Rn because it is often a symlink to the current release. 5648# Check X11 before X11Rn because it is often a symlink to the current release.
5437ac_x_header_dirs=' 5649ac_x_header_dirs='
5438/usr/X11/include 5650/usr/X11/include
5651/usr/X11R7/include
5439/usr/X11R6/include 5652/usr/X11R6/include
5440/usr/X11R5/include 5653/usr/X11R5/include
5441/usr/X11R4/include 5654/usr/X11R4/include
5442 5655
5443/usr/include/X11 5656/usr/include/X11
5657/usr/include/X11R7
5444/usr/include/X11R6 5658/usr/include/X11R6
5445/usr/include/X11R5 5659/usr/include/X11R5
5446/usr/include/X11R4 5660/usr/include/X11R4
5447 5661
5448/usr/local/X11/include 5662/usr/local/X11/include
5663/usr/local/X11R7/include
5449/usr/local/X11R6/include 5664/usr/local/X11R6/include
5450/usr/local/X11R5/include 5665/usr/local/X11R5/include
5451/usr/local/X11R4/include 5666/usr/local/X11R4/include
5452 5667
5453/usr/local/include/X11 5668/usr/local/include/X11
5669/usr/local/include/X11R7
5454/usr/local/include/X11R6 5670/usr/local/include/X11R6
5455/usr/local/include/X11R5 5671/usr/local/include/X11R5
5456/usr/local/include/X11R4 5672/usr/local/include/X11R4
5457 5673
5458/usr/X386/include 5674/usr/X386/include
5470/usr/openwin/share/include' 5686/usr/openwin/share/include'
5471 5687
5472if test "$ac_x_includes" = no; then 5688if test "$ac_x_includes" = no; then
5473 # Guess where to find include files, by looking for Xlib.h. 5689 # Guess where to find include files, by looking for Xlib.h.
5474 # First, try using that file with no special directory specified. 5690 # 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 5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479cat >>conftest.$ac_ext <<_ACEOF
5480/* end confdefs.h. */ 5692/* end confdefs.h. */
5481#include <X11/Xlib.h> 5693#include <X11/Xlib.h>
5482_ACEOF 5694_ACEOF
5483if { (ac_try="$ac_cpp conftest.$ac_ext" 5695if 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. 5696 # We can compile using X headers with no special include directory.
5500ac_x_includes= 5697ac_x_includes=
5501else 5698else
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 5699 for ac_dir in $ac_x_header_dirs; do
5506 if test -r "$ac_dir/X11/Xlib.h"; then 5700 if test -r "$ac_dir/X11/Xlib.h"; then
5507 ac_x_includes=$ac_dir 5701 ac_x_includes=$ac_dir
5508 break 5702 break
5509 fi 5703 fi
5510done 5704done
5511fi 5705fi
5512
5513rm -f conftest.err conftest.$ac_ext 5706rm -f conftest.err conftest.i conftest.$ac_ext
5514fi # $ac_x_includes = no 5707fi # $ac_x_includes = no
5515 5708
5516if test "$ac_x_libraries" = no; then 5709if test "$ac_x_libraries" = no; then
5517 # Check for the libraries. 5710 # Check for the libraries.
5518 # See if we find them without any special options. 5711 # See if we find them without any special options.
5519 # Don't add to $LIBS permanently. 5712 # Don't add to $LIBS permanently.
5520 ac_save_LIBS=$LIBS 5713 ac_save_LIBS=$LIBS
5521 LIBS="-lX11 $LIBS" 5714 LIBS="-lX11 $LIBS"
5522 cat >conftest.$ac_ext <<_ACEOF
5523/* confdefs.h. */
5524_ACEOF
5525cat confdefs.h >>conftest.$ac_ext 5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526cat >>conftest.$ac_ext <<_ACEOF
5527/* end confdefs.h. */ 5716/* end confdefs.h. */
5528#include <X11/Xlib.h> 5717#include <X11/Xlib.h>
5529int 5718int
5530main () 5719main ()
5531{ 5720{
5532XrmInitialize () 5721XrmInitialize ()
5533 ; 5722 ;
5534 return 0; 5723 return 0;
5535} 5724}
5536_ACEOF 5725_ACEOF
5537rm -f conftest.$ac_objext conftest$ac_exeext 5726if 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 5727 LIBS=$ac_save_LIBS
5556# We can link X programs with no special library path. 5728# We can link X programs with no special library path.
5557ac_x_libraries= 5729ac_x_libraries=
5558else 5730else
5559 echo "$as_me: failed program was:" >&5
5560sed 's/^/| /' conftest.$ac_ext >&5
5561
5562 LIBS=$ac_save_LIBS 5731 LIBS=$ac_save_LIBS
5563for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5732for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5564do 5733do
5565 # Don't even attempt the hair of trying to link an X program! 5734 # Don't even attempt the hair of trying to link an X program!
5566 for ac_extension in a so sl; do 5735 for ac_extension in a so sl dylib la dll; do
5567 if test -r "$ac_dir/libX11.$ac_extension"; then 5736 if test -r "$ac_dir/libX11.$ac_extension"; then
5568 ac_x_libraries=$ac_dir 5737 ac_x_libraries=$ac_dir
5569 break 2 5738 break 2
5570 fi 5739 fi
5571 done 5740 done
5572done 5741done
5573fi 5742fi
5574
5575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5743rm -f core conftest.err conftest.$ac_objext \
5576 conftest$ac_exeext conftest.$ac_ext 5744 conftest$ac_exeext conftest.$ac_ext
5577fi # $ac_x_libraries = no 5745fi # $ac_x_libraries = no
5578 5746
5579case $ac_x_includes,$ac_x_libraries in #( 5747case $ac_x_includes,$ac_x_libraries in #(
5580 no,* | *,no | *\'*) 5748 no,* | *,no | *\'*)
5581 # Didn't find X, or a directory has "'" in its name. 5749 # Didn't find X, or a directory has "'" in its name.
5592 esac 5760 esac
5593 eval "$ac_cv_have_x" 5761 eval "$ac_cv_have_x"
5594fi # $with_x != no 5762fi # $with_x != no
5595 5763
5596if test "$have_x" != yes; then 5764if test "$have_x" != yes; then
5597 { echo "$as_me:$LINENO: result: $have_x" >&5 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5598echo "${ECHO_T}$have_x" >&6; } 5766$as_echo "$have_x" >&6; }
5599 no_x=yes 5767 no_x=yes
5600else 5768else
5601 # If each of the values was on the command line, it overrides each guess. 5769 # 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 5770 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5603 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5771 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5604 # Update the cache value to reflect the command line values. 5772 # Update the cache value to reflect the command line values.
5605 ac_cv_have_x="have_x=yes\ 5773 ac_cv_have_x="have_x=yes\
5606 ac_x_includes='$x_includes'\ 5774 ac_x_includes='$x_includes'\
5607 ac_x_libraries='$x_libraries'" 5775 ac_x_libraries='$x_libraries'"
5608 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 5776 { $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; } 5777$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5610fi 5778fi
5611 5779
5612if test "$no_x" = yes; then 5780if test "$no_x" = yes; then
5613 # Not all programs may use this symbol, but it does not hurt to define it. 5781 # Not all programs may use this symbol, but it does not hurt to define it.
5614 5782
5615cat >>confdefs.h <<\_ACEOF 5783$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5616#define X_DISPLAY_MISSING 1
5617_ACEOF
5618 5784
5619 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 5785 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5620else 5786else
5621 if test -n "$x_includes"; then 5787 if test -n "$x_includes"; then
5622 X_CFLAGS="$X_CFLAGS -I$x_includes" 5788 X_CFLAGS="$X_CFLAGS -I$x_includes"
5625 # It would also be nice to do this for all -L options, not just this one. 5791 # It would also be nice to do this for all -L options, not just this one.
5626 if test -n "$x_libraries"; then 5792 if test -n "$x_libraries"; then
5627 X_LIBS="$X_LIBS -L$x_libraries" 5793 X_LIBS="$X_LIBS -L$x_libraries"
5628 # For Solaris; some versions of Sun CC require a space after -R and 5794 # For Solaris; some versions of Sun CC require a space after -R and
5629 # others require no space. Words are not sufficient . . . . 5795 # others require no space. Words are not sufficient . . . .
5630 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 5796 { $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; } 5797$as_echo_n "checking whether -R must be followed by a space... " >&6; }
5632 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 5798 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5633 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 5799 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
5634 ac_cxx_werror_flag=yes 5800 ac_cxx_werror_flag=yes
5635 cat >conftest.$ac_ext <<_ACEOF
5636/* confdefs.h. */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext 5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h. */ 5802/* end confdefs.h. */
5641 5803
5642int 5804int
5643main () 5805main ()
5644{ 5806{
5645 5807
5646 ; 5808 ;
5647 return 0; 5809 return 0;
5648} 5810}
5649_ACEOF 5811_ACEOF
5650rm -f conftest.$ac_objext conftest$ac_exeext 5812if 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 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669echo "${ECHO_T}no" >&6; } 5814$as_echo "no" >&6; }
5670 X_LIBS="$X_LIBS -R$x_libraries" 5815 X_LIBS="$X_LIBS -R$x_libraries"
5671else 5816else
5672 echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
5675 LIBS="$ac_xsave_LIBS -R $x_libraries" 5817 LIBS="$ac_xsave_LIBS -R $x_libraries"
5676 cat >conftest.$ac_ext <<_ACEOF
5677/* confdefs.h. */
5678_ACEOF
5679cat confdefs.h >>conftest.$ac_ext 5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680cat >>conftest.$ac_ext <<_ACEOF
5681/* end confdefs.h. */ 5819/* end confdefs.h. */
5682 5820
5683int 5821int
5684main () 5822main ()
5685{ 5823{
5686 5824
5687 ; 5825 ;
5688 return 0; 5826 return 0;
5689} 5827}
5690_ACEOF 5828_ACEOF
5691rm -f conftest.$ac_objext conftest$ac_exeext 5829if 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 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5710echo "${ECHO_T}yes" >&6; } 5831$as_echo "yes" >&6; }
5711 X_LIBS="$X_LIBS -R $x_libraries" 5832 X_LIBS="$X_LIBS -R $x_libraries"
5712else 5833else
5713 echo "$as_me: failed program was:" >&5
5714sed 's/^/| /' conftest.$ac_ext >&5
5715
5716 { echo "$as_me:$LINENO: result: neither works" >&5 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5717echo "${ECHO_T}neither works" >&6; } 5835$as_echo "neither works" >&6; }
5718fi 5836fi
5719
5720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5837rm -f core conftest.err conftest.$ac_objext \
5721 conftest$ac_exeext conftest.$ac_ext 5838 conftest$ac_exeext conftest.$ac_ext
5722fi 5839fi
5723
5724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5840rm -f core conftest.err conftest.$ac_objext \
5725 conftest$ac_exeext conftest.$ac_ext 5841 conftest$ac_exeext conftest.$ac_ext
5726 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 5842 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5727 LIBS=$ac_xsave_LIBS 5843 LIBS=$ac_xsave_LIBS
5728 fi 5844 fi
5729 5845
5730 # Check for system-dependent libraries X programs must link with. 5846 # Check for system-dependent libraries X programs must link with.
5736 else 5852 else
5737 # Martyn Johnson says this is needed for Ultrix, if the X 5853 # Martyn Johnson says this is needed for Ultrix, if the X
5738 # libraries were built with DECnet support. And Karl Berry says 5854 # libraries were built with DECnet support. And Karl Berry says
5739 # the Alpha needs dnet_stub (dnet does not exist). 5855 # the Alpha needs dnet_stub (dnet does not exist).
5740 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 5856 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 5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745cat >>conftest.$ac_ext <<_ACEOF
5746/* end confdefs.h. */ 5858/* end confdefs.h. */
5747 5859
5748/* Override any GCC internal prototype to avoid an error. 5860/* Override any GCC internal prototype to avoid an error.
5749 Use char because int might match the return type of a GCC 5861 Use char because int might match the return type of a GCC
5750 builtin and then its argument prototype would still apply. */ 5862 builtin and then its argument prototype would still apply. */
5758return XOpenDisplay (); 5870return XOpenDisplay ();
5759 ; 5871 ;
5760 return 0; 5872 return 0;
5761} 5873}
5762_ACEOF 5874_ACEOF
5763rm -f conftest.$ac_objext conftest$ac_exeext 5875if 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 5876
5877else
5786 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 5878 { $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; } 5879$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5788if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 5880if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5789 echo $ECHO_N "(cached) $ECHO_C" >&6 5881 $as_echo_n "(cached) " >&6
5790else 5882else
5791 ac_check_lib_save_LIBS=$LIBS 5883 ac_check_lib_save_LIBS=$LIBS
5792LIBS="-ldnet $LIBS" 5884LIBS="-ldnet $LIBS"
5793cat >conftest.$ac_ext <<_ACEOF
5794/* confdefs.h. */
5795_ACEOF
5796cat confdefs.h >>conftest.$ac_ext 5885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797cat >>conftest.$ac_ext <<_ACEOF
5798/* end confdefs.h. */ 5886/* end confdefs.h. */
5799 5887
5800/* Override any GCC internal prototype to avoid an error. 5888/* Override any GCC internal prototype to avoid an error.
5801 Use char because int might match the return type of a GCC 5889 Use char because int might match the return type of a GCC
5802 builtin and then its argument prototype would still apply. */ 5890 builtin and then its argument prototype would still apply. */
5810return dnet_ntoa (); 5898return dnet_ntoa ();
5811 ; 5899 ;
5812 return 0; 5900 return 0;
5813} 5901}
5814_ACEOF 5902_ACEOF
5815rm -f conftest.$ac_objext conftest$ac_exeext 5903if 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 5904 ac_cv_lib_dnet_dnet_ntoa=yes
5834else 5905else
5835 echo "$as_me: failed program was:" >&5
5836sed 's/^/| /' conftest.$ac_ext >&5
5837
5838 ac_cv_lib_dnet_dnet_ntoa=no 5906 ac_cv_lib_dnet_dnet_ntoa=no
5839fi 5907fi
5840
5841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5908rm -f core conftest.err conftest.$ac_objext \
5842 conftest$ac_exeext conftest.$ac_ext 5909 conftest$ac_exeext conftest.$ac_ext
5843LIBS=$ac_check_lib_save_LIBS 5910LIBS=$ac_check_lib_save_LIBS
5844fi 5911fi
5845{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 5912{ $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; } 5913$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5847if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 5914if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5848 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 5915 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5849fi 5916fi
5850 5917
5851 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5918 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5852 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 5919 { $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; } 5920$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5854if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 5921if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5855 echo $ECHO_N "(cached) $ECHO_C" >&6 5922 $as_echo_n "(cached) " >&6
5856else 5923else
5857 ac_check_lib_save_LIBS=$LIBS 5924 ac_check_lib_save_LIBS=$LIBS
5858LIBS="-ldnet_stub $LIBS" 5925LIBS="-ldnet_stub $LIBS"
5859cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h. */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext 5926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h. */ 5927/* end confdefs.h. */
5865 5928
5866/* Override any GCC internal prototype to avoid an error. 5929/* Override any GCC internal prototype to avoid an error.
5867 Use char because int might match the return type of a GCC 5930 Use char because int might match the return type of a GCC
5868 builtin and then its argument prototype would still apply. */ 5931 builtin and then its argument prototype would still apply. */
5876return dnet_ntoa (); 5939return dnet_ntoa ();
5877 ; 5940 ;
5878 return 0; 5941 return 0;
5879} 5942}
5880_ACEOF 5943_ACEOF
5881rm -f conftest.$ac_objext conftest$ac_exeext 5944if 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 5945 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5900else 5946else
5901 echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
5904 ac_cv_lib_dnet_stub_dnet_ntoa=no 5947 ac_cv_lib_dnet_stub_dnet_ntoa=no
5905fi 5948fi
5906
5907rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5949rm -f core conftest.err conftest.$ac_objext \
5908 conftest$ac_exeext conftest.$ac_ext 5950 conftest$ac_exeext conftest.$ac_ext
5909LIBS=$ac_check_lib_save_LIBS 5951LIBS=$ac_check_lib_save_LIBS
5910fi 5952fi
5911{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 5953{ $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; } 5954$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5913if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 5955if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5914 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 5956 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5915fi 5957fi
5916 5958
5917 fi 5959 fi
5918fi 5960fi
5919
5920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5961rm -f core conftest.err conftest.$ac_objext \
5921 conftest$ac_exeext conftest.$ac_ext 5962 conftest$ac_exeext conftest.$ac_ext
5922 LIBS="$ac_xsave_LIBS" 5963 LIBS="$ac_xsave_LIBS"
5923 5964
5924 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 5965 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5925 # to get the SysV transport functions. 5966 # to get the SysV transport functions.
5926 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 5967 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5927 # needs -lnsl. 5968 # needs -lnsl.
5928 # The nsl library prevents programs from opening the X display 5969 # The nsl library prevents programs from opening the X display
5929 # on Irix 5.2, according to T.E. Dickey. 5970 # on Irix 5.2, according to T.E. Dickey.
5930 # The functions gethostbyname, getservbyname, and inet_addr are 5971 # The functions gethostbyname, getservbyname, and inet_addr are
5931 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 5972 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5932 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5973 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 5974if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936else
5937 cat >conftest.$ac_ext <<_ACEOF
5938/* confdefs.h. */
5939_ACEOF
5940cat confdefs.h >>conftest.$ac_ext
5941cat >>conftest.$ac_ext <<_ACEOF
5942/* end confdefs.h. */
5943/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5945#define gethostbyname innocuous_gethostbyname
5946 5975
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 5976fi
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 5977
6014 if test $ac_cv_func_gethostbyname = no; then 5978 if test $ac_cv_func_gethostbyname = no; then
6015 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6016echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5980$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6017if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5981if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6018 echo $ECHO_N "(cached) $ECHO_C" >&6 5982 $as_echo_n "(cached) " >&6
6019else 5983else
6020 ac_check_lib_save_LIBS=$LIBS 5984 ac_check_lib_save_LIBS=$LIBS
6021LIBS="-lnsl $LIBS" 5985LIBS="-lnsl $LIBS"
6022cat >conftest.$ac_ext <<_ACEOF
6023/* confdefs.h. */
6024_ACEOF
6025cat confdefs.h >>conftest.$ac_ext 5986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026cat >>conftest.$ac_ext <<_ACEOF
6027/* end confdefs.h. */ 5987/* end confdefs.h. */
6028 5988
6029/* Override any GCC internal prototype to avoid an error. 5989/* Override any GCC internal prototype to avoid an error.
6030 Use char because int might match the return type of a GCC 5990 Use char because int might match the return type of a GCC
6031 builtin and then its argument prototype would still apply. */ 5991 builtin and then its argument prototype would still apply. */
6039return gethostbyname (); 5999return gethostbyname ();
6040 ; 6000 ;
6041 return 0; 6001 return 0;
6042} 6002}
6043_ACEOF 6003_ACEOF
6044rm -f conftest.$ac_objext conftest$ac_exeext 6004if 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 6005 ac_cv_lib_nsl_gethostbyname=yes
6063else 6006else
6064 echo "$as_me: failed program was:" >&5
6065sed 's/^/| /' conftest.$ac_ext >&5
6066
6067 ac_cv_lib_nsl_gethostbyname=no 6007 ac_cv_lib_nsl_gethostbyname=no
6068fi 6008fi
6069
6070rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6009rm -f core conftest.err conftest.$ac_objext \
6071 conftest$ac_exeext conftest.$ac_ext 6010 conftest$ac_exeext conftest.$ac_ext
6072LIBS=$ac_check_lib_save_LIBS 6011LIBS=$ac_check_lib_save_LIBS
6073fi 6012fi
6074{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6075echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 6014$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6076if test $ac_cv_lib_nsl_gethostbyname = yes; then 6015if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6077 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6016 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6078fi 6017fi
6079 6018
6080 if test $ac_cv_lib_nsl_gethostbyname = no; then 6019 if test $ac_cv_lib_nsl_gethostbyname = no; then
6081 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6082echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 6021$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6083if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 6022if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
6084 echo $ECHO_N "(cached) $ECHO_C" >&6 6023 $as_echo_n "(cached) " >&6
6085else 6024else
6086 ac_check_lib_save_LIBS=$LIBS 6025 ac_check_lib_save_LIBS=$LIBS
6087LIBS="-lbsd $LIBS" 6026LIBS="-lbsd $LIBS"
6088cat >conftest.$ac_ext <<_ACEOF
6089/* confdefs.h. */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext 6027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h. */ 6028/* end confdefs.h. */
6094 6029
6095/* Override any GCC internal prototype to avoid an error. 6030/* Override any GCC internal prototype to avoid an error.
6096 Use char because int might match the return type of a GCC 6031 Use char because int might match the return type of a GCC
6097 builtin and then its argument prototype would still apply. */ 6032 builtin and then its argument prototype would still apply. */
6105return gethostbyname (); 6040return gethostbyname ();
6106 ; 6041 ;
6107 return 0; 6042 return 0;
6108} 6043}
6109_ACEOF 6044_ACEOF
6110rm -f conftest.$ac_objext conftest$ac_exeext 6045if 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 6046 ac_cv_lib_bsd_gethostbyname=yes
6129else 6047else
6130 echo "$as_me: failed program was:" >&5
6131sed 's/^/| /' conftest.$ac_ext >&5
6132
6133 ac_cv_lib_bsd_gethostbyname=no 6048 ac_cv_lib_bsd_gethostbyname=no
6134fi 6049fi
6135
6136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6050rm -f core conftest.err conftest.$ac_objext \
6137 conftest$ac_exeext conftest.$ac_ext 6051 conftest$ac_exeext conftest.$ac_ext
6138LIBS=$ac_check_lib_save_LIBS 6052LIBS=$ac_check_lib_save_LIBS
6139fi 6053fi
6140{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 6054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6141echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 6055$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6142if test $ac_cv_lib_bsd_gethostbyname = yes; then 6056if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
6143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6057 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6144fi 6058fi
6145 6059
6146 fi 6060 fi
6147 fi 6061 fi
6151 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 6065 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6152 # on later versions), says Simon Leinen: it contains gethostby* 6066 # on later versions), says Simon Leinen: it contains gethostby*
6153 # variants that don't use the name server (or something). -lsocket 6067 # variants that don't use the name server (or something). -lsocket
6154 # must be given before -lnsl if both are needed. We assume that 6068 # must be given before -lnsl if both are needed. We assume that
6155 # if connect needs -lnsl, so does gethostbyname. 6069 # if connect needs -lnsl, so does gethostbyname.
6156 { echo "$as_me:$LINENO: checking for connect" >&5 6070 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6157echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 6071if test "x$ac_cv_func_connect" = x""yes; then :
6158if test "${ac_cv_func_connect+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160else
6161 cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h. */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h. */
6167/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6169#define connect innocuous_connect
6170 6072
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 6073fi
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 6074
6238 if test $ac_cv_func_connect = no; then 6075 if test $ac_cv_func_connect = no; then
6239 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6240echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 6077$as_echo_n "checking for connect in -lsocket... " >&6; }
6241if test "${ac_cv_lib_socket_connect+set}" = set; then 6078if test "${ac_cv_lib_socket_connect+set}" = set; then :
6242 echo $ECHO_N "(cached) $ECHO_C" >&6 6079 $as_echo_n "(cached) " >&6
6243else 6080else
6244 ac_check_lib_save_LIBS=$LIBS 6081 ac_check_lib_save_LIBS=$LIBS
6245LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6082LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6246cat >conftest.$ac_ext <<_ACEOF
6247/* confdefs.h. */
6248_ACEOF
6249cat confdefs.h >>conftest.$ac_ext 6083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250cat >>conftest.$ac_ext <<_ACEOF
6251/* end confdefs.h. */ 6084/* end confdefs.h. */
6252 6085
6253/* Override any GCC internal prototype to avoid an error. 6086/* Override any GCC internal prototype to avoid an error.
6254 Use char because int might match the return type of a GCC 6087 Use char because int might match the return type of a GCC
6255 builtin and then its argument prototype would still apply. */ 6088 builtin and then its argument prototype would still apply. */
6263return connect (); 6096return connect ();
6264 ; 6097 ;
6265 return 0; 6098 return 0;
6266} 6099}
6267_ACEOF 6100_ACEOF
6268rm -f conftest.$ac_objext conftest$ac_exeext 6101if 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 6102 ac_cv_lib_socket_connect=yes
6287else 6103else
6288 echo "$as_me: failed program was:" >&5
6289sed 's/^/| /' conftest.$ac_ext >&5
6290
6291 ac_cv_lib_socket_connect=no 6104 ac_cv_lib_socket_connect=no
6292fi 6105fi
6293
6294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6106rm -f core conftest.err conftest.$ac_objext \
6295 conftest$ac_exeext conftest.$ac_ext 6107 conftest$ac_exeext conftest.$ac_ext
6296LIBS=$ac_check_lib_save_LIBS 6108LIBS=$ac_check_lib_save_LIBS
6297fi 6109fi
6298{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 6110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6299echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 6111$as_echo "$ac_cv_lib_socket_connect" >&6; }
6300if test $ac_cv_lib_socket_connect = yes; then 6112if test "x$ac_cv_lib_socket_connect" = x""yes; then :
6301 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6113 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6302fi 6114fi
6303 6115
6304 fi 6116 fi
6305 6117
6306 # Guillermo Gomez says -lposix is necessary on A/UX. 6118 # Guillermo Gomez says -lposix is necessary on A/UX.
6307 { echo "$as_me:$LINENO: checking for remove" >&5 6119 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6308echo $ECHO_N "checking for remove... $ECHO_C" >&6; } 6120if test "x$ac_cv_func_remove" = x""yes; then :
6309if test "${ac_cv_func_remove+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311else
6312 cat >conftest.$ac_ext <<_ACEOF
6313/* confdefs.h. */
6314_ACEOF
6315cat confdefs.h >>conftest.$ac_ext
6316cat >>conftest.$ac_ext <<_ACEOF
6317/* end confdefs.h. */
6318/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6320#define remove innocuous_remove
6321 6121
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 6122fi
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 6123
6389 if test $ac_cv_func_remove = no; then 6124 if test $ac_cv_func_remove = no; then
6390 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6391echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 6126$as_echo_n "checking for remove in -lposix... " >&6; }
6392if test "${ac_cv_lib_posix_remove+set}" = set; then 6127if test "${ac_cv_lib_posix_remove+set}" = set; then :
6393 echo $ECHO_N "(cached) $ECHO_C" >&6 6128 $as_echo_n "(cached) " >&6
6394else 6129else
6395 ac_check_lib_save_LIBS=$LIBS 6130 ac_check_lib_save_LIBS=$LIBS
6396LIBS="-lposix $LIBS" 6131LIBS="-lposix $LIBS"
6397cat >conftest.$ac_ext <<_ACEOF
6398/* confdefs.h. */
6399_ACEOF
6400cat confdefs.h >>conftest.$ac_ext 6132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401cat >>conftest.$ac_ext <<_ACEOF
6402/* end confdefs.h. */ 6133/* end confdefs.h. */
6403 6134
6404/* Override any GCC internal prototype to avoid an error. 6135/* Override any GCC internal prototype to avoid an error.
6405 Use char because int might match the return type of a GCC 6136 Use char because int might match the return type of a GCC
6406 builtin and then its argument prototype would still apply. */ 6137 builtin and then its argument prototype would still apply. */
6414return remove (); 6145return remove ();
6415 ; 6146 ;
6416 return 0; 6147 return 0;
6417} 6148}
6418_ACEOF 6149_ACEOF
6419rm -f conftest.$ac_objext conftest$ac_exeext 6150if 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 6151 ac_cv_lib_posix_remove=yes
6438else 6152else
6439 echo "$as_me: failed program was:" >&5
6440sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 ac_cv_lib_posix_remove=no 6153 ac_cv_lib_posix_remove=no
6443fi 6154fi
6444
6445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6155rm -f core conftest.err conftest.$ac_objext \
6446 conftest$ac_exeext conftest.$ac_ext 6156 conftest$ac_exeext conftest.$ac_ext
6447LIBS=$ac_check_lib_save_LIBS 6157LIBS=$ac_check_lib_save_LIBS
6448fi 6158fi
6449{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 6159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6450echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 6160$as_echo "$ac_cv_lib_posix_remove" >&6; }
6451if test $ac_cv_lib_posix_remove = yes; then 6161if test "x$ac_cv_lib_posix_remove" = x""yes; then :
6452 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 6162 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6453fi 6163fi
6454 6164
6455 fi 6165 fi
6456 6166
6457 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6167 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6458 { echo "$as_me:$LINENO: checking for shmat" >&5 6168 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6459echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } 6169if test "x$ac_cv_func_shmat" = x""yes; then :
6460if test "${ac_cv_func_shmat+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
6463 cat >conftest.$ac_ext <<_ACEOF
6464/* confdefs.h. */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h. */
6469/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6471#define shmat innocuous_shmat
6472 6170
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 6171fi
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 6172
6540 if test $ac_cv_func_shmat = no; then 6173 if test $ac_cv_func_shmat = no; then
6541 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6542echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 6175$as_echo_n "checking for shmat in -lipc... " >&6; }
6543if test "${ac_cv_lib_ipc_shmat+set}" = set; then 6176if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
6544 echo $ECHO_N "(cached) $ECHO_C" >&6 6177 $as_echo_n "(cached) " >&6
6545else 6178else
6546 ac_check_lib_save_LIBS=$LIBS 6179 ac_check_lib_save_LIBS=$LIBS
6547LIBS="-lipc $LIBS" 6180LIBS="-lipc $LIBS"
6548cat >conftest.$ac_ext <<_ACEOF
6549/* confdefs.h. */
6550_ACEOF
6551cat confdefs.h >>conftest.$ac_ext 6181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552cat >>conftest.$ac_ext <<_ACEOF
6553/* end confdefs.h. */ 6182/* end confdefs.h. */
6554 6183
6555/* Override any GCC internal prototype to avoid an error. 6184/* Override any GCC internal prototype to avoid an error.
6556 Use char because int might match the return type of a GCC 6185 Use char because int might match the return type of a GCC
6557 builtin and then its argument prototype would still apply. */ 6186 builtin and then its argument prototype would still apply. */
6565return shmat (); 6194return shmat ();
6566 ; 6195 ;
6567 return 0; 6196 return 0;
6568} 6197}
6569_ACEOF 6198_ACEOF
6570rm -f conftest.$ac_objext conftest$ac_exeext 6199if 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 6200 ac_cv_lib_ipc_shmat=yes
6589else 6201else
6590 echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_cv_lib_ipc_shmat=no 6202 ac_cv_lib_ipc_shmat=no
6594fi 6203fi
6595
6596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6204rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext 6205 conftest$ac_exeext conftest.$ac_ext
6598LIBS=$ac_check_lib_save_LIBS 6206LIBS=$ac_check_lib_save_LIBS
6599fi 6207fi
6600{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 6208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6601echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 6209$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6602if test $ac_cv_lib_ipc_shmat = yes; then 6210if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
6603 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6211 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6604fi 6212fi
6605 6213
6606 fi 6214 fi
6607 fi 6215 fi
6613 # check for ICE first), but we must link in the order -lSM -lICE or 6221 # 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. 6222 # 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 6223 # These have to be linked with before -lX11, unlike the other
6616 # libraries we check for below, so use a different variable. 6224 # libraries we check for below, so use a different variable.
6617 # John Interrante, Karl Berry 6225 # John Interrante, Karl Berry
6618 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6619echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 6227$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6620if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 6228if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
6621 echo $ECHO_N "(cached) $ECHO_C" >&6 6229 $as_echo_n "(cached) " >&6
6622else 6230else
6623 ac_check_lib_save_LIBS=$LIBS 6231 ac_check_lib_save_LIBS=$LIBS
6624LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6232LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6625cat >conftest.$ac_ext <<_ACEOF
6626/* confdefs.h. */
6627_ACEOF
6628cat confdefs.h >>conftest.$ac_ext 6233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629cat >>conftest.$ac_ext <<_ACEOF
6630/* end confdefs.h. */ 6234/* end confdefs.h. */
6631 6235
6632/* Override any GCC internal prototype to avoid an error. 6236/* Override any GCC internal prototype to avoid an error.
6633 Use char because int might match the return type of a GCC 6237 Use char because int might match the return type of a GCC
6634 builtin and then its argument prototype would still apply. */ 6238 builtin and then its argument prototype would still apply. */
6642return IceConnectionNumber (); 6246return IceConnectionNumber ();
6643 ; 6247 ;
6644 return 0; 6248 return 0;
6645} 6249}
6646_ACEOF 6250_ACEOF
6647rm -f conftest.$ac_objext conftest$ac_exeext 6251if ac_fn_cxx_try_link "$LINENO"; then :
6648if { (ac_try="$ac_link" 6252 ac_cv_lib_ICE_IceConnectionNumber=yes
6649case "(($ac_try" in 6253else
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6254 ac_cv_lib_ICE_IceConnectionNumber=no
6651 *) ac_try_echo=$ac_try;; 6255fi
6256rm -f core conftest.err conftest.$ac_objext \
6257 conftest$ac_exeext conftest.$ac_ext
6258LIBS=$ac_check_lib_save_LIBS
6259fi
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6261$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6262if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
6263 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6264fi
6265
6266 LDFLAGS=$ac_save_LDFLAGS
6267
6268fi
6269
6270
6271image_lib=none
6272
6273PIXBUF_CFLAGS=
6274PIXBUF_LIBS=
6275
6276if test x$support_pixbuf = xyes; then
6277 support_pixbuf=no
6278 # Extract the first word of "pkg-config", so it can be a program name with args.
6279set dummy pkg-config; ac_word=$2
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281$as_echo_n "checking for $ac_word... " >&6; }
6282if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6283 $as_echo_n "(cached) " >&6
6284else
6285 case $PKG_CONFIG in
6286 [\\/]* | ?:[\\/]*)
6287 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6288 ;;
6289 *)
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301done
6302 done
6303IFS=$as_save_IFS
6304
6305 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6306 ;;
6652esac 6307esac
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 6308fi
6672 6309PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6310if test -n "$PKG_CONFIG"; then
6674 conftest$ac_exeext conftest.$ac_ext 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6675LIBS=$ac_check_lib_save_LIBS 6312$as_echo "$PKG_CONFIG" >&6; }
6313else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315$as_echo "no" >&6; }
6676fi 6316fi
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 6317
6683 LDFLAGS=$ac_save_LDFLAGS
6684 6318
6685fi 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5
6320$as_echo_n "checking for gdk-pixbuf... " >&6; }
6321 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
6322 PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`"
6323 PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`"
6324 support_pixbuf=yes
6325 fi
6686 6326
6687
6688
6689if test x$support_xpm = xyes; then 6327 if test x$support_pixbuf = xyes; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6329$as_echo "ok" >&6; }
6330 image_lib=gdk-pixbuf
6331 support_afterimage=no
6690 6332
6333$as_echo "#define HAVE_PIXBUF 1" >>confdefs.h
6691 6334
6692 6335
6693# Initialize some more variables set by options. 6336$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 6337
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 6338 else
6738 vt_xpm_includes=NO 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340$as_echo "no" >&6; }
6739 fi 6341 fi
6740 if test -n "$xpm_libraries"; then 6342fi
6741 vt_xpm_libraries=$xpm_libraries 6343
6344
6345
6346
6347STARTUP_NOTIFICATION_CFLAGS=
6348STARTUP_NOTIFICATION_LIBS=
6349
6350if test x$support_startup_notification = xyes; then
6351 support_startup_notification=no
6352 # Extract the first word of "pkg-config", so it can be a program name with args.
6353set dummy pkg-config; ac_word=$2
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355$as_echo_n "checking for $ac_word... " >&6; }
6356if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6357 $as_echo_n "(cached) " >&6
6358else
6359 case $PKG_CONFIG in
6360 [\\/]* | ?:[\\/]*)
6361 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6362 ;;
6363 *)
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365for as_dir in $PATH
6366do
6367 IFS=$as_save_IFS
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 break 2
6374 fi
6375done
6376 done
6377IFS=$as_save_IFS
6378
6379 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6380 ;;
6381esac
6382fi
6383PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6384if test -n "$PKG_CONFIG"; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6386$as_echo "$PKG_CONFIG" >&6; }
6387else
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389$as_echo "no" >&6; }
6390fi
6391
6392
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5
6394$as_echo_n "checking for libstartup-notification... " >&6; }
6395 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
6396 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`"
6397 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`"
6398 support_startup_notification=yes
6399 fi
6400
6401 if test x$support_startup_notification = xyes; then
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6403$as_echo "ok" >&6; }
6404
6405$as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
6406
6742 else 6407 else
6743 vt_xpm_libraries=NO 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409$as_echo "no" >&6; }
6744 fi 6410 fi
6411fi
6745 6412
6746 if test "$vt_xpm_includes" = NO; then
6747 # Guess where to find xpm.h
6748 6413
6749ac_save_CPPFLAGS="$CPPFLAGS"
6750CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6751 6414
6752 # First, try using that file with no special directory specified. 6415
6753cat >conftest.$ac_ext <<_ACEOF 6416AFTERIMAGE_CFLAGS=
6754/* confdefs.h. */ 6417AFTERIMAGE_LIBS=
6755_ACEOF 6418
6756cat confdefs.h >>conftest.$ac_ext 6419if test x$support_afterimage = xyes; then
6757cat >>conftest.$ac_ext <<_ACEOF 6420 support_afterimage=no
6758/* end confdefs.h. */ 6421
6759#include <X11/xpm.h> 6422 if test "x$afterimage_config" = "x" ; then
6760_ACEOF 6423 # Extract the first word of "afterimage-config", so it can be a program name with args.
6761if { (ac_try="$ac_cpp conftest.$ac_ext" 6424set dummy afterimage-config; ac_word=$2
6762case "(($ac_try" in 6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6426$as_echo_n "checking for $ac_word... " >&6; }
6764 *) ac_try_echo=$ac_try;; 6427if test "${ac_cv_path_afterimage_config+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6429else
6430 case $afterimage_config in
6431 [\\/]* | ?:[\\/]*)
6432 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6433 ;;
6434 *)
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436for as_dir in $PATH
6437do
6438 IFS=$as_save_IFS
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6442 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6444 break 2
6445 fi
6446done
6447 done
6448IFS=$as_save_IFS
6449
6450 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6451 ;;
6765esac 6452esac
6766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6453fi
6767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6454afterimage_config=$ac_cv_path_afterimage_config
6768 ac_status=$? 6455if test -n "$afterimage_config"; then
6769 grep -v '^ *+' conftest.er1 >conftest.err 6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afterimage_config" >&5
6770 rm -f conftest.er1 6457$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 6458else
6781 echo "$as_me: failed program was:" >&5 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782sed 's/^/| /' conftest.$ac_ext >&5 6460$as_echo "no" >&6; }
6461fi
6783 6462
6784 CPPFLAGS="$ac_save_CPPFLAGS" 6463
6785# Look for the header file in a standard set of common directories. 6464 fi
6786 for ac_dir in \ 6465 if test "x$afterimage_config" != "xno" ; then
6787 /usr/X11/include \ 6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5
6788 /usr/X11R6/include \ 6467$as_echo_n "checking for libAfterImage version >= 1.15... " >&6; }
6789 /usr/X11R5/include \ 6468 AFTERIMAGE_VERSION=`$afterimage_config --version`
6790 /usr/X11R4/include \ 6469 if test -n "$AFTERIMAGE_VERSION" ; then
6791 \ 6470 AFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6792 /usr/include/X11 \ 6471 AFTERIMAGE_LIBS=`$afterimage_config --libs`
6793 /usr/include/X11R6 \ 6472 if test "x$AFTERIMAGE_LIBS" != "x"; then
6794 /usr/include/X11R5 \ 6473 libai_ver_major=`echo $AFTERIMAGE_VERSION | cut -f 1 -d .`
6795 /usr/include/X11R4 \ 6474 libai_ver_minor=`echo $AFTERIMAGE_VERSION | cut -f 2 -d .`
6796 \ 6475 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 \ 6476 support_afterimage=yes
6798 /usr/local/X11R6/include \ 6477 fi
6799 /usr/local/X11R5/include \
6800 /usr/local/X11R4/include \
6801 \
6802 /usr/local/include/X11 \
6803 /usr/local/include/X11R6 \
6804 /usr/local/include/X11R5 \
6805 /usr/local/include/X11R4 \
6806 \
6807 /usr/X386/include \
6808 /usr/x386/include \
6809 /usr/XFree86/include/X11 \
6810 \
6811 /usr/include \
6812 /usr/local/include \
6813 /usr/unsupported/include \
6814 /usr/athena/include \
6815 /usr/local/x11r5/include \
6816 /usr/lpp/Xamples/include \
6817 \
6818 /usr/openwin/include \
6819 /usr/openwin/share/include \
6820 ; \
6821 do
6822 if test -r "$ac_dir/X11/xpm.h"; then
6823 vt_xpm_includes="$ac_dir"
6824 vt_xpm_include_X11=yes
6825 break
6826 else
6827 if test -r "$ac_dir/xpm.h"; then
6828 vt_xpm_includes=$ac_dir
6829 break
6830 fi 6478 fi
6831 fi 6479 fi
6480 if test "x$support_afterimage" = "xyes"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5
6482$as_echo "$AFTERIMAGE_LIBS" >&6; }
6483 image_lib=libafterimage
6484
6485$as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h
6486
6487
6488$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6489
6490 else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492$as_echo "no" >&6; }
6493 AFTERIMAGE_CFLAGS=
6494 AFTERIMAGE_LIBS=
6495 fi
6496 fi
6497fi
6498
6499
6500
6501
6502for ac_header in \
6503 sys/byteorder.h \
6504 sys/ioctl.h \
6505 sys/sockio.h \
6506 sys/strredir.h \
6507 stdint.h \
6508 wchar.h \
6509
6510do :
6511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6512ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6513if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6514 cat >>confdefs.h <<_ACEOF
6515#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6516_ACEOF
6517
6518fi
6519
6832 done 6520done
6833fi
6834 6521
6835rm -f conftest.err conftest.$ac_ext
6836fi
6837 6522
6838if test "$vt_xpm_libraries" = NO; then 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
6839 # Check for the libraries. 6524$as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
6840 6525if test "${rxvt_cv_xlib_illegal_access+set}" = set; then :
6841 # See if we find them without any special options. 6526 $as_echo_n "(cached) " >&6
6842 # Don't add to $LIBS permanently. 6527else
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 6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h. */ 6529/* end confdefs.h. */
6530
6531#define XLIB_ILLEGAL_ACCESS
6532#include <X11/Xlib.h>
6851 6533
6852int 6534int
6853main () 6535main ()
6854{ 6536{
6855XpmReadFileToPixmap() 6537
6538 Display *dpy;
6539 dpy->xdefaults = (char *)0;
6540
6856 ; 6541 ;
6857 return 0; 6542 return 0;
6858} 6543}
6859_ACEOF 6544_ACEOF
6860rm -f conftest.$ac_objext conftest$ac_exeext 6545if ac_fn_cxx_try_compile "$LINENO"; then :
6861if { (ac_try="$ac_link" 6546 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 6547else
6882 echo "$as_me: failed program was:" >&5 6548 rxvt_cv_xlib_illegal_access=no
6883sed 's/^/| /' conftest.$ac_ext >&5
6884 6549
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 6550fi
6932
6933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934 conftest$ac_exeext conftest.$ac_ext
6935fi 6552fi
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6554$as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6555if test x$rxvt_cv_xlib_illegal_access = xyes; then
6936 6556
6557$as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6937 6558
6938 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then 6559fi
6939 ac_cv_have_xpm="have_xpm=no" 6560
6561ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6562if test "x$ac_cv_type_mode_t" = x""yes; then :
6563
6940 else 6564else
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 6565
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 6566cat >>confdefs.h <<_ACEOF
7026#define XPM_INC_X11 1 6567#define mode_t int
7027_ACEOF 6568_ACEOF
7028 6569
7029 fi
7030fi 6570fi
7031 6571
6572ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6573if test "x$ac_cv_type_pid_t" = x""yes; then :
7032 6574
6575else
7033 6576
6577cat >>confdefs.h <<_ACEOF
6578#define pid_t int
6579_ACEOF
7034 6580
7035
7036 if test x$no_xpm = xyes; then
7037 support_xpm=needsmanualspecification
7038 fi
7039fi 6581fi
7040 6582
7041{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7042echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 6584$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7043if test "${ac_cv_header_sys_wait_h+set}" = set; then 6585if test "${ac_cv_type_uid_t+set}" = set; then :
7044 echo $ECHO_N "(cached) $ECHO_C" >&6 6586 $as_echo_n "(cached) " >&6
7045else 6587else
7046 cat >conftest.$ac_ext <<_ACEOF
7047/* confdefs.h. */
7048_ACEOF
7049cat confdefs.h >>conftest.$ac_ext 6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050cat >>conftest.$ac_ext <<_ACEOF
7051/* end confdefs.h. */ 6589/* end confdefs.h. */
7052#include <sys/types.h> 6590#include <sys/types.h>
6591
6592_ACEOF
6593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6594 $EGREP "uid_t" >/dev/null 2>&1; then :
6595 ac_cv_type_uid_t=yes
6596else
6597 ac_cv_type_uid_t=no
6598fi
6599rm -f conftest*
6600
6601fi
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6603$as_echo "$ac_cv_type_uid_t" >&6; }
6604if test $ac_cv_type_uid_t = no; then
6605
6606$as_echo "#define uid_t int" >>confdefs.h
6607
6608
6609$as_echo "#define gid_t int" >>confdefs.h
6610
6611fi
6612
6613ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6614case $ac_cv_c_int16_t in #(
6615 no|yes) ;; #(
6616 *)
6617
6618cat >>confdefs.h <<_ACEOF
6619#define int16_t $ac_cv_c_int16_t
6620_ACEOF
6621;;
6622esac
6623
6624ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6625case $ac_cv_c_uint16_t in #(
6626 no|yes) ;; #(
6627 *)
6628
6629
6630cat >>confdefs.h <<_ACEOF
6631#define uint16_t $ac_cv_c_uint16_t
6632_ACEOF
6633;;
6634 esac
6635
6636ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6637case $ac_cv_c_int32_t in #(
6638 no|yes) ;; #(
6639 *)
6640
6641cat >>confdefs.h <<_ACEOF
6642#define int32_t $ac_cv_c_int32_t
6643_ACEOF
6644;;
6645esac
6646
6647ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6648case $ac_cv_c_uint32_t in #(
6649 no|yes) ;; #(
6650 *)
6651
6652$as_echo "#define _UINT32_T 1" >>confdefs.h
6653
6654
6655cat >>confdefs.h <<_ACEOF
6656#define uint32_t $ac_cv_c_uint32_t
6657_ACEOF
6658;;
6659 esac
6660
6661
6662for ac_func in unsetenv
6663do :
6664 ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6665if test "x$ac_cv_func_unsetenv" = x""yes; then :
6666 cat >>confdefs.h <<_ACEOF
6667#define HAVE_UNSETENV 1
6668_ACEOF
6669
6670fi
6671done
6672
6673
6674
6675support_utmp=yes
6676support_wtmp=yes
6677support_lastlog=yes
6678
6679# Check whether --enable-utmp was given.
6680if test "${enable_utmp+set}" = set; then :
6681 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
6682 support_utmp=$enableval
6683 fi
6684fi
6685
6686
6687# Check whether --enable-wtmp was given.
6688if test "${enable_wtmp+set}" = set; then :
6689 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
6690 support_wtmp=$enableval
6691 fi
6692fi
6693
6694
6695# Check whether --enable-lastlog was given.
6696if test "${enable_lastlog+set}" = set; then :
6697 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
6698 support_lastlog=$enableval
6699 fi
6700fi
6701
6702
6703if test x$support_utmp = xyes; then
6704
6705$as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
6706
6707fi
6708if test x$support_wtmp = xyes; then
6709
6710$as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
6711
6712fi
6713if test x$support_lastlog = xyes; then
6714
6715$as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
6716
6717fi
6718
6719for ac_func in \
6720 updwtmp \
6721 updwtmpx \
6722 updlastlogx \
6723
6724do :
6725 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6726ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6727if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6728 cat >>confdefs.h <<_ACEOF
6729#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6730_ACEOF
6731
6732fi
6733done
6734
6735
6736for ac_header in lastlog.h
6737do :
6738 ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
6739if test "x$ac_cv_header_lastlog_h" = x""yes; then :
6740 cat >>confdefs.h <<_ACEOF
6741#define HAVE_LASTLOG_H 1
6742_ACEOF
6743
6744fi
6745
6746done
6747
6748
6749case $host in
6750 *-*-solaris*)
6751
6752$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6753
6754 ;;
6755esac
6756
6757
6758for ac_header in utmp.h
6759do :
6760 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6761if test "x$ac_cv_header_utmp_h" = x""yes; then :
6762 cat >>confdefs.h <<_ACEOF
6763#define HAVE_UTMP_H 1
6764_ACEOF
6765 ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
7053#include <sys/wait.h> 6766#include <sys/types.h>
7054#ifndef WEXITSTATUS 6767#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 6768
6769"
6770if test "x$ac_cv_type_struct_utmp" = x""yes; then :
6771
6772cat >>confdefs.h <<_ACEOF
6773#define HAVE_STRUCT_UTMP 1
6774_ACEOF
6775
6776
6777fi
6778
6779
6780
6781# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
6782# ------------------------------------------------------
6783# Tries to find if the field MEMBER exists in type AGGR, after including
6784# INCLUDES, setting cache variable VAR accordingly.
6785ac_fn_cxx_check_member ()
6786{
6787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
6789$as_echo_n "checking for $2.$3... " >&6; }
6790if eval "test \"\${$4+set}\"" = set; then :
6791 $as_echo_n "(cached) " >&6
6792else
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794/* end confdefs.h. */
6795$5
7061int 6796int
7062main () 6797main ()
7063{ 6798{
7064 int s; 6799static $2 ac_aggr;
7065 wait (&s); 6800if (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; 6801return 0;
7546 ; 6802 ;
7547 return 0; 6803 return 0;
7548} 6804}
7549_ACEOF 6805_ACEOF
7550rm -f conftest.$ac_objext 6806if ac_fn_cxx_try_compile "$LINENO"; then :
7551if { (ac_try="$ac_compile" 6807 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 6808else
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 6809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597cat >>conftest.$ac_ext <<_ACEOF
7598/* end confdefs.h. */ 6810/* end confdefs.h. */
7599#include <stdio.h> 6811$5
7600#include <sys/ioctl.h>
7601#ifdef HAVE_TERMIOS_H
7602#include <termios.h>
7603#endif
7604int 6812int
7605main () 6813main ()
7606{ 6814{
7607int a = ECHO; 6815static $2 ac_aggr;
6816if (sizeof ac_aggr.$3)
6817return 0;
7608 ; 6818 ;
7609 return 0; 6819 return 0;
7610} 6820}
7611_ACEOF 6821_ACEOF
7612rm -f conftest.$ac_objext 6822if ac_fn_cxx_try_compile "$LINENO"; then :
7613if { (ac_try="$ac_compile" 6823 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 6824else
7631 echo "$as_me: failed program was:" >&5 6825 eval "$4=no"
7632sed 's/^/| /' conftest.$ac_ext >&5
7633
7634 rxvt_cv_header_sysioctl=no
7635fi 6826fi
7636
7637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638fi 6828fi
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 6829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824fi 6830fi
7825{ echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5 6831eval 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 6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10350echo "${ECHO_T}$ac_res" >&6; } 6833$as_echo "$ac_res" >&6; }
10351if test `eval echo '${'$as_ac_var'}'` = yes; then 6834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
10352 cat >>confdefs.h <<_ACEOF
10353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10354_ACEOF
10355 6835
10356fi 6836} # ac_fn_cxx_check_member
10357done 6837ac_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> 6838#include <sys/types.h>
10798#include <utmp.h> 6839#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 6840
10829 struct_utmp=no 6841"
10830fi 6842if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then :
10831 6843
10832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6844$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 6845
10838cat >>confdefs.h <<\_ACEOF
10839#define HAVE_STRUCT_UTMP 1
10840_ACEOF
10841
10842fi 6846fi
10843 6847
10844 6848
10845{ echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 6849ac_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> 6850#include <sys/types.h>
10857#include <utmp.h> 6851#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 6852
10888 struct_utmp_host=no 6853"
10889fi 6854if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then :
10890 6855
10891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6856$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 6857
6858fi
6859
6860
6861fi
6862
6863done
6864
6865
6866for ac_header in utmpx.h
6867do :
6868 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6869if test "x$ac_cv_header_utmpx_h" = x""yes; then :
10897cat >>confdefs.h <<\_ACEOF 6870 cat >>confdefs.h <<_ACEOF
10898#define HAVE_UTMP_HOST 1 6871#define HAVE_UTMPX_H 1
10899_ACEOF 6872_ACEOF
10900 6873 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> 6874#include <sys/types.h>
11103#include <utmpx.h> 6875#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 6876
11134 struct_utmpx=no 6877"
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 6878if test "x$ac_cv_type_struct_utmpx" = x""yes; then :
11142 6879
11143cat >>confdefs.h <<\_ACEOF 6880cat >>confdefs.h <<_ACEOF
11144#define HAVE_STRUCT_UTMPX 1 6881#define HAVE_STRUCT_UTMPX 1
11145_ACEOF 6882_ACEOF
11146 6883
11147fi
11148 6884
6885fi
11149 6886
11150{ echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 6887
11151echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6; } 6888ac_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> 6889#include <sys/types.h>
11162#include <utmpx.h> 6890#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 6891
11193 struct_utmpx_host=no 6892"
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 6893if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then :
11201 6894
11202cat >>confdefs.h <<\_ACEOF 6895$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
11203#define HAVE_UTMPX_HOST 1
11204_ACEOF
11205 6896
11206fi 6897fi
11207 6898
11208{ echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
11209echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6; }
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>
11220#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 6899
11251 struct_utmpx_session=no
11252fi 6900fi
11253 6901
11254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6902done
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
11259 6903
11260cat >>confdefs.h <<\_ACEOF 6904ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
11261#define HAVE_UTMPX_SESSION 1
11262_ACEOF
11263
11264fi
11265
11266fi
11267
11268
11269{ echo "$as_me:$LINENO: checking for struct lastlog" >&5
11270echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; }
11271if test "${struct_lastlog+set}" = set; then
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> 6905#include <sys/types.h>
11281#include <utmp.h> 6906#include <utmp.h>
11282#ifdef HAVE_LASTLOG_H 6907#ifdef HAVE_LASTLOG_H
11283#include <lastlog.h> 6908#include <lastlog.h>
11284#endif 6909#endif
11285 6910
11286int 6911"
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 6912if test "x$ac_cv_type_struct_lastlog" = x""yes; then :
11324 6913
11325cat >>confdefs.h <<\_ACEOF 6914cat >>confdefs.h <<_ACEOF
11326#define HAVE_STRUCT_LASTLOG 1 6915#define HAVE_STRUCT_LASTLOG 1
11327_ACEOF 6916_ACEOF
11328 6917
11329fi
11330 6918
11331{ echo "$as_me:$LINENO: checking for struct lastlogx" >&5 6919fi
11332echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6; } 6920
11333if test "${struct_lastlogx+set}" = set; then 6921
11334 echo $ECHO_N "(cached) $ECHO_C" >&6 6922ac_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> 6923#include <sys/types.h>
11343#include <utmpx.h> 6924#include <utmpx.h>
11344#ifdef HAVE_LASTLOG_H 6925#ifdef HAVE_LASTLOG_H
11345#include <lastlog.h> 6926#include <lastlog.h>
11346#endif 6927#endif
11347 6928
11348int 6929"
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 6930if test "x$ac_cv_type_struct_lastlogx" = x""yes; then :
11386 6931
11387cat >>confdefs.h <<\_ACEOF 6932cat >>confdefs.h <<_ACEOF
11388#define HAVE_STRUCT_LASTLOGX 1 6933#define HAVE_STRUCT_LASTLOGX 1
11389_ACEOF 6934_ACEOF
11390 6935
11391fi
11392 6936
6937fi
11393 6938
11394{ echo "$as_me:$LINENO: checking where utmp is located" >&5 6939
11395echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6; } 6940
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5
6942$as_echo_n "checking for a fallback location of utmp... " >&6; }
11396if test "${path_utmp+set}" = set; then 6943if test "${pt_cv_path_utmp+set}" = set; then :
11397 echo $ECHO_N "(cached) $ECHO_C" >&6 6944 $as_echo_n "(cached) " >&6
11398else 6945else
6946
11399 if test "$cross_compiling" = yes; then 6947if test "$cross_compiling" != yes; then
11400 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
11401echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
11402else
11403 cat >conftest.$ac_ext <<_ACEOF
11404/* confdefs.h. */
11405_ACEOF
11406cat confdefs.h >>conftest.$ac_ext
11407cat >>conftest.$ac_ext <<_ACEOF
11408/* end confdefs.h. */
11409#include <stdio.h>
11410#include <stdlib.h>
11411#include <sys/types.h>
11412#include <utmp.h>
11413#include <errno.h>
11414main()
11415{
11416 char **u, *utmplist[] = {
11417 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; 6948 for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do
11418 FILE *a, *f=fopen("conftestval", "w"); 6949 if test -f "$file"; then
11419 if (!f) exit(1); 6950 pt_cv_path_utmp=$file
11420#ifdef UTMP_FILE 6951 break
11421 fprintf(f, "%s\n", UTMP_FILE); 6952 fi
11422 exit(0); 6953 done
11423#endif
11424#ifdef _PATH_UTMP
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}
11436_ACEOF
11437rm -f conftest$ac_exeext
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`
11458else
11459 echo "$as_me: program exited with status $ac_status" >&5
11460echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
11463( exit $ac_status )
11464path_utmp=
11465fi 6954fi
11466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11467fi 6955fi
11468
11469
11470fi
11471{ echo "$as_me:$LINENO: result: $path_utmp" >&5 6956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
11472echo "${ECHO_T}$path_utmp" >&6; } 6957$as_echo "$pt_cv_path_utmp" >&6; }
11473if test x$path_utmp != x; then 6958if test x$pt_cv_path_utmp != x; then
11474 6959
11475cat >>confdefs.h <<_ACEOF 6960cat >>confdefs.h <<_ACEOF
11476#define UTMP_FILE "$path_utmp" 6961#define PT_UTMP_FILE "$pt_cv_path_utmp"
11477_ACEOF 6962_ACEOF
11478 6963
6964elif test "$cross_compiling" = yes; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5
6966$as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;}
11479fi 6967fi
11480 6968
11481 6969
11482{ echo "$as_me:$LINENO: checking where utmpx is located" >&5 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5
11483echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6; } 6971$as_echo_n "checking for a fallback location of wtmp... " >&6; }
11484if test "${path_utmpx+set}" = set; then 6972if test "${pt_cv_path_wtmp+set}" = set; then :
11485 echo $ECHO_N "(cached) $ECHO_C" >&6 6973 $as_echo_n "(cached) " >&6
11486else 6974else
6975
11487 if test "$cross_compiling" = yes; then 6976if test "$cross_compiling" != yes; then
11488 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5 6977 for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do
11489echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;} 6978 if test -f "$file"; then
11490else 6979 pt_cv_path_wtmp=$file
11491 cat >conftest.$ac_ext <<_ACEOF 6980 break
11492/* confdefs.h. */ 6981 fi
11493_ACEOF 6982 done
11494cat confdefs.h >>conftest.$ac_ext
11495cat >>conftest.$ac_ext <<_ACEOF
11496/* end confdefs.h. */
11497#include <stdio.h>
11498#include <stdlib.h>
11499#include <sys/types.h>
11500#include <utmpx.h>
11501#include <errno.h>
11502#include <sys/stat.h>
11503#ifdef HAVE_STRING_H
11504#include <string.h>
11505#endif
11506main()
11507{
11508 char **u, *p, *utmplist[] = {
11509#ifdef UTMPX_FILE
11510 UTMPX_FILE,
11511#endif
11512#ifdef _PATH_UTMPX
11513 _PATH_UTMPX,
11514#endif
11515 "/var/adm/utmpx", "/etc/utmpx", NULL };
11516 FILE *a, *f=fopen("conftestval", "w");
11517 struct stat statu, statux;
11518 if (!f) exit(1);
11519 for (u = utmplist; *u; u++) {
11520 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11521 if (stat(*u, &statux) < 0)
11522 continue;
11523 p = strdup(*u);
11524 p[strlen(p) - 1] = '\0';
11525 if (stat(p, &statu) >= 0
11526 && (statu.st_mtime - statux.st_mtime > 86400))
11527 continue;
11528 fprintf(f, "%s\n", *u);
11529 exit(0);
11530 }
11531 }
11532 exit(0);
11533}
11534_ACEOF
11535rm -f conftest$ac_exeext
11536if { (ac_try="$ac_link"
11537case "(($ac_try" in
11538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539 *) ac_try_echo=$ac_try;;
11540esac
11541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11542 (eval "$ac_link") 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11546 { (case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11549esac
11550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_try") 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 path_utmpx=`cat conftestval`
11556else
11557 echo "$as_me: program exited with status $ac_status" >&5
11558echo "$as_me: failed program was:" >&5
11559sed 's/^/| /' conftest.$ac_ext >&5
11560
11561( exit $ac_status )
11562path_utmpx=
11563fi 6983fi
11564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11565fi 6984fi
11566
11567
11568fi
11569{ echo "$as_me:$LINENO: result: $path_utmpx" >&5 6985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
11570echo "${ECHO_T}$path_utmpx" >&6; } 6986$as_echo "$pt_cv_path_wtmp" >&6; }
11571if test x$path_utmpx != x; then 6987if test x$pt_cv_path_wtmp != x; then
11572 6988
11573cat >>confdefs.h <<_ACEOF 6989cat >>confdefs.h <<_ACEOF
11574#define UTMPX_FILE "$path_utmpx" 6990#define PT_WTMP_FILE "$pt_cv_path_wtmp"
11575_ACEOF 6991_ACEOF
11576 6992
6993elif test "$cross_compiling" = yes; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5
6995$as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;}
11577fi 6996fi
11578 6997
11579 6998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5
11580{ echo "$as_me:$LINENO: checking where wtmp is located" >&5 6999$as_echo_n "checking for a fallback location of wtmpx... " >&6; }
11581echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6; }
11582if test "${path_wtmp+set}" = set; then 7000if test "${pt_cv_path_wtmpx+set}" = set; then :
11583 echo $ECHO_N "(cached) $ECHO_C" >&6 7001 $as_echo_n "(cached) " >&6
11584else 7002else
7003
11585 if test "$cross_compiling" = yes; then 7004if test "$cross_compiling" != yes; then
11586 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5 7005 for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do
11587echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} 7006 if test -f "$file"; then
11588else 7007 pt_cv_path_wtmpx=$file
11589 cat >conftest.$ac_ext <<_ACEOF 7008 break
11590/* confdefs.h. */ 7009 fi
11591_ACEOF 7010 done
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>
11598#ifdef HAVE_UTMP_H
11599#include <utmp.h>
11600#endif
11601#include <errno.h>
11602main()
11603{
11604 char **w, *wtmplist[] = {
11605 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11606 FILE *a, *f=fopen("conftestval", "w");
11607 if (!f) exit(1);
11608#ifdef WTMP_FILE
11609 fprintf(f, "%s\n", WTMP_FILE);
11610 exit(0);
11611#endif
11612#ifdef _PATH_WTMP
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}
11624_ACEOF
11625rm -f conftest$ac_exeext
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`
11646else
11647 echo "$as_me: program exited with status $ac_status" >&5
11648echo "$as_me: failed program was:" >&5
11649sed 's/^/| /' conftest.$ac_ext >&5
11650
11651( exit $ac_status )
11652path_wtmp=
11653fi 7011fi
11654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11655fi 7012fi
11656
11657
11658fi
11659{ echo "$as_me:$LINENO: result: $path_wtmp" >&5 7013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
11660echo "${ECHO_T}$path_wtmp" >&6; } 7014$as_echo "$pt_cv_path_wtmpx" >&6; }
11661if test x$path_wtmp != x; then 7015if test x$pt_cv_path_wtmpx != x; then
11662 7016
11663cat >>confdefs.h <<_ACEOF 7017cat >>confdefs.h <<_ACEOF
11664#define WTMP_FILE "$path_wtmp" 7018#define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
11665_ACEOF 7019_ACEOF
11666 7020
7021elif test "$cross_compiling" = yes; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5
7023$as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;}
11667fi 7024fi
11668 7025
11669{ echo "$as_me:$LINENO: checking where wtmpx is located" >&5 7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5
11670echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6; } 7027$as_echo_n "checking for a fallback location of lastlog... " >&6; }
11671if test "${path_wtmpx+set}" = set; then 7028if test "${pt_cv_path_lastlog+set}" = set; then :
11672 echo $ECHO_N "(cached) $ECHO_C" >&6 7029 $as_echo_n "(cached) " >&6
11673else 7030else
7031
11674 if test "$cross_compiling" = yes; then 7032if test "$cross_compiling" != yes; then
11675 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 7033 for file in "/var/log/lastlog" "/var/adm/lastlog"; do
11676echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} 7034 if test -f "$file"; then
11677else 7035 pt_cv_path_lastlog=$file
11678 cat >conftest.$ac_ext <<_ACEOF 7036 break
11679/* confdefs.h. */ 7037 fi
11680_ACEOF 7038 done
11681cat confdefs.h >>conftest.$ac_ext
11682cat >>conftest.$ac_ext <<_ACEOF
11683/* end confdefs.h. */
11684#include <stdio.h>
11685#include <stdlib.h>
11686#ifdef HAVE_UTMPX_H
11687#include <utmpx.h>
11688#endif
11689#include <errno.h>
11690main()
11691{
11692 char **w, *wtmplist[] = {
11693 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11694 FILE *a, *f=fopen("conftestval", "w");
11695 if (!f) exit(1);
11696#ifdef WTMPX_FILE
11697 fprintf(f, "%s\n", WTMPX_FILE);
11698 exit(0);
11699#endif
11700#ifdef _PATH_WTMPX
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}
11712_ACEOF
11713rm -f conftest$ac_exeext
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`
11734else
11735 echo "$as_me: program exited with status $ac_status" >&5
11736echo "$as_me: failed program was:" >&5
11737sed 's/^/| /' conftest.$ac_ext >&5
11738
11739( exit $ac_status )
11740path_wtmpx=
11741fi 7039fi
11742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11743fi 7040fi
11744 7041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
11745 7042$as_echo "$pt_cv_path_lastlog" >&6; }
11746fi
11747{ echo "$as_me:$LINENO: result: $path_wtmpx" >&5
11748echo "${ECHO_T}$path_wtmpx" >&6; }
11749if test x$path_wtmpx != x; then 7043if test x$pt_cv_path_lastlog != x; then
11750 7044
11751cat >>confdefs.h <<_ACEOF 7045cat >>confdefs.h <<_ACEOF
11752#define WTMPX_FILE "$path_wtmpx" 7046#define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
11753_ACEOF 7047_ACEOF
11754 7048
7049elif test "$cross_compiling" = yes; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5
7051$as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;}
11755fi 7052fi
11756 7053
11757{ echo "$as_me:$LINENO: checking where lastlog is located" >&5 7054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5
11758echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6; } 7055$as_echo_n "checking for a fallback location of lastlogx... " >&6; }
11759if test "${path_lastlog+set}" = set; then 7056if test "${pt_cv_path_lastlogx+set}" = set; then :
11760 echo $ECHO_N "(cached) $ECHO_C" >&6 7057 $as_echo_n "(cached) " >&6
11761else 7058else
7059
11762 if test "$cross_compiling" = yes; then 7060if test "$cross_compiling" != yes; then
11763 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 7061 for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do
11764echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} 7062 if test -f "$file"; then
11765else 7063 pt_cv_path_lastlogx=$file
11766 cat >conftest.$ac_ext <<_ACEOF 7064 break
11767/* confdefs.h. */ 7065 fi
11768_ACEOF 7066 done
11769cat confdefs.h >>conftest.$ac_ext
11770cat >>conftest.$ac_ext <<_ACEOF
11771/* end confdefs.h. */
11772#include <stdio.h>
11773#include <stdlib.h>
11774#include <sys/types.h>
11775#ifdef HAVE_UTMPX_H
11776#include <utmpx.h>
11777#elif defined(HAVE_UTMP_H)
11778#include <utmp.h>
11779#endif
11780#ifdef HAVE_LASTLOG_H
11781#include <lastlog.h>
11782#endif
11783#include <errno.h>
11784main()
11785{
11786 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11787 FILE *a, *f=fopen("conftestval", "w");
11788 if (!f) exit(1);
11789#ifdef LASTLOG_FILE
11790 fprintf(f, "%s\n", LASTLOG_FILE);
11791 exit(0);
11792#endif
11793#ifdef _PATH_LASTLOG
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}
11805_ACEOF
11806rm -f conftest$ac_exeext
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`
11827else
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=
11834fi 7067fi
11835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11836fi 7068fi
11837
11838
11839fi
11840{ echo "$as_me:$LINENO: result: $path_lastlog" >&5 7069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
11841echo "${ECHO_T}$path_lastlog" >&6; } 7070$as_echo "$pt_cv_path_lastlogx" >&6; }
11842if test x$path_lastlog != x; then 7071if test x$pt_cv_path_lastlogx != x; then
11843 7072
11844cat >>confdefs.h <<_ACEOF 7073cat >>confdefs.h <<_ACEOF
11845#define LASTLOG_FILE "$path_lastlog" 7074#define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx"
11846_ACEOF 7075_ACEOF
11847 7076
11848 if test -d "$path_lastlog"; then
11849
11850cat >>confdefs.h <<\_ACEOF
11851#define LASTLOG_IS_DIR 1
11852_ACEOF
11853
11854 fi
11855fi
11856
11857{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11858echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11859if test "${path_lastlogx+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11861else
11862 if test "$cross_compiling" = yes; then 7077elif test "$cross_compiling" = yes; then
11863 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5
11864echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} 7079$as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;}
11865else
11866 cat >conftest.$ac_ext <<_ACEOF
11867/* confdefs.h. */
11868_ACEOF
11869cat confdefs.h >>conftest.$ac_ext
11870cat >>conftest.$ac_ext <<_ACEOF
11871/* end confdefs.h. */
11872#include <stdio.h>
11873#include <stdlib.h>
11874#ifdef HAVE_UTMPX_H
11875#include <utmpx.h>
11876#endif
11877#include <errno.h>
11878main()
11879{
11880 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11881 FILE *a, *f=fopen("conftestval", "w");
11882 if (!f) exit(1);
11883#ifdef LASTLOGX_FILE
11884 fprintf(f, "%s\n", LASTLOGX_FILE);
11885 exit(0);
11886#endif
11887#ifdef _PATH_LASTLOGX
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}
11899_ACEOF
11900rm -f conftest$ac_exeext
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`
11921else
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=
11928fi 7080fi
11929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11930fi
11931 7081
11932 7082
11933fi
11934{ echo "$as_me:$LINENO: result: $path_lastlogx" >&5
11935echo "${ECHO_T}$path_lastlogx" >&6; }
11936if test x$path_lastlogx != x; then
11937 7083
11938cat >>confdefs.h <<_ACEOF
11939#define LASTLOGX_FILE "$path_lastlogx"
11940_ACEOF
11941 7084
11942fi
11943
11944
11945
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
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 7085save_LIBS=$LIBS
11972ac_save_CFLAGS=$CFLAGS 7086save_CFLAGS=$CFLAGS
11973CFLAGS="$CFLAGS $X_CFLAGS" 7087CFLAGS="$CFLAGS $X_CFLAGS"
11974LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 7088LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11975if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 7089if test x$support_xim = xyes; then
11976 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11977fi
11978{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
11979echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 7091$as_echo_n "checking for working Xlocale... " >&6; }
11980if test "${rxvt_cv_func_xlocale+set}" = set; then 7092if test "${rxvt_cv_func_xlocale+set}" = set; then :
11981 echo $ECHO_N "(cached) $ECHO_C" >&6 7093 $as_echo_n "(cached) " >&6
11982else 7094else
11983 if test "$cross_compiling" = yes; then 7095 if test "$cross_compiling" = yes; then :
11984 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 7096 :
11985echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11986else 7097else
11987 cat >conftest.$ac_ext <<_ACEOF
11988/* confdefs.h. */
11989_ACEOF
11990cat confdefs.h >>conftest.$ac_ext 7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991cat >>conftest.$ac_ext <<_ACEOF
11992/* end confdefs.h. */ 7099/* end confdefs.h. */
7100
11993#include <X11/Xlib.h> 7101 #include <X11/Xlib.h>
11994#include <stdlib.h> 7102 #include <stdlib.h>
11995main() { 7103 int main() {
11996char *p; 7104 char *p;
11997if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 7105 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11998exit (XSupportsLocale() ? 0 : 1); 7106 exit (XSupportsLocale() ? 0 : 1);
11999else 7107 else
12000exit (1);} 7108 exit (1);
7109 }
7110
12001_ACEOF 7111_ACEOF
12002rm -f conftest$ac_exeext 7112if 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 7113 rxvt_cv_func_xlocale=yes
12023else 7114else
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 7115 rxvt_cv_func_xlocale=no
12030fi 7116fi
12031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7118 conftest.$ac_objext conftest.beam conftest.$ac_ext
12032fi 7119fi
12033 7120
12034
12035fi 7121fi
12036{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 7122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
12037echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 7123$as_echo "$rxvt_cv_func_xlocale" >&6; }
12038if test x$rxvt_cv_func_xlocale = xyes; then 7124 if test x$rxvt_cv_func_xlocale = xyes; then
12039 7125
12040cat >>confdefs.h <<\_ACEOF 7126$as_echo "#define USE_XIM 1" >>confdefs.h
12041#define HAVE_XLOCALE 1
12042_ACEOF
12043 7127
12044fi 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
7129$as_echo_n "checking for broken XIM callback... " >&6; }
7130if test "${rxvt_cv_broken_ximcb+set}" = set; then :
7131 $as_echo_n "(cached) " >&6
7132else
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134/* end confdefs.h. */
12045 7135
7136 #include <X11/Xlib.h>
7137
7138 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
7139
7140 void f() {
7141 XIMCallback cb;
7142 cb.callback = im_destroy_cb;
7143 }
7144
7145_ACEOF
7146if ac_fn_cxx_try_compile "$LINENO"; then :
7147 rxvt_cv_broken_ximcb=yes
7148else
7149 rxvt_cv_broken_ximcb=no
7150fi
7151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152fi
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
7154$as_echo "$rxvt_cv_broken_ximcb" >&6; }
7155
7156 if test x$rxvt_cv_broken_ximcb = xyes; then
7157
7158$as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
7159
7160 fi
7161 fi
7162fi
7163
12046{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
12047echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 7165$as_echo_n "checking for working X setlocale... " >&6; }
12048if test "${rxvt_cv_func_xsetlocale+set}" = set; then 7166if test "${rxvt_cv_func_xsetlocale+set}" = set; then :
12049 echo $ECHO_N "(cached) $ECHO_C" >&6 7167 $as_echo_n "(cached) " >&6
12050else 7168else
12051 cat >conftest.$ac_ext <<_ACEOF
12052/* confdefs.h. */
12053_ACEOF
12054cat confdefs.h >>conftest.$ac_ext 7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055cat >>conftest.$ac_ext <<_ACEOF
12056/* end confdefs.h. */ 7170/* end confdefs.h. */
12057#define X_LOCALE 1 7171#define X_LOCALE 1
12058#include <X11/Xlocale.h> 7172#include <X11/Xlocale.h>
12059int 7173int
12060main () 7174main ()
12062setlocale(LC_CTYPE, ""); 7176setlocale(LC_CTYPE, "");
12063 ; 7177 ;
12064 return 0; 7178 return 0;
12065} 7179}
12066_ACEOF 7180_ACEOF
12067rm -f conftest.$ac_objext conftest$ac_exeext 7181if 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 7182 rxvt_cv_func_xsetlocale=yes
12086else 7183else
12087 echo "$as_me: failed program was:" >&5
12088sed 's/^/| /' conftest.$ac_ext >&5
12089
12090 rxvt_cv_func_xsetlocale=no 7184 rxvt_cv_func_xsetlocale=no
12091fi 7185fi
12092
12093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7186rm -f core conftest.err conftest.$ac_objext \
12094 conftest$ac_exeext conftest.$ac_ext 7187 conftest$ac_exeext conftest.$ac_ext
12095fi 7188fi
12096{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5 7189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
12097echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6; } 7190$as_echo "$rxvt_cv_func_xsetlocale" >&6; }
12098if test x$rxvt_cv_func_xsetlocale = xyes; then 7191if test x$rxvt_cv_func_xsetlocale = xyes; then
12099 7192
12100cat >>confdefs.h <<\_ACEOF 7193$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
12101#define HAVE_XSETLOCALE 1
12102_ACEOF
12103 7194
12104fi 7195fi
12105LIBS=$ac_save_LIBS 7196LIBS=$save_LIBS
12106CFLAGS=$ac_save_CFLAGS 7197CFLAGS=$save_CFLAGS
12107 7198
12108{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5
12109echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 7200$as_echo_n "checking for working plain setlocale... " >&6; }
12110if test "${rxvt_cv_func_setlocale+set}" = set; then 7201if test "${rxvt_cv_func_setlocale+set}" = set; then :
12111 echo $ECHO_N "(cached) $ECHO_C" >&6 7202 $as_echo_n "(cached) " >&6
12112else 7203else
12113 cat >conftest.$ac_ext <<_ACEOF
12114/* confdefs.h. */
12115_ACEOF
12116cat confdefs.h >>conftest.$ac_ext 7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117cat >>conftest.$ac_ext <<_ACEOF
12118/* end confdefs.h. */ 7205/* end confdefs.h. */
12119#include <clocale> 7206#include <locale.h>
12120int 7207int
12121main () 7208main ()
12122{ 7209{
12123setlocale(LC_CTYPE, ""); 7210setlocale(LC_CTYPE, "");
12124 ; 7211 ;
12125 return 0; 7212 return 0;
12126} 7213}
12127_ACEOF 7214_ACEOF
12128rm -f conftest.$ac_objext conftest$ac_exeext 7215if 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 7216 rxvt_cv_func_setlocale=yes
12147else 7217else
12148 echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151 rxvt_cv_func_setlocale=no 7218 rxvt_cv_func_setlocale=no
12152fi 7219fi
12153
12154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7220rm -f core conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext 7221 conftest$ac_exeext conftest.$ac_ext
12156fi 7222fi
12157{ echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5 7223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5
12158echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6; } 7224$as_echo "$rxvt_cv_func_setlocale" >&6; }
12159if test x$rxvt_cv_func_setlocale = xyes; then 7225if test x$rxvt_cv_func_setlocale = xyes; then
12160 7226
12161cat >>confdefs.h <<\_ACEOF 7227$as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
12162#define HAVE_SETLOCALE 1
12163_ACEOF
12164 7228
12165fi 7229fi
12166 7230
12167{ echo "$as_me:$LINENO: checking for working nl_langinfo" >&5 7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
12168echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6; } 7232$as_echo_n "checking for working nl_langinfo... " >&6; }
12169if test "${rxvt_cv_func_nl_langinfo+set}" = set; then 7233if test "${rxvt_cv_func_nl_langinfo+set}" = set; then :
12170 echo $ECHO_N "(cached) $ECHO_C" >&6 7234 $as_echo_n "(cached) " >&6
12171else 7235else
12172 cat >conftest.$ac_ext <<_ACEOF
12173/* confdefs.h. */
12174_ACEOF
12175cat confdefs.h >>conftest.$ac_ext 7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176cat >>conftest.$ac_ext <<_ACEOF
12177/* end confdefs.h. */ 7237/* end confdefs.h. */
12178#include <langinfo.h> 7238#include <langinfo.h>
12179int 7239int
12180main () 7240main ()
12181{ 7241{
12182nl_langinfo(CODESET); 7242nl_langinfo(CODESET);
12183 ; 7243 ;
12184 return 0; 7244 return 0;
12185} 7245}
12186_ACEOF 7246_ACEOF
12187rm -f conftest.$ac_objext conftest$ac_exeext 7247if ac_fn_cxx_try_link "$LINENO"; then :
12188if { (ac_try="$ac_link" 7248 rxvt_cv_func_nl_langinfo=yes
12189case "(($ac_try" in 7249else
12190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7250 rxvt_cv_func_nl_langinfo=no
12191 *) ac_try_echo=$ac_try;; 7251fi
7252rm -f core conftest.err conftest.$ac_objext \
7253 conftest$ac_exeext conftest.$ac_ext
7254fi
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7256$as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
7257if test x$rxvt_cv_func_nl_langinfo = xyes; then
7258
7259$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7260
7261fi
7262
7263
7264case $host in
7265 *-*-solaris*)
7266
7267$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7268
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
7270$as_echo_n "checking for library containing sendmsg... " >&6; }
7271if test "${ac_cv_search_sendmsg+set}" = set; then :
7272 $as_echo_n "(cached) " >&6
7273else
7274 ac_func_search_save_LIBS=$LIBS
7275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276/* end confdefs.h. */
7277
7278/* Override any GCC internal prototype to avoid an error.
7279 Use char because int might match the return type of a GCC
7280 builtin and then its argument prototype would still apply. */
7281#ifdef __cplusplus
7282extern "C"
7283#endif
7284char sendmsg ();
7285int
7286main ()
7287{
7288return sendmsg ();
7289 ;
7290 return 0;
7291}
7292_ACEOF
7293for ac_lib in '' socket; do
7294 if test -z "$ac_lib"; then
7295 ac_res="none required"
7296 else
7297 ac_res=-l$ac_lib
7298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7299 fi
7300 if ac_fn_cxx_try_link "$LINENO"; then :
7301 ac_cv_search_sendmsg=$ac_res
7302fi
7303rm -f core conftest.err conftest.$ac_objext \
7304 conftest$ac_exeext
7305 if test "${ac_cv_search_sendmsg+set}" = set; then :
7306 break
7307fi
7308done
7309if test "${ac_cv_search_sendmsg+set}" = set; then :
7310
7311else
7312 ac_cv_search_sendmsg=no
7313fi
7314rm conftest.$ac_ext
7315LIBS=$ac_func_search_save_LIBS
7316fi
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
7318$as_echo "$ac_cv_search_sendmsg" >&6; }
7319ac_res=$ac_cv_search_sendmsg
7320if test "$ac_res" != no; then :
7321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7322
7323fi
7324
7325 ;;
12192esac 7326esac
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
12206else
12207 echo "$as_me: failed program was:" >&5
12208sed 's/^/| /' conftest.$ac_ext >&5
12209 7327
12210 rxvt_cv_func_nl_langinfo=no
12211fi
12212
12213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12214 conftest$ac_exeext conftest.$ac_ext
12215fi
12216{ echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
12217echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6; }
12218if test x$rxvt_cv_func_nl_langinfo = xyes; then
12219
12220cat >>confdefs.h <<\_ACEOF
12221#define HAVE_NL_LANGINFO 1
12222_ACEOF
12223
12224fi
12225
12226
12227{ echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 7328{ $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; } 7329$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
12229if test "${can_pass_fds+set}" = set; then 7330if test "${pt_cv_can_pass_fds+set}" = set; then :
12230 echo $ECHO_N "(cached) $ECHO_C" >&6 7331 $as_echo_n "(cached) " >&6
12231else 7332else
12232 cat >conftest.$ac_ext <<_ACEOF
12233/* confdefs.h. */
12234_ACEOF
12235cat confdefs.h >>conftest.$ac_ext 7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236cat >>conftest.$ac_ext <<_ACEOF
12237/* end confdefs.h. */ 7334/* end confdefs.h. */
12238 7335
12239#include <cstddef> // broken bsds (is that redundant?) need this 7336#include <stddef.h> // broken bsds (is that redundant?) need this
12240#include <sys/types.h> 7337#include <sys/types.h>
12241#include <sys/socket.h> 7338#include <sys/socket.h>
12242#include <sys/uio.h> 7339#include <sys/uio.h>
12243 7340
12244int 7341int
12271 7368
12272 ; 7369 ;
12273 return 0; 7370 return 0;
12274} 7371}
12275_ACEOF 7372_ACEOF
12276rm -f conftest.$ac_objext conftest$ac_exeext 7373if 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 7374 pt_cv_can_pass_fds=yes
12295else 7375else
12296 echo "$as_me: failed program was:" >&5
12297sed 's/^/| /' conftest.$ac_ext >&5
12298
12299 can_pass_fds=no 7376 pt_cv_can_pass_fds=no
12300fi 7377fi
12301
12302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7378rm -f core conftest.err conftest.$ac_objext \
12303 conftest$ac_exeext conftest.$ac_ext 7379 conftest$ac_exeext conftest.$ac_ext
12304fi 7380fi
12305{ echo "$as_me:$LINENO: result: $can_pass_fds" >&5 7381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
12306echo "${ECHO_T}$can_pass_fds" >&6; } 7382$as_echo "$pt_cv_can_pass_fds" >&6; }
12307if test x$can_pass_fds = xyes; then 7383if test x$pt_cv_can_pass_fds = xyes; then
12308 7384
12309cat >>confdefs.h <<\_ACEOF 7385$as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
12310#define HAVE_UNIX_FDPASS 1
12311_ACEOF
12312 7386
12313else 7387else
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;} 7388 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
12316 { (exit 1); exit 1; }; }
12317fi 7389fi
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 7390
12379 7391
12380 7392
12381for ac_header in \ 7393for ac_header in \
12382 pty.h \ 7394 pty.h \
12383 util.h \ 7395 util.h \
12384 libutil.h \ 7396 libutil.h \
12385 sys/ioctl.h \ 7397 sys/ioctl.h \
12386 sys/stropts.h \ 7398 sys/stropts.h \
7399 stropts.h \
12387 7400
12388do 7401do :
12389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7402 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 7403ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12391 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7404if 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 7405 cat >>confdefs.h <<_ACEOF
12519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7406#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12520_ACEOF 7407_ACEOF
12521 7408
12522fi 7409fi
12523 7410
12524done 7411done
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534 7412
12535 7413
12536for ac_func in \ 7414for ac_func in \
12537 revoke \ 7415 revoke \
12538 _getpty \ 7416 _getpty \
12542 setuid \ 7420 setuid \
12543 seteuid \ 7421 seteuid \
12544 setreuid \ 7422 setreuid \
12545 setresuid \ 7423 setresuid \
12546 7424
12547do 7425do :
12548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7426 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12549{ echo "$as_me:$LINENO: checking for $ac_func" >&5 7427ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 7428if 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 7429 cat >>confdefs.h <<_ACEOF
12633#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7430#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12634_ACEOF 7431_ACEOF
12635 7432
12636fi 7433fi
12637done 7434done
12638 7435
12639 7436
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 7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
12719echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6; } 7438$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 7439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724cat >>conftest.$ac_ext <<_ACEOF
12725/* end confdefs.h. */ 7440/* end confdefs.h. */
12726#include <stdlib.h> 7441#include <stdlib.h>
12727int 7442int
12728main () 7443main ()
12729{ 7444{
12730grantpt(0);unlockpt(0);ptsname(0); 7445grantpt(0);unlockpt(0);ptsname(0);
12731 ; 7446 ;
12732 return 0; 7447 return 0;
12733} 7448}
12734_ACEOF 7449_ACEOF
12735rm -f conftest.$ac_objext conftest$ac_exeext 7450if 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 7451 unix98_pty=yes
12754 7452
12755cat >>confdefs.h <<\_ACEOF 7453$as_echo "#define UNIX98_PTY 1" >>confdefs.h
12756#define UNIX98_PTY 1
12757_ACEOF
12758 7454
12759 { echo "$as_me:$LINENO: result: yes" >&5 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12760echo "${ECHO_T}yes" >&6; } 7456$as_echo "yes" >&6; }
12761else 7457else
12762 echo "$as_me: failed program was:" >&5
12763sed 's/^/| /' conftest.$ac_ext >&5
12764
12765 { echo "$as_me:$LINENO: result: no" >&5 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766echo "${ECHO_T}no" >&6; } 7459$as_echo "no" >&6; }
12767fi 7460fi
12768
12769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7461rm -f core conftest.err conftest.$ac_objext \
12770 conftest$ac_exeext conftest.$ac_ext 7462 conftest$ac_exeext conftest.$ac_ext
12771fi
12772 7463
12773if test -z "$unix98_pty"; then 7464if test -z "$unix98_pty"; then
12774 7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
12775for ac_func in openpty 7466$as_echo_n "checking for library containing openpty... " >&6; }
12776do 7467if test "${ac_cv_search_openpty+set}" = set; then :
12777as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7468 $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 7469else
12801# include <assert.h> 7470 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 7471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877cat >>conftest.$ac_ext <<_ACEOF
12878/* end confdefs.h. */ 7472/* end confdefs.h. */
12879 7473
12880/* Override any GCC internal prototype to avoid an error. 7474/* Override any GCC internal prototype to avoid an error.
12881 Use char because int might match the return type of a GCC 7475 Use char because int might match the return type of a GCC
12882 builtin and then its argument prototype would still apply. */ 7476 builtin and then its argument prototype would still apply. */
12890return openpty (); 7484return openpty ();
12891 ; 7485 ;
12892 return 0; 7486 return 0;
12893} 7487}
12894_ACEOF 7488_ACEOF
12895rm -f conftest.$ac_objext conftest$ac_exeext 7489for ac_lib in '' util; do
12896if { (ac_try="$ac_link" 7490 if test -z "$ac_lib"; then
12897case "(($ac_try" in 7491 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 7492 else
12915 echo "$as_me: failed program was:" >&5 7493 ac_res=-l$ac_lib
12916sed 's/^/| /' conftest.$ac_ext >&5 7494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12917 7495 fi
12918 ac_cv_lib_util_openpty=no 7496 if ac_fn_cxx_try_link "$LINENO"; then :
7497 ac_cv_search_openpty=$ac_res
12919fi 7498fi
12920
12921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7499rm -f core conftest.err conftest.$ac_objext \
12922 conftest$ac_exeext conftest.$ac_ext 7500 conftest$ac_exeext
12923LIBS=$ac_check_lib_save_LIBS 7501 if test "${ac_cv_search_openpty+set}" = set; then :
12924fi 7502 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 7503fi
12935done 7504done
7505if test "${ac_cv_search_openpty+set}" = set; then :
12936 7506
7507else
7508 ac_cv_search_openpty=no
12937fi 7509fi
7510rm conftest.$ac_ext
7511LIBS=$ac_func_search_save_LIBS
7512fi
7513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7514$as_echo "$ac_cv_search_openpty" >&6; }
7515ac_res=$ac_cv_search_openpty
7516if test "$ac_res" != no; then :
7517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12938 7518
7519$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
12939 7520
7521fi
12940 7522
7523fi
7524
7525
7526
12941{ echo "$as_me:$LINENO: checking for tty group" >&5 7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
12942echo $ECHO_N "checking for tty group... $ECHO_C" >&6; } 7528$as_echo_n "checking for tty group... " >&6; }
12943if test "${tty_group+set}" = set; then 7529if test "${pt_cv_tty_group+set}" = set; then :
12944 echo $ECHO_N "(cached) $ECHO_C" >&6 7530 $as_echo_n "(cached) " >&6
12945else 7531else
12946 if test "$cross_compiling" = yes; then 7532 if test "$cross_compiling" = yes; then :
12947 tty_group=no 7533 pt_cv_tty_group=no
12948else 7534else
12949 cat >conftest.$ac_ext <<_ACEOF
12950/* confdefs.h. */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext 7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
12954/* end confdefs.h. */ 7536/* end confdefs.h. */
12955 7537
12956#include <sys/types.h> 7538#include <sys/types.h>
12957#include <sys/stat.h> 7539#include <sys/stat.h>
12958#include <unistd.h> 7540#include <unistd.h>
12959#include <grp.h> 7541#include <grp.h>
12960 7542
12961main() 7543int main()
12962{ 7544{
12963 struct stat st; 7545 struct stat st;
12964 struct group *gr; 7546 struct group *gr;
12965 char *tty; 7547 char *tty;
12966 gr = getgrnam("tty"); 7548 gr = getgrnam("tty");
12972 return 0; 7554 return 0;
12973 else 7555 else
12974 return 1; 7556 return 1;
12975} 7557}
12976_ACEOF 7558_ACEOF
12977rm -f conftest$ac_exeext 7559if 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 7560 pt_cv_tty_group=yes
12998else 7561else
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 7562 pt_cv_tty_group=no
13005fi 7563fi
13006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7565 conftest.$ac_objext conftest.beam conftest.$ac_ext
13007fi 7566fi
13008 7567
13009
13010fi 7568fi
13011{ echo "$as_me:$LINENO: result: $tty_group" >&5 7569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
13012echo "${ECHO_T}$tty_group" >&6; } 7570$as_echo "$pt_cv_tty_group" >&6; }
13013if test x$tty_group = xyes; then 7571if test x$pt_cv_tty_group = xyes; then
13014 7572
13015cat >>confdefs.h <<\_ACEOF 7573$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
13016#define TTY_GID_SUPPORT 1
13017_ACEOF
13018 7574
13019fi 7575fi
13020 7576
13021if test x$support_xft = xyes; then 7577if test x$support_xft = xyes || test x$support_inheritpixmap = xyes; then
7578 rxvt_have_xrender=no
13022 # Extract the first word of "pkg-config", so it can be a program name with args. 7579 # Extract the first word of "pkg-config", so it can be a program name with args.
13023set dummy pkg-config; ac_word=$2 7580set dummy pkg-config; ac_word=$2
13024{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7582$as_echo_n "checking for $ac_word... " >&6; }
13026if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 7583if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13027 echo $ECHO_N "(cached) $ECHO_C" >&6 7584 $as_echo_n "(cached) " >&6
13028else 7585else
13029 case $PKG_CONFIG in 7586 case $PKG_CONFIG in
13030 [\\/]* | ?:[\\/]*) 7587 [\\/]* | ?:[\\/]*)
13031 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7588 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13032 ;; 7589 ;;
13034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035for as_dir in $PATH 7592for as_dir in $PATH
13036do 7593do
13037 IFS=$as_save_IFS 7594 IFS=$as_save_IFS
13038 test -z "$as_dir" && as_dir=. 7595 test -z "$as_dir" && as_dir=.
13039 for ac_exec_ext in '' $ac_executable_extensions; do 7596 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 7597 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" 7598 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 7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13043 break 2 7600 break 2
13044 fi 7601 fi
13045done 7602done
13046done 7603 done
13047IFS=$as_save_IFS 7604IFS=$as_save_IFS
13048 7605
13049 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7606 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13050 ;; 7607 ;;
13051esac 7608esac
13052fi 7609fi
13053PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7610PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13054if test -n "$PKG_CONFIG"; then 7611if test -n "$PKG_CONFIG"; then
13055 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13056echo "${ECHO_T}$PKG_CONFIG" >&6; } 7613$as_echo "$PKG_CONFIG" >&6; }
13057else 7614else
13058 { echo "$as_me:$LINENO: result: no" >&5 7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059echo "${ECHO_T}no" >&6; } 7616$as_echo "no" >&6; }
7617fi
7618
7619
7620 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
7621 X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS"
7622 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`"
7623 rxvt_have_xrender=yes
7624
7625 save_LIBS="$LIBS"
7626 LIBS="$LIBS $X_LIBS"
7627 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
7628if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then :
7629
7630else
7631 rxvt_have_xrender=no
7632fi
7633
7634
7635 ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
7636if test "x$ac_cv_func_XRenderFindStandardFormat" = x""yes; then :
7637
7638else
7639 rxvt_have_xrender=no
7640fi
7641
7642 LIBS="$save_LIBS"
7643 fi
7644fi
7645
7646if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
7647 # Extract the first word of "pkg-config", so it can be a program name with args.
7648set dummy pkg-config; ac_word=$2
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650$as_echo_n "checking for $ac_word... " >&6; }
7651if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7652 $as_echo_n "(cached) " >&6
7653else
7654 case $PKG_CONFIG in
7655 [\\/]* | ?:[\\/]*)
7656 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7657 ;;
7658 *)
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7666 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 break 2
7669 fi
7670done
7671 done
7672IFS=$as_save_IFS
7673
7674 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7675 ;;
7676esac
7677fi
7678PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7679if test -n "$PKG_CONFIG"; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7681$as_echo "$PKG_CONFIG" >&6; }
7682else
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684$as_echo "no" >&6; }
13060fi 7685fi
13061 7686
13062 7687
13063 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 7688 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
13064 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 7689 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
13065 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 7690 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
13066 else 7691 else
13067 # Extract the first word of "xft-config", so it can be a program name with args. 7692 # Extract the first word of "xft-config", so it can be a program name with args.
13068set dummy xft-config; ac_word=$2 7693set dummy xft-config; ac_word=$2
13069{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7695$as_echo_n "checking for $ac_word... " >&6; }
13071if test "${ac_cv_path_XFT_CONFIG+set}" = set; then 7696if test "${ac_cv_path_XFT_CONFIG+set}" = set; then :
13072 echo $ECHO_N "(cached) $ECHO_C" >&6 7697 $as_echo_n "(cached) " >&6
13073else 7698else
13074 case $XFT_CONFIG in 7699 case $XFT_CONFIG in
13075 [\\/]* | ?:[\\/]*) 7700 [\\/]* | ?:[\\/]*)
13076 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. 7701 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
13077 ;; 7702 ;;
13079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080for as_dir in $PATH 7705for as_dir in $PATH
13081do 7706do
13082 IFS=$as_save_IFS 7707 IFS=$as_save_IFS
13083 test -z "$as_dir" && as_dir=. 7708 test -z "$as_dir" && as_dir=.
13084 for ac_exec_ext in '' $ac_executable_extensions; do 7709 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 7710 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" 7711 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 7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 break 2 7713 break 2
13089 fi 7714 fi
13090done 7715done
13091done 7716 done
13092IFS=$as_save_IFS 7717IFS=$as_save_IFS
13093 7718
13094 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" 7719 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
13095 ;; 7720 ;;
13096esac 7721esac
13097fi 7722fi
13098XFT_CONFIG=$ac_cv_path_XFT_CONFIG 7723XFT_CONFIG=$ac_cv_path_XFT_CONFIG
13099if test -n "$XFT_CONFIG"; then 7724if test -n "$XFT_CONFIG"; then
13100 { echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
13101echo "${ECHO_T}$XFT_CONFIG" >&6; } 7726$as_echo "$XFT_CONFIG" >&6; }
13102else 7727else
13103 { echo "$as_me:$LINENO: result: no" >&5 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104echo "${ECHO_T}no" >&6; } 7729$as_echo "no" >&6; }
13105fi 7730fi
13106 7731
13107 7732
13108 if test $XFT_CONFIG != no; then 7733 if test $XFT_CONFIG != no; then
13109 LIBS="$LIBS `$XFT_CONFIG --libs`" 7734 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
13110 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 7735 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
13111 fi 7736 fi
13112 fi 7737 fi
13113 7738
7739 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then
7740 X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS"
7741 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
7742 fi
13114 7743
7744 save_LIBS="$LIBS"
7745 LIBS="$LIBS $X_LIBS"
13115for ac_header in X11/Xft/Xft.h 7746 for ac_header in X11/Xft/Xft.h
13116do 7747do :
13117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7748 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 7749if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
13119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13123fi
13124ac_res=`eval echo '${'$as_ac_Header'}'`
13125 { echo "$as_me:$LINENO: result: $ac_res" >&5
13126echo "${ECHO_T}$ac_res" >&6; }
13127else
13128 # Is the header compilable?
13129{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13130echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13131cat >conftest.$ac_ext <<_ACEOF
13132/* confdefs.h. */
13133_ACEOF
13134cat confdefs.h >>conftest.$ac_ext
13135cat >>conftest.$ac_ext <<_ACEOF
13136/* end confdefs.h. */
13137$ac_includes_default
13138#include <$ac_header>
13139_ACEOF
13140rm -f conftest.$ac_objext
13141if { (ac_try="$ac_compile"
13142case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145esac
13146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_compile") 2>conftest.er1
13148 ac_status=$?
13149 grep -v '^ *+' conftest.er1 >conftest.err
13150 rm -f conftest.er1
13151 cat conftest.err >&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } && {
13154 test -z "$ac_cxx_werror_flag" ||
13155 test ! -s conftest.err
13156 } && test -s conftest.$ac_objext; then
13157 ac_header_compiler=yes
13158else
13159 echo "$as_me: failed program was:" >&5
13160sed 's/^/| /' conftest.$ac_ext >&5
13161
13162 ac_header_compiler=no
13163fi
13164
13165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13167echo "${ECHO_T}$ac_header_compiler" >&6; }
13168
13169# Is the header present?
13170{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13171echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13172cat >conftest.$ac_ext <<_ACEOF
13173/* confdefs.h. */
13174_ACEOF
13175cat confdefs.h >>conftest.$ac_ext
13176cat >>conftest.$ac_ext <<_ACEOF
13177/* end confdefs.h. */
13178#include <$ac_header>
13179_ACEOF
13180if { (ac_try="$ac_cpp conftest.$ac_ext"
13181case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184esac
13185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13187 ac_status=$?
13188 grep -v '^ *+' conftest.er1 >conftest.err
13189 rm -f conftest.er1
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } >/dev/null && {
13193 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13194 test ! -s conftest.err
13195 }; then
13196 ac_header_preproc=yes
13197else
13198 echo "$as_me: failed program was:" >&5
13199sed 's/^/| /' conftest.$ac_ext >&5
13200
13201 ac_header_preproc=no
13202fi
13203
13204rm -f conftest.err conftest.$ac_ext
13205{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13206echo "${ECHO_T}$ac_header_preproc" >&6; }
13207
13208# So? What about this header?
13209case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
13210 yes:no: )
13211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13215 ac_header_preproc=yes
13216 ;;
13217 no:yes:* )
13218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13221echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13225echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13230
13231 ;;
13232esac
13233{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13237else
13238 eval "$as_ac_Header=\$ac_header_preproc"
13239fi
13240ac_res=`eval echo '${'$as_ac_Header'}'`
13241 { echo "$as_me:$LINENO: result: $ac_res" >&5
13242echo "${ECHO_T}$ac_res" >&6; }
13243
13244fi
13245if test `eval echo '${'$as_ac_Header'}'` = yes; then
13246 cat >>confdefs.h <<_ACEOF 7750 cat >>confdefs.h <<_ACEOF
13247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7751#define HAVE_X11_XFT_XFT_H 1
13248_ACEOF 7752_ACEOF
13249 7753
13250else 7754else
13251 support_xft=no 7755 support_xft=no
13252fi 7756fi
13253 7757
13254done 7758done
13255 7759
13256
13257{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5
13258echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 7761$as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
13259if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 7762if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then :
13260 echo $ECHO_N "(cached) $ECHO_C" >&6 7763 $as_echo_n "(cached) " >&6
13261else 7764else
13262 ac_check_lib_save_LIBS=$LIBS 7765 ac_check_lib_save_LIBS=$LIBS
13263LIBS="-lXft $LIBS" 7766LIBS="-lXft $LIBS"
13264cat >conftest.$ac_ext <<_ACEOF
13265/* confdefs.h. */
13266_ACEOF
13267cat confdefs.h >>conftest.$ac_ext 7767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268cat >>conftest.$ac_ext <<_ACEOF
13269/* end confdefs.h. */ 7768/* end confdefs.h. */
13270 7769
13271/* Override any GCC internal prototype to avoid an error. 7770/* Override any GCC internal prototype to avoid an error.
13272 Use char because int might match the return type of a GCC 7771 Use char because int might match the return type of a GCC
13273 builtin and then its argument prototype would still apply. */ 7772 builtin and then its argument prototype would still apply. */
13281return XftDrawString32 (); 7780return XftDrawString32 ();
13282 ; 7781 ;
13283 return 0; 7782 return 0;
13284} 7783}
13285_ACEOF 7784_ACEOF
13286rm -f conftest.$ac_objext conftest$ac_exeext 7785if 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 7786 ac_cv_lib_Xft_XftDrawString32=yes
13305else 7787else
13306 echo "$as_me: failed program was:" >&5
13307sed 's/^/| /' conftest.$ac_ext >&5
13308
13309 ac_cv_lib_Xft_XftDrawString32=no 7788 ac_cv_lib_Xft_XftDrawString32=no
13310fi 7789fi
13311
13312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7790rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext 7791 conftest$ac_exeext conftest.$ac_ext
13314LIBS=$ac_check_lib_save_LIBS 7792LIBS=$ac_check_lib_save_LIBS
13315fi 7793fi
13316{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 7794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13317echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 7795$as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
13318if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 7796if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then :
7797 :
7798else
7799 support_xft=no
7800fi
7801
7802 for ac_header in fontconfig/fontconfig.h
7803do :
7804 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
7805if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
13319 cat >>confdefs.h <<_ACEOF 7806 cat >>confdefs.h <<_ACEOF
13320#define HAVE_LIBXFT 1 7807#define HAVE_FONTCONFIG_FONTCONFIG_H 1
13321_ACEOF 7808_ACEOF
13322
13323 LIBS="-lXft $LIBS"
13324 7809
13325else 7810else
13326 support_xft=no 7811 support_xft=no
13327fi 7812fi
13328 7813
7814done
7815
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5
7817$as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; }
7818if test "${ac_cv_lib_fontconfig_FcPatternGet+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
7820else
7821 ac_check_lib_save_LIBS=$LIBS
7822LIBS="-lfontconfig $LIBS"
7823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824/* end confdefs.h. */
7825
7826/* Override any GCC internal prototype to avoid an error.
7827 Use char because int might match the return type of a GCC
7828 builtin and then its argument prototype would still apply. */
7829#ifdef __cplusplus
7830extern "C"
7831#endif
7832char FcPatternGet ();
7833int
7834main ()
7835{
7836return FcPatternGet ();
7837 ;
7838 return 0;
7839}
7840_ACEOF
7841if ac_fn_cxx_try_link "$LINENO"; then :
7842 ac_cv_lib_fontconfig_FcPatternGet=yes
7843else
7844 ac_cv_lib_fontconfig_FcPatternGet=no
7845fi
7846rm -f core conftest.err conftest.$ac_objext \
7847 conftest$ac_exeext conftest.$ac_ext
7848LIBS=$ac_check_lib_save_LIBS
7849fi
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5
7851$as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; }
7852if test "x$ac_cv_lib_fontconfig_FcPatternGet" = x""yes; then :
7853 :
7854else
7855 support_xft=no
7856fi
7857
7858 LIBS="$save_LIBS"
13329 7859
13330 if test x$support_xft = xyes; then 7860 if test x$support_xft = xyes; then
13331 7861
13332cat >>confdefs.h <<\_ACEOF 7862$as_echo "#define XFT 1" >>confdefs.h
13333#define XFT 1
13334_ACEOF
13335 7863
13336 fi 7864 fi
13337fi 7865fi
13338if test x$support_styles = xyes; then 7866if test x$support_styles = xyes; then
13339 7867
13340cat >>confdefs.h <<\_ACEOF 7868$as_echo "#define ENABLE_STYLES 1" >>confdefs.h
13341#define ENABLE_STYLES 1
13342_ACEOF
13343 7869
13344fi 7870fi
13345if test x$support_iso14755 = xyes; then 7871if test x$support_iso14755 = xyes; then
13346 7872
13347cat >>confdefs.h <<\_ACEOF 7873$as_echo "#define ISO_14755 1" >>confdefs.h
13348#define ISO_14755 1
13349_ACEOF
13350 7874
13351fi 7875fi
13352if test x$support_8bitctrls = xyes; then 7876if test x$support_8bitctrls = xyes; then
13353 7877
13354cat >>confdefs.h <<\_ACEOF 7878$as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
13355#define EIGHT_BIT_CONTROLS 1
13356_ACEOF
13357 7879
13358fi 7880fi
13359if test x$support_fading = xyes; then 7881if test x$support_fading = xyes; then
13360 7882
13361cat >>confdefs.h <<\_ACEOF 7883$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 7884
13372fi 7885fi
13373if test x$support_inheritpixmap = xyes; then 7886if test x$support_inheritpixmap = xyes; then
7887 if test x$rxvt_have_xrender = xyes; then
7888 LIBS="$LIBS -lm"
13374 7889
13375cat >>confdefs.h <<\_ACEOF 7890$as_echo "#define XRENDER 1" >>confdefs.h
13376#define TRANSPARENT 1 7891
13377_ACEOF 7892 fi
7893
7894$as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
13378 7895
13379fi 7896fi
13380if test x$support_keepscrolling = xno; then 7897if test x$support_keepscrolling = xno; then
13381 7898
13382cat >>confdefs.h <<\_ACEOF
13383#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 7899$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
13384_ACEOF
13385 7900
13386fi 7901fi
13387if test x$support_selectionscrolling = xyes; then 7902if test x$support_selectionscrolling = xyes; then
13388 7903
13389cat >>confdefs.h <<\_ACEOF 7904$as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h
13390#define SELECTION_SCROLLING 1
13391_ACEOF
13392 7905
13393fi 7906fi
13394if test x$support_frills = xyes; then 7907if test x$support_frills = xyes; then
13395 7908
13396cat >>confdefs.h <<\_ACEOF 7909$as_echo "#define ENABLE_FRILLS 1" >>confdefs.h
13397#define ENABLE_FRILLS 1
13398_ACEOF
13399 7910
13400fi 7911fi
13401if test x$support_mousewheel = xyes; then 7912if test x$support_mousewheel = xyes; then
13402 7913
13403cat >>confdefs.h <<\_ACEOF 7914$as_echo "#define MOUSE_WHEEL 1" >>confdefs.h
13404#define MOUSE_WHEEL 1
13405_ACEOF
13406 7915
13407fi 7916fi
13408if test x$support_mouseslipwheel = xyes; then 7917if test x$support_mouseslipwheel = xyes; then
13409 7918
13410cat >>confdefs.h <<\_ACEOF 7919$as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
13411#define MOUSE_SLIP_WHEELING 1
13412_ACEOF
13413 7920
13414fi 7921fi
13415if test x$support_xim = xyes -o x$multichar_set = xyes; then
13416 if test x$rxvt_cv_func_xlocale = xyes; then
13417 7922
13418cat >>confdefs.h <<\_ACEOF 7923scrolltypes=plain
13419#define USE_XIM 1
13420_ACEOF
13421 7924
13422 fi 7925$as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h
13423fi
13424if test x$support_xpm = xyes; then
13425 7926
13426cat >>confdefs.h <<\_ACEOF
13427#define XPM_BACKGROUND 1
13428_ACEOF
13429 7927
13430fi
13431if test x$support_scroll_rxvt = xyes; then 7928if test x$support_scroll_rxvt = xyes; then
13432 7929
13433cat >>confdefs.h <<\_ACEOF 7930$as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h
13434#define RXVT_SCROLLBAR 1
13435_ACEOF
13436 7931
13437 scrolltypes="rxvt" 7932 scrolltypes="$scrolltypes rxvt"
13438fi 7933fi
13439if test x$support_scroll_next = xyes; then 7934if test x$support_scroll_next = xyes; then
13440 7935
13441cat >>confdefs.h <<\_ACEOF 7936$as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h
13442#define NEXT_SCROLLBAR 1
13443_ACEOF
13444 7937
13445 scrolltypes="$scrolltypes next" 7938 scrolltypes="$scrolltypes next"
13446fi 7939fi
13447if test x$support_scroll_xterm = xyes; then 7940if test x$support_scroll_xterm = xyes; then
13448 7941
13449cat >>confdefs.h <<\_ACEOF 7942$as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h
13450#define XTERM_SCROLLBAR 1
13451_ACEOF
13452 7943
13453 scrolltypes="$scrolltypes xterm" 7944 scrolltypes="$scrolltypes xterm"
13454fi 7945fi
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 7946if test x$support_pointer_blank = xyes; then
13464 7947
13465cat >>confdefs.h <<\_ACEOF 7948$as_echo "#define POINTER_BLANK 1" >>confdefs.h
13466#define POINTER_BLANK 1
13467_ACEOF
13468 7949
13469fi 7950fi
13470if test x$support_text_blink = xyes; then 7951if test x$support_text_blink = xyes; then
13471 7952
13472cat >>confdefs.h <<\_ACEOF 7953$as_echo "#define TEXT_BLINK 1" >>confdefs.h
13473#define TEXT_BLINK 1
13474_ACEOF
13475 7954
13476fi 7955fi
13477if test x$support_unicode3 = xyes; then 7956if test x$support_unicode3 = xyes; then
13478 7957
13479cat >>confdefs.h <<\_ACEOF 7958$as_echo "#define UNICODE_3 1" >>confdefs.h
13480#define UNICODE_3 1
13481_ACEOF
13482 7959
13483fi 7960fi
13484if test x$support_combining = xyes; then 7961if test x$support_combining = xyes; then
13485 7962
13486cat >>confdefs.h <<\_ACEOF 7963$as_echo "#define ENABLE_COMBINING 1" >>confdefs.h
13487#define ENABLE_COMBINING 1
13488_ACEOF
13489 7964
13490fi 7965fi
13491if test x$codesets = xall; then 7966if test x$codesets = xall; then
13492 codesets=jp,jp-ext,kr,zh,zh-ext 7967 codesets=jp,jp-ext,kr,zh,zh-ext
13493fi 7968fi
13494 7969
13495cat >>confdefs.h <<\_ACEOF 7970$as_echo "#define ENCODING_EU 1" >>confdefs.h
13496#define ENCODING_EU 1
13497_ACEOF
13498 7971
13499 7972
13500cat >>confdefs.h <<\_ACEOF 7973$as_echo "#define ENCODING_VN 1" >>confdefs.h
13501#define ENCODING_VN 1
13502_ACEOF
13503 7974
13504for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 7975for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13505 case "$codeset" in 7976 case "$codeset" in
13506 JP ) 7977 JP )
13507cat >>confdefs.h <<\_ACEOF 7978$as_echo "#define ENCODING_JP 1" >>confdefs.h
13508#define ENCODING_JP 1
13509_ACEOF
13510 ;; 7979 ;;
13511 JP_EXT ) 7980 JP_EXT )
13512cat >>confdefs.h <<\_ACEOF 7981$as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h
13513#define ENCODING_JP_EXT 1
13514_ACEOF
13515 ;; 7982 ;;
13516 KR ) 7983 KR )
13517cat >>confdefs.h <<\_ACEOF 7984$as_echo "#define ENCODING_KR 1" >>confdefs.h
13518#define ENCODING_KR 1
13519_ACEOF
13520 ;; 7985 ;;
13521 ZH ) 7986 ZH )
13522cat >>confdefs.h <<\_ACEOF 7987$as_echo "#define ENCODING_ZH 1" >>confdefs.h
13523#define ENCODING_ZH 1
13524_ACEOF
13525 ;; 7988 ;;
13526 ZH_EXT ) 7989 ZH_EXT )
13527cat >>confdefs.h <<\_ACEOF 7990$as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h
13528#define ENCODING_ZH_EXT 1
13529_ACEOF
13530 ;; 7991 ;;
13531 esac 7992 esac
13532done 7993done
13533 7994
13534IF_PERL=\# 7995IF_PERL=\#
13535if test x$support_perl = xyes; then 7996if test x$support_perl = xyes; then
13536 # Extract the first word of "perl5", so it can be a program name with args. 7997 # Extract the first word of "perl5", so it can be a program name with args.
13537set dummy perl5; ac_word=$2 7998set dummy perl5; ac_word=$2
13538{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8000$as_echo_n "checking for $ac_word... " >&6; }
13540if test "${ac_cv_path_PERL+set}" = set; then 8001if test "${ac_cv_path_PERL+set}" = set; then :
13541 echo $ECHO_N "(cached) $ECHO_C" >&6 8002 $as_echo_n "(cached) " >&6
13542else 8003else
13543 case $PERL in 8004 case $PERL in
13544 [\\/]* | ?:[\\/]*) 8005 [\\/]* | ?:[\\/]*)
13545 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 8006 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13546 ;; 8007 ;;
13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549for as_dir in $PATH 8010for as_dir in $PATH
13550do 8011do
13551 IFS=$as_save_IFS 8012 IFS=$as_save_IFS
13552 test -z "$as_dir" && as_dir=. 8013 test -z "$as_dir" && as_dir=.
13553 for ac_exec_ext in '' $ac_executable_extensions; do 8014 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 8015 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" 8016 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 8017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13557 break 2 8018 break 2
13558 fi 8019 fi
13559done 8020done
13560done 8021 done
13561IFS=$as_save_IFS 8022IFS=$as_save_IFS
13562 8023
13563 ;; 8024 ;;
13564esac 8025esac
13565fi 8026fi
13566PERL=$ac_cv_path_PERL 8027PERL=$ac_cv_path_PERL
13567if test -n "$PERL"; then 8028if test -n "$PERL"; then
13568 { echo "$as_me:$LINENO: result: $PERL" >&5 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13569echo "${ECHO_T}$PERL" >&6; } 8030$as_echo "$PERL" >&6; }
13570else 8031else
13571 { echo "$as_me:$LINENO: result: no" >&5 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13572echo "${ECHO_T}no" >&6; } 8033$as_echo "no" >&6; }
13573fi 8034fi
13574 8035
13575 8036
13576 # Extract the first word of "perl", so it can be a program name with args. 8037 # Extract the first word of "perl", so it can be a program name with args.
13577set dummy perl; ac_word=$2 8038set dummy perl; ac_word=$2
13578{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8040$as_echo_n "checking for $ac_word... " >&6; }
13580if test "${ac_cv_path_PERL+set}" = set; then 8041if test "${ac_cv_path_PERL+set}" = set; then :
13581 echo $ECHO_N "(cached) $ECHO_C" >&6 8042 $as_echo_n "(cached) " >&6
13582else 8043else
13583 case $PERL in 8044 case $PERL in
13584 [\\/]* | ?:[\\/]*) 8045 [\\/]* | ?:[\\/]*)
13585 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 8046 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13586 ;; 8047 ;;
13588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589for as_dir in $PATH 8050for as_dir in $PATH
13590do 8051do
13591 IFS=$as_save_IFS 8052 IFS=$as_save_IFS
13592 test -z "$as_dir" && as_dir=. 8053 test -z "$as_dir" && as_dir=.
13593 for ac_exec_ext in '' $ac_executable_extensions; do 8054 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 8055 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" 8056 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 8057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 break 2 8058 break 2
13598 fi 8059 fi
13599done 8060done
13600done 8061 done
13601IFS=$as_save_IFS 8062IFS=$as_save_IFS
13602 8063
13603 ;; 8064 ;;
13604esac 8065esac
13605fi 8066fi
13606PERL=$ac_cv_path_PERL 8067PERL=$ac_cv_path_PERL
13607if test -n "$PERL"; then 8068if test -n "$PERL"; then
13608 { echo "$as_me:$LINENO: result: $PERL" >&5 8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13609echo "${ECHO_T}$PERL" >&6; } 8070$as_echo "$PERL" >&6; }
13610else 8071else
13611 { echo "$as_me:$LINENO: result: no" >&5 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612echo "${ECHO_T}no" >&6; } 8073$as_echo "no" >&6; }
13613fi 8074fi
13614 8075
13615 8076
13616 8077
13617 { echo "$as_me:$LINENO: checking for $PERL suitability" >&5 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
13618echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6; } 8079$as_echo_n "checking for $PERL suitability... " >&6; }
13619 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then 8080 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13620 8081
13621 save_CXXFLAGS="$CXXFLAGS" 8082 save_CXXFLAGS="$CXXFLAGS"
13622 save_LIBS="$LIBS" 8083 save_LIBS="$LIBS"
13623 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" 8084 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13624 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" 8085 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13625 cat >conftest.$ac_ext <<_ACEOF
13626/* confdefs.h. */
13627_ACEOF
13628cat confdefs.h >>conftest.$ac_ext 8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629cat >>conftest.$ac_ext <<_ACEOF
13630/* end confdefs.h. */ 8087/* end confdefs.h. */
13631 8088
13632#include <EXTERN.h> 8089#include <EXTERN.h>
13633#include <perl.h> 8090#include <perl.h>
13634#include <XSUB.h> 8091#include <XSUB.h>
13641 8098
13642 ; 8099 ;
13643 return 0; 8100 return 0;
13644} 8101}
13645_ACEOF 8102_ACEOF
13646rm -f conftest.$ac_objext conftest$ac_exeext 8103if 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 8104 rxvt_perl_link=yes
13665else 8105else
13666 echo "$as_me: failed program was:" >&5
13667sed 's/^/| /' conftest.$ac_ext >&5
13668
13669 rxvt_perl_link=no 8106 rxvt_perl_link=no
13670fi 8107fi
13671
13672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8108rm -f core conftest.err conftest.$ac_objext \
13673 conftest$ac_exeext conftest.$ac_ext 8109 conftest$ac_exeext conftest.$ac_ext
13674 CXXFLAGS="$save_CXXFLAGS" 8110 CXXFLAGS="$save_CXXFLAGS"
13675 LIBS="$save_LIBS" 8111 LIBS="$save_LIBS"
13676 8112
13677 if test x$rxvt_perl_link = xyes; then 8113 if test x$rxvt_perl_link = xyes; then
13678 { echo "$as_me:$LINENO: result: ok" >&5 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13679echo "${ECHO_T}ok" >&6; } 8115$as_echo "ok" >&6; }
13680 8116
13681cat >>confdefs.h <<\_ACEOF 8117$as_echo "#define ENABLE_PERL 1" >>confdefs.h
13682#define ENABLE_PERL 1
13683_ACEOF
13684 8118
13685 IF_PERL= 8119 IF_PERL=
13686 PERL_O=rxvtperl.o 8120 PERL_O=rxvtperl.o
13687 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 8121 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13688 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 8122 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13689 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" 8123 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13690 else 8124 else
13691 { { echo "$as_me:$LINENO: error: no, unable to link" >&5 8125 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 8126 fi
13695 else 8127 else
13696 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 8128 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 8129 fi
13700fi 8130fi
13701 8131
13702 8132
13703 8133
13704 8134
13705 8135
13706 8136
13707 8137
13708if test x$support_perl = xyes; then
13709 support_frills=yes
13710fi
13711 8138
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" 8139ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13815 8140
13816cat >confcache <<\_ACEOF 8141cat >confcache <<\_ACEOF
13817# This file is a shell script that caches the results of configure 8142# 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 8143# tests run on this system so they can be shared between configure
13819# scripts and configure runs, see configure's option --config-cache. 8144# 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 8163 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 8164 eval ac_val=\$$ac_var
13840 case $ac_val in #( 8165 case $ac_val in #(
13841 *${as_nl}*) 8166 *${as_nl}*)
13842 case $ac_var in #( 8167 case $ac_var in #(
13843 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 8168 *_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;} ;; 8169$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13845 esac 8170 esac
13846 case $ac_var in #( 8171 case $ac_var in #(
13847 _ | IFS | as_nl) ;; #( 8172 _ | IFS | as_nl) ;; #(
13848 *) $as_unset $ac_var ;; 8173 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8174 *) { eval $ac_var=; unset $ac_var;} ;;
13849 esac ;; 8175 esac ;;
13850 esac 8176 esac
13851 done 8177 done
13852 8178
13853 (set) 2>&1 | 8179 (set) 2>&1 |
13854 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8180 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13855 *${as_nl}ac_space=\ *) 8181 *${as_nl}ac_space=\ *)
13856 # `set' does not quote correctly, so add quotes (double-quote 8182 # `set' does not quote correctly, so add quotes: double-quote
13857 # substitution turns \\\\ into \\, and sed turns \\ into \). 8183 # substitution turns \\\\ into \\, and sed turns \\ into \.
13858 sed -n \ 8184 sed -n \
13859 "s/'/'\\\\''/g; 8185 "s/'/'\\\\''/g;
13860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8186 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13861 ;; #( 8187 ;; #(
13862 *) 8188 *)
13875 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8201 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13876 :end' >>confcache 8202 :end' >>confcache
13877if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8203if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13878 if test -w "$cache_file"; then 8204 if test -w "$cache_file"; then
13879 test "x$cache_file" != "x/dev/null" && 8205 test "x$cache_file" != "x/dev/null" &&
13880 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13881echo "$as_me: updating cache $cache_file" >&6;} 8207$as_echo "$as_me: updating cache $cache_file" >&6;}
13882 cat confcache >$cache_file 8208 cat confcache >$cache_file
13883 else 8209 else
13884 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 8210 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13885echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8211$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13886 fi 8212 fi
13887fi 8213fi
13888rm -f confcache 8214rm -f confcache
13889 8215
13890test "x$prefix" = xNONE && prefix=$ac_default_prefix 8216test "x$prefix" = xNONE && prefix=$ac_default_prefix
13893 8219
13894DEFS=-DHAVE_CONFIG_H 8220DEFS=-DHAVE_CONFIG_H
13895 8221
13896ac_libobjs= 8222ac_libobjs=
13897ac_ltlibobjs= 8223ac_ltlibobjs=
8224U=
13898for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8225for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13899 # 1. Remove the extension, and $U if already installed. 8226 # 1. Remove the extension, and $U if already installed.
13900 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8227 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13901 ac_i=`echo "$ac_i" | sed "$ac_script"` 8228 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13902 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8229 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13903 # will be set to the directory where LIBOBJS objects are built. 8230 # will be set to the directory where LIBOBJS objects are built.
13904 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8231 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13905 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 8232 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13906done 8233done
13907LIBOBJS=$ac_libobjs 8234LIBOBJS=$ac_libobjs
13908 8235
13909LTLIBOBJS=$ac_ltlibobjs 8236LTLIBOBJS=$ac_ltlibobjs
13910 8237
13911 8238
13912 8239
13913: ${CONFIG_STATUS=./config.status} 8240: ${CONFIG_STATUS=./config.status}
8241ac_write_fail=0
13914ac_clean_files_save=$ac_clean_files 8242ac_clean_files_save=$ac_clean_files
13915ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8243ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13916{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8244{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13917echo "$as_me: creating $CONFIG_STATUS" >&6;} 8245$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13918cat >$CONFIG_STATUS <<_ACEOF 8246as_write_fail=0
8247cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13919#! $SHELL 8248#! $SHELL
13920# Generated by $as_me. 8249# Generated by $as_me.
13921# Run this file to recreate the current configuration. 8250# Run this file to recreate the current configuration.
13922# Compiler output produced by configure, useful for debugging 8251# Compiler output produced by configure, useful for debugging
13923# configure, is in config.log if it exists. 8252# configure, is in config.log if it exists.
13924 8253
13925debug=false 8254debug=false
13926ac_cs_recheck=false 8255ac_cs_recheck=false
13927ac_cs_silent=false 8256ac_cs_silent=false
8257
13928SHELL=\${CONFIG_SHELL-$SHELL} 8258SHELL=\${CONFIG_SHELL-$SHELL}
8259export SHELL
13929_ACEOF 8260_ASEOF
13930 8261cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13931cat >>$CONFIG_STATUS <<\_ACEOF
13932## --------------------- ## 8262## -------------------- ##
13933## M4sh Initialization. ## 8263## M4sh Initialization. ##
13934## --------------------- ## 8264## -------------------- ##
13935 8265
13936# Be more Bourne compatible 8266# Be more Bourne compatible
13937DUALCASE=1; export DUALCASE # for MKS sh 8267DUALCASE=1; export DUALCASE # for MKS sh
13938if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8268if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13939 emulate sh 8269 emulate sh
13940 NULLCMD=: 8270 NULLCMD=:
13941 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8271 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13942 # is contrary to our usage. Disable this feature. 8272 # is contrary to our usage. Disable this feature.
13943 alias -g '${1+"$@"}'='"$@"' 8273 alias -g '${1+"$@"}'='"$@"'
13944 setopt NO_GLOB_SUBST 8274 setopt NO_GLOB_SUBST
13945else 8275else
13946 case `(set -o) 2>/dev/null` in 8276 case `(set -o) 2>/dev/null` in #(
13947 *posix*) set -o posix ;; 8277 *posix*) :
8278 set -o posix ;; #(
8279 *) :
8280 ;;
13948esac 8281esac
13949
13950fi 8282fi
13951 8283
13952 8284
13953 8285as_nl='
13954 8286'
13955# PATH needs CR 8287export as_nl
13956# Avoid depending upon Character Ranges. 8288# Printing a long string crashes Solaris 7 /usr/bin/printf.
13957as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8289as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13958as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8290as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13959as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8291as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13960as_cr_digits='0123456789' 8292# Prefer a ksh shell builtin over an external printf program on Solaris,
13961as_cr_alnum=$as_cr_Letters$as_cr_digits 8293# but without wasting forks for bash or zsh.
8294if test -z "$BASH_VERSION$ZSH_VERSION" \
8295 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8296 as_echo='print -r --'
8297 as_echo_n='print -rn --'
8298elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8299 as_echo='printf %s\n'
8300 as_echo_n='printf %s'
8301else
8302 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8303 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8304 as_echo_n='/usr/ucb/echo -n'
8305 else
8306 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8307 as_echo_n_body='eval
8308 arg=$1;
8309 case $arg in #(
8310 *"$as_nl"*)
8311 expr "X$arg" : "X\\(.*\\)$as_nl";
8312 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8313 esac;
8314 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8315 '
8316 export as_echo_n_body
8317 as_echo_n='sh -c $as_echo_n_body as_echo'
8318 fi
8319 export as_echo_body
8320 as_echo='sh -c $as_echo_body as_echo'
8321fi
13962 8322
13963# The user is always right. 8323# The user is always right.
13964if test "${PATH_SEPARATOR+set}" != set; then 8324if test "${PATH_SEPARATOR+set}" != set; then
13965 echo "#! /bin/sh" >conf$$.sh 8325 PATH_SEPARATOR=:
13966 echo "exit 0" >>conf$$.sh 8326 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13967 chmod +x conf$$.sh 8327 (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=';' 8328 PATH_SEPARATOR=';'
13970 else 8329 }
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 8330fi
13982 8331
13983 8332
13984# IFS 8333# IFS
13985# We need space, tab and new line, in precisely that order. Quoting is 8334# We need space, tab and new line, in precisely that order. Quoting is
13986# there to prevent editors from complaining about space-tab. 8335# there to prevent editors from complaining about space-tab.
13987# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8336# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13988# splitting by setting IFS to empty value.) 8337# splitting by setting IFS to empty value.)
13989as_nl='
13990'
13991IFS=" "" $as_nl" 8338IFS=" "" $as_nl"
13992 8339
13993# Find who we are. Look in the path if we contain no directory separator. 8340# Find who we are. Look in the path if we contain no directory separator.
13994case $0 in 8341case $0 in #((
13995 *[\\/]* ) as_myself=$0 ;; 8342 *[\\/]* ) as_myself=$0 ;;
13996 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8343 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13997for as_dir in $PATH 8344for as_dir in $PATH
13998do 8345do
13999 IFS=$as_save_IFS 8346 IFS=$as_save_IFS
14000 test -z "$as_dir" && as_dir=. 8347 test -z "$as_dir" && as_dir=.
14001 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8348 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14002done 8349 done
14003IFS=$as_save_IFS 8350IFS=$as_save_IFS
14004 8351
14005 ;; 8352 ;;
14006esac 8353esac
14007# We did not find ourselves, most probably we were run as `sh COMMAND' 8354# 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. 8355# in which case we are not to be found in the path.
14009if test "x$as_myself" = x; then 8356if test "x$as_myself" = x; then
14010 as_myself=$0 8357 as_myself=$0
14011fi 8358fi
14012if test ! -f "$as_myself"; then 8359if test ! -f "$as_myself"; then
14013 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8360 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14014 { (exit 1); exit 1; } 8361 exit 1
14015fi 8362fi
14016 8363
14017# Work around bugs in pre-3.0 UWIN ksh. 8364# Unset variables that we do not need and which cause bugs (e.g. in
8365# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8366# suppresses any "Segmentation fault" message there. '((' could
8367# trigger a bug in pdksh 5.2.14.
14018for as_var in ENV MAIL MAILPATH 8368for as_var in BASH_ENV ENV MAIL MAILPATH
8369do eval test x\${$as_var+set} = xset \
14019do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8370 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14020done 8371done
14021PS1='$ ' 8372PS1='$ '
14022PS2='> ' 8373PS2='> '
14023PS4='+ ' 8374PS4='+ '
14024 8375
14025# NLS nuisances. 8376# NLS nuisances.
14026for as_var in \ 8377LC_ALL=C
14027 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8378export LC_ALL
14028 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8379LANGUAGE=C
14029 LC_TELEPHONE LC_TIME 8380export LANGUAGE
14030do 8381
14031 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8382# CDPATH.
14032 eval $as_var=C; export $as_var 8383(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8384
8385
8386# as_fn_error STATUS ERROR [LINENO LOG_FD]
8387# ----------------------------------------
8388# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8389# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8390# script with STATUS, using 1 if that was 0.
8391as_fn_error ()
8392{
8393 as_status=$1; test $as_status -eq 0 && as_status=1
8394 if test "$4"; then
8395 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8396 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8397 fi
8398 $as_echo "$as_me: error: $2" >&2
8399 as_fn_exit $as_status
8400} # as_fn_error
8401
8402
8403# as_fn_set_status STATUS
8404# -----------------------
8405# Set $? to STATUS, without forking.
8406as_fn_set_status ()
8407{
8408 return $1
8409} # as_fn_set_status
8410
8411# as_fn_exit STATUS
8412# -----------------
8413# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8414as_fn_exit ()
8415{
8416 set +e
8417 as_fn_set_status $1
8418 exit $1
8419} # as_fn_exit
8420
8421# as_fn_unset VAR
8422# ---------------
8423# Portably unset VAR.
8424as_fn_unset ()
8425{
8426 { eval $1=; unset $1;}
8427}
8428as_unset=as_fn_unset
8429# as_fn_append VAR VALUE
8430# ----------------------
8431# Append the text in VALUE to the end of the definition contained in VAR. Take
8432# advantage of any shell optimizations that allow amortized linear growth over
8433# repeated appends, instead of the typical quadratic growth present in naive
8434# implementations.
8435if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8436 eval 'as_fn_append ()
8437 {
8438 eval $1+=\$2
8439 }'
14033 else 8440else
14034 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8441 as_fn_append ()
14035 fi 8442 {
14036done 8443 eval $1=\$$1\$2
8444 }
8445fi # as_fn_append
14037 8446
14038# Required to use basename. 8447# as_fn_arith ARG...
8448# ------------------
8449# Perform arithmetic evaluation on the ARGs, and store the result in the
8450# global $as_val. Take advantage of shells that can avoid forks. The arguments
8451# must be portable across $(()) and expr.
8452if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8453 eval 'as_fn_arith ()
8454 {
8455 as_val=$(( $* ))
8456 }'
8457else
8458 as_fn_arith ()
8459 {
8460 as_val=`expr "$@" || test $? -eq 1`
8461 }
8462fi # as_fn_arith
8463
8464
14039if expr a : '\(a\)' >/dev/null 2>&1 && 8465if expr a : '\(a\)' >/dev/null 2>&1 &&
14040 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8466 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14041 as_expr=expr 8467 as_expr=expr
14042else 8468else
14043 as_expr=false 8469 as_expr=false
14047 as_basename=basename 8473 as_basename=basename
14048else 8474else
14049 as_basename=false 8475 as_basename=false
14050fi 8476fi
14051 8477
8478if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8479 as_dirname=dirname
8480else
8481 as_dirname=false
8482fi
14052 8483
14053# Name of the executable.
14054as_me=`$as_basename -- "$0" || 8484as_me=`$as_basename -- "$0" ||
14055$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8485$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14056 X"$0" : 'X\(//\)$' \| \ 8486 X"$0" : 'X\(//\)$' \| \
14057 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8487 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14058echo X/"$0" | 8488$as_echo X/"$0" |
14059 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8489 sed '/^.*\/\([^/][^/]*\)\/*$/{
14060 s//\1/ 8490 s//\1/
14061 q 8491 q
14062 } 8492 }
14063 /^X\/\(\/\/\)$/{ 8493 /^X\/\(\/\/\)$/{
14068 s//\1/ 8498 s//\1/
14069 q 8499 q
14070 } 8500 }
14071 s/.*/./; q'` 8501 s/.*/./; q'`
14072 8502
14073# CDPATH. 8503# Avoid depending upon Character Ranges.
14074$as_unset CDPATH 8504as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14075 8505as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14076 8506as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14077 8507as_cr_digits='0123456789'
14078 as_lineno_1=$LINENO 8508as_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 8509
14127ECHO_C= ECHO_N= ECHO_T= 8510ECHO_C= ECHO_N= ECHO_T=
14128case `echo -n x` in 8511case `echo -n x` in #(((((
14129-n*) 8512-n*)
14130 case `echo 'x\c'` in 8513 case `echo 'xy\c'` in
14131 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14132 *) ECHO_C='\c';; 8515 xy) ECHO_C='\c';;
8516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8517 ECHO_T=' ';;
14133 esac;; 8518 esac;;
14134*) 8519*)
14135 ECHO_N='-n';; 8520 ECHO_N='-n';;
14136esac 8521esac
14137 8522
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 8523rm -f conf$$ conf$$.exe conf$$.file
14146if test -d conf$$.dir; then 8524if test -d conf$$.dir; then
14147 rm -f conf$$.dir/conf$$.file 8525 rm -f conf$$.dir/conf$$.file
14148else 8526else
14149 rm -f conf$$.dir 8527 rm -f conf$$.dir
14150 mkdir conf$$.dir 8528 mkdir conf$$.dir 2>/dev/null
14151fi 8529fi
14152echo >conf$$.file 8530if (echo >conf$$.file) 2>/dev/null; then
14153if ln -s conf$$.file conf$$ 2>/dev/null; then 8531 if ln -s conf$$.file conf$$ 2>/dev/null; then
14154 as_ln_s='ln -s' 8532 as_ln_s='ln -s'
14155 # ... but there are two gotchas: 8533 # ... but there are two gotchas:
14156 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8534 # 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. 8535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14158 # In both cases, we have to default to `cp -p'. 8536 # In both cases, we have to default to `cp -p'.
14159 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8538 as_ln_s='cp -p'
8539 elif ln conf$$.file conf$$ 2>/dev/null; then
8540 as_ln_s=ln
8541 else
14160 as_ln_s='cp -p' 8542 as_ln_s='cp -p'
14161elif ln conf$$.file conf$$ 2>/dev/null; then 8543 fi
14162 as_ln_s=ln
14163else 8544else
14164 as_ln_s='cp -p' 8545 as_ln_s='cp -p'
14165fi 8546fi
14166rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8547rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14167rmdir conf$$.dir 2>/dev/null 8548rmdir conf$$.dir 2>/dev/null
14168 8549
14169if mkdir -p . 2>/dev/null; then 8550
14170 as_mkdir_p=: 8551# as_fn_mkdir_p
14171else 8552# -------------
14172 test -d ./-p && rmdir ./-p 8553# Create "$as_dir" as a directory, including parents if necessary.
14173 as_mkdir_p=false 8554as_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{ 8555{
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 8556
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 #( 8557 case $as_dir in #(
14737 -*) as_dir=./$as_dir;; 8558 -*) as_dir=./$as_dir;;
14738 esac 8559 esac
14739 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 8560 test -d "$as_dir" || eval $as_mkdir_p || {
14740 as_dirs= 8561 as_dirs=
14741 while :; do 8562 while :; do
14742 case $as_dir in #( 8563 case $as_dir in #(
14743 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 8564 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14744 *) as_qdir=$as_dir;; 8565 *) as_qdir=$as_dir;;
14745 esac 8566 esac
14746 as_dirs="'$as_qdir' $as_dirs" 8567 as_dirs="'$as_qdir' $as_dirs"
14747 as_dir=`$as_dirname -- "$as_dir" || 8568 as_dir=`$as_dirname -- "$as_dir" ||
14748$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8569$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14749 X"$as_dir" : 'X\(//\)[^/]' \| \ 8570 X"$as_dir" : 'X\(//\)[^/]' \| \
14750 X"$as_dir" : 'X\(//\)$' \| \ 8571 X"$as_dir" : 'X\(//\)$' \| \
14751 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8572 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14752echo X"$as_dir" | 8573$as_echo X"$as_dir" |
14753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14754 s//\1/ 8575 s//\1/
14755 q 8576 q
14756 } 8577 }
14757 /^X\(\/\/\)[^/].*/{ 8578 /^X\(\/\/\)[^/].*/{
14768 } 8589 }
14769 s/.*/./; q'` 8590 s/.*/./; q'`
14770 test -d "$as_dir" && break 8591 test -d "$as_dir" && break
14771 done 8592 done
14772 test -z "$as_dirs" || eval "mkdir $as_dirs" 8593 test -z "$as_dirs" || eval "mkdir $as_dirs"
14773 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 8594 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14774echo "$as_me: error: cannot create directory $as_dir" >&2;} 8595
14775 { (exit 1); exit 1; }; }; } 8596
8597} # as_fn_mkdir_p
8598if mkdir -p . 2>/dev/null; then
8599 as_mkdir_p='mkdir -p "$as_dir"'
8600else
8601 test -d ./-p && rmdir ./-p
8602 as_mkdir_p=false
8603fi
8604
8605if test -x / >/dev/null 2>&1; then
8606 as_test_x='test -x'
8607else
8608 if ls -dL / >/dev/null 2>&1; then
8609 as_ls_L_option=L
8610 else
8611 as_ls_L_option=
8612 fi
8613 as_test_x='
8614 eval sh -c '\''
8615 if test -d "$1"; then
8616 test -d "$1/.";
8617 else
8618 case $1 in #(
8619 -*)set "./$1";;
8620 esac;
8621 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8622 ???[sx]*):;;*)false;;esac;fi
8623 '\'' sh
8624 '
8625fi
8626as_executable_p=$as_test_x
8627
8628# Sed expression to map a string onto a valid CPP name.
8629as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8630
8631# Sed expression to map a string onto a valid variable name.
8632as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8633
8634
8635exec 6>&1
8636## ----------------------------------- ##
8637## Main body of $CONFIG_STATUS script. ##
8638## ----------------------------------- ##
8639_ASEOF
8640test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8641
8642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8643# Save the log message, to keep $0 and so on meaningful, and to
8644# report actual input values of CONFIG_FILES etc. instead of their
8645# values after options handling.
8646ac_log="
8647This file was extended by $as_me, which was
8648generated by GNU Autoconf 2.67. Invocation command line was
8649
8650 CONFIG_FILES = $CONFIG_FILES
8651 CONFIG_HEADERS = $CONFIG_HEADERS
8652 CONFIG_LINKS = $CONFIG_LINKS
8653 CONFIG_COMMANDS = $CONFIG_COMMANDS
8654 $ $0 $@
8655
8656on `(hostname || uname -n) 2>/dev/null | sed 1q`
8657"
8658
8659_ACEOF
8660
8661case $ac_config_files in *"
8662"*) set x $ac_config_files; shift; ac_config_files=$*;;
8663esac
8664
8665case $ac_config_headers in *"
8666"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8667esac
8668
8669
8670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8671# Files that config.status was made for.
8672config_files="$ac_config_files"
8673config_headers="$ac_config_headers"
8674
8675_ACEOF
8676
8677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8678ac_cs_usage="\
8679\`$as_me' instantiates files and other configuration actions
8680from templates according to the current configuration. Unless the files
8681and actions are specified as TAGs, all are instantiated by default.
8682
8683Usage: $0 [OPTION]... [TAG]...
8684
8685 -h, --help print this help, then exit
8686 -V, --version print version number and configuration settings, then exit
8687 --config print configuration, then exit
8688 -q, --quiet, --silent
8689 do not print progress messages
8690 -d, --debug don't remove temporary files
8691 --recheck update $as_me by reconfiguring in the same conditions
8692 --file=FILE[:TEMPLATE]
8693 instantiate the configuration file FILE
8694 --header=FILE[:TEMPLATE]
8695 instantiate the configuration header FILE
8696
8697Configuration files:
8698$config_files
8699
8700Configuration headers:
8701$config_headers
8702
8703Report bugs to the package provider."
8704
8705_ACEOF
8706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8707ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8708ac_cs_version="\\
8709config.status
8710configured by $0, generated by GNU Autoconf 2.67,
8711 with options \\"\$ac_cs_config\\"
8712
8713Copyright (C) 2010 Free Software Foundation, Inc.
8714This config.status script is free software; the Free Software Foundation
8715gives unlimited permission to copy, distribute and modify it."
8716
8717ac_pwd='$ac_pwd'
8718srcdir='$srcdir'
8719INSTALL='$INSTALL'
8720test -n "\$AWK" || AWK=awk
8721_ACEOF
8722
8723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8724# The default lists apply if the user does not specify any file.
8725ac_need_defaults=:
8726while test $# != 0
8727do
8728 case $1 in
8729 --*=?*)
8730 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8731 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8732 ac_shift=:
8733 ;;
8734 --*=)
8735 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8736 ac_optarg=
8737 ac_shift=:
8738 ;;
8739 *)
8740 ac_option=$1
8741 ac_optarg=$2
8742 ac_shift=shift
8743 ;;
8744 esac
8745
8746 case $ac_option in
8747 # Handling of the options.
8748 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8749 ac_cs_recheck=: ;;
8750 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8751 $as_echo "$ac_cs_version"; exit ;;
8752 --config | --confi | --conf | --con | --co | --c )
8753 $as_echo "$ac_cs_config"; exit ;;
8754 --debug | --debu | --deb | --de | --d | -d )
8755 debug=: ;;
8756 --file | --fil | --fi | --f )
8757 $ac_shift
8758 case $ac_optarg in
8759 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8760 '') as_fn_error $? "missing file argument" ;;
8761 esac
8762 as_fn_append CONFIG_FILES " '$ac_optarg'"
8763 ac_need_defaults=false;;
8764 --header | --heade | --head | --hea )
8765 $ac_shift
8766 case $ac_optarg in
8767 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8768 esac
8769 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8770 ac_need_defaults=false;;
8771 --he | --h)
8772 # Conflict between --help and --header
8773 as_fn_error $? "ambiguous option: \`$1'
8774Try \`$0 --help' for more information.";;
8775 --help | --hel | -h )
8776 $as_echo "$ac_cs_usage"; exit ;;
8777 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8778 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8779 ac_cs_silent=: ;;
8780
8781 # This is an error.
8782 -*) as_fn_error $? "unrecognized option: \`$1'
8783Try \`$0 --help' for more information." ;;
8784
8785 *) as_fn_append ac_config_targets " $1"
8786 ac_need_defaults=false ;;
8787
8788 esac
8789 shift
8790done
8791
8792ac_configure_extra_args=
8793
8794if $ac_cs_silent; then
8795 exec 6>/dev/null
8796 ac_configure_extra_args="$ac_configure_extra_args --silent"
8797fi
8798
8799_ACEOF
8800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8801if \$ac_cs_recheck; then
8802 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8803 shift
8804 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8805 CONFIG_SHELL='$SHELL'
8806 export CONFIG_SHELL
8807 exec "\$@"
8808fi
8809
8810_ACEOF
8811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8812exec 5>>config.log
8813{
8814 echo
8815 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8816## Running $as_me. ##
8817_ASBOX
8818 $as_echo "$ac_log"
8819} >&5
8820
8821_ACEOF
8822cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8823_ACEOF
8824
8825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8826
8827# Handling of arguments.
8828for ac_config_target in $ac_config_targets
8829do
8830 case $ac_config_target in
8831 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
8832 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8833 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8834 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8835
8836 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
8837 esac
8838done
8839
8840
8841# If the user did not use the arguments to specify the items to instantiate,
8842# then the envvar interface is used. Set only those that are not.
8843# We use the long form for the default assignment because of an extremely
8844# bizarre bug on SunOS 4.1.3.
8845if $ac_need_defaults; then
8846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8848fi
8849
8850# Have a temporary directory for convenience. Make it in the build tree
8851# simply because there is no reason against having it here, and in addition,
8852# creating and moving files from /tmp can sometimes cause problems.
8853# Hook for its removal unless debugging.
8854# Note that there is a small window in which the directory will not be cleaned:
8855# after its creation but before its name has been assigned to `$tmp'.
8856$debug ||
8857{
8858 tmp=
8859 trap 'exit_status=$?
8860 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8861' 0
8862 trap 'as_fn_exit 1' 1 2 13 15
8863}
8864# Create a (secure) tmp directory for tmp files.
8865
8866{
8867 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8868 test -n "$tmp" && test -d "$tmp"
8869} ||
8870{
8871 tmp=./conf$$-$RANDOM
8872 (umask 077 && mkdir "$tmp")
8873} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8874
8875# Set up the scripts for CONFIG_FILES section.
8876# No need to generate them if there are no CONFIG_FILES.
8877# This happens for instance with `./config.status config.h'.
8878if test -n "$CONFIG_FILES"; then
8879
8880
8881ac_cr=`echo X | tr X '\015'`
8882# On cygwin, bash can eat \r inside `` if the user requested igncr.
8883# But we know of no other shell where ac_cr would be empty at this
8884# point, so we can use a bashism as a fallback.
8885if test "x$ac_cr" = x; then
8886 eval ac_cr=\$\'\\r\'
8887fi
8888ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8889if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8890 ac_cs_awk_cr='\\r'
8891else
8892 ac_cs_awk_cr=$ac_cr
8893fi
8894
8895echo 'BEGIN {' >"$tmp/subs1.awk" &&
8896_ACEOF
8897
8898
8899{
8900 echo "cat >conf$$subs.awk <<_ACEOF" &&
8901 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8902 echo "_ACEOF"
8903} >conf$$subs.sh ||
8904 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8905ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8906ac_delim='%!_!# '
8907for ac_last_try in false false false false false :; do
8908 . ./conf$$subs.sh ||
8909 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8910
8911 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8912 if test $ac_delim_n = $ac_delim_num; then
8913 break
8914 elif $ac_last_try; then
8915 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8916 else
8917 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8918 fi
8919done
8920rm -f conf$$subs.sh
8921
8922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8923cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8924_ACEOF
8925sed -n '
8926h
8927s/^/S["/; s/!.*/"]=/
8928p
8929g
8930s/^[^!]*!//
8931:repl
8932t repl
8933s/'"$ac_delim"'$//
8934t delim
8935:nl
8936h
8937s/\(.\{148\}\)..*/\1/
8938t more1
8939s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8940p
8941n
8942b repl
8943:more1
8944s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8945p
8946g
8947s/.\{148\}//
8948t nl
8949:delim
8950h
8951s/\(.\{148\}\)..*/\1/
8952t more2
8953s/["\\]/\\&/g; s/^/"/; s/$/"/
8954p
8955b
8956:more2
8957s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8958p
8959g
8960s/.\{148\}//
8961t delim
8962' <conf$$subs.awk | sed '
8963/^[^""]/{
8964 N
8965 s/\n//
8966}
8967' >>$CONFIG_STATUS || ac_write_fail=1
8968rm -f conf$$subs.awk
8969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8970_ACAWK
8971cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8972 for (key in S) S_is_set[key] = 1
8973 FS = ""
8974
8975}
8976{
8977 line = $ 0
8978 nfields = split(line, field, "@")
8979 substed = 0
8980 len = length(field[1])
8981 for (i = 2; i < nfields; i++) {
8982 key = field[i]
8983 keylen = length(key)
8984 if (S_is_set[key]) {
8985 value = S[key]
8986 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8987 len += length(value) + length(field[++i])
8988 substed = 1
8989 } else
8990 len += 1 + keylen
8991 }
8992
8993 print line
8994}
8995
8996_ACAWK
8997_ACEOF
8998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8999if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9000 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9001else
9002 cat
9003fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9004 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9005_ACEOF
9006
9007# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9008# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9009# trailing colons and then remove the whole line if VPATH becomes empty
9010# (actually we leave an empty line to preserve line numbers).
9011if test "x$srcdir" = x.; then
9012 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9013h
9014s///
9015s/^/:/
9016s/[ ]*$/:/
9017s/:\$(srcdir):/:/g
9018s/:\${srcdir}:/:/g
9019s/:@srcdir@:/:/g
9020s/^:*//
9021s/:*$//
9022x
9023s/\(=[ ]*\).*/\1/
9024G
9025s/\n//
9026s/^[^=]*=[ ]*$//
9027}'
9028fi
9029
9030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9031fi # test -n "$CONFIG_FILES"
9032
9033# Set up the scripts for CONFIG_HEADERS section.
9034# No need to generate them if there are no CONFIG_HEADERS.
9035# This happens for instance with `./config.status Makefile'.
9036if test -n "$CONFIG_HEADERS"; then
9037cat >"$tmp/defines.awk" <<\_ACAWK ||
9038BEGIN {
9039_ACEOF
9040
9041# Transform confdefs.h into an awk script `defines.awk', embedded as
9042# here-document in config.status, that substitutes the proper values into
9043# config.h.in to produce config.h.
9044
9045# Create a delimiter string that does not exist in confdefs.h, to ease
9046# handling of long lines.
9047ac_delim='%!_!# '
9048for ac_last_try in false false :; do
9049 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9050 if test -z "$ac_t"; then
9051 break
9052 elif $ac_last_try; then
9053 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9054 else
9055 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9056 fi
9057done
9058
9059# For the awk script, D is an array of macro values keyed by name,
9060# likewise P contains macro parameters if any. Preserve backslash
9061# newline sequences.
9062
9063ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9064sed -n '
9065s/.\{148\}/&'"$ac_delim"'/g
9066t rset
9067:rset
9068s/^[ ]*#[ ]*define[ ][ ]*/ /
9069t def
9070d
9071:def
9072s/\\$//
9073t bsnl
9074s/["\\]/\\&/g
9075s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9076D["\1"]=" \3"/p
9077s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9078d
9079:bsnl
9080s/["\\]/\\&/g
9081s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9082D["\1"]=" \3\\\\\\n"\\/p
9083t cont
9084s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9085t cont
9086d
9087:cont
9088n
9089s/.\{148\}/&'"$ac_delim"'/g
9090t clear
9091:clear
9092s/\\$//
9093t bsnlc
9094s/["\\]/\\&/g; s/^/"/; s/$/"/p
9095d
9096:bsnlc
9097s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9098b cont
9099' <confdefs.h | sed '
9100s/'"$ac_delim"'/"\\\
9101"/g' >>$CONFIG_STATUS || ac_write_fail=1
9102
9103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9104 for (key in D) D_is_set[key] = 1
9105 FS = ""
9106}
9107/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9108 line = \$ 0
9109 split(line, arg, " ")
9110 if (arg[1] == "#") {
9111 defundef = arg[2]
9112 mac1 = arg[3]
9113 } else {
9114 defundef = substr(arg[1], 2)
9115 mac1 = arg[2]
9116 }
9117 split(mac1, mac2, "(") #)
9118 macro = mac2[1]
9119 prefix = substr(line, 1, index(line, defundef) - 1)
9120 if (D_is_set[macro]) {
9121 # Preserve the white space surrounding the "#".
9122 print prefix "define", macro P[macro] D[macro]
9123 next
9124 } else {
9125 # Replace #undef with comments. This is necessary, for example,
9126 # in the case of _POSIX_SOURCE, which is predefined and required
9127 # on some systems where configure will not decide to define it.
9128 if (defundef == "undef") {
9129 print "/*", prefix defundef, macro, "*/"
9130 next
9131 }
9132 }
9133}
9134{ print }
9135_ACAWK
9136_ACEOF
9137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9138 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9139fi # test -n "$CONFIG_HEADERS"
9140
9141
9142eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
9143shift
9144for ac_tag
9145do
9146 case $ac_tag in
9147 :[FHLC]) ac_mode=$ac_tag; continue;;
9148 esac
9149 case $ac_mode$ac_tag in
9150 :[FHL]*:*);;
9151 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
9152 :[FH]-) ac_tag=-:-;;
9153 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9154 esac
9155 ac_save_IFS=$IFS
9156 IFS=:
9157 set x $ac_tag
9158 IFS=$ac_save_IFS
9159 shift
9160 ac_file=$1
9161 shift
9162
9163 case $ac_mode in
9164 :L) ac_source=$1;;
9165 :[FH])
9166 ac_file_inputs=
9167 for ac_f
9168 do
9169 case $ac_f in
9170 -) ac_f="$tmp/stdin";;
9171 *) # Look for the file first in the build tree, then in the source tree
9172 # (if the path is not absolute). The absolute path cannot be DOS-style,
9173 # because $ac_f cannot contain `:'.
9174 test -f "$ac_f" ||
9175 case $ac_f in
9176 [\\/$]*) false;;
9177 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9178 esac ||
9179 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
9180 esac
9181 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9182 as_fn_append ac_file_inputs " '$ac_f'"
9183 done
9184
9185 # Let's still pretend it is `configure' which instantiates (i.e., don't
9186 # use $as_me), people would be surprised to read:
9187 # /* config.h. Generated by config.status. */
9188 configure_input='Generated from '`
9189 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9190 `' by configure.'
9191 if test x"$ac_file" != x-; then
9192 configure_input="$ac_file. $configure_input"
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9194$as_echo "$as_me: creating $ac_file" >&6;}
9195 fi
9196 # Neutralize special characters interpreted by sed in replacement strings.
9197 case $configure_input in #(
9198 *\&* | *\|* | *\\* )
9199 ac_sed_conf_input=`$as_echo "$configure_input" |
9200 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9201 *) ac_sed_conf_input=$configure_input;;
9202 esac
9203
9204 case $ac_tag in
9205 *:-:* | *:-) cat >"$tmp/stdin" \
9206 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9207 esac
9208 ;;
9209 esac
9210
9211 ac_dir=`$as_dirname -- "$ac_file" ||
9212$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9213 X"$ac_file" : 'X\(//\)[^/]' \| \
9214 X"$ac_file" : 'X\(//\)$' \| \
9215 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9216$as_echo X"$ac_file" |
9217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9218 s//\1/
9219 q
9220 }
9221 /^X\(\/\/\)[^/].*/{
9222 s//\1/
9223 q
9224 }
9225 /^X\(\/\/\)$/{
9226 s//\1/
9227 q
9228 }
9229 /^X\(\/\).*/{
9230 s//\1/
9231 q
9232 }
9233 s/.*/./; q'`
9234 as_dir="$ac_dir"; as_fn_mkdir_p
14776 ac_builddir=. 9235 ac_builddir=.
14777 9236
14778case "$ac_dir" in 9237case "$ac_dir" in
14779.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9238.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14780*) 9239*)
14781 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9240 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14782 # A ".." for each directory in $ac_dir_suffix. 9241 # A ".." for each directory in $ac_dir_suffix.
14783 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 9242 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14784 case $ac_top_builddir_sub in 9243 case $ac_top_builddir_sub in
14785 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9244 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14786 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9245 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14787 esac ;; 9246 esac ;;
14788esac 9247esac
14818 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9277 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14819 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9278 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14820 esac 9279 esac
14821_ACEOF 9280_ACEOF
14822 9281
14823cat >>$CONFIG_STATUS <<\_ACEOF 9282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14824# If the template does not know about datarootdir, expand it. 9283# If the template does not know about datarootdir, expand it.
14825# FIXME: This hack should be removed a few years after 2.60. 9284# FIXME: This hack should be removed a few years after 2.60.
14826ac_datarootdir_hack=; ac_datarootdir_seen= 9285ac_datarootdir_hack=; ac_datarootdir_seen=
14827 9286ac_sed_dataroot='
14828case `sed -n '/datarootdir/ { 9287/datarootdir/ {
14829 p 9288 p
14830 q 9289 q
14831} 9290}
14832/@datadir@/p 9291/@datadir@/p
14833/@docdir@/p 9292/@docdir@/p
14834/@infodir@/p 9293/@infodir@/p
14835/@localedir@/p 9294/@localedir@/p
14836/@mandir@/p 9295/@mandir@/p'
14837' $ac_file_inputs` in 9296case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14838*datarootdir*) ac_datarootdir_seen=yes;; 9297*datarootdir*) ac_datarootdir_seen=yes;;
14839*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9298*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14840 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9299 { $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;} 9300$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14842_ACEOF 9301_ACEOF
14843cat >>$CONFIG_STATUS <<_ACEOF 9302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14844 ac_datarootdir_hack=' 9303 ac_datarootdir_hack='
14845 s&@datadir@&$datadir&g 9304 s&@datadir@&$datadir&g
14846 s&@docdir@&$docdir&g 9305 s&@docdir@&$docdir&g
14847 s&@infodir@&$infodir&g 9306 s&@infodir@&$infodir&g
14848 s&@localedir@&$localedir&g 9307 s&@localedir@&$localedir&g
14849 s&@mandir@&$mandir&g 9308 s&@mandir@&$mandir&g
14850 s&\\\${datarootdir}&$datarootdir&g' ;; 9309 s&\\\${datarootdir}&$datarootdir&g' ;;
14851esac 9310esac
14852_ACEOF 9311_ACEOF
14853 9312
14854# Neutralize VPATH when `$srcdir' = `.'. 9313# Neutralize VPATH when `$srcdir' = `.'.
14855# Shell code in configure.ac might set extrasub. 9314# Shell code in configure.ac might set extrasub.
14856# FIXME: do we really want to maintain this feature? 9315# FIXME: do we really want to maintain this feature?
14857cat >>$CONFIG_STATUS <<_ACEOF 9316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14858 sed "$ac_vpsub 9317ac_sed_extra="$ac_vpsub
14859$extrasub 9318$extrasub
14860_ACEOF 9319_ACEOF
14861cat >>$CONFIG_STATUS <<\_ACEOF 9320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14862:t 9321:t
14863/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9322/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14864s&@configure_input@&$configure_input&;t t 9323s|@configure_input@|$ac_sed_conf_input|;t t
14865s&@top_builddir@&$ac_top_builddir_sub&;t t 9324s&@top_builddir@&$ac_top_builddir_sub&;t t
9325s&@top_build_prefix@&$ac_top_build_prefix&;t t
14866s&@srcdir@&$ac_srcdir&;t t 9326s&@srcdir@&$ac_srcdir&;t t
14867s&@abs_srcdir@&$ac_abs_srcdir&;t t 9327s&@abs_srcdir@&$ac_abs_srcdir&;t t
14868s&@top_srcdir@&$ac_top_srcdir&;t t 9328s&@top_srcdir@&$ac_top_srcdir&;t t
14869s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9329s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14870s&@builddir@&$ac_builddir&;t t 9330s&@builddir@&$ac_builddir&;t t
14871s&@abs_builddir@&$ac_abs_builddir&;t t 9331s&@abs_builddir@&$ac_abs_builddir&;t t
14872s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9332s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14873s&@INSTALL@&$ac_INSTALL&;t t 9333s&@INSTALL@&$ac_INSTALL&;t t
14874$ac_datarootdir_hack 9334$ac_datarootdir_hack
14875" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 9335"
9336eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14876 9338
14877test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9339test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14878 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 9340 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14879 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 9341 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14880 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9342 { $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 9343which seems to be undefined. Please make sure it is defined" >&5
14882echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9344$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;} 9345which seems to be undefined. Please make sure it is defined" >&2;}
14884 9346
14885 rm -f "$tmp/stdin" 9347 rm -f "$tmp/stdin"
14886 case $ac_file in 9348 case $ac_file in
14887 -) cat "$tmp/out"; rm -f "$tmp/out";; 9349 -) cat "$tmp/out" && rm -f "$tmp/out";;
14888 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 9350 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14889 esac 9351 esac \
9352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14890 ;; 9353 ;;
14891 :H) 9354 :H)
14892 # 9355 #
14893 # CONFIG_HEADER 9356 # CONFIG_HEADER
14894 # 9357 #
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 9358 if test x"$ac_file" != x-; then
9359 {
14974 echo "/* $configure_input */" >"$tmp/config.h" 9360 $as_echo "/* $configure_input */" \
14975 cat "$ac_result" >>"$tmp/config.h" 9361 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9362 } >"$tmp/config.h" \
9363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14976 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 9364 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14977 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9365 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14978echo "$as_me: $ac_file is unchanged" >&6;} 9366$as_echo "$as_me: $ac_file is unchanged" >&6;}
14979 else 9367 else
14980 rm -f $ac_file 9368 rm -f "$ac_file"
14981 mv "$tmp/config.h" $ac_file 9369 mv "$tmp/config.h" "$ac_file" \
9370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14982 fi 9371 fi
14983 else 9372 else
14984 echo "/* $configure_input */" 9373 $as_echo "/* $configure_input */" \
14985 cat "$ac_result" 9374 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9375 || as_fn_error $? "could not create -" "$LINENO" 5
14986 fi 9376 fi
14987 rm -f "$tmp/out12"
14988 ;; 9377 ;;
14989 9378
14990 9379
14991 esac 9380 esac
14992 9381
14993done # for ac_tag 9382done # for ac_tag
14994 9383
14995 9384
14996{ (exit 0); exit 0; } 9385as_fn_exit 0
14997_ACEOF 9386_ACEOF
14998chmod +x $CONFIG_STATUS
14999ac_clean_files=$ac_clean_files_save 9387ac_clean_files=$ac_clean_files_save
9388
9389test $ac_write_fail = 0 ||
9390 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15000 9391
15001 9392
15002# configure is writing to config.log, and then calls config.status. 9393# configure is writing to config.log, and then calls config.status.
15003# config.status does its own redirection, appending to config.log. 9394# config.status does its own redirection, appending to config.log.
15004# Unfortunately, on DOS this fails, as config.log is still kept open 9395# Unfortunately, on DOS this fails, as config.log is still kept open
15015 exec 5>/dev/null 9406 exec 5>/dev/null
15016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9407 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15017 exec 5>>config.log 9408 exec 5>>config.log
15018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9409 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15019 # would make configure fail if this is the last instruction. 9410 # would make configure fail if this is the last instruction.
15020 $ac_cs_success || { (exit 1); exit 1; } 9411 $ac_cs_success || as_fn_exit 1
9412fi
9413if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9415$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15021fi 9416fi
15022 9417
15023 9418
15024echo "Configuration: 9419echo "Configuration:
15025 9420
15028 Install path: ${prefix}/bin 9423 Install path: ${prefix}/bin
15029 Compiler: $CXX 9424 Compiler: $CXX
15030 Compiler flags: $CXXFLAGS 9425 Compiler flags: $CXXFLAGS
15031 Linker: $LINKER" 9426 Linker: $LINKER"
15032 9427
15033if test x$support_xpm = xyes; then
15034 echo " Xpm library: $XPM_LIBS"
15035fi
15036
15037if test x$term != x; then 9428if test x$term != x; then
15038 echo " set TERM to: $term" 9429 echo " set TERM to: $term"
15039fi 9430fi
15040if test x$terminfo != x; then 9431if test x$terminfo != x; then
15041 echo " set TERMINFO to: $terminfo" 9432 echo " set TERMINFO to: $terminfo"
15045if test x$RESFALLBACK != x; then 9436if test x$RESFALLBACK != x; then
15046 echo " resource class fallback: $RESFALLBACK" 9437 echo " resource class fallback: $RESFALLBACK"
15047fi 9438fi
15048echo 9439echo
15049echo " embedded perl: $support_perl" 9440echo " embedded perl: $support_perl"
9441echo " image library: $image_lib"
15050echo 9442echo
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 9443if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
15062 echo ".----------------------------------------------------------------." 9444 echo ".----------------------------------------------------------------."
15063 echo ". WARNING: --enable-xim was specified however the locale support ." 9445 echo ". WARNING: --enable-xim was specified however the locale support ."
15064 echo ". functions could not be found. ." 9446 echo ". functions could not be found. ."
15065 echo ". XIM is now being DISABLED! ." 9447 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines