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

Comparing rxvt-unicode/configure (file contents):
Revision 1.66 by root, Wed Jan 11 19:55:33 2006 UTC vs.
Revision 1.165 by root, Wed Jan 22 13:57:10 2020 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.59. 3# Generated by GNU Autoconf 2.69.
4# 4#
5#
5# Copyright (C) 2003 Free Software Foundation, Inc. 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
6# This configure script is free software; the Free Software Foundation 9# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it. 10# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ## 11## -------------------- ##
9## M4sh Initialization. ## 12## M4sh Initialization. ##
10## --------------------- ## 13## -------------------- ##
11 14
12# Be Bourne compatible 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14 emulate sh 18 emulate sh
15 NULLCMD=: 19 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature. 21 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"' 22 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
20 set -o posix 27 set -o posix ;; #(
28 *) :
29 ;;
30esac
21fi 31fi
22DUALCASE=1; export DUALCASE # for MKS sh
23 32
24# Support unset when possible. 33
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 34as_nl='
26 as_unset=unset 35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
27else 54 else
28 as_unset=false 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
29fi 70fi
30 71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
31 80
32# Work around bugs in pre-3.0 UWIN ksh. 81
33$as_unset ENV MAIL MAILPATH 82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
34PS1='$ ' 122PS1='$ '
35PS2='> ' 123PS2='> '
36PS4='+ ' 124PS4='+ '
37 125
38# NLS nuisances. 126# NLS nuisances.
39for as_var in \ 127LC_ALL=C
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 128export LC_ALL
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 129LANGUAGE=C
42 LC_TELEPHONE LC_TIME 130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43do 211do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 212 IFS=$as_save_IFS
45 eval $as_var=C; export $as_var 213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
46 else 266 else
47 $as_unset $as_var 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
48 fi 271 fi
49done 272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
50 281
51# Required to use basename. 282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
52if expr a : '\(a\)' >/dev/null 2>&1; then 419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
53 as_expr=expr 421 as_expr=expr
54else 422else
55 as_expr=false 423 as_expr=false
56fi 424fi
57 425
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
59 as_basename=basename 427 as_basename=basename
60else 428else
61 as_basename=false 429 as_basename=false
62fi 430fi
63 431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
64 437
65# Name of the executable.
66as_me=`$as_basename "$0" || 438as_me=`$as_basename -- "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \ 440 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" | 442$as_echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 443 sed '/^.*\/\([^/][^/]*\)\/*$/{
73 /^X\/\(\/\/\)$/{ s//\1/; q; } 444 s//\1/
74 /^X\/\(\/\).*/{ s//\1/; q; } 445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
75 s/.*/./; q'` 455 s/.*/./; q'`
76 456
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges. 457# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789' 461as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits 462as_cr_alnum=$as_cr_Letters$as_cr_digits
85 463
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98 464
99 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
100 as_lineno_1=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" && 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || { 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
105 # Find who we are. Look in the path if we contain no path at all 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
106 # relative or not. 470 sed -n '
107 case $0 in 471 p
108 *[\\/]* ) as_myself=$0 ;; 472 /[$]LINENO/=
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself | 473 ' <$as_myself |
165 sed ' 474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
166 N 479 N
167 s,$,-,
168 : loop 480 :loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
170 t loop 482 t loop
171 s,-$,, 483 s/-\n.*//
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno && 484 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno || 485 chmod +x "$as_me.lineno" ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
176 { (exit 1); exit 1; }; }
177 487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
178 # Don't try to exec as it changes $[0], causing all sort of problems 492 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the 493 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this). 494 # original and so on. Autoconf is especially sensitive to this).
181 . ./$as_me.lineno 495 . "./$as_me.lineno"
182 # Exit status is that of the last command. 496 # Exit status is that of the last command.
183 exit 497 exit
184} 498}
185 499
186 500ECHO_C= ECHO_N= ECHO_T=
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 501case `echo -n x` in #(((((
188 *c*,-n*) ECHO_N= ECHO_C=' 502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
189' ECHO_T=' ' ;; 507 ECHO_T=' ';;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 508 esac;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 509*)
510 ECHO_N='-n';;
192esac 511esac
193 512
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file 513rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file 514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
202if ln -s conf$$.file conf$$ 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic 522 as_ln_s='ln -s'
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 523 # ... but there are two gotchas:
205 if test -f conf$$.exe; then 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
206 # Don't use ln at all; we don't have any links 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
207 as_ln_s='cp -p' 528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
208 else 531 else
209 as_ln_s='ln -s' 532 as_ln_s='cp -pR'
210 fi 533 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else 534else
214 as_ln_s='cp -p' 535 as_ln_s='cp -pR'
215fi 536fi
216rm -f conf$$ conf$$.exe conf$$.file 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
217 539
218if mkdir -p . 2>/dev/null; then 540if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=: 541 as_mkdir_p='mkdir -p "$as_dir"'
220else 542else
221 test -d ./-p && rmdir ./-p 543 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false 544 as_mkdir_p=false
223fi 545fi
224 546
225as_executable_p="test -f" 547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
226 549
227# Sed expression to map a string onto a valid CPP name. 550# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229 552
230# Sed expression to map a string onto a valid variable name. 553# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232 555
233 556
234# IFS 557test -n "$DJDIR" || exec 7<&0 </dev/null
235# We need space, tab and new line, in precisely that order. 558exec 6>&1
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243 559
244# Name of the host. 560# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
246# so uname gets run too. 562# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250 564
251# 565#
252# Initializations. 566# Initializations.
253# 567#
254ac_default_prefix=/usr/local 568ac_default_prefix=/usr/local
569ac_clean_files=
255ac_config_libobj_dir=. 570ac_config_libobj_dir=.
571LIBOBJS=
256cross_compiling=no 572cross_compiling=no
257subdirs= 573subdirs=
258MFLAGS= 574MFLAGS=
259MAKEFLAGS= 575MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266 576
267# Identity of this package. 577# Identity of this package.
268PACKAGE_NAME= 578PACKAGE_NAME=
269PACKAGE_TARNAME= 579PACKAGE_TARNAME=
270PACKAGE_VERSION= 580PACKAGE_VERSION=
271PACKAGE_STRING= 581PACKAGE_STRING=
272PACKAGE_BUGREPORT= 582PACKAGE_BUGREPORT=
583PACKAGE_URL=
273 584
274ac_unique_file="src/feature.h" 585ac_unique_file="src/feature.h"
275# Factoring default headers for most tests. 586# Factoring default headers for most tests.
276ac_includes_default="\ 587ac_includes_default="\
277#include <stdio.h> 588#include <stdio.h>
278#if HAVE_SYS_TYPES_H 589#ifdef HAVE_SYS_TYPES_H
279# include <sys/types.h> 590# include <sys/types.h>
280#endif 591#endif
281#if HAVE_SYS_STAT_H 592#ifdef HAVE_SYS_STAT_H
282# include <sys/stat.h> 593# include <sys/stat.h>
283#endif 594#endif
284#if STDC_HEADERS 595#ifdef STDC_HEADERS
285# include <stdlib.h> 596# include <stdlib.h>
286# include <stddef.h> 597# include <stddef.h>
287#else 598#else
288# if HAVE_STDLIB_H 599# ifdef HAVE_STDLIB_H
289# include <stdlib.h> 600# include <stdlib.h>
290# endif 601# endif
291#endif 602#endif
292#if HAVE_STRING_H 603#ifdef HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
294# include <memory.h> 605# include <memory.h>
295# endif 606# endif
296# include <string.h> 607# include <string.h>
297#endif 608#endif
298#if HAVE_STRINGS_H 609#ifdef HAVE_STRINGS_H
299# include <strings.h> 610# include <strings.h>
300#endif 611#endif
301#if HAVE_INTTYPES_H 612#ifdef HAVE_INTTYPES_H
302# include <inttypes.h> 613# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif 614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
308#if HAVE_UNISTD_H 618#ifdef HAVE_UNISTD_H
309# include <unistd.h> 619# include <unistd.h>
310#endif" 620#endif"
311 621
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TBL TIC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' 622ac_subst_vars='LTLIBOBJS
623LIBOBJS
624PERL_O
625IF_PERL
626PERLPRIVLIBEXP
627PERLFLAGS
628PERLLIB
629PERL
630XFT_CONFIG
631STARTUP_NOTIFICATION_LIBS
632STARTUP_NOTIFICATION_CFLAGS
633PIXBUF_LIBS
634PIXBUF_CFLAGS
635PKG_CONFIG
636X_EXTRA_LIBS
637X_LIBS
638X_PRE_LIBS
639X_CFLAGS
640XMKMF
641TIC
642CXXCPP
643RXVTNAME
644LINKER
645EGREP
646GREP
647CPP
648INSTALL_DATA
649INSTALL_SCRIPT
650INSTALL_PROGRAM
651ac_ct_CXX
652CXXFLAGS
653CXX
654OBJEXT
655EXEEXT
656ac_ct_CC
657CPPFLAGS
658LDFLAGS
659CFLAGS
660CC
661DATE
662VERSION
663host_os
664host_vendor
665host_cpu
666host
667build_os
668build_vendor
669build_cpu
670build
671target_alias
672host_alias
673build_alias
674LIBS
675ECHO_T
676ECHO_N
677ECHO_C
678DEFS
679mandir
680localedir
681libdir
682psdir
683pdfdir
684dvidir
685htmldir
686infodir
687docdir
688oldincludedir
689includedir
690runstatedir
691localstatedir
692sharedstatedir
693sysconfdir
694datadir
695datarootdir
696libexecdir
697sbindir
698bindir
699program_transform_name
700prefix
701exec_prefix
702PACKAGE_URL
703PACKAGE_BUGREPORT
704PACKAGE_STRING
705PACKAGE_VERSION
706PACKAGE_TARNAME
707PACKAGE_NAME
708PATH_SEPARATOR
709SHELL'
313ac_subst_files='MCOMMON' 710ac_subst_files=''
711ac_user_opts='
712enable_option_checking
713enable_everything
714enable_assert
715enable_warnings
716enable_256_color
717enable_unicode3
718enable_combining
719enable_xft
720enable_font_styles
721enable_pixbuf
722enable_startup_notification
723enable_transparency
724enable_fading
725enable_rxvt_scroll
726enable_next_scroll
727enable_xterm_scroll
728enable_perl
729with_codesets
730enable_xim
731enable_backspace_key
732enable_delete_key
733enable_resources
734enable_8bitctrls
735enable_fallback
736with_res_name
737with_res_class
738with_name
739enable_swapscreen
740enable_iso14755
741enable_frills
742enable_keepscrolling
743enable_selectionscrolling
744enable_mousewheel
745enable_slipwheeling
746enable_smart_resize
747enable_text_blink
748enable_pointer_blank
749with_term
750with_terminfo
751with_x
752enable_utmp
753enable_wtmp
754enable_lastlog
755'
756 ac_precious_vars='build_alias
757host_alias
758target_alias
759CC
760CFLAGS
761LDFLAGS
762LIBS
763CPPFLAGS
764CXX
765CXXFLAGS
766CCC
767CPP
768CXXCPP
769XMKMF'
770
314 771
315# Initialize some variables set by options. 772# Initialize some variables set by options.
316ac_init_help= 773ac_init_help=
317ac_init_version=false 774ac_init_version=false
775ac_unrecognized_opts=
776ac_unrecognized_sep=
318# The variables have the same names as the options, with 777# The variables have the same names as the options, with
319# dashes changed to underlines. 778# dashes changed to underlines.
320cache_file=/dev/null 779cache_file=/dev/null
321exec_prefix=NONE 780exec_prefix=NONE
322no_create= 781no_create=
335# Installation directory options. 794# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo" 795# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix 796# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change. 797# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them. 798# Use braces instead of parens because sh, perl, etc. also accept them.
799# (The list follows the same order as the GNU Coding Standards.)
340bindir='${exec_prefix}/bin' 800bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin' 801sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec' 802libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share' 803datarootdir='${prefix}/share'
804datadir='${datarootdir}'
344sysconfdir='${prefix}/etc' 805sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com' 806sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var' 807localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib' 808runstatedir='${localstatedir}/run'
348includedir='${prefix}/include' 809includedir='${prefix}/include'
349oldincludedir='/usr/include' 810oldincludedir='/usr/include'
811docdir='${datarootdir}/doc/${PACKAGE}'
350infodir='${prefix}/info' 812infodir='${datarootdir}/info'
351mandir='${prefix}/man' 813htmldir='${docdir}'
814dvidir='${docdir}'
815pdfdir='${docdir}'
816psdir='${docdir}'
817libdir='${exec_prefix}/lib'
818localedir='${datarootdir}/locale'
819mandir='${datarootdir}/man'
352 820
353ac_prev= 821ac_prev=
822ac_dashdash=
354for ac_option 823for ac_option
355do 824do
356 # If the previous option needs an argument, assign it. 825 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then 826 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option" 827 eval $ac_prev=\$ac_option
359 ac_prev= 828 ac_prev=
360 continue 829 continue
361 fi 830 fi
362 831
832 case $ac_option in
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 833 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 *=) ac_optarg= ;;
835 *) ac_optarg=yes ;;
836 esac
364 837
365 # Accept the important Cygnus configure options, so we can diagnose typos. 838 # Accept the important Cygnus configure options, so we can diagnose typos.
366 839
367 case $ac_option in 840 case $ac_dashdash$ac_option in
841 --)
842 ac_dashdash=yes ;;
368 843
369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 844 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;; 845 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;; 847 bindir=$ac_optarg ;;
384 cache_file=$ac_optarg ;; 859 cache_file=$ac_optarg ;;
385 860
386 --config-cache | -C) 861 --config-cache | -C)
387 cache_file=config.cache ;; 862 cache_file=config.cache ;;
388 863
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 864 -datadir | --datadir | --datadi | --datad)
390 ac_prev=datadir ;; 865 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 866 -datadir=* | --datadir=* | --datadi=* | --datad=*)
392 | --da=*)
393 datadir=$ac_optarg ;; 867 datadir=$ac_optarg ;;
394 868
869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870 | --dataroo | --dataro | --datar)
871 ac_prev=datarootdir ;;
872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874 datarootdir=$ac_optarg ;;
875
395 -disable-* | --disable-*) 876 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 877 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names. 878 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 880 as_fn_error $? "invalid feature name: $ac_useropt"
400 { (exit 1); exit 1; }; } 881 ac_useropt_orig=$ac_useropt
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
884 *"
885"enable_$ac_useropt"
886"*) ;;
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep=', ';;
889 esac
402 eval "enable_$ac_feature=no" ;; 890 eval enable_$ac_useropt=no ;;
891
892 -docdir | --docdir | --docdi | --doc | --do)
893 ac_prev=docdir ;;
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 docdir=$ac_optarg ;;
896
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 ac_prev=dvidir ;;
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 dvidir=$ac_optarg ;;
403 901
404 -enable-* | --enable-*) 902 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names. 904 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 906 as_fn_error $? "invalid feature name: $ac_useropt"
409 { (exit 1); exit 1; }; } 907 ac_useropt_orig=$ac_useropt
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
411 case $ac_option in 909 case $ac_user_opts in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 910 *"
413 *) ac_optarg=yes ;; 911"enable_$ac_useropt"
912"*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
414 esac 915 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;; 916 eval enable_$ac_useropt=\$ac_optarg ;;
416 917
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex) 920 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;; 921 ac_prev=exec_prefix ;;
437 -host | --host | --hos | --ho) 938 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;; 939 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*) 940 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;; 941 host_alias=$ac_optarg ;;
441 942
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 ac_prev=htmldir ;;
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 | --ht=*)
947 htmldir=$ac_optarg ;;
948
442 -includedir | --includedir | --includedi | --included | --include \ 949 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc) 950 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;; 951 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*) 953 | --includ=* | --inclu=* | --incl=* | --inc=*)
461 ac_prev=libexecdir ;; 968 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*) 970 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;; 971 libexecdir=$ac_optarg ;;
465 972
973 -localedir | --localedir | --localedi | --localed | --locale)
974 ac_prev=localedir ;;
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
977
466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 978 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \ 979 | --localstate | --localstat | --localsta | --localst | --locals)
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;; 980 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;; 983 localstatedir=$ac_optarg ;;
474 984
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;; 986 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
532 | --program-transfo=* | --program-transf=* \ 1042 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \ 1043 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*) 1044 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;; 1045 program_transform_name=$ac_optarg ;;
536 1046
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 ac_prev=pdfdir ;;
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1051
1052 -psdir | --psdir | --psdi | --psd | --ps)
1053 ac_prev=psdir ;;
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 psdir=$ac_optarg ;;
1056
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil) 1058 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;; 1059 silent=yes ;;
1060
1061 -runstatedir | --runstatedir | --runstatedi | --runstated \
1062 | --runstate | --runstat | --runsta | --runst | --runs \
1063 | --run | --ru | --r)
1064 ac_prev=runstatedir ;;
1065 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1066 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1067 | --run=* | --ru=* | --r=*)
1068 runstatedir=$ac_optarg ;;
540 1069
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;; 1071 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*) 1073 | --sbi=* | --sb=*)
582 1111
583 -version | --version | --versio | --versi | --vers | -V) 1112 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;; 1113 ac_init_version=: ;;
585 1114
586 -with-* | --with-*) 1115 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names. 1117 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2 1119 as_fn_error $? "invalid package name: $ac_useropt"
591 { (exit 1); exit 1; }; } 1120 ac_useropt_orig=$ac_useropt
592 ac_package=`echo $ac_package| sed 's/-/_/g'` 1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
593 case $ac_option in 1122 case $ac_user_opts in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 1123 *"
595 *) ac_optarg=yes ;; 1124"with_$ac_useropt"
1125"*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
596 esac 1128 esac
597 eval "with_$ac_package='$ac_optarg'" ;; 1129 eval with_$ac_useropt=\$ac_optarg ;;
598 1130
599 -without-* | --without-*) 1131 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names. 1133 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2 1135 as_fn_error $? "invalid package name: $ac_useropt"
604 { (exit 1); exit 1; }; } 1136 ac_useropt_orig=$ac_useropt
605 ac_package=`echo $ac_package | sed 's/-/_/g'` 1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140"with_$ac_useropt"
1141"*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
606 eval "with_$ac_package=no" ;; 1145 eval with_$ac_useropt=no ;;
607 1146
608 --x) 1147 --x)
609 # Obsolete; use --with-x. 1148 # Obsolete; use --with-x.
610 with_x=yes ;; 1149 with_x=yes ;;
611 1150
621 ac_prev=x_libraries ;; 1160 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;; 1163 x_libraries=$ac_optarg ;;
625 1164
626 -*) { echo "$as_me: error: unrecognized option: $ac_option 1165 -*) as_fn_error $? "unrecognized option: \`$ac_option'
627Try \`$0 --help' for more information." >&2 1166Try \`$0 --help' for more information"
628 { (exit 1); exit 1; }; }
629 ;; 1167 ;;
630 1168
631 *=*) 1169 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names. 1171 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
636 { (exit 1); exit 1; }; } 1175 esac
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'" 1176 eval $ac_envvar=\$ac_optarg
639 export $ac_envvar ;; 1177 export $ac_envvar ;;
640 1178
641 *) 1179 *)
642 # FIXME: should be removed in autoconf 3.0. 1180 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
647 ;; 1185 ;;
648 1186
649 esac 1187 esac
650done 1188done
651 1189
652if test -n "$ac_prev"; then 1190if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2 1192 as_fn_error $? "missing argument to $ac_option"
655 { (exit 1); exit 1; }; }
656fi 1193fi
657 1194
658# Be sure to have absolute paths. 1195if test -n "$ac_unrecognized_opts"; then
659for ac_var in exec_prefix prefix 1196 case $enable_option_checking in
1197 no) ;;
1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 esac
1201fi
1202
1203# Check all directory arguments for consistency.
1204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir runstatedir
660do 1208do
661 eval ac_val=$`echo $ac_var` 1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
662 case $ac_val in 1211 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 1212 */ )
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
665 { (exit 1); exit 1; }; };; 1214 eval $ac_var=\$ac_val;;
666 esac 1215 esac
667done
668
669# Be sure to have absolute paths. 1216 # Be sure to have absolute directory names.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in 1217 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;; 1218 [\\/$]* | ?:[\\/]* ) continue;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
677 { (exit 1); exit 1; }; };;
678 esac 1220 esac
1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
679done 1222done
680 1223
681# There might be people who depend on the old broken behavior: `$host' 1224# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc. 1225# used to hold the argument of --host etc.
683# FIXME: To remove some day. 1226# FIXME: To remove some day.
687 1230
688# FIXME: To remove some day. 1231# FIXME: To remove some day.
689if test "x$host_alias" != x; then 1232if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then 1233 if test "x$build_alias" = x; then
691 cross_compiling=maybe 1234 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then 1235 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes 1236 cross_compiling=yes
696 fi 1237 fi
697fi 1238fi
698 1239
699ac_tool_prefix= 1240ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias- 1241test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 1242
702test "$silent" = yes && exec 6>/dev/null 1243test "$silent" = yes && exec 6>/dev/null
1244
1245
1246ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247ac_ls_di=`ls -di .` &&
1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
703 1252
704 1253
705# Find the source files, if location was not specified. 1254# Find the source files, if location was not specified.
706if test -z "$srcdir"; then 1255if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes 1256 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent. 1257 # Try the directory containing this script, then the parent directory.
709 ac_confdir=`(dirname "$0") 2>/dev/null || 1258 ac_confdir=`$as_dirname -- "$as_myself" ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \ 1260 X"$as_myself" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \ 1261 X"$as_myself" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \ 1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
714 . : '\(.\)' 2>/dev/null || 1263$as_echo X"$as_myself" |
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 1265 s//\1/
718 /^X\(\/\/\)$/{ s//\1/; q; } 1266 q
719 /^X\(\/\).*/{ s//\1/; q; } 1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
720 s/.*/./; q'` 1280 s/.*/./; q'`
721 srcdir=$ac_confdir 1281 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then 1282 if test ! -r "$srcdir/$ac_unique_file"; then
723 srcdir=.. 1283 srcdir=..
724 fi 1284 fi
725else 1285else
726 ac_srcdir_defaulted=no 1286 ac_srcdir_defaulted=no
727fi 1287fi
728if test ! -r $srcdir/$ac_unique_file; then 1288if test ! -r "$srcdir/$ac_unique_file"; then
729 if test "$ac_srcdir_defaulted" = yes; then 1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
734 { (exit 1); exit 1; }; }
735 fi
736fi 1291fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
739 { (exit 1); exit 1; }; } 1293ac_abs_confdir=`(
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
741ac_env_build_alias_set=${build_alias+set} 1295 pwd)`
742ac_env_build_alias_value=$build_alias 1296# When building in place, set srcdir=.
743ac_cv_env_build_alias_set=${build_alias+set} 1297if test "$ac_abs_confdir" = "$ac_pwd"; then
744ac_cv_env_build_alias_value=$build_alias 1298 srcdir=.
745ac_env_host_alias_set=${host_alias+set} 1299fi
746ac_env_host_alias_value=$host_alias 1300# Remove unnecessary trailing slashes from srcdir.
747ac_cv_env_host_alias_set=${host_alias+set} 1301# Double slashes in file names in object file debugging info
748ac_cv_env_host_alias_value=$host_alias 1302# mess up M-x gdb in Emacs.
749ac_env_target_alias_set=${target_alias+set} 1303case $srcdir in
750ac_env_target_alias_value=$target_alias 1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
751ac_cv_env_target_alias_set=${target_alias+set} 1305esac
752ac_cv_env_target_alias_value=$target_alias 1306for ac_var in $ac_precious_vars; do
753ac_env_CC_set=${CC+set} 1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
754ac_env_CC_value=$CC 1308 eval ac_env_${ac_var}_value=\$${ac_var}
755ac_cv_env_CC_set=${CC+set} 1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
756ac_cv_env_CC_value=$CC 1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
757ac_env_CFLAGS_set=${CFLAGS+set} 1311done
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CXX_set=${CXX+set}
770ac_env_CXX_value=$CXX
771ac_cv_env_CXX_set=${CXX+set}
772ac_cv_env_CXX_value=$CXX
773ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774ac_env_CXXFLAGS_value=$CXXFLAGS
775ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777ac_env_CPP_set=${CPP+set}
778ac_env_CPP_value=$CPP
779ac_cv_env_CPP_set=${CPP+set}
780ac_cv_env_CPP_value=$CPP
781ac_env_CXXCPP_set=${CXXCPP+set}
782ac_env_CXXCPP_value=$CXXCPP
783ac_cv_env_CXXCPP_set=${CXXCPP+set}
784ac_cv_env_CXXCPP_value=$CXXCPP
785 1312
786# 1313#
787# Report the --help message. 1314# Report the --help message.
788# 1315#
789if test "$ac_init_help" = "long"; then 1316if test "$ac_init_help" = "long"; then
802Configuration: 1329Configuration:
803 -h, --help display this help and exit 1330 -h, --help display this help and exit
804 --help=short display options specific to this package 1331 --help=short display options specific to this package
805 --help=recursive display the short help of all the included packages 1332 --help=recursive display the short help of all the included packages
806 -V, --version display version information and exit 1333 -V, --version display version information and exit
807 -q, --quiet, --silent do not print \`checking...' messages 1334 -q, --quiet, --silent do not print \`checking ...' messages
808 --cache-file=FILE cache test results in FILE [disabled] 1335 --cache-file=FILE cache test results in FILE [disabled]
809 -C, --config-cache alias for \`--cache-file=config.cache' 1336 -C, --config-cache alias for \`--cache-file=config.cache'
810 -n, --no-create do not create output files 1337 -n, --no-create do not create output files
811 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 1339
813_ACEOF
814
815 cat <<_ACEOF
816Installation directories: 1340Installation directories:
817 --prefix=PREFIX install architecture-independent files in PREFIX 1341 --prefix=PREFIX install architecture-independent files in PREFIX
818 [$ac_default_prefix] 1342 [$ac_default_prefix]
819 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
820 [PREFIX] 1344 [PREFIX]
821 1345
822By default, \`make install' will install all the files in 1346By default, \`make install' will install all the files in
823\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
824an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
825for instance \`--prefix=\$HOME'. 1349for instance \`--prefix=\$HOME'.
826 1350
827For better control, use the options below. 1351For better control, use the options below.
828 1352
829Fine tuning of the installation directories: 1353Fine tuning of the installation directories:
830 --bindir=DIR user executables [EPREFIX/bin] 1354 --bindir=DIR user executables [EPREFIX/bin]
831 --sbindir=DIR system admin executables [EPREFIX/sbin] 1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
832 --libexecdir=DIR program executables [EPREFIX/libexec] 1356 --libexecdir=DIR program executables [EPREFIX/libexec]
833 --datadir=DIR read-only architecture-independent data [PREFIX/share]
834 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
835 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
836 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
837 --libdir=DIR object code libraries [EPREFIX/lib] 1361 --libdir=DIR object code libraries [EPREFIX/lib]
838 --includedir=DIR C header files [PREFIX/include] 1362 --includedir=DIR C header files [PREFIX/include]
839 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
840 --infodir=DIR info documentation [PREFIX/info] 1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
841 --mandir=DIR man documentation [PREFIX/man] 1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
842_ACEOF 1374_ACEOF
843 1375
844 cat <<\_ACEOF 1376 cat <<\_ACEOF
845 1377
846X features: 1378X features:
847 --x-includes=DIR X include files are in DIR 1379 --x-includes=DIR X include files are in DIR
848 --x-libraries=DIR X library files are in DIR 1380 --x-libraries=DIR X library files are in DIR
849 1381
850Program names:
851 --program-prefix=PREFIX prepend PREFIX to installed program names
852 --program-suffix=SUFFIX append SUFFIX to installed program names
853 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
854
855System types: 1382System types:
856 --build=BUILD configure for building on BUILD [guessed] 1383 --build=BUILD configure for building on BUILD [guessed]
857 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
858_ACEOF 1385_ACEOF
859fi 1386fi
861if test -n "$ac_init_help"; then 1388if test -n "$ac_init_help"; then
862 1389
863 cat <<\_ACEOF 1390 cat <<\_ACEOF
864 1391
865Optional Features: 1392Optional Features:
1393 --disable-option-checking ignore unrecognized --enable/--with options
866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
868 --enable-everything enable standard non-multichoice features 1396 --enable-everything enable standard non-multichoice features
869 NOTE: this option is order dependent 1397 NOTE: this option is order dependent
870 NOTE: automatically enabled with --enable-shared 1398 --enable-assert enable assertions
1399 --enable-warnings turn on g++ warnings
1400 --enable-256-color enable 256-color support
871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1401 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
872 --enable-combining enable composition of base and combining characters 1402 --enable-combining enable composition of base and combining characters
873 --enable-xft enable xft support on systems that have it 1403 --enable-xft enable xft support on systems that have it
874 --enable-font-styles enable bold and italic support 1404 --enable-font-styles enable bold and italic support
875 --enable-utmp enable utmp (utmpx) support 1405 --enable-pixbuf enable integration with gdk-pixbuf for background images
876 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1406 --enable-startup-notification enable freedesktop startup notification support
877 --enable-lastlog enable lastlog support (requires --enable-utmp)
878 --enable-xpm-background enable XPM background pixmaps
879 --enable-transparency enable transparent backgrounds 1407 --enable-transparency enable transparent backgrounds
880 --enable-tinting enable tinting of transparent bg
881 --enable-fading enable colors fading when off focus 1408 --enable-fading enable colors fading when off focus
882 --enable-menubar enable menubar
883 --enable-rxvt-scroll enable rxvt style scrollbar 1409 --enable-rxvt-scroll enable rxvt style scrollbar
884 --enable-next-scroll enable NeXT style scrollbar 1410 --enable-next-scroll enable NeXT style scrollbar
885 --enable-xterm-scroll enable Xterm style scrollbar 1411 --enable-xterm-scroll enable Xterm style scrollbar
886 --enable-perl enable embedded perl interpreter 1412 --enable-perl enable embedded perl interpreter
887 --enable-plain-scroll enable plain style scrollbar
888 --enable-half-shadow use half width/height shadow on rxvt scrollbar
889 --enable-xim XIM (X Input Method) protocol support 1413 --enable-xim XIM (X Input Method) protocol support
890 --enable-ttygid enable tty setting to group named "tty"
891 --disable-backspace-key disable handling of the backspace key 1414 --disable-backspace-key disable handling of the backspace key
892 --disable-delete-key disable handling of the delete key 1415 --disable-delete-key disable handling of the delete key
893 --disable-resources disable all resource checking 1416 --disable-resources disable all resource checking
894 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1417 --enable-8bitctrls enable 8 bit control sequences (not recommended)
895 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 1418 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
896 --enable-strings enable some replacement system functions
897 --disable-swapscreen disable swap screen support 1419 --disable-swapscreen disable swap screen support
898 --enable-iso14755 enable support for extended ISO 14755 modes 1420 --enable-iso14755 enable support for extended ISO 14755 modes
899 --enable-frills enable support for rarely used features 1421 --enable-frills enable support for rarely used features
900 --enable-24bit enable support for using 24bit visuals if available
901 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1422 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
902 --enable-selectionscrolling enable scrolling during selections 1423 --enable-selectionscrolling enable scrolling during selections
903 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1424 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
904 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1425 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
905 --enable-dmalloc enable Gray Watson's malloc - for debugging use
906 --enable-dlmalloc enable Doug Lea's malloc - for production use
907 NOTE: enable only one malloc package
908 --enable-smart-resize enable smart growth/shrink behaviour 1426 --enable-smart-resize enable smart growth/shrink behaviour
909 --enable-text-blink enable blinking text 1427 --enable-text-blink enable blinking text
910 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1428 --enable-pointer-blank enable pointer blanking when typing or inactive
1429 --enable-utmp enable utmp (utmpx) support
1430 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1431 --enable-lastlog enable lastlog support (requires --enable-utmp)
911 1432
912Optional Packages: 1433Optional Packages:
913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
914 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
915 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1436 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
916 --with-res-name=NAME use this as default resource name (default: urxvt) 1437 --with-res-name=NAME use this as default resource name (default: urxvt)
917 --with-res-class=CLASS use this as the resource class (default: URxvt) 1438 --with-res-class=CLASS use this as the resource class (default: URxvt)
918 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1439 --with-name=NAME set the basename for the installed binaries (default: urxvt)
919 --with-term=NAME set the terminal to NAME (default: rxvt) 1440 --with-term=NAME set the terminal to NAME (default: rxvt)
920 --with-terminfo=PATH set the path to the terminfo tree to PATH 1441 --with-terminfo=PATH set the path to the terminfo tree to PATH
921 --with-x use the X Window System 1442 --with-x use the X Window System
922 --with-xpm-includes=DIR use XPM includes in DIR
923 --with-xpm-library=DIR use XPM library in DIR
924 --with-xpm use XPM
925 1443
926Some influential environment variables: 1444Some influential environment variables:
927 CC C compiler command 1445 CC C compiler command
928 CFLAGS C compiler flags 1446 CFLAGS C compiler flags
929 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
930 nonstandard directory <lib dir> 1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
931 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
932 headers in a nonstandard directory <include dir> 1451 you have headers in a nonstandard directory <include dir>
933 CXX C++ compiler command 1452 CXX C++ compiler command
934 CXXFLAGS C++ compiler flags 1453 CXXFLAGS C++ compiler flags
935 CPP C preprocessor 1454 CPP C preprocessor
936 CXXCPP C++ preprocessor 1455 CXXCPP C++ preprocessor
1456 XMKMF Path to xmkmf, Makefile generator for X Window System
937 1457
938Use these variables to override the choices made by `configure' or to help 1458Use these variables to override the choices made by `configure' or to help
939it to find libraries and programs with nonstandard names/locations. 1459it to find libraries and programs with nonstandard names/locations.
940 1460
1461Report bugs to the package provider.
941_ACEOF 1462_ACEOF
1463ac_status=$?
942fi 1464fi
943 1465
944if test "$ac_init_help" = "recursive"; then 1466if test "$ac_init_help" = "recursive"; then
945 # If there are subdirs, report their specific --help. 1467 # If there are subdirs, report their specific --help.
946 ac_popdir=`pwd`
947 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
948 test -d $ac_dir || continue 1469 test -d "$ac_dir" ||
1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471 continue
949 ac_builddir=. 1472 ac_builddir=.
950 1473
951if test "$ac_dir" != .; then 1474case "$ac_dir" in
1475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476*)
952 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
953 # A "../" for each directory in $ac_dir_suffix. 1478 # A ".." for each directory in $ac_dir_suffix.
954 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
955else 1480 case $ac_top_builddir_sub in
956 ac_dir_suffix= ac_top_builddir= 1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
957fi 1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 esac ;;
1484esac
1485ac_abs_top_builddir=$ac_pwd
1486ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487# for backward compatibility:
1488ac_top_builddir=$ac_top_build_prefix
958 1489
959case $srcdir in 1490case $srcdir in
960 .) # No --srcdir option. We are building in place. 1491 .) # We are building in place.
961 ac_srcdir=. 1492 ac_srcdir=.
962 if test -z "$ac_top_builddir"; then 1493 ac_top_srcdir=$ac_top_builddir_sub
1494 ac_abs_top_srcdir=$ac_pwd ;;
1495 [\\/]* | ?:[\\/]* ) # Absolute name.
1496 ac_srcdir=$srcdir$ac_dir_suffix;
963 ac_top_srcdir=. 1497 ac_top_srcdir=$srcdir
1498 ac_abs_top_srcdir=$srcdir ;;
1499 *) # Relative name.
1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503esac
1504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505
1506 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for guested configure.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure" --help=recursive
964 else 1514 else
965 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
966 fi ;;
967 [\\/]* | ?:[\\/]* ) # Absolute path.
968 ac_srcdir=$srcdir$ac_dir_suffix;
969 ac_top_srcdir=$srcdir ;;
970 *) # Relative path.
971 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
972 ac_top_srcdir=$ac_top_builddir$srcdir ;;
973esac
974
975# Do not use `cd foo && pwd` to compute absolute paths, because
976# the directories may not exist.
977case `pwd` in
978.) ac_abs_builddir="$ac_dir";;
979*)
980 case "$ac_dir" in
981 .) ac_abs_builddir=`pwd`;;
982 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
983 *) ac_abs_builddir=`pwd`/"$ac_dir";;
984 esac;;
985esac
986case $ac_abs_builddir in
987.) ac_abs_top_builddir=${ac_top_builddir}.;;
988*)
989 case ${ac_top_builddir}. in
990 .) ac_abs_top_builddir=$ac_abs_builddir;;
991 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
992 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
993 esac;;
994esac
995case $ac_abs_builddir in
996.) ac_abs_srcdir=$ac_srcdir;;
997*)
998 case $ac_srcdir in
999 .) ac_abs_srcdir=$ac_abs_builddir;;
1000 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1001 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1002 esac;;
1003esac
1004case $ac_abs_builddir in
1005.) ac_abs_top_srcdir=$ac_top_srcdir;;
1006*)
1007 case $ac_top_srcdir in
1008 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1009 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1010 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1011 esac;;
1012esac
1013
1014 cd $ac_dir
1015 # Check for guested configure; otherwise get Cygnus style configure.
1016 if test -f $ac_srcdir/configure.gnu; then
1017 echo
1018 $SHELL $ac_srcdir/configure.gnu --help=recursive
1019 elif test -f $ac_srcdir/configure; then
1020 echo
1021 $SHELL $ac_srcdir/configure --help=recursive
1022 elif test -f $ac_srcdir/configure.ac ||
1023 test -f $ac_srcdir/configure.in; then
1024 echo
1025 $ac_configure --help
1026 else
1027 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1028 fi 1516 fi || ac_status=$?
1029 cd "$ac_popdir" 1517 cd "$ac_pwd" || { ac_status=$?; break; }
1030 done 1518 done
1031fi 1519fi
1032 1520
1033test -n "$ac_init_help" && exit 0 1521test -n "$ac_init_help" && exit $ac_status
1034if $ac_init_version; then 1522if $ac_init_version; then
1035 cat <<\_ACEOF 1523 cat <<\_ACEOF
1524configure
1525generated by GNU Autoconf 2.69
1036 1526
1037Copyright (C) 2003 Free Software Foundation, Inc. 1527Copyright (C) 2012 Free Software Foundation, Inc.
1038This configure script is free software; the Free Software Foundation 1528This configure script is free software; the Free Software Foundation
1039gives unlimited permission to copy, distribute and modify it. 1529gives unlimited permission to copy, distribute and modify it.
1040_ACEOF 1530_ACEOF
1041 exit 0 1531 exit
1042fi 1532fi
1043exec 5>config.log 1533
1044cat >&5 <<_ACEOF 1534## ------------------------ ##
1535## Autoconf initialization. ##
1536## ------------------------ ##
1537
1538# ac_fn_c_try_compile LINENO
1539# --------------------------
1540# Try to compile conftest.$ac_ext, and return whether this succeeded.
1541ac_fn_c_try_compile ()
1542{
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1546case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549esac
1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551$as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1558 fi
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1564 ac_retval=0
1565else
1566 $as_echo "$as_me: failed program was:" >&5
1567sed 's/^/| /' conftest.$ac_ext >&5
1568
1569 ac_retval=1
1570fi
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1573
1574} # ac_fn_c_try_compile
1575
1576# ac_fn_cxx_try_compile LINENO
1577# ----------------------------
1578# Try to compile conftest.$ac_ext, and return whether this succeeded.
1579ac_fn_cxx_try_compile ()
1580{
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext
1583 if { { ac_try="$ac_compile"
1584case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589$as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_compile") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_cxx_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest.$ac_objext; then :
1602 ac_retval=0
1603else
1604 $as_echo "$as_me: failed program was:" >&5
1605sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=1
1608fi
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1611
1612} # ac_fn_cxx_try_compile
1613
1614# ac_fn_c_try_cpp LINENO
1615# ----------------------
1616# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1617ac_fn_c_try_cpp ()
1618{
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_cpp conftest.$ac_ext"
1621case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } > conftest.i && {
1636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 }; then :
1639 ac_retval=0
1640else
1641 $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1
1645fi
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1648
1649} # ac_fn_c_try_cpp
1650
1651# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1652# -------------------------------------------------------
1653# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1654# the include files in INCLUDES and setting the cache variable VAR
1655# accordingly.
1656ac_fn_c_check_header_mongrel ()
1657{
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if eval \${$3+:} false; then :
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661$as_echo_n "checking for $2... " >&6; }
1662if eval \${$3+:} false; then :
1663 $as_echo_n "(cached) " >&6
1664fi
1665eval ac_res=\$$3
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667$as_echo "$ac_res" >&6; }
1668else
1669 # Is the header compilable?
1670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1671$as_echo_n "checking $2 usability... " >&6; }
1672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673/* end confdefs.h. */
1674$4
1675#include <$2>
1676_ACEOF
1677if ac_fn_c_try_compile "$LINENO"; then :
1678 ac_header_compiler=yes
1679else
1680 ac_header_compiler=no
1681fi
1682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1684$as_echo "$ac_header_compiler" >&6; }
1685
1686# Is the header present?
1687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1688$as_echo_n "checking $2 presence... " >&6; }
1689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690/* end confdefs.h. */
1691#include <$2>
1692_ACEOF
1693if ac_fn_c_try_cpp "$LINENO"; then :
1694 ac_header_preproc=yes
1695else
1696 ac_header_preproc=no
1697fi
1698rm -f conftest.err conftest.i conftest.$ac_ext
1699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1700$as_echo "$ac_header_preproc" >&6; }
1701
1702# So? What about this header?
1703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1704 yes:no: )
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1706$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1708$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1709 ;;
1710 no:yes:* )
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1712$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1714$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1716$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1718$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721 ;;
1722esac
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724$as_echo_n "checking for $2... " >&6; }
1725if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1727else
1728 eval "$3=\$ac_header_compiler"
1729fi
1730eval ac_res=\$$3
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732$as_echo "$ac_res" >&6; }
1733fi
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735
1736} # ac_fn_c_check_header_mongrel
1737
1738# ac_fn_c_try_run LINENO
1739# ----------------------
1740# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1741# that executables *can* be run.
1742ac_fn_c_try_run ()
1743{
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_link"
1746case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>&5
1753 ac_status=$?
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1756 { { case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_try") 2>&5
1763 ac_status=$?
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; }; }; then :
1766 ac_retval=0
1767else
1768 $as_echo "$as_me: program exited with status $ac_status" >&5
1769 $as_echo "$as_me: failed program was:" >&5
1770sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=$ac_status
1773fi
1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
1777
1778} # ac_fn_c_try_run
1779
1780# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1781# -------------------------------------------------------
1782# Tests whether HEADER exists and can be compiled using the include files in
1783# INCLUDES, setting the cache variable VAR accordingly.
1784ac_fn_c_check_header_compile ()
1785{
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1791else
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h. */
1794$4
1795#include <$2>
1796_ACEOF
1797if ac_fn_c_try_compile "$LINENO"; then :
1798 eval "$3=yes"
1799else
1800 eval "$3=no"
1801fi
1802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803fi
1804eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809} # ac_fn_c_check_header_compile
1810
1811# ac_fn_c_try_link LINENO
1812# -----------------------
1813# Try to link conftest.$ac_ext, and return whether this succeeded.
1814ac_fn_c_try_link ()
1815{
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 rm -f conftest.$ac_objext conftest$ac_exeext
1818 if { { ac_try="$ac_link"
1819case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822esac
1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824$as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_link") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1831 fi
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest$ac_exeext && {
1837 test "$cross_compiling" = yes ||
1838 test -x conftest$ac_exeext
1839 }; then :
1840 ac_retval=0
1841else
1842 $as_echo "$as_me: failed program was:" >&5
1843sed 's/^/| /' conftest.$ac_ext >&5
1844
1845 ac_retval=1
1846fi
1847 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1848 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1849 # interfere with the next link command; also delete a directory that is
1850 # left behind by Apple's compiler. We do this before executing the actions.
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1854
1855} # ac_fn_c_try_link
1856
1857# ac_fn_cxx_try_link LINENO
1858# -------------------------
1859# Try to link conftest.$ac_ext, and return whether this succeeded.
1860ac_fn_cxx_try_link ()
1861{
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 rm -f conftest.$ac_objext conftest$ac_exeext
1864 if { { ac_try="$ac_link"
1865case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868esac
1869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870$as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_link") 2>conftest.err
1872 ac_status=$?
1873 if test -s conftest.err; then
1874 grep -v '^ *+' conftest.err >conftest.er1
1875 cat conftest.er1 >&5
1876 mv -f conftest.er1 conftest.err
1877 fi
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && {
1880 test -z "$ac_cxx_werror_flag" ||
1881 test ! -s conftest.err
1882 } && test -s conftest$ac_exeext && {
1883 test "$cross_compiling" = yes ||
1884 test -x conftest$ac_exeext
1885 }; then :
1886 ac_retval=0
1887else
1888 $as_echo "$as_me: failed program was:" >&5
1889sed 's/^/| /' conftest.$ac_ext >&5
1890
1891 ac_retval=1
1892fi
1893 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1894 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1895 # interfere with the next link command; also delete a directory that is
1896 # left behind by Apple's compiler. We do this before executing the actions.
1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 as_fn_set_status $ac_retval
1900
1901} # ac_fn_cxx_try_link
1902
1903# ac_fn_cxx_try_cpp LINENO
1904# ------------------------
1905# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1906ac_fn_cxx_try_cpp ()
1907{
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if { { ac_try="$ac_cpp conftest.$ac_ext"
1910case "(($ac_try" in
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1913esac
1914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915$as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1917 ac_status=$?
1918 if test -s conftest.err; then
1919 grep -v '^ *+' conftest.err >conftest.er1
1920 cat conftest.er1 >&5
1921 mv -f conftest.er1 conftest.err
1922 fi
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } > conftest.i && {
1925 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1926 test ! -s conftest.err
1927 }; then :
1928 ac_retval=0
1929else
1930 $as_echo "$as_me: failed program was:" >&5
1931sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 ac_retval=1
1934fi
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1937
1938} # ac_fn_cxx_try_cpp
1939
1940# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1941# ---------------------------------------------------------
1942# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1943# the include files in INCLUDES and setting the cache variable VAR
1944# accordingly.
1945ac_fn_cxx_check_header_mongrel ()
1946{
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if eval \${$3+:} false; then :
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950$as_echo_n "checking for $2... " >&6; }
1951if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1953fi
1954eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956$as_echo "$ac_res" >&6; }
1957else
1958 # Is the header compilable?
1959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1960$as_echo_n "checking $2 usability... " >&6; }
1961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h. */
1963$4
1964#include <$2>
1965_ACEOF
1966if ac_fn_cxx_try_compile "$LINENO"; then :
1967 ac_header_compiler=yes
1968else
1969 ac_header_compiler=no
1970fi
1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1973$as_echo "$ac_header_compiler" >&6; }
1974
1975# Is the header present?
1976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1977$as_echo_n "checking $2 presence... " >&6; }
1978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979/* end confdefs.h. */
1980#include <$2>
1981_ACEOF
1982if ac_fn_cxx_try_cpp "$LINENO"; then :
1983 ac_header_preproc=yes
1984else
1985 ac_header_preproc=no
1986fi
1987rm -f conftest.err conftest.i conftest.$ac_ext
1988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1989$as_echo "$ac_header_preproc" >&6; }
1990
1991# So? What about this header?
1992case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1993 yes:no: )
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1995$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998 ;;
1999 no:yes:* )
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2001$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2003$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2005$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2007$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2010 ;;
2011esac
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013$as_echo_n "checking for $2... " >&6; }
2014if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016else
2017 eval "$3=\$ac_header_compiler"
2018fi
2019eval ac_res=\$$3
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021$as_echo "$ac_res" >&6; }
2022fi
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024
2025} # ac_fn_cxx_check_header_mongrel
2026
2027# ac_fn_cxx_check_func LINENO FUNC VAR
2028# ------------------------------------
2029# Tests whether FUNC exists, setting the cache variable VAR accordingly
2030ac_fn_cxx_check_func ()
2031{
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034$as_echo_n "checking for $2... " >&6; }
2035if eval \${$3+:} false; then :
2036 $as_echo_n "(cached) " >&6
2037else
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h. */
2040/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2042#define $2 innocuous_$2
2043
2044/* System header to define __stub macros and hopefully few prototypes,
2045 which can conflict with char $2 (); below.
2046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2047 <limits.h> exists even on freestanding compilers. */
2048
2049#ifdef __STDC__
2050# include <limits.h>
2051#else
2052# include <assert.h>
2053#endif
2054
2055#undef $2
2056
2057/* Override any GCC internal prototype to avoid an error.
2058 Use char because int might match the return type of a GCC
2059 builtin and then its argument prototype would still apply. */
2060#ifdef __cplusplus
2061extern "C"
2062#endif
2063char $2 ();
2064/* The GNU C library defines this for functions which it implements
2065 to always fail with ENOSYS. Some functions are actually named
2066 something starting with __ and the normal name is an alias. */
2067#if defined __stub_$2 || defined __stub___$2
2068choke me
2069#endif
2070
2071int
2072main ()
2073{
2074return $2 ();
2075 ;
2076 return 0;
2077}
2078_ACEOF
2079if ac_fn_cxx_try_link "$LINENO"; then :
2080 eval "$3=yes"
2081else
2082 eval "$3=no"
2083fi
2084rm -f core conftest.err conftest.$ac_objext \
2085 conftest$ac_exeext conftest.$ac_ext
2086fi
2087eval ac_res=\$$3
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089$as_echo "$ac_res" >&6; }
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091
2092} # ac_fn_cxx_check_func
2093
2094# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2095# ---------------------------------------------
2096# Tests whether TYPE exists after having included INCLUDES, setting cache
2097# variable VAR accordingly.
2098ac_fn_cxx_check_type ()
2099{
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102$as_echo_n "checking for $2... " >&6; }
2103if eval \${$3+:} false; then :
2104 $as_echo_n "(cached) " >&6
2105else
2106 eval "$3=no"
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h. */
2109$4
2110int
2111main ()
2112{
2113if (sizeof ($2))
2114 return 0;
2115 ;
2116 return 0;
2117}
2118_ACEOF
2119if ac_fn_cxx_try_compile "$LINENO"; then :
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121/* end confdefs.h. */
2122$4
2123int
2124main ()
2125{
2126if (sizeof (($2)))
2127 return 0;
2128 ;
2129 return 0;
2130}
2131_ACEOF
2132if ac_fn_cxx_try_compile "$LINENO"; then :
2133
2134else
2135 eval "$3=yes"
2136fi
2137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138fi
2139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140fi
2141eval ac_res=\$$3
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2143$as_echo "$ac_res" >&6; }
2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145
2146} # ac_fn_cxx_check_type
2147
2148# ac_fn_c_find_intX_t LINENO BITS VAR
2149# -----------------------------------
2150# Finds a signed integer type with width BITS, setting cache variable VAR
2151# accordingly.
2152ac_fn_c_find_intX_t ()
2153{
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2156$as_echo_n "checking for int$2_t... " >&6; }
2157if eval \${$3+:} false; then :
2158 $as_echo_n "(cached) " >&6
2159else
2160 eval "$3=no"
2161 # Order is important - never check a type that is potentially smaller
2162 # than half of the expected target width.
2163 for ac_type in int$2_t 'int' 'long int' \
2164 'long long int' 'short int' 'signed char'; do
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166/* end confdefs.h. */
2167$ac_includes_default
2168 enum { N = $2 / 2 - 1 };
2169int
2170main ()
2171{
2172static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2173test_array [0] = 0;
2174return test_array [0];
2175
2176 ;
2177 return 0;
2178}
2179_ACEOF
2180if ac_fn_cxx_try_compile "$LINENO"; then :
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182/* end confdefs.h. */
2183$ac_includes_default
2184 enum { N = $2 / 2 - 1 };
2185int
2186main ()
2187{
2188static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2189 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2190test_array [0] = 0;
2191return test_array [0];
2192
2193 ;
2194 return 0;
2195}
2196_ACEOF
2197if ac_fn_cxx_try_compile "$LINENO"; then :
2198
2199else
2200 case $ac_type in #(
2201 int$2_t) :
2202 eval "$3=yes" ;; #(
2203 *) :
2204 eval "$3=\$ac_type" ;;
2205esac
2206fi
2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208fi
2209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 if eval test \"x\$"$3"\" = x"no"; then :
2211
2212else
2213 break
2214fi
2215 done
2216fi
2217eval ac_res=\$$3
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219$as_echo "$ac_res" >&6; }
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221
2222} # ac_fn_c_find_intX_t
2223
2224# ac_fn_c_find_uintX_t LINENO BITS VAR
2225# ------------------------------------
2226# Finds an unsigned integer type with width BITS, setting cache variable VAR
2227# accordingly.
2228ac_fn_c_find_uintX_t ()
2229{
2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2232$as_echo_n "checking for uint$2_t... " >&6; }
2233if eval \${$3+:} false; then :
2234 $as_echo_n "(cached) " >&6
2235else
2236 eval "$3=no"
2237 # Order is important - never check a type that is potentially smaller
2238 # than half of the expected target width.
2239 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2240 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242/* end confdefs.h. */
2243$ac_includes_default
2244int
2245main ()
2246{
2247static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2248test_array [0] = 0;
2249return test_array [0];
2250
2251 ;
2252 return 0;
2253}
2254_ACEOF
2255if ac_fn_cxx_try_compile "$LINENO"; then :
2256 case $ac_type in #(
2257 uint$2_t) :
2258 eval "$3=yes" ;; #(
2259 *) :
2260 eval "$3=\$ac_type" ;;
2261esac
2262fi
2263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 if eval test \"x\$"$3"\" = x"no"; then :
2265
2266else
2267 break
2268fi
2269 done
2270fi
2271eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273$as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275
2276} # ac_fn_c_find_uintX_t
2277
2278# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
2279# ------------------------------------------------------
2280# Tries to find if the field MEMBER exists in type AGGR, after including
2281# INCLUDES, setting cache variable VAR accordingly.
2282ac_fn_cxx_check_member ()
2283{
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2286$as_echo_n "checking for $2.$3... " >&6; }
2287if eval \${$4+:} false; then :
2288 $as_echo_n "(cached) " >&6
2289else
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291/* end confdefs.h. */
2292$5
2293int
2294main ()
2295{
2296static $2 ac_aggr;
2297if (ac_aggr.$3)
2298return 0;
2299 ;
2300 return 0;
2301}
2302_ACEOF
2303if ac_fn_cxx_try_compile "$LINENO"; then :
2304 eval "$4=yes"
2305else
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307/* end confdefs.h. */
2308$5
2309int
2310main ()
2311{
2312static $2 ac_aggr;
2313if (sizeof ac_aggr.$3)
2314return 0;
2315 ;
2316 return 0;
2317}
2318_ACEOF
2319if ac_fn_cxx_try_compile "$LINENO"; then :
2320 eval "$4=yes"
2321else
2322 eval "$4=no"
2323fi
2324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325fi
2326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327fi
2328eval ac_res=\$$4
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330$as_echo "$ac_res" >&6; }
2331 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2332
2333} # ac_fn_cxx_check_member
2334
2335# ac_fn_cxx_try_run LINENO
2336# ------------------------
2337# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2338# that executables *can* be run.
2339ac_fn_cxx_try_run ()
2340{
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 if { { ac_try="$ac_link"
2343case "(($ac_try" in
2344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345 *) ac_try_echo=$ac_try;;
2346esac
2347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2348$as_echo "$ac_try_echo"; } >&5
2349 (eval "$ac_link") 2>&5
2350 ac_status=$?
2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2353 { { case "(($ac_try" in
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2356esac
2357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2358$as_echo "$ac_try_echo"; } >&5
2359 (eval "$ac_try") 2>&5
2360 ac_status=$?
2361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2362 test $ac_status = 0; }; }; then :
2363 ac_retval=0
2364else
2365 $as_echo "$as_me: program exited with status $ac_status" >&5
2366 $as_echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 ac_retval=$ac_status
2370fi
2371 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2373 as_fn_set_status $ac_retval
2374
2375} # ac_fn_cxx_try_run
2376cat >config.log <<_ACEOF
1045This file contains any messages produced by compilers while 2377This file contains any messages produced by compilers while
1046running configure, to aid debugging if configure makes a mistake. 2378running configure, to aid debugging if configure makes a mistake.
1047 2379
1048It was created by $as_me, which was 2380It was created by $as_me, which was
1049generated by GNU Autoconf 2.59. Invocation command line was 2381generated by GNU Autoconf 2.69. Invocation command line was
1050 2382
1051 $ $0 $@ 2383 $ $0 $@
1052 2384
1053_ACEOF 2385_ACEOF
2386exec 5>>config.log
1054{ 2387{
1055cat <<_ASUNAME 2388cat <<_ASUNAME
1056## --------- ## 2389## --------- ##
1057## Platform. ## 2390## Platform. ##
1058## --------- ## 2391## --------- ##
1067/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2400/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1068 2401
1069/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2402/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1070/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2403/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1071/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2404/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1072hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 2405/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1073/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2406/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1074/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2407/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1075/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2408/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1076 2409
1077_ASUNAME 2410_ASUNAME
1079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1080for as_dir in $PATH 2413for as_dir in $PATH
1081do 2414do
1082 IFS=$as_save_IFS 2415 IFS=$as_save_IFS
1083 test -z "$as_dir" && as_dir=. 2416 test -z "$as_dir" && as_dir=.
1084 echo "PATH: $as_dir" 2417 $as_echo "PATH: $as_dir"
1085done 2418 done
2419IFS=$as_save_IFS
1086 2420
1087} >&5 2421} >&5
1088 2422
1089cat >&5 <<_ACEOF 2423cat >&5 <<_ACEOF
1090 2424
1102# Also quote any args containing shell meta-characters. 2436# Also quote any args containing shell meta-characters.
1103# Make two passes to allow for proper duplicate-argument suppression. 2437# Make two passes to allow for proper duplicate-argument suppression.
1104ac_configure_args= 2438ac_configure_args=
1105ac_configure_args0= 2439ac_configure_args0=
1106ac_configure_args1= 2440ac_configure_args1=
1107ac_sep=
1108ac_must_keep_next=false 2441ac_must_keep_next=false
1109for ac_pass in 1 2 2442for ac_pass in 1 2
1110do 2443do
1111 for ac_arg 2444 for ac_arg
1112 do 2445 do
1113 case $ac_arg in 2446 case $ac_arg in
1114 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2447 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil) 2449 | -silent | --silent | --silen | --sile | --sil)
1117 continue ;; 2450 continue ;;
1118 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 2451 *\'*)
1119 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2452 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1120 esac 2453 esac
1121 case $ac_pass in 2454 case $ac_pass in
1122 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2455 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1123 2) 2456 2)
1124 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 2457 as_fn_append ac_configure_args1 " '$ac_arg'"
1125 if test $ac_must_keep_next = true; then 2458 if test $ac_must_keep_next = true; then
1126 ac_must_keep_next=false # Got value, back to normal. 2459 ac_must_keep_next=false # Got value, back to normal.
1127 else 2460 else
1128 case $ac_arg in 2461 case $ac_arg in
1129 *=* | --config-cache | -C | -disable-* | --disable-* \ 2462 *=* | --config-cache | -C | -disable-* | --disable-* \
1135 esac 2468 esac
1136 ;; 2469 ;;
1137 -* ) ac_must_keep_next=true ;; 2470 -* ) ac_must_keep_next=true ;;
1138 esac 2471 esac
1139 fi 2472 fi
1140 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 2473 as_fn_append ac_configure_args " '$ac_arg'"
1141 # Get rid of the leading space.
1142 ac_sep=" "
1143 ;; 2474 ;;
1144 esac 2475 esac
1145 done 2476 done
1146done 2477done
1147$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 2478{ ac_configure_args0=; unset ac_configure_args0;}
1148$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 2479{ ac_configure_args1=; unset ac_configure_args1;}
1149 2480
1150# When interrupted or exit'd, cleanup temporary files, and complete 2481# When interrupted or exit'd, cleanup temporary files, and complete
1151# config.log. We remove comments because anyway the quotes in there 2482# config.log. We remove comments because anyway the quotes in there
1152# would cause problems or look ugly. 2483# would cause problems or look ugly.
1153# WARNING: Be sure not to use single quotes in there, as some shells, 2484# WARNING: Use '\'' to represent an apostrophe within the trap.
1154# such as our DU 5.0 friend, will then `close' the trap. 2485# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1155trap 'exit_status=$? 2486trap 'exit_status=$?
1156 # Save into config.log some information that might help in debugging. 2487 # Save into config.log some information that might help in debugging.
1157 { 2488 {
1158 echo 2489 echo
1159 2490
1160 cat <<\_ASBOX
1161## ---------------- ## 2491 $as_echo "## ---------------- ##
1162## Cache variables. ## 2492## Cache variables. ##
1163## ---------------- ## 2493## ---------------- ##"
1164_ASBOX
1165 echo 2494 echo
1166 # The following way of writing the cache mishandles newlines in values, 2495 # The following way of writing the cache mishandles newlines in values,
1167{ 2496(
2497 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2498 eval ac_val=\$$ac_var
2499 case $ac_val in #(
2500 *${as_nl}*)
2501 case $ac_var in #(
2502 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2503$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2504 esac
2505 case $ac_var in #(
2506 _ | IFS | as_nl) ;; #(
2507 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2508 *) { eval $ac_var=; unset $ac_var;} ;;
2509 esac ;;
2510 esac
2511 done
1168 (set) 2>&1 | 2512 (set) 2>&1 |
1169 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 2513 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1170 *ac_space=\ *) 2514 *${as_nl}ac_space=\ *)
1171 sed -n \ 2515 sed -n \
1172 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 2516 "s/'\''/'\''\\\\'\'''\''/g;
1173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 2517 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2518 ;; #(
2519 *)
2520 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1174 ;; 2521 ;;
1175 *)
1176 sed -n \
1177 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1178 ;;
1179 esac; 2522 esac |
1180} 2523 sort
2524)
1181 echo 2525 echo
1182 2526
1183 cat <<\_ASBOX
1184## ----------------- ## 2527 $as_echo "## ----------------- ##
1185## Output variables. ## 2528## Output variables. ##
1186## ----------------- ## 2529## ----------------- ##"
1187_ASBOX
1188 echo 2530 echo
1189 for ac_var in $ac_subst_vars 2531 for ac_var in $ac_subst_vars
1190 do 2532 do
1191 eval ac_val=$`echo $ac_var` 2533 eval ac_val=\$$ac_var
2534 case $ac_val in
2535 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2536 esac
1192 echo "$ac_var='"'"'$ac_val'"'"'" 2537 $as_echo "$ac_var='\''$ac_val'\''"
1193 done | sort 2538 done | sort
1194 echo 2539 echo
1195 2540
1196 if test -n "$ac_subst_files"; then 2541 if test -n "$ac_subst_files"; then
1197 cat <<\_ASBOX 2542 $as_echo "## ------------------- ##
2543## File substitutions. ##
1198## ------------- ## 2544## ------------------- ##"
1199## Output files. ##
1200## ------------- ##
1201_ASBOX
1202 echo 2545 echo
1203 for ac_var in $ac_subst_files 2546 for ac_var in $ac_subst_files
1204 do 2547 do
1205 eval ac_val=$`echo $ac_var` 2548 eval ac_val=\$$ac_var
2549 case $ac_val in
2550 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2551 esac
1206 echo "$ac_var='"'"'$ac_val'"'"'" 2552 $as_echo "$ac_var='\''$ac_val'\''"
1207 done | sort 2553 done | sort
1208 echo 2554 echo
1209 fi 2555 fi
1210 2556
1211 if test -s confdefs.h; then 2557 if test -s confdefs.h; then
1212 cat <<\_ASBOX 2558 $as_echo "## ----------- ##
1213## ----------- ##
1214## confdefs.h. ## 2559## confdefs.h. ##
1215## ----------- ## 2560## ----------- ##"
1216_ASBOX
1217 echo 2561 echo
1218 sed "/^$/d" confdefs.h | sort 2562 cat confdefs.h
1219 echo 2563 echo
1220 fi 2564 fi
1221 test "$ac_signal" != 0 && 2565 test "$ac_signal" != 0 &&
1222 echo "$as_me: caught signal $ac_signal" 2566 $as_echo "$as_me: caught signal $ac_signal"
1223 echo "$as_me: exit $exit_status" 2567 $as_echo "$as_me: exit $exit_status"
1224 } >&5 2568 } >&5
1225 rm -f core *.core && 2569 rm -f core *.core core.conftest.* &&
1226 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 2570 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1227 exit $exit_status 2571 exit $exit_status
1228 ' 0 2572' 0
1229for ac_signal in 1 2 13 15; do 2573for ac_signal in 1 2 13 15; do
1230 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 2574 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1231done 2575done
1232ac_signal=0 2576ac_signal=0
1233 2577
1234# confdefs.h avoids OS command line length limits that DEFS can exceed. 2578# confdefs.h avoids OS command line length limits that DEFS can exceed.
1235rm -rf conftest* confdefs.h 2579rm -f -r conftest* confdefs.h
1236# AIX cpp loses on an empty file, so make sure it contains at least a newline. 2580
1237echo >confdefs.h 2581$as_echo "/* confdefs.h */" > confdefs.h
1238 2582
1239# Predefined preprocessor variables. 2583# Predefined preprocessor variables.
1240 2584
1241cat >>confdefs.h <<_ACEOF 2585cat >>confdefs.h <<_ACEOF
1242#define PACKAGE_NAME "$PACKAGE_NAME" 2586#define PACKAGE_NAME "$PACKAGE_NAME"
1243_ACEOF 2587_ACEOF
1244 2588
1245
1246cat >>confdefs.h <<_ACEOF 2589cat >>confdefs.h <<_ACEOF
1247#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2590#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1248_ACEOF 2591_ACEOF
1249 2592
1250
1251cat >>confdefs.h <<_ACEOF 2593cat >>confdefs.h <<_ACEOF
1252#define PACKAGE_VERSION "$PACKAGE_VERSION" 2594#define PACKAGE_VERSION "$PACKAGE_VERSION"
1253_ACEOF 2595_ACEOF
1254 2596
1255
1256cat >>confdefs.h <<_ACEOF 2597cat >>confdefs.h <<_ACEOF
1257#define PACKAGE_STRING "$PACKAGE_STRING" 2598#define PACKAGE_STRING "$PACKAGE_STRING"
1258_ACEOF 2599_ACEOF
1259 2600
1260
1261cat >>confdefs.h <<_ACEOF 2601cat >>confdefs.h <<_ACEOF
1262#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2602#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1263_ACEOF 2603_ACEOF
1264 2604
2605cat >>confdefs.h <<_ACEOF
2606#define PACKAGE_URL "$PACKAGE_URL"
2607_ACEOF
2608
1265 2609
1266# Let the site file select an alternate cache file if it wants to. 2610# Let the site file select an alternate cache file if it wants to.
1267# Prefer explicitly selected file to automatically selected ones. 2611# Prefer an explicitly selected file to automatically selected ones.
2612ac_site_file1=NONE
2613ac_site_file2=NONE
1268if test -z "$CONFIG_SITE"; then 2614if test -n "$CONFIG_SITE"; then
2615 # We do not want a PATH search for config.site.
2616 case $CONFIG_SITE in #((
2617 -*) ac_site_file1=./$CONFIG_SITE;;
2618 */*) ac_site_file1=$CONFIG_SITE;;
2619 *) ac_site_file1=./$CONFIG_SITE;;
2620 esac
1269 if test "x$prefix" != xNONE; then 2621elif test "x$prefix" != xNONE; then
1270 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 2622 ac_site_file1=$prefix/share/config.site
2623 ac_site_file2=$prefix/etc/config.site
1271 else 2624else
1272 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2625 ac_site_file1=$ac_default_prefix/share/config.site
1273 fi 2626 ac_site_file2=$ac_default_prefix/etc/config.site
1274fi 2627fi
1275for ac_site_file in $CONFIG_SITE; do 2628for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1276 if test -r "$ac_site_file"; then 2629do
2630 test "x$ac_site_file" = xNONE && continue
2631 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1277 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1278echo "$as_me: loading site script $ac_site_file" >&6;} 2633$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1279 sed 's/^/| /' "$ac_site_file" >&5 2634 sed 's/^/| /' "$ac_site_file" >&5
1280 . "$ac_site_file" 2635 . "$ac_site_file" \
2636 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2638as_fn_error $? "failed to load site script $ac_site_file
2639See \`config.log' for more details" "$LINENO" 5; }
1281 fi 2640 fi
1282done 2641done
1283 2642
1284if test -r "$cache_file"; then 2643if test -r "$cache_file"; then
1285 # Some versions of bash will fail to source /dev/null (special 2644 # Some versions of bash will fail to source /dev/null (special files
1286 # files actually), so we avoid doing that. 2645 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1287 if test -f "$cache_file"; then 2646 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1288 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1289echo "$as_me: loading cache $cache_file" >&6;} 2648$as_echo "$as_me: loading cache $cache_file" >&6;}
1290 case $cache_file in 2649 case $cache_file in
1291 [\\/]* | ?:[\\/]* ) . $cache_file;; 2650 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1292 *) . ./$cache_file;; 2651 *) . "./$cache_file";;
1293 esac 2652 esac
1294 fi 2653 fi
1295else 2654else
1296 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1297echo "$as_me: creating cache $cache_file" >&6;} 2656$as_echo "$as_me: creating cache $cache_file" >&6;}
1298 >$cache_file 2657 >$cache_file
1299fi 2658fi
1300 2659
1301# Check that the precious variables saved in the cache have kept the same 2660# Check that the precious variables saved in the cache have kept the same
1302# value. 2661# value.
1303ac_cache_corrupted=false 2662ac_cache_corrupted=false
1304for ac_var in `(set) 2>&1 | 2663for ac_var in $ac_precious_vars; do
1305 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1306 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2664 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1307 eval ac_new_set=\$ac_env_${ac_var}_set 2665 eval ac_new_set=\$ac_env_${ac_var}_set
1308 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 2666 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1309 eval ac_new_val="\$ac_env_${ac_var}_value" 2667 eval ac_new_val=\$ac_env_${ac_var}_value
1310 case $ac_old_set,$ac_new_set in 2668 case $ac_old_set,$ac_new_set in
1311 set,) 2669 set,)
1312 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1313echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2671$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1314 ac_cache_corrupted=: ;; 2672 ac_cache_corrupted=: ;;
1315 ,set) 2673 ,set)
1316 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1317echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2675$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1318 ac_cache_corrupted=: ;; 2676 ac_cache_corrupted=: ;;
1319 ,);; 2677 ,);;
1320 *) 2678 *)
1321 if test "x$ac_old_val" != "x$ac_new_val"; then 2679 if test "x$ac_old_val" != "x$ac_new_val"; then
2680 # differences in whitespace do not lead to failure.
2681 ac_old_val_w=`echo x $ac_old_val`
2682 ac_new_val_w=`echo x $ac_new_val`
2683 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1322 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1323echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2685$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1324 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1325echo "$as_me: former value: $ac_old_val" >&2;}
1326 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1327echo "$as_me: current value: $ac_new_val" >&2;}
1328 ac_cache_corrupted=: 2686 ac_cache_corrupted=:
2687 else
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2689$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2690 eval $ac_var=\$ac_old_val
2691 fi
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2693$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2695$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1329 fi;; 2696 fi;;
1330 esac 2697 esac
1331 # Pass precious variables to config.status. 2698 # Pass precious variables to config.status.
1332 if test "$ac_new_set" = set; then 2699 if test "$ac_new_set" = set; then
1333 case $ac_new_val in 2700 case $ac_new_val in
1334 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1335 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2701 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1336 *) ac_arg=$ac_var=$ac_new_val ;; 2702 *) ac_arg=$ac_var=$ac_new_val ;;
1337 esac 2703 esac
1338 case " $ac_configure_args " in 2704 case " $ac_configure_args " in
1339 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2705 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1340 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2706 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1341 esac 2707 esac
1342 fi 2708 fi
1343done 2709done
1344if $ac_cache_corrupted; then 2710if $ac_cache_corrupted; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1345 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1346echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2714$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1347 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1348echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2715 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1349 { (exit 1); exit 1; }; }
1350fi 2716fi
2717## -------------------- ##
2718## Main body of script. ##
2719## -------------------- ##
1351 2720
1352ac_ext=c 2721ac_ext=c
1353ac_cpp='$CPP $CPPFLAGS' 2722ac_cpp='$CPP $CPPFLAGS'
1354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1356ac_compiler_gnu=$ac_cv_c_compiler_gnu 2725ac_compiler_gnu=$ac_cv_c_compiler_gnu
1357 2726
1358 2727
1359 2728
1360 2729
1361 2730ac_config_headers="$ac_config_headers config.h:config.h.in"
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375 2731
1376 2732
1377ac_aux_dir= 2733ac_aux_dir=
1378for ac_dir in autoconf $srcdir/autoconf; do 2734for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1379 if test -f $ac_dir/install-sh; then 2735 if test -f "$ac_dir/install-sh"; then
1380 ac_aux_dir=$ac_dir 2736 ac_aux_dir=$ac_dir
1381 ac_install_sh="$ac_aux_dir/install-sh -c" 2737 ac_install_sh="$ac_aux_dir/install-sh -c"
1382 break 2738 break
1383 elif test -f $ac_dir/install.sh; then 2739 elif test -f "$ac_dir/install.sh"; then
1384 ac_aux_dir=$ac_dir 2740 ac_aux_dir=$ac_dir
1385 ac_install_sh="$ac_aux_dir/install.sh -c" 2741 ac_install_sh="$ac_aux_dir/install.sh -c"
1386 break 2742 break
1387 elif test -f $ac_dir/shtool; then 2743 elif test -f "$ac_dir/shtool"; then
1388 ac_aux_dir=$ac_dir 2744 ac_aux_dir=$ac_dir
1389 ac_install_sh="$ac_aux_dir/shtool install -c" 2745 ac_install_sh="$ac_aux_dir/shtool install -c"
1390 break 2746 break
1391 fi 2747 fi
1392done 2748done
1393if test -z "$ac_aux_dir"; then 2749if test -z "$ac_aux_dir"; then
1394 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 2750 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1395echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1396 { (exit 1); exit 1; }; }
1397fi 2751fi
2752
2753# These three variables are undocumented and unsupported,
2754# and are intended to be withdrawn in a future Autoconf release.
2755# They can cause serious problems if a builder's source tree is in a directory
2756# whose full name contains unusual characters.
1398ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2757ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1399ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2758ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1400ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2759ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1401
1402 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1403 2760
1404 2761
1405# Make sure we can run config.sub. 2762# Make sure we can run config.sub.
1406$ac_config_sub sun4 >/dev/null 2>&1 || 2763$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1407 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2764 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1408echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1409 { (exit 1); exit 1; }; }
1410 2765
1411echo "$as_me:$LINENO: checking build system type" >&5 2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1412echo $ECHO_N "checking build system type... $ECHO_C" >&6 2767$as_echo_n "checking build system type... " >&6; }
1413if test "${ac_cv_build+set}" = set; then 2768if ${ac_cv_build+:} false; then :
1414 echo $ECHO_N "(cached) $ECHO_C" >&6 2769 $as_echo_n "(cached) " >&6
1415else 2770else
1416 ac_cv_build_alias=$build_alias 2771 ac_build_alias=$build_alias
1417test -z "$ac_cv_build_alias" && 2772test "x$ac_build_alias" = x &&
1418 ac_cv_build_alias=`$ac_config_guess` 2773 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1419test -z "$ac_cv_build_alias" && 2774test "x$ac_build_alias" = x &&
1420 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2775 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1421echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1422 { (exit 1); exit 1; }; }
1423ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2776ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1424 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1425echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1426 { (exit 1); exit 1; }; }
1427 2778
1428fi 2779fi
1429echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1430echo "${ECHO_T}$ac_cv_build" >&6 2781$as_echo "$ac_cv_build" >&6; }
2782case $ac_cv_build in
2783*-*-*) ;;
2784*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2785esac
1431build=$ac_cv_build 2786build=$ac_cv_build
1432build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2787ac_save_IFS=$IFS; IFS='-'
1433build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2788set x $ac_cv_build
1434build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2789shift
2790build_cpu=$1
2791build_vendor=$2
2792shift; shift
2793# Remember, the first character of IFS is used to create $*,
2794# except with old shells:
2795build_os=$*
2796IFS=$ac_save_IFS
2797case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1435 2798
1436 2799
1437echo "$as_me:$LINENO: checking host system type" >&5 2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1438echo $ECHO_N "checking host system type... $ECHO_C" >&6 2801$as_echo_n "checking host system type... " >&6; }
1439if test "${ac_cv_host+set}" = set; then 2802if ${ac_cv_host+:} false; then :
1440 echo $ECHO_N "(cached) $ECHO_C" >&6 2803 $as_echo_n "(cached) " >&6
1441else 2804else
1442 ac_cv_host_alias=$host_alias 2805 if test "x$host_alias" = x; then
1443test -z "$ac_cv_host_alias" &&
1444 ac_cv_host_alias=$ac_cv_build_alias 2806 ac_cv_host=$ac_cv_build
2807else
1445ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2808 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1446 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1447echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1448 { (exit 1); exit 1; }; }
1449
1450fi 2810fi
2811
2812fi
1451echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1452echo "${ECHO_T}$ac_cv_host" >&6 2814$as_echo "$ac_cv_host" >&6; }
2815case $ac_cv_host in
2816*-*-*) ;;
2817*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2818esac
1453host=$ac_cv_host 2819host=$ac_cv_host
1454host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2820ac_save_IFS=$IFS; IFS='-'
1455host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2821set x $ac_cv_host
1456host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2822shift
2823host_cpu=$1
2824host_vendor=$2
2825shift; shift
2826# Remember, the first character of IFS is used to create $*,
2827# except with old shells:
2828host_os=$*
2829IFS=$ac_save_IFS
2830case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1457 2831
1458 2832
1459 2833
1460VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2834VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1461DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2835DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2836
1462echo "" 2837echo ""
1463echo "configuring for rxvt $VERSION" 2838echo "configuring for rxvt $VERSION"
1464echo "" 2839echo ""
1465 2840
2841orig_CXXFLAGS="$CXXFLAGS"
1466 2842
1467ac_ext=c 2843ac_ext=c
1468ac_cpp='$CPP $CPPFLAGS' 2844ac_cpp='$CPP $CPPFLAGS'
1469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471ac_compiler_gnu=$ac_cv_c_compiler_gnu 2847ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472if test -n "$ac_tool_prefix"; then 2848if test -n "$ac_tool_prefix"; then
1473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1474set dummy ${ac_tool_prefix}gcc; ac_word=$2 2850set dummy ${ac_tool_prefix}gcc; ac_word=$2
1475echo "$as_me:$LINENO: checking for $ac_word" >&5 2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2852$as_echo_n "checking for $ac_word... " >&6; }
1477if test "${ac_cv_prog_CC+set}" = set; then 2853if ${ac_cv_prog_CC+:} false; then :
1478 echo $ECHO_N "(cached) $ECHO_C" >&6 2854 $as_echo_n "(cached) " >&6
1479else 2855else
1480 if test -n "$CC"; then 2856 if test -n "$CC"; then
1481 ac_cv_prog_CC="$CC" # Let the user override the test. 2857 ac_cv_prog_CC="$CC" # Let the user override the test.
1482else 2858else
1483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484for as_dir in $PATH 2860for as_dir in $PATH
1485do 2861do
1486 IFS=$as_save_IFS 2862 IFS=$as_save_IFS
1487 test -z "$as_dir" && as_dir=. 2863 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do 2864 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2866 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1492 break 2 2868 break 2
1493 fi 2869 fi
1494done 2870done
1495done 2871 done
2872IFS=$as_save_IFS
1496 2873
1497fi 2874fi
1498fi 2875fi
1499CC=$ac_cv_prog_CC 2876CC=$ac_cv_prog_CC
1500if test -n "$CC"; then 2877if test -n "$CC"; then
1501 echo "$as_me:$LINENO: result: $CC" >&5 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1502echo "${ECHO_T}$CC" >&6 2879$as_echo "$CC" >&6; }
1503else 2880else
1504 echo "$as_me:$LINENO: result: no" >&5 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1505echo "${ECHO_T}no" >&6 2882$as_echo "no" >&6; }
1506fi 2883fi
2884
1507 2885
1508fi 2886fi
1509if test -z "$ac_cv_prog_CC"; then 2887if test -z "$ac_cv_prog_CC"; then
1510 ac_ct_CC=$CC 2888 ac_ct_CC=$CC
1511 # Extract the first word of "gcc", so it can be a program name with args. 2889 # Extract the first word of "gcc", so it can be a program name with args.
1512set dummy gcc; ac_word=$2 2890set dummy gcc; ac_word=$2
1513echo "$as_me:$LINENO: checking for $ac_word" >&5 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2892$as_echo_n "checking for $ac_word... " >&6; }
1515if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2893if ${ac_cv_prog_ac_ct_CC+:} false; then :
1516 echo $ECHO_N "(cached) $ECHO_C" >&6 2894 $as_echo_n "(cached) " >&6
1517else 2895else
1518 if test -n "$ac_ct_CC"; then 2896 if test -n "$ac_ct_CC"; then
1519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1520else 2898else
1521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522for as_dir in $PATH 2900for as_dir in $PATH
1523do 2901do
1524 IFS=$as_save_IFS 2902 IFS=$as_save_IFS
1525 test -z "$as_dir" && as_dir=. 2903 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do 2904 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_ac_ct_CC="gcc" 2906 ac_cv_prog_ac_ct_CC="gcc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 break 2 2908 break 2
1531 fi 2909 fi
1532done 2910done
1533done 2911 done
2912IFS=$as_save_IFS
1534 2913
1535fi 2914fi
1536fi 2915fi
1537ac_ct_CC=$ac_cv_prog_ac_ct_CC 2916ac_ct_CC=$ac_cv_prog_ac_ct_CC
1538if test -n "$ac_ct_CC"; then 2917if test -n "$ac_ct_CC"; then
1539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1540echo "${ECHO_T}$ac_ct_CC" >&6 2919$as_echo "$ac_ct_CC" >&6; }
1541else 2920else
1542 echo "$as_me:$LINENO: result: no" >&5 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1543echo "${ECHO_T}no" >&6 2922$as_echo "no" >&6; }
1544fi 2923fi
1545 2924
2925 if test "x$ac_ct_CC" = x; then
2926 CC=""
2927 else
2928 case $cross_compiling:$ac_tool_warned in
2929yes:)
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932ac_tool_warned=yes ;;
2933esac
1546 CC=$ac_ct_CC 2934 CC=$ac_ct_CC
2935 fi
1547else 2936else
1548 CC="$ac_cv_prog_CC" 2937 CC="$ac_cv_prog_CC"
1549fi 2938fi
1550 2939
1551if test -z "$CC"; then 2940if test -z "$CC"; then
1552 if test -n "$ac_tool_prefix"; then 2941 if test -n "$ac_tool_prefix"; then
1553 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1554set dummy ${ac_tool_prefix}cc; ac_word=$2 2943set dummy ${ac_tool_prefix}cc; ac_word=$2
1555echo "$as_me:$LINENO: checking for $ac_word" >&5 2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2945$as_echo_n "checking for $ac_word... " >&6; }
1557if test "${ac_cv_prog_CC+set}" = set; then 2946if ${ac_cv_prog_CC+:} false; then :
1558 echo $ECHO_N "(cached) $ECHO_C" >&6 2947 $as_echo_n "(cached) " >&6
1559else 2948else
1560 if test -n "$CC"; then 2949 if test -n "$CC"; then
1561 ac_cv_prog_CC="$CC" # Let the user override the test. 2950 ac_cv_prog_CC="$CC" # Let the user override the test.
1562else 2951else
1563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH 2953for as_dir in $PATH
1565do 2954do
1566 IFS=$as_save_IFS 2955 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=. 2956 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do 2957 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_CC="${ac_tool_prefix}cc" 2959 ac_cv_prog_CC="${ac_tool_prefix}cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 break 2 2961 break 2
1573 fi 2962 fi
1574done 2963done
1575done 2964 done
2965IFS=$as_save_IFS
1576 2966
1577fi 2967fi
1578fi 2968fi
1579CC=$ac_cv_prog_CC 2969CC=$ac_cv_prog_CC
1580if test -n "$CC"; then 2970if test -n "$CC"; then
1581 echo "$as_me:$LINENO: result: $CC" >&5 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1582echo "${ECHO_T}$CC" >&6 2972$as_echo "$CC" >&6; }
1583else 2973else
1584 echo "$as_me:$LINENO: result: no" >&5 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1585echo "${ECHO_T}no" >&6 2975$as_echo "no" >&6; }
1586fi 2976fi
1587 2977
1588fi
1589if test -z "$ac_cv_prog_CC"; then
1590 ac_ct_CC=$CC
1591 # Extract the first word of "cc", so it can be a program name with args.
1592set dummy cc; ac_word=$2
1593echo "$as_me:$LINENO: checking for $ac_word" >&5
1594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597else
1598 if test -n "$ac_ct_CC"; then
1599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1600else
1601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602for as_dir in $PATH
1603do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_ac_ct_CC="cc"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 break 2
1611 fi
1612done
1613done
1614 2978
1615fi 2979 fi
1616fi
1617ac_ct_CC=$ac_cv_prog_ac_ct_CC
1618if test -n "$ac_ct_CC"; then
1619 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1620echo "${ECHO_T}$ac_ct_CC" >&6
1621else
1622 echo "$as_me:$LINENO: result: no" >&5
1623echo "${ECHO_T}no" >&6
1624fi
1625
1626 CC=$ac_ct_CC
1627else
1628 CC="$ac_cv_prog_CC"
1629fi
1630
1631fi 2980fi
1632if test -z "$CC"; then 2981if test -z "$CC"; then
1633 # Extract the first word of "cc", so it can be a program name with args. 2982 # Extract the first word of "cc", so it can be a program name with args.
1634set dummy cc; ac_word=$2 2983set dummy cc; ac_word=$2
1635echo "$as_me:$LINENO: checking for $ac_word" >&5 2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2985$as_echo_n "checking for $ac_word... " >&6; }
1637if test "${ac_cv_prog_CC+set}" = set; then 2986if ${ac_cv_prog_CC+:} false; then :
1638 echo $ECHO_N "(cached) $ECHO_C" >&6 2987 $as_echo_n "(cached) " >&6
1639else 2988else
1640 if test -n "$CC"; then 2989 if test -n "$CC"; then
1641 ac_cv_prog_CC="$CC" # Let the user override the test. 2990 ac_cv_prog_CC="$CC" # Let the user override the test.
1642else 2991else
1643 ac_prog_rejected=no 2992 ac_prog_rejected=no
1644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645for as_dir in $PATH 2994for as_dir in $PATH
1646do 2995do
1647 IFS=$as_save_IFS 2996 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=. 2997 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do 2998 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1652 ac_prog_rejected=yes 3001 ac_prog_rejected=yes
1653 continue 3002 continue
1654 fi 3003 fi
1655 ac_cv_prog_CC="cc" 3004 ac_cv_prog_CC="cc"
1656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1657 break 2 3006 break 2
1658 fi 3007 fi
1659done 3008done
1660done 3009 done
3010IFS=$as_save_IFS
1661 3011
1662if test $ac_prog_rejected = yes; then 3012if test $ac_prog_rejected = yes; then
1663 # We found a bogon in the path, so make sure we never use it. 3013 # We found a bogon in the path, so make sure we never use it.
1664 set dummy $ac_cv_prog_CC 3014 set dummy $ac_cv_prog_CC
1665 shift 3015 shift
1673fi 3023fi
1674fi 3024fi
1675fi 3025fi
1676CC=$ac_cv_prog_CC 3026CC=$ac_cv_prog_CC
1677if test -n "$CC"; then 3027if test -n "$CC"; then
1678 echo "$as_me:$LINENO: result: $CC" >&5 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1679echo "${ECHO_T}$CC" >&6 3029$as_echo "$CC" >&6; }
1680else 3030else
1681 echo "$as_me:$LINENO: result: no" >&5 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1682echo "${ECHO_T}no" >&6 3032$as_echo "no" >&6; }
1683fi 3033fi
3034
1684 3035
1685fi 3036fi
1686if test -z "$CC"; then 3037if test -z "$CC"; then
1687 if test -n "$ac_tool_prefix"; then 3038 if test -n "$ac_tool_prefix"; then
1688 for ac_prog in cl 3039 for ac_prog in cl.exe
1689 do 3040 do
1690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1691set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3042set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1692echo "$as_me:$LINENO: checking for $ac_word" >&5 3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3044$as_echo_n "checking for $ac_word... " >&6; }
1694if test "${ac_cv_prog_CC+set}" = set; then 3045if ${ac_cv_prog_CC+:} false; then :
1695 echo $ECHO_N "(cached) $ECHO_C" >&6 3046 $as_echo_n "(cached) " >&6
1696else 3047else
1697 if test -n "$CC"; then 3048 if test -n "$CC"; then
1698 ac_cv_prog_CC="$CC" # Let the user override the test. 3049 ac_cv_prog_CC="$CC" # Let the user override the test.
1699else 3050else
1700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701for as_dir in $PATH 3052for as_dir in $PATH
1702do 3053do
1703 IFS=$as_save_IFS 3054 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=. 3055 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do 3056 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 break 2 3060 break 2
1710 fi 3061 fi
1711done 3062done
1712done 3063 done
3064IFS=$as_save_IFS
1713 3065
1714fi 3066fi
1715fi 3067fi
1716CC=$ac_cv_prog_CC 3068CC=$ac_cv_prog_CC
1717if test -n "$CC"; then 3069if test -n "$CC"; then
1718 echo "$as_me:$LINENO: result: $CC" >&5 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1719echo "${ECHO_T}$CC" >&6 3071$as_echo "$CC" >&6; }
1720else 3072else
1721 echo "$as_me:$LINENO: result: no" >&5 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1722echo "${ECHO_T}no" >&6 3074$as_echo "no" >&6; }
1723fi 3075fi
3076
1724 3077
1725 test -n "$CC" && break 3078 test -n "$CC" && break
1726 done 3079 done
1727fi 3080fi
1728if test -z "$CC"; then 3081if test -z "$CC"; then
1729 ac_ct_CC=$CC 3082 ac_ct_CC=$CC
1730 for ac_prog in cl 3083 for ac_prog in cl.exe
1731do 3084do
1732 # Extract the first word of "$ac_prog", so it can be a program name with args. 3085 # Extract the first word of "$ac_prog", so it can be a program name with args.
1733set dummy $ac_prog; ac_word=$2 3086set dummy $ac_prog; ac_word=$2
1734echo "$as_me:$LINENO: checking for $ac_word" >&5 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3088$as_echo_n "checking for $ac_word... " >&6; }
1736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3089if ${ac_cv_prog_ac_ct_CC+:} false; then :
1737 echo $ECHO_N "(cached) $ECHO_C" >&6 3090 $as_echo_n "(cached) " >&6
1738else 3091else
1739 if test -n "$ac_ct_CC"; then 3092 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741else 3094else
1742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743for as_dir in $PATH 3096for as_dir in $PATH
1744do 3097do
1745 IFS=$as_save_IFS 3098 IFS=$as_save_IFS
1746 test -z "$as_dir" && as_dir=. 3099 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do 3100 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_ac_ct_CC="$ac_prog" 3102 ac_cv_prog_ac_ct_CC="$ac_prog"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 break 2 3104 break 2
1752 fi 3105 fi
1753done 3106done
1754done 3107 done
3108IFS=$as_save_IFS
1755 3109
1756fi 3110fi
1757fi 3111fi
1758ac_ct_CC=$ac_cv_prog_ac_ct_CC 3112ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759if test -n "$ac_ct_CC"; then 3113if test -n "$ac_ct_CC"; then
1760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1761echo "${ECHO_T}$ac_ct_CC" >&6 3115$as_echo "$ac_ct_CC" >&6; }
1762else 3116else
1763 echo "$as_me:$LINENO: result: no" >&5 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1764echo "${ECHO_T}no" >&6 3118$as_echo "no" >&6; }
1765fi 3119fi
3120
1766 3121
1767 test -n "$ac_ct_CC" && break 3122 test -n "$ac_ct_CC" && break
1768done 3123done
1769 3124
3125 if test "x$ac_ct_CC" = x; then
3126 CC=""
3127 else
3128 case $cross_compiling:$ac_tool_warned in
3129yes:)
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132ac_tool_warned=yes ;;
3133esac
1770 CC=$ac_ct_CC 3134 CC=$ac_ct_CC
3135 fi
1771fi 3136fi
1772 3137
1773fi 3138fi
1774 3139
1775 3140
1776test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3141test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1777See \`config.log' for more details." >&5 3142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1778echo "$as_me: error: no acceptable C compiler found in \$PATH 3143as_fn_error $? "no acceptable C compiler found in \$PATH
1779See \`config.log' for more details." >&2;} 3144See \`config.log' for more details" "$LINENO" 5; }
1780 { (exit 1); exit 1; }; }
1781 3145
1782# Provide some information about the compiler. 3146# Provide some information about the compiler.
1783echo "$as_me:$LINENO:" \ 3147$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1784 "checking for C compiler version" >&5 3148set X $ac_compile
1785ac_compiler=`set X $ac_compile; echo $2` 3149ac_compiler=$2
1786{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3150for ac_option in --version -v -V -qversion; do
1787 (eval $ac_compiler --version </dev/null >&5) 2>&5 3151 { { ac_try="$ac_compiler $ac_option >&5"
3152case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
3156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157$as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1788 ac_status=$? 3159 ac_status=$?
3160 if test -s conftest.err; then
3161 sed '10a\
3162... rest of stderr output deleted ...
3163 10q' conftest.err >conftest.er1
3164 cat conftest.er1 >&5
3165 fi
3166 rm -f conftest.er1 conftest.err
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 (exit $ac_status); } 3168 test $ac_status = 0; }
1791{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3169done
1792 (eval $ac_compiler -v </dev/null >&5) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }
1796{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1797 (eval $ac_compiler -V </dev/null >&5) 2>&5
1798 ac_status=$?
1799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800 (exit $ac_status); }
1801 3170
1802cat >conftest.$ac_ext <<_ACEOF
1803/* confdefs.h. */
1804_ACEOF
1805cat confdefs.h >>conftest.$ac_ext 3171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806cat >>conftest.$ac_ext <<_ACEOF
1807/* end confdefs.h. */ 3172/* end confdefs.h. */
1808 3173
1809int 3174int
1810main () 3175main ()
1811{ 3176{
1813 ; 3178 ;
1814 return 0; 3179 return 0;
1815} 3180}
1816_ACEOF 3181_ACEOF
1817ac_clean_files_save=$ac_clean_files 3182ac_clean_files_save=$ac_clean_files
1818ac_clean_files="$ac_clean_files a.out a.exe b.out" 3183ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1819# Try to create an executable without -o first, disregard a.out. 3184# Try to create an executable without -o first, disregard a.out.
1820# It will help us diagnose broken compilers, and finding out an intuition 3185# It will help us diagnose broken compilers, and finding out an intuition
1821# of exeext. 3186# of exeext.
1822echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
1823echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 3188$as_echo_n "checking whether the C compiler works... " >&6; }
1824ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3189ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1825if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 3190
3191# The possible output files:
3192ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3193
3194ac_rmfiles=
3195for ac_file in $ac_files
3196do
3197 case $ac_file in
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3199 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3200 esac
3201done
3202rm -f $ac_rmfiles
3203
3204if { { ac_try="$ac_link_default"
3205case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
3209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210$as_echo "$ac_try_echo"; } >&5
1826 (eval $ac_link_default) 2>&5 3211 (eval "$ac_link_default") 2>&5
1827 ac_status=$? 3212 ac_status=$?
1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 (exit $ac_status); }; then 3214 test $ac_status = 0; }; then :
1830 # Find the output, starting from the most likely. This scheme is 3215 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
1831# not robust to junk in `.', hence go to wildcards (a.*) only as a last 3216# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
1832# resort. 3217# in a Makefile. We should not override ac_cv_exeext if it was cached,
1833 3218# so that the user can short-circuit this test for compilers unknown to
1834# Be careful to initialize this variable, since it used to be cached. 3219# Autoconf.
1835# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 3220for ac_file in $ac_files ''
1836ac_cv_exeext=
1837# b.out is created by i960 compilers.
1838for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1839do 3221do
1840 test -f "$ac_file" || continue 3222 test -f "$ac_file" || continue
1841 case $ac_file in 3223 case $ac_file in
1842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1843 ;;
1844 conftest.$ac_ext )
1845 # This is the source file.
1846 ;; 3225 ;;
1847 [ab].out ) 3226 [ab].out )
1848 # We found the default executable, but exeext='' is most 3227 # We found the default executable, but exeext='' is most
1849 # certainly right. 3228 # certainly right.
1850 break;; 3229 break;;
1851 *.* ) 3230 *.* )
3231 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3232 then :; else
1852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1853 # FIXME: I believe we export ac_cv_exeext for Libtool, 3234 fi
1854 # but it would be cool to find out if it's true. Does anybody 3235 # We set ac_cv_exeext here because the later test for it is not
1855 # maintain Libtool? --akim. 3236 # safe: cross compilers may not add the suffix if given an `-o'
1856 export ac_cv_exeext 3237 # argument, so we may need to know it at that point already.
3238 # Even if this section looks crufty: it has the advantage of
3239 # actually working.
1857 break;; 3240 break;;
1858 * ) 3241 * )
1859 break;; 3242 break;;
1860 esac 3243 esac
1861done 3244done
3245test "$ac_cv_exeext" = no && ac_cv_exeext=
3246
1862else 3247else
3248 ac_file=''
3249fi
3250if test -z "$ac_file"; then :
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252$as_echo "no" >&6; }
1863 echo "$as_me: failed program was:" >&5 3253$as_echo "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5 3254sed 's/^/| /' conftest.$ac_ext >&5
1865 3255
1866{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3256{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1867See \`config.log' for more details." >&5 3257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1868echo "$as_me: error: C compiler cannot create executables 3258as_fn_error 77 "C compiler cannot create executables
1869See \`config.log' for more details." >&2;} 3259See \`config.log' for more details" "$LINENO" 5; }
1870 { (exit 77); exit 77; }; } 3260else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262$as_echo "yes" >&6; }
1871fi 3263fi
1872 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3265$as_echo_n "checking for C compiler default output file name... " >&6; }
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3267$as_echo "$ac_file" >&6; }
1873ac_exeext=$ac_cv_exeext 3268ac_exeext=$ac_cv_exeext
1874echo "$as_me:$LINENO: result: $ac_file" >&5
1875echo "${ECHO_T}$ac_file" >&6
1876 3269
1877# Check the compiler produces executables we can run. If not, either 3270rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1878# the compiler is broken, or we cross compile. 3271ac_clean_files=$ac_clean_files_save
1879echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
1880echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 3273$as_echo_n "checking for suffix of executables... " >&6; }
1881# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3274if { { ac_try="$ac_link"
1882# If not cross compiling, check that we can run a simple program. 3275case "(($ac_try" in
1883if test "$cross_compiling" != yes; then 3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 if { ac_try='./$ac_file' 3277 *) ac_try_echo=$ac_try;;
1885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3278esac
3279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280$as_echo "$ac_try_echo"; } >&5
1886 (eval $ac_try) 2>&5 3281 (eval "$ac_link") 2>&5
1887 ac_status=$? 3282 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 (exit $ac_status); }; }; then
1890 cross_compiling=no
1891 else
1892 if test "$cross_compiling" = maybe; then
1893 cross_compiling=yes
1894 else
1895 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1896If you meant to cross compile, use \`--host'.
1897See \`config.log' for more details." >&5
1898echo "$as_me: error: cannot run C compiled programs.
1899If you meant to cross compile, use \`--host'.
1900See \`config.log' for more details." >&2;}
1901 { (exit 1); exit 1; }; }
1902 fi
1903 fi
1904fi
1905echo "$as_me:$LINENO: result: yes" >&5
1906echo "${ECHO_T}yes" >&6
1907
1908rm -f a.out a.exe conftest$ac_cv_exeext b.out
1909ac_clean_files=$ac_clean_files_save
1910# Check the compiler produces executables we can run. If not, either
1911# the compiler is broken, or we cross compile.
1912echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1913echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1914echo "$as_me:$LINENO: result: $cross_compiling" >&5
1915echo "${ECHO_T}$cross_compiling" >&6
1916
1917echo "$as_me:$LINENO: checking for suffix of executables" >&5
1918echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1920 (eval $ac_link) 2>&5
1921 ac_status=$?
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }; then 3284 test $ac_status = 0; }; then :
1924 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3285 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1925# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3286# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1926# work properly (i.e., refer to `conftest.exe'), while it won't with 3287# work properly (i.e., refer to `conftest.exe'), while it won't with
1927# `rm'. 3288# `rm'.
1928for ac_file in conftest.exe conftest conftest.*; do 3289for ac_file in conftest.exe conftest conftest.*; do
1929 test -f "$ac_file" || continue 3290 test -f "$ac_file" || continue
1930 case $ac_file in 3291 case $ac_file in
1931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 3292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3293 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1933 export ac_cv_exeext
1934 break;; 3294 break;;
1935 * ) break;; 3295 * ) break;;
1936 esac 3296 esac
1937done 3297done
1938else 3298else
1939 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1940See \`config.log' for more details." >&5 3300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1941echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3301as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1942See \`config.log' for more details." >&2;} 3302See \`config.log' for more details" "$LINENO" 5; }
1943 { (exit 1); exit 1; }; }
1944fi 3303fi
1945
1946rm -f conftest$ac_cv_exeext 3304rm -f conftest conftest$ac_cv_exeext
1947echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
1948echo "${ECHO_T}$ac_cv_exeext" >&6 3306$as_echo "$ac_cv_exeext" >&6; }
1949 3307
1950rm -f conftest.$ac_ext 3308rm -f conftest.$ac_ext
1951EXEEXT=$ac_cv_exeext 3309EXEEXT=$ac_cv_exeext
1952ac_exeext=$EXEEXT 3310ac_exeext=$EXEEXT
1953echo "$as_me:$LINENO: checking for suffix of object files" >&5
1954echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1955if test "${ac_cv_objext+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1957else
1958 cat >conftest.$ac_ext <<_ACEOF
1959/* confdefs.h. */
1960_ACEOF
1961cat confdefs.h >>conftest.$ac_ext 3311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962cat >>conftest.$ac_ext <<_ACEOF
1963/* end confdefs.h. */ 3312/* end confdefs.h. */
1964 3313#include <stdio.h>
1965int 3314int
1966main () 3315main ()
1967{ 3316{
3317FILE *f = fopen ("conftest.out", "w");
3318 return ferror (f) || fclose (f) != 0;
1968 3319
1969 ; 3320 ;
1970 return 0; 3321 return 0;
1971} 3322}
1972_ACEOF 3323_ACEOF
3324ac_clean_files="$ac_clean_files conftest.out"
3325# Check that the compiler produces executables we can run. If not, either
3326# the compiler is broken, or we cross compile.
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3328$as_echo_n "checking whether we are cross compiling... " >&6; }
3329if test "$cross_compiling" != yes; then
3330 { { ac_try="$ac_link"
3331case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334esac
3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336$as_echo "$ac_try_echo"; } >&5
3337 (eval "$ac_link") 2>&5
3338 ac_status=$?
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }
3341 if { ac_try='./conftest$ac_cv_exeext'
3342 { { case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345esac
3346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347$as_echo "$ac_try_echo"; } >&5
3348 (eval "$ac_try") 2>&5
3349 ac_status=$?
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }; }; then
3352 cross_compiling=no
3353 else
3354 if test "$cross_compiling" = maybe; then
3355 cross_compiling=yes
3356 else
3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359as_fn_error $? "cannot run C compiled programs.
3360If you meant to cross compile, use \`--host'.
3361See \`config.log' for more details" "$LINENO" 5; }
3362 fi
3363 fi
3364fi
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3366$as_echo "$cross_compiling" >&6; }
3367
3368rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3369ac_clean_files=$ac_clean_files_save
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3371$as_echo_n "checking for suffix of object files... " >&6; }
3372if ${ac_cv_objext+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374else
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376/* end confdefs.h. */
3377
3378int
3379main ()
3380{
3381
3382 ;
3383 return 0;
3384}
3385_ACEOF
1973rm -f conftest.o conftest.obj 3386rm -f conftest.o conftest.obj
1974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3387if { { ac_try="$ac_compile"
3388case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391esac
3392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393$as_echo "$ac_try_echo"; } >&5
1975 (eval $ac_compile) 2>&5 3394 (eval "$ac_compile") 2>&5
1976 ac_status=$? 3395 ac_status=$?
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 (exit $ac_status); }; then 3397 test $ac_status = 0; }; then :
1979 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 3398 for ac_file in conftest.o conftest.obj conftest.*; do
3399 test -f "$ac_file" || continue;
1980 case $ac_file in 3400 case $ac_file in
1981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3402 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1983 break;; 3403 break;;
1984 esac 3404 esac
1985done 3405done
1986else 3406else
1987 echo "$as_me: failed program was:" >&5 3407 $as_echo "$as_me: failed program was:" >&5
1988sed 's/^/| /' conftest.$ac_ext >&5 3408sed 's/^/| /' conftest.$ac_ext >&5
1989 3409
1990{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3410{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1991See \`config.log' for more details." >&5 3411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1992echo "$as_me: error: cannot compute suffix of object files: cannot compile 3412as_fn_error $? "cannot compute suffix of object files: cannot compile
1993See \`config.log' for more details." >&2;} 3413See \`config.log' for more details" "$LINENO" 5; }
1994 { (exit 1); exit 1; }; }
1995fi 3414fi
1996
1997rm -f conftest.$ac_cv_objext conftest.$ac_ext 3415rm -f conftest.$ac_cv_objext conftest.$ac_ext
1998fi 3416fi
1999echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2000echo "${ECHO_T}$ac_cv_objext" >&6 3418$as_echo "$ac_cv_objext" >&6; }
2001OBJEXT=$ac_cv_objext 3419OBJEXT=$ac_cv_objext
2002ac_objext=$OBJEXT 3420ac_objext=$OBJEXT
2003echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2004echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 3422$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2005if test "${ac_cv_c_compiler_gnu+set}" = set; then 3423if ${ac_cv_c_compiler_gnu+:} false; then :
2006 echo $ECHO_N "(cached) $ECHO_C" >&6 3424 $as_echo_n "(cached) " >&6
2007else 3425else
2008 cat >conftest.$ac_ext <<_ACEOF
2009/* confdefs.h. */
2010_ACEOF
2011cat confdefs.h >>conftest.$ac_ext 3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012cat >>conftest.$ac_ext <<_ACEOF
2013/* end confdefs.h. */ 3427/* end confdefs.h. */
2014 3428
2015int 3429int
2016main () 3430main ()
2017{ 3431{
2021 3435
2022 ; 3436 ;
2023 return 0; 3437 return 0;
2024} 3438}
2025_ACEOF 3439_ACEOF
2026rm -f conftest.$ac_objext 3440if ac_fn_c_try_compile "$LINENO"; then :
2027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028 (eval $ac_compile) 2>conftest.er1
2029 ac_status=$?
2030 grep -v '^ *+' conftest.er1 >conftest.err
2031 rm -f conftest.er1
2032 cat conftest.err >&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); } &&
2035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 (eval $ac_try) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; } &&
2041 { ac_try='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043 (eval $ac_try) 2>&5
2044 ac_status=$?
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2047 ac_compiler_gnu=yes 3441 ac_compiler_gnu=yes
2048else 3442else
2049 echo "$as_me: failed program was:" >&5
2050sed 's/^/| /' conftest.$ac_ext >&5
2051
2052ac_compiler_gnu=no 3443 ac_compiler_gnu=no
2053fi 3444fi
2054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055ac_cv_c_compiler_gnu=$ac_compiler_gnu 3446ac_cv_c_compiler_gnu=$ac_compiler_gnu
2056 3447
2057fi 3448fi
2058echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2059echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 3450$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2060GCC=`test $ac_compiler_gnu = yes && echo yes` 3451if test $ac_compiler_gnu = yes; then
3452 GCC=yes
3453else
3454 GCC=
3455fi
2061ac_test_CFLAGS=${CFLAGS+set} 3456ac_test_CFLAGS=${CFLAGS+set}
2062ac_save_CFLAGS=$CFLAGS 3457ac_save_CFLAGS=$CFLAGS
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3459$as_echo_n "checking whether $CC accepts -g... " >&6; }
3460if ${ac_cv_prog_cc_g+:} false; then :
3461 $as_echo_n "(cached) " >&6
3462else
3463 ac_save_c_werror_flag=$ac_c_werror_flag
3464 ac_c_werror_flag=yes
3465 ac_cv_prog_cc_g=no
2063CFLAGS="-g" 3466 CFLAGS="-g"
2064echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2065echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2066if test "${ac_cv_prog_cc_g+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2068else
2069 cat >conftest.$ac_ext <<_ACEOF
2070/* confdefs.h. */
2071_ACEOF
2072cat confdefs.h >>conftest.$ac_ext 3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073cat >>conftest.$ac_ext <<_ACEOF
2074/* end confdefs.h. */ 3468/* end confdefs.h. */
2075 3469
2076int 3470int
2077main () 3471main ()
2078{ 3472{
2079 3473
2080 ; 3474 ;
2081 return 0; 3475 return 0;
2082} 3476}
2083_ACEOF 3477_ACEOF
2084rm -f conftest.$ac_objext 3478if ac_fn_c_try_compile "$LINENO"; then :
2085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>conftest.er1
2087 ac_status=$?
2088 grep -v '^ *+' conftest.er1 >conftest.err
2089 rm -f conftest.er1
2090 cat conftest.err >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); } &&
2093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095 (eval $ac_try) 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; } &&
2099 { ac_try='test -s conftest.$ac_objext'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2105 ac_cv_prog_cc_g=yes 3479 ac_cv_prog_cc_g=yes
2106else 3480else
2107 echo "$as_me: failed program was:" >&5 3481 CFLAGS=""
2108sed 's/^/| /' conftest.$ac_ext >&5 3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483/* end confdefs.h. */
2109 3484
3485int
3486main ()
3487{
3488
3489 ;
3490 return 0;
3491}
3492_ACEOF
3493if ac_fn_c_try_compile "$LINENO"; then :
3494
3495else
3496 ac_c_werror_flag=$ac_save_c_werror_flag
3497 CFLAGS="-g"
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h. */
3500
3501int
3502main ()
3503{
3504
3505 ;
3506 return 0;
3507}
3508_ACEOF
3509if ac_fn_c_try_compile "$LINENO"; then :
2110ac_cv_prog_cc_g=no 3510 ac_cv_prog_cc_g=yes
2111fi 3511fi
2112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113fi 3513fi
3514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515fi
3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 ac_c_werror_flag=$ac_save_c_werror_flag
3518fi
2114echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2115echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 3520$as_echo "$ac_cv_prog_cc_g" >&6; }
2116if test "$ac_test_CFLAGS" = set; then 3521if test "$ac_test_CFLAGS" = set; then
2117 CFLAGS=$ac_save_CFLAGS 3522 CFLAGS=$ac_save_CFLAGS
2118elif test $ac_cv_prog_cc_g = yes; then 3523elif test $ac_cv_prog_cc_g = yes; then
2119 if test "$GCC" = yes; then 3524 if test "$GCC" = yes; then
2120 CFLAGS="-g -O2" 3525 CFLAGS="-g -O2"
2126 CFLAGS="-O2" 3531 CFLAGS="-O2"
2127 else 3532 else
2128 CFLAGS= 3533 CFLAGS=
2129 fi 3534 fi
2130fi 3535fi
2131echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2132echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 3537$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2133if test "${ac_cv_prog_cc_stdc+set}" = set; then 3538if ${ac_cv_prog_cc_c89+:} false; then :
2134 echo $ECHO_N "(cached) $ECHO_C" >&6 3539 $as_echo_n "(cached) " >&6
2135else 3540else
2136 ac_cv_prog_cc_stdc=no 3541 ac_cv_prog_cc_c89=no
2137ac_save_CC=$CC 3542ac_save_CC=$CC
2138cat >conftest.$ac_ext <<_ACEOF
2139/* confdefs.h. */
2140_ACEOF
2141cat confdefs.h >>conftest.$ac_ext 3543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142cat >>conftest.$ac_ext <<_ACEOF
2143/* end confdefs.h. */ 3544/* end confdefs.h. */
2144#include <stdarg.h> 3545#include <stdarg.h>
2145#include <stdio.h> 3546#include <stdio.h>
2146#include <sys/types.h> 3547struct stat;
2147#include <sys/stat.h>
2148/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3548/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2149struct buf { int x; }; 3549struct buf { int x; };
2150FILE * (*rcsopen) (struct buf *, struct stat *, int); 3550FILE * (*rcsopen) (struct buf *, struct stat *, int);
2151static char *e (p, i) 3551static char *e (p, i)
2152 char **p; 3552 char **p;
2165} 3565}
2166 3566
2167/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3567/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2168 function prototypes and stuff, but not '\xHH' hex character constants. 3568 function prototypes and stuff, but not '\xHH' hex character constants.
2169 These don't provoke an error unfortunately, instead are silently treated 3569 These don't provoke an error unfortunately, instead are silently treated
2170 as 'x'. The following induces an error, until -std1 is added to get 3570 as 'x'. The following induces an error, until -std is added to get
2171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3571 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2172 array size at least. It's necessary to write '\x00'==0 to get something 3572 array size at least. It's necessary to write '\x00'==0 to get something
2173 that's true only with -std1. */ 3573 that's true only with -std. */
2174int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3574int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3575
3576/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3577 inside strings and character constants. */
3578#define FOO(x) 'x'
3579int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2175 3580
2176int test (int i, double x); 3581int test (int i, double x);
2177struct s1 {int (*f) (int a);}; 3582struct s1 {int (*f) (int a);};
2178struct s2 {int (*f) (double a);}; 3583struct s2 {int (*f) (double a);};
2179int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3584int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2185return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3590return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2186 ; 3591 ;
2187 return 0; 3592 return 0;
2188} 3593}
2189_ACEOF 3594_ACEOF
2190# Don't try gcc -ansi; that turns off useful extensions and 3595for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2191# breaks some systems' header files. 3596 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2192# AIX -qlanglvl=ansi
2193# Ultrix and OSF/1 -std1
2194# HP-UX 10.20 and later -Ae
2195# HP-UX older versions -Aa -D_HPUX_SOURCE
2196# SVR4 -Xc -D__EXTENSIONS__
2197for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2198do 3597do
2199 CC="$ac_save_CC $ac_arg" 3598 CC="$ac_save_CC $ac_arg"
2200 rm -f conftest.$ac_objext 3599 if ac_fn_c_try_compile "$LINENO"; then :
2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202 (eval $ac_compile) 2>conftest.er1
2203 ac_status=$?
2204 grep -v '^ *+' conftest.er1 >conftest.err
2205 rm -f conftest.er1
2206 cat conftest.err >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } &&
2209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; } &&
2215 { ac_try='test -s conftest.$ac_objext'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2221 ac_cv_prog_cc_stdc=$ac_arg 3600 ac_cv_prog_cc_c89=$ac_arg
2222break
2223else
2224 echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227fi 3601fi
2228rm -f conftest.err conftest.$ac_objext 3602rm -f core conftest.err conftest.$ac_objext
3603 test "x$ac_cv_prog_cc_c89" != "xno" && break
2229done 3604done
2230rm -f conftest.$ac_ext conftest.$ac_objext 3605rm -f conftest.$ac_ext
2231CC=$ac_save_CC 3606CC=$ac_save_CC
2232 3607
2233fi 3608fi
2234 3609# AC_CACHE_VAL
2235case "x$ac_cv_prog_cc_stdc" in 3610case "x$ac_cv_prog_cc_c89" in
3611 x)
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3613$as_echo "none needed" >&6; } ;;
2236 x|xno) 3614 xno)
2237 echo "$as_me:$LINENO: result: none needed" >&5 3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2238echo "${ECHO_T}none needed" >&6 ;; 3616$as_echo "unsupported" >&6; } ;;
2239 *) 3617 *)
2240 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2241echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2242 CC="$CC $ac_cv_prog_cc_stdc" ;; 3618 CC="$CC $ac_cv_prog_cc_c89"
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3620$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2243esac 3621esac
3622if test "x$ac_cv_prog_cc_c89" != xno; then :
2244 3623
2245# Some people use a C++ compiler to compile C. Since we use `exit',
2246# in C++ we need to declare it. In case someone uses the same compiler
2247# for both compiling C and C++ we need to have the C++ compiler decide
2248# the declaration of exit, since it's the most demanding environment.
2249cat >conftest.$ac_ext <<_ACEOF
2250#ifndef __cplusplus
2251 choke me
2252#endif
2253_ACEOF
2254rm -f conftest.$ac_objext
2255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>conftest.er1
2257 ac_status=$?
2258 grep -v '^ *+' conftest.er1 >conftest.err
2259 rm -f conftest.er1
2260 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2275 for ac_declaration in \
2276 '' \
2277 'extern "C" void std::exit (int) throw (); using std::exit;' \
2278 'extern "C" void std::exit (int); using std::exit;' \
2279 'extern "C" void exit (int) throw ();' \
2280 'extern "C" void exit (int);' \
2281 'void exit (int);'
2282do
2283 cat >conftest.$ac_ext <<_ACEOF
2284/* confdefs.h. */
2285_ACEOF
2286cat confdefs.h >>conftest.$ac_ext
2287cat >>conftest.$ac_ext <<_ACEOF
2288/* end confdefs.h. */
2289$ac_declaration
2290#include <stdlib.h>
2291int
2292main ()
2293{
2294exit (42);
2295 ;
2296 return 0;
2297}
2298_ACEOF
2299rm -f conftest.$ac_objext
2300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301 (eval $ac_compile) 2>conftest.er1
2302 ac_status=$?
2303 grep -v '^ *+' conftest.er1 >conftest.err
2304 rm -f conftest.er1
2305 cat conftest.err >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); } &&
2308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 (eval $ac_try) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; } &&
2314 { ac_try='test -s conftest.$ac_objext'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2320 :
2321else
2322 echo "$as_me: failed program was:" >&5
2323sed 's/^/| /' conftest.$ac_ext >&5
2324
2325continue
2326fi 3624fi
2327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328 cat >conftest.$ac_ext <<_ACEOF
2329/* confdefs.h. */
2330_ACEOF
2331cat confdefs.h >>conftest.$ac_ext
2332cat >>conftest.$ac_ext <<_ACEOF
2333/* end confdefs.h. */
2334$ac_declaration
2335int
2336main ()
2337{
2338exit (42);
2339 ;
2340 return 0;
2341}
2342_ACEOF
2343rm -f conftest.$ac_objext
2344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>conftest.er1
2346 ac_status=$?
2347 grep -v '^ *+' conftest.er1 >conftest.err
2348 rm -f conftest.er1
2349 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
2352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 break
2365else
2366 echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368 3625
2369fi
2370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371done
2372rm -f conftest*
2373if test -n "$ac_declaration"; then
2374 echo '#ifdef __cplusplus' >>confdefs.h
2375 echo $ac_declaration >>confdefs.h
2376 echo '#endif' >>confdefs.h
2377fi
2378
2379else
2380 echo "$as_me: failed program was:" >&5
2381sed 's/^/| /' conftest.$ac_ext >&5
2382
2383fi
2384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385ac_ext=c 3626ac_ext=c
2386ac_cpp='$CPP $CPPFLAGS' 3627ac_cpp='$CPP $CPPFLAGS'
2387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389ac_compiler_gnu=$ac_cv_c_compiler_gnu 3630ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390 3631
2391ac_ext=cc 3632ac_ext=cpp
2392ac_cpp='$CXXCPP $CPPFLAGS' 3633ac_cpp='$CXXCPP $CPPFLAGS'
2393ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3637if test -z "$CXX"; then
3638 if test -n "$CCC"; then
3639 CXX=$CCC
3640 else
2396if test -n "$ac_tool_prefix"; then 3641 if test -n "$ac_tool_prefix"; then
2397 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3642 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2398 do 3643 do
2399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2400set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3645set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2401echo "$as_me:$LINENO: checking for $ac_word" >&5 3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3647$as_echo_n "checking for $ac_word... " >&6; }
2403if test "${ac_cv_prog_CXX+set}" = set; then 3648if ${ac_cv_prog_CXX+:} false; then :
2404 echo $ECHO_N "(cached) $ECHO_C" >&6 3649 $as_echo_n "(cached) " >&6
2405else 3650else
2406 if test -n "$CXX"; then 3651 if test -n "$CXX"; then
2407 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3652 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2408else 3653else
2409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410for as_dir in $PATH 3655for as_dir in $PATH
2411do 3656do
2412 IFS=$as_save_IFS 3657 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=. 3658 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do 3659 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3661 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 2 3663 break 2
2419 fi 3664 fi
2420done 3665done
2421done 3666 done
3667IFS=$as_save_IFS
2422 3668
2423fi 3669fi
2424fi 3670fi
2425CXX=$ac_cv_prog_CXX 3671CXX=$ac_cv_prog_CXX
2426if test -n "$CXX"; then 3672if test -n "$CXX"; then
2427 echo "$as_me:$LINENO: result: $CXX" >&5 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2428echo "${ECHO_T}$CXX" >&6 3674$as_echo "$CXX" >&6; }
2429else 3675else
2430 echo "$as_me:$LINENO: result: no" >&5 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2431echo "${ECHO_T}no" >&6 3677$as_echo "no" >&6; }
2432fi 3678fi
3679
2433 3680
2434 test -n "$CXX" && break 3681 test -n "$CXX" && break
2435 done 3682 done
2436fi 3683fi
2437if test -z "$CXX"; then 3684if test -z "$CXX"; then
2438 ac_ct_CXX=$CXX 3685 ac_ct_CXX=$CXX
2439 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3686 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2440do 3687do
2441 # Extract the first word of "$ac_prog", so it can be a program name with args. 3688 # Extract the first word of "$ac_prog", so it can be a program name with args.
2442set dummy $ac_prog; ac_word=$2 3689set dummy $ac_prog; ac_word=$2
2443echo "$as_me:$LINENO: checking for $ac_word" >&5 3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3691$as_echo_n "checking for $ac_word... " >&6; }
2445if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3692if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2446 echo $ECHO_N "(cached) $ECHO_C" >&6 3693 $as_echo_n "(cached) " >&6
2447else 3694else
2448 if test -n "$ac_ct_CXX"; then 3695 if test -n "$ac_ct_CXX"; then
2449 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3696 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2450else 3697else
2451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH 3699for as_dir in $PATH
2453do 3700do
2454 IFS=$as_save_IFS 3701 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=. 3702 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do 3703 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458 ac_cv_prog_ac_ct_CXX="$ac_prog" 3705 ac_cv_prog_ac_ct_CXX="$ac_prog"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 break 2 3707 break 2
2461 fi 3708 fi
2462done 3709done
2463done 3710 done
3711IFS=$as_save_IFS
2464 3712
2465fi 3713fi
2466fi 3714fi
2467ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3715ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2468if test -n "$ac_ct_CXX"; then 3716if test -n "$ac_ct_CXX"; then
2469 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2470echo "${ECHO_T}$ac_ct_CXX" >&6 3718$as_echo "$ac_ct_CXX" >&6; }
2471else 3719else
2472 echo "$as_me:$LINENO: result: no" >&5 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2473echo "${ECHO_T}no" >&6 3721$as_echo "no" >&6; }
2474fi 3722fi
3723
2475 3724
2476 test -n "$ac_ct_CXX" && break 3725 test -n "$ac_ct_CXX" && break
2477done 3726done
2478test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2479 3727
3728 if test "x$ac_ct_CXX" = x; then
3729 CXX="g++"
3730 else
3731 case $cross_compiling:$ac_tool_warned in
3732yes:)
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3735ac_tool_warned=yes ;;
3736esac
2480 CXX=$ac_ct_CXX 3737 CXX=$ac_ct_CXX
3738 fi
2481fi 3739fi
2482 3740
2483 3741 fi
3742fi
2484# Provide some information about the compiler. 3743# Provide some information about the compiler.
2485echo "$as_me:$LINENO:" \ 3744$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2486 "checking for C++ compiler version" >&5 3745set X $ac_compile
2487ac_compiler=`set X $ac_compile; echo $2` 3746ac_compiler=$2
2488{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3747for ac_option in --version -v -V -qversion; do
2489 (eval $ac_compiler --version </dev/null >&5) 2>&5 3748 { { ac_try="$ac_compiler $ac_option >&5"
3749case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752esac
3753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754$as_echo "$ac_try_echo"; } >&5
3755 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2490 ac_status=$? 3756 ac_status=$?
3757 if test -s conftest.err; then
3758 sed '10a\
3759... rest of stderr output deleted ...
3760 10q' conftest.err >conftest.er1
3761 cat conftest.er1 >&5
3762 fi
3763 rm -f conftest.er1 conftest.err
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2492 (exit $ac_status); } 3765 test $ac_status = 0; }
2493{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3766done
2494 (eval $ac_compiler -v </dev/null >&5) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }
2498{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2499 (eval $ac_compiler -V </dev/null >&5) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }
2503 3767
2504echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2505echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3769$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2506if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3770if ${ac_cv_cxx_compiler_gnu+:} false; then :
2507 echo $ECHO_N "(cached) $ECHO_C" >&6 3771 $as_echo_n "(cached) " >&6
2508else 3772else
2509 cat >conftest.$ac_ext <<_ACEOF
2510/* confdefs.h. */
2511_ACEOF
2512cat confdefs.h >>conftest.$ac_ext 3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513cat >>conftest.$ac_ext <<_ACEOF
2514/* end confdefs.h. */ 3774/* end confdefs.h. */
2515 3775
2516int 3776int
2517main () 3777main ()
2518{ 3778{
2522 3782
2523 ; 3783 ;
2524 return 0; 3784 return 0;
2525} 3785}
2526_ACEOF 3786_ACEOF
2527rm -f conftest.$ac_objext 3787if ac_fn_cxx_try_compile "$LINENO"; then :
2528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>conftest.er1
2530 ac_status=$?
2531 grep -v '^ *+' conftest.er1 >conftest.err
2532 rm -f conftest.er1
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 ac_compiler_gnu=yes 3788 ac_compiler_gnu=yes
2549else 3789else
2550 echo "$as_me: failed program was:" >&5
2551sed 's/^/| /' conftest.$ac_ext >&5
2552
2553ac_compiler_gnu=no 3790 ac_compiler_gnu=no
2554fi 3791fi
2555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3793ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2557 3794
2558fi 3795fi
2559echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2560echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3797$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2561GXX=`test $ac_compiler_gnu = yes && echo yes` 3798if test $ac_compiler_gnu = yes; then
3799 GXX=yes
3800else
3801 GXX=
3802fi
2562ac_test_CXXFLAGS=${CXXFLAGS+set} 3803ac_test_CXXFLAGS=${CXXFLAGS+set}
2563ac_save_CXXFLAGS=$CXXFLAGS 3804ac_save_CXXFLAGS=$CXXFLAGS
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3806$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3807if ${ac_cv_prog_cxx_g+:} false; then :
3808 $as_echo_n "(cached) " >&6
3809else
3810 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3811 ac_cxx_werror_flag=yes
3812 ac_cv_prog_cxx_g=no
2564CXXFLAGS="-g" 3813 CXXFLAGS="-g"
2565echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2566echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2567if test "${ac_cv_prog_cxx_g+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569else
2570 cat >conftest.$ac_ext <<_ACEOF
2571/* confdefs.h. */
2572_ACEOF
2573cat confdefs.h >>conftest.$ac_ext 3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574cat >>conftest.$ac_ext <<_ACEOF
2575/* end confdefs.h. */ 3815/* end confdefs.h. */
2576 3816
2577int 3817int
2578main () 3818main ()
2579{ 3819{
2580 3820
2581 ; 3821 ;
2582 return 0; 3822 return 0;
2583} 3823}
2584_ACEOF 3824_ACEOF
2585rm -f conftest.$ac_objext 3825if ac_fn_cxx_try_compile "$LINENO"; then :
2586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587 (eval $ac_compile) 2>conftest.er1
2588 ac_status=$?
2589 grep -v '^ *+' conftest.er1 >conftest.err
2590 rm -f conftest.er1
2591 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } &&
2594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; } &&
2600 { ac_try='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 (eval $ac_try) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 ac_cv_prog_cxx_g=yes 3826 ac_cv_prog_cxx_g=yes
2607else 3827else
2608 echo "$as_me: failed program was:" >&5 3828 CXXFLAGS=""
2609sed 's/^/| /' conftest.$ac_ext >&5 3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830/* end confdefs.h. */
2610 3831
3832int
3833main ()
3834{
3835
3836 ;
3837 return 0;
3838}
3839_ACEOF
3840if ac_fn_cxx_try_compile "$LINENO"; then :
3841
3842else
3843 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3844 CXXFLAGS="-g"
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846/* end confdefs.h. */
3847
3848int
3849main ()
3850{
3851
3852 ;
3853 return 0;
3854}
3855_ACEOF
3856if ac_fn_cxx_try_compile "$LINENO"; then :
2611ac_cv_prog_cxx_g=no 3857 ac_cv_prog_cxx_g=yes
2612fi 3858fi
2613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614fi 3860fi
3861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862fi
3863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3865fi
2615echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2616echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3867$as_echo "$ac_cv_prog_cxx_g" >&6; }
2617if test "$ac_test_CXXFLAGS" = set; then 3868if test "$ac_test_CXXFLAGS" = set; then
2618 CXXFLAGS=$ac_save_CXXFLAGS 3869 CXXFLAGS=$ac_save_CXXFLAGS
2619elif test $ac_cv_prog_cxx_g = yes; then 3870elif test $ac_cv_prog_cxx_g = yes; then
2620 if test "$GXX" = yes; then 3871 if test "$GXX" = yes; then
2621 CXXFLAGS="-g -O2" 3872 CXXFLAGS="-g -O2"
2627 CXXFLAGS="-O2" 3878 CXXFLAGS="-O2"
2628 else 3879 else
2629 CXXFLAGS= 3880 CXXFLAGS=
2630 fi 3881 fi
2631fi 3882fi
2632for ac_declaration in \
2633 '' \
2634 'extern "C" void std::exit (int) throw (); using std::exit;' \
2635 'extern "C" void std::exit (int); using std::exit;' \
2636 'extern "C" void exit (int) throw ();' \
2637 'extern "C" void exit (int);' \
2638 'void exit (int);'
2639do
2640 cat >conftest.$ac_ext <<_ACEOF
2641/* confdefs.h. */
2642_ACEOF
2643cat confdefs.h >>conftest.$ac_ext
2644cat >>conftest.$ac_ext <<_ACEOF
2645/* end confdefs.h. */
2646$ac_declaration
2647#include <stdlib.h>
2648int
2649main ()
2650{
2651exit (42);
2652 ;
2653 return 0;
2654}
2655_ACEOF
2656rm -f conftest.$ac_objext
2657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 :
2678else
2679 echo "$as_me: failed program was:" >&5
2680sed 's/^/| /' conftest.$ac_ext >&5
2681
2682continue
2683fi
2684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 cat >conftest.$ac_ext <<_ACEOF
2686/* confdefs.h. */
2687_ACEOF
2688cat confdefs.h >>conftest.$ac_ext
2689cat >>conftest.$ac_ext <<_ACEOF
2690/* end confdefs.h. */
2691$ac_declaration
2692int
2693main ()
2694{
2695exit (42);
2696 ;
2697 return 0;
2698}
2699_ACEOF
2700rm -f conftest.$ac_objext
2701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
2703 ac_status=$?
2704 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 (eval $ac_try) 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; } &&
2715 { ac_try='test -s conftest.$ac_objext'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 (eval $ac_try) 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; }; then
2721 break
2722else
2723 echo "$as_me: failed program was:" >&5
2724sed 's/^/| /' conftest.$ac_ext >&5
2725
2726fi
2727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728done
2729rm -f conftest*
2730if test -n "$ac_declaration"; then
2731 echo '#ifdef __cplusplus' >>confdefs.h
2732 echo $ac_declaration >>confdefs.h
2733 echo '#endif' >>confdefs.h
2734fi
2735
2736ac_ext=c
2737ac_cpp='$CPP $CPPFLAGS'
2738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741
2742ac_ext=c
2743ac_cpp='$CPP $CPPFLAGS'
2744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2748echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2749# On Suns, sometimes $CPP names a directory.
2750if test -n "$CPP" && test -d "$CPP"; then
2751 CPP=
2752fi
2753if test -z "$CPP"; then
2754 if test "${ac_cv_prog_CPP+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2756else
2757 # Double quotes because CPP needs to be expanded
2758 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2759 do
2760 ac_preproc_ok=false
2761for ac_c_preproc_warn_flag in '' yes
2762do
2763 # Use a header file that comes with gcc, so configuring glibc
2764 # with a fresh cross-compiler works.
2765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2766 # <limits.h> exists even on freestanding compilers.
2767 # On the NeXT, cc -E runs the code through the compiler's parser,
2768 # not just through cpp. "Syntax error" is here to catch this case.
2769 cat >conftest.$ac_ext <<_ACEOF
2770/* confdefs.h. */
2771_ACEOF
2772cat confdefs.h >>conftest.$ac_ext
2773cat >>conftest.$ac_ext <<_ACEOF
2774/* end confdefs.h. */
2775#ifdef __STDC__
2776# include <limits.h>
2777#else
2778# include <assert.h>
2779#endif
2780 Syntax error
2781_ACEOF
2782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2784 ac_status=$?
2785 grep -v '^ *+' conftest.er1 >conftest.err
2786 rm -f conftest.er1
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } >/dev/null; then
2790 if test -s conftest.err; then
2791 ac_cpp_err=$ac_c_preproc_warn_flag
2792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2793 else
2794 ac_cpp_err=
2795 fi
2796else
2797 ac_cpp_err=yes
2798fi
2799if test -z "$ac_cpp_err"; then
2800 :
2801else
2802 echo "$as_me: failed program was:" >&5
2803sed 's/^/| /' conftest.$ac_ext >&5
2804
2805 # Broken: fails on valid input.
2806continue
2807fi
2808rm -f conftest.err conftest.$ac_ext
2809
2810 # OK, works on sane cases. Now check whether non-existent headers
2811 # can be detected and how.
2812 cat >conftest.$ac_ext <<_ACEOF
2813/* confdefs.h. */
2814_ACEOF
2815cat confdefs.h >>conftest.$ac_ext
2816cat >>conftest.$ac_ext <<_ACEOF
2817/* end confdefs.h. */
2818#include <ac_nonexistent.h>
2819_ACEOF
2820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2822 ac_status=$?
2823 grep -v '^ *+' conftest.er1 >conftest.err
2824 rm -f conftest.er1
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } >/dev/null; then
2828 if test -s conftest.err; then
2829 ac_cpp_err=$ac_c_preproc_warn_flag
2830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2831 else
2832 ac_cpp_err=
2833 fi
2834else
2835 ac_cpp_err=yes
2836fi
2837if test -z "$ac_cpp_err"; then
2838 # Broken: success on invalid input.
2839continue
2840else
2841 echo "$as_me: failed program was:" >&5
2842sed 's/^/| /' conftest.$ac_ext >&5
2843
2844 # Passes both tests.
2845ac_preproc_ok=:
2846break
2847fi
2848rm -f conftest.err conftest.$ac_ext
2849
2850done
2851# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2852rm -f conftest.err conftest.$ac_ext
2853if $ac_preproc_ok; then
2854 break
2855fi
2856
2857 done
2858 ac_cv_prog_CPP=$CPP
2859
2860fi
2861 CPP=$ac_cv_prog_CPP
2862else
2863 ac_cv_prog_CPP=$CPP
2864fi
2865echo "$as_me:$LINENO: result: $CPP" >&5
2866echo "${ECHO_T}$CPP" >&6
2867ac_preproc_ok=false
2868for ac_c_preproc_warn_flag in '' yes
2869do
2870 # Use a header file that comes with gcc, so configuring glibc
2871 # with a fresh cross-compiler works.
2872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2873 # <limits.h> exists even on freestanding compilers.
2874 # On the NeXT, cc -E runs the code through the compiler's parser,
2875 # not just through cpp. "Syntax error" is here to catch this case.
2876 cat >conftest.$ac_ext <<_ACEOF
2877/* confdefs.h. */
2878_ACEOF
2879cat confdefs.h >>conftest.$ac_ext
2880cat >>conftest.$ac_ext <<_ACEOF
2881/* end confdefs.h. */
2882#ifdef __STDC__
2883# include <limits.h>
2884#else
2885# include <assert.h>
2886#endif
2887 Syntax error
2888_ACEOF
2889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2891 ac_status=$?
2892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } >/dev/null; then
2897 if test -s conftest.err; then
2898 ac_cpp_err=$ac_c_preproc_warn_flag
2899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2900 else
2901 ac_cpp_err=
2902 fi
2903else
2904 ac_cpp_err=yes
2905fi
2906if test -z "$ac_cpp_err"; then
2907 :
2908else
2909 echo "$as_me: failed program was:" >&5
2910sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 # Broken: fails on valid input.
2913continue
2914fi
2915rm -f conftest.err conftest.$ac_ext
2916
2917 # OK, works on sane cases. Now check whether non-existent headers
2918 # can be detected and how.
2919 cat >conftest.$ac_ext <<_ACEOF
2920/* confdefs.h. */
2921_ACEOF
2922cat confdefs.h >>conftest.$ac_ext
2923cat >>conftest.$ac_ext <<_ACEOF
2924/* end confdefs.h. */
2925#include <ac_nonexistent.h>
2926_ACEOF
2927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } >/dev/null; then
2935 if test -s conftest.err; then
2936 ac_cpp_err=$ac_c_preproc_warn_flag
2937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2938 else
2939 ac_cpp_err=
2940 fi
2941else
2942 ac_cpp_err=yes
2943fi
2944if test -z "$ac_cpp_err"; then
2945 # Broken: success on invalid input.
2946continue
2947else
2948 echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 # Passes both tests.
2952ac_preproc_ok=:
2953break
2954fi
2955rm -f conftest.err conftest.$ac_ext
2956
2957done
2958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2959rm -f conftest.err conftest.$ac_ext
2960if $ac_preproc_ok; then
2961 :
2962else
2963 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2964See \`config.log' for more details." >&5
2965echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2966See \`config.log' for more details." >&2;}
2967 { (exit 1); exit 1; }; }
2968fi
2969
2970ac_ext=c 3883ac_ext=c
2971ac_cpp='$CPP $CPPFLAGS' 3884ac_cpp='$CPP $CPPFLAGS'
2972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974ac_compiler_gnu=$ac_cv_c_compiler_gnu 3887ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3897# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2985# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3898# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2986# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3899# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2987# OS/2's system install, which has a completely different semantic 3900# OS/2's system install, which has a completely different semantic
2988# ./install, which can be erroneously created by make from ./install.sh. 3901# ./install, which can be erroneously created by make from ./install.sh.
3902# Reject install programs that cannot install multiple files.
2989echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2990echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3904$as_echo_n "checking for a BSD-compatible install... " >&6; }
2991if test -z "$INSTALL"; then 3905if test -z "$INSTALL"; then
2992if test "${ac_cv_path_install+set}" = set; then 3906if ${ac_cv_path_install+:} false; then :
2993 echo $ECHO_N "(cached) $ECHO_C" >&6 3907 $as_echo_n "(cached) " >&6
2994else 3908else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996for as_dir in $PATH 3910for as_dir in $PATH
2997do 3911do
2998 IFS=$as_save_IFS 3912 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=. 3913 test -z "$as_dir" && as_dir=.
3000 # Account for people who put trailing slashes in PATH elements. 3914 # Account for people who put trailing slashes in PATH elements.
3001case $as_dir/ in 3915case $as_dir/ in #((
3002 ./ | .// | /cC/* | \ 3916 ./ | .// | /[cC]/* | \
3003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3917 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3918 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3005 /usr/ucb/* ) ;; 3919 /usr/ucb/* ) ;;
3006 *) 3920 *)
3007 # OSF1 and SCO ODT 3.0 have their own names for install. 3921 # OSF1 and SCO ODT 3.0 have their own names for install.
3008 # Don't use installbsd from OSF since it installs stuff as root 3922 # Don't use installbsd from OSF since it installs stuff as root
3009 # by default. 3923 # by default.
3010 for ac_prog in ginstall scoinst install; do 3924 for ac_prog in ginstall scoinst install; do
3011 for ac_exec_ext in '' $ac_executable_extensions; do 3925 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3926 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3013 if test $ac_prog = install && 3927 if test $ac_prog = install &&
3014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3928 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3015 # AIX install. It has an incompatible calling convention. 3929 # AIX install. It has an incompatible calling convention.
3016 : 3930 :
3017 elif test $ac_prog = install && 3931 elif test $ac_prog = install &&
3018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3932 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3019 # program-specific install script used by HP pwplus--don't use. 3933 # program-specific install script used by HP pwplus--don't use.
3020 : 3934 :
3021 else 3935 else
3936 rm -rf conftest.one conftest.two conftest.dir
3937 echo one > conftest.one
3938 echo two > conftest.two
3939 mkdir conftest.dir
3940 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3941 test -s conftest.one && test -s conftest.two &&
3942 test -s conftest.dir/conftest.one &&
3943 test -s conftest.dir/conftest.two
3944 then
3022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3945 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3023 break 3 3946 break 3
3947 fi
3024 fi 3948 fi
3025 fi 3949 fi
3026 done 3950 done
3027 done 3951 done
3028 ;; 3952 ;;
3029esac 3953esac
3954
3030done 3955 done
3956IFS=$as_save_IFS
3031 3957
3958rm -rf conftest.one conftest.two conftest.dir
3032 3959
3033fi 3960fi
3034 if test "${ac_cv_path_install+set}" = set; then 3961 if test "${ac_cv_path_install+set}" = set; then
3035 INSTALL=$ac_cv_path_install 3962 INSTALL=$ac_cv_path_install
3036 else 3963 else
3037 # As a last resort, use the slow shell script. We don't cache a 3964 # As a last resort, use the slow shell script. Don't cache a
3038 # path for INSTALL within a source directory, because that will 3965 # value for INSTALL within a source directory, because that will
3039 # break other packages using the cache if that directory is 3966 # break other packages using the cache if that directory is
3040 # removed, or if the path is relative. 3967 # removed, or if the value is a relative name.
3041 INSTALL=$ac_install_sh 3968 INSTALL=$ac_install_sh
3042 fi 3969 fi
3043fi 3970fi
3044echo "$as_me:$LINENO: result: $INSTALL" >&5 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3045echo "${ECHO_T}$INSTALL" >&6 3972$as_echo "$INSTALL" >&6; }
3046 3973
3047# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3974# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3048# It thinks the first close brace ends the variable substitution. 3975# It thinks the first close brace ends the variable substitution.
3049test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3976test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3050 3977
3051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3978test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3052 3979
3053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3980test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3054 3981
3055for ac_prog in gawk mawk nawk awk
3056do
3057 # Extract the first word of "$ac_prog", so it can be a program name with args.
3058set dummy $ac_prog; ac_word=$2
3059echo "$as_me:$LINENO: checking for $ac_word" >&5
3060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061if test "${ac_cv_prog_AWK+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
3064 if test -n "$AWK"; then
3065 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3066else
3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068for as_dir in $PATH
3069do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_AWK="$ac_prog"
3075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3077 fi
3078done
3079done
3080
3081fi
3082fi
3083AWK=$ac_cv_prog_AWK
3084if test -n "$AWK"; then
3085 echo "$as_me:$LINENO: result: $AWK" >&5
3086echo "${ECHO_T}$AWK" >&6
3087else
3088 echo "$as_me:$LINENO: result: no" >&5
3089echo "${ECHO_T}no" >&6
3090fi
3091
3092 test -n "$AWK" && break
3093done
3094 3982
3095 3983
3096ac_ext=c 3984ac_ext=c
3097ac_cpp='$CPP $CPPFLAGS' 3985ac_cpp='$CPP $CPPFLAGS'
3098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100ac_compiler_gnu=$ac_cv_c_compiler_gnu 3988ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101 3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3102 3990$as_echo_n "checking how to run the C preprocessor... " >&6; }
3991# On Suns, sometimes $CPP names a directory.
3992if test -n "$CPP" && test -d "$CPP"; then
3993 CPP=
3994fi
3103if test -z "$orig_CXXFLAGS"; then 3995if test -z "$CPP"; then
3104 CXXFLAGS='-O' 3996 if ${ac_cv_prog_CPP+:} false; then :
3105 if test x$GCC = xyes && test "x$GXX" = xyes; then 3997 $as_echo_n "(cached) " >&6
3106 CXXFLAGS="-g -O3"
3107 fi
3108 CFLAGS="$CXXFLAGS"
3109fi
3110
3111LINKER="$CXX"
3112if test x$GCC = xyes && test x$GXX = xyes; then
3113
3114echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3115echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3116if test "${ac_cv_lib_supcpp_main+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118else 3998else
3119 ac_check_lib_save_LIBS=$LIBS 3999 # Double quotes because CPP needs to be expanded
3120LIBS="-lsupc++ $LIBS" 4000 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3121cat >conftest.$ac_ext <<_ACEOF 4001 do
3122/* confdefs.h. */ 4002 ac_preproc_ok=false
3123_ACEOF 4003for ac_c_preproc_warn_flag in '' yes
4004do
4005 # Use a header file that comes with gcc, so configuring glibc
4006 # with a fresh cross-compiler works.
4007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4008 # <limits.h> exists even on freestanding compilers.
4009 # On the NeXT, cc -E runs the code through the compiler's parser,
4010 # not just through cpp. "Syntax error" is here to catch this case.
3124cat confdefs.h >>conftest.$ac_ext 4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h. */ 4012/* end confdefs.h. */
4013#ifdef __STDC__
4014# include <limits.h>
4015#else
4016# include <assert.h>
4017#endif
4018 Syntax error
4019_ACEOF
4020if ac_fn_c_try_cpp "$LINENO"; then :
3127 4021
4022else
4023 # Broken: fails on valid input.
4024continue
4025fi
4026rm -f conftest.err conftest.i conftest.$ac_ext
4027
4028 # OK, works on sane cases. Now check whether nonexistent headers
4029 # can be detected and how.
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h. */
4032#include <ac_nonexistent.h>
4033_ACEOF
4034if ac_fn_c_try_cpp "$LINENO"; then :
4035 # Broken: success on invalid input.
4036continue
4037else
4038 # Passes both tests.
4039ac_preproc_ok=:
4040break
4041fi
4042rm -f conftest.err conftest.i conftest.$ac_ext
4043
4044done
4045# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4046rm -f conftest.i conftest.err conftest.$ac_ext
4047if $ac_preproc_ok; then :
4048 break
4049fi
4050
4051 done
4052 ac_cv_prog_CPP=$CPP
4053
4054fi
4055 CPP=$ac_cv_prog_CPP
4056else
4057 ac_cv_prog_CPP=$CPP
4058fi
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4060$as_echo "$CPP" >&6; }
4061ac_preproc_ok=false
4062for ac_c_preproc_warn_flag in '' yes
4063do
4064 # Use a header file that comes with gcc, so configuring glibc
4065 # with a fresh cross-compiler works.
4066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4067 # <limits.h> exists even on freestanding compilers.
4068 # On the NeXT, cc -E runs the code through the compiler's parser,
4069 # not just through cpp. "Syntax error" is here to catch this case.
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071/* end confdefs.h. */
4072#ifdef __STDC__
4073# include <limits.h>
4074#else
4075# include <assert.h>
4076#endif
4077 Syntax error
4078_ACEOF
4079if ac_fn_c_try_cpp "$LINENO"; then :
4080
4081else
4082 # Broken: fails on valid input.
4083continue
4084fi
4085rm -f conftest.err conftest.i conftest.$ac_ext
4086
4087 # OK, works on sane cases. Now check whether nonexistent headers
4088 # can be detected and how.
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090/* end confdefs.h. */
4091#include <ac_nonexistent.h>
4092_ACEOF
4093if ac_fn_c_try_cpp "$LINENO"; then :
4094 # Broken: success on invalid input.
4095continue
4096else
4097 # Passes both tests.
4098ac_preproc_ok=:
4099break
4100fi
4101rm -f conftest.err conftest.i conftest.$ac_ext
4102
4103done
4104# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4105rm -f conftest.i conftest.err conftest.$ac_ext
4106if $ac_preproc_ok; then :
4107
4108else
4109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4112See \`config.log' for more details" "$LINENO" 5; }
4113fi
4114
4115ac_ext=c
4116ac_cpp='$CPP $CPPFLAGS'
4117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120
4121
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4123$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4124if ${ac_cv_path_GREP+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126else
4127 if test -z "$GREP"; then
4128 ac_path_GREP_found=false
4129 # Loop through the user's path and test for each of PROGNAME-LIST
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4132do
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_prog in grep ggrep; do
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4138 as_fn_executable_p "$ac_path_GREP" || continue
4139# Check for GNU ac_path_GREP and select it if it is found.
4140 # Check for GNU $ac_path_GREP
4141case `"$ac_path_GREP" --version 2>&1` in
4142*GNU*)
4143 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4144*)
4145 ac_count=0
4146 $as_echo_n 0123456789 >"conftest.in"
4147 while :
4148 do
4149 cat "conftest.in" "conftest.in" >"conftest.tmp"
4150 mv "conftest.tmp" "conftest.in"
4151 cp "conftest.in" "conftest.nl"
4152 $as_echo 'GREP' >> "conftest.nl"
4153 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155 as_fn_arith $ac_count + 1 && ac_count=$as_val
4156 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4157 # Best one so far, save it but keep looking for a better one
4158 ac_cv_path_GREP="$ac_path_GREP"
4159 ac_path_GREP_max=$ac_count
4160 fi
4161 # 10*(2^10) chars as input seems more than enough
4162 test $ac_count -gt 10 && break
4163 done
4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4165esac
4166
4167 $ac_path_GREP_found && break 3
4168 done
4169 done
4170 done
4171IFS=$as_save_IFS
4172 if test -z "$ac_cv_path_GREP"; then
4173 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4174 fi
4175else
4176 ac_cv_path_GREP=$GREP
4177fi
4178
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4181$as_echo "$ac_cv_path_GREP" >&6; }
4182 GREP="$ac_cv_path_GREP"
4183
4184
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4186$as_echo_n "checking for egrep... " >&6; }
4187if ${ac_cv_path_EGREP+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189else
4190 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4191 then ac_cv_path_EGREP="$GREP -E"
4192 else
4193 if test -z "$EGREP"; then
4194 ac_path_EGREP_found=false
4195 # Loop through the user's path and test for each of PROGNAME-LIST
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4198do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_prog in egrep; do
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4204 as_fn_executable_p "$ac_path_EGREP" || continue
4205# Check for GNU ac_path_EGREP and select it if it is found.
4206 # Check for GNU $ac_path_EGREP
4207case `"$ac_path_EGREP" --version 2>&1` in
4208*GNU*)
4209 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4210*)
4211 ac_count=0
4212 $as_echo_n 0123456789 >"conftest.in"
4213 while :
4214 do
4215 cat "conftest.in" "conftest.in" >"conftest.tmp"
4216 mv "conftest.tmp" "conftest.in"
4217 cp "conftest.in" "conftest.nl"
4218 $as_echo 'EGREP' >> "conftest.nl"
4219 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4221 as_fn_arith $ac_count + 1 && ac_count=$as_val
4222 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4223 # Best one so far, save it but keep looking for a better one
4224 ac_cv_path_EGREP="$ac_path_EGREP"
4225 ac_path_EGREP_max=$ac_count
4226 fi
4227 # 10*(2^10) chars as input seems more than enough
4228 test $ac_count -gt 10 && break
4229 done
4230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4231esac
4232
4233 $ac_path_EGREP_found && break 3
4234 done
4235 done
4236 done
4237IFS=$as_save_IFS
4238 if test -z "$ac_cv_path_EGREP"; then
4239 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4240 fi
4241else
4242 ac_cv_path_EGREP=$EGREP
4243fi
4244
4245 fi
4246fi
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4248$as_echo "$ac_cv_path_EGREP" >&6; }
4249 EGREP="$ac_cv_path_EGREP"
4250
4251
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4253$as_echo_n "checking for ANSI C header files... " >&6; }
4254if ${ac_cv_header_stdc+:} false; then :
4255 $as_echo_n "(cached) " >&6
4256else
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258/* end confdefs.h. */
4259#include <stdlib.h>
4260#include <stdarg.h>
4261#include <string.h>
4262#include <float.h>
3128 4263
3129int 4264int
3130main () 4265main ()
3131{ 4266{
3132main (); 4267
3133 ; 4268 ;
3134 return 0; 4269 return 0;
3135} 4270}
3136_ACEOF 4271_ACEOF
4272if ac_fn_c_try_compile "$LINENO"; then :
4273 ac_cv_header_stdc=yes
4274else
4275 ac_cv_header_stdc=no
4276fi
3137rm -f conftest.$ac_objext conftest$ac_exeext 4277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4278
3139 (eval $ac_link) 2>conftest.er1 4279if test $ac_cv_header_stdc = yes; then
3140 ac_status=$? 4280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3141 grep -v '^ *+' conftest.er1 >conftest.err 4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h. */
4283#include <string.h>
4284
4285_ACEOF
4286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4287 $EGREP "memchr" >/dev/null 2>&1; then :
4288
4289else
4290 ac_cv_header_stdc=no
4291fi
3142 rm -f conftest.er1 4292rm -f conftest*
3143 cat conftest.err >&5 4293
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4294fi
3145 (exit $ac_status); } && 4295
3146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4296if test $ac_cv_header_stdc = yes; then
3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3148 (eval $ac_try) 2>&5 4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149 ac_status=$? 4299/* end confdefs.h. */
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4300#include <stdlib.h>
3151 (exit $ac_status); }; } && 4301
3152 { ac_try='test -s conftest$ac_exeext' 4302_ACEOF
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154 (eval $ac_try) 2>&5 4304 $EGREP "free" >/dev/null 2>&1; then :
3155 ac_status=$? 4305
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4306else
3157 (exit $ac_status); }; }; then 4307 ac_cv_header_stdc=no
3158 ac_cv_lib_supcpp_main=yes 4308fi
4309rm -f conftest*
4310
4311fi
4312
4313if test $ac_cv_header_stdc = yes; then
4314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4315 if test "$cross_compiling" = yes; then :
4316 :
4317else
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319/* end confdefs.h. */
4320#include <ctype.h>
4321#include <stdlib.h>
4322#if ((' ' & 0x0FF) == 0x020)
4323# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4324# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3159else 4325#else
3160 echo "$as_me: failed program was:" >&5 4326# define ISLOWER(c) \
3161sed 's/^/| /' conftest.$ac_ext >&5 4327 (('a' <= (c) && (c) <= 'i') \
4328 || ('j' <= (c) && (c) <= 'r') \
4329 || ('s' <= (c) && (c) <= 'z'))
4330# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4331#endif
3162 4332
3163ac_cv_lib_supcpp_main=no 4333#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4334int
4335main ()
4336{
4337 int i;
4338 for (i = 0; i < 256; i++)
4339 if (XOR (islower (i), ISLOWER (i))
4340 || toupper (i) != TOUPPER (i))
4341 return 2;
4342 return 0;
4343}
4344_ACEOF
4345if ac_fn_c_try_run "$LINENO"; then :
4346
4347else
4348 ac_cv_header_stdc=no
3164fi 4349fi
3165rm -f conftest.err conftest.$ac_objext \ 4350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3166 conftest$ac_exeext conftest.$ac_ext 4351 conftest.$ac_objext conftest.beam conftest.$ac_ext
3167LIBS=$ac_check_lib_save_LIBS
3168fi 4352fi
3169echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5 4353
3170echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6 4354fi
4355fi
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4357$as_echo "$ac_cv_header_stdc" >&6; }
3171if test $ac_cv_lib_supcpp_main = yes; then 4358if test $ac_cv_header_stdc = yes; then
3172 4359
3173 LINKER="$CC" 4360$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3174 LIBS="$LIBS -lsupc++"
3175 4361
3176fi 4362fi
3177 4363
3178fi 4364# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3179LINKER=$LINKER 4365for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3180 4366 inttypes.h stdint.h unistd.h
3181 4367do :
3182 4368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4369ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4370"
4371if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3183cat >>confdefs.h <<\_ACEOF 4372 cat >>confdefs.h <<_ACEOF
3184#define _GNU_SOURCE 1 4373#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3185_ACEOF 4374_ACEOF
3186 4375
4376fi
3187 4377
3188case $host in 4378done
3189 *-*-solaris* )
3190 4379
3191cat >>confdefs.h <<\_ACEOF
3192#define _XOPEN_SOURCE_EXTENDED 1
3193_ACEOF
3194 4380
3195 4381
3196cat >>confdefs.h <<\_ACEOF 4382 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3197#define _XOPEN_SOURCE 2 4383if test "x$ac_cv_header_minix_config_h" = xyes; then :
3198_ACEOF 4384 MINIX=yes
4385else
4386 MINIX=
4387fi
3199 4388
3200 4389
3201cat >>confdefs.h <<\_ACEOF 4390 if test "$MINIX" = yes; then
4391
4392$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4393
4394
4395$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4396
4397
4398$as_echo "#define _MINIX 1" >>confdefs.h
4399
4400 fi
4401
4402
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4404$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4405if ${ac_cv_safe_to_define___extensions__+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407else
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409/* end confdefs.h. */
4410
3202#define __EXTENSIONS__ 1 4411# define __EXTENSIONS__ 1
3203_ACEOF 4412 $ac_includes_default
4413int
4414main ()
4415{
3204 4416
3205 ;; 4417 ;
3206esac 4418 return 0;
4419}
4420_ACEOF
4421if ac_fn_c_try_compile "$LINENO"; then :
4422 ac_cv_safe_to_define___extensions__=yes
4423else
4424 ac_cv_safe_to_define___extensions__=no
4425fi
4426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427fi
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4429$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4430 test $ac_cv_safe_to_define___extensions__ = yes &&
4431 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3207 4432
4433 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3208 4434
4435 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4436
4437 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4438
4439 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4440
4441
4442
4443
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4445$as_echo_n "checking for library containing strerror... " >&6; }
4446if ${ac_cv_search_strerror+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448else
4449 ac_func_search_save_LIBS=$LIBS
4450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451/* end confdefs.h. */
4452
4453/* Override any GCC internal prototype to avoid an error.
4454 Use char because int might match the return type of a GCC
4455 builtin and then its argument prototype would still apply. */
4456#ifdef __cplusplus
4457extern "C"
4458#endif
4459char strerror ();
4460int
4461main ()
4462{
4463return strerror ();
4464 ;
4465 return 0;
4466}
4467_ACEOF
4468for ac_lib in '' cposix; do
4469 if test -z "$ac_lib"; then
4470 ac_res="none required"
4471 else
4472 ac_res=-l$ac_lib
4473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4474 fi
4475 if ac_fn_c_try_link "$LINENO"; then :
4476 ac_cv_search_strerror=$ac_res
4477fi
4478rm -f core conftest.err conftest.$ac_objext \
4479 conftest$ac_exeext
4480 if ${ac_cv_search_strerror+:} false; then :
4481 break
4482fi
4483done
4484if ${ac_cv_search_strerror+:} false; then :
4485
4486else
4487 ac_cv_search_strerror=no
4488fi
4489rm conftest.$ac_ext
4490LIBS=$ac_func_search_save_LIBS
4491fi
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4493$as_echo "$ac_cv_search_strerror" >&6; }
4494ac_res=$ac_cv_search_strerror
4495if test "$ac_res" != no; then :
4496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4497
4498fi
4499
3209ac_ext=cc 4500ac_ext=cpp
3210ac_cpp='$CXXCPP $CPPFLAGS' 4501ac_cpp='$CXXCPP $CPPFLAGS'
3211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3214 4505
3215 4506
4507LINKER="$CXX"
4508if test x$GCC = xyes && test x$GXX = xyes; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
4510$as_echo_n "checking for working libsupc++... " >&6; }
4511 save_CXX="$CXX"
4512 save_LIBS="$LIBS"
4513 CXX="$CC"
4514 LIBS="$LIBS -lsupc++"
3216 4515
4516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517/* end confdefs.h. */
4518struct test { }; void f() try { throw new test; } catch (...) { throw; }
4519int
4520main ()
4521{
4522
4523 ;
4524 return 0;
4525}
4526_ACEOF
4527if ac_fn_cxx_try_link "$LINENO"; then :
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4529$as_echo "ok" >&6; }
4530 LINKER="$CC"
4531else
4532
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
4534$as_echo "no, making everything bigger and slower" >&6; }
4535 LIBS="$save_LIBS"
4536
4537
4538fi
4539rm -f core conftest.err conftest.$ac_objext \
4540 conftest$ac_exeext conftest.$ac_ext
4541 CXX="$save_CXX"
4542fi
4543LINKER=$LINKER
4544
4545
4546if test -z "$orig_CXXFLAGS"; then
4547 if test x$GCC = xyes && test "x$GXX" = xyes; then
4548 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550/* end confdefs.h. */
4551
4552int
4553main ()
4554{
4555
4556 ;
4557 return 0;
4558}
4559_ACEOF
4560if ac_fn_cxx_try_compile "$LINENO"; then :
4561
4562else
4563 CXXFLAGS="-g -O3"
4564fi
4565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 else
4567 CXXFLAGS="-O"
4568 fi
4569 CFLAGS="$CXXFLAGS"
4570fi
4571
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
4573$as_echo_n "checking for library containing setlocale... " >&6; }
4574if ${ac_cv_search_setlocale+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576else
4577 ac_func_search_save_LIBS=$LIBS
4578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579/* end confdefs.h. */
4580
4581/* Override any GCC internal prototype to avoid an error.
4582 Use char because int might match the return type of a GCC
4583 builtin and then its argument prototype would still apply. */
4584#ifdef __cplusplus
4585extern "C"
4586#endif
4587char setlocale ();
4588int
4589main ()
4590{
4591return setlocale ();
4592 ;
4593 return 0;
4594}
4595_ACEOF
4596for ac_lib in '' xpg4; do
4597 if test -z "$ac_lib"; then
4598 ac_res="none required"
4599 else
4600 ac_res=-l$ac_lib
4601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4602 fi
4603 if ac_fn_cxx_try_link "$LINENO"; then :
4604 ac_cv_search_setlocale=$ac_res
4605fi
4606rm -f core conftest.err conftest.$ac_objext \
4607 conftest$ac_exeext
4608 if ${ac_cv_search_setlocale+:} false; then :
4609 break
4610fi
4611done
4612if ${ac_cv_search_setlocale+:} false; then :
4613
4614else
4615 ac_cv_search_setlocale=no
4616fi
4617rm conftest.$ac_ext
4618LIBS=$ac_func_search_save_LIBS
4619fi
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5
4621$as_echo "$ac_cv_search_setlocale" >&6; }
4622ac_res=$ac_cv_search_setlocale
4623if test "$ac_res" != no; then :
4624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4625
4626fi
4627
4628
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4630$as_echo_n "checking for library containing gethostbyname... " >&6; }
4631if ${ac_cv_search_gethostbyname+:} false; then :
4632 $as_echo_n "(cached) " >&6
4633else
4634 ac_func_search_save_LIBS=$LIBS
4635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636/* end confdefs.h. */
4637
4638/* Override any GCC internal prototype to avoid an error.
4639 Use char because int might match the return type of a GCC
4640 builtin and then its argument prototype would still apply. */
4641#ifdef __cplusplus
4642extern "C"
4643#endif
4644char gethostbyname ();
4645int
4646main ()
4647{
4648return gethostbyname ();
4649 ;
4650 return 0;
4651}
4652_ACEOF
4653for ac_lib in '' nsl; do
4654 if test -z "$ac_lib"; then
4655 ac_res="none required"
4656 else
4657 ac_res=-l$ac_lib
4658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4659 fi
4660 if ac_fn_cxx_try_link "$LINENO"; then :
4661 ac_cv_search_gethostbyname=$ac_res
4662fi
4663rm -f core conftest.err conftest.$ac_objext \
4664 conftest$ac_exeext
4665 if ${ac_cv_search_gethostbyname+:} false; then :
4666 break
4667fi
4668done
4669if ${ac_cv_search_gethostbyname+:} false; then :
4670
4671else
4672 ac_cv_search_gethostbyname=no
4673fi
4674rm conftest.$ac_ext
4675LIBS=$ac_func_search_save_LIBS
4676fi
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4678$as_echo "$ac_cv_search_gethostbyname" >&6; }
4679ac_res=$ac_cv_search_gethostbyname
4680if test "$ac_res" != no; then :
4681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4682
4683fi
4684
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4686$as_echo_n "checking for library containing socket... " >&6; }
4687if ${ac_cv_search_socket+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689else
4690 ac_func_search_save_LIBS=$LIBS
4691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692/* end confdefs.h. */
4693
4694/* Override any GCC internal prototype to avoid an error.
4695 Use char because int might match the return type of a GCC
4696 builtin and then its argument prototype would still apply. */
4697#ifdef __cplusplus
4698extern "C"
4699#endif
4700char socket ();
4701int
4702main ()
4703{
4704return socket ();
4705 ;
4706 return 0;
4707}
4708_ACEOF
4709for ac_lib in '' socket; do
4710 if test -z "$ac_lib"; then
4711 ac_res="none required"
4712 else
4713 ac_res=-l$ac_lib
4714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4715 fi
4716 if ac_fn_cxx_try_link "$LINENO"; then :
4717 ac_cv_search_socket=$ac_res
4718fi
4719rm -f core conftest.err conftest.$ac_objext \
4720 conftest$ac_exeext
4721 if ${ac_cv_search_socket+:} false; then :
4722 break
4723fi
4724done
4725if ${ac_cv_search_socket+:} false; then :
4726
4727else
4728 ac_cv_search_socket=no
4729fi
4730rm conftest.$ac_ext
4731LIBS=$ac_func_search_save_LIBS
4732fi
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4734$as_echo "$ac_cv_search_socket" >&6; }
4735ac_res=$ac_cv_search_socket
4736if test "$ac_res" != no; then :
4737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4738
4739fi
4740
4741
4742support_frills=yes
4743support_inheritpixmap=yes
4744support_fading=yes
4745support_keepscrolling=yes
4746support_selectionscrolling=yes
4747support_mousewheel=yes
4748support_mouseslipwheel=yes
4749support_text_blink=yes
4750support_pointer_blank=yes
4751support_scroll_rxvt=yes
4752support_scroll_next=yes
4753support_scroll_xterm=yes
4754support_xim=yes
4755support_pixbuf=yes
4756support_startup_notification=yes
4757support_xft=yes
4758support_unicode3=no
4759support_combining=yes
4760support_8bitctrls=no
4761support_iso14755=yes
4762support_styles=yes
4763support_perl=yes
4764codesets=all
4765
4766
4767# Check whether --enable-everything was given.
4768if test "${enable_everything+set}" = set; then :
4769 enableval=$enable_everything;
4770 if test x$enableval = xno; then
4771 support_frills=no
4772 support_inheritpixmap=no
4773 support_fading=no
4774 support_keepscrolling=no
4775 support_selectionscrolling=no
4776 support_lastlog=no
4777 support_mousewheel=no
4778 support_mouseslipwheel=no
4779 support_text_blink=no
4780 support_pointer_blank=no
4781 support_scroll_rxvt=no
4782 support_scroll_next=no
4783 support_scroll_xterm=no
4784 support_utmp=no
4785 support_wtmp=no
4786 support_xim=no
4787 support_pixbuf=no
4788 support_startup_notification=no
4789 support_xft=no
4790 support_unicode3=no
4791 support_combining=no
4792 support_8bitctrls=no
4793 support_iso14755=no
4794 support_styles=no
4795 support_perl=no
4796 codesets=
4797 fi
4798 if test x$enableval = xyes; then
4799 support_frills=yes
4800 support_inheritpixmap=yes
4801 support_fading=yes
4802 support_keepscrolling=yes
4803 support_selectionscrolling=yes
4804 support_lastlog=yes
4805 support_mousewheel=yes
4806 support_mouseslipwheel=yes
4807 support_text_blink=yes
4808 support_pointer_blank=yes
4809 support_scroll_rxvt=yes
4810 support_scroll_next=yes
4811 support_scroll_xterm=yes
4812 support_utmp=yes
4813 support_wtmp=yes
4814 support_xim=yes
4815 support_pixbuf=yes
4816 support_startup_notification=yes
4817 support_xft=yes
4818 support_unicode3=yes
4819 support_combining=yes
4820 #support_8bitctrls=yes
4821 support_iso14755=yes
4822 support_styles=yes
4823 support_perl=yes
4824 codesets=all
4825 fi
4826
4827fi
4828
4829
4830support_assertions=no
4831# Check whether --enable-assert was given.
4832if test "${enable_assert+set}" = set; then :
4833 enableval=$enable_assert; if test x$enableval = xyes; then
4834 support_assertions=yes
4835 fi
4836fi
4837
4838if test x$support_assertions = xno; then
4839
4840$as_echo "#define NDEBUG 1" >>confdefs.h
4841
4842fi
4843
4844support_warnings=no
4845# Check whether --enable-warnings was given.
4846if test "${enable_warnings+set}" = set; then :
4847 enableval=$enable_warnings; if test x$enableval = xyes; then
4848 support_warnings=yes
4849 fi
4850fi
4851
4852if test x$GXX = xyes; then
4853 if test $support_warnings = yes; then
4854 save_CXXFLAGS="$CXXFLAGS"
4855 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value"
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857/* end confdefs.h. */
4858
4859int
4860main ()
4861{
4862
4863 ;
4864 return 0;
4865}
4866_ACEOF
4867if ac_fn_cxx_try_compile "$LINENO"; then :
4868
4869else
4870 CXXFLAGS="$save_CXXFLAGS"
4871fi
4872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 else
4874 CXXFLAGS="$CXXFLAGS -w"
4875 fi
4876fi
4877
4878support_256_color=no
4879# Check whether --enable-256-color was given.
4880if test "${enable_256_color+set}" = set; then :
4881 enableval=$enable_256_color; if test x$enableval = xyes; then
4882 support_256_color=yes
4883 fi
4884fi
4885
4886if test x$support_256_color = xyes; then
4887
4888$as_echo "#define USE_256_COLORS 1" >>confdefs.h
4889
4890fi
4891
4892# Check whether --enable-unicode3 was given.
4893if test "${enable_unicode3+set}" = set; then :
4894 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4895 support_unicode3=$enableval
4896 fi
4897fi
4898
4899
4900# Check whether --enable-combining was given.
4901if test "${enable_combining+set}" = set; then :
4902 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then
4903 support_combining=$enableval
4904 fi
4905fi
4906
4907
4908# Check whether --enable-xft was given.
4909if test "${enable_xft+set}" = set; then :
4910 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then
4911 support_xft=$enableval
4912 fi
4913fi
4914
4915
4916# Check whether --enable-font-styles was given.
4917if test "${enable_font_styles+set}" = set; then :
4918 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
4919 support_styles=$enableval
4920 fi
4921fi
4922
4923
4924# Check whether --enable-pixbuf was given.
4925if test "${enable_pixbuf+set}" = set; then :
4926 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then
4927 support_pixbuf=$enableval
4928 fi
4929fi
4930
4931
4932# Check whether --enable-startup-notification was given.
4933if test "${enable_startup_notification+set}" = set; then :
4934 enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then
4935 support_startup_notification=$enableval
4936 fi
4937fi
4938
4939
4940# Check whether --enable-transparency was given.
4941if test "${enable_transparency+set}" = set; then :
4942 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4943 support_inheritpixmap=$enableval
4944 fi
4945fi
4946
4947
4948# Check whether --enable-fading was given.
4949if test "${enable_fading+set}" = set; then :
4950 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4951 support_fading=$enableval
4952 fi
4953fi
4954
4955
4956# Check whether --enable-rxvt-scroll was given.
4957if test "${enable_rxvt_scroll+set}" = set; then :
4958 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4959 support_scroll_rxvt=$enableval
4960 fi
4961fi
4962
4963
4964# Check whether --enable-next-scroll was given.
4965if test "${enable_next_scroll+set}" = set; then :
4966 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4967 support_scroll_next=$enableval
4968 fi
4969fi
4970
4971
4972# Check whether --enable-xterm-scroll was given.
4973if test "${enable_xterm_scroll+set}" = set; then :
4974 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4975 support_scroll_xterm=$enableval
4976 fi
4977fi
4978
4979
4980# Check whether --enable-perl was given.
4981if test "${enable_perl+set}" = set; then :
4982 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4983 support_perl=$enableval
4984 fi
4985fi
4986
4987
4988
4989# Check whether --with-codesets was given.
4990if test "${with_codesets+set}" = set; then :
4991 withval=$with_codesets; codesets="$withval"
4992fi
4993
4994
4995# Check whether --enable-xim was given.
4996if test "${enable_xim+set}" = set; then :
4997 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
4998 support_xim=$enableval
4999 fi
5000fi
5001
5002
5003# Check whether --enable-backspace-key was given.
5004if test "${enable_backspace_key+set}" = set; then :
5005 enableval=$enable_backspace_key; if test x$enableval = xno; then
5006
5007$as_echo "#define NO_BACKSPACE_KEY 1" >>confdefs.h
5008
5009 fi
5010fi
5011
5012
5013# Check whether --enable-delete-key was given.
5014if test "${enable_delete_key+set}" = set; then :
5015 enableval=$enable_delete_key; if test x$enableval = xno; then
5016
5017$as_echo "#define NO_DELETE_KEY 1" >>confdefs.h
5018
5019 fi
5020fi
5021
5022
5023support_resources=yes
5024# Check whether --enable-resources was given.
5025if test "${enable_resources+set}" = set; then :
5026 enableval=$enable_resources; if test x$enableval = xno; then
5027 support_resources=no
5028 fi
5029fi
5030
5031
5032# Check whether --enable-8bitctrls was given.
5033if test "${enable_8bitctrls+set}" = set; then :
5034 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
5035 support_8bitctrls=$enableval
5036 fi
5037fi
5038
5039
5040RESFALLBACK=Rxvt
5041# Check whether --enable-fallback was given.
5042if test "${enable_fallback+set}" = set; then :
5043 enableval=$enable_fallback;
5044 test x$enableval = xyes && enableval=Rxvt
5045 test x$enableval = xno && enableval=
5046 RESFALLBACK="$enableval"
5047
5048fi
5049
5050
5051if test x$RESFALLBACK != x; then
5052
5053cat >>confdefs.h <<_ACEOF
5054#define RESFALLBACK "$RESFALLBACK"
5055_ACEOF
5056
5057fi
5058
5059RESNAME=urxvt
5060
5061# Check whether --with-res-name was given.
5062if test "${with_res_name+set}" = set; then :
5063 withval=$with_res_name; RESNAME="$withval"
5064fi
5065
5066
5067cat >>confdefs.h <<_ACEOF
5068#define RESNAME "$RESNAME"
5069_ACEOF
5070
5071
5072RESCLASS=URxvt
5073
5074# Check whether --with-res-class was given.
5075if test "${with_res_class+set}" = set; then :
5076 withval=$with_res_class; RESCLASS="$withval"
5077fi
5078
5079
5080cat >>confdefs.h <<_ACEOF
5081#define RESCLASS "$RESCLASS"
5082_ACEOF
5083
5084
5085RXVTNAME=urxvt
5086
5087# Check whether --with-name was given.
5088if test "${with_name+set}" = set; then :
5089 withval=$with_name; RXVTNAME="$withval"
5090fi
5091
5092
5093cat >>confdefs.h <<_ACEOF
5094#define RXVTNAME "$RXVTNAME"
5095_ACEOF
5096
5097
5098
5099
5100# Check whether --enable-swapscreen was given.
5101if test "${enable_swapscreen+set}" = set; then :
5102 enableval=$enable_swapscreen; if test x$enableval = xno; then
5103
5104$as_echo "#define NO_SECONDARY_SCREEN 1" >>confdefs.h
5105
5106 fi
5107fi
5108
5109
5110# Check whether --enable-iso14755 was given.
5111if test "${enable_iso14755+set}" = set; then :
5112 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
5113 support_iso14755=$enableval
5114 fi
5115fi
5116
5117
5118# Check whether --enable-frills was given.
5119if test "${enable_frills+set}" = set; then :
5120 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
5121 support_frills=$enableval
5122 fi
5123fi
5124
5125
5126# Check whether --enable-keepscrolling was given.
5127if test "${enable_keepscrolling+set}" = set; then :
5128 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5129 support_keepscrolling=$enableval
5130 fi
5131fi
5132
5133
5134# Check whether --enable-selectionscrolling was given.
5135if test "${enable_selectionscrolling+set}" = set; then :
5136 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5137 support_selectionscrolling=$enableval
5138 fi
5139fi
5140
5141
5142# Check whether --enable-mousewheel was given.
5143if test "${enable_mousewheel+set}" = set; then :
5144 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
5145 support_mousewheel=$enableval
5146 fi
5147fi
5148
5149
5150# Check whether --enable-slipwheeling was given.
5151if test "${enable_slipwheeling+set}" = set; then :
5152 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
5153 support_mouseslipwheel=$enableval
5154 fi
5155fi
5156
5157
5158# Check whether --enable-smart-resize was given.
5159if test "${enable_smart_resize+set}" = set; then :
5160 enableval=$enable_smart_resize; if test x$enableval = xyes; then
5161
5162$as_echo "#define SMART_RESIZE 1" >>confdefs.h
5163
5164 fi
5165fi
5166
5167
5168# Check whether --enable-text-blink was given.
5169if test "${enable_text_blink+set}" = set; then :
5170 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
5171 support_text_blink=$enableval
5172 fi
5173fi
5174
5175
5176# Check whether --enable-pointer-blank was given.
5177if test "${enable_pointer_blank+set}" = set; then :
5178 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
5179 support_pointer_blank=$enableval
5180 fi
5181fi
5182
5183
5184
5185# Check whether --with-term was given.
5186if test "${with_term+set}" = set; then :
5187 withval=$with_term; if test x$withval != x; then
5188
5189cat >>confdefs.h <<_ACEOF
5190#define TERMENV "$withval"
5191_ACEOF
5192 term="$withval"
5193 fi
5194fi
5195
5196
5197
5198# Check whether --with-terminfo was given.
5199if test "${with_terminfo+set}" = set; then :
5200 withval=$with_terminfo; if test x$withval != x; then
5201
5202cat >>confdefs.h <<_ACEOF
5203#define RXVT_TERMINFO "$withval"
5204_ACEOF
5205 terminfo="$withval"
5206 fi
5207fi
5208
5209
5210if test x$support_resources = xno; then
5211 if test x$support_frills = xyes || test x$support_perl = xyes; then
5212 as_fn_error $? "--disable-resources requires --disable-frills --disable-perl" "$LINENO" 5
5213 fi
5214
5215
5216$as_echo "#define NO_RESOURCES 1" >>confdefs.h
5217
5218fi
5219
5220
5221LIBEV_M4_AVOID_LIBRT=1
5222
3217ac_ext=cc 5223ac_ext=cpp
3218ac_cpp='$CXXCPP $CPPFLAGS' 5224ac_cpp='$CXXCPP $CPPFLAGS'
3219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3222echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3223echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5229$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3224if test -z "$CXXCPP"; then 5230if test -z "$CXXCPP"; then
3225 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5231 if ${ac_cv_prog_CXXCPP+:} false; then :
3226 echo $ECHO_N "(cached) $ECHO_C" >&6 5232 $as_echo_n "(cached) " >&6
3227else 5233else
3228 # Double quotes because CXXCPP needs to be expanded 5234 # Double quotes because CXXCPP needs to be expanded
3229 for CXXCPP in "$CXX -E" "/lib/cpp" 5235 for CXXCPP in "$CXX -E" "/lib/cpp"
3230 do 5236 do
3231 ac_preproc_ok=false 5237 ac_preproc_ok=false
3235 # with a fresh cross-compiler works. 5241 # with a fresh cross-compiler works.
3236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3237 # <limits.h> exists even on freestanding compilers. 5243 # <limits.h> exists even on freestanding compilers.
3238 # On the NeXT, cc -E runs the code through the compiler's parser, 5244 # On the NeXT, cc -E runs the code through the compiler's parser,
3239 # not just through cpp. "Syntax error" is here to catch this case. 5245 # not just through cpp. "Syntax error" is here to catch this case.
3240 cat >conftest.$ac_ext <<_ACEOF
3241/* confdefs.h. */
3242_ACEOF
3243cat confdefs.h >>conftest.$ac_ext 5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244cat >>conftest.$ac_ext <<_ACEOF
3245/* end confdefs.h. */ 5247/* end confdefs.h. */
3246#ifdef __STDC__ 5248#ifdef __STDC__
3247# include <limits.h> 5249# include <limits.h>
3248#else 5250#else
3249# include <assert.h> 5251# include <assert.h>
3250#endif 5252#endif
3251 Syntax error 5253 Syntax error
3252_ACEOF 5254_ACEOF
3253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5255if ac_fn_cxx_try_cpp "$LINENO"; then :
3254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5256
3255 ac_status=$?
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } >/dev/null; then
3261 if test -s conftest.err; then
3262 ac_cpp_err=$ac_cxx_preproc_warn_flag
3263 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3264 else 5257else
3265 ac_cpp_err=
3266 fi
3267else
3268 ac_cpp_err=yes
3269fi
3270if test -z "$ac_cpp_err"; then
3271 :
3272else
3273 echo "$as_me: failed program was:" >&5
3274sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 # Broken: fails on valid input. 5258 # Broken: fails on valid input.
3277continue 5259continue
3278fi 5260fi
3279rm -f conftest.err conftest.$ac_ext 5261rm -f conftest.err conftest.i conftest.$ac_ext
3280 5262
3281 # OK, works on sane cases. Now check whether non-existent headers 5263 # OK, works on sane cases. Now check whether nonexistent headers
3282 # can be detected and how. 5264 # can be detected and how.
3283 cat >conftest.$ac_ext <<_ACEOF
3284/* confdefs.h. */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext 5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h. */ 5266/* end confdefs.h. */
3289#include <ac_nonexistent.h> 5267#include <ac_nonexistent.h>
3290_ACEOF 5268_ACEOF
3291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5269if ac_fn_cxx_try_cpp "$LINENO"; then :
3292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } >/dev/null; then
3299 if test -s conftest.err; then
3300 ac_cpp_err=$ac_cxx_preproc_warn_flag
3301 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3302 else
3303 ac_cpp_err=
3304 fi
3305else
3306 ac_cpp_err=yes
3307fi
3308if test -z "$ac_cpp_err"; then
3309 # Broken: success on invalid input. 5270 # Broken: success on invalid input.
3310continue 5271continue
3311else 5272else
3312 echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 # Passes both tests. 5273 # Passes both tests.
3316ac_preproc_ok=: 5274ac_preproc_ok=:
3317break 5275break
3318fi 5276fi
3319rm -f conftest.err conftest.$ac_ext 5277rm -f conftest.err conftest.i conftest.$ac_ext
3320 5278
3321done 5279done
3322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3323rm -f conftest.err conftest.$ac_ext 5281rm -f conftest.i conftest.err conftest.$ac_ext
3324if $ac_preproc_ok; then 5282if $ac_preproc_ok; then :
3325 break 5283 break
3326fi 5284fi
3327 5285
3328 done 5286 done
3329 ac_cv_prog_CXXCPP=$CXXCPP 5287 ac_cv_prog_CXXCPP=$CXXCPP
3331fi 5289fi
3332 CXXCPP=$ac_cv_prog_CXXCPP 5290 CXXCPP=$ac_cv_prog_CXXCPP
3333else 5291else
3334 ac_cv_prog_CXXCPP=$CXXCPP 5292 ac_cv_prog_CXXCPP=$CXXCPP
3335fi 5293fi
3336echo "$as_me:$LINENO: result: $CXXCPP" >&5 5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3337echo "${ECHO_T}$CXXCPP" >&6 5295$as_echo "$CXXCPP" >&6; }
3338ac_preproc_ok=false 5296ac_preproc_ok=false
3339for ac_cxx_preproc_warn_flag in '' yes 5297for ac_cxx_preproc_warn_flag in '' yes
3340do 5298do
3341 # Use a header file that comes with gcc, so configuring glibc 5299 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works. 5300 # with a fresh cross-compiler works.
3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344 # <limits.h> exists even on freestanding compilers. 5302 # <limits.h> exists even on freestanding compilers.
3345 # On the NeXT, cc -E runs the code through the compiler's parser, 5303 # On the NeXT, cc -E runs the code through the compiler's parser,
3346 # not just through cpp. "Syntax error" is here to catch this case. 5304 # not just through cpp. "Syntax error" is here to catch this case.
3347 cat >conftest.$ac_ext <<_ACEOF
3348/* confdefs.h. */
3349_ACEOF
3350cat confdefs.h >>conftest.$ac_ext 5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351cat >>conftest.$ac_ext <<_ACEOF
3352/* end confdefs.h. */ 5306/* end confdefs.h. */
3353#ifdef __STDC__ 5307#ifdef __STDC__
3354# include <limits.h> 5308# include <limits.h>
3355#else 5309#else
3356# include <assert.h> 5310# include <assert.h>
3357#endif 5311#endif
3358 Syntax error 5312 Syntax error
3359_ACEOF 5313_ACEOF
3360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5314if ac_fn_cxx_try_cpp "$LINENO"; then :
3361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5315
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } >/dev/null; then
3368 if test -s conftest.err; then
3369 ac_cpp_err=$ac_cxx_preproc_warn_flag
3370 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3371 else 5316else
3372 ac_cpp_err=
3373 fi
3374else
3375 ac_cpp_err=yes
3376fi
3377if test -z "$ac_cpp_err"; then
3378 :
3379else
3380 echo "$as_me: failed program was:" >&5
3381sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 # Broken: fails on valid input. 5317 # Broken: fails on valid input.
3384continue 5318continue
3385fi 5319fi
3386rm -f conftest.err conftest.$ac_ext 5320rm -f conftest.err conftest.i conftest.$ac_ext
3387 5321
3388 # OK, works on sane cases. Now check whether non-existent headers 5322 # OK, works on sane cases. Now check whether nonexistent headers
3389 # can be detected and how. 5323 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3391/* confdefs.h. */
3392_ACEOF
3393cat confdefs.h >>conftest.$ac_ext 5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394cat >>conftest.$ac_ext <<_ACEOF
3395/* end confdefs.h. */ 5325/* end confdefs.h. */
3396#include <ac_nonexistent.h> 5326#include <ac_nonexistent.h>
3397_ACEOF 5327_ACEOF
3398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5328if ac_fn_cxx_try_cpp "$LINENO"; then :
3399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_cxx_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3409 else
3410 ac_cpp_err=
3411 fi
3412else
3413 ac_cpp_err=yes
3414fi
3415if test -z "$ac_cpp_err"; then
3416 # Broken: success on invalid input. 5329 # Broken: success on invalid input.
3417continue 5330continue
3418else 5331else
3419 echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
3422 # Passes both tests. 5332 # Passes both tests.
3423ac_preproc_ok=: 5333ac_preproc_ok=:
3424break 5334break
3425fi 5335fi
3426rm -f conftest.err conftest.$ac_ext 5336rm -f conftest.err conftest.i conftest.$ac_ext
3427 5337
3428done 5338done
3429# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5339# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430rm -f conftest.err conftest.$ac_ext 5340rm -f conftest.i conftest.err conftest.$ac_ext
3431if $ac_preproc_ok; then 5341if $ac_preproc_ok; then :
3432 : 5342
3433else 5343else
3434 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435See \`config.log' for more details." >&5 5345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5346as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3437See \`config.log' for more details." >&2;} 5347See \`config.log' for more details" "$LINENO" 5; }
3438 { (exit 1); exit 1; }; }
3439fi 5348fi
3440 5349
3441ac_ext=cc 5350ac_ext=cpp
3442ac_cpp='$CXXCPP $CPPFLAGS' 5351ac_cpp='$CXXCPP $CPPFLAGS'
3443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5352ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5353ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5354ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3446 5355
3447 5356
3448echo "$as_me:$LINENO: checking for egrep" >&5 5357for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/timerfd.h
3449echo $ECHO_N "checking for egrep... $ECHO_C" >&6 5358do :
3450if test "${ac_cv_prog_egrep+set}" = set; then 5359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3451 echo $ECHO_N "(cached) $ECHO_C" >&6 5360ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3452else 5361if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3453 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 5362 cat >>confdefs.h <<_ACEOF
3454 then ac_cv_prog_egrep='grep -E' 5363#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3455 else ac_cv_prog_egrep='egrep'
3456 fi
3457fi
3458echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3459echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3460 EGREP=$ac_cv_prog_egrep
3461
3462
3463
3464echo "$as_me:$LINENO: checking for AIX" >&5
3465echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3466cat >conftest.$ac_ext <<_ACEOF
3467/* confdefs.h. */
3468_ACEOF 5364_ACEOF
5365
5366fi
5367
5368done
5369
5370for ac_header in sys/select.h sys/eventfd.h sys/signalfd.h linux/aio_abi.h linux/fs.h
5371do :
5372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5373ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5374if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5375 cat >>confdefs.h <<_ACEOF
5376#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5377_ACEOF
5378
5379fi
5380
5381done
5382
5383
5384for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5385do :
5386 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5387ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5388if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5389 cat >>confdefs.h <<_ACEOF
5390#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5391_ACEOF
5392
5393fi
5394done
5395
5396
5397for ac_func in clock_gettime
5398do :
5399 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5400if test "x$ac_cv_func_clock_gettime" = xyes; then :
5401 cat >>confdefs.h <<_ACEOF
5402#define HAVE_CLOCK_GETTIME 1
5403_ACEOF
5404
5405else
5406
5407 if test $(uname) = Linux; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5409$as_echo_n "checking for clock_gettime syscall... " >&6; }
3469cat confdefs.h >>conftest.$ac_ext 5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
3471/* end confdefs.h. */ 5411/* end confdefs.h. */
3472#ifdef _AIX 5412#include <unistd.h>
3473 yes 5413 #include <sys/syscall.h>
3474#endif 5414 #include <time.h>
3475 5415int
5416main ()
5417{
5418struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5419 ;
5420 return 0;
5421}
3476_ACEOF 5422_ACEOF
3477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5423if ac_fn_cxx_try_link "$LINENO"; then :
3478 $EGREP "yes" >/dev/null 2>&1; then 5424 ac_have_clock_syscall=1
3479 echo "$as_me:$LINENO: result: yes" >&5
3480echo "${ECHO_T}yes" >&6
3481cat >>confdefs.h <<\_ACEOF
3482#define _ALL_SOURCE 1
3483_ACEOF
3484 5425
5426$as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5429$as_echo "yes" >&6; }
3485else 5430else
3486 echo "$as_me:$LINENO: result: no" >&5 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487echo "${ECHO_T}no" >&6 5432$as_echo "no" >&6; }
3488fi 5433fi
3489rm -f conftest* 5434rm -f core conftest.err conftest.$ac_objext \
3490 5435 conftest$ac_exeext conftest.$ac_ext
3491 5436 fi
3492echo "$as_me:$LINENO: checking for library containing strerror" >&5 5437 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
3493echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
3494if test "${ac_cv_search_strerror+set}" = set; then 5439$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
3495 echo $ECHO_N "(cached) $ECHO_C" >&6 5440if ${ac_cv_lib_rt_clock_gettime+:} false; then :
5441 $as_echo_n "(cached) " >&6
3496else 5442else
3497 ac_func_search_save_LIBS=$LIBS 5443 ac_check_lib_save_LIBS=$LIBS
3498ac_cv_search_strerror=no 5444LIBS="-lrt $LIBS"
3499cat >conftest.$ac_ext <<_ACEOF
3500/* confdefs.h. */
3501_ACEOF
3502cat confdefs.h >>conftest.$ac_ext 5445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503cat >>conftest.$ac_ext <<_ACEOF
3504/* end confdefs.h. */ 5446/* end confdefs.h. */
3505 5447
3506/* Override any gcc2 internal prototype to avoid an error. */ 5448/* Override any GCC internal prototype to avoid an error.
5449 Use char because int might match the return type of a GCC
5450 builtin and then its argument prototype would still apply. */
3507#ifdef __cplusplus 5451#ifdef __cplusplus
3508extern "C" 5452extern "C"
3509#endif 5453#endif
3510/* We use char because int might match the return type of a gcc2 5454char clock_gettime ();
3511 builtin and then its argument prototype would still apply. */
3512char strerror ();
3513int 5455int
3514main () 5456main ()
3515{ 5457{
3516strerror (); 5458return clock_gettime ();
3517 ; 5459 ;
3518 return 0; 5460 return 0;
3519} 5461}
3520_ACEOF 5462_ACEOF
3521rm -f conftest.$ac_objext conftest$ac_exeext 5463if ac_fn_cxx_try_link "$LINENO"; then :
3522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5464 ac_cv_lib_rt_clock_gettime=yes
3523 (eval $ac_link) 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 (eval $ac_try) 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; } &&
3536 { ac_try='test -s conftest$ac_exeext'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 (eval $ac_try) 2>&5
3539 ac_status=$?
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3542 ac_cv_search_strerror="none required"
3543else 5465else
3544 echo "$as_me: failed program was:" >&5 5466 ac_cv_lib_rt_clock_gettime=no
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547fi 5467fi
3548rm -f conftest.err conftest.$ac_objext \ 5468rm -f core conftest.err conftest.$ac_objext \
3549 conftest$ac_exeext conftest.$ac_ext 5469 conftest$ac_exeext conftest.$ac_ext
3550if test "$ac_cv_search_strerror" = no; then 5470LIBS=$ac_check_lib_save_LIBS
3551 for ac_lib in cposix; do 5471fi
3552 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5473$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
5474if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
3553 cat >conftest.$ac_ext <<_ACEOF 5475 cat >>confdefs.h <<_ACEOF
3554/* confdefs.h. */ 5476#define HAVE_LIBRT 1
3555_ACEOF 5477_ACEOF
5478
5479 LIBS="-lrt $LIBS"
5480
5481fi
5482
5483 unset ac_cv_func_clock_gettime
5484 for ac_func in clock_gettime
5485do :
5486 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5487if test "x$ac_cv_func_clock_gettime" = xyes; then :
5488 cat >>confdefs.h <<_ACEOF
5489#define HAVE_CLOCK_GETTIME 1
5490_ACEOF
5491
5492fi
5493done
5494
5495 fi
5496
5497fi
5498done
5499
5500
5501for ac_func in nanosleep
5502do :
5503 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5504if test "x$ac_cv_func_nanosleep" = xyes; then :
5505 cat >>confdefs.h <<_ACEOF
5506#define HAVE_NANOSLEEP 1
5507_ACEOF
5508
5509else
5510
5511 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5513$as_echo_n "checking for nanosleep in -lrt... " >&6; }
5514if ${ac_cv_lib_rt_nanosleep+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516else
5517 ac_check_lib_save_LIBS=$LIBS
5518LIBS="-lrt $LIBS"
3556cat confdefs.h >>conftest.$ac_ext 5519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557cat >>conftest.$ac_ext <<_ACEOF
3558/* end confdefs.h. */ 5520/* end confdefs.h. */
3559 5521
3560/* Override any gcc2 internal prototype to avoid an error. */ 5522/* Override any GCC internal prototype to avoid an error.
5523 Use char because int might match the return type of a GCC
5524 builtin and then its argument prototype would still apply. */
3561#ifdef __cplusplus 5525#ifdef __cplusplus
3562extern "C" 5526extern "C"
3563#endif 5527#endif
3564/* We use char because int might match the return type of a gcc2 5528char nanosleep ();
3565 builtin and then its argument prototype would still apply. */
3566char strerror ();
3567int 5529int
3568main () 5530main ()
3569{ 5531{
3570strerror (); 5532return nanosleep ();
3571 ; 5533 ;
3572 return 0; 5534 return 0;
3573} 5535}
3574_ACEOF 5536_ACEOF
3575rm -f conftest.$ac_objext conftest$ac_exeext 5537if ac_fn_cxx_try_link "$LINENO"; then :
3576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5538 ac_cv_lib_rt_nanosleep=yes
3577 (eval $ac_link) 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
3584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 (eval $ac_try) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; } &&
3590 { ac_try='test -s conftest$ac_exeext'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 (eval $ac_try) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; }; then
3596 ac_cv_search_strerror="-l$ac_lib"
3597break
3598else 5539else
3599 echo "$as_me: failed program was:" >&5 5540 ac_cv_lib_rt_nanosleep=no
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
3602fi 5541fi
3603rm -f conftest.err conftest.$ac_objext \ 5542rm -f core conftest.err conftest.$ac_objext \
3604 conftest$ac_exeext conftest.$ac_ext 5543 conftest$ac_exeext conftest.$ac_ext
5544LIBS=$ac_check_lib_save_LIBS
5545fi
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5547$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
5548if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
5549 cat >>confdefs.h <<_ACEOF
5550#define HAVE_LIBRT 1
5551_ACEOF
5552
5553 LIBS="-lrt $LIBS"
5554
5555fi
5556
5557 unset ac_cv_func_nanosleep
5558 for ac_func in nanosleep
5559do :
5560 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5561if test "x$ac_cv_func_nanosleep" = xyes; then :
5562 cat >>confdefs.h <<_ACEOF
5563#define HAVE_NANOSLEEP 1
5564_ACEOF
5565
5566fi
3605 done 5567done
5568
5569 fi
5570
3606fi 5571fi
5572done
5573
5574
5575ac_fn_cxx_check_type "$LINENO" "__kernel_rwf_t" "ac_cv_type___kernel_rwf_t" "#include <linux/fs.h>
5576"
5577if test "x$ac_cv_type___kernel_rwf_t" = xyes; then :
5578
5579
5580$as_echo "#define HAVE_KERNEL_RWF_T 1" >>confdefs.h
5581
5582
5583fi
5584
5585
5586if test -z "$LIBEV_M4_AVOID_LIBM"; then
5587 LIBM=m
5588fi
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
5590$as_echo_n "checking for library containing floor... " >&6; }
5591if ${ac_cv_search_floor+:} false; then :
5592 $as_echo_n "(cached) " >&6
5593else
3607LIBS=$ac_func_search_save_LIBS 5594 ac_func_search_save_LIBS=$LIBS
3608fi
3609echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3610echo "${ECHO_T}$ac_cv_search_strerror" >&6
3611if test "$ac_cv_search_strerror" != no; then
3612 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3613
3614fi
3615
3616
3617echo "$as_me:$LINENO: checking for setlocale" >&5
3618echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3619if test "${ac_cv_func_setlocale+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621else
3622 cat >conftest.$ac_ext <<_ACEOF
3623/* confdefs.h. */
3624_ACEOF
3625cat confdefs.h >>conftest.$ac_ext 5595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626cat >>conftest.$ac_ext <<_ACEOF
3627/* end confdefs.h. */ 5596/* end confdefs.h. */
3628/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3630#define setlocale innocuous_setlocale
3631 5597
3632/* System header to define __stub macros and hopefully few prototypes,
3633 which can conflict with char setlocale (); below.
3634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3635 <limits.h> exists even on freestanding compilers. */
3636
3637#ifdef __STDC__
3638# include <limits.h>
3639#else
3640# include <assert.h>
3641#endif
3642
3643#undef setlocale
3644
3645/* Override any gcc2 internal prototype to avoid an error. */ 5598/* Override any GCC internal prototype to avoid an error.
5599 Use char because int might match the return type of a GCC
5600 builtin and then its argument prototype would still apply. */
3646#ifdef __cplusplus 5601#ifdef __cplusplus
3647extern "C" 5602extern "C"
3648{
3649#endif 5603#endif
3650/* We use char because int might match the return type of a gcc2 5604char floor ();
3651 builtin and then its argument prototype would still apply. */
3652char setlocale ();
3653/* The GNU C library defines this for functions which it implements
3654 to always fail with ENOSYS. Some functions are actually named
3655 something starting with __ and the normal name is an alias. */
3656#if defined (__stub_setlocale) || defined (__stub___setlocale)
3657choke me
3658#else
3659char (*f) () = setlocale;
3660#endif
3661#ifdef __cplusplus
3662}
3663#endif
3664
3665int 5605int
3666main () 5606main ()
3667{ 5607{
3668return f != setlocale; 5608return floor ();
3669 ; 5609 ;
3670 return 0; 5610 return 0;
3671} 5611}
3672_ACEOF 5612_ACEOF
3673rm -f conftest.$ac_objext conftest$ac_exeext 5613for ac_lib in '' $LIBM; do
3674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5614 if test -z "$ac_lib"; then
3675 (eval $ac_link) 2>conftest.er1 5615 ac_res="none required"
3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest$ac_exeext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 ac_cv_func_setlocale=yes
3695else 5616 else
3696 echo "$as_me: failed program was:" >&5 5617 ac_res=-l$ac_lib
3697sed 's/^/| /' conftest.$ac_ext >&5 5618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3698 5619 fi
3699ac_cv_func_setlocale=no 5620 if ac_fn_cxx_try_link "$LINENO"; then :
5621 ac_cv_search_floor=$ac_res
3700fi 5622fi
3701rm -f conftest.err conftest.$ac_objext \ 5623rm -f core conftest.err conftest.$ac_objext \
3702 conftest$ac_exeext conftest.$ac_ext 5624 conftest$ac_exeext
3703fi 5625 if ${ac_cv_search_floor+:} false; then :
3704echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5 5626 break
3705echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3706if test $ac_cv_func_setlocale = yes; then
3707 :
3708else
3709 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3710echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3711if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713else
3714 ac_check_lib_save_LIBS=$LIBS
3715LIBS="-lxpg4 $LIBS"
3716cat >conftest.$ac_ext <<_ACEOF
3717/* confdefs.h. */
3718_ACEOF
3719cat confdefs.h >>conftest.$ac_ext
3720cat >>conftest.$ac_ext <<_ACEOF
3721/* end confdefs.h. */
3722
3723/* Override any gcc2 internal prototype to avoid an error. */
3724#ifdef __cplusplus
3725extern "C"
3726#endif
3727/* We use char because int might match the return type of a gcc2
3728 builtin and then its argument prototype would still apply. */
3729char setlocale ();
3730int
3731main ()
3732{
3733setlocale ();
3734 ;
3735 return 0;
3736}
3737_ACEOF
3738rm -f conftest.$ac_objext conftest$ac_exeext
3739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3740 (eval $ac_link) 2>conftest.er1
3741 ac_status=$?
3742 grep -v '^ *+' conftest.er1 >conftest.err
3743 rm -f conftest.er1
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } &&
3747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 (eval $ac_try) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; } &&
3753 { ac_try='test -s conftest$ac_exeext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 ac_cv_lib_xpg4_setlocale=yes
3760else
3761 echo "$as_me: failed program was:" >&5
3762sed 's/^/| /' conftest.$ac_ext >&5
3763
3764ac_cv_lib_xpg4_setlocale=no
3765fi
3766rm -f conftest.err conftest.$ac_objext \
3767 conftest$ac_exeext conftest.$ac_ext
3768LIBS=$ac_check_lib_save_LIBS
3769fi
3770echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3771echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3772if test $ac_cv_lib_xpg4_setlocale = yes; then
3773 LIBS="$LIBS -lxpg4"
3774fi
3775
3776fi
3777
3778
3779echo "$as_me:$LINENO: checking for gethostbyname" >&5
3780echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3781if test "${ac_cv_func_gethostbyname+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783else
3784 cat >conftest.$ac_ext <<_ACEOF
3785/* confdefs.h. */
3786_ACEOF
3787cat confdefs.h >>conftest.$ac_ext
3788cat >>conftest.$ac_ext <<_ACEOF
3789/* end confdefs.h. */
3790/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3792#define gethostbyname innocuous_gethostbyname
3793
3794/* System header to define __stub macros and hopefully few prototypes,
3795 which can conflict with char gethostbyname (); below.
3796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3797 <limits.h> exists even on freestanding compilers. */
3798
3799#ifdef __STDC__
3800# include <limits.h>
3801#else
3802# include <assert.h>
3803#endif
3804
3805#undef gethostbyname
3806
3807/* Override any gcc2 internal prototype to avoid an error. */
3808#ifdef __cplusplus
3809extern "C"
3810{
3811#endif
3812/* We use char because int might match the return type of a gcc2
3813 builtin and then its argument prototype would still apply. */
3814char gethostbyname ();
3815/* The GNU C library defines this for functions which it implements
3816 to always fail with ENOSYS. Some functions are actually named
3817 something starting with __ and the normal name is an alias. */
3818#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3819choke me
3820#else
3821char (*f) () = gethostbyname;
3822#endif
3823#ifdef __cplusplus
3824}
3825#endif
3826
3827int
3828main ()
3829{
3830return f != gethostbyname;
3831 ;
3832 return 0;
3833}
3834_ACEOF
3835rm -f conftest.$ac_objext conftest$ac_exeext
3836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3837 (eval $ac_link) 2>conftest.er1
3838 ac_status=$?
3839 grep -v '^ *+' conftest.er1 >conftest.err
3840 rm -f conftest.er1
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } &&
3844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; } &&
3850 { ac_try='test -s conftest$ac_exeext'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 (eval $ac_try) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3856 ac_cv_func_gethostbyname=yes
3857else
3858 echo "$as_me: failed program was:" >&5
3859sed 's/^/| /' conftest.$ac_ext >&5
3860
3861ac_cv_func_gethostbyname=no
3862fi
3863rm -f conftest.err conftest.$ac_objext \
3864 conftest$ac_exeext conftest.$ac_ext
3865fi
3866echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3867echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3868if test $ac_cv_func_gethostbyname = yes; then
3869 :
3870else
3871 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3872echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3873if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875else
3876 ac_check_lib_save_LIBS=$LIBS
3877LIBS="-lnsl $LIBS"
3878cat >conftest.$ac_ext <<_ACEOF
3879/* confdefs.h. */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
3883/* end confdefs.h. */
3884
3885/* Override any gcc2 internal prototype to avoid an error. */
3886#ifdef __cplusplus
3887extern "C"
3888#endif
3889/* We use char because int might match the return type of a gcc2
3890 builtin and then its argument prototype would still apply. */
3891char gethostbyname ();
3892int
3893main ()
3894{
3895gethostbyname ();
3896 ;
3897 return 0;
3898}
3899_ACEOF
3900rm -f conftest.$ac_objext conftest$ac_exeext
3901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3902 (eval $ac_link) 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } &&
3909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 (eval $ac_try) 2>&5
3912 ac_status=$?
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; } &&
3915 { ac_try='test -s conftest$ac_exeext'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; }; then
3921 ac_cv_lib_nsl_gethostbyname=yes
3922else
3923 echo "$as_me: failed program was:" >&5
3924sed 's/^/| /' conftest.$ac_ext >&5
3925
3926ac_cv_lib_nsl_gethostbyname=no
3927fi
3928rm -f conftest.err conftest.$ac_objext \
3929 conftest$ac_exeext conftest.$ac_ext
3930LIBS=$ac_check_lib_save_LIBS
3931fi
3932echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3933echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3934if test $ac_cv_lib_nsl_gethostbyname = yes; then
3935 LIBS="$LIBS -lnsl"
3936fi
3937
3938fi
3939
3940echo "$as_me:$LINENO: checking for socket" >&5
3941echo $ECHO_N "checking for socket... $ECHO_C" >&6
3942if test "${ac_cv_func_socket+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944else
3945 cat >conftest.$ac_ext <<_ACEOF
3946/* confdefs.h. */
3947_ACEOF
3948cat confdefs.h >>conftest.$ac_ext
3949cat >>conftest.$ac_ext <<_ACEOF
3950/* end confdefs.h. */
3951/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3953#define socket innocuous_socket
3954
3955/* System header to define __stub macros and hopefully few prototypes,
3956 which can conflict with char socket (); below.
3957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958 <limits.h> exists even on freestanding compilers. */
3959
3960#ifdef __STDC__
3961# include <limits.h>
3962#else
3963# include <assert.h>
3964#endif
3965
3966#undef socket
3967
3968/* Override any gcc2 internal prototype to avoid an error. */
3969#ifdef __cplusplus
3970extern "C"
3971{
3972#endif
3973/* We use char because int might match the return type of a gcc2
3974 builtin and then its argument prototype would still apply. */
3975char socket ();
3976/* The GNU C library defines this for functions which it implements
3977 to always fail with ENOSYS. Some functions are actually named
3978 something starting with __ and the normal name is an alias. */
3979#if defined (__stub_socket) || defined (__stub___socket)
3980choke me
3981#else
3982char (*f) () = socket;
3983#endif
3984#ifdef __cplusplus
3985}
3986#endif
3987
3988int
3989main ()
3990{
3991return f != socket;
3992 ;
3993 return 0;
3994}
3995_ACEOF
3996rm -f conftest.$ac_objext conftest$ac_exeext
3997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3998 (eval $ac_link) 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try='test -s conftest$ac_exeext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 ac_cv_func_socket=yes
4018else
4019 echo "$as_me: failed program was:" >&5
4020sed 's/^/| /' conftest.$ac_ext >&5
4021
4022ac_cv_func_socket=no
4023fi
4024rm -f conftest.err conftest.$ac_objext \
4025 conftest$ac_exeext conftest.$ac_ext
4026fi
4027echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4028echo "${ECHO_T}$ac_cv_func_socket" >&6
4029if test $ac_cv_func_socket = yes; then
4030 :
4031else
4032 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4033echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4034if test "${ac_cv_lib_socket_socket+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036else
4037 ac_check_lib_save_LIBS=$LIBS
4038LIBS="-lsocket $LIBS"
4039cat >conftest.$ac_ext <<_ACEOF
4040/* confdefs.h. */
4041_ACEOF
4042cat confdefs.h >>conftest.$ac_ext
4043cat >>conftest.$ac_ext <<_ACEOF
4044/* end confdefs.h. */
4045
4046/* Override any gcc2 internal prototype to avoid an error. */
4047#ifdef __cplusplus
4048extern "C"
4049#endif
4050/* We use char because int might match the return type of a gcc2
4051 builtin and then its argument prototype would still apply. */
4052char socket ();
4053int
4054main ()
4055{
4056socket ();
4057 ;
4058 return 0;
4059}
4060_ACEOF
4061rm -f conftest.$ac_objext conftest$ac_exeext
4062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4063 (eval $ac_link) 2>conftest.er1
4064 ac_status=$?
4065 grep -v '^ *+' conftest.er1 >conftest.err
4066 rm -f conftest.er1
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 (eval $ac_try) 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; } &&
4076 { ac_try='test -s conftest$ac_exeext'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 (eval $ac_try) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4082 ac_cv_lib_socket_socket=yes
4083else
4084 echo "$as_me: failed program was:" >&5
4085sed 's/^/| /' conftest.$ac_ext >&5
4086
4087ac_cv_lib_socket_socket=no
4088fi
4089rm -f conftest.err conftest.$ac_objext \
4090 conftest$ac_exeext conftest.$ac_ext
4091LIBS=$ac_check_lib_save_LIBS
4092fi
4093echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4094echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4095if test $ac_cv_lib_socket_socket = yes; then
4096 LIBS="$LIBS -lsocket"
4097fi
4098
4099fi
4100
4101
4102echo "$as_me:$LINENO: checking for sched_yield" >&5
4103echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
4104if test "${ac_cv_func_sched_yield+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106else
4107 cat >conftest.$ac_ext <<_ACEOF
4108/* confdefs.h. */
4109_ACEOF
4110cat confdefs.h >>conftest.$ac_ext
4111cat >>conftest.$ac_ext <<_ACEOF
4112/* end confdefs.h. */
4113/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
4114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4115#define sched_yield innocuous_sched_yield
4116
4117/* System header to define __stub macros and hopefully few prototypes,
4118 which can conflict with char sched_yield (); below.
4119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4120 <limits.h> exists even on freestanding compilers. */
4121
4122#ifdef __STDC__
4123# include <limits.h>
4124#else
4125# include <assert.h>
4126#endif
4127
4128#undef sched_yield
4129
4130/* Override any gcc2 internal prototype to avoid an error. */
4131#ifdef __cplusplus
4132extern "C"
4133{
4134#endif
4135/* We use char because int might match the return type of a gcc2
4136 builtin and then its argument prototype would still apply. */
4137char sched_yield ();
4138/* The GNU C library defines this for functions which it implements
4139 to always fail with ENOSYS. Some functions are actually named
4140 something starting with __ and the normal name is an alias. */
4141#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
4142choke me
4143#else
4144char (*f) () = sched_yield;
4145#endif
4146#ifdef __cplusplus
4147}
4148#endif
4149
4150int
4151main ()
4152{
4153return f != sched_yield;
4154 ;
4155 return 0;
4156}
4157_ACEOF
4158rm -f conftest.$ac_objext conftest$ac_exeext
4159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4160 (eval $ac_link) 2>conftest.er1
4161 ac_status=$?
4162 grep -v '^ *+' conftest.er1 >conftest.err
4163 rm -f conftest.er1
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 (eval $ac_try) 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; } &&
4173 { ac_try='test -s conftest$ac_exeext'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 (eval $ac_try) 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 ac_cv_func_sched_yield=yes
4180else
4181 echo "$as_me: failed program was:" >&5
4182sed 's/^/| /' conftest.$ac_ext >&5
4183
4184ac_cv_func_sched_yield=no
4185fi
4186rm -f conftest.err conftest.$ac_objext \
4187 conftest$ac_exeext conftest.$ac_ext
4188fi
4189echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
4190echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
4191if test $ac_cv_func_sched_yield = yes; then
4192 :
4193else
4194 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
4195echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
4196if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198else
4199 ac_check_lib_save_LIBS=$LIBS
4200LIBS="-lrt $LIBS"
4201cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
4207
4208/* Override any gcc2 internal prototype to avoid an error. */
4209#ifdef __cplusplus
4210extern "C"
4211#endif
4212/* We use char because int might match the return type of a gcc2
4213 builtin and then its argument prototype would still apply. */
4214char sched_yield ();
4215int
4216main ()
4217{
4218sched_yield ();
4219 ;
4220 return 0;
4221}
4222_ACEOF
4223rm -f conftest.$ac_objext conftest$ac_exeext
4224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225 (eval $ac_link) 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 (eval $ac_try) 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest$ac_exeext'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 (eval $ac_try) 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 ac_cv_lib_rt_sched_yield=yes
4245else
4246 echo "$as_me: failed program was:" >&5
4247sed 's/^/| /' conftest.$ac_ext >&5
4248
4249ac_cv_lib_rt_sched_yield=no
4250fi
4251rm -f conftest.err conftest.$ac_objext \
4252 conftest$ac_exeext conftest.$ac_ext
4253LIBS=$ac_check_lib_save_LIBS
4254fi
4255echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
4256echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
4257if test $ac_cv_lib_rt_sched_yield = yes; then
4258 LIBS="$LIBS -lrt"
4259fi
4260
4261fi
4262
4263
4264echo "$as_me:$LINENO: checking for sched_yield support" >&5
4265echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
4266cat >conftest.$ac_ext <<_ACEOF
4267/* confdefs.h. */
4268_ACEOF
4269cat confdefs.h >>conftest.$ac_ext
4270cat >>conftest.$ac_ext <<_ACEOF
4271/* end confdefs.h. */
4272#include <sched.h>
4273int
4274main ()
4275{
4276sched_yield ()
4277 ;
4278 return 0;
4279}
4280_ACEOF
4281rm -f conftest.$ac_objext conftest$ac_exeext
4282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4283 (eval $ac_link) 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
4290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 (eval $ac_try) 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; } &&
4296 { ac_try='test -s conftest$ac_exeext'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 (eval $ac_try) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 echo "$as_me:$LINENO: result: yes" >&5
4303echo "${ECHO_T}yes" >&6
4304
4305cat >>confdefs.h <<\_ACEOF
4306#define HAVE_SCHED_YIELD 1
4307_ACEOF
4308
4309else
4310 echo "$as_me: failed program was:" >&5
4311sed 's/^/| /' conftest.$ac_ext >&5
4312
4313echo "$as_me:$LINENO: result: no" >&5
4314echo "${ECHO_T}no" >&6
4315fi
4316rm -f conftest.err conftest.$ac_objext \
4317 conftest$ac_exeext conftest.$ac_ext
4318
4319
4320MALLOC_TYPE=S
4321
4322support_addstrings=no
4323support_frills=yes
4324support_inheritpixmap=yes
4325support_tinting=yes
4326support_fading=yes
4327support_keepscrolling=yes
4328support_selectionscrolling=yes
4329support_menubar=no
4330support_mousewheel=yes
4331support_mouseslipwheel=yes
4332support_utmp=yes
4333support_wtmp=yes
4334support_lastlog=yes
4335support_text_blink=yes
4336support_pointer_blank=yes
4337support_scroll_rxvt=yes
4338support_scroll_next=yes
4339support_scroll_xterm=yes
4340support_scroll_plain=yes
4341support_xim=yes
4342support_xpm=yes
4343support_xft=yes
4344support_unicode3=no
4345support_combining=yes
4346support_8bitctrls=no
4347support_iso14755=yes
4348support_styles=yes
4349support_perl=yes
4350codesets=all
4351
4352
4353if test "x$enable_shared" = xyes; then
4354
4355cat >>confdefs.h <<\_ACEOF
4356#define LIBRXVT 1
4357_ACEOF
4358
4359 INSTALL_LIBRXVT=yes
4360fi
4361
4362
4363# Check whether --enable-everything or --disable-everything was given.
4364if test "${enable_everything+set}" = set; then
4365 enableval="$enable_everything"
4366
4367 if test x$enableval = xno; then
4368 support_24bit=no
4369 support_frills=no
4370 support_inheritpixmap=no
4371 support_tinting=no
4372 support_fading=no
4373 support_keepscrolling=no
4374 support_selectionscrolling=no
4375 support_lastlog=no
4376 support_menubar=no
4377 support_mousewheel=no
4378 support_mouseslipwheel=no
4379 support_text_blink=no
4380 support_pointer_blank=no
4381 support_scroll_rxvt=no
4382 support_scroll_next=no
4383 support_scroll_xterm=no
4384 support_scroll_plain=no
4385 support_utmp=no
4386 support_wtmp=no
4387 support_xim=no
4388 support_xpm=no
4389 support_xft=no
4390 support_unicode3=no
4391 support_combining=no
4392 support_8bitctrls=no
4393 support_iso14755=no
4394 support_styles=no
4395 support_perl=no
4396 codesets=
4397 fi
4398 if test x$enableval = xyes; then
4399 support_24bit=yes
4400 support_frills=yes
4401 support_inheritpixmap=yes
4402 support_tinting=yes
4403 support_fading=yes
4404 support_keepscrolling=yes
4405 support_selectionscrolling=yes
4406 support_lastlog=yes
4407 support_menubar=yes
4408 support_mousewheel=yes
4409 support_mouseslipwheel=yes
4410 support_text_blink=yes
4411 support_pointer_blank=yes
4412 support_scroll_rxvt=yes
4413 support_scroll_next=yes
4414 support_scroll_xterm=yes
4415 support_scroll_plain=yes
4416 support_utmp=yes
4417 support_wtmp=yes
4418 support_xim=yes
4419 support_xpm=yes
4420 support_xft=yes
4421 support_unicode3=yes
4422 support_combining=yes
4423 #support_8bitctrls=yes
4424 support_iso14755=yes
4425 support_styles=yes
4426 support_perl=yes
4427 codesets=all
4428 fi
4429
4430fi; 5627fi
4431
4432# Check whether --enable-unicode3 or --disable-unicode3 was given.
4433if test "${enable_unicode3+set}" = set; then
4434 enableval="$enable_unicode3"
4435 if test x$enableval = xyes -o x$enableval = xno; then
4436 support_unicode3=$enableval
4437 fi
4438fi;
4439
4440# Check whether --enable-combining or --disable-combining was given.
4441if test "${enable_combining+set}" = set; then
4442 enableval="$enable_combining"
4443 if test x$enableval = xyes -o x$enableval = xno; then
4444 support_combining=$enableval
4445 fi
4446fi;
4447
4448# Check whether --enable-xft or --disable-xft was given.
4449if test "${enable_xft+set}" = set; then
4450 enableval="$enable_xft"
4451 if test x$enableval = xyes -o x$enableval = xno; then
4452 support_xft=$enableval
4453 fi
4454fi;
4455
4456# Check whether --enable-font-styles or --disable-font-styles was given.
4457if test "${enable_font_styles+set}" = set; then
4458 enableval="$enable_font_styles"
4459 if test x$enableval = xyes -o x$enableval = xno; then
4460 support_styles=$enableval
4461 fi
4462fi;
4463
4464# Check whether --enable-utmp or --disable-utmp was given.
4465if test "${enable_utmp+set}" = set; then
4466 enableval="$enable_utmp"
4467 if test x$enableval = xyes -o x$enableval = xno; then
4468 support_utmp=$enableval
4469 fi
4470fi;
4471
4472# Check whether --enable-wtmp or --disable-wtmp was given.
4473if test "${enable_wtmp+set}" = set; then
4474 enableval="$enable_wtmp"
4475 if test x$enableval = xyes -o x$enableval = xno; then
4476 support_wtmp=$enableval
4477 fi
4478fi;
4479
4480# Check whether --enable-lastlog or --disable-lastlog was given.
4481if test "${enable_lastlog+set}" = set; then
4482 enableval="$enable_lastlog"
4483 if test x$enableval = xyes -o x$enableval = xno; then
4484 support_lastlog=$enableval
4485 fi
4486fi;
4487
4488# Check whether --enable-xpm-background or --disable-xpm-background was given.
4489if test "${enable_xpm_background+set}" = set; then
4490 enableval="$enable_xpm_background"
4491 if test x$enableval = xyes -o x$enableval = xno; then
4492 support_xpm=$enableval
4493 fi
4494fi;
4495
4496# Check whether --enable-transparency or --disable-transparency was given.
4497if test "${enable_transparency+set}" = set; then
4498 enableval="$enable_transparency"
4499 if test x$enableval = xyes -o x$enableval = xno; then
4500 support_inheritpixmap=$enableval
4501 fi
4502fi;
4503
4504# Check whether --enable-tinting or --disable-tinting was given.
4505if test "${enable_tinting+set}" = set; then
4506 enableval="$enable_tinting"
4507 if test x$enableval = xyes -o x$enableval = xno; then
4508 support_tinting=$enableval
4509 fi
4510fi;
4511
4512# Check whether --enable-fading or --disable-fading was given.
4513if test "${enable_fading+set}" = set; then
4514 enableval="$enable_fading"
4515 if test x$enableval = xyes -o x$enableval = xno; then
4516 support_fading=$enableval
4517 fi
4518fi;
4519
4520# Check whether --enable-menubar or --disable-menubar was given.
4521if test "${enable_menubar+set}" = set; then
4522 enableval="$enable_menubar"
4523 if test x$enableval = xyes -o x$enableval = xno; then
4524 support_menubar=$enableval
4525 fi
4526fi;
4527
4528# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4529if test "${enable_rxvt_scroll+set}" = set; then
4530 enableval="$enable_rxvt_scroll"
4531 if test x$enableval = xyes -o x$enableval = xno; then
4532 support_scroll_rxvt=$enableval
4533 fi
4534fi;
4535
4536# Check whether --enable-next-scroll or --disable-next-scroll was given.
4537if test "${enable_next_scroll+set}" = set; then
4538 enableval="$enable_next_scroll"
4539 if test x$enableval = xyes -o x$enableval = xno; then
4540 support_scroll_next=$enableval
4541 fi
4542fi;
4543
4544# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
4545if test "${enable_xterm_scroll+set}" = set; then
4546 enableval="$enable_xterm_scroll"
4547 if test x$enableval = xyes -o x$enableval = xno; then
4548 support_scroll_xterm=$enableval
4549 fi
4550fi;
4551
4552# Check whether --enable-perl or --disable-perl was given.
4553if test "${enable_perl+set}" = set; then
4554 enableval="$enable_perl"
4555 if test x$enableval = xyes -o x$enableval = xno; then
4556 support_perl=$enableval
4557 fi
4558fi;
4559
4560# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
4561if test "${enable_plain_scroll+set}" = set; then
4562 enableval="$enable_plain_scroll"
4563 if test x$enableval = xyes -o x$enableval = xno; then
4564 support_scroll_plain=$enableval
4565 fi
4566fi;
4567
4568# Check whether --enable-half-shadow or --disable-half-shadow was given.
4569if test "${enable_half_shadow+set}" = set; then
4570 enableval="$enable_half_shadow"
4571 if test x$enableval = xyes; then
4572
4573cat >>confdefs.h <<\_ACEOF
4574#define HALFSHADOW 1
4575_ACEOF
4576
4577 fi
4578fi;
4579
4580
4581# Check whether --with-codesets or --without-codesets was given.
4582if test "${with_codesets+set}" = set; then
4583 withval="$with_codesets"
4584 codesets="$withval"
4585fi;
4586
4587# Check whether --enable-xim or --disable-xim was given.
4588if test "${enable_xim+set}" = set; then
4589 enableval="$enable_xim"
4590 if test x$enableval = xyes -o x$enableval = xno; then
4591 support_xim=$enableval
4592 fi
4593fi;
4594
4595# Check whether --enable-ttygid or --disable-ttygid was given.
4596if test "${enable_ttygid+set}" = set; then
4597 enableval="$enable_ttygid"
4598 if test x$enableval = xyes; then
4599
4600cat >>confdefs.h <<\_ACEOF
4601#define TTY_GID_SUPPORT 1
4602_ACEOF
4603
4604 fi
4605fi;
4606
4607# Check whether --enable-backspace-key or --disable-backspace-key was given.
4608if test "${enable_backspace_key+set}" = set; then
4609 enableval="$enable_backspace_key"
4610 if test x$enableval = xno; then
4611
4612cat >>confdefs.h <<\_ACEOF
4613#define NO_BACKSPACE_KEY 1
4614_ACEOF
4615
4616 fi
4617fi;
4618
4619# Check whether --enable-delete-key or --disable-delete-key was given.
4620if test "${enable_delete_key+set}" = set; then
4621 enableval="$enable_delete_key"
4622 if test x$enableval = xno; then
4623
4624cat >>confdefs.h <<\_ACEOF
4625#define NO_DELETE_KEY 1
4626_ACEOF
4627
4628 fi
4629fi;
4630
4631# Check whether --enable-resources or --disable-resources was given.
4632if test "${enable_resources+set}" = set; then
4633 enableval="$enable_resources"
4634 if test x$enableval = xno; then
4635
4636cat >>confdefs.h <<\_ACEOF
4637#define NO_RESOURCES 1
4638_ACEOF
4639
4640 fi
4641fi;
4642
4643# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4644if test "${enable_8bitctrls+set}" = set; then
4645 enableval="$enable_8bitctrls"
4646 if test x$enableval = xyes -o x$enableval = xno; then
4647 support_8bitctrls=$enableval
4648 fi
4649fi;
4650
4651RESFALLBACK=Rxvt
4652# Check whether --enable-fallback or --disable-fallback was given.
4653if test "${enable_fallback+set}" = set; then
4654 enableval="$enable_fallback"
4655
4656 test x$enableval = xyes && enableval=Rxvt
4657 test x$enableval = xno && enableval=
4658 RESFALLBACK="$enableval"
4659
4660fi;
4661
4662if test x$RESFALLBACK != x; then
4663
4664cat >>confdefs.h <<_ACEOF
4665#define RESFALLBACK "$RESFALLBACK"
4666_ACEOF
4667
4668fi
4669
4670RESNAME=urxvt
4671
4672# Check whether --with-res-name or --without-res-name was given.
4673if test "${with_res_name+set}" = set; then
4674 withval="$with_res_name"
4675 RESNAME="$withval"
4676fi;
4677
4678cat >>confdefs.h <<_ACEOF
4679#define RESNAME "$RESNAME"
4680_ACEOF
4681
4682
4683RESCLASS=URxvt
4684
4685# Check whether --with-res-class or --without-res-class was given.
4686if test "${with_res_class+set}" = set; then
4687 withval="$with_res_class"
4688 RESCLASS="$withval"
4689fi;
4690
4691cat >>confdefs.h <<_ACEOF
4692#define RESCLASS "$RESCLASS"
4693_ACEOF
4694
4695
4696RXVTNAME=urxvt
4697
4698# Check whether --with-name or --without-name was given.
4699if test "${with_name+set}" = set; then
4700 withval="$with_name"
4701 RXVTNAME="$withval"
4702fi;
4703
4704cat >>confdefs.h <<_ACEOF
4705#define RXVTNAME "$RXVTNAME"
4706_ACEOF
4707
4708
4709RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4710
4711
4712# Check whether --enable-strings or --disable-strings was given.
4713if test "${enable_strings+set}" = set; then
4714 enableval="$enable_strings"
4715 if test x$enableval = xyes -o x$enableval = xno; then
4716 support_addstrings=$enableval
4717 fi
4718fi;
4719
4720# Check whether --enable-swapscreen or --disable-swapscreen was given.
4721if test "${enable_swapscreen+set}" = set; then
4722 enableval="$enable_swapscreen"
4723 if test x$enableval = xno; then
4724
4725cat >>confdefs.h <<\_ACEOF
4726#define NO_SECONDARY_SCREEN 1
4727_ACEOF
4728
4729 fi
4730fi;
4731
4732# Check whether --enable-iso14755 or --disable-iso14755 was given.
4733if test "${enable_iso14755+set}" = set; then
4734 enableval="$enable_iso14755"
4735 if test x$enableval = xyes -o x$enableval = xno; then
4736 support_iso14755=$enableval
4737 fi
4738fi;
4739
4740# Check whether --enable-frills or --disable-frills was given.
4741if test "${enable_frills+set}" = set; then
4742 enableval="$enable_frills"
4743 if test x$enableval = xyes -o x$enableval = xno; then
4744 support_frills=$enableval
4745 fi
4746fi;
4747
4748# Check whether --enable-24bit or --disable-24bit was given.
4749if test "${enable_24bit+set}" = set; then
4750 enableval="$enable_24bit"
4751 if test x$enableval = xyes -o x$enableval = xno; then
4752 support_24bit=$enableval
4753 fi
4754fi;
4755
4756# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4757if test "${enable_keepscrolling+set}" = set; then
4758 enableval="$enable_keepscrolling"
4759 if test x$enableval = xyes -o x$enableval = xno; then
4760 support_keepscrolling=$enableval
4761 fi
4762fi;
4763
4764# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
4765if test "${enable_selectionscrolling+set}" = set; then
4766 enableval="$enable_selectionscrolling"
4767 if test x$enableval = xyes -o x$enableval = xno; then
4768 support_selectionscrolling=$enableval
4769 fi
4770fi;
4771
4772# Check whether --enable-mousewheel or --disable-mousewheel was given.
4773if test "${enable_mousewheel+set}" = set; then
4774 enableval="$enable_mousewheel"
4775 if test x$enableval = xyes -o x$enableval = xno; then
4776 support_mousewheel=$enableval
4777 fi
4778fi;
4779
4780# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
4781if test "${enable_slipwheeling+set}" = set; then
4782 enableval="$enable_slipwheeling"
4783 if test x$enableval = xyes -o x$enableval = xno; then
4784 support_mouseslipwheel=$enableval
4785 fi
4786fi;
4787
4788# Check whether --enable-dmalloc or --disable-dmalloc was given.
4789if test "${enable_dmalloc+set}" = set; then
4790 enableval="$enable_dmalloc"
4791 if test x$enableval = xyes; then
4792 MALLOC_TYPE=G
4793 DEBUG=-DDEBUG_MALLOC
4794 DLIB="-L/usr/local/lib -ldmalloc"
4795 DINCLUDE=-I/usr/local/include
4796 fi
4797fi;
4798
4799# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
4800if test "${enable_dlmalloc+set}" = set; then
4801 enableval="$enable_dlmalloc"
4802 if test x$enableval = xyes; then
4803 MALLOC_TYPE=D
4804 DEBUG=
4805 DLIB="-L/usr/local/lib -ldlmalloc"
4806 DINCLUDE=
4807 fi
4808fi;
4809
4810# Check whether --enable-smart-resize or --disable-smart-resize was given.
4811if test "${enable_smart_resize+set}" = set; then
4812 enableval="$enable_smart_resize"
4813 if test x$enableval = xyes; then
4814
4815cat >>confdefs.h <<\_ACEOF
4816#define SMART_RESIZE 1
4817_ACEOF
4818
4819 fi
4820fi;
4821
4822# Check whether --enable-text-blink or --disable-text-blink was given.
4823if test "${enable_text_blink+set}" = set; then
4824 enableval="$enable_text_blink"
4825 if test x$enableval = xyes -o x$enableval = xno; then
4826 support_text_blink=$enableval
4827 fi
4828fi;
4829
4830# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
4831if test "${enable_pointer_blank+set}" = set; then
4832 enableval="$enable_pointer_blank"
4833 if test x$enableval = xyes -o x$enableval = xno; then
4834 support_pointer_blank=$enableval
4835 fi
4836fi;
4837
4838
4839# Check whether --with-term or --without-term was given.
4840if test "${with_term+set}" = set; then
4841 withval="$with_term"
4842 if test x$withval != x; then
4843
4844cat >>confdefs.h <<_ACEOF
4845#define TERMENV "$withval"
4846_ACEOF
4847 term="$withval"
4848 fi
4849fi;
4850
4851
4852# Check whether --with-terminfo or --without-terminfo was given.
4853if test "${with_terminfo+set}" = set; then
4854 withval="$with_terminfo"
4855 if test x$withval != x; then
4856
4857cat >>confdefs.h <<_ACEOF
4858#define RXVT_TERMINFO "$withval"
4859_ACEOF
4860 terminfo="$withval"
4861 fi
4862fi;
4863
4864
4865
4866cat >>confdefs.h <<\_ACEOF
4867#define PROTOTYPES 1
4868_ACEOF
4869
4870
4871# Extract the first word of "mv", so it can be a program name with args.
4872set dummy mv; ac_word=$2
4873echo "$as_me:$LINENO: checking for $ac_word" >&5
4874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4875if test "${ac_cv_path_MV+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4877else
4878 case $MV in
4879 [\\/]* | ?:[\\/]*)
4880 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4881 ;;
4882 *)
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884for as_dir in $PATH
4885do
4886 IFS=$as_save_IFS
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4890 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 break 2
4893 fi
4894done 5628done
4895done 5629if ${ac_cv_search_floor+:} false; then :
4896 5630
4897 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4898 ;;
4899esac
4900fi
4901MV=$ac_cv_path_MV
4902
4903if test -n "$MV"; then
4904 echo "$as_me:$LINENO: result: $MV" >&5
4905echo "${ECHO_T}$MV" >&6
4906else 5631else
4907 echo "$as_me:$LINENO: result: no" >&5 5632 ac_cv_search_floor=no
4908echo "${ECHO_T}no" >&6
4909fi 5633fi
4910 5634rm conftest.$ac_ext
4911# Extract the first word of "rm", so it can be a program name with args. 5635LIBS=$ac_func_search_save_LIBS
4912set dummy rm; ac_word=$2
4913echo "$as_me:$LINENO: checking for $ac_word" >&5
4914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4915if test "${ac_cv_path_RM+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4917else
4918 case $RM in
4919 [\\/]* | ?:[\\/]*)
4920 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4921 ;;
4922 *)
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH
4925do
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4930 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 break 2
4933 fi
4934done
4935done
4936
4937 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4938 ;;
4939esac
4940fi 5636fi
4941RM=$ac_cv_path_RM 5637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
5638$as_echo "$ac_cv_search_floor" >&6; }
5639ac_res=$ac_cv_search_floor
5640if test "$ac_res" != no; then :
5641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4942 5642
4943if test -n "$RM"; then 5643$as_echo "#define HAVE_FLOOR 1" >>confdefs.h
4944 echo "$as_me:$LINENO: result: $RM" >&5
4945echo "${ECHO_T}$RM" >&6
4946else
4947 echo "$as_me:$LINENO: result: no" >&5
4948echo "${ECHO_T}no" >&6
4949fi
4950 5644
4951# Extract the first word of "cp", so it can be a program name with args.
4952set dummy cp; ac_word=$2
4953echo "$as_me:$LINENO: checking for $ac_word" >&5
4954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4955if test "${ac_cv_path_CP+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957else
4958 case $CP in
4959 [\\/]* | ?:[\\/]*)
4960 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4961 ;;
4962 *)
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964for as_dir in $PATH
4965do
4966 IFS=$as_save_IFS
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 break 2
4973 fi
4974done
4975done
4976
4977 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4978 ;;
4979esac
4980fi 5645fi
4981CP=$ac_cv_path_CP
4982 5646
4983if test -n "$CP"; then
4984 echo "$as_me:$LINENO: result: $CP" >&5
4985echo "${ECHO_T}$CP" >&6
4986else
4987 echo "$as_me:$LINENO: result: no" >&5
4988echo "${ECHO_T}no" >&6
4989fi
4990 5647
4991# Extract the first word of "ln", so it can be a program name with args.
4992set dummy ln; ac_word=$2
4993echo "$as_me:$LINENO: checking for $ac_word" >&5
4994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4995if test "${ac_cv_path_LN+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4997else
4998 case $LN in
4999 [\\/]* | ?:[\\/]*)
5000 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5001 ;;
5002 *)
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004for as_dir in $PATH
5005do
5006 IFS=$as_save_IFS
5007 test -z "$as_dir" && as_dir=.
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5010 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 break 2
5013 fi
5014done
5015done
5016 5648
5017 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
5018 ;;
5019esac
5020fi
5021LN=$ac_cv_path_LN
5022 5649
5023if test -n "$LN"; then
5024 echo "$as_me:$LINENO: result: $LN" >&5
5025echo "${ECHO_T}$LN" >&6
5026else
5027 echo "$as_me:$LINENO: result: no" >&5
5028echo "${ECHO_T}no" >&6
5029fi
5030
5031# Extract the first word of "sed", so it can be a program name with args.
5032set dummy sed; ac_word=$2
5033echo "$as_me:$LINENO: checking for $ac_word" >&5
5034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5035if test "${ac_cv_path_SED+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5037else
5038 case $SED in
5039 [\\/]* | ?:[\\/]*)
5040 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5041 ;;
5042 *)
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044for as_dir in $PATH
5045do
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 break 2
5053 fi
5054done
5055done
5056
5057 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5058 ;;
5059esac
5060fi
5061SED=$ac_cv_path_SED
5062
5063if test -n "$SED"; then
5064 echo "$as_me:$LINENO: result: $SED" >&5
5065echo "${ECHO_T}$SED" >&6
5066else
5067 echo "$as_me:$LINENO: result: no" >&5
5068echo "${ECHO_T}no" >&6
5069fi
5070
5071# Extract the first word of "echo", so it can be a program name with args.
5072set dummy echo; ac_word=$2
5073echo "$as_me:$LINENO: checking for $ac_word" >&5
5074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075if test "${ac_cv_path_ECHO+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077else
5078 case $ECHO in
5079 [\\/]* | ?:[\\/]*)
5080 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5081 ;;
5082 *)
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084for as_dir in $PATH
5085do
5086 IFS=$as_save_IFS
5087 test -z "$as_dir" && as_dir=.
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5090 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 break 2
5093 fi
5094done
5095done
5096
5097 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5098 ;;
5099esac
5100fi
5101ECHO=$ac_cv_path_ECHO
5102
5103if test -n "$ECHO"; then
5104 echo "$as_me:$LINENO: result: $ECHO" >&5
5105echo "${ECHO_T}$ECHO" >&6
5106else
5107 echo "$as_me:$LINENO: result: no" >&5
5108echo "${ECHO_T}no" >&6
5109fi
5110
5111# Extract the first word of "cmp", so it can be a program name with args.
5112set dummy cmp; ac_word=$2
5113echo "$as_me:$LINENO: checking for $ac_word" >&5
5114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5115if test "${ac_cv_path_CMP+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117else
5118 case $CMP in
5119 [\\/]* | ?:[\\/]*)
5120 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5121 ;;
5122 *)
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124for as_dir in $PATH
5125do
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 break 2
5133 fi
5134done
5135done
5136
5137 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5138 ;;
5139esac
5140fi
5141CMP=$ac_cv_path_CMP
5142
5143if test -n "$CMP"; then
5144 echo "$as_me:$LINENO: result: $CMP" >&5
5145echo "${ECHO_T}$CMP" >&6
5146else
5147 echo "$as_me:$LINENO: result: no" >&5
5148echo "${ECHO_T}no" >&6
5149fi
5150
5151# Extract the first word of "tbl", so it can be a program name with args.
5152set dummy tbl; ac_word=$2
5153echo "$as_me:$LINENO: checking for $ac_word" >&5
5154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5155if test "${ac_cv_path_TBL+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157else
5158 case $TBL in
5159 [\\/]* | ?:[\\/]*)
5160 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5161 ;;
5162 *)
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5173 fi
5174done
5175done
5176
5177 ;;
5178esac
5179fi
5180TBL=$ac_cv_path_TBL
5181
5182if test -n "$TBL"; then
5183 echo "$as_me:$LINENO: result: $TBL" >&5
5184echo "${ECHO_T}$TBL" >&6
5185else
5186 echo "$as_me:$LINENO: result: no" >&5
5187echo "${ECHO_T}no" >&6
5188fi
5189 5650
5190# Extract the first word of "tic", so it can be a program name with args. 5651# Extract the first word of "tic", so it can be a program name with args.
5191set dummy tic; ac_word=$2 5652set dummy tic; ac_word=$2
5192echo "$as_me:$LINENO: checking for $ac_word" >&5 5653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5654$as_echo_n "checking for $ac_word... " >&6; }
5194if test "${ac_cv_path_TIC+set}" = set; then 5655if ${ac_cv_path_TIC+:} false; then :
5195 echo $ECHO_N "(cached) $ECHO_C" >&6 5656 $as_echo_n "(cached) " >&6
5196else 5657else
5197 case $TIC in 5658 case $TIC in
5198 [\\/]* | ?:[\\/]*) 5659 [\\/]* | ?:[\\/]*)
5199 ac_cv_path_TIC="$TIC" # Let the user override the test with a path. 5660 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5200 ;; 5661 ;;
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH 5664for as_dir in $PATH
5204do 5665do
5205 IFS=$as_save_IFS 5666 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=. 5667 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do 5668 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext" 5670 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2 5672 break 2
5212 fi 5673 fi
5213done 5674done
5214done 5675 done
5676IFS=$as_save_IFS
5215 5677
5678 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5216 ;; 5679 ;;
5217esac 5680esac
5218fi 5681fi
5219TIC=$ac_cv_path_TIC 5682TIC=$ac_cv_path_TIC
5220
5221if test -n "$TIC"; then 5683if test -n "$TIC"; then
5222 echo "$as_me:$LINENO: result: $TIC" >&5 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5
5223echo "${ECHO_T}$TIC" >&6 5685$as_echo "$TIC" >&6; }
5224else 5686else
5225 echo "$as_me:$LINENO: result: no" >&5 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226echo "${ECHO_T}no" >&6 5688$as_echo "no" >&6; }
5227fi 5689fi
5228 5690
5229 5691
5230 5692
5231
5232
5233if test "x$ac_path_x_has_been_run" != xyes; then
5234 echo "$as_me:$LINENO: checking for X" >&5 5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5235echo $ECHO_N "checking for X... $ECHO_C" >&6 5694$as_echo_n "checking for X... " >&6; }
5236 5695
5237ac_path_x_has_been_run=yes
5238 5696
5239# Check whether --with-x or --without-x was given. 5697# Check whether --with-x was given.
5240if test "${with_x+set}" = set; then 5698if test "${with_x+set}" = set; then :
5241 withval="$with_x" 5699 withval=$with_x;
5242
5243fi; 5700fi
5701
5244# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 5702# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5245if test "x$with_x" = xno; then 5703if test "x$with_x" = xno; then
5246 # The user explicitly disabled X. 5704 # The user explicitly disabled X.
5247 have_x=disabled 5705 have_x=disabled
5248else 5706else
5249 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 5707 case $x_includes,$x_libraries in #(
5250 # Both variables are already set. 5708 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5251 have_x=yes 5709 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5252 else 5710 $as_echo_n "(cached) " >&6
5253 if test "${ac_cv_have_x+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255else 5711else
5256 # One or both of the vars are not set, and there is no cached value. 5712 # One or both of the vars are not set, and there is no cached value.
5257ac_x_includes=no ac_x_libraries=no 5713ac_x_includes=no ac_x_libraries=no
5258rm -fr conftest.dir 5714rm -f -r conftest.dir
5259if mkdir conftest.dir; then 5715if mkdir conftest.dir; then
5260 cd conftest.dir 5716 cd conftest.dir
5261 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5262 cat >Imakefile <<'_ACEOF' 5717 cat >Imakefile <<'_ACEOF'
5263acfindx: 5718incroot:
5264 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 5719 @echo incroot='${INCROOT}'
5720usrlibdir:
5721 @echo usrlibdir='${USRLIBDIR}'
5722libdir:
5723 @echo libdir='${LIBDIR}'
5265_ACEOF 5724_ACEOF
5266 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 5725 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5267 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5726 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5268 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 5727 for ac_var in incroot usrlibdir libdir; do
5728 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5729 done
5269 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 5730 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5270 for ac_extension in a so sl; do 5731 for ac_extension in a so sl dylib la dll; do
5271 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 5732 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5272 test -f $ac_im_libdir/libX11.$ac_extension; then 5733 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5273 ac_im_usrlibdir=$ac_im_libdir; break 5734 ac_im_usrlibdir=$ac_im_libdir; break
5274 fi 5735 fi
5275 done 5736 done
5276 # Screen out bogus values from the imake configuration. They are 5737 # Screen out bogus values from the imake configuration. They are
5277 # bogus both because they are the default anyway, and because 5738 # bogus both because they are the default anyway, and because
5278 # using them would break gcc on systems where it needs fixed includes. 5739 # using them would break gcc on systems where it needs fixed includes.
5279 case $ac_im_incroot in 5740 case $ac_im_incroot in
5280 /usr/include) ;; 5741 /usr/include) ac_x_includes= ;;
5281 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 5742 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5282 esac 5743 esac
5283 case $ac_im_usrlibdir in 5744 case $ac_im_usrlibdir in
5284 /usr/lib | /lib) ;; 5745 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5285 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 5746 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5286 esac 5747 esac
5287 fi 5748 fi
5288 cd .. 5749 cd ..
5289 rm -fr conftest.dir 5750 rm -f -r conftest.dir
5290fi 5751fi
5291 5752
5292# Standard set of common directories for X headers. 5753# Standard set of common directories for X headers.
5293# Check X11 before X11Rn because it is often a symlink to the current release. 5754# Check X11 before X11Rn because it is often a symlink to the current release.
5294ac_x_header_dirs=' 5755ac_x_header_dirs='
5295/usr/X11/include 5756/usr/X11/include
5757/usr/X11R7/include
5296/usr/X11R6/include 5758/usr/X11R6/include
5297/usr/X11R5/include 5759/usr/X11R5/include
5298/usr/X11R4/include 5760/usr/X11R4/include
5299 5761
5300/usr/include/X11 5762/usr/include/X11
5763/usr/include/X11R7
5301/usr/include/X11R6 5764/usr/include/X11R6
5302/usr/include/X11R5 5765/usr/include/X11R5
5303/usr/include/X11R4 5766/usr/include/X11R4
5304 5767
5305/usr/local/X11/include 5768/usr/local/X11/include
5769/usr/local/X11R7/include
5306/usr/local/X11R6/include 5770/usr/local/X11R6/include
5307/usr/local/X11R5/include 5771/usr/local/X11R5/include
5308/usr/local/X11R4/include 5772/usr/local/X11R4/include
5309 5773
5310/usr/local/include/X11 5774/usr/local/include/X11
5775/usr/local/include/X11R7
5311/usr/local/include/X11R6 5776/usr/local/include/X11R6
5312/usr/local/include/X11R5 5777/usr/local/include/X11R5
5313/usr/local/include/X11R4 5778/usr/local/include/X11R4
5314 5779
5315/usr/X386/include 5780/usr/X386/include
5325 5790
5326/usr/openwin/include 5791/usr/openwin/include
5327/usr/openwin/share/include' 5792/usr/openwin/share/include'
5328 5793
5329if test "$ac_x_includes" = no; then 5794if test "$ac_x_includes" = no; then
5330 # Guess where to find include files, by looking for a specified header file. 5795 # Guess where to find include files, by looking for Xlib.h.
5331 # First, try using that file with no special directory specified. 5796 # First, try using that file with no special directory specified.
5332 cat >conftest.$ac_ext <<_ACEOF
5333/* confdefs.h. */
5334_ACEOF
5335cat confdefs.h >>conftest.$ac_ext 5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336cat >>conftest.$ac_ext <<_ACEOF
5337/* end confdefs.h. */ 5798/* end confdefs.h. */
5338#include <X11/Xlib.h> 5799#include <X11/Xlib.h>
5339_ACEOF 5800_ACEOF
5340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5801if ac_fn_cxx_try_cpp "$LINENO"; then :
5341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5342 ac_status=$?
5343 grep -v '^ *+' conftest.er1 >conftest.err
5344 rm -f conftest.er1
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } >/dev/null; then
5348 if test -s conftest.err; then
5349 ac_cpp_err=$ac_cxx_preproc_warn_flag
5350 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5351 else
5352 ac_cpp_err=
5353 fi
5354else
5355 ac_cpp_err=yes
5356fi
5357if test -z "$ac_cpp_err"; then
5358 # We can compile using X headers with no special include directory. 5802 # We can compile using X headers with no special include directory.
5359ac_x_includes= 5803ac_x_includes=
5360else 5804else
5361 echo "$as_me: failed program was:" >&5
5362sed 's/^/| /' conftest.$ac_ext >&5
5363
5364 for ac_dir in $ac_x_header_dirs; do 5805 for ac_dir in $ac_x_header_dirs; do
5365 if test -r "$ac_dir/X11/Xlib.h"; then 5806 if test -r "$ac_dir/X11/Xlib.h"; then
5366 ac_x_includes=$ac_dir 5807 ac_x_includes=$ac_dir
5367 break 5808 break
5368 fi 5809 fi
5369done 5810done
5370fi 5811fi
5371rm -f conftest.err conftest.$ac_ext 5812rm -f conftest.err conftest.i conftest.$ac_ext
5372fi # $ac_x_includes = no 5813fi # $ac_x_includes = no
5373 5814
5374if test "$ac_x_libraries" = no; then 5815if test "$ac_x_libraries" = no; then
5375 # Check for the libraries. 5816 # Check for the libraries.
5376 # See if we find them without any special options. 5817 # See if we find them without any special options.
5377 # Don't add to $LIBS permanently. 5818 # Don't add to $LIBS permanently.
5378 ac_save_LIBS=$LIBS 5819 ac_save_LIBS=$LIBS
5379 LIBS="-lX11 $LIBS" 5820 LIBS="-lX11 $LIBS"
5380 cat >conftest.$ac_ext <<_ACEOF
5381/* confdefs.h. */
5382_ACEOF
5383cat confdefs.h >>conftest.$ac_ext 5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384cat >>conftest.$ac_ext <<_ACEOF
5385/* end confdefs.h. */ 5822/* end confdefs.h. */
5386#include <X11/Xlib.h> 5823#include <X11/Xlib.h>
5387int 5824int
5388main () 5825main ()
5389{ 5826{
5390XrmInitialize () 5827XrmInitialize ()
5391 ; 5828 ;
5392 return 0; 5829 return 0;
5393} 5830}
5394_ACEOF 5831_ACEOF
5395rm -f conftest.$ac_objext conftest$ac_exeext 5832if ac_fn_cxx_try_link "$LINENO"; then :
5396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5397 (eval $ac_link) 2>conftest.er1
5398 ac_status=$?
5399 grep -v '^ *+' conftest.er1 >conftest.err
5400 rm -f conftest.er1
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; } &&
5410 { ac_try='test -s conftest$ac_exeext'
5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 (eval $ac_try) 2>&5
5413 ac_status=$?
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; }; then
5416 LIBS=$ac_save_LIBS 5833 LIBS=$ac_save_LIBS
5417# We can link X programs with no special library path. 5834# We can link X programs with no special library path.
5418ac_x_libraries= 5835ac_x_libraries=
5419else 5836else
5420 echo "$as_me: failed program was:" >&5
5421sed 's/^/| /' conftest.$ac_ext >&5
5422
5423LIBS=$ac_save_LIBS 5837 LIBS=$ac_save_LIBS
5424for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5838for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5425do 5839do
5426 # Don't even attempt the hair of trying to link an X program! 5840 # Don't even attempt the hair of trying to link an X program!
5427 for ac_extension in a so sl; do 5841 for ac_extension in a so sl dylib la dll; do
5428 if test -r $ac_dir/libX11.$ac_extension; then 5842 if test -r "$ac_dir/libX11.$ac_extension"; then
5429 ac_x_libraries=$ac_dir 5843 ac_x_libraries=$ac_dir
5430 break 2 5844 break 2
5431 fi 5845 fi
5432 done 5846 done
5433done 5847done
5434fi 5848fi
5435rm -f conftest.err conftest.$ac_objext \ 5849rm -f core conftest.err conftest.$ac_objext \
5436 conftest$ac_exeext conftest.$ac_ext 5850 conftest$ac_exeext conftest.$ac_ext
5437fi # $ac_x_libraries = no 5851fi # $ac_x_libraries = no
5438 5852
5439if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 5853case $ac_x_includes,$ac_x_libraries in #(
5440 # Didn't find X anywhere. Cache the known absence of X. 5854 no,* | *,no | *\'*)
5855 # Didn't find X, or a directory has "'" in its name.
5441 ac_cv_have_x="have_x=no" 5856 ac_cv_have_x="have_x=no";; #(
5442else 5857 *)
5443 # Record where we found X for the cache. 5858 # Record where we found X for the cache.
5444 ac_cv_have_x="have_x=yes \ 5859 ac_cv_have_x="have_x=yes\
5445 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 5860 ac_x_includes='$ac_x_includes'\
5861 ac_x_libraries='$ac_x_libraries'"
5862esac
5446fi 5863fi
5447fi 5864;; #(
5448 5865 *) have_x=yes;;
5449 fi 5866 esac
5450 eval "$ac_cv_have_x" 5867 eval "$ac_cv_have_x"
5451fi # $with_x != no 5868fi # $with_x != no
5452 5869
5453if test "$have_x" != yes; then 5870if test "$have_x" != yes; then
5454 echo "$as_me:$LINENO: result: $have_x" >&5 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5455echo "${ECHO_T}$have_x" >&6 5872$as_echo "$have_x" >&6; }
5456 no_x=yes 5873 no_x=yes
5457else 5874else
5458 # If each of the values was on the command line, it overrides each guess. 5875 # If each of the values was on the command line, it overrides each guess.
5459 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 5876 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5460 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5877 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5461 # Update the cache value to reflect the command line values. 5878 # Update the cache value to reflect the command line values.
5462 ac_cv_have_x="have_x=yes \ 5879 ac_cv_have_x="have_x=yes\
5463 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5464 # It might be that x_includes is empty (headers are found in the
5465 # standard search path. Then output the corresponding message
5466 ac_out_x_includes=$x_includes 5880 ac_x_includes='$x_includes'\
5467 test "x$x_includes" = x && ac_out_x_includes="in standard search path" 5881 ac_x_libraries='$x_libraries'"
5468 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5469echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 5883$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5470fi 5884fi
5471 5885
5472fi
5473if test "$no_x" = yes; then 5886if test "$no_x" = yes; then
5474 # Not all programs may use this symbol, but it does not hurt to define it. 5887 # Not all programs may use this symbol, but it does not hurt to define it.
5475 5888
5476cat >>confdefs.h <<\_ACEOF 5889$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5477#define X_DISPLAY_MISSING 1
5478_ACEOF
5479 5890
5480 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 5891 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5481else 5892else
5482 if test -n "$x_includes"; then 5893 if test -n "$x_includes"; then
5483 X_CFLAGS="$X_CFLAGS -I$x_includes" 5894 X_CFLAGS="$X_CFLAGS -I$x_includes"
5486 # It would also be nice to do this for all -L options, not just this one. 5897 # It would also be nice to do this for all -L options, not just this one.
5487 if test -n "$x_libraries"; then 5898 if test -n "$x_libraries"; then
5488 X_LIBS="$X_LIBS -L$x_libraries" 5899 X_LIBS="$X_LIBS -L$x_libraries"
5489 # For Solaris; some versions of Sun CC require a space after -R and 5900 # For Solaris; some versions of Sun CC require a space after -R and
5490 # others require no space. Words are not sufficient . . . . 5901 # others require no space. Words are not sufficient . . . .
5491 case `(uname -sr) 2>/dev/null` in
5492 "SunOS 5"*)
5493 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5494echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 5903$as_echo_n "checking whether -R must be followed by a space... " >&6; }
5495 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 5904 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5496 cat >conftest.$ac_ext <<_ACEOF 5905 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
5497/* confdefs.h. */ 5906 ac_cxx_werror_flag=yes
5498_ACEOF
5499cat confdefs.h >>conftest.$ac_ext 5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500cat >>conftest.$ac_ext <<_ACEOF
5501/* end confdefs.h. */ 5908/* end confdefs.h. */
5502 5909
5503int 5910int
5504main () 5911main ()
5505{ 5912{
5506 5913
5507 ; 5914 ;
5508 return 0; 5915 return 0;
5509} 5916}
5510_ACEOF 5917_ACEOF
5511rm -f conftest.$ac_objext conftest$ac_exeext 5918if ac_fn_cxx_try_link "$LINENO"; then :
5512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5513 (eval $ac_link) 2>conftest.er1
5514 ac_status=$?
5515 grep -v '^ *+' conftest.er1 >conftest.err
5516 rm -f conftest.er1
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } &&
5520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 (eval $ac_try) 2>&5
5523 ac_status=$?
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; } &&
5526 { ac_try='test -s conftest$ac_exeext'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 (eval $ac_try) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then
5532 ac_R_nospace=yes
5533else
5534 echo "$as_me: failed program was:" >&5
5535sed 's/^/| /' conftest.$ac_ext >&5
5536
5537ac_R_nospace=no
5538fi
5539rm -f conftest.err conftest.$ac_objext \
5540 conftest$ac_exeext conftest.$ac_ext
5541 if test $ac_R_nospace = yes; then
5542 echo "$as_me:$LINENO: result: no" >&5 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543echo "${ECHO_T}no" >&6 5920$as_echo "no" >&6; }
5544 X_LIBS="$X_LIBS -R$x_libraries" 5921 X_LIBS="$X_LIBS -R$x_libraries"
5545 else 5922else
5546 LIBS="$ac_xsave_LIBS -R $x_libraries" 5923 LIBS="$ac_xsave_LIBS -R $x_libraries"
5547 cat >conftest.$ac_ext <<_ACEOF
5548/* confdefs.h. */
5549_ACEOF
5550cat confdefs.h >>conftest.$ac_ext 5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551cat >>conftest.$ac_ext <<_ACEOF
5552/* end confdefs.h. */ 5925/* end confdefs.h. */
5553 5926
5554int 5927int
5555main () 5928main ()
5556{ 5929{
5557 5930
5558 ; 5931 ;
5559 return 0; 5932 return 0;
5560} 5933}
5561_ACEOF 5934_ACEOF
5562rm -f conftest.$ac_objext conftest$ac_exeext 5935if ac_fn_cxx_try_link "$LINENO"; then :
5563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5564 (eval $ac_link) 2>conftest.er1
5565 ac_status=$?
5566 grep -v '^ *+' conftest.er1 >conftest.err
5567 rm -f conftest.er1
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } &&
5571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; } &&
5577 { ac_try='test -s conftest$ac_exeext'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 (eval $ac_try) 2>&5
5580 ac_status=$?
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; }; then
5583 ac_R_space=yes
5584else
5585 echo "$as_me: failed program was:" >&5
5586sed 's/^/| /' conftest.$ac_ext >&5
5587
5588ac_R_space=no
5589fi
5590rm -f conftest.err conftest.$ac_objext \
5591 conftest$ac_exeext conftest.$ac_ext
5592 if test $ac_R_space = yes; then
5593 echo "$as_me:$LINENO: result: yes" >&5 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5594echo "${ECHO_T}yes" >&6 5937$as_echo "yes" >&6; }
5595 X_LIBS="$X_LIBS -R $x_libraries" 5938 X_LIBS="$X_LIBS -R $x_libraries"
5596 else 5939else
5597 echo "$as_me:$LINENO: result: neither works" >&5 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5598echo "${ECHO_T}neither works" >&6 5941$as_echo "neither works" >&6; }
5599 fi 5942fi
5600 fi 5943rm -f core conftest.err conftest.$ac_objext \
5944 conftest$ac_exeext conftest.$ac_ext
5945fi
5946rm -f core conftest.err conftest.$ac_objext \
5947 conftest$ac_exeext conftest.$ac_ext
5948 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5601 LIBS=$ac_xsave_LIBS 5949 LIBS=$ac_xsave_LIBS
5602 esac
5603 fi 5950 fi
5604 5951
5605 # Check for system-dependent libraries X programs must link with. 5952 # Check for system-dependent libraries X programs must link with.
5606 # Do this before checking for the system-independent R6 libraries 5953 # Do this before checking for the system-independent R6 libraries
5607 # (-lICE), since we may need -lsocket or whatever for X linking. 5954 # (-lICE), since we may need -lsocket or whatever for X linking.
5611 else 5958 else
5612 # Martyn Johnson says this is needed for Ultrix, if the X 5959 # Martyn Johnson says this is needed for Ultrix, if the X
5613 # libraries were built with DECnet support. And Karl Berry says 5960 # libraries were built with DECnet support. And Karl Berry says
5614 # the Alpha needs dnet_stub (dnet does not exist). 5961 # the Alpha needs dnet_stub (dnet does not exist).
5615 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 5962 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5616 cat >conftest.$ac_ext <<_ACEOF
5617/* confdefs.h. */
5618_ACEOF
5619cat confdefs.h >>conftest.$ac_ext 5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620cat >>conftest.$ac_ext <<_ACEOF
5621/* end confdefs.h. */ 5964/* end confdefs.h. */
5622 5965
5623/* Override any gcc2 internal prototype to avoid an error. */ 5966/* Override any GCC internal prototype to avoid an error.
5967 Use char because int might match the return type of a GCC
5968 builtin and then its argument prototype would still apply. */
5624#ifdef __cplusplus 5969#ifdef __cplusplus
5625extern "C" 5970extern "C"
5626#endif 5971#endif
5627/* We use char because int might match the return type of a gcc2
5628 builtin and then its argument prototype would still apply. */
5629char XOpenDisplay (); 5972char XOpenDisplay ();
5630int 5973int
5631main () 5974main ()
5632{ 5975{
5633XOpenDisplay (); 5976return XOpenDisplay ();
5634 ; 5977 ;
5635 return 0; 5978 return 0;
5636} 5979}
5637_ACEOF 5980_ACEOF
5638rm -f conftest.$ac_objext conftest$ac_exeext 5981if ac_fn_cxx_try_link "$LINENO"; then :
5639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5640 (eval $ac_link) 2>conftest.er1
5641 ac_status=$?
5642 grep -v '^ *+' conftest.er1 >conftest.err
5643 rm -f conftest.er1
5644 cat conftest.err >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } &&
5647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 (eval $ac_try) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; } &&
5653 { ac_try='test -s conftest$ac_exeext'
5654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 (eval $ac_try) 2>&5
5656 ac_status=$?
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; }; then
5659 :
5660else
5661 echo "$as_me: failed program was:" >&5
5662sed 's/^/| /' conftest.$ac_ext >&5
5663 5982
5983else
5664echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5665echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 5985$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5666if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 5986if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
5667 echo $ECHO_N "(cached) $ECHO_C" >&6 5987 $as_echo_n "(cached) " >&6
5668else 5988else
5669 ac_check_lib_save_LIBS=$LIBS 5989 ac_check_lib_save_LIBS=$LIBS
5670LIBS="-ldnet $LIBS" 5990LIBS="-ldnet $LIBS"
5671cat >conftest.$ac_ext <<_ACEOF
5672/* confdefs.h. */
5673_ACEOF
5674cat confdefs.h >>conftest.$ac_ext 5991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675cat >>conftest.$ac_ext <<_ACEOF
5676/* end confdefs.h. */ 5992/* end confdefs.h. */
5677 5993
5678/* Override any gcc2 internal prototype to avoid an error. */ 5994/* Override any GCC internal prototype to avoid an error.
5995 Use char because int might match the return type of a GCC
5996 builtin and then its argument prototype would still apply. */
5679#ifdef __cplusplus 5997#ifdef __cplusplus
5680extern "C" 5998extern "C"
5681#endif 5999#endif
5682/* We use char because int might match the return type of a gcc2
5683 builtin and then its argument prototype would still apply. */
5684char dnet_ntoa (); 6000char dnet_ntoa ();
5685int 6001int
5686main () 6002main ()
5687{ 6003{
5688dnet_ntoa (); 6004return dnet_ntoa ();
5689 ; 6005 ;
5690 return 0; 6006 return 0;
5691} 6007}
5692_ACEOF 6008_ACEOF
5693rm -f conftest.$ac_objext conftest$ac_exeext 6009if ac_fn_cxx_try_link "$LINENO"; then :
5694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5695 (eval $ac_link) 2>conftest.er1
5696 ac_status=$?
5697 grep -v '^ *+' conftest.er1 >conftest.err
5698 rm -f conftest.er1
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } &&
5702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 (eval $ac_try) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; } &&
5708 { ac_try='test -s conftest$ac_exeext'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 (eval $ac_try) 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714 ac_cv_lib_dnet_dnet_ntoa=yes 6010 ac_cv_lib_dnet_dnet_ntoa=yes
5715else 6011else
5716 echo "$as_me: failed program was:" >&5
5717sed 's/^/| /' conftest.$ac_ext >&5
5718
5719ac_cv_lib_dnet_dnet_ntoa=no 6012 ac_cv_lib_dnet_dnet_ntoa=no
5720fi 6013fi
5721rm -f conftest.err conftest.$ac_objext \ 6014rm -f core conftest.err conftest.$ac_objext \
5722 conftest$ac_exeext conftest.$ac_ext 6015 conftest$ac_exeext conftest.$ac_ext
5723LIBS=$ac_check_lib_save_LIBS 6016LIBS=$ac_check_lib_save_LIBS
5724fi 6017fi
5725echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 6018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5726echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 6019$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5727if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 6020if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
5728 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 6021 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5729fi 6022fi
5730 6023
5731 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6024 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5732 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5733echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 6026$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5734if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 6027if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
5735 echo $ECHO_N "(cached) $ECHO_C" >&6 6028 $as_echo_n "(cached) " >&6
5736else 6029else
5737 ac_check_lib_save_LIBS=$LIBS 6030 ac_check_lib_save_LIBS=$LIBS
5738LIBS="-ldnet_stub $LIBS" 6031LIBS="-ldnet_stub $LIBS"
5739cat >conftest.$ac_ext <<_ACEOF
5740/* confdefs.h. */
5741_ACEOF
5742cat confdefs.h >>conftest.$ac_ext 6032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743cat >>conftest.$ac_ext <<_ACEOF
5744/* end confdefs.h. */ 6033/* end confdefs.h. */
5745 6034
5746/* Override any gcc2 internal prototype to avoid an error. */ 6035/* Override any GCC internal prototype to avoid an error.
6036 Use char because int might match the return type of a GCC
6037 builtin and then its argument prototype would still apply. */
5747#ifdef __cplusplus 6038#ifdef __cplusplus
5748extern "C" 6039extern "C"
5749#endif 6040#endif
5750/* We use char because int might match the return type of a gcc2
5751 builtin and then its argument prototype would still apply. */
5752char dnet_ntoa (); 6041char dnet_ntoa ();
5753int 6042int
5754main () 6043main ()
5755{ 6044{
5756dnet_ntoa (); 6045return dnet_ntoa ();
5757 ; 6046 ;
5758 return 0; 6047 return 0;
5759} 6048}
5760_ACEOF 6049_ACEOF
5761rm -f conftest.$ac_objext conftest$ac_exeext 6050if ac_fn_cxx_try_link "$LINENO"; then :
5762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5763 (eval $ac_link) 2>conftest.er1
5764 ac_status=$?
5765 grep -v '^ *+' conftest.er1 >conftest.err
5766 rm -f conftest.er1
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } &&
5770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 (eval $ac_try) 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; } &&
5776 { ac_try='test -s conftest$ac_exeext'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5782 ac_cv_lib_dnet_stub_dnet_ntoa=yes 6051 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5783else 6052else
5784 echo "$as_me: failed program was:" >&5
5785sed 's/^/| /' conftest.$ac_ext >&5
5786
5787ac_cv_lib_dnet_stub_dnet_ntoa=no 6053 ac_cv_lib_dnet_stub_dnet_ntoa=no
5788fi 6054fi
5789rm -f conftest.err conftest.$ac_objext \ 6055rm -f core conftest.err conftest.$ac_objext \
5790 conftest$ac_exeext conftest.$ac_ext 6056 conftest$ac_exeext conftest.$ac_ext
5791LIBS=$ac_check_lib_save_LIBS 6057LIBS=$ac_check_lib_save_LIBS
5792fi 6058fi
5793echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 6059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5794echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 6060$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5795if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 6061if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
5796 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 6062 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5797fi 6063fi
5798 6064
5799 fi 6065 fi
5800fi 6066fi
5801rm -f conftest.err conftest.$ac_objext \ 6067rm -f core conftest.err conftest.$ac_objext \
5802 conftest$ac_exeext conftest.$ac_ext 6068 conftest$ac_exeext conftest.$ac_ext
5803 LIBS="$ac_xsave_LIBS" 6069 LIBS="$ac_xsave_LIBS"
5804 6070
5805 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 6071 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5806 # to get the SysV transport functions. 6072 # to get the SysV transport functions.
5807 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 6073 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5808 # needs -lnsl. 6074 # needs -lnsl.
5809 # The nsl library prevents programs from opening the X display 6075 # The nsl library prevents programs from opening the X display
5810 # on Irix 5.2, according to T.E. Dickey. 6076 # on Irix 5.2, according to T.E. Dickey.
5811 # The functions gethostbyname, getservbyname, and inet_addr are 6077 # The functions gethostbyname, getservbyname, and inet_addr are
5812 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 6078 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5813 echo "$as_me:$LINENO: checking for gethostbyname" >&5 6079 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5814echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 6080if test "x$ac_cv_func_gethostbyname" = xyes; then :
6081
6082fi
6083
5815if test "${ac_cv_func_gethostbyname+set}" = set; then 6084 if test $ac_cv_func_gethostbyname = no; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6086$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6087if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6088 $as_echo_n "(cached) " >&6
5817else 6089else
5818 cat >conftest.$ac_ext <<_ACEOF 6090 ac_check_lib_save_LIBS=$LIBS
5819/* confdefs.h. */ 6091LIBS="-lnsl $LIBS"
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext 6092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h. */ 6093/* end confdefs.h. */
5824/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5826#define gethostbyname innocuous_gethostbyname
5827 6094
5828/* System header to define __stub macros and hopefully few prototypes,
5829 which can conflict with char gethostbyname (); below.
5830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5831 <limits.h> exists even on freestanding compilers. */
5832
5833#ifdef __STDC__
5834# include <limits.h>
5835#else
5836# include <assert.h>
5837#endif
5838
5839#undef gethostbyname
5840
5841/* Override any gcc2 internal prototype to avoid an error. */ 6095/* Override any GCC internal prototype to avoid an error.
6096 Use char because int might match the return type of a GCC
6097 builtin and then its argument prototype would still apply. */
5842#ifdef __cplusplus 6098#ifdef __cplusplus
5843extern "C" 6099extern "C"
5844{
5845#endif 6100#endif
5846/* We use char because int might match the return type of a gcc2
5847 builtin and then its argument prototype would still apply. */
5848char gethostbyname (); 6101char gethostbyname ();
5849/* The GNU C library defines this for functions which it implements
5850 to always fail with ENOSYS. Some functions are actually named
5851 something starting with __ and the normal name is an alias. */
5852#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5853choke me
5854#else
5855char (*f) () = gethostbyname;
5856#endif
5857#ifdef __cplusplus
5858}
5859#endif
5860
5861int 6102int
5862main () 6103main ()
5863{ 6104{
5864return f != gethostbyname; 6105return gethostbyname ();
5865 ; 6106 ;
5866 return 0; 6107 return 0;
5867} 6108}
5868_ACEOF 6109_ACEOF
5869rm -f conftest.$ac_objext conftest$ac_exeext 6110if ac_fn_cxx_try_link "$LINENO"; then :
5870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5871 (eval $ac_link) 2>conftest.er1
5872 ac_status=$?
5873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 (eval $ac_try) 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; } &&
5884 { ac_try='test -s conftest$ac_exeext'
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 (eval $ac_try) 2>&5
5887 ac_status=$?
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; }; then
5890 ac_cv_func_gethostbyname=yes 6111 ac_cv_lib_nsl_gethostbyname=yes
5891else 6112else
5892 echo "$as_me: failed program was:" >&5
5893sed 's/^/| /' conftest.$ac_ext >&5
5894
5895ac_cv_func_gethostbyname=no 6113 ac_cv_lib_nsl_gethostbyname=no
5896fi 6114fi
5897rm -f conftest.err conftest.$ac_objext \ 6115rm -f core conftest.err conftest.$ac_objext \
5898 conftest$ac_exeext conftest.$ac_ext 6116 conftest$ac_exeext conftest.$ac_ext
6117LIBS=$ac_check_lib_save_LIBS
5899fi 6118fi
5900echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 6119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5901echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 6120$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6121if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6122 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6123fi
5902 6124
5903 if test $ac_cv_func_gethostbyname = no; then 6125 if test $ac_cv_lib_nsl_gethostbyname = no; then
5904 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5905echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 6127$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5906if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 6128if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
5907 echo $ECHO_N "(cached) $ECHO_C" >&6 6129 $as_echo_n "(cached) " >&6
5908else 6130else
5909 ac_check_lib_save_LIBS=$LIBS 6131 ac_check_lib_save_LIBS=$LIBS
5910LIBS="-lnsl $LIBS" 6132LIBS="-lbsd $LIBS"
5911cat >conftest.$ac_ext <<_ACEOF
5912/* confdefs.h. */
5913_ACEOF
5914cat confdefs.h >>conftest.$ac_ext 6133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915cat >>conftest.$ac_ext <<_ACEOF
5916/* end confdefs.h. */ 6134/* end confdefs.h. */
5917 6135
5918/* Override any gcc2 internal prototype to avoid an error. */ 6136/* Override any GCC internal prototype to avoid an error.
6137 Use char because int might match the return type of a GCC
6138 builtin and then its argument prototype would still apply. */
5919#ifdef __cplusplus 6139#ifdef __cplusplus
5920extern "C" 6140extern "C"
5921#endif 6141#endif
5922/* We use char because int might match the return type of a gcc2
5923 builtin and then its argument prototype would still apply. */
5924char gethostbyname (); 6142char gethostbyname ();
5925int 6143int
5926main () 6144main ()
5927{ 6145{
5928gethostbyname (); 6146return gethostbyname ();
5929 ; 6147 ;
5930 return 0; 6148 return 0;
5931} 6149}
5932_ACEOF 6150_ACEOF
5933rm -f conftest.$ac_objext conftest$ac_exeext 6151if ac_fn_cxx_try_link "$LINENO"; then :
5934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935 (eval $ac_link) 2>conftest.er1
5936 ac_status=$?
5937 grep -v '^ *+' conftest.er1 >conftest.err
5938 rm -f conftest.er1
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
5942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 (eval $ac_try) 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try='test -s conftest$ac_exeext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 (eval $ac_try) 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5954 ac_cv_lib_nsl_gethostbyname=yes 6152 ac_cv_lib_bsd_gethostbyname=yes
5955else 6153else
5956 echo "$as_me: failed program was:" >&5
5957sed 's/^/| /' conftest.$ac_ext >&5
5958
5959ac_cv_lib_nsl_gethostbyname=no 6154 ac_cv_lib_bsd_gethostbyname=no
5960fi 6155fi
5961rm -f conftest.err conftest.$ac_objext \ 6156rm -f core conftest.err conftest.$ac_objext \
5962 conftest$ac_exeext conftest.$ac_ext 6157 conftest$ac_exeext conftest.$ac_ext
5963LIBS=$ac_check_lib_save_LIBS 6158LIBS=$ac_check_lib_save_LIBS
5964fi 6159fi
5965echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5966echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5967if test $ac_cv_lib_nsl_gethostbyname = yes; then
5968 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5969fi
5970
5971 if test $ac_cv_lib_nsl_gethostbyname = no; then
5972 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5973echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5974if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976else
5977 ac_check_lib_save_LIBS=$LIBS
5978LIBS="-lbsd $LIBS"
5979cat >conftest.$ac_ext <<_ACEOF
5980/* confdefs.h. */
5981_ACEOF
5982cat confdefs.h >>conftest.$ac_ext
5983cat >>conftest.$ac_ext <<_ACEOF
5984/* end confdefs.h. */
5985
5986/* Override any gcc2 internal prototype to avoid an error. */
5987#ifdef __cplusplus
5988extern "C"
5989#endif
5990/* We use char because int might match the return type of a gcc2
5991 builtin and then its argument prototype would still apply. */
5992char gethostbyname ();
5993int
5994main ()
5995{
5996gethostbyname ();
5997 ;
5998 return 0;
5999}
6000_ACEOF
6001rm -f conftest.$ac_objext conftest$ac_exeext
6002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6003 (eval $ac_link) 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
6010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try='test -s conftest$ac_exeext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_cv_lib_bsd_gethostbyname=yes
6023else
6024 echo "$as_me: failed program was:" >&5
6025sed 's/^/| /' conftest.$ac_ext >&5
6026
6027ac_cv_lib_bsd_gethostbyname=no
6028fi
6029rm -f conftest.err conftest.$ac_objext \
6030 conftest$ac_exeext conftest.$ac_ext
6031LIBS=$ac_check_lib_save_LIBS
6032fi
6033echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 6160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6034echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 6161$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6035if test $ac_cv_lib_bsd_gethostbyname = yes; then 6162if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
6036 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6163 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6037fi 6164fi
6038 6165
6039 fi 6166 fi
6040 fi 6167 fi
6044 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 6171 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6045 # on later versions), says Simon Leinen: it contains gethostby* 6172 # on later versions), says Simon Leinen: it contains gethostby*
6046 # variants that don't use the name server (or something). -lsocket 6173 # variants that don't use the name server (or something). -lsocket
6047 # must be given before -lnsl if both are needed. We assume that 6174 # must be given before -lnsl if both are needed. We assume that
6048 # if connect needs -lnsl, so does gethostbyname. 6175 # if connect needs -lnsl, so does gethostbyname.
6049 echo "$as_me:$LINENO: checking for connect" >&5 6176 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6050echo $ECHO_N "checking for connect... $ECHO_C" >&6 6177if test "x$ac_cv_func_connect" = xyes; then :
6178
6179fi
6180
6051if test "${ac_cv_func_connect+set}" = set; then 6181 if test $ac_cv_func_connect = no; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6 6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6183$as_echo_n "checking for connect in -lsocket... " >&6; }
6184if ${ac_cv_lib_socket_connect+:} false; then :
6185 $as_echo_n "(cached) " >&6
6053else 6186else
6054 cat >conftest.$ac_ext <<_ACEOF 6187 ac_check_lib_save_LIBS=$LIBS
6055/* confdefs.h. */ 6188LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6056_ACEOF
6057cat confdefs.h >>conftest.$ac_ext 6189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058cat >>conftest.$ac_ext <<_ACEOF
6059/* end confdefs.h. */ 6190/* end confdefs.h. */
6060/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6062#define connect innocuous_connect
6063 6191
6064/* System header to define __stub macros and hopefully few prototypes,
6065 which can conflict with char connect (); below.
6066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6067 <limits.h> exists even on freestanding compilers. */
6068
6069#ifdef __STDC__
6070# include <limits.h>
6071#else
6072# include <assert.h>
6073#endif
6074
6075#undef connect
6076
6077/* Override any gcc2 internal prototype to avoid an error. */ 6192/* Override any GCC internal prototype to avoid an error.
6193 Use char because int might match the return type of a GCC
6194 builtin and then its argument prototype would still apply. */
6078#ifdef __cplusplus 6195#ifdef __cplusplus
6079extern "C" 6196extern "C"
6080{
6081#endif 6197#endif
6082/* We use char because int might match the return type of a gcc2
6083 builtin and then its argument prototype would still apply. */
6084char connect (); 6198char connect ();
6085/* The GNU C library defines this for functions which it implements
6086 to always fail with ENOSYS. Some functions are actually named
6087 something starting with __ and the normal name is an alias. */
6088#if defined (__stub_connect) || defined (__stub___connect)
6089choke me
6090#else
6091char (*f) () = connect;
6092#endif
6093#ifdef __cplusplus
6094}
6095#endif
6096
6097int 6199int
6098main () 6200main ()
6099{ 6201{
6100return f != connect; 6202return connect ();
6101 ; 6203 ;
6102 return 0; 6204 return 0;
6103} 6205}
6104_ACEOF 6206_ACEOF
6105rm -f conftest.$ac_objext conftest$ac_exeext 6207if ac_fn_cxx_try_link "$LINENO"; then :
6106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6107 (eval $ac_link) 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 (eval $ac_try) 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; } &&
6120 { ac_try='test -s conftest$ac_exeext'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 (eval $ac_try) 2>&5
6123 ac_status=$?
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; }; then
6126 ac_cv_func_connect=yes 6208 ac_cv_lib_socket_connect=yes
6127else 6209else
6128 echo "$as_me: failed program was:" >&5 6210 ac_cv_lib_socket_connect=no
6129sed 's/^/| /' conftest.$ac_ext >&5
6130
6131ac_cv_func_connect=no
6132fi 6211fi
6133rm -f conftest.err conftest.$ac_objext \ 6212rm -f core conftest.err conftest.$ac_objext \
6134 conftest$ac_exeext conftest.$ac_ext 6213 conftest$ac_exeext conftest.$ac_ext
6214LIBS=$ac_check_lib_save_LIBS
6135fi 6215fi
6136echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 6216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6137echo "${ECHO_T}$ac_cv_func_connect" >&6 6217$as_echo "$ac_cv_lib_socket_connect" >&6; }
6218if test "x$ac_cv_lib_socket_connect" = xyes; then :
6219 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6220fi
6138 6221
6222 fi
6223
6224 # Guillermo Gomez says -lposix is necessary on A/UX.
6225 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6226if test "x$ac_cv_func_remove" = xyes; then :
6227
6228fi
6229
6139 if test $ac_cv_func_connect = no; then 6230 if test $ac_cv_func_remove = no; then
6140 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6141echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 6232$as_echo_n "checking for remove in -lposix... " >&6; }
6142if test "${ac_cv_lib_socket_connect+set}" = set; then 6233if ${ac_cv_lib_posix_remove+:} false; then :
6143 echo $ECHO_N "(cached) $ECHO_C" >&6 6234 $as_echo_n "(cached) " >&6
6144else 6235else
6145 ac_check_lib_save_LIBS=$LIBS 6236 ac_check_lib_save_LIBS=$LIBS
6146LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6237LIBS="-lposix $LIBS"
6147cat >conftest.$ac_ext <<_ACEOF
6148/* confdefs.h. */
6149_ACEOF
6150cat confdefs.h >>conftest.$ac_ext 6238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151cat >>conftest.$ac_ext <<_ACEOF
6152/* end confdefs.h. */ 6239/* end confdefs.h. */
6153 6240
6154/* Override any gcc2 internal prototype to avoid an error. */ 6241/* Override any GCC internal prototype to avoid an error.
6242 Use char because int might match the return type of a GCC
6243 builtin and then its argument prototype would still apply. */
6155#ifdef __cplusplus 6244#ifdef __cplusplus
6156extern "C" 6245extern "C"
6157#endif 6246#endif
6158/* We use char because int might match the return type of a gcc2 6247char remove ();
6159 builtin and then its argument prototype would still apply. */
6160char connect ();
6161int 6248int
6162main () 6249main ()
6163{ 6250{
6164connect (); 6251return remove ();
6165 ; 6252 ;
6166 return 0; 6253 return 0;
6167} 6254}
6168_ACEOF 6255_ACEOF
6169rm -f conftest.$ac_objext conftest$ac_exeext 6256if ac_fn_cxx_try_link "$LINENO"; then :
6170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6257 ac_cv_lib_posix_remove=yes
6171 (eval $ac_link) 2>conftest.er1
6172 ac_status=$?
6173 grep -v '^ *+' conftest.er1 >conftest.err
6174 rm -f conftest.er1
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } &&
6178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 (eval $ac_try) 2>&5
6181 ac_status=$?
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; } &&
6184 { ac_try='test -s conftest$ac_exeext'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6190 ac_cv_lib_socket_connect=yes
6191else 6258else
6192 echo "$as_me: failed program was:" >&5 6259 ac_cv_lib_posix_remove=no
6193sed 's/^/| /' conftest.$ac_ext >&5
6194
6195ac_cv_lib_socket_connect=no
6196fi 6260fi
6197rm -f conftest.err conftest.$ac_objext \ 6261rm -f core conftest.err conftest.$ac_objext \
6198 conftest$ac_exeext conftest.$ac_ext 6262 conftest$ac_exeext conftest.$ac_ext
6199LIBS=$ac_check_lib_save_LIBS 6263LIBS=$ac_check_lib_save_LIBS
6200fi 6264fi
6201echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 6265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6202echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 6266$as_echo "$ac_cv_lib_posix_remove" >&6; }
6203if test $ac_cv_lib_socket_connect = yes; then 6267if test "x$ac_cv_lib_posix_remove" = xyes; then :
6204 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6268 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6205fi 6269fi
6206 6270
6207 fi 6271 fi
6208 6272
6209 # Guillermo Gomez says -lposix is necessary on A/UX. 6273 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6210 echo "$as_me:$LINENO: checking for remove" >&5 6274 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6211echo $ECHO_N "checking for remove... $ECHO_C" >&6 6275if test "x$ac_cv_func_shmat" = xyes; then :
6212if test "${ac_cv_func_remove+set}" = set; then 6276
6213 echo $ECHO_N "(cached) $ECHO_C" >&6 6277fi
6278
6279 if test $ac_cv_func_shmat = no; then
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6281$as_echo_n "checking for shmat in -lipc... " >&6; }
6282if ${ac_cv_lib_ipc_shmat+:} false; then :
6283 $as_echo_n "(cached) " >&6
6214else 6284else
6215 cat >conftest.$ac_ext <<_ACEOF 6285 ac_check_lib_save_LIBS=$LIBS
6216/* confdefs.h. */ 6286LIBS="-lipc $LIBS"
6217_ACEOF
6218cat confdefs.h >>conftest.$ac_ext 6287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219cat >>conftest.$ac_ext <<_ACEOF
6220/* end confdefs.h. */ 6288/* end confdefs.h. */
6221/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6223#define remove innocuous_remove
6224 6289
6225/* System header to define __stub macros and hopefully few prototypes,
6226 which can conflict with char remove (); below.
6227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6228 <limits.h> exists even on freestanding compilers. */
6229
6230#ifdef __STDC__
6231# include <limits.h>
6232#else
6233# include <assert.h>
6234#endif
6235
6236#undef remove
6237
6238/* Override any gcc2 internal prototype to avoid an error. */ 6290/* Override any GCC internal prototype to avoid an error.
6291 Use char because int might match the return type of a GCC
6292 builtin and then its argument prototype would still apply. */
6239#ifdef __cplusplus 6293#ifdef __cplusplus
6240extern "C" 6294extern "C"
6241{
6242#endif 6295#endif
6243/* We use char because int might match the return type of a gcc2 6296char shmat ();
6244 builtin and then its argument prototype would still apply. */
6245char remove ();
6246/* The GNU C library defines this for functions which it implements
6247 to always fail with ENOSYS. Some functions are actually named
6248 something starting with __ and the normal name is an alias. */
6249#if defined (__stub_remove) || defined (__stub___remove)
6250choke me
6251#else
6252char (*f) () = remove;
6253#endif
6254#ifdef __cplusplus
6255}
6256#endif
6257
6258int 6297int
6259main () 6298main ()
6260{ 6299{
6261return f != remove; 6300return shmat ();
6262 ; 6301 ;
6263 return 0; 6302 return 0;
6264} 6303}
6265_ACEOF 6304_ACEOF
6266rm -f conftest.$ac_objext conftest$ac_exeext 6305if ac_fn_cxx_try_link "$LINENO"; then :
6267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6306 ac_cv_lib_ipc_shmat=yes
6268 (eval $ac_link) 2>conftest.er1
6269 ac_status=$?
6270 grep -v '^ *+' conftest.er1 >conftest.err
6271 rm -f conftest.er1
6272 cat conftest.err >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } &&
6275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; } &&
6281 { ac_try='test -s conftest$ac_exeext'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 (eval $ac_try) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; }; then
6287 ac_cv_func_remove=yes
6288else 6307else
6289 echo "$as_me: failed program was:" >&5 6308 ac_cv_lib_ipc_shmat=no
6290sed 's/^/| /' conftest.$ac_ext >&5
6291
6292ac_cv_func_remove=no
6293fi 6309fi
6294rm -f conftest.err conftest.$ac_objext \ 6310rm -f core conftest.err conftest.$ac_objext \
6295 conftest$ac_exeext conftest.$ac_ext 6311 conftest$ac_exeext conftest.$ac_ext
6296fi
6297echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6298echo "${ECHO_T}$ac_cv_func_remove" >&6
6299
6300 if test $ac_cv_func_remove = no; then
6301 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6302echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6303if test "${ac_cv_lib_posix_remove+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305else
6306 ac_check_lib_save_LIBS=$LIBS
6307LIBS="-lposix $LIBS"
6308cat >conftest.$ac_ext <<_ACEOF
6309/* confdefs.h. */
6310_ACEOF
6311cat confdefs.h >>conftest.$ac_ext
6312cat >>conftest.$ac_ext <<_ACEOF
6313/* end confdefs.h. */
6314
6315/* Override any gcc2 internal prototype to avoid an error. */
6316#ifdef __cplusplus
6317extern "C"
6318#endif
6319/* We use char because int might match the return type of a gcc2
6320 builtin and then its argument prototype would still apply. */
6321char remove ();
6322int
6323main ()
6324{
6325remove ();
6326 ;
6327 return 0;
6328}
6329_ACEOF
6330rm -f conftest.$ac_objext conftest$ac_exeext
6331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6332 (eval $ac_link) 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341 (eval $ac_try) 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; } &&
6345 { ac_try='test -s conftest$ac_exeext'
6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 (eval $ac_try) 2>&5
6348 ac_status=$?
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; }; then
6351 ac_cv_lib_posix_remove=yes
6352else
6353 echo "$as_me: failed program was:" >&5
6354sed 's/^/| /' conftest.$ac_ext >&5
6355
6356ac_cv_lib_posix_remove=no
6357fi
6358rm -f conftest.err conftest.$ac_objext \
6359 conftest$ac_exeext conftest.$ac_ext
6360LIBS=$ac_check_lib_save_LIBS 6312LIBS=$ac_check_lib_save_LIBS
6361fi 6313fi
6362echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6363echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6364if test $ac_cv_lib_posix_remove = yes; then
6365 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6366fi
6367
6368 fi
6369
6370 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6371 echo "$as_me:$LINENO: checking for shmat" >&5
6372echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6373if test "${ac_cv_func_shmat+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6375else
6376 cat >conftest.$ac_ext <<_ACEOF
6377/* confdefs.h. */
6378_ACEOF
6379cat confdefs.h >>conftest.$ac_ext
6380cat >>conftest.$ac_ext <<_ACEOF
6381/* end confdefs.h. */
6382/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6384#define shmat innocuous_shmat
6385
6386/* System header to define __stub macros and hopefully few prototypes,
6387 which can conflict with char shmat (); below.
6388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6389 <limits.h> exists even on freestanding compilers. */
6390
6391#ifdef __STDC__
6392# include <limits.h>
6393#else
6394# include <assert.h>
6395#endif
6396
6397#undef shmat
6398
6399/* Override any gcc2 internal prototype to avoid an error. */
6400#ifdef __cplusplus
6401extern "C"
6402{
6403#endif
6404/* We use char because int might match the return type of a gcc2
6405 builtin and then its argument prototype would still apply. */
6406char shmat ();
6407/* The GNU C library defines this for functions which it implements
6408 to always fail with ENOSYS. Some functions are actually named
6409 something starting with __ and the normal name is an alias. */
6410#if defined (__stub_shmat) || defined (__stub___shmat)
6411choke me
6412#else
6413char (*f) () = shmat;
6414#endif
6415#ifdef __cplusplus
6416}
6417#endif
6418
6419int
6420main ()
6421{
6422return f != shmat;
6423 ;
6424 return 0;
6425}
6426_ACEOF
6427rm -f conftest.$ac_objext conftest$ac_exeext
6428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>conftest.er1
6430 ac_status=$?
6431 grep -v '^ *+' conftest.er1 >conftest.err
6432 rm -f conftest.er1
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
6436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 (eval $ac_try) 2>&5
6439 ac_status=$?
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; } &&
6442 { ac_try='test -s conftest$ac_exeext'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; }; then
6448 ac_cv_func_shmat=yes
6449else
6450 echo "$as_me: failed program was:" >&5
6451sed 's/^/| /' conftest.$ac_ext >&5
6452
6453ac_cv_func_shmat=no
6454fi
6455rm -f conftest.err conftest.$ac_objext \
6456 conftest$ac_exeext conftest.$ac_ext
6457fi
6458echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6459echo "${ECHO_T}$ac_cv_func_shmat" >&6
6460
6461 if test $ac_cv_func_shmat = no; then
6462 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6463echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6464if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466else
6467 ac_check_lib_save_LIBS=$LIBS
6468LIBS="-lipc $LIBS"
6469cat >conftest.$ac_ext <<_ACEOF
6470/* confdefs.h. */
6471_ACEOF
6472cat confdefs.h >>conftest.$ac_ext
6473cat >>conftest.$ac_ext <<_ACEOF
6474/* end confdefs.h. */
6475
6476/* Override any gcc2 internal prototype to avoid an error. */
6477#ifdef __cplusplus
6478extern "C"
6479#endif
6480/* We use char because int might match the return type of a gcc2
6481 builtin and then its argument prototype would still apply. */
6482char shmat ();
6483int
6484main ()
6485{
6486shmat ();
6487 ;
6488 return 0;
6489}
6490_ACEOF
6491rm -f conftest.$ac_objext conftest$ac_exeext
6492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6493 (eval $ac_link) 2>conftest.er1
6494 ac_status=$?
6495 grep -v '^ *+' conftest.er1 >conftest.err
6496 rm -f conftest.er1
6497 cat conftest.err >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } &&
6500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 (eval $ac_try) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; } &&
6506 { ac_try='test -s conftest$ac_exeext'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 (eval $ac_try) 2>&5
6509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; }; then
6512 ac_cv_lib_ipc_shmat=yes
6513else
6514 echo "$as_me: failed program was:" >&5
6515sed 's/^/| /' conftest.$ac_ext >&5
6516
6517ac_cv_lib_ipc_shmat=no
6518fi
6519rm -f conftest.err conftest.$ac_objext \
6520 conftest$ac_exeext conftest.$ac_ext
6521LIBS=$ac_check_lib_save_LIBS
6522fi
6523echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6524echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 6315$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6525if test $ac_cv_lib_ipc_shmat = yes; then 6316if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
6526 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6317 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6527fi 6318fi
6528 6319
6529 fi 6320 fi
6530 fi 6321 fi
6536 # check for ICE first), but we must link in the order -lSM -lICE or 6327 # check for ICE first), but we must link in the order -lSM -lICE or
6537 # we get undefined symbols. So assume we have SM if we have ICE. 6328 # we get undefined symbols. So assume we have SM if we have ICE.
6538 # These have to be linked with before -lX11, unlike the other 6329 # These have to be linked with before -lX11, unlike the other
6539 # libraries we check for below, so use a different variable. 6330 # libraries we check for below, so use a different variable.
6540 # John Interrante, Karl Berry 6331 # John Interrante, Karl Berry
6541 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6542echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 6333$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6543if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 6334if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
6544 echo $ECHO_N "(cached) $ECHO_C" >&6 6335 $as_echo_n "(cached) " >&6
6545else 6336else
6546 ac_check_lib_save_LIBS=$LIBS 6337 ac_check_lib_save_LIBS=$LIBS
6547LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6338LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6548cat >conftest.$ac_ext <<_ACEOF
6549/* confdefs.h. */
6550_ACEOF
6551cat confdefs.h >>conftest.$ac_ext 6339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552cat >>conftest.$ac_ext <<_ACEOF
6553/* end confdefs.h. */ 6340/* end confdefs.h. */
6554 6341
6555/* Override any gcc2 internal prototype to avoid an error. */ 6342/* Override any GCC internal prototype to avoid an error.
6343 Use char because int might match the return type of a GCC
6344 builtin and then its argument prototype would still apply. */
6556#ifdef __cplusplus 6345#ifdef __cplusplus
6557extern "C" 6346extern "C"
6558#endif 6347#endif
6559/* We use char because int might match the return type of a gcc2
6560 builtin and then its argument prototype would still apply. */
6561char IceConnectionNumber (); 6348char IceConnectionNumber ();
6562int 6349int
6563main () 6350main ()
6564{ 6351{
6565IceConnectionNumber (); 6352return IceConnectionNumber ();
6566 ; 6353 ;
6567 return 0; 6354 return 0;
6568} 6355}
6569_ACEOF 6356_ACEOF
6570rm -f conftest.$ac_objext conftest$ac_exeext 6357if ac_fn_cxx_try_link "$LINENO"; then :
6571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572 (eval $ac_link) 2>conftest.er1
6573 ac_status=$?
6574 grep -v '^ *+' conftest.er1 >conftest.err
6575 rm -f conftest.er1
6576 cat conftest.err >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 (eval $ac_try) 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; } &&
6585 { ac_try='test -s conftest$ac_exeext'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 ac_cv_lib_ICE_IceConnectionNumber=yes 6358 ac_cv_lib_ICE_IceConnectionNumber=yes
6592else 6359else
6593 echo "$as_me: failed program was:" >&5
6594sed 's/^/| /' conftest.$ac_ext >&5
6595
6596ac_cv_lib_ICE_IceConnectionNumber=no 6360 ac_cv_lib_ICE_IceConnectionNumber=no
6597fi 6361fi
6598rm -f conftest.err conftest.$ac_objext \ 6362rm -f core conftest.err conftest.$ac_objext \
6599 conftest$ac_exeext conftest.$ac_ext 6363 conftest$ac_exeext conftest.$ac_ext
6600LIBS=$ac_check_lib_save_LIBS 6364LIBS=$ac_check_lib_save_LIBS
6601fi 6365fi
6602echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6603echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 6367$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6604if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 6368if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
6605 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 6369 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6606fi 6370fi
6607 6371
6608 LDFLAGS=$ac_save_LDFLAGS 6372 LDFLAGS=$ac_save_LDFLAGS
6609 6373
6610fi 6374fi
6611 6375
6612 6376
6613 6377if test -n "$ac_tool_prefix"; then
6614if test x$support_xpm = xyes; then 6378 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6615 6379set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6616 6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 6381$as_echo_n "checking for $ac_word... " >&6; }
6618# Initialize some more variables set by options. 6382if ${ac_cv_path_PKG_CONFIG+:} false; then :
6619# The variables have the same names as the options, with 6383 $as_echo_n "(cached) " >&6
6620# dashes changed to underlines.
6621
6622# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6623# paths, otherwise set no_xpm=yes.
6624# Uses ac_ vars as temps to allow command line to override cache and checks.
6625echo "$as_me:$LINENO: checking for libXpm" >&5
6626echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6627
6628
6629# Check whether --with-xpm_includes or --without-xpm_includes was given.
6630if test "${with_xpm_includes+set}" = set; then
6631 withval="$with_xpm_includes"
6632 xpm_includes="$withval"
6633else 6384else
6634 xpm_includes=NO 6385 case $PKG_CONFIG in
6386 [\\/]* | ?:[\\/]*)
6387 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6388 ;;
6389 *)
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391for as_dir in $PATH
6392do
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6397 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 break 2
6400 fi
6401done
6402 done
6403IFS=$as_save_IFS
6404
6405 ;;
6406esac
6635fi; 6407fi
6636 6408PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6637# Check whether --with-xpm_library or --without-xpm_library was given. 6409if test -n "$PKG_CONFIG"; then
6638if test "${with_xpm_library+set}" = set; then 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6639 withval="$with_xpm_library" 6411$as_echo "$PKG_CONFIG" >&6; }
6640 xpm_libraries="$withval"
6641else 6412else
6642 xpm_libraries=NO 6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414$as_echo "no" >&6; }
6643fi; 6415fi
6644 6416
6645# --without-xpm overrides everything else, but does not touch the cache.
6646 6417
6647# Check whether --with-xpm or --without-xpm was given.
6648if test "${with_xpm+set}" = set; then
6649 withval="$with_xpm"
6650
6651fi; 6418fi
6652if test "$with_xpm" = no; then 6419if test -z "$ac_cv_path_PKG_CONFIG"; then
6653 have_xpm=disabled 6420 ac_pt_PKG_CONFIG=$PKG_CONFIG
6421 # Extract the first word of "pkg-config", so it can be a program name with args.
6422set dummy pkg-config; ac_word=$2
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424$as_echo_n "checking for $ac_word... " >&6; }
6425if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6426 $as_echo_n "(cached) " >&6
6654else 6427else
6655 if test "${ac_cv_have_xpm+set}" = set; then 6428 case $ac_pt_PKG_CONFIG in
6656 echo $ECHO_N "(cached) $ECHO_C" >&6 6429 [\\/]* | ?:[\\/]*)
6657else 6430 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6431 ;;
6432 *)
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6440 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 break 2
6443 fi
6444done
6445 done
6446IFS=$as_save_IFS
6658 6447
6659 vt_xpm_include_X11=no 6448 ;;
6660 if test -n "$xpm_includes"; then 6449esac
6661 vt_xpm_includes=$xpm_includes 6450fi
6451ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6452if test -n "$ac_pt_PKG_CONFIG"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6454$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6455else
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457$as_echo "no" >&6; }
6458fi
6459
6460 if test "x$ac_pt_PKG_CONFIG" = x; then
6461 PKG_CONFIG="no"
6662 else 6462 else
6663 vt_xpm_includes=NO 6463 case $cross_compiling:$ac_tool_warned in
6464yes:)
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6467ac_tool_warned=yes ;;
6468esac
6469 PKG_CONFIG=$ac_pt_PKG_CONFIG
6664 fi 6470 fi
6665 if test -n "$xpm_libraries"; then 6471else
6666 vt_xpm_libraries=$xpm_libraries 6472 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6473fi
6474
6475
6476image_lib=none
6477
6478PIXBUF_CFLAGS=
6479PIXBUF_LIBS=
6480
6481if test x$support_pixbuf = xyes; then
6482
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0" >&5
6484$as_echo_n "checking for gdk-pixbuf-2.0... " >&6; }
6485 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
6486 PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`"
6487 PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`"
6488
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6490$as_echo "ok" >&6; }
6491
6492 image_lib=gdk-pixbuf
6493
6494$as_echo "#define HAVE_PIXBUF 1" >>confdefs.h
6495
6496
6667 else 6497 else
6668 vt_xpm_libraries=NO 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499$as_echo "no" >&6; }
6500 :
6669 fi 6501 fi
6670 6502
6671 if test "$vt_xpm_includes" = NO; then 6503fi
6672 # Guess where to find xpm.h
6673 6504
6674ac_save_CPPFLAGS="$CPPFLAGS" 6505
6506
6507
6508STARTUP_NOTIFICATION_CFLAGS=
6509STARTUP_NOTIFICATION_LIBS=
6510
6511if test x$support_startup_notification = xyes; then
6512
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0" >&5
6514$as_echo_n "checking for libstartup-notification-1.0... " >&6; }
6515 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
6516 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`"
6517 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`"
6518
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6520$as_echo "ok" >&6; }
6521
6522
6523$as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
6524
6525
6526 else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528$as_echo "no" >&6; }
6529 :
6530 fi
6531
6532fi
6533
6534
6535
6536
6537if test x$support_frills = xyes; then
6538
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmu" >&5
6540$as_echo_n "checking for xmu... " >&6; }
6541 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then
6542 XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`"
6543 XMU_LIBS="`$PKG_CONFIG --libs xmu`"
6544
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6546$as_echo "ok" >&6; }
6547
6548 X_LIBS="$XMU_LIBS $X_LIBS"
6675CPPFLAGS="$CPPFLAGS $X_CFLAGS" 6549 CPPFLAGS="$CPPFLAGS $XMU_CFLAGS"
6676 6550
6677 # First, try using that file with no special directory specified. 6551$as_echo "#define HAVE_XMU 1" >>confdefs.h
6678cat >conftest.$ac_ext <<_ACEOF 6552
6679/* confdefs.h. */ 6553
6554 else
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556$as_echo "no" >&6; }
6557 :
6558 fi
6559
6560fi
6561
6562for ac_header in \
6563 sys/byteorder.h \
6564 sys/ioctl.h \
6565 sys/sockio.h \
6566 sys/strredir.h \
6567 stdint.h \
6568 wchar.h \
6569
6570do :
6571 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6572ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6573if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6574 cat >>confdefs.h <<_ACEOF
6575#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6680_ACEOF 6576_ACEOF
6577
6578fi
6579
6580done
6581
6582
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
6584$as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
6585if ${rxvt_cv_xlib_illegal_access+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587else
6681cat confdefs.h >>conftest.$ac_ext 6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682cat >>conftest.$ac_ext <<_ACEOF
6683/* end confdefs.h. */ 6589/* end confdefs.h. */
6590
6591#define XLIB_ILLEGAL_ACCESS
6684#include <X11/xpm.h> 6592#include <X11/Xlib.h>
6685_ACEOF
6686if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6688 ac_status=$?
6689 grep -v '^ *+' conftest.er1 >conftest.err
6690 rm -f conftest.er1
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } >/dev/null; then
6694 if test -s conftest.err; then
6695 ac_cpp_err=$ac_cxx_preproc_warn_flag
6696 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6697 else
6698 ac_cpp_err=
6699 fi
6700else
6701 ac_cpp_err=yes
6702fi
6703if test -z "$ac_cpp_err"; then
6704 # We can compile using X headers with no special include directory.
6705vt_xpm_includes=
6706vt_xpm_include_X11=yes
6707else
6708 echo "$as_me: failed program was:" >&5
6709sed 's/^/| /' conftest.$ac_ext >&5
6710
6711 CPPFLAGS="$ac_save_CPPFLAGS"
6712# Look for the header file in a standard set of common directories.
6713 for ac_dir in \
6714 /usr/X11/include \
6715 /usr/X11R6/include \
6716 /usr/X11R5/include \
6717 /usr/X11R4/include \
6718 \
6719 /usr/include/X11 \
6720 /usr/include/X11R6 \
6721 /usr/include/X11R5 \
6722 /usr/include/X11R4 \
6723 \
6724 /usr/local/X11/include \
6725 /usr/local/X11R6/include \
6726 /usr/local/X11R5/include \
6727 /usr/local/X11R4/include \
6728 \
6729 /usr/local/include/X11 \
6730 /usr/local/include/X11R6 \
6731 /usr/local/include/X11R5 \
6732 /usr/local/include/X11R4 \
6733 \
6734 /usr/X386/include \
6735 /usr/x386/include \
6736 /usr/XFree86/include/X11 \
6737 \
6738 /usr/include \
6739 /usr/local/include \
6740 /usr/unsupported/include \
6741 /usr/athena/include \
6742 /usr/local/x11r5/include \
6743 /usr/lpp/Xamples/include \
6744 \
6745 /usr/openwin/include \
6746 /usr/openwin/share/include \
6747 ; \
6748 do
6749 if test -r "$ac_dir/X11/xpm.h"; then
6750 vt_xpm_includes="$ac_dir"
6751 vt_xpm_include_X11=yes
6752 break
6753 else
6754 if test -r "$ac_dir/xpm.h"; then
6755 vt_xpm_includes=$ac_dir
6756 break
6757 fi
6758 fi
6759 done
6760fi
6761rm -f conftest.err conftest.$ac_ext
6762fi
6763
6764if test "$vt_xpm_libraries" = NO; then
6765 # Check for the libraries.
6766
6767 # See if we find them without any special options.
6768 # Don't add to $LIBS permanently.
6769 ac_save_LIBS="$LIBS"
6770 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6771cat >conftest.$ac_ext <<_ACEOF
6772/* confdefs.h. */
6773_ACEOF
6774cat confdefs.h >>conftest.$ac_ext
6775cat >>conftest.$ac_ext <<_ACEOF
6776/* end confdefs.h. */
6777 6593
6778int 6594int
6779main () 6595main ()
6780{ 6596{
6781XpmReadFileToPixmap() 6597
6598 Display *dpy;
6599 dpy->xdefaults = (char *)0;
6600
6782 ; 6601 ;
6783 return 0; 6602 return 0;
6784} 6603}
6785_ACEOF 6604_ACEOF
6786rm -f conftest.$ac_objext conftest$ac_exeext 6605if ac_fn_cxx_try_compile "$LINENO"; then :
6787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6606 rxvt_cv_xlib_illegal_access=yes
6788 (eval $ac_link) 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } &&
6795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 (eval $ac_try) 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; } &&
6801 { ac_try='test -s conftest$ac_exeext'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 (eval $ac_try) 2>&5
6804 ac_status=$?
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; }; then
6807 LIBS="$ac_save_LIBS"
6808# We can link libXpm with no special library path.
6809vt_xpm_libraries=
6810else
6811 echo "$as_me: failed program was:" >&5
6812sed 's/^/| /' conftest.$ac_ext >&5
6813
6814LIBS="$ac_save_LIBS"
6815# First see if replacing the include by lib works.
6816for ac_dir in \
6817 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6818 /usr/X11/lib \
6819 /usr/X11R6/lib \
6820 /usr/X11R5/lib \
6821 /usr/X11R4/lib \
6822 \
6823 /usr/lib/X11 \
6824 /usr/lib/X11R6 \
6825 /usr/lib/X11R5 \
6826 /usr/lib/X11R4 \
6827 \
6828 /usr/local/X11/lib \
6829 /usr/local/X11R6/lib \
6830 /usr/local/X11R5/lib \
6831 /usr/local/X11R4/lib \
6832 \
6833 /usr/local/lib/X11 \
6834 /usr/local/lib/X11R6 \
6835 /usr/local/lib/X11R5 \
6836 /usr/local/lib/X11R4 \
6837 \
6838 /usr/X386/lib \
6839 /usr/x386/lib \
6840 /usr/XFree86/lib/X11 \
6841 \
6842 /usr/lib \
6843 /usr/local/lib \
6844 /usr/unsupported/lib \
6845 /usr/athena/lib \
6846 /usr/local/x11r5/lib \
6847 /usr/lpp/Xamples/lib \
6848 \
6849 /usr/openwin/lib \
6850 /usr/openwin/share/lib \
6851 ; \
6852do
6853 for ac_extension in a so sl; do
6854 if test -r $ac_dir/libXpm.$ac_extension; then
6855 vt_xpm_libraries=$ac_dir
6856 break 2
6857 fi
6858 done
6859done
6860fi
6861rm -f conftest.err conftest.$ac_objext \
6862 conftest$ac_exeext conftest.$ac_ext
6863fi
6864
6865
6866 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6867 ac_cv_have_xpm="have_xpm=no"
6868 else 6607else
6869 ac_cv_have_xpm="have_xpm=yes \ 6608 rxvt_cv_xlib_illegal_access=no
6870 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6871 vt_xpm_include_X11=$vt_xpm_include_X11"
6872 fi
6873fi
6874 eval "$ac_cv_have_xpm"
6875fi
6876 6609
6877if test "$have_xpm" != yes; then 6610fi
6878 echo "$as_me:$LINENO: result: $have_xpm" >&5 6611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879echo "${ECHO_T}$have_xpm" >&6 6612fi
6880 no_xpm=yes 6613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6881else 6614$as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6882 if test "$xpm_includes" != NO; then 6615if test x$rxvt_cv_xlib_illegal_access = xyes; then
6883 if test "$xpm_includes" = "$vt_xpm_includes"; then 6616
6884 if test -r "$xpm_includes/X11/xpm.h"; then 6617$as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6885 vt_xpm_include_X11=yes 6618
6886 fi 6619fi
6887 else 6620
6888 vt_xpm_include_X11=no 6621ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6889 if test -z "$xpm_includes"; then 6622if test "x$ac_cv_type_mode_t" = xyes; then :
6890 cat >conftest.$ac_ext <<_ACEOF 6623
6891/* confdefs.h. */
6892_ACEOF
6893cat confdefs.h >>conftest.$ac_ext
6894cat >>conftest.$ac_ext <<_ACEOF
6895/* end confdefs.h. */
6896#include <X11/xpm.h>
6897_ACEOF
6898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6900 ac_status=$?
6901 grep -v '^ *+' conftest.er1 >conftest.err
6902 rm -f conftest.er1
6903 cat conftest.err >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } >/dev/null; then
6906 if test -s conftest.err; then
6907 ac_cpp_err=$ac_cxx_preproc_warn_flag
6908 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6909 else 6624else
6910 ac_cpp_err=
6911 fi
6912else
6913 ac_cpp_err=yes
6914fi
6915if test -z "$ac_cpp_err"; then
6916 vt_xpm_include_X11=yes
6917else
6918 echo "$as_me: failed program was:" >&5
6919sed 's/^/| /' conftest.$ac_ext >&5
6920 6625
6921
6922fi
6923rm -f conftest.err conftest.$ac_ext
6924 else
6925 if test -r "$xpm_includes/X11/xpm.h"; then
6926 vt_xpm_include_X11=yes
6927 fi
6928 fi
6929 fi
6930 vt_xpm_includes=$xpm_includes
6931 fi
6932 if test "x$xpm_libraries" != xNO; then
6933 vt_xpm_libraries=$xpm_libraries
6934 fi
6935 # Update the cache value to reflect the command line values.
6936 ac_cv_have_xpm="have_xpm=yes \
6937 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6938 vt_xpm_include_X11=$vt_xpm_include_X11"
6939 eval "$ac_cv_have_xpm"
6940 echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6941echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
6942 if test -n "$vt_xpm_includes"; then
6943 XPM_CPPFLAGS="-DHAVE_LIBXPM"
6944 fi
6945 if test -n "$vt_xpm_includes"; then
6946 XPM_CFLAGS="-I$vt_xpm_includes"
6947 fi
6948 XPM_LIBS="-lXpm"
6949 if test -n "$vt_xpm_libraries"; then
6950 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6951 fi
6952 if test "x$vt_xpm_include_X11" = xyes; then
6953
6954cat >>confdefs.h <<\_ACEOF 6626cat >>confdefs.h <<_ACEOF
6955#define XPM_INC_X11 1 6627#define mode_t int
6956_ACEOF 6628_ACEOF
6957 6629
6958 fi
6959fi 6630fi
6960 6631
6632ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6633if test "x$ac_cv_type_pid_t" = xyes; then :
6961 6634
6962
6963
6964
6965 if test x$no_xpm = xyes; then
6966 support_xpm=needsmanualspecification
6967 fi
6968fi
6969
6970echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6971echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6972if test "${ac_cv_header_sys_wait_h+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6974else 6635else
6975 cat >conftest.$ac_ext <<_ACEOF 6636
6976/* confdefs.h. */ 6637cat >>confdefs.h <<_ACEOF
6638#define pid_t int
6977_ACEOF 6639_ACEOF
6640
6641fi
6642
6643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6644$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6645if ${ac_cv_type_uid_t+:} false; then :
6646 $as_echo_n "(cached) " >&6
6647else
6978cat confdefs.h >>conftest.$ac_ext 6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979cat >>conftest.$ac_ext <<_ACEOF
6980/* end confdefs.h. */ 6649/* end confdefs.h. */
6981#include <sys/types.h> 6650#include <sys/types.h>
6982#include <sys/wait.h>
6983#ifndef WEXITSTATUS
6984# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6985#endif
6986#ifndef WIFEXITED
6987# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6988#endif
6989
6990int
6991main ()
6992{
6993 int s;
6994 wait (&s);
6995 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6996 ;
6997 return 0;
6998}
6999_ACEOF
7000rm -f conftest.$ac_objext
7001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7003 ac_status=$?
7004 grep -v '^ *+' conftest.er1 >conftest.err
7005 rm -f conftest.er1
7006 cat conftest.err >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; } &&
7015 { ac_try='test -s conftest.$ac_objext'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 (eval $ac_try) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; }; then
7021 ac_cv_header_sys_wait_h=yes
7022else
7023 echo "$as_me: failed program was:" >&5
7024sed 's/^/| /' conftest.$ac_ext >&5
7025
7026ac_cv_header_sys_wait_h=no
7027fi
7028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7029fi
7030echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7031echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7032if test $ac_cv_header_sys_wait_h = yes; then
7033
7034cat >>confdefs.h <<\_ACEOF
7035#define HAVE_SYS_WAIT_H 1
7036_ACEOF
7037
7038fi
7039
7040echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7041echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7042if test "${ac_cv_header_stdc+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7044else
7045 cat >conftest.$ac_ext <<_ACEOF
7046/* confdefs.h. */
7047_ACEOF
7048cat confdefs.h >>conftest.$ac_ext
7049cat >>conftest.$ac_ext <<_ACEOF
7050/* end confdefs.h. */
7051#include <stdlib.h>
7052#include <stdarg.h>
7053#include <string.h>
7054#include <float.h>
7055
7056int
7057main ()
7058{
7059
7060 ;
7061 return 0;
7062}
7063_ACEOF
7064rm -f conftest.$ac_objext
7065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066 (eval $ac_compile) 2>conftest.er1
7067 ac_status=$?
7068 grep -v '^ *+' conftest.er1 >conftest.err
7069 rm -f conftest.er1
7070 cat conftest.err >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } &&
7073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 (eval $ac_try) 2>&5
7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; } &&
7079 { ac_try='test -s conftest.$ac_objext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 (eval $ac_try) 2>&5
7082 ac_status=$?
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 ac_cv_header_stdc=yes
7086else
7087 echo "$as_me: failed program was:" >&5
7088sed 's/^/| /' conftest.$ac_ext >&5
7089
7090ac_cv_header_stdc=no
7091fi
7092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7093
7094if test $ac_cv_header_stdc = yes; then
7095 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7096 cat >conftest.$ac_ext <<_ACEOF
7097/* confdefs.h. */
7098_ACEOF
7099cat confdefs.h >>conftest.$ac_ext
7100cat >>conftest.$ac_ext <<_ACEOF
7101/* end confdefs.h. */
7102#include <string.h>
7103 6651
7104_ACEOF 6652_ACEOF
7105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7106 $EGREP "memchr" >/dev/null 2>&1; then 6654 $EGREP "uid_t" >/dev/null 2>&1; then :
7107 : 6655 ac_cv_type_uid_t=yes
7108else 6656else
7109 ac_cv_header_stdc=no 6657 ac_cv_type_uid_t=no
7110fi 6658fi
7111rm -f conftest* 6659rm -f conftest*
7112 6660
7113fi 6661fi
7114 6662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6663$as_echo "$ac_cv_type_uid_t" >&6; }
7115if test $ac_cv_header_stdc = yes; then 6664if test $ac_cv_type_uid_t = no; then
7116 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7117 cat >conftest.$ac_ext <<_ACEOF
7118/* confdefs.h. */
7119_ACEOF
7120cat confdefs.h >>conftest.$ac_ext
7121cat >>conftest.$ac_ext <<_ACEOF
7122/* end confdefs.h. */
7123#include <stdlib.h>
7124 6665
7125_ACEOF 6666$as_echo "#define uid_t int" >>confdefs.h
7126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7127 $EGREP "free" >/dev/null 2>&1; then
7128 :
7129else
7130 ac_cv_header_stdc=no
7131fi
7132rm -f conftest*
7133 6667
7134fi
7135 6668
7136if test $ac_cv_header_stdc = yes; then 6669$as_echo "#define gid_t int" >>confdefs.h
7137 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7138 if test "$cross_compiling" = yes; then
7139 :
7140else
7141 cat >conftest.$ac_ext <<_ACEOF
7142/* confdefs.h. */
7143_ACEOF
7144cat confdefs.h >>conftest.$ac_ext
7145cat >>conftest.$ac_ext <<_ACEOF
7146/* end confdefs.h. */
7147#include <ctype.h>
7148#if ((' ' & 0x0FF) == 0x020)
7149# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7150# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7151#else
7152# define ISLOWER(c) \
7153 (('a' <= (c) && (c) <= 'i') \
7154 || ('j' <= (c) && (c) <= 'r') \
7155 || ('s' <= (c) && (c) <= 'z'))
7156# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7157#endif
7158 6670
7159#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7160int
7161main ()
7162{
7163 int i;
7164 for (i = 0; i < 256; i++)
7165 if (XOR (islower (i), ISLOWER (i))
7166 || toupper (i) != TOUPPER (i))
7167 exit(2);
7168 exit (0);
7169}
7170_ACEOF
7171rm -f conftest$ac_exeext
7172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7173 (eval $ac_link) 2>&5
7174 ac_status=$?
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 (eval $ac_try) 2>&5
7179 ac_status=$?
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; }; then
7182 :
7183else
7184 echo "$as_me: program exited with status $ac_status" >&5
7185echo "$as_me: failed program was:" >&5
7186sed 's/^/| /' conftest.$ac_ext >&5
7187
7188( exit $ac_status )
7189ac_cv_header_stdc=no
7190fi 6671fi
7191rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7192fi
7193fi
7194fi
7195echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7196echo "${ECHO_T}$ac_cv_header_stdc" >&6
7197if test $ac_cv_header_stdc = yes; then
7198 6672
6673ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6674case $ac_cv_c_int16_t in #(
6675 no|yes) ;; #(
6676 *)
6677
7199cat >>confdefs.h <<\_ACEOF 6678cat >>confdefs.h <<_ACEOF
7200#define STDC_HEADERS 1 6679#define int16_t $ac_cv_c_int16_t
7201_ACEOF 6680_ACEOF
6681;;
6682esac
7202 6683
7203fi 6684ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6685case $ac_cv_c_uint16_t in #(
6686 no|yes) ;; #(
6687 *)
7204 6688
7205# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7206 6689
7207
7208
7209
7210
7211
7212
7213
7214
7215for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7216 inttypes.h stdint.h unistd.h
7217do
7218as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7219echo "$as_me:$LINENO: checking for $ac_header" >&5
7220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7221if eval "test \"\${$as_ac_Header+set}\" = set"; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7223else
7224 cat >conftest.$ac_ext <<_ACEOF
7225/* confdefs.h. */
7226_ACEOF
7227cat confdefs.h >>conftest.$ac_ext
7228cat >>conftest.$ac_ext <<_ACEOF 6690cat >>confdefs.h <<_ACEOF
7229/* end confdefs.h. */ 6691#define uint16_t $ac_cv_c_uint16_t
7230$ac_includes_default
7231
7232#include <$ac_header>
7233_ACEOF 6692_ACEOF
7234rm -f conftest.$ac_objext 6693;;
7235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6694 esac
7236 (eval $ac_compile) 2>conftest.er1
7237 ac_status=$?
7238 grep -v '^ *+' conftest.er1 >conftest.err
7239 rm -f conftest.er1
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } &&
7243 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245 (eval $ac_try) 2>&5
7246 ac_status=$?
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); }; } &&
7249 { ac_try='test -s conftest.$ac_objext'
7250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 (eval $ac_try) 2>&5
7252 ac_status=$?
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); }; }; then
7255 eval "$as_ac_Header=yes"
7256else
7257 echo "$as_me: failed program was:" >&5
7258sed 's/^/| /' conftest.$ac_ext >&5
7259 6695
7260eval "$as_ac_Header=no" 6696ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7261fi 6697case $ac_cv_c_int32_t in #(
7262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6698 no|yes) ;; #(
7263fi 6699 *)
7264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6700
7265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6701cat >>confdefs.h <<_ACEOF
7266if test `eval echo '${'$as_ac_Header'}'` = yes; then 6702#define int32_t $ac_cv_c_int32_t
6703_ACEOF
6704;;
6705esac
6706
6707ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6708case $ac_cv_c_uint32_t in #(
6709 no|yes) ;; #(
6710 *)
6711
6712$as_echo "#define _UINT32_T 1" >>confdefs.h
6713
6714
6715cat >>confdefs.h <<_ACEOF
6716#define uint32_t $ac_cv_c_uint32_t
6717_ACEOF
6718;;
6719 esac
6720
6721
6722for ac_func in unsetenv
6723do :
6724 ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6725if test "x$ac_cv_func_unsetenv" = xyes; then :
7267 cat >>confdefs.h <<_ACEOF 6726 cat >>confdefs.h <<_ACEOF
7268#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6727#define HAVE_UNSETENV 1
7269_ACEOF 6728_ACEOF
7270 6729
7271fi 6730fi
7272
7273done 6731done
7274 6732
7275 6733
7276 6734
6735support_utmp=yes
6736support_wtmp=yes
6737support_lastlog=yes
7277 6738
7278 6739# Check whether --enable-utmp was given.
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302for ac_header in \
7303 assert.h \
7304 fcntl.h \
7305 grp.h \
7306 libc.h \
7307 lastlog.h \
7308 stdarg.h \
7309 stdlib.h \
7310 string.h \
7311 termios.h \
7312 unistd.h \
7313 sys/byteorder.h \
7314 sys/ioctl.h \
7315 sys/select.h \
7316 sys/sockio.h \
7317 sys/strredir.h \
7318 sys/stropts.h \
7319 sys/time.h \
7320 utmp.h \
7321 utmpx.h \
7322 stdint.h \
7323 pty.h \
7324 util.h \
7325 libutil.h \
7326 wchar.h \
7327 cwchar \
7328 clocale \
7329
7330do
7331as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7332if eval "test \"\${$as_ac_Header+set}\" = set"; then
7333 echo "$as_me:$LINENO: checking for $ac_header" >&5
7334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7335if eval "test \"\${$as_ac_Header+set}\" = set"; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337fi
7338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7339echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7340else
7341 # Is the header compilable?
7342echo "$as_me:$LINENO: checking $ac_header usability" >&5
7343echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7344cat >conftest.$ac_ext <<_ACEOF
7345/* confdefs.h. */
7346_ACEOF
7347cat confdefs.h >>conftest.$ac_ext
7348cat >>conftest.$ac_ext <<_ACEOF
7349/* end confdefs.h. */
7350$ac_includes_default
7351#include <$ac_header>
7352_ACEOF
7353rm -f conftest.$ac_objext
7354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7355 (eval $ac_compile) 2>conftest.er1
7356 ac_status=$?
7357 grep -v '^ *+' conftest.er1 >conftest.err
7358 rm -f conftest.er1
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } &&
7362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 (eval $ac_try) 2>&5
7365 ac_status=$?
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; } &&
7368 { ac_try='test -s conftest.$ac_objext'
7369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370 (eval $ac_try) 2>&5
7371 ac_status=$?
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); }; }; then
7374 ac_header_compiler=yes
7375else
7376 echo "$as_me: failed program was:" >&5
7377sed 's/^/| /' conftest.$ac_ext >&5
7378
7379ac_header_compiler=no
7380fi
7381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7382echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7383echo "${ECHO_T}$ac_header_compiler" >&6
7384
7385# Is the header present?
7386echo "$as_me:$LINENO: checking $ac_header presence" >&5
7387echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7388cat >conftest.$ac_ext <<_ACEOF
7389/* confdefs.h. */
7390_ACEOF
7391cat confdefs.h >>conftest.$ac_ext
7392cat >>conftest.$ac_ext <<_ACEOF
7393/* end confdefs.h. */
7394#include <$ac_header>
7395_ACEOF
7396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7398 ac_status=$?
7399 grep -v '^ *+' conftest.er1 >conftest.err
7400 rm -f conftest.er1
7401 cat conftest.err >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } >/dev/null; then
7404 if test -s conftest.err; then
7405 ac_cpp_err=$ac_cxx_preproc_warn_flag
7406 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7407 else
7408 ac_cpp_err=
7409 fi
7410else
7411 ac_cpp_err=yes
7412fi
7413if test -z "$ac_cpp_err"; then
7414 ac_header_preproc=yes
7415else
7416 echo "$as_me: failed program was:" >&5
7417sed 's/^/| /' conftest.$ac_ext >&5
7418
7419 ac_header_preproc=no
7420fi
7421rm -f conftest.err conftest.$ac_ext
7422echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7423echo "${ECHO_T}$ac_header_preproc" >&6
7424
7425# So? What about this header?
7426case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7427 yes:no: )
7428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7429echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7431echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7432 ac_header_preproc=yes
7433 ;;
7434 no:yes:* )
7435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7436echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7438echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7440echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7442echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7444echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7446echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7447 (
7448 cat <<\_ASBOX
7449## ------------------------------------------ ##
7450## Report this to the AC_PACKAGE_NAME lists. ##
7451## ------------------------------------------ ##
7452_ASBOX
7453 ) |
7454 sed "s/^/$as_me: WARNING: /" >&2
7455 ;;
7456esac
7457echo "$as_me:$LINENO: checking for $ac_header" >&5
7458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7459if eval "test \"\${$as_ac_Header+set}\" = set"; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7461else
7462 eval "$as_ac_Header=\$ac_header_preproc"
7463fi
7464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7466
7467fi
7468if test `eval echo '${'$as_ac_Header'}'` = yes; then
7469 cat >>confdefs.h <<_ACEOF
7470#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7471_ACEOF
7472
7473fi
7474
7475done
7476
7477
7478echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7479echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7480if test "${ac_cv_header_time+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482else
7483 cat >conftest.$ac_ext <<_ACEOF
7484/* confdefs.h. */
7485_ACEOF
7486cat confdefs.h >>conftest.$ac_ext
7487cat >>conftest.$ac_ext <<_ACEOF
7488/* end confdefs.h. */
7489#include <sys/types.h>
7490#include <sys/time.h>
7491#include <time.h>
7492
7493int
7494main ()
7495{
7496if ((struct tm *) 0)
7497return 0;
7498 ;
7499 return 0;
7500}
7501_ACEOF
7502rm -f conftest.$ac_objext
7503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7504 (eval $ac_compile) 2>conftest.er1
7505 ac_status=$?
7506 grep -v '^ *+' conftest.er1 >conftest.err
7507 rm -f conftest.er1
7508 cat conftest.err >&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); } &&
7511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513 (eval $ac_try) 2>&5
7514 ac_status=$?
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }; } &&
7517 { ac_try='test -s conftest.$ac_objext'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519 (eval $ac_try) 2>&5
7520 ac_status=$?
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7523 ac_cv_header_time=yes
7524else
7525 echo "$as_me: failed program was:" >&5
7526sed 's/^/| /' conftest.$ac_ext >&5
7527
7528ac_cv_header_time=no
7529fi
7530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7531fi
7532echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7533echo "${ECHO_T}$ac_cv_header_time" >&6
7534if test $ac_cv_header_time = yes; then
7535
7536cat >>confdefs.h <<\_ACEOF
7537#define TIME_WITH_SYS_TIME 1
7538_ACEOF
7539
7540fi
7541
7542
7543echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7544echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
7545if test "${rxvt_cv_header_sysioctl+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547else
7548 cat >conftest.$ac_ext <<_ACEOF
7549/* confdefs.h. */
7550_ACEOF
7551cat confdefs.h >>conftest.$ac_ext
7552cat >>conftest.$ac_ext <<_ACEOF
7553/* end confdefs.h. */
7554#include <stdio.h>
7555#include <sys/ioctl.h>
7556#ifdef HAVE_TERMIOS_H
7557#include <termios.h>
7558#endif
7559int
7560main ()
7561{
7562int a = ECHO;
7563 ;
7564 return 0;
7565}
7566_ACEOF
7567rm -f conftest.$ac_objext
7568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7569 (eval $ac_compile) 2>conftest.er1
7570 ac_status=$?
7571 grep -v '^ *+' conftest.er1 >conftest.err
7572 rm -f conftest.er1
7573 cat conftest.err >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } &&
7576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578 (eval $ac_try) 2>&5
7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; } &&
7582 { ac_try='test -s conftest.$ac_objext'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 (eval $ac_try) 2>&5
7585 ac_status=$?
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7588 rxvt_cv_header_sysioctl=yes
7589else
7590 echo "$as_me: failed program was:" >&5
7591sed 's/^/| /' conftest.$ac_ext >&5
7592
7593rxvt_cv_header_sysioctl=no
7594fi
7595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7596fi
7597echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7598echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7599
7600if test -n "$GCC"; then
7601 LDARG="-Wl,"
7602else
7603 LDARG=""
7604fi
7605R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7606
7607ac_save_CFLAGS=$CFLAGS
7608ac_save_LIBS=$LIBS
7609CFLAGS="$CFLAGS $X_CFLAGS"
7610LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7611echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7612echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
7613if test "${rxvt_cv_rpath+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7615else
7616 if test "$cross_compiling" = yes; then
7617 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7618echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7619else
7620 cat >conftest.$ac_ext <<_ACEOF
7621/* confdefs.h. */
7622_ACEOF
7623cat confdefs.h >>conftest.$ac_ext
7624cat >>conftest.$ac_ext <<_ACEOF
7625/* end confdefs.h. */
7626
7627main()
7628{
7629 exit(0);
7630 (void) XOpenDisplay("foobar");
7631}
7632_ACEOF
7633rm -f conftest$ac_exeext
7634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>&5
7636 ac_status=$?
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 (eval $ac_try) 2>&5
7641 ac_status=$?
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
7644 rxvt_cv_rpath=yes
7645else
7646 echo "$as_me: program exited with status $ac_status" >&5
7647echo "$as_me: failed program was:" >&5
7648sed 's/^/| /' conftest.$ac_ext >&5
7649
7650( exit $ac_status )
7651rxvt_cv_rpath=no
7652fi
7653rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7654fi
7655fi
7656echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7657echo "${ECHO_T}$rxvt_cv_rpath" >&6
7658if test x$rxvt_cv_rpath != xyes; then
7659 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7660 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7661 echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7662echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
7663if test "${rxvt_cv_R+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666 if test "$cross_compiling" = yes; then
7667 rxvt_cv_R=no
7668else
7669 cat >conftest.$ac_ext <<_ACEOF
7670/* confdefs.h. */
7671_ACEOF
7672cat confdefs.h >>conftest.$ac_ext
7673cat >>conftest.$ac_ext <<_ACEOF
7674/* end confdefs.h. */
7675
7676main()
7677{
7678 exit(0);
7679 (void) XOpenDisplay("foobar");
7680}
7681_ACEOF
7682rm -f conftest$ac_exeext
7683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7684 (eval $ac_link) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 (eval $ac_try) 2>&5
7690 ac_status=$?
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; }; then
7693 rxvt_cv_R=yes
7694else
7695 echo "$as_me: program exited with status $ac_status" >&5
7696echo "$as_me: failed program was:" >&5
7697sed 's/^/| /' conftest.$ac_ext >&5
7698
7699( exit $ac_status )
7700rxvt_cv_R=no
7701fi
7702rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7703fi
7704fi
7705echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7706echo "${ECHO_T}$rxvt_cv_R" >&6
7707 if test x$rxvt_cv_R != xyes; then
7708 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7709 fi
7710fi
7711
7712echo "$as_me:$LINENO: checking for XPointer" >&5
7713echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7714if test "${rxvt_cv_xpointer+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7716else
7717 cat >conftest.$ac_ext <<_ACEOF
7718/* confdefs.h. */
7719_ACEOF
7720cat confdefs.h >>conftest.$ac_ext
7721cat >>conftest.$ac_ext <<_ACEOF
7722/* end confdefs.h. */
7723#include <X11/Xlib.h>
7724int
7725main ()
7726{
7727XPointer dummy;
7728 ;
7729 return 0;
7730}
7731_ACEOF
7732rm -f conftest.$ac_objext
7733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7734 (eval $ac_compile) 2>conftest.er1
7735 ac_status=$?
7736 grep -v '^ *+' conftest.er1 >conftest.err
7737 rm -f conftest.er1
7738 cat conftest.err >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } &&
7741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743 (eval $ac_try) 2>&5
7744 ac_status=$?
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; } &&
7747 { ac_try='test -s conftest.$ac_objext'
7748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 (eval $ac_try) 2>&5
7750 ac_status=$?
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); }; }; then
7753 rxvt_cv_xpointer=yes
7754else
7755 echo "$as_me: failed program was:" >&5
7756sed 's/^/| /' conftest.$ac_ext >&5
7757
7758rxvt_cv_xpointer=no
7759fi
7760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7761fi
7762echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7763echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7764if test x$rxvt_cv_xpointer = xyes; then
7765
7766cat >>confdefs.h <<\_ACEOF
7767#define HAVE_XPOINTER 1
7768_ACEOF
7769
7770fi
7771LIBS=$ac_save_LIBS
7772CFLAGS=$ac_save_CFLAGS
7773
7774
7775echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7776echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7777if test "${ac_cv_c_const+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7779else
7780 cat >conftest.$ac_ext <<_ACEOF
7781/* confdefs.h. */
7782_ACEOF
7783cat confdefs.h >>conftest.$ac_ext
7784cat >>conftest.$ac_ext <<_ACEOF
7785/* end confdefs.h. */
7786
7787int
7788main ()
7789{
7790/* FIXME: Include the comments suggested by Paul. */
7791#ifndef __cplusplus
7792 /* Ultrix mips cc rejects this. */
7793 typedef int charset[2];
7794 const charset x;
7795 /* SunOS 4.1.1 cc rejects this. */
7796 char const *const *ccp;
7797 char **p;
7798 /* NEC SVR4.0.2 mips cc rejects this. */
7799 struct point {int x, y;};
7800 static struct point const zero = {0,0};
7801 /* AIX XL C 1.02.0.0 rejects this.
7802 It does not let you subtract one const X* pointer from another in
7803 an arm of an if-expression whose if-part is not a constant
7804 expression */
7805 const char *g = "string";
7806 ccp = &g + (g ? g-g : 0);
7807 /* HPUX 7.0 cc rejects these. */
7808 ++ccp;
7809 p = (char**) ccp;
7810 ccp = (char const *const *) p;
7811 { /* SCO 3.2v4 cc rejects this. */
7812 char *t;
7813 char const *s = 0 ? (char *) 0 : (char const *) 0;
7814
7815 *t++ = 0;
7816 }
7817 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7818 int x[] = {25, 17};
7819 const int *foo = &x[0];
7820 ++foo;
7821 }
7822 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7823 typedef const int *iptr;
7824 iptr p = 0;
7825 ++p;
7826 }
7827 { /* AIX XL C 1.02.0.0 rejects this saying
7828 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7829 struct s { int j; const int *ap[3]; };
7830 struct s *b; b->j = 5;
7831 }
7832 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7833 const int foo = 10;
7834 }
7835#endif
7836
7837 ;
7838 return 0;
7839}
7840_ACEOF
7841rm -f conftest.$ac_objext
7842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7843 (eval $ac_compile) 2>conftest.er1
7844 ac_status=$?
7845 grep -v '^ *+' conftest.er1 >conftest.err
7846 rm -f conftest.er1
7847 cat conftest.err >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852 (eval $ac_try) 2>&5
7853 ac_status=$?
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; } &&
7856 { ac_try='test -s conftest.$ac_objext'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 (eval $ac_try) 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; }; then
7862 ac_cv_c_const=yes
7863else
7864 echo "$as_me: failed program was:" >&5
7865sed 's/^/| /' conftest.$ac_ext >&5
7866
7867ac_cv_c_const=no
7868fi
7869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7870fi
7871echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7872echo "${ECHO_T}$ac_cv_c_const" >&6
7873if test $ac_cv_c_const = no; then
7874
7875cat >>confdefs.h <<\_ACEOF
7876#define const
7877_ACEOF
7878
7879fi
7880
7881echo "$as_me:$LINENO: checking for inline" >&5
7882echo $ECHO_N "checking for inline... $ECHO_C" >&6
7883if test "${ac_cv_c_inline+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7885else
7886 ac_cv_c_inline=no
7887for ac_kw in inline __inline__ __inline; do
7888 cat >conftest.$ac_ext <<_ACEOF
7889/* confdefs.h. */
7890_ACEOF
7891cat confdefs.h >>conftest.$ac_ext
7892cat >>conftest.$ac_ext <<_ACEOF
7893/* end confdefs.h. */
7894#ifndef __cplusplus
7895typedef int foo_t;
7896static $ac_kw foo_t static_foo () {return 0; }
7897$ac_kw foo_t foo () {return 0; }
7898#endif
7899
7900_ACEOF
7901rm -f conftest.$ac_objext
7902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7903 (eval $ac_compile) 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 (eval $ac_try) 2>&5
7913 ac_status=$?
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; } &&
7916 { ac_try='test -s conftest.$ac_objext'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918 (eval $ac_try) 2>&5
7919 ac_status=$?
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7922 ac_cv_c_inline=$ac_kw; break
7923else
7924 echo "$as_me: failed program was:" >&5
7925sed 's/^/| /' conftest.$ac_ext >&5
7926
7927fi
7928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7929done
7930
7931fi
7932echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7933echo "${ECHO_T}$ac_cv_c_inline" >&6
7934
7935
7936case $ac_cv_c_inline in
7937 inline | yes) ;;
7938 *)
7939 case $ac_cv_c_inline in
7940 no) ac_val=;;
7941 *) ac_val=$ac_cv_c_inline;;
7942 esac
7943 cat >>confdefs.h <<_ACEOF
7944#ifndef __cplusplus
7945#define inline $ac_val
7946#endif
7947_ACEOF
7948 ;;
7949esac
7950
7951
7952
7953echo "$as_me:$LINENO: checking for mode_t" >&5
7954echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7955if test "${ac_cv_type_mode_t+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7957else
7958 cat >conftest.$ac_ext <<_ACEOF
7959/* confdefs.h. */
7960_ACEOF
7961cat confdefs.h >>conftest.$ac_ext
7962cat >>conftest.$ac_ext <<_ACEOF
7963/* end confdefs.h. */
7964$ac_includes_default
7965int
7966main ()
7967{
7968if ((mode_t *) 0)
7969 return 0;
7970if (sizeof (mode_t))
7971 return 0;
7972 ;
7973 return 0;
7974}
7975_ACEOF
7976rm -f conftest.$ac_objext
7977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7978 (eval $ac_compile) 2>conftest.er1
7979 ac_status=$?
7980 grep -v '^ *+' conftest.er1 >conftest.err
7981 rm -f conftest.er1
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } &&
7985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 (eval $ac_try) 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; } &&
7991 { ac_try='test -s conftest.$ac_objext'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 (eval $ac_try) 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 ac_cv_type_mode_t=yes
7998else
7999 echo "$as_me: failed program was:" >&5
8000sed 's/^/| /' conftest.$ac_ext >&5
8001
8002ac_cv_type_mode_t=no
8003fi
8004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8005fi
8006echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8007echo "${ECHO_T}$ac_cv_type_mode_t" >&6
8008if test $ac_cv_type_mode_t = yes; then
8009 :
8010else
8011
8012cat >>confdefs.h <<_ACEOF
8013#define mode_t int
8014_ACEOF
8015
8016fi
8017
8018echo "$as_me:$LINENO: checking for pid_t" >&5
8019echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8020if test "${ac_cv_type_pid_t+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8022else
8023 cat >conftest.$ac_ext <<_ACEOF
8024/* confdefs.h. */
8025_ACEOF
8026cat confdefs.h >>conftest.$ac_ext
8027cat >>conftest.$ac_ext <<_ACEOF
8028/* end confdefs.h. */
8029$ac_includes_default
8030int
8031main ()
8032{
8033if ((pid_t *) 0)
8034 return 0;
8035if (sizeof (pid_t))
8036 return 0;
8037 ;
8038 return 0;
8039}
8040_ACEOF
8041rm -f conftest.$ac_objext
8042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8043 (eval $ac_compile) 2>conftest.er1
8044 ac_status=$?
8045 grep -v '^ *+' conftest.er1 >conftest.err
8046 rm -f conftest.er1
8047 cat conftest.err >&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } &&
8050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 (eval $ac_try) 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try='test -s conftest.$ac_objext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_cv_type_pid_t=yes
8063else
8064 echo "$as_me: failed program was:" >&5
8065sed 's/^/| /' conftest.$ac_ext >&5
8066
8067ac_cv_type_pid_t=no
8068fi
8069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8070fi
8071echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8072echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8073if test $ac_cv_type_pid_t = yes; then
8074 :
8075else
8076
8077cat >>confdefs.h <<_ACEOF
8078#define pid_t int
8079_ACEOF
8080
8081fi
8082
8083echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8084echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
8085if test "${ac_cv_type_uid_t+set}" = set; then 6740if test "${enable_utmp+set}" = set; then :
8086 echo $ECHO_N "(cached) $ECHO_C" >&6 6741 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
8087else 6742 support_utmp=$enableval
8088 cat >conftest.$ac_ext <<_ACEOF
8089/* confdefs.h. */
8090_ACEOF
8091cat confdefs.h >>conftest.$ac_ext
8092cat >>conftest.$ac_ext <<_ACEOF
8093/* end confdefs.h. */
8094#include <sys/types.h>
8095
8096_ACEOF
8097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8098 $EGREP "uid_t" >/dev/null 2>&1; then
8099 ac_cv_type_uid_t=yes
8100else
8101 ac_cv_type_uid_t=no
8102fi
8103rm -f conftest*
8104
8105fi
8106echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8107echo "${ECHO_T}$ac_cv_type_uid_t" >&6
8108if test $ac_cv_type_uid_t = no; then
8109
8110cat >>confdefs.h <<\_ACEOF
8111#define uid_t int
8112_ACEOF
8113
8114
8115cat >>confdefs.h <<\_ACEOF
8116#define gid_t int
8117_ACEOF
8118
8119fi
8120
8121
8122echo "$as_me:$LINENO: checking for short" >&5
8123echo $ECHO_N "checking for short... $ECHO_C" >&6
8124if test "${ac_cv_type_short+set}" = set; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8126else
8127 cat >conftest.$ac_ext <<_ACEOF
8128/* confdefs.h. */
8129_ACEOF
8130cat confdefs.h >>conftest.$ac_ext
8131cat >>conftest.$ac_ext <<_ACEOF
8132/* end confdefs.h. */
8133$ac_includes_default
8134int
8135main ()
8136{
8137if ((short *) 0)
8138 return 0;
8139if (sizeof (short))
8140 return 0;
8141 ;
8142 return 0;
8143}
8144_ACEOF
8145rm -f conftest.$ac_objext
8146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8147 (eval $ac_compile) 2>conftest.er1
8148 ac_status=$?
8149 grep -v '^ *+' conftest.er1 >conftest.err
8150 rm -f conftest.er1
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } &&
8154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 (eval $ac_try) 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; } &&
8160 { ac_try='test -s conftest.$ac_objext'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 (eval $ac_try) 2>&5
8163 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 ac_cv_type_short=yes
8167else
8168 echo "$as_me: failed program was:" >&5
8169sed 's/^/| /' conftest.$ac_ext >&5
8170
8171ac_cv_type_short=no
8172fi
8173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8174fi
8175echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8176echo "${ECHO_T}$ac_cv_type_short" >&6
8177
8178echo "$as_me:$LINENO: checking size of short" >&5
8179echo $ECHO_N "checking size of short... $ECHO_C" >&6
8180if test "${ac_cv_sizeof_short+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8182else
8183 if test "$ac_cv_type_short" = yes; then
8184 # The cast to unsigned long works around a bug in the HP C Compiler
8185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8187 # This bug is HP SR number 8606223364.
8188 if test "$cross_compiling" = yes; then
8189 # Depending upon the size, compute the lo and hi bounds.
8190cat >conftest.$ac_ext <<_ACEOF
8191/* confdefs.h. */
8192_ACEOF
8193cat confdefs.h >>conftest.$ac_ext
8194cat >>conftest.$ac_ext <<_ACEOF
8195/* end confdefs.h. */
8196$ac_includes_default
8197int
8198main ()
8199{
8200static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
8201test_array [0] = 0
8202
8203 ;
8204 return 0;
8205}
8206_ACEOF
8207rm -f conftest.$ac_objext
8208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8209 (eval $ac_compile) 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 (eval $ac_try) 2>&5
8219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest.$ac_objext'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8228 ac_lo=0 ac_mid=0
8229 while :; do
8230 cat >conftest.$ac_ext <<_ACEOF
8231/* confdefs.h. */
8232_ACEOF
8233cat confdefs.h >>conftest.$ac_ext
8234cat >>conftest.$ac_ext <<_ACEOF
8235/* end confdefs.h. */
8236$ac_includes_default
8237int
8238main ()
8239{
8240static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8241test_array [0] = 0
8242
8243 ;
8244 return 0;
8245}
8246_ACEOF
8247rm -f conftest.$ac_objext
8248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8249 (eval $ac_compile) 2>conftest.er1
8250 ac_status=$?
8251 grep -v '^ *+' conftest.er1 >conftest.err
8252 rm -f conftest.er1
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } &&
8256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 (eval $ac_try) 2>&5
8259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try='test -s conftest.$ac_objext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 (eval $ac_try) 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 ac_hi=$ac_mid; break
8269else
8270 echo "$as_me: failed program was:" >&5
8271sed 's/^/| /' conftest.$ac_ext >&5
8272
8273ac_lo=`expr $ac_mid + 1`
8274 if test $ac_lo -le $ac_mid; then
8275 ac_lo= ac_hi=
8276 break
8277 fi
8278 ac_mid=`expr 2 '*' $ac_mid + 1`
8279fi
8280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8281 done
8282else
8283 echo "$as_me: failed program was:" >&5
8284sed 's/^/| /' conftest.$ac_ext >&5
8285
8286cat >conftest.$ac_ext <<_ACEOF
8287/* confdefs.h. */
8288_ACEOF
8289cat confdefs.h >>conftest.$ac_ext
8290cat >>conftest.$ac_ext <<_ACEOF
8291/* end confdefs.h. */
8292$ac_includes_default
8293int
8294main ()
8295{
8296static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
8297test_array [0] = 0
8298
8299 ;
8300 return 0;
8301}
8302_ACEOF
8303rm -f conftest.$ac_objext
8304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8305 (eval $ac_compile) 2>conftest.er1
8306 ac_status=$?
8307 grep -v '^ *+' conftest.er1 >conftest.err
8308 rm -f conftest.er1
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 (eval $ac_try) 2>&5
8315 ac_status=$?
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; } &&
8318 { ac_try='test -s conftest.$ac_objext'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 (eval $ac_try) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8324 ac_hi=-1 ac_mid=-1
8325 while :; do
8326 cat >conftest.$ac_ext <<_ACEOF
8327/* confdefs.h. */
8328_ACEOF
8329cat confdefs.h >>conftest.$ac_ext
8330cat >>conftest.$ac_ext <<_ACEOF
8331/* end confdefs.h. */
8332$ac_includes_default
8333int
8334main ()
8335{
8336static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
8337test_array [0] = 0
8338
8339 ;
8340 return 0;
8341}
8342_ACEOF
8343rm -f conftest.$ac_objext
8344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8345 (eval $ac_compile) 2>conftest.er1
8346 ac_status=$?
8347 grep -v '^ *+' conftest.er1 >conftest.err
8348 rm -f conftest.er1
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; } &&
8358 { ac_try='test -s conftest.$ac_objext'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 (eval $ac_try) 2>&5
8361 ac_status=$?
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 ac_lo=$ac_mid; break
8365else
8366 echo "$as_me: failed program was:" >&5
8367sed 's/^/| /' conftest.$ac_ext >&5
8368
8369ac_hi=`expr '(' $ac_mid ')' - 1`
8370 if test $ac_mid -le $ac_hi; then
8371 ac_lo= ac_hi=
8372 break
8373 fi
8374 ac_mid=`expr 2 '*' $ac_mid`
8375fi
8376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8377 done
8378else
8379 echo "$as_me: failed program was:" >&5
8380sed 's/^/| /' conftest.$ac_ext >&5
8381
8382ac_lo= ac_hi=
8383fi
8384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8385fi
8386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8387# Binary search between lo and hi bounds.
8388while test "x$ac_lo" != "x$ac_hi"; do
8389 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8390 cat >conftest.$ac_ext <<_ACEOF
8391/* confdefs.h. */
8392_ACEOF
8393cat confdefs.h >>conftest.$ac_ext
8394cat >>conftest.$ac_ext <<_ACEOF
8395/* end confdefs.h. */
8396$ac_includes_default
8397int
8398main ()
8399{
8400static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8401test_array [0] = 0
8402
8403 ;
8404 return 0;
8405}
8406_ACEOF
8407rm -f conftest.$ac_objext
8408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8409 (eval $ac_compile) 2>conftest.er1
8410 ac_status=$?
8411 grep -v '^ *+' conftest.er1 >conftest.err
8412 rm -f conftest.er1
8413 cat conftest.err >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } &&
8416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 (eval $ac_try) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; } &&
8422 { ac_try='test -s conftest.$ac_objext'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 (eval $ac_try) 2>&5
8425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; }; then
8428 ac_hi=$ac_mid
8429else
8430 echo "$as_me: failed program was:" >&5
8431sed 's/^/| /' conftest.$ac_ext >&5
8432
8433ac_lo=`expr '(' $ac_mid ')' + 1`
8434fi
8435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8436done
8437case $ac_lo in
8438?*) ac_cv_sizeof_short=$ac_lo;;
8439'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8440See \`config.log' for more details." >&5
8441echo "$as_me: error: cannot compute sizeof (short), 77
8442See \`config.log' for more details." >&2;}
8443 { (exit 1); exit 1; }; } ;;
8444esac
8445else
8446 if test "$cross_compiling" = yes; then
8447 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8448echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8449 { (exit 1); exit 1; }; }
8450else
8451 cat >conftest.$ac_ext <<_ACEOF
8452/* confdefs.h. */
8453_ACEOF
8454cat confdefs.h >>conftest.$ac_ext
8455cat >>conftest.$ac_ext <<_ACEOF
8456/* end confdefs.h. */
8457$ac_includes_default
8458long longval () { return (long) (sizeof (short)); }
8459unsigned long ulongval () { return (long) (sizeof (short)); }
8460#include <stdio.h>
8461#include <stdlib.h>
8462int
8463main ()
8464{
8465
8466 FILE *f = fopen ("conftest.val", "w");
8467 if (! f)
8468 exit (1);
8469 if (((long) (sizeof (short))) < 0)
8470 {
8471 long i = longval ();
8472 if (i != ((long) (sizeof (short))))
8473 exit (1);
8474 fprintf (f, "%ld\n", i);
8475 }
8476 else
8477 {
8478 unsigned long i = ulongval ();
8479 if (i != ((long) (sizeof (short))))
8480 exit (1);
8481 fprintf (f, "%lu\n", i);
8482 }
8483 exit (ferror (f) || fclose (f) != 0);
8484
8485 ;
8486 return 0;
8487}
8488_ACEOF
8489rm -f conftest$ac_exeext
8490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8491 (eval $ac_link) 2>&5
8492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 (eval $ac_try) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_sizeof_short=`cat conftest.val`
8501else
8502 echo "$as_me: program exited with status $ac_status" >&5
8503echo "$as_me: failed program was:" >&5
8504sed 's/^/| /' conftest.$ac_ext >&5
8505
8506( exit $ac_status )
8507{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8508See \`config.log' for more details." >&5
8509echo "$as_me: error: cannot compute sizeof (short), 77
8510See \`config.log' for more details." >&2;}
8511 { (exit 1); exit 1; }; }
8512fi
8513rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8514fi
8515fi
8516rm -f conftest.val
8517else
8518 ac_cv_sizeof_short=0
8519fi
8520fi
8521echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8522echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8523cat >>confdefs.h <<_ACEOF
8524#define SIZEOF_SHORT $ac_cv_sizeof_short
8525_ACEOF
8526
8527
8528echo "$as_me:$LINENO: checking for int" >&5
8529echo $ECHO_N "checking for int... $ECHO_C" >&6
8530if test "${ac_cv_type_int+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532else
8533 cat >conftest.$ac_ext <<_ACEOF
8534/* confdefs.h. */
8535_ACEOF
8536cat confdefs.h >>conftest.$ac_ext
8537cat >>conftest.$ac_ext <<_ACEOF
8538/* end confdefs.h. */
8539$ac_includes_default
8540int
8541main ()
8542{
8543if ((int *) 0)
8544 return 0;
8545if (sizeof (int))
8546 return 0;
8547 ;
8548 return 0;
8549}
8550_ACEOF
8551rm -f conftest.$ac_objext
8552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8553 (eval $ac_compile) 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try='test -s conftest.$ac_objext'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 (eval $ac_try) 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8572 ac_cv_type_int=yes
8573else
8574 echo "$as_me: failed program was:" >&5
8575sed 's/^/| /' conftest.$ac_ext >&5
8576
8577ac_cv_type_int=no
8578fi
8579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8580fi
8581echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8582echo "${ECHO_T}$ac_cv_type_int" >&6
8583
8584echo "$as_me:$LINENO: checking size of int" >&5
8585echo $ECHO_N "checking size of int... $ECHO_C" >&6
8586if test "${ac_cv_sizeof_int+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8588else
8589 if test "$ac_cv_type_int" = yes; then
8590 # The cast to unsigned long works around a bug in the HP C Compiler
8591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8593 # This bug is HP SR number 8606223364.
8594 if test "$cross_compiling" = yes; then
8595 # Depending upon the size, compute the lo and hi bounds.
8596cat >conftest.$ac_ext <<_ACEOF
8597/* confdefs.h. */
8598_ACEOF
8599cat confdefs.h >>conftest.$ac_ext
8600cat >>conftest.$ac_ext <<_ACEOF
8601/* end confdefs.h. */
8602$ac_includes_default
8603int
8604main ()
8605{
8606static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8607test_array [0] = 0
8608
8609 ;
8610 return 0;
8611}
8612_ACEOF
8613rm -f conftest.$ac_objext
8614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8615 (eval $ac_compile) 2>conftest.er1
8616 ac_status=$?
8617 grep -v '^ *+' conftest.er1 >conftest.err
8618 rm -f conftest.er1
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } &&
8622 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 (eval $ac_try) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest.$ac_objext'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 (eval $ac_try) 2>&5
8631 ac_status=$?
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8634 ac_lo=0 ac_mid=0
8635 while :; do
8636 cat >conftest.$ac_ext <<_ACEOF
8637/* confdefs.h. */
8638_ACEOF
8639cat confdefs.h >>conftest.$ac_ext
8640cat >>conftest.$ac_ext <<_ACEOF
8641/* end confdefs.h. */
8642$ac_includes_default
8643int
8644main ()
8645{
8646static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8647test_array [0] = 0
8648
8649 ;
8650 return 0;
8651}
8652_ACEOF
8653rm -f conftest.$ac_objext
8654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8655 (eval $ac_compile) 2>conftest.er1
8656 ac_status=$?
8657 grep -v '^ *+' conftest.er1 >conftest.err
8658 rm -f conftest.er1
8659 cat conftest.err >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } &&
8662 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 (eval $ac_try) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; } &&
8668 { ac_try='test -s conftest.$ac_objext'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 (eval $ac_try) 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_hi=$ac_mid; break
8675else
8676 echo "$as_me: failed program was:" >&5
8677sed 's/^/| /' conftest.$ac_ext >&5
8678
8679ac_lo=`expr $ac_mid + 1`
8680 if test $ac_lo -le $ac_mid; then
8681 ac_lo= ac_hi=
8682 break
8683 fi
8684 ac_mid=`expr 2 '*' $ac_mid + 1`
8685fi
8686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8687 done
8688else
8689 echo "$as_me: failed program was:" >&5
8690sed 's/^/| /' conftest.$ac_ext >&5
8691
8692cat >conftest.$ac_ext <<_ACEOF
8693/* confdefs.h. */
8694_ACEOF
8695cat confdefs.h >>conftest.$ac_ext
8696cat >>conftest.$ac_ext <<_ACEOF
8697/* end confdefs.h. */
8698$ac_includes_default
8699int
8700main ()
8701{
8702static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8703test_array [0] = 0
8704
8705 ;
8706 return 0;
8707}
8708_ACEOF
8709rm -f conftest.$ac_objext
8710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8711 (eval $ac_compile) 2>conftest.er1
8712 ac_status=$?
8713 grep -v '^ *+' conftest.er1 >conftest.err
8714 rm -f conftest.er1
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } &&
8718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 (eval $ac_try) 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; } &&
8724 { ac_try='test -s conftest.$ac_objext'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 (eval $ac_try) 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; }; then
8730 ac_hi=-1 ac_mid=-1
8731 while :; do
8732 cat >conftest.$ac_ext <<_ACEOF
8733/* confdefs.h. */
8734_ACEOF
8735cat confdefs.h >>conftest.$ac_ext
8736cat >>conftest.$ac_ext <<_ACEOF
8737/* end confdefs.h. */
8738$ac_includes_default
8739int
8740main ()
8741{
8742static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8743test_array [0] = 0
8744
8745 ;
8746 return 0;
8747}
8748_ACEOF
8749rm -f conftest.$ac_objext
8750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8751 (eval $ac_compile) 2>conftest.er1
8752 ac_status=$?
8753 grep -v '^ *+' conftest.er1 >conftest.err
8754 rm -f conftest.er1
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 (eval $ac_try) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; } &&
8764 { ac_try='test -s conftest.$ac_objext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_lo=$ac_mid; break
8771else
8772 echo "$as_me: failed program was:" >&5
8773sed 's/^/| /' conftest.$ac_ext >&5
8774
8775ac_hi=`expr '(' $ac_mid ')' - 1`
8776 if test $ac_mid -le $ac_hi; then
8777 ac_lo= ac_hi=
8778 break
8779 fi
8780 ac_mid=`expr 2 '*' $ac_mid`
8781fi
8782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8783 done
8784else
8785 echo "$as_me: failed program was:" >&5
8786sed 's/^/| /' conftest.$ac_ext >&5
8787
8788ac_lo= ac_hi=
8789fi
8790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8791fi
8792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8793# Binary search between lo and hi bounds.
8794while test "x$ac_lo" != "x$ac_hi"; do
8795 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8796 cat >conftest.$ac_ext <<_ACEOF
8797/* confdefs.h. */
8798_ACEOF
8799cat confdefs.h >>conftest.$ac_ext
8800cat >>conftest.$ac_ext <<_ACEOF
8801/* end confdefs.h. */
8802$ac_includes_default
8803int
8804main ()
8805{
8806static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8807test_array [0] = 0
8808
8809 ;
8810 return 0;
8811}
8812_ACEOF
8813rm -f conftest.$ac_objext
8814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8815 (eval $ac_compile) 2>conftest.er1
8816 ac_status=$?
8817 grep -v '^ *+' conftest.er1 >conftest.err
8818 rm -f conftest.er1
8819 cat conftest.err >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } &&
8822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 (eval $ac_try) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; } &&
8828 { ac_try='test -s conftest.$ac_objext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 (eval $ac_try) 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 ac_hi=$ac_mid
8835else
8836 echo "$as_me: failed program was:" >&5
8837sed 's/^/| /' conftest.$ac_ext >&5
8838
8839ac_lo=`expr '(' $ac_mid ')' + 1`
8840fi
8841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8842done
8843case $ac_lo in
8844?*) ac_cv_sizeof_int=$ac_lo;;
8845'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8846See \`config.log' for more details." >&5
8847echo "$as_me: error: cannot compute sizeof (int), 77
8848See \`config.log' for more details." >&2;}
8849 { (exit 1); exit 1; }; } ;;
8850esac
8851else
8852 if test "$cross_compiling" = yes; then
8853 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8854echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8855 { (exit 1); exit 1; }; }
8856else
8857 cat >conftest.$ac_ext <<_ACEOF
8858/* confdefs.h. */
8859_ACEOF
8860cat confdefs.h >>conftest.$ac_ext
8861cat >>conftest.$ac_ext <<_ACEOF
8862/* end confdefs.h. */
8863$ac_includes_default
8864long longval () { return (long) (sizeof (int)); }
8865unsigned long ulongval () { return (long) (sizeof (int)); }
8866#include <stdio.h>
8867#include <stdlib.h>
8868int
8869main ()
8870{
8871
8872 FILE *f = fopen ("conftest.val", "w");
8873 if (! f)
8874 exit (1);
8875 if (((long) (sizeof (int))) < 0)
8876 {
8877 long i = longval ();
8878 if (i != ((long) (sizeof (int))))
8879 exit (1);
8880 fprintf (f, "%ld\n", i);
8881 }
8882 else
8883 {
8884 unsigned long i = ulongval ();
8885 if (i != ((long) (sizeof (int))))
8886 exit (1);
8887 fprintf (f, "%lu\n", i);
8888 }
8889 exit (ferror (f) || fclose (f) != 0);
8890
8891 ;
8892 return 0;
8893}
8894_ACEOF
8895rm -f conftest$ac_exeext
8896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897 (eval $ac_link) 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 (eval $ac_try) 2>&5
8903 ac_status=$?
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_cv_sizeof_int=`cat conftest.val`
8907else
8908 echo "$as_me: program exited with status $ac_status" >&5
8909echo "$as_me: failed program was:" >&5
8910sed 's/^/| /' conftest.$ac_ext >&5
8911
8912( exit $ac_status )
8913{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8914See \`config.log' for more details." >&5
8915echo "$as_me: error: cannot compute sizeof (int), 77
8916See \`config.log' for more details." >&2;}
8917 { (exit 1); exit 1; }; }
8918fi
8919rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8920fi
8921fi
8922rm -f conftest.val
8923else
8924 ac_cv_sizeof_int=0
8925fi
8926fi
8927echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8928echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8929cat >>confdefs.h <<_ACEOF
8930#define SIZEOF_INT $ac_cv_sizeof_int
8931_ACEOF
8932
8933
8934echo "$as_me:$LINENO: checking for long long" >&5
8935echo $ECHO_N "checking for long long... $ECHO_C" >&6
8936if test "${ac_cv_type_long_long+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8938else
8939 cat >conftest.$ac_ext <<_ACEOF
8940/* confdefs.h. */
8941_ACEOF
8942cat confdefs.h >>conftest.$ac_ext
8943cat >>conftest.$ac_ext <<_ACEOF
8944/* end confdefs.h. */
8945$ac_includes_default
8946int
8947main ()
8948{
8949if ((long long *) 0)
8950 return 0;
8951if (sizeof (long long))
8952 return 0;
8953 ;
8954 return 0;
8955}
8956_ACEOF
8957rm -f conftest.$ac_objext
8958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8959 (eval $ac_compile) 2>conftest.er1
8960 ac_status=$?
8961 grep -v '^ *+' conftest.er1 >conftest.err
8962 rm -f conftest.er1
8963 cat conftest.err >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } &&
8966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 (eval $ac_try) 2>&5
8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; } &&
8972 { ac_try='test -s conftest.$ac_objext'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 (eval $ac_try) 2>&5
8975 ac_status=$?
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; }; then
8978 ac_cv_type_long_long=yes
8979else
8980 echo "$as_me: failed program was:" >&5
8981sed 's/^/| /' conftest.$ac_ext >&5
8982
8983ac_cv_type_long_long=no
8984fi
8985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8986fi
8987echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8988echo "${ECHO_T}$ac_cv_type_long_long" >&6
8989
8990echo "$as_me:$LINENO: checking size of long long" >&5
8991echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8992if test "${ac_cv_sizeof_long_long+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8994else
8995 if test "$ac_cv_type_long_long" = yes; then
8996 # The cast to unsigned long works around a bug in the HP C Compiler
8997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8999 # This bug is HP SR number 8606223364.
9000 if test "$cross_compiling" = yes; then
9001 # Depending upon the size, compute the lo and hi bounds.
9002cat >conftest.$ac_ext <<_ACEOF
9003/* confdefs.h. */
9004_ACEOF
9005cat confdefs.h >>conftest.$ac_ext
9006cat >>conftest.$ac_ext <<_ACEOF
9007/* end confdefs.h. */
9008$ac_includes_default
9009int
9010main ()
9011{
9012static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9013test_array [0] = 0
9014
9015 ;
9016 return 0;
9017}
9018_ACEOF
9019rm -f conftest.$ac_objext
9020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9021 (eval $ac_compile) 2>conftest.er1
9022 ac_status=$?
9023 grep -v '^ *+' conftest.er1 >conftest.err
9024 rm -f conftest.er1
9025 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } &&
9028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 (eval $ac_try) 2>&5
9031 ac_status=$?
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; } &&
9034 { ac_try='test -s conftest.$ac_objext'
9035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036 (eval $ac_try) 2>&5
9037 ac_status=$?
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; }; then
9040 ac_lo=0 ac_mid=0
9041 while :; do
9042 cat >conftest.$ac_ext <<_ACEOF
9043/* confdefs.h. */
9044_ACEOF
9045cat confdefs.h >>conftest.$ac_ext
9046cat >>conftest.$ac_ext <<_ACEOF
9047/* end confdefs.h. */
9048$ac_includes_default
9049int
9050main ()
9051{
9052static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9053test_array [0] = 0
9054
9055 ;
9056 return 0;
9057}
9058_ACEOF
9059rm -f conftest.$ac_objext
9060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9061 (eval $ac_compile) 2>conftest.er1
9062 ac_status=$?
9063 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -f conftest.er1
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 (eval $ac_try) 2>&5
9071 ac_status=$?
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; } &&
9074 { ac_try='test -s conftest.$ac_objext'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 (eval $ac_try) 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; }; then
9080 ac_hi=$ac_mid; break
9081else
9082 echo "$as_me: failed program was:" >&5
9083sed 's/^/| /' conftest.$ac_ext >&5
9084
9085ac_lo=`expr $ac_mid + 1`
9086 if test $ac_lo -le $ac_mid; then
9087 ac_lo= ac_hi=
9088 break
9089 fi
9090 ac_mid=`expr 2 '*' $ac_mid + 1`
9091fi
9092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9093 done
9094else
9095 echo "$as_me: failed program was:" >&5
9096sed 's/^/| /' conftest.$ac_ext >&5
9097
9098cat >conftest.$ac_ext <<_ACEOF
9099/* confdefs.h. */
9100_ACEOF
9101cat confdefs.h >>conftest.$ac_ext
9102cat >>conftest.$ac_ext <<_ACEOF
9103/* end confdefs.h. */
9104$ac_includes_default
9105int
9106main ()
9107{
9108static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9109test_array [0] = 0
9110
9111 ;
9112 return 0;
9113}
9114_ACEOF
9115rm -f conftest.$ac_objext
9116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9117 (eval $ac_compile) 2>conftest.er1
9118 ac_status=$?
9119 grep -v '^ *+' conftest.er1 >conftest.err
9120 rm -f conftest.er1
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; } &&
9130 { ac_try='test -s conftest.$ac_objext'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 (eval $ac_try) 2>&5
9133 ac_status=$?
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; }; then
9136 ac_hi=-1 ac_mid=-1
9137 while :; do
9138 cat >conftest.$ac_ext <<_ACEOF
9139/* confdefs.h. */
9140_ACEOF
9141cat confdefs.h >>conftest.$ac_ext
9142cat >>conftest.$ac_ext <<_ACEOF
9143/* end confdefs.h. */
9144$ac_includes_default
9145int
9146main ()
9147{
9148static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9149test_array [0] = 0
9150
9151 ;
9152 return 0;
9153}
9154_ACEOF
9155rm -f conftest.$ac_objext
9156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9157 (eval $ac_compile) 2>conftest.er1
9158 ac_status=$?
9159 grep -v '^ *+' conftest.er1 >conftest.err
9160 rm -f conftest.er1
9161 cat conftest.err >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest.$ac_objext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176 ac_lo=$ac_mid; break
9177else
9178 echo "$as_me: failed program was:" >&5
9179sed 's/^/| /' conftest.$ac_ext >&5
9180
9181ac_hi=`expr '(' $ac_mid ')' - 1`
9182 if test $ac_mid -le $ac_hi; then
9183 ac_lo= ac_hi=
9184 break
9185 fi
9186 ac_mid=`expr 2 '*' $ac_mid`
9187fi
9188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9189 done
9190else
9191 echo "$as_me: failed program was:" >&5
9192sed 's/^/| /' conftest.$ac_ext >&5
9193
9194ac_lo= ac_hi=
9195fi
9196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9197fi
9198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9199# Binary search between lo and hi bounds.
9200while test "x$ac_lo" != "x$ac_hi"; do
9201 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9202 cat >conftest.$ac_ext <<_ACEOF
9203/* confdefs.h. */
9204_ACEOF
9205cat confdefs.h >>conftest.$ac_ext
9206cat >>conftest.$ac_ext <<_ACEOF
9207/* end confdefs.h. */
9208$ac_includes_default
9209int
9210main ()
9211{
9212static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9213test_array [0] = 0
9214
9215 ;
9216 return 0;
9217}
9218_ACEOF
9219rm -f conftest.$ac_objext
9220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9221 (eval $ac_compile) 2>conftest.er1
9222 ac_status=$?
9223 grep -v '^ *+' conftest.er1 >conftest.err
9224 rm -f conftest.er1
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } &&
9228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230 (eval $ac_try) 2>&5
9231 ac_status=$?
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; } &&
9234 { ac_try='test -s conftest.$ac_objext'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 (eval $ac_try) 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 ac_hi=$ac_mid
9241else
9242 echo "$as_me: failed program was:" >&5
9243sed 's/^/| /' conftest.$ac_ext >&5
9244
9245ac_lo=`expr '(' $ac_mid ')' + 1`
9246fi
9247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9248done
9249case $ac_lo in
9250?*) ac_cv_sizeof_long_long=$ac_lo;;
9251'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9252See \`config.log' for more details." >&5
9253echo "$as_me: error: cannot compute sizeof (long long), 77
9254See \`config.log' for more details." >&2;}
9255 { (exit 1); exit 1; }; } ;;
9256esac
9257else
9258 if test "$cross_compiling" = yes; then
9259 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9260echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9261 { (exit 1); exit 1; }; }
9262else
9263 cat >conftest.$ac_ext <<_ACEOF
9264/* confdefs.h. */
9265_ACEOF
9266cat confdefs.h >>conftest.$ac_ext
9267cat >>conftest.$ac_ext <<_ACEOF
9268/* end confdefs.h. */
9269$ac_includes_default
9270long longval () { return (long) (sizeof (long long)); }
9271unsigned long ulongval () { return (long) (sizeof (long long)); }
9272#include <stdio.h>
9273#include <stdlib.h>
9274int
9275main ()
9276{
9277
9278 FILE *f = fopen ("conftest.val", "w");
9279 if (! f)
9280 exit (1);
9281 if (((long) (sizeof (long long))) < 0)
9282 {
9283 long i = longval ();
9284 if (i != ((long) (sizeof (long long))))
9285 exit (1);
9286 fprintf (f, "%ld\n", i);
9287 }
9288 else
9289 {
9290 unsigned long i = ulongval ();
9291 if (i != ((long) (sizeof (long long))))
9292 exit (1);
9293 fprintf (f, "%lu\n", i);
9294 }
9295 exit (ferror (f) || fclose (f) != 0);
9296
9297 ;
9298 return 0;
9299}
9300_ACEOF
9301rm -f conftest$ac_exeext
9302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9303 (eval $ac_link) 2>&5
9304 ac_status=$?
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 (eval $ac_try) 2>&5
9309 ac_status=$?
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; }; then
9312 ac_cv_sizeof_long_long=`cat conftest.val`
9313else
9314 echo "$as_me: program exited with status $ac_status" >&5
9315echo "$as_me: failed program was:" >&5
9316sed 's/^/| /' conftest.$ac_ext >&5
9317
9318( exit $ac_status )
9319{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9320See \`config.log' for more details." >&5
9321echo "$as_me: error: cannot compute sizeof (long long), 77
9322See \`config.log' for more details." >&2;}
9323 { (exit 1); exit 1; }; }
9324fi
9325rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9326fi
9327fi
9328rm -f conftest.val
9329else
9330 ac_cv_sizeof_long_long=0
9331fi
9332fi
9333echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9334echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9335cat >>confdefs.h <<_ACEOF
9336#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9337_ACEOF
9338
9339
9340echo "$as_me:$LINENO: checking for int *" >&5
9341echo $ECHO_N "checking for int *... $ECHO_C" >&6
9342if test "${ac_cv_type_int_p+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9344else
9345 cat >conftest.$ac_ext <<_ACEOF
9346/* confdefs.h. */
9347_ACEOF
9348cat confdefs.h >>conftest.$ac_ext
9349cat >>conftest.$ac_ext <<_ACEOF
9350/* end confdefs.h. */
9351$ac_includes_default
9352int
9353main ()
9354{
9355if ((int * *) 0)
9356 return 0;
9357if (sizeof (int *))
9358 return 0;
9359 ;
9360 return 0;
9361}
9362_ACEOF
9363rm -f conftest.$ac_objext
9364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9365 (eval $ac_compile) 2>conftest.er1
9366 ac_status=$?
9367 grep -v '^ *+' conftest.er1 >conftest.err
9368 rm -f conftest.er1
9369 cat conftest.err >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } &&
9372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 (eval $ac_try) 2>&5
9375 ac_status=$?
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; } &&
9378 { ac_try='test -s conftest.$ac_objext'
9379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 (eval $ac_try) 2>&5
9381 ac_status=$?
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; }; then
9384 ac_cv_type_int_p=yes
9385else
9386 echo "$as_me: failed program was:" >&5
9387sed 's/^/| /' conftest.$ac_ext >&5
9388
9389ac_cv_type_int_p=no
9390fi
9391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9392fi
9393echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9394echo "${ECHO_T}$ac_cv_type_int_p" >&6
9395
9396echo "$as_me:$LINENO: checking size of int *" >&5
9397echo $ECHO_N "checking size of int *... $ECHO_C" >&6
9398if test "${ac_cv_sizeof_int_p+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9400else
9401 if test "$ac_cv_type_int_p" = yes; then
9402 # The cast to unsigned long works around a bug in the HP C Compiler
9403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9405 # This bug is HP SR number 8606223364.
9406 if test "$cross_compiling" = yes; then
9407 # Depending upon the size, compute the lo and hi bounds.
9408cat >conftest.$ac_ext <<_ACEOF
9409/* confdefs.h. */
9410_ACEOF
9411cat confdefs.h >>conftest.$ac_ext
9412cat >>conftest.$ac_ext <<_ACEOF
9413/* end confdefs.h. */
9414$ac_includes_default
9415int
9416main ()
9417{
9418static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
9419test_array [0] = 0
9420
9421 ;
9422 return 0;
9423}
9424_ACEOF
9425rm -f conftest.$ac_objext
9426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9427 (eval $ac_compile) 2>conftest.er1
9428 ac_status=$?
9429 grep -v '^ *+' conftest.er1 >conftest.err
9430 rm -f conftest.er1
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } &&
9434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 (eval $ac_try) 2>&5
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; } &&
9440 { ac_try='test -s conftest.$ac_objext'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 (eval $ac_try) 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9446 ac_lo=0 ac_mid=0
9447 while :; do
9448 cat >conftest.$ac_ext <<_ACEOF
9449/* confdefs.h. */
9450_ACEOF
9451cat confdefs.h >>conftest.$ac_ext
9452cat >>conftest.$ac_ext <<_ACEOF
9453/* end confdefs.h. */
9454$ac_includes_default
9455int
9456main ()
9457{
9458static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9459test_array [0] = 0
9460
9461 ;
9462 return 0;
9463}
9464_ACEOF
9465rm -f conftest.$ac_objext
9466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9467 (eval $ac_compile) 2>conftest.er1
9468 ac_status=$?
9469 grep -v '^ *+' conftest.er1 >conftest.err
9470 rm -f conftest.er1
9471 cat conftest.err >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } &&
9474 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476 (eval $ac_try) 2>&5
9477 ac_status=$?
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; } &&
9480 { ac_try='test -s conftest.$ac_objext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 (eval $ac_try) 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 ac_hi=$ac_mid; break
9487else
9488 echo "$as_me: failed program was:" >&5
9489sed 's/^/| /' conftest.$ac_ext >&5
9490
9491ac_lo=`expr $ac_mid + 1`
9492 if test $ac_lo -le $ac_mid; then
9493 ac_lo= ac_hi=
9494 break
9495 fi
9496 ac_mid=`expr 2 '*' $ac_mid + 1`
9497fi
9498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9499 done
9500else
9501 echo "$as_me: failed program was:" >&5
9502sed 's/^/| /' conftest.$ac_ext >&5
9503
9504cat >conftest.$ac_ext <<_ACEOF
9505/* confdefs.h. */
9506_ACEOF
9507cat confdefs.h >>conftest.$ac_ext
9508cat >>conftest.$ac_ext <<_ACEOF
9509/* end confdefs.h. */
9510$ac_includes_default
9511int
9512main ()
9513{
9514static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
9515test_array [0] = 0
9516
9517 ;
9518 return 0;
9519}
9520_ACEOF
9521rm -f conftest.$ac_objext
9522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9523 (eval $ac_compile) 2>conftest.er1
9524 ac_status=$?
9525 grep -v '^ *+' conftest.er1 >conftest.err
9526 rm -f conftest.er1
9527 cat conftest.err >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } &&
9530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 (eval $ac_try) 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; } &&
9536 { ac_try='test -s conftest.$ac_objext'
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 (eval $ac_try) 2>&5
9539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; }; then
9542 ac_hi=-1 ac_mid=-1
9543 while :; do
9544 cat >conftest.$ac_ext <<_ACEOF
9545/* confdefs.h. */
9546_ACEOF
9547cat confdefs.h >>conftest.$ac_ext
9548cat >>conftest.$ac_ext <<_ACEOF
9549/* end confdefs.h. */
9550$ac_includes_default
9551int
9552main ()
9553{
9554static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
9555test_array [0] = 0
9556
9557 ;
9558 return 0;
9559}
9560_ACEOF
9561rm -f conftest.$ac_objext
9562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9563 (eval $ac_compile) 2>conftest.er1
9564 ac_status=$?
9565 grep -v '^ *+' conftest.er1 >conftest.err
9566 rm -f conftest.er1
9567 cat conftest.err >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } &&
9570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572 (eval $ac_try) 2>&5
9573 ac_status=$?
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; } &&
9576 { ac_try='test -s conftest.$ac_objext'
9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578 (eval $ac_try) 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 ac_lo=$ac_mid; break
9583else
9584 echo "$as_me: failed program was:" >&5
9585sed 's/^/| /' conftest.$ac_ext >&5
9586
9587ac_hi=`expr '(' $ac_mid ')' - 1`
9588 if test $ac_mid -le $ac_hi; then
9589 ac_lo= ac_hi=
9590 break
9591 fi
9592 ac_mid=`expr 2 '*' $ac_mid`
9593fi
9594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9595 done
9596else
9597 echo "$as_me: failed program was:" >&5
9598sed 's/^/| /' conftest.$ac_ext >&5
9599
9600ac_lo= ac_hi=
9601fi
9602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9603fi
9604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9605# Binary search between lo and hi bounds.
9606while test "x$ac_lo" != "x$ac_hi"; do
9607 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9608 cat >conftest.$ac_ext <<_ACEOF
9609/* confdefs.h. */
9610_ACEOF
9611cat confdefs.h >>conftest.$ac_ext
9612cat >>conftest.$ac_ext <<_ACEOF
9613/* end confdefs.h. */
9614$ac_includes_default
9615int
9616main ()
9617{
9618static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9619test_array [0] = 0
9620
9621 ;
9622 return 0;
9623}
9624_ACEOF
9625rm -f conftest.$ac_objext
9626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9627 (eval $ac_compile) 2>conftest.er1
9628 ac_status=$?
9629 grep -v '^ *+' conftest.er1 >conftest.err
9630 rm -f conftest.er1
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } &&
9634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 (eval $ac_try) 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; } &&
9640 { ac_try='test -s conftest.$ac_objext'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 (eval $ac_try) 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; }; then
9646 ac_hi=$ac_mid
9647else
9648 echo "$as_me: failed program was:" >&5
9649sed 's/^/| /' conftest.$ac_ext >&5
9650
9651ac_lo=`expr '(' $ac_mid ')' + 1`
9652fi
9653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9654done
9655case $ac_lo in
9656?*) ac_cv_sizeof_int_p=$ac_lo;;
9657'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9658See \`config.log' for more details." >&5
9659echo "$as_me: error: cannot compute sizeof (int *), 77
9660See \`config.log' for more details." >&2;}
9661 { (exit 1); exit 1; }; } ;;
9662esac
9663else
9664 if test "$cross_compiling" = yes; then
9665 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9666echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9667 { (exit 1); exit 1; }; }
9668else
9669 cat >conftest.$ac_ext <<_ACEOF
9670/* confdefs.h. */
9671_ACEOF
9672cat confdefs.h >>conftest.$ac_ext
9673cat >>conftest.$ac_ext <<_ACEOF
9674/* end confdefs.h. */
9675$ac_includes_default
9676long longval () { return (long) (sizeof (int *)); }
9677unsigned long ulongval () { return (long) (sizeof (int *)); }
9678#include <stdio.h>
9679#include <stdlib.h>
9680int
9681main ()
9682{
9683
9684 FILE *f = fopen ("conftest.val", "w");
9685 if (! f)
9686 exit (1);
9687 if (((long) (sizeof (int *))) < 0)
9688 {
9689 long i = longval ();
9690 if (i != ((long) (sizeof (int *))))
9691 exit (1);
9692 fprintf (f, "%ld\n", i);
9693 }
9694 else
9695 {
9696 unsigned long i = ulongval ();
9697 if (i != ((long) (sizeof (int *))))
9698 exit (1);
9699 fprintf (f, "%lu\n", i);
9700 }
9701 exit (ferror (f) || fclose (f) != 0);
9702
9703 ;
9704 return 0;
9705}
9706_ACEOF
9707rm -f conftest$ac_exeext
9708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9709 (eval $ac_link) 2>&5
9710 ac_status=$?
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 (eval $ac_try) 2>&5
9715 ac_status=$?
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; }; then
9718 ac_cv_sizeof_int_p=`cat conftest.val`
9719else
9720 echo "$as_me: program exited with status $ac_status" >&5
9721echo "$as_me: failed program was:" >&5
9722sed 's/^/| /' conftest.$ac_ext >&5
9723
9724( exit $ac_status )
9725{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9726See \`config.log' for more details." >&5
9727echo "$as_me: error: cannot compute sizeof (int *), 77
9728See \`config.log' for more details." >&2;}
9729 { (exit 1); exit 1; }; }
9730fi
9731rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9732fi
9733fi
9734rm -f conftest.val
9735else
9736 ac_cv_sizeof_int_p=0
9737fi
9738fi
9739echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9740echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
9741cat >>confdefs.h <<_ACEOF
9742#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9743_ACEOF
9744
9745
9746
9747
9748echo "$as_me:$LINENO: checking for int16_t" >&5
9749echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
9750if test "${rxvt_cv_int16_t+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9752else
9753 cat >conftest.$ac_ext <<_ACEOF
9754/* confdefs.h. */
9755_ACEOF
9756cat confdefs.h >>conftest.$ac_ext
9757cat >>conftest.$ac_ext <<_ACEOF
9758/* end confdefs.h. */
9759#include <stdint.h>
9760int
9761main ()
9762{
9763int16_t dummy;
9764 ;
9765 return 0;
9766}
9767_ACEOF
9768rm -f conftest.$ac_objext
9769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9770 (eval $ac_compile) 2>conftest.er1
9771 ac_status=$?
9772 grep -v '^ *+' conftest.er1 >conftest.err
9773 rm -f conftest.er1
9774 cat conftest.err >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } &&
9777 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 (eval $ac_try) 2>&5
9780 ac_status=$?
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; } &&
9783 { ac_try='test -s conftest.$ac_objext'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 (eval $ac_try) 2>&5
9786 ac_status=$?
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; }; then
9789 rxvt_cv_int16_t=yes
9790else
9791 echo "$as_me: failed program was:" >&5
9792sed 's/^/| /' conftest.$ac_ext >&5
9793
9794if test "$ac_cv_sizeof_char" -ge 2; then
9795 rxvt_cv_int16_t=" char"
9796else
9797 if test "$ac_cv_sizeof_short" -ge 2; then
9798 rxvt_cv_int16_t=" short"
9799 else
9800 if test "$ac_cv_sizeof_int" -ge 2; then
9801 rxvt_cv_int16_t=" int"
9802 else
9803 if test "$ac_cv_sizeof_long" -ge 2; then
9804 rxvt_cv_int16_t=" long"
9805 else
9806 if test "$ac_cv_sizeof_long_long" -ge 2; then
9807 rxvt_cv_int16_t=" long long"
9808 else
9809 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9810 fi
9811 fi
9812 fi 6743 fi
9813 fi
9814fi 6744fi
9815fi
9816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9817fi
9818echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9819echo "${ECHO_T}$rxvt_cv_int16_t" >&6
9820if test x"$rxvt_cv_int16_t" != xyes; then
9821 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9822else
9823 if test x"" = x; then
9824 rxvt_int16_typedef="/* typedef short int16_t; */"
9825 else
9826 rxvt_int16_typedef="/* typedef short int16_t; */"
9827 fi
9828fi
9829 6745
9830echo "$as_me:$LINENO: checking for uint16_t" >&5
9831echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
9832if test "${rxvt_cv_uint16_t+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9834else
9835 cat >conftest.$ac_ext <<_ACEOF
9836/* confdefs.h. */
9837_ACEOF
9838cat confdefs.h >>conftest.$ac_ext
9839cat >>conftest.$ac_ext <<_ACEOF
9840/* end confdefs.h. */
9841#include <stdint.h>
9842int
9843main ()
9844{
9845uint16_t dummy;
9846 ;
9847 return 0;
9848}
9849_ACEOF
9850rm -f conftest.$ac_objext
9851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9852 (eval $ac_compile) 2>conftest.er1
9853 ac_status=$?
9854 grep -v '^ *+' conftest.er1 >conftest.err
9855 rm -f conftest.er1
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 (eval $ac_try) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; } &&
9865 { ac_try='test -s conftest.$ac_objext'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 (eval $ac_try) 2>&5
9868 ac_status=$?
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; }; then
9871 rxvt_cv_uint16_t=yes
9872else
9873 echo "$as_me: failed program was:" >&5
9874sed 's/^/| /' conftest.$ac_ext >&5
9875 6746
9876if test "$ac_cv_sizeof_char" -ge 2; then 6747# Check whether --enable-wtmp was given.
9877 rxvt_cv_uint16_t="unsigned char" 6748if test "${enable_wtmp+set}" = set; then :
9878else 6749 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
9879 if test "$ac_cv_sizeof_short" -ge 2; then 6750 support_wtmp=$enableval
9880 rxvt_cv_uint16_t="unsigned short"
9881 else
9882 if test "$ac_cv_sizeof_int" -ge 2; then
9883 rxvt_cv_uint16_t="unsigned int"
9884 else
9885 if test "$ac_cv_sizeof_long" -ge 2; then
9886 rxvt_cv_uint16_t="unsigned long"
9887 else
9888 if test "$ac_cv_sizeof_long_long" -ge 2; then
9889 rxvt_cv_uint16_t="unsigned long long"
9890 else
9891 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9892 fi
9893 fi
9894 fi 6751 fi
9895 fi
9896fi 6752fi
9897fi
9898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9899fi
9900echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9901echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
9902if test x"$rxvt_cv_uint16_t" != xyes; then
9903 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9904else
9905 if test x"unsigned" = x; then
9906 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9907 else
9908 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9909 fi
9910fi
9911 6753
9912echo "$as_me:$LINENO: checking for int32_t" >&5
9913echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
9914if test "${rxvt_cv_int32_t+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9916else
9917 cat >conftest.$ac_ext <<_ACEOF
9918/* confdefs.h. */
9919_ACEOF
9920cat confdefs.h >>conftest.$ac_ext
9921cat >>conftest.$ac_ext <<_ACEOF
9922/* end confdefs.h. */
9923#include <stdint.h>
9924int
9925main ()
9926{
9927int32_t dummy;
9928 ;
9929 return 0;
9930}
9931_ACEOF
9932rm -f conftest.$ac_objext
9933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9934 (eval $ac_compile) 2>conftest.er1
9935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; } &&
9947 { ac_try='test -s conftest.$ac_objext'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949 (eval $ac_try) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9953 rxvt_cv_int32_t=yes
9954else
9955 echo "$as_me: failed program was:" >&5
9956sed 's/^/| /' conftest.$ac_ext >&5
9957 6754
9958if test "$ac_cv_sizeof_char" -ge 4; then 6755# Check whether --enable-lastlog was given.
9959 rxvt_cv_int32_t=" char" 6756if test "${enable_lastlog+set}" = set; then :
9960else 6757 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
9961 if test "$ac_cv_sizeof_short" -ge 4; then 6758 support_lastlog=$enableval
9962 rxvt_cv_int32_t=" short"
9963 else
9964 if test "$ac_cv_sizeof_int" -ge 4; then
9965 rxvt_cv_int32_t=" int"
9966 else
9967 if test "$ac_cv_sizeof_long" -ge 4; then
9968 rxvt_cv_int32_t=" long"
9969 else
9970 if test "$ac_cv_sizeof_long_long" -ge 4; then
9971 rxvt_cv_int32_t=" long long"
9972 else
9973 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9974 fi
9975 fi
9976 fi 6759 fi
9977 fi
9978fi 6760fi
9979fi
9980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9981fi
9982echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9983echo "${ECHO_T}$rxvt_cv_int32_t" >&6
9984if test x"$rxvt_cv_int32_t" != xyes; then
9985 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9986else
9987 if test x"" = x; then
9988 rxvt_int32_typedef="/* typedef int int32_t; */"
9989 else
9990 rxvt_int32_typedef="/* typedef int int32_t; */"
9991 fi
9992fi
9993 6761
9994echo "$as_me:$LINENO: checking for uint32_t" >&5
9995echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
9996if test "${rxvt_cv_uint32_t+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9998else
9999 cat >conftest.$ac_ext <<_ACEOF
10000/* confdefs.h. */
10001_ACEOF
10002cat confdefs.h >>conftest.$ac_ext
10003cat >>conftest.$ac_ext <<_ACEOF
10004/* end confdefs.h. */
10005#include <stdint.h>
10006int
10007main ()
10008{
10009uint32_t dummy;
10010 ;
10011 return 0;
10012}
10013_ACEOF
10014rm -f conftest.$ac_objext
10015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10016 (eval $ac_compile) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10026 ac_status=$?
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; } &&
10029 { ac_try='test -s conftest.$ac_objext'
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10032 ac_status=$?
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
10035 rxvt_cv_uint32_t=yes
10036else
10037 echo "$as_me: failed program was:" >&5
10038sed 's/^/| /' conftest.$ac_ext >&5
10039 6762
10040if test "$ac_cv_sizeof_char" -ge 4; then 6763if test x$support_utmp = xyes; then
10041 rxvt_cv_uint32_t="unsigned char"
10042else
10043 if test "$ac_cv_sizeof_short" -ge 4; then
10044 rxvt_cv_uint32_t="unsigned short"
10045 else
10046 if test "$ac_cv_sizeof_int" -ge 4; then
10047 rxvt_cv_uint32_t="unsigned int"
10048 else
10049 if test "$ac_cv_sizeof_long" -ge 4; then
10050 rxvt_cv_uint32_t="unsigned long"
10051 else
10052 if test "$ac_cv_sizeof_long_long" -ge 4; then
10053 rxvt_cv_uint32_t="unsigned long long"
10054 else
10055 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
10056 fi
10057 fi
10058 fi
10059 fi
10060fi
10061fi
10062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10063fi
10064echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
10065echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
10066if test x"$rxvt_cv_uint32_t" != xyes; then
10067 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
10068else
10069 if test x"unsigned" = x; then
10070 rxvt_uint32_typedef="/* typedef int uint32_t; */"
10071 else
10072 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
10073 fi
10074fi
10075 6764
10076if test "$ac_cv_sizeof_int_p" -eq 8; then 6765$as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
10077 rxvt_intp_define="#define intp_t int64_t"
10078 rxvt_u_intp_define="#define u_intp_t u_int64_t"
10079else
10080 if test "$ac_cv_sizeof_int_p" -eq 4; then
10081 rxvt_intp_define="#define intp_t int32_t"
10082 rxvt_u_intp_define="#define u_intp_t u_int32_t"
10083 else
10084 if test "$ac_cv_sizeof_int_p" -eq 2; then
10085 rxvt_intp_define="#define intp_t int16_t"
10086 rxvt_u_intp_define="#define u_intp_t u_int16_t"
10087 else
10088 rxvt_intp_define="#error set intp_t"
10089 rxvt_u_intp_define="#error set u_intp_t"
10090 fi
10091 fi
10092fi
10093 6766
10094
10095
10096echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10097echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10098if test "${ac_cv_type_signal+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10100else
10101 cat >conftest.$ac_ext <<_ACEOF
10102/* confdefs.h. */
10103_ACEOF
10104cat confdefs.h >>conftest.$ac_ext
10105cat >>conftest.$ac_ext <<_ACEOF
10106/* end confdefs.h. */
10107#include <sys/types.h>
10108#include <signal.h>
10109#ifdef signal
10110# undef signal
10111#endif
10112#ifdef __cplusplus
10113extern "C" void (*signal (int, void (*)(int)))(int);
10114#else
10115void (*signal ()) ();
10116#endif
10117
10118int
10119main ()
10120{
10121int i;
10122 ;
10123 return 0;
10124}
10125_ACEOF
10126rm -f conftest.$ac_objext
10127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10128 (eval $ac_compile) 2>conftest.er1
10129 ac_status=$?
10130 grep -v '^ *+' conftest.er1 >conftest.err
10131 rm -f conftest.er1
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
10135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10138 ac_status=$?
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; } &&
10141 { ac_try='test -s conftest.$ac_objext'
10142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143 (eval $ac_try) 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; }; then
10147 ac_cv_type_signal=void
10148else
10149 echo "$as_me: failed program was:" >&5
10150sed 's/^/| /' conftest.$ac_ext >&5
10151
10152ac_cv_type_signal=int
10153fi 6767fi
10154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6768if test x$support_wtmp = xyes; then
10155fi
10156echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10157echo "${ECHO_T}$ac_cv_type_signal" >&6
10158 6769
10159cat >>confdefs.h <<_ACEOF 6770$as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
10160#define RETSIGTYPE $ac_cv_type_signal
10161_ACEOF
10162 6771
6772fi
6773if test x$support_lastlog = xyes; then
10163 6774
6775$as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
10164 6776
10165case "$host_alias" in 6777fi
10166 *ultrix) ac_cv_func_setsid='no' ;;
10167 *) break;;
10168esac
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187 6778
10188for ac_func in \ 6779for ac_func in \
10189 atexit \
10190 revoke \
10191 unsetenv \
10192 setutent \
10193 seteuid \
10194 setreuid \
10195 setsid \
10196 setpgrp \
10197 setpgid \
10198 _getpty \
10199 grantpt \
10200 unlockpt \
10201 isastream \
10202 on_exit \
10203 nanosleep \
10204 updwtmp \ 6780 updwtmp \
10205 updwtmpx \ 6781 updwtmpx \
10206 ttyslot \ 6782 updlastlogx \
10207 6783
10208do 6784do :
10209as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6785 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10210echo "$as_me:$LINENO: checking for $ac_func" >&5 6786ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10211echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10212if eval "test \"\${$as_ac_var+set}\" = set"; then 6787if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10214else
10215 cat >conftest.$ac_ext <<_ACEOF
10216/* confdefs.h. */
10217_ACEOF
10218cat confdefs.h >>conftest.$ac_ext
10219cat >>conftest.$ac_ext <<_ACEOF
10220/* end confdefs.h. */
10221/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10223#define $ac_func innocuous_$ac_func
10224
10225/* System header to define __stub macros and hopefully few prototypes,
10226 which can conflict with char $ac_func (); below.
10227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10228 <limits.h> exists even on freestanding compilers. */
10229
10230#ifdef __STDC__
10231# include <limits.h>
10232#else
10233# include <assert.h>
10234#endif
10235
10236#undef $ac_func
10237
10238/* Override any gcc2 internal prototype to avoid an error. */
10239#ifdef __cplusplus
10240extern "C"
10241{
10242#endif
10243/* We use char because int might match the return type of a gcc2
10244 builtin and then its argument prototype would still apply. */
10245char $ac_func ();
10246/* The GNU C library defines this for functions which it implements
10247 to always fail with ENOSYS. Some functions are actually named
10248 something starting with __ and the normal name is an alias. */
10249#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10250choke me
10251#else
10252char (*f) () = $ac_func;
10253#endif
10254#ifdef __cplusplus
10255}
10256#endif
10257
10258int
10259main ()
10260{
10261return f != $ac_func;
10262 ;
10263 return 0;
10264}
10265_ACEOF
10266rm -f conftest.$ac_objext conftest$ac_exeext
10267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268 (eval $ac_link) 2>conftest.er1
10269 ac_status=$?
10270 grep -v '^ *+' conftest.er1 >conftest.err
10271 rm -f conftest.er1
10272 cat conftest.err >&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } &&
10275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; } &&
10281 { ac_try='test -s conftest$ac_exeext'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10284 ac_status=$?
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10287 eval "$as_ac_var=yes"
10288else
10289 echo "$as_me: failed program was:" >&5
10290sed 's/^/| /' conftest.$ac_ext >&5
10291
10292eval "$as_ac_var=no"
10293fi
10294rm -f conftest.err conftest.$ac_objext \
10295 conftest$ac_exeext conftest.$ac_ext
10296fi
10297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10298echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10299if test `eval echo '${'$as_ac_var'}'` = yes; then
10300 cat >>confdefs.h <<_ACEOF 6788 cat >>confdefs.h <<_ACEOF
10301#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6789#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10302_ACEOF 6790_ACEOF
10303 6791
10304fi 6792fi
10305done 6793done
10306 6794
10307 6795
10308 6796for ac_header in lastlog.h
10309if test "${ac_cv_header_utmp_h+set}" = set; then 6797do :
10310 echo "$as_me:$LINENO: checking for utmp.h" >&5 6798 ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
10311echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 6799if test "x$ac_cv_header_lastlog_h" = xyes; then :
10312if test "${ac_cv_header_utmp_h+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10314fi
10315echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10316echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10317else
10318 # Is the header compilable?
10319echo "$as_me:$LINENO: checking utmp.h usability" >&5
10320echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
10321cat >conftest.$ac_ext <<_ACEOF
10322/* confdefs.h. */
10323_ACEOF
10324cat confdefs.h >>conftest.$ac_ext
10325cat >>conftest.$ac_ext <<_ACEOF 6800 cat >>confdefs.h <<_ACEOF
10326/* end confdefs.h. */ 6801#define HAVE_LASTLOG_H 1
10327$ac_includes_default
10328#include <utmp.h>
10329_ACEOF 6802_ACEOF
10330rm -f conftest.$ac_objext
10331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10332 (eval $ac_compile) 2>conftest.er1
10333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } &&
10339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341 (eval $ac_try) 2>&5
10342 ac_status=$?
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; } &&
10345 { ac_try='test -s conftest.$ac_objext'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10348 ac_status=$?
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }; then
10351 ac_header_compiler=yes
10352else
10353 echo "$as_me: failed program was:" >&5
10354sed 's/^/| /' conftest.$ac_ext >&5
10355 6803
10356ac_header_compiler=no
10357fi 6804fi
10358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10359echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10360echo "${ECHO_T}$ac_header_compiler" >&6
10361 6805
10362# Is the header present? 6806done
10363echo "$as_me:$LINENO: checking utmp.h presence" >&5
10364echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
10365cat >conftest.$ac_ext <<_ACEOF
10366/* confdefs.h. */
10367_ACEOF
10368cat confdefs.h >>conftest.$ac_ext
10369cat >>conftest.$ac_ext <<_ACEOF
10370/* end confdefs.h. */
10371#include <utmp.h>
10372_ACEOF
10373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } >/dev/null; then
10381 if test -s conftest.err; then
10382 ac_cpp_err=$ac_cxx_preproc_warn_flag
10383 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10384 else
10385 ac_cpp_err=
10386 fi
10387else
10388 ac_cpp_err=yes
10389fi
10390if test -z "$ac_cpp_err"; then
10391 ac_header_preproc=yes
10392else
10393 echo "$as_me: failed program was:" >&5
10394sed 's/^/| /' conftest.$ac_ext >&5
10395 6807
10396 ac_header_preproc=no
10397fi
10398rm -f conftest.err conftest.$ac_ext
10399echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10400echo "${ECHO_T}$ac_header_preproc" >&6
10401 6808
10402# So? What about this header? 6809case $host in
10403case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 6810 *-*-solaris*)
10404 yes:no: ) 6811
10405 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 6812$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
10406echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6813
10407 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10408echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10409 ac_header_preproc=yes
10410 ;; 6814 ;;
10411 no:yes:* )
10412 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10413echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10414 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10415echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10416 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10417echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10418 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10419echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10420 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10421echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10422 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10423echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10424 (
10425 cat <<\_ASBOX
10426## ------------------------------------------ ##
10427## Report this to the AC_PACKAGE_NAME lists. ##
10428## ------------------------------------------ ##
10429_ASBOX
10430 ) |
10431 sed "s/^/$as_me: WARNING: /" >&2
10432 ;;
10433esac 6815esac
10434echo "$as_me:$LINENO: checking for utmp.h" >&5
10435echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10436if test "${ac_cv_header_utmp_h+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
10438else
10439 ac_cv_header_utmp_h=$ac_header_preproc
10440fi
10441echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10442echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10443 6816
10444fi 6817
6818for ac_header in utmp.h
6819do :
6820 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
10445if test $ac_cv_header_utmp_h = yes; then 6821if test "x$ac_cv_header_utmp_h" = xyes; then :
10446 echo "$as_me:$LINENO: checking for struct utmp" >&5
10447echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10448if test "${rxvt_cv_struct_utmp+set}" = set; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10450else
10451 cat >conftest.$ac_ext <<_ACEOF
10452/* confdefs.h. */
10453_ACEOF
10454cat confdefs.h >>conftest.$ac_ext
10455cat >>conftest.$ac_ext <<_ACEOF
10456/* end confdefs.h. */
10457#include <sys/types.h>
10458#include <stdint.h>
10459#include <utmp.h>
10460int
10461main ()
10462{
10463struct utmp ut;
10464 ;
10465 return 0;
10466}
10467_ACEOF
10468rm -f conftest.$ac_objext
10469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10470 (eval $ac_compile) 2>conftest.er1
10471 ac_status=$?
10472 grep -v '^ *+' conftest.er1 >conftest.err
10473 rm -f conftest.er1
10474 cat conftest.err >&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } &&
10477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; } &&
10483 { ac_try='test -s conftest.$ac_objext'
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; }; then
10489 rxvt_cv_struct_utmp=yes
10490else
10491 echo "$as_me: failed program was:" >&5
10492sed 's/^/| /' conftest.$ac_ext >&5
10493
10494rxvt_cv_struct_utmp=no
10495fi
10496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10497fi
10498echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
10499echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
10500if test x$rxvt_cv_struct_utmp = xyes; then
10501
10502cat >>confdefs.h <<\_ACEOF 6822 cat >>confdefs.h <<_ACEOF
10503#define HAVE_STRUCT_UTMP 1 6823#define HAVE_UTMP_H 1
10504_ACEOF 6824_ACEOF
10505 6825
10506fi 6826ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
10507
10508
10509echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10510echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10511if test "${rxvt_cv_struct_utmp_host+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513else
10514 cat >conftest.$ac_ext <<_ACEOF
10515/* confdefs.h. */
10516_ACEOF
10517cat confdefs.h >>conftest.$ac_ext
10518cat >>conftest.$ac_ext <<_ACEOF
10519/* end confdefs.h. */
10520#include <sys/types.h> 6827#include <sys/types.h>
10521#include <utmp.h> 6828#include <utmp.h>
10522int
10523main ()
10524{
10525struct utmp ut; ut.ut_host;
10526 ;
10527 return 0;
10528}
10529_ACEOF
10530rm -f conftest.$ac_objext
10531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10532 (eval $ac_compile) 2>conftest.er1
10533 ac_status=$?
10534 grep -v '^ *+' conftest.er1 >conftest.err
10535 rm -f conftest.er1
10536 cat conftest.err >&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } &&
10539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; } &&
10545 { ac_try='test -s conftest.$ac_objext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 rxvt_cv_struct_utmp_host=yes
10552else
10553 echo "$as_me: failed program was:" >&5
10554sed 's/^/| /' conftest.$ac_ext >&5
10555 6829
10556rxvt_cv_struct_utmp_host=no 6830"
10557fi
10558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10559fi
10560echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
10561echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
10562if test x$rxvt_cv_struct_utmp_host = xyes; then 6831if test "x$ac_cv_type_struct_utmp" = xyes; then :
10563 6832
10564cat >>confdefs.h <<\_ACEOF 6833cat >>confdefs.h <<_ACEOF
10565#define HAVE_UTMP_HOST 1 6834#define HAVE_STRUCT_UTMP 1
10566_ACEOF 6835_ACEOF
10567 6836
10568fi
10569 6837
10570echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 6838fi
10571echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 6839
10572if test "${rxvt_cv_struct_utmp_pid+set}" = set; then 6840
10573 echo $ECHO_N "(cached) $ECHO_C" >&6 6841ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
10574else
10575 cat >conftest.$ac_ext <<_ACEOF
10576/* confdefs.h. */
10577_ACEOF
10578cat confdefs.h >>conftest.$ac_ext
10579cat >>conftest.$ac_ext <<_ACEOF
10580/* end confdefs.h. */
10581#include <sys/types.h> 6842#include <sys/types.h>
10582#include <utmp.h> 6843#include <utmp.h>
10583int
10584main ()
10585{
10586struct utmp ut; ut.ut_pid;
10587 ;
10588 return 0;
10589}
10590_ACEOF
10591rm -f conftest.$ac_objext
10592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10593 (eval $ac_compile) 2>conftest.er1
10594 ac_status=$?
10595 grep -v '^ *+' conftest.er1 >conftest.err
10596 rm -f conftest.er1
10597 cat conftest.err >&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } &&
10600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; } &&
10606 { ac_try='test -s conftest.$ac_objext'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 rxvt_cv_struct_utmp_pid=yes
10613else
10614 echo "$as_me: failed program was:" >&5
10615sed 's/^/| /' conftest.$ac_ext >&5
10616 6844
10617rxvt_cv_struct_utmp_pid=no 6845"
10618fi 6846if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
10619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10620fi
10621echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
10622echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
10623if test x$rxvt_cv_struct_utmp_pid = xyes; then
10624 6847
10625cat >>confdefs.h <<\_ACEOF 6848$as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
10626#define HAVE_UTMP_PID 1
10627_ACEOF
10628 6849
10629fi 6850fi
10630 6851
10631fi
10632 6852
10633 6853ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
10634 6854#include <sys/types.h>
10635if test "${ac_cv_header_utmpx_h+set}" = set; then
10636 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10637echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10638if test "${ac_cv_header_utmpx_h+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640fi
10641echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10642echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10643else
10644 # Is the header compilable?
10645echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10646echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
10647cat >conftest.$ac_ext <<_ACEOF
10648/* confdefs.h. */
10649_ACEOF
10650cat confdefs.h >>conftest.$ac_ext
10651cat >>conftest.$ac_ext <<_ACEOF
10652/* end confdefs.h. */
10653$ac_includes_default
10654#include <utmpx.h> 6855#include <utmp.h>
10655_ACEOF
10656rm -f conftest.$ac_objext
10657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10658 (eval $ac_compile) 2>conftest.er1
10659 ac_status=$?
10660 grep -v '^ *+' conftest.er1 >conftest.err
10661 rm -f conftest.er1
10662 cat conftest.err >&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } &&
10665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; } &&
10671 { ac_try='test -s conftest.$ac_objext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 ac_header_compiler=yes
10678else
10679 echo "$as_me: failed program was:" >&5
10680sed 's/^/| /' conftest.$ac_ext >&5
10681 6856
10682ac_header_compiler=no 6857"
10683fi 6858if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
10684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10685echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10686echo "${ECHO_T}$ac_header_compiler" >&6
10687 6859
10688# Is the header present? 6860$as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
10689echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10690echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
10691cat >conftest.$ac_ext <<_ACEOF
10692/* confdefs.h. */
10693_ACEOF
10694cat confdefs.h >>conftest.$ac_ext
10695cat >>conftest.$ac_ext <<_ACEOF
10696/* end confdefs.h. */
10697#include <utmpx.h>
10698_ACEOF
10699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10701 ac_status=$?
10702 grep -v '^ *+' conftest.er1 >conftest.err
10703 rm -f conftest.er1
10704 cat conftest.err >&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } >/dev/null; then
10707 if test -s conftest.err; then
10708 ac_cpp_err=$ac_cxx_preproc_warn_flag
10709 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10710 else
10711 ac_cpp_err=
10712 fi
10713else
10714 ac_cpp_err=yes
10715fi
10716if test -z "$ac_cpp_err"; then
10717 ac_header_preproc=yes
10718else
10719 echo "$as_me: failed program was:" >&5
10720sed 's/^/| /' conftest.$ac_ext >&5
10721 6861
10722 ac_header_preproc=no
10723fi 6862fi
10724rm -f conftest.err conftest.$ac_ext
10725echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10726echo "${ECHO_T}$ac_header_preproc" >&6
10727 6863
10728# So? What about this header?
10729case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10730 yes:no: )
10731 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10732echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10733 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10734echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10735 ac_header_preproc=yes
10736 ;;
10737 no:yes:* )
10738 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10739echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10740 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10741echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10742 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10743echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10745echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10747echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10748 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10749echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10750 (
10751 cat <<\_ASBOX
10752## ------------------------------------------ ##
10753## Report this to the AC_PACKAGE_NAME lists. ##
10754## ------------------------------------------ ##
10755_ASBOX
10756 ) |
10757 sed "s/^/$as_me: WARNING: /" >&2
10758 ;;
10759esac
10760echo "$as_me:$LINENO: checking for utmpx.h" >&5
10761echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10762if test "${ac_cv_header_utmpx_h+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10764else
10765 ac_cv_header_utmpx_h=$ac_header_preproc
10766fi
10767echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10768echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10769 6864
10770fi 6865fi
6866
6867done
6868
6869
6870for ac_header in utmpx.h
6871do :
6872 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
10771if test $ac_cv_header_utmpx_h = yes; then 6873if test "x$ac_cv_header_utmpx_h" = xyes; then :
10772 echo "$as_me:$LINENO: checking for struct utmpx" >&5
10773echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10774if test "${rxvt_cv_struct_utmpx+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776else
10777 cat >conftest.$ac_ext <<_ACEOF 6874 cat >>confdefs.h <<_ACEOF
10778/* confdefs.h. */ 6875#define HAVE_UTMPX_H 1
10779_ACEOF 6876_ACEOF
10780cat confdefs.h >>conftest.$ac_ext 6877
10781cat >>conftest.$ac_ext <<_ACEOF 6878ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" "
10782/* end confdefs.h. */
10783#include <sys/types.h> 6879#include <sys/types.h>
10784#include <utmpx.h> 6880#include <utmpx.h>
10785int
10786main ()
10787{
10788struct utmpx ut;
10789 ;
10790 return 0;
10791}
10792_ACEOF
10793rm -f conftest.$ac_objext
10794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10795 (eval $ac_compile) 2>conftest.er1
10796 ac_status=$?
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
10802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; } &&
10808 { ac_try='test -s conftest.$ac_objext'
10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then
10814 rxvt_cv_struct_utmpx=yes
10815else
10816 echo "$as_me: failed program was:" >&5
10817sed 's/^/| /' conftest.$ac_ext >&5
10818 6881
10819rxvt_cv_struct_utmpx=no 6882"
10820fi
10821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10822fi
10823echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
10824echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
10825if test x$rxvt_cv_struct_utmpx = xyes; then 6883if test "x$ac_cv_type_struct_utmpx" = xyes; then :
10826 6884
10827cat >>confdefs.h <<\_ACEOF 6885cat >>confdefs.h <<_ACEOF
10828#define HAVE_STRUCT_UTMPX 1 6886#define HAVE_STRUCT_UTMPX 1
10829_ACEOF 6887_ACEOF
10830 6888
10831fi
10832 6889
6890fi
10833 6891
10834echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 6892
10835echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 6893ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
10836if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10838else
10839 cat >conftest.$ac_ext <<_ACEOF
10840/* confdefs.h. */
10841_ACEOF
10842cat confdefs.h >>conftest.$ac_ext
10843cat >>conftest.$ac_ext <<_ACEOF
10844/* end confdefs.h. */
10845#include <sys/types.h> 6894#include <sys/types.h>
10846#include <utmpx.h> 6895#include <utmpx.h>
10847int
10848main ()
10849{
10850struct utmpx utx; utx.ut_host;
10851 ;
10852 return 0;
10853}
10854_ACEOF
10855rm -f conftest.$ac_objext
10856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10857 (eval $ac_compile) 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; } &&
10870 { ac_try='test -s conftest.$ac_objext'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10873 ac_status=$?
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; }; then
10876 rxvt_cv_struct_utmpx_host=yes
10877else
10878 echo "$as_me: failed program was:" >&5
10879sed 's/^/| /' conftest.$ac_ext >&5
10880 6896
10881rxvt_cv_struct_utmpx_host=no 6897"
10882fi
10883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10884fi
10885echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
10886echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
10887if test x$rxvt_cv_struct_utmpx_host = xyes; then 6898if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
10888 6899
10889cat >>confdefs.h <<\_ACEOF 6900$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
10890#define HAVE_UTMPX_HOST 1
10891_ACEOF
10892 6901
10893fi 6902fi
10894 6903
10895echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10896echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10897if test "${rxvt_cv_struct_utmpx_session+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10899else
10900 cat >conftest.$ac_ext <<_ACEOF
10901/* confdefs.h. */
10902_ACEOF
10903cat confdefs.h >>conftest.$ac_ext
10904cat >>conftest.$ac_ext <<_ACEOF
10905/* end confdefs.h. */
10906#include <sys/types.h>
10907#include <utmpx.h>
10908int
10909main ()
10910{
10911struct utmpx utx; utx.ut_session;
10912 ;
10913 return 0;
10914}
10915_ACEOF
10916rm -f conftest.$ac_objext
10917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10918 (eval $ac_compile) 2>conftest.er1
10919 ac_status=$?
10920 grep -v '^ *+' conftest.er1 >conftest.err
10921 rm -f conftest.er1
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } &&
10925 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; } &&
10931 { ac_try='test -s conftest.$ac_objext'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10934 ac_status=$?
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; }; then
10937 rxvt_cv_struct_utmpx_session=yes
10938else
10939 echo "$as_me: failed program was:" >&5
10940sed 's/^/| /' conftest.$ac_ext >&5
10941 6904
10942rxvt_cv_struct_utmpx_session=no
10943fi 6905fi
10944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10945fi
10946echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5
10947echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6
10948if test x$rxvt_cv_struct_utmpx_session = xyes; then
10949 6906
10950cat >>confdefs.h <<\_ACEOF 6907done
10951#define HAVE_UTMPX_SESSION 1
10952_ACEOF
10953 6908
10954fi 6909ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
10955
10956fi
10957
10958
10959echo "$as_me:$LINENO: checking for struct lastlog" >&5
10960echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10961if test "${rxvt_cv_struct_lastlog+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963else
10964 cat >conftest.$ac_ext <<_ACEOF
10965/* confdefs.h. */
10966_ACEOF
10967cat confdefs.h >>conftest.$ac_ext
10968cat >>conftest.$ac_ext <<_ACEOF
10969/* end confdefs.h. */
10970#include <sys/types.h> 6910#include <sys/types.h>
10971#include <utmp.h> 6911#include <utmp.h>
10972#ifdef HAVE_LASTLOG_H 6912#ifdef HAVE_LASTLOG_H
10973#include <lastlog.h> 6913#include <lastlog.h>
10974#endif 6914#endif
10975 6915
10976int 6916"
10977main ()
10978{
10979struct lastlog ll;
10980 ;
10981 return 0;
10982}
10983_ACEOF
10984rm -f conftest.$ac_objext
10985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10986 (eval $ac_compile) 2>conftest.er1
10987 ac_status=$?
10988 grep -v '^ *+' conftest.er1 >conftest.err
10989 rm -f conftest.er1
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; } &&
10999 { ac_try='test -s conftest.$ac_objext'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11005 rxvt_cv_struct_lastlog=yes
11006else
11007 echo "$as_me: failed program was:" >&5
11008sed 's/^/| /' conftest.$ac_ext >&5
11009
11010rxvt_cv_struct_lastlog=no
11011fi
11012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11013fi
11014echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
11015echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
11016if test x$rxvt_cv_struct_lastlog = xyes; then 6917if test "x$ac_cv_type_struct_lastlog" = xyes; then :
11017 6918
11018cat >>confdefs.h <<\_ACEOF 6919cat >>confdefs.h <<_ACEOF
11019#define HAVE_STRUCT_LASTLOG 1 6920#define HAVE_STRUCT_LASTLOG 1
11020_ACEOF 6921_ACEOF
11021 6922
11022fi
11023 6923
11024echo "$as_me:$LINENO: checking for struct lastlogx" >&5 6924fi
11025echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 6925
11026if test "${rxvt_cv_struct_lastlogx+set}" = set; then 6926
11027 echo $ECHO_N "(cached) $ECHO_C" >&6 6927ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" "
11028else
11029 cat >conftest.$ac_ext <<_ACEOF
11030/* confdefs.h. */
11031_ACEOF
11032cat confdefs.h >>conftest.$ac_ext
11033cat >>conftest.$ac_ext <<_ACEOF
11034/* end confdefs.h. */
11035#include <sys/types.h> 6928#include <sys/types.h>
11036#include <utmpx.h> 6929#include <utmpx.h>
11037#ifdef HAVE_LASTLOG_H 6930#ifdef HAVE_LASTLOG_H
11038#include <lastlog.h> 6931#include <lastlog.h>
11039#endif 6932#endif
11040 6933
11041int 6934"
11042main ()
11043{
11044struct lastlogx ll;
11045 ;
11046 return 0;
11047}
11048_ACEOF
11049rm -f conftest.$ac_objext
11050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11051 (eval $ac_compile) 2>conftest.er1
11052 ac_status=$?
11053 grep -v '^ *+' conftest.er1 >conftest.err
11054 rm -f conftest.er1
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } &&
11058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; } &&
11064 { ac_try='test -s conftest.$ac_objext'
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 rxvt_cv_struct_lastlogx=yes
11071else
11072 echo "$as_me: failed program was:" >&5
11073sed 's/^/| /' conftest.$ac_ext >&5
11074
11075rxvt_cv_struct_lastlogx=no
11076fi
11077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11078fi
11079echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
11080echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
11081if test x$rxvt_cv_struct_lastlogx = xyes; then 6935if test "x$ac_cv_type_struct_lastlogx" = xyes; then :
11082 6936
11083cat >>confdefs.h <<\_ACEOF 6937cat >>confdefs.h <<_ACEOF
11084#define HAVE_STRUCT_LASTLOGX 1 6938#define HAVE_STRUCT_LASTLOGX 1
11085_ACEOF 6939_ACEOF
11086 6940
11087fi
11088 6941
6942fi
11089 6943
11090echo "$as_me:$LINENO: checking where utmp is located" >&5 6944
11091echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 6945
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5
6947$as_echo_n "checking for a fallback location of utmp... " >&6; }
6948if ${pt_cv_path_utmp+:} false; then :
6949 $as_echo_n "(cached) " >&6
6950else
6951
6952if test "$cross_compiling" != yes; then
6953 for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do
6954 if test -f "$file"; then
6955 pt_cv_path_utmp=$file
6956 break
6957 fi
6958 done
6959fi
6960fi
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
6962$as_echo "$pt_cv_path_utmp" >&6; }
11092if test "${rxvt_cv_path_utmp+set}" = set; then 6963if test x$pt_cv_path_utmp != x; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6 6964
6965cat >>confdefs.h <<_ACEOF
6966#define PT_UTMP_FILE "$pt_cv_path_utmp"
6967_ACEOF
6968
6969elif test "$cross_compiling" = yes; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5
6971$as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;}
6972fi
6973
6974
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5
6976$as_echo_n "checking for a fallback location of wtmp... " >&6; }
6977if ${pt_cv_path_wtmp+:} false; then :
6978 $as_echo_n "(cached) " >&6
11094else 6979else
6980
6981if test "$cross_compiling" != yes; then
6982 for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do
6983 if test -f "$file"; then
6984 pt_cv_path_wtmp=$file
6985 break
6986 fi
6987 done
6988fi
6989fi
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
6991$as_echo "$pt_cv_path_wtmp" >&6; }
6992if test x$pt_cv_path_wtmp != x; then
6993
6994cat >>confdefs.h <<_ACEOF
6995#define PT_WTMP_FILE "$pt_cv_path_wtmp"
6996_ACEOF
6997
6998elif test "$cross_compiling" = yes; then
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5
7000$as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;}
7001fi
7002
7003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5
7004$as_echo_n "checking for a fallback location of wtmpx... " >&6; }
7005if ${pt_cv_path_wtmpx+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007else
7008
7009if test "$cross_compiling" != yes; then
7010 for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do
7011 if test -f "$file"; then
7012 pt_cv_path_wtmpx=$file
7013 break
7014 fi
7015 done
7016fi
7017fi
7018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
7019$as_echo "$pt_cv_path_wtmpx" >&6; }
7020if test x$pt_cv_path_wtmpx != x; then
7021
7022cat >>confdefs.h <<_ACEOF
7023#define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
7024_ACEOF
7025
7026elif test "$cross_compiling" = yes; then
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5
7028$as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;}
7029fi
7030
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5
7032$as_echo_n "checking for a fallback location of lastlog... " >&6; }
7033if ${pt_cv_path_lastlog+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035else
7036
7037if test "$cross_compiling" != yes; then
7038 for file in "/var/log/lastlog" "/var/adm/lastlog"; do
7039 if test -f "$file"; then
7040 pt_cv_path_lastlog=$file
7041 break
7042 fi
7043 done
7044fi
7045fi
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
7047$as_echo "$pt_cv_path_lastlog" >&6; }
7048if test x$pt_cv_path_lastlog != x; then
7049
7050cat >>confdefs.h <<_ACEOF
7051#define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
7052_ACEOF
7053
7054elif test "$cross_compiling" = yes; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5
7056$as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;}
7057fi
7058
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5
7060$as_echo_n "checking for a fallback location of lastlogx... " >&6; }
7061if ${pt_cv_path_lastlogx+:} false; then :
7062 $as_echo_n "(cached) " >&6
7063else
7064
7065if test "$cross_compiling" != yes; then
7066 for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do
7067 if test -f "$file"; then
7068 pt_cv_path_lastlogx=$file
7069 break
7070 fi
7071 done
7072fi
7073fi
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
7075$as_echo "$pt_cv_path_lastlogx" >&6; }
7076if test x$pt_cv_path_lastlogx != x; then
7077
7078cat >>confdefs.h <<_ACEOF
7079#define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx"
7080_ACEOF
7081
7082elif test "$cross_compiling" = yes; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5
7084$as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;}
7085fi
7086
7087
7088
7089
7090save_LIBS=$LIBS
7091save_CXXFLAGS=$CXXFLAGS
7092CXXFLAGS="$CXXFLAGS $X_CFLAGS"
7093LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7094if test x$support_xim = xyes; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
7096$as_echo_n "checking for working Xlocale... " >&6; }
7097if ${rxvt_cv_func_xlocale+:} false; then :
7098 $as_echo_n "(cached) " >&6
7099else
11095 if test "$cross_compiling" = yes; then 7100 if test "$cross_compiling" = yes; then :
11096 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 7101 :
11097echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
11098else 7102else
11099 cat >conftest.$ac_ext <<_ACEOF
11100/* confdefs.h. */
11101_ACEOF
11102cat confdefs.h >>conftest.$ac_ext 7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103cat >>conftest.$ac_ext <<_ACEOF
11104/* end confdefs.h. */ 7104/* end confdefs.h. */
7105
7106 #include <X11/Xlib.h>
11105#include <stdio.h> 7107 #include <stdlib.h>
11106#include <sys/types.h> 7108 int main() {
11107#include <utmp.h> 7109 char *p;
11108#include <errno.h> 7110 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11109main() 7111 exit (XSupportsLocale() ? 0 : 1);
11110{ 7112 else
11111 char **u, *utmplist[] = {
11112 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
11113 FILE *a, *f=fopen("conftestval", "w");
11114 if (!f) exit(1);
11115#ifdef UTMP_FILE
11116 fprintf(f, "%s\n", UTMP_FILE);
11117 exit(0); 7113 exit (1);
11118#endif 7114 }
11119#ifdef _PATH_UTMP 7115
11120 fprintf(f, "%s\n", _PATH_UTMP); 7116_ACEOF
11121 exit(0); 7117if ac_fn_cxx_try_run "$LINENO"; then :
11122#endif 7118 rxvt_cv_func_xlocale=yes
11123 for (u = utmplist; *u; u++) { 7119else
11124 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { 7120 rxvt_cv_func_xlocale=no
11125 fprintf(f, "%s\n", *u); 7121fi
11126 exit(0); 7122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11127 } 7123 conftest.$ac_objext conftest.beam conftest.$ac_ext
7124fi
7125
7126fi
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
7128$as_echo "$rxvt_cv_func_xlocale" >&6; }
7129 if test x$rxvt_cv_func_xlocale = xyes; then
7130
7131$as_echo "#define USE_XIM 1" >>confdefs.h
7132
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
7134$as_echo_n "checking for broken XIM callback... " >&6; }
7135if ${rxvt_cv_broken_ximcb+:} false; then :
7136 $as_echo_n "(cached) " >&6
7137else
7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139/* end confdefs.h. */
7140
7141 #include <X11/Xlib.h>
7142
7143 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
7144
7145 void f() {
7146 XIMCallback cb;
7147 cb.callback = im_destroy_cb;
11128 } 7148 }
11129 exit(0);
11130}
11131_ACEOF
11132rm -f conftest$ac_exeext
11133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11134 (eval $ac_link) 2>&5
11135 ac_status=$?
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11140 ac_status=$?
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 rxvt_cv_path_utmp=`cat conftestval`
11144else
11145 echo "$as_me: program exited with status $ac_status" >&5
11146echo "$as_me: failed program was:" >&5
11147sed 's/^/| /' conftest.$ac_ext >&5
11148 7149
11149( exit $ac_status ) 7150_ACEOF
11150rxvt_cv_path_utmp= 7151if ac_fn_cxx_try_compile "$LINENO"; then :
7152 rxvt_cv_broken_ximcb=yes
7153else
7154 rxvt_cv_broken_ximcb=no
11151fi 7155fi
11152rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11153fi 7157fi
11154fi 7158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
11155echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 7159$as_echo "$rxvt_cv_broken_ximcb" >&6; }
11156echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
11157if test x$rxvt_cv_path_utmp != x; then
11158 7160
11159cat >>confdefs.h <<_ACEOF 7161 if test x$rxvt_cv_broken_ximcb = xyes; then
11160#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
11161_ACEOF
11162 7162
11163fi 7163$as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
11164 7164
11165
11166echo "$as_me:$LINENO: checking where utmpx is located" >&5
11167echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
11168if test "${rxvt_cv_path_utmpx+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11170else
11171 if test "$cross_compiling" = yes; then
11172 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
11173echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
11174else
11175 cat >conftest.$ac_ext <<_ACEOF
11176/* confdefs.h. */
11177_ACEOF
11178cat confdefs.h >>conftest.$ac_ext
11179cat >>conftest.$ac_ext <<_ACEOF
11180/* end confdefs.h. */
11181#include <stdio.h>
11182#include <sys/types.h>
11183#include <utmpx.h>
11184#include <errno.h>
11185#include <sys/stat.h>
11186#ifdef HAVE_STRING_H
11187#include <string.h>
11188#endif
11189main()
11190{
11191 char **u, *p, *utmplist[] = {
11192#ifdef UTMPX_FILE
11193 UTMPX_FILE,
11194#endif
11195#ifdef _PATH_UTMPX
11196 _PATH_UTMPX,
11197#endif
11198 "/var/adm/utmpx", "/etc/utmpx", NULL };
11199 FILE *a, *f=fopen("conftestval", "w");
11200 struct stat statu, statux;
11201 if (!f) exit(1);
11202 for (u = utmplist; *u; u++) {
11203 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11204 if (stat(*u, &statux) < 0)
11205 continue;
11206 p = strdup(*u);
11207 p[strlen(p) - 1] = '\0';
11208 if (stat(p, &statu) >= 0
11209 && (statu.st_mtime - statux.st_mtime > 86400))
11210 continue;
11211 fprintf(f, "%s\n", *u);
11212 exit(0);
11213 }
11214 }
11215 exit(0);
11216}
11217_ACEOF
11218rm -f conftest$ac_exeext
11219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11220 (eval $ac_link) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225 (eval $ac_try) 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; }; then
11229 rxvt_cv_path_utmpx=`cat conftestval`
11230else
11231 echo "$as_me: program exited with status $ac_status" >&5
11232echo "$as_me: failed program was:" >&5
11233sed 's/^/| /' conftest.$ac_ext >&5
11234
11235( exit $ac_status )
11236rxvt_cv_path_utmpx=
11237fi
11238rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11239fi
11240fi
11241echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
11242echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
11243if test x$rxvt_cv_path_utmpx != x; then
11244
11245cat >>confdefs.h <<_ACEOF
11246#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
11247_ACEOF
11248
11249fi
11250
11251
11252echo "$as_me:$LINENO: checking where wtmp is located" >&5
11253echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
11254if test "${rxvt_cv_path_wtmp+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11256else
11257 if test "$cross_compiling" = yes; then
11258 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
11259echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
11260else
11261 cat >conftest.$ac_ext <<_ACEOF
11262/* confdefs.h. */
11263_ACEOF
11264cat confdefs.h >>conftest.$ac_ext
11265cat >>conftest.$ac_ext <<_ACEOF
11266/* end confdefs.h. */
11267#include <stdio.h>
11268#include <sys/types.h>
11269#ifdef HAVE_UTMP_H
11270#include <utmp.h>
11271#endif
11272#include <errno.h>
11273main()
11274{
11275 char **w, *wtmplist[] = {
11276 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11277 FILE *a, *f=fopen("conftestval", "w");
11278 if (!f) exit(1);
11279#ifdef WTMP_FILE
11280 fprintf(f, "%s\n", WTMP_FILE);
11281 exit(0);
11282#endif
11283#ifdef _PATH_WTMP
11284 fprintf(f, "%s\n", _PATH_WTMP);
11285 exit(0);
11286#endif
11287 for (w = wtmplist; *w; w++) {
11288 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11289 fprintf(f, "%s\n", *w);
11290 exit(0);
11291 }
11292 }
11293 exit(0);
11294}
11295_ACEOF
11296rm -f conftest$ac_exeext
11297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11298 (eval $ac_link) 2>&5
11299 ac_status=$?
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; }; then
11307 rxvt_cv_path_wtmp=`cat conftestval`
11308else
11309 echo "$as_me: program exited with status $ac_status" >&5
11310echo "$as_me: failed program was:" >&5
11311sed 's/^/| /' conftest.$ac_ext >&5
11312
11313( exit $ac_status )
11314rxvt_cv_path_wtmp=
11315fi
11316rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11317fi
11318fi
11319echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
11320echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
11321if test x$rxvt_cv_path_wtmp != x; then
11322
11323cat >>confdefs.h <<_ACEOF
11324#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
11325_ACEOF
11326
11327fi
11328
11329echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11330echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11331if test "${rxvt_cv_path_wtmpx+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11333else
11334 if test "$cross_compiling" = yes; then
11335 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
11336echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
11337else
11338 cat >conftest.$ac_ext <<_ACEOF
11339/* confdefs.h. */
11340_ACEOF
11341cat confdefs.h >>conftest.$ac_ext
11342cat >>conftest.$ac_ext <<_ACEOF
11343/* end confdefs.h. */
11344#include <stdio.h>
11345#ifdef HAVE_UTMPX_H
11346#include <utmpx.h>
11347#endif
11348#include <errno.h>
11349main()
11350{
11351 char **w, *wtmplist[] = {
11352 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11353 FILE *a, *f=fopen("conftestval", "w");
11354 if (!f) exit(1);
11355#ifdef WTMPX_FILE
11356 fprintf(f, "%s\n", WTMPX_FILE);
11357 exit(0);
11358#endif
11359#ifdef _PATH_WTMPX
11360 fprintf(f, "%s\n", _PATH_WTMPX);
11361 exit(0);
11362#endif
11363 for (w = wtmplist; *w; w++) {
11364 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11365 fprintf(f, "%s\n", *w);
11366 exit(0);
11367 }
11368 }
11369 exit(0);
11370}
11371_ACEOF
11372rm -f conftest$ac_exeext
11373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11374 (eval $ac_link) 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11380 ac_status=$?
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
11383 rxvt_cv_path_wtmpx=`cat conftestval`
11384else
11385 echo "$as_me: program exited with status $ac_status" >&5
11386echo "$as_me: failed program was:" >&5
11387sed 's/^/| /' conftest.$ac_ext >&5
11388
11389( exit $ac_status )
11390rxvt_cv_path_wtmpx=
11391fi
11392rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11393fi
11394fi
11395echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
11396echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
11397if test x$rxvt_cv_path_wtmpx != x; then
11398
11399cat >>confdefs.h <<_ACEOF
11400#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
11401_ACEOF
11402
11403fi
11404
11405echo "$as_me:$LINENO: checking where lastlog is located" >&5
11406echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11407if test "${rxvt_cv_path_lastlog+set}" = set; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11409else
11410 if test "$cross_compiling" = yes; then
11411 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
11412echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
11413else
11414 cat >conftest.$ac_ext <<_ACEOF
11415/* confdefs.h. */
11416_ACEOF
11417cat confdefs.h >>conftest.$ac_ext
11418cat >>conftest.$ac_ext <<_ACEOF
11419/* end confdefs.h. */
11420#include <stdio.h>
11421#include <sys/types.h>
11422#ifdef HAVE_UTMPX_H
11423#include <utmpx.h>
11424#elif defined(HAVE_UTMP_H)
11425#include <utmp.h>
11426#endif
11427#ifdef HAVE_LASTLOG_H
11428#include <lastlog.h>
11429#endif
11430#include <errno.h>
11431main()
11432{
11433 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11434 FILE *a, *f=fopen("conftestval", "w");
11435 if (!f) exit(1);
11436#ifdef LASTLOG_FILE
11437 fprintf(f, "%s\n", LASTLOG_FILE);
11438 exit(0);
11439#endif
11440#ifdef _PATH_LASTLOG
11441 fprintf(f, "%s\n", _PATH_LASTLOG);
11442 exit(0);
11443#endif
11444 for (w = lastloglist; *w; w++) {
11445 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11446 fprintf(f, "%s\n", *w);
11447 exit(0);
11448 }
11449 }
11450 exit(0);
11451}
11452_ACEOF
11453rm -f conftest$ac_exeext
11454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11455 (eval $ac_link) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
11464 rxvt_cv_path_lastlog=`cat conftestval`
11465else
11466 echo "$as_me: program exited with status $ac_status" >&5
11467echo "$as_me: failed program was:" >&5
11468sed 's/^/| /' conftest.$ac_ext >&5
11469
11470( exit $ac_status )
11471rxvt_cv_path_lastlog=
11472fi
11473rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11474fi
11475fi
11476echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
11477echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
11478if test x$rxvt_cv_path_lastlog != x; then
11479
11480cat >>confdefs.h <<_ACEOF
11481#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
11482_ACEOF
11483
11484 if test -d "$rxvt_cv_path_lastlog"; then
11485
11486cat >>confdefs.h <<\_ACEOF
11487#define LASTLOG_IS_DIR 1
11488_ACEOF
11489
11490 fi 7165 fi
11491fi
11492
11493echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11494echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11495if test "${rxvt_cv_path_lastlogx+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497else
11498 if test "$cross_compiling" = yes; then
11499 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
11500echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
11501else
11502 cat >conftest.$ac_ext <<_ACEOF
11503/* confdefs.h. */
11504_ACEOF
11505cat confdefs.h >>conftest.$ac_ext
11506cat >>conftest.$ac_ext <<_ACEOF
11507/* end confdefs.h. */
11508#include <stdio.h>
11509#ifdef HAVE_UTMPX_H
11510#include <utmpx.h>
11511#endif
11512#include <errno.h>
11513main()
11514{
11515 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11516 FILE *a, *f=fopen("conftestval", "w");
11517 if (!f) exit(1);
11518#ifdef LASTLOGX_FILE
11519 fprintf(f, "%s\n", LASTLOGX_FILE);
11520 exit(0);
11521#endif
11522#ifdef _PATH_LASTLOGX
11523 fprintf(f, "%s\n", _PATH_LASTLOGX);
11524 exit(0);
11525#endif
11526 for (w = wtmplist; *w; w++) {
11527 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11528 fprintf(f, "%s\n", *w);
11529 exit(0);
11530 }
11531 }
11532 exit(0);
11533}
11534_ACEOF
11535rm -f conftest$ac_exeext
11536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11537 (eval $ac_link) 2>&5
11538 ac_status=$?
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11546 rxvt_cv_path_lastlogx=`cat conftestval`
11547else
11548 echo "$as_me: program exited with status $ac_status" >&5
11549echo "$as_me: failed program was:" >&5
11550sed 's/^/| /' conftest.$ac_ext >&5
11551
11552( exit $ac_status )
11553rxvt_cv_path_lastlogx=
11554fi
11555rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11556fi
11557fi
11558echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
11559echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
11560if test x$rxvt_cv_path_lastlogx != x; then
11561
11562cat >>confdefs.h <<_ACEOF
11563#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
11564_ACEOF
11565
11566fi
11567
11568
11569echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11570echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11571if test "${rxvt_cv_path_ttytab+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11573else
11574 for ttys_file in /etc/ttys /etc/ttytab;
11575do
11576 if test -f "$ttys_file" ; then
11577 rxvt_cv_path_ttytab=$ttys_file
11578 break
11579 fi 7166 fi
11580done
11581
11582fi 7167fi
11583echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11584echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
11585if test x$rxvt_cv_path_ttytab != x; then
11586 7168
11587cat >>confdefs.h <<_ACEOF
11588#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11589_ACEOF
11590
11591fi
11592
11593
11594ac_save_LIBS=$LIBS
11595ac_save_CFLAGS=$CFLAGS
11596CFLAGS="$CFLAGS $X_CFLAGS"
11597LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11598if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
11599 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11600fi
11601echo "$as_me:$LINENO: checking for working Xlocale" >&5
11602echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
11603if test "${rxvt_cv_func_xlocale+set}" = set; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11605else
11606 if test "$cross_compiling" = yes; then
11607 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
11608echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11609else
11610 cat >conftest.$ac_ext <<_ACEOF
11611/* confdefs.h. */
11612_ACEOF
11613cat confdefs.h >>conftest.$ac_ext
11614cat >>conftest.$ac_ext <<_ACEOF
11615/* end confdefs.h. */
11616#include <X11/Xlib.h>
11617main() {
11618char *p;
11619if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11620exit (XSupportsLocale() ? 0 : 1);
11621else
11622exit (1);}
11623_ACEOF
11624rm -f conftest$ac_exeext
11625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626 (eval $ac_link) 2>&5
11627 ac_status=$?
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 rxvt_cv_func_xlocale=yes
11636else
11637 echo "$as_me: program exited with status $ac_status" >&5
11638echo "$as_me: failed program was:" >&5
11639sed 's/^/| /' conftest.$ac_ext >&5
11640
11641( exit $ac_status )
11642rxvt_cv_func_xlocale=no
11643fi
11644rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11645fi
11646fi
11647echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11648echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
11649if test x$rxvt_cv_func_xlocale = xyes; then
11650
11651cat >>confdefs.h <<\_ACEOF
11652#define HAVE_XLOCALE 1
11653_ACEOF
11654
11655fi
11656
11657echo "$as_me:$LINENO: checking for working X setlocale" >&5 7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
11658echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6 7170$as_echo_n "checking for working X setlocale... " >&6; }
11659if test "${rxvt_cv_func_xsetlocale+set}" = set; then 7171if ${rxvt_cv_func_xsetlocale+:} false; then :
11660 echo $ECHO_N "(cached) $ECHO_C" >&6 7172 $as_echo_n "(cached) " >&6
11661else 7173else
11662 cat >conftest.$ac_ext <<_ACEOF
11663/* confdefs.h. */
11664_ACEOF
11665cat confdefs.h >>conftest.$ac_ext 7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666cat >>conftest.$ac_ext <<_ACEOF
11667/* end confdefs.h. */ 7175/* end confdefs.h. */
11668#define X_LOCALE 1 7176#define X_LOCALE 1
11669#include <X11/Xlocale.h> 7177#include <X11/Xlocale.h>
11670int 7178int
11671main () 7179main ()
11673setlocale(LC_CTYPE, ""); 7181setlocale(LC_CTYPE, "");
11674 ; 7182 ;
11675 return 0; 7183 return 0;
11676} 7184}
11677_ACEOF 7185_ACEOF
11678rm -f conftest.$ac_objext conftest$ac_exeext 7186if ac_fn_cxx_try_link "$LINENO"; then :
11679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11680 (eval $ac_link) 2>conftest.er1
11681 ac_status=$?
11682 grep -v '^ *+' conftest.er1 >conftest.err
11683 rm -f conftest.er1
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } &&
11687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11689 (eval $ac_try) 2>&5
11690 ac_status=$?
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; } &&
11693 { ac_try='test -s conftest$ac_exeext'
11694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695 (eval $ac_try) 2>&5
11696 ac_status=$?
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; }; then
11699 rxvt_cv_func_xsetlocale=yes 7187 rxvt_cv_func_xsetlocale=yes
11700else 7188else
11701 echo "$as_me: failed program was:" >&5
11702sed 's/^/| /' conftest.$ac_ext >&5
11703
11704rxvt_cv_func_xsetlocale=no 7189 rxvt_cv_func_xsetlocale=no
11705fi 7190fi
11706rm -f conftest.err conftest.$ac_objext \ 7191rm -f core conftest.err conftest.$ac_objext \
11707 conftest$ac_exeext conftest.$ac_ext 7192 conftest$ac_exeext conftest.$ac_ext
11708fi 7193fi
11709echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5 7194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
11710echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6 7195$as_echo "$rxvt_cv_func_xsetlocale" >&6; }
11711if test x$rxvt_cv_func_xsetlocale = xyes; then 7196if test x$rxvt_cv_func_xsetlocale = xyes; then
11712 7197
11713cat >>confdefs.h <<\_ACEOF 7198$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
11714#define HAVE_XSETLOCALE 1
11715_ACEOF
11716 7199
11717fi 7200fi
11718LIBS=$ac_save_LIBS 7201LIBS=$save_LIBS
11719CFLAGS=$ac_save_CFLAGS 7202CXXFLAGS=$save_CXXFLAGS
11720 7203
11721echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11722echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
11723if test "${rxvt_cv_func_setlocale+set}" = set; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11725else
11726 cat >conftest.$ac_ext <<_ACEOF
11727/* confdefs.h. */
11728_ACEOF
11729cat confdefs.h >>conftest.$ac_ext
11730cat >>conftest.$ac_ext <<_ACEOF
11731/* end confdefs.h. */
11732#include <clocale>
11733int
11734main ()
11735{
11736setlocale(LC_CTYPE, "");
11737 ;
11738 return 0;
11739}
11740_ACEOF
11741rm -f conftest.$ac_objext conftest$ac_exeext
11742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11743 (eval $ac_link) 2>conftest.er1
11744 ac_status=$?
11745 grep -v '^ *+' conftest.er1 >conftest.err
11746 rm -f conftest.er1
11747 cat conftest.err >&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } &&
11750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752 (eval $ac_try) 2>&5
11753 ac_status=$?
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; } &&
11756 { ac_try='test -s conftest$ac_exeext'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11759 ac_status=$?
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; }; then
11762 rxvt_cv_func_setlocale=yes
11763else
11764 echo "$as_me: failed program was:" >&5
11765sed 's/^/| /' conftest.$ac_ext >&5
11766
11767rxvt_cv_func_setlocale=no
11768fi
11769rm -f conftest.err conftest.$ac_objext \
11770 conftest$ac_exeext conftest.$ac_ext
11771fi
11772echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
11773echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
11774if test x$rxvt_cv_func_setlocale = xyes; then
11775
11776cat >>confdefs.h <<\_ACEOF
11777#define HAVE_SETLOCALE 1
11778_ACEOF
11779
11780fi
11781
11782echo "$as_me:$LINENO: checking for working nl_langinfo" >&5 7204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
11783echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6 7205$as_echo_n "checking for working nl_langinfo... " >&6; }
11784if test "${rxvt_cv_func_nl_langinfo+set}" = set; then 7206if ${rxvt_cv_func_nl_langinfo+:} false; then :
11785 echo $ECHO_N "(cached) $ECHO_C" >&6 7207 $as_echo_n "(cached) " >&6
11786else 7208else
11787 cat >conftest.$ac_ext <<_ACEOF
11788/* confdefs.h. */
11789_ACEOF
11790cat confdefs.h >>conftest.$ac_ext 7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791cat >>conftest.$ac_ext <<_ACEOF
11792/* end confdefs.h. */ 7210/* end confdefs.h. */
11793#include <langinfo.h> 7211#include <langinfo.h>
11794int 7212int
11795main () 7213main ()
11796{ 7214{
11797nl_langinfo(CODESET); 7215nl_langinfo(CODESET);
11798 ; 7216 ;
11799 return 0; 7217 return 0;
11800} 7218}
11801_ACEOF 7219_ACEOF
11802rm -f conftest.$ac_objext conftest$ac_exeext 7220if ac_fn_cxx_try_link "$LINENO"; then :
11803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11804 (eval $ac_link) 2>conftest.er1
11805 ac_status=$?
11806 grep -v '^ *+' conftest.er1 >conftest.err
11807 rm -f conftest.er1
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
11811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813 (eval $ac_try) 2>&5
11814 ac_status=$?
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; } &&
11817 { ac_try='test -s conftest$ac_exeext'
11818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819 (eval $ac_try) 2>&5
11820 ac_status=$?
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; }; then
11823 rxvt_cv_func_nl_langinfo=yes 7221 rxvt_cv_func_nl_langinfo=yes
11824else 7222else
11825 echo "$as_me: failed program was:" >&5
11826sed 's/^/| /' conftest.$ac_ext >&5
11827
11828rxvt_cv_func_nl_langinfo=no 7223 rxvt_cv_func_nl_langinfo=no
11829fi 7224fi
11830rm -f conftest.err conftest.$ac_objext \ 7225rm -f core conftest.err conftest.$ac_objext \
11831 conftest$ac_exeext conftest.$ac_ext 7226 conftest$ac_exeext conftest.$ac_ext
11832fi 7227fi
11833echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5 7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
11834echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6 7229$as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
11835if test x$rxvt_cv_func_nl_langinfo = xyes; then 7230if test x$rxvt_cv_func_nl_langinfo = xyes; then
11836 7231
11837cat >>confdefs.h <<\_ACEOF 7232$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
11838#define HAVE_NL_LANGINFO 1
11839_ACEOF
11840 7233
11841fi 7234fi
11842 7235
11843echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 7236
11844echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 7237
11845if test "${rxvt_can_pass_fds+set}" = set; then 7238case $host in
11846 echo $ECHO_N "(cached) $ECHO_C" >&6 7239 *-*-solaris*)
11847else
11848 cat >conftest.$ac_ext <<_ACEOF
11849/* confdefs.h. */
11850_ACEOF
11851cat confdefs.h >>conftest.$ac_ext 7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852cat >>conftest.$ac_ext <<_ACEOF
11853/* end confdefs.h. */ 7241/* end confdefs.h. */
11854 7242
7243#if __STDC_VERSION__ >= 199901L
7244error
7245#endif
7246
7247int
7248main ()
7249{
7250
7251 ;
7252 return 0;
7253}
7254_ACEOF
7255if ac_fn_cxx_try_compile "$LINENO"; then :
7256 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7257
7258else
7259 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
7260
7261fi
7262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
7264$as_echo_n "checking for library containing sendmsg... " >&6; }
7265if ${ac_cv_search_sendmsg+:} false; then :
7266 $as_echo_n "(cached) " >&6
7267else
7268 ac_func_search_save_LIBS=$LIBS
7269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270/* end confdefs.h. */
7271
7272/* Override any GCC internal prototype to avoid an error.
7273 Use char because int might match the return type of a GCC
7274 builtin and then its argument prototype would still apply. */
7275#ifdef __cplusplus
7276extern "C"
7277#endif
7278char sendmsg ();
7279int
7280main ()
7281{
7282return sendmsg ();
7283 ;
7284 return 0;
7285}
7286_ACEOF
7287for ac_lib in '' socket; do
7288 if test -z "$ac_lib"; then
7289 ac_res="none required"
7290 else
7291 ac_res=-l$ac_lib
7292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7293 fi
7294 if ac_fn_cxx_try_link "$LINENO"; then :
7295 ac_cv_search_sendmsg=$ac_res
7296fi
7297rm -f core conftest.err conftest.$ac_objext \
7298 conftest$ac_exeext
7299 if ${ac_cv_search_sendmsg+:} false; then :
7300 break
7301fi
7302done
7303if ${ac_cv_search_sendmsg+:} false; then :
7304
7305else
7306 ac_cv_search_sendmsg=no
7307fi
7308rm conftest.$ac_ext
7309LIBS=$ac_func_search_save_LIBS
7310fi
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
7312$as_echo "$ac_cv_search_sendmsg" >&6; }
7313ac_res=$ac_cv_search_sendmsg
7314if test "$ac_res" != no; then :
7315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7316
7317fi
7318
7319 ;;
7320esac
7321
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
7323$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
7324if ${pt_cv_can_pass_fds+:} false; then :
7325 $as_echo_n "(cached) " >&6
7326else
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328/* end confdefs.h. */
7329
7330#include <stddef.h> // broken bsds (is that redundant?) need this
11855#include <sys/types.h> 7331#include <sys/types.h>
11856#include <sys/socket.h> 7332#include <sys/socket.h>
7333#include <sys/uio.h>
11857 7334
11858int 7335int
11859main () 7336main ()
11860{ 7337{
11861 7338
11885 7362
11886 ; 7363 ;
11887 return 0; 7364 return 0;
11888} 7365}
11889_ACEOF 7366_ACEOF
11890rm -f conftest.$ac_objext conftest$ac_exeext 7367if ac_fn_cxx_try_link "$LINENO"; then :
11891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11892 (eval $ac_link) 2>conftest.er1
11893 ac_status=$?
11894 grep -v '^ *+' conftest.er1 >conftest.err
11895 rm -f conftest.er1
11896 cat conftest.err >&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); } &&
11899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; } &&
11905 { ac_try='test -s conftest$ac_exeext'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 rxvt_can_pass_fds=yes 7368 pt_cv_can_pass_fds=yes
11912else 7369else
11913 echo "$as_me: failed program was:" >&5
11914sed 's/^/| /' conftest.$ac_ext >&5
11915
11916rxvt_can_pass_fds=no 7370 pt_cv_can_pass_fds=no
11917fi 7371fi
11918rm -f conftest.err conftest.$ac_objext \ 7372rm -f core conftest.err conftest.$ac_objext \
11919 conftest$ac_exeext conftest.$ac_ext 7373 conftest$ac_exeext conftest.$ac_ext
11920fi 7374fi
11921echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5 7375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
11922echo "${ECHO_T}$rxvt_can_pass_fds" >&6 7376$as_echo "$pt_cv_can_pass_fds" >&6; }
11923if test x$rxvt_can_pass_fds = xyes; then 7377if test x$pt_cv_can_pass_fds = xyes; then
11924 7378
7379$as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
7380
7381else
7382 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
7383fi
7384
7385
7386
7387for ac_header in \
7388 pty.h \
7389 util.h \
7390 libutil.h \
7391 sys/ioctl.h \
7392 stropts.h \
7393
7394do :
7395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7396ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7397if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11925cat >>confdefs.h <<\_ACEOF 7398 cat >>confdefs.h <<_ACEOF
11926#define HAVE_UNIX_FDPASS 1 7399#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11927_ACEOF 7400_ACEOF
11928 7401
11929fi 7402fi
11930 7403
11931echo "$as_me:$LINENO: checking for broken XIM callback" >&5 7404done
11932echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11933if test "${rxvt_broken_ximcb+set}" = set; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11935else
11936 cat >conftest.$ac_ext <<_ACEOF
11937 7405
11938#include <X11/Xlib.h>
11939 7406
11940void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); 7407for ac_func in \
7408 revoke \
7409 _getpty \
7410 getpt \
7411 posix_openpt \
7412 isastream \
7413 setuid \
7414 seteuid \
7415 setreuid \
7416 setresuid \
11941 7417
11942void f() { 7418do :
11943 XIMCallback cb; 7419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11944 cb.callback = im_destroy_cb; 7420ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11945} 7421if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11946
11947_ACEOF
11948rm -f conftest.$ac_objext
11949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11950 (eval $ac_compile) 2>conftest.er1
11951 ac_status=$?
11952 grep -v '^ *+' conftest.er1 >conftest.err
11953 rm -f conftest.er1
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
11957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11960 ac_status=$?
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; } &&
11963 { ac_try='test -s conftest.$ac_objext'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; }; then
11969 rxvt_broken_ximcb=yes
11970else
11971 echo "$as_me: failed program was:" >&5
11972sed 's/^/| /' conftest.$ac_ext >&5
11973
11974rxvt_broken_ximcb=no
11975fi
11976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11977fi
11978echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11979echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11980
11981if test x$rxvt_broken_ximcb = xyes; then
11982
11983cat >>confdefs.h <<\_ACEOF 7422 cat >>confdefs.h <<_ACEOF
11984#define XIMCB_PROTO_BROKEN 1 7423#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11985_ACEOF 7424_ACEOF
11986 7425
11987fi 7426fi
7427done
11988 7428
11989echo "$as_me:$LINENO: checking for getpt" >&5 7429
11990echo $ECHO_N "checking for getpt... $ECHO_C" >&6 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
11991if test "${rxvt_cv_func_getpt+set}" = set; then 7431$as_echo_n "checking for UNIX98 ptys... " >&6; }
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11993else
11994 cat >conftest.$ac_ext <<_ACEOF
11995/* confdefs.h. */
11996_ACEOF
11997cat confdefs.h >>conftest.$ac_ext 7432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998cat >>conftest.$ac_ext <<_ACEOF
11999/* end confdefs.h. */ 7433/* end confdefs.h. */
12000#define _GNU_SOURCE
12001#ifdef HAVE_STDLIB_H
12002# include <cstdlib> 7434#include <stdlib.h>
12003#endif
12004int 7435int
12005main () 7436main ()
12006{ 7437{
12007(void)getpt(); 7438grantpt(0);unlockpt(0);ptsname(0);
12008 ; 7439 ;
12009 return 0; 7440 return 0;
12010} 7441}
12011_ACEOF 7442_ACEOF
12012rm -f conftest.$ac_objext conftest$ac_exeext 7443if ac_fn_cxx_try_link "$LINENO"; then :
12013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7444 unix98_pty=yes
12014 (eval $ac_link) 2>conftest.er1
12015 ac_status=$?
12016 grep -v '^ *+' conftest.er1 >conftest.err
12017 rm -f conftest.er1
12018 cat conftest.err >&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } &&
12021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023 (eval $ac_try) 2>&5
12024 ac_status=$?
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; } &&
12027 { ac_try='test -s conftest$ac_exeext'
12028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; }; then
12033 rxvt_cv_func_getpt=yes
12034else
12035 echo "$as_me: failed program was:" >&5
12036sed 's/^/| /' conftest.$ac_ext >&5
12037 7445
12038rxvt_cv_func_getpt=no 7446$as_echo "#define UNIX98_PTY 1" >>confdefs.h
7447
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7449$as_echo "yes" >&6; }
7450else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452$as_echo "no" >&6; }
12039fi 7453fi
12040rm -f conftest.err conftest.$ac_objext \ 7454rm -f core conftest.err conftest.$ac_objext \
12041 conftest$ac_exeext conftest.$ac_ext 7455 conftest$ac_exeext conftest.$ac_ext
12042fi 7456
12043echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 7457if test -z "$unix98_pty"; then
12044echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
12045if test x$rxvt_cv_func_getpt = xno; then 7459$as_echo_n "checking for library containing openpty... " >&6; }
12046 echo "$as_me:$LINENO: checking for openpty" >&5 7460if ${ac_cv_search_openpty+:} false; then :
12047echo $ECHO_N "checking for openpty... $ECHO_C" >&6 7461 $as_echo_n "(cached) " >&6
12048if test "${ac_cv_func_openpty+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12050else 7462else
12051 cat >conftest.$ac_ext <<_ACEOF 7463 ac_func_search_save_LIBS=$LIBS
12052/* confdefs.h. */
12053_ACEOF
12054cat confdefs.h >>conftest.$ac_ext 7464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055cat >>conftest.$ac_ext <<_ACEOF
12056/* end confdefs.h. */ 7465/* end confdefs.h. */
12057/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
12058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12059#define openpty innocuous_openpty
12060 7466
12061/* System header to define __stub macros and hopefully few prototypes,
12062 which can conflict with char openpty (); below.
12063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12064 <limits.h> exists even on freestanding compilers. */
12065
12066#ifdef __STDC__
12067# include <limits.h>
12068#else
12069# include <assert.h>
12070#endif
12071
12072#undef openpty
12073
12074/* Override any gcc2 internal prototype to avoid an error. */ 7467/* Override any GCC internal prototype to avoid an error.
7468 Use char because int might match the return type of a GCC
7469 builtin and then its argument prototype would still apply. */
12075#ifdef __cplusplus 7470#ifdef __cplusplus
12076extern "C" 7471extern "C"
12077{
12078#endif 7472#endif
12079/* We use char because int might match the return type of a gcc2
12080 builtin and then its argument prototype would still apply. */
12081char openpty (); 7473char openpty ();
12082/* The GNU C library defines this for functions which it implements
12083 to always fail with ENOSYS. Some functions are actually named
12084 something starting with __ and the normal name is an alias. */
12085#if defined (__stub_openpty) || defined (__stub___openpty)
12086choke me
12087#else
12088char (*f) () = openpty;
12089#endif
12090#ifdef __cplusplus
12091}
12092#endif
12093
12094int 7474int
12095main () 7475main ()
12096{ 7476{
12097return f != openpty; 7477return openpty ();
12098 ; 7478 ;
12099 return 0; 7479 return 0;
12100} 7480}
12101_ACEOF 7481_ACEOF
12102rm -f conftest.$ac_objext conftest$ac_exeext 7482for ac_lib in '' util; do
12103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7483 if test -z "$ac_lib"; then
12104 (eval $ac_link) 2>conftest.er1 7484 ac_res="none required"
12105 ac_status=$?
12106 grep -v '^ *+' conftest.er1 >conftest.err
12107 rm -f conftest.er1
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; } &&
12117 { ac_try='test -s conftest$ac_exeext'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 ac_cv_func_openpty=yes
12124else 7485 else
12125 echo "$as_me: failed program was:" >&5 7486 ac_res=-l$ac_lib
12126sed 's/^/| /' conftest.$ac_ext >&5 7487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12127 7488 fi
12128ac_cv_func_openpty=no 7489 if ac_fn_cxx_try_link "$LINENO"; then :
7490 ac_cv_search_openpty=$ac_res
12129fi 7491fi
12130rm -f conftest.err conftest.$ac_objext \ 7492rm -f core conftest.err conftest.$ac_objext \
12131 conftest$ac_exeext conftest.$ac_ext 7493 conftest$ac_exeext
7494 if ${ac_cv_search_openpty+:} false; then :
7495 break
12132fi 7496fi
7497done
7498if ${ac_cv_search_openpty+:} false; then :
7499
7500else
7501 ac_cv_search_openpty=no
7502fi
7503rm conftest.$ac_ext
7504LIBS=$ac_func_search_save_LIBS
7505fi
12133echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5 7506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
12134echo "${ECHO_T}$ac_cv_func_openpty" >&6 7507$as_echo "$ac_cv_search_openpty" >&6; }
12135if test $ac_cv_func_openpty = yes; then 7508ac_res=$ac_cv_search_openpty
12136 : 7509if test "$ac_res" != no; then :
7510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7511
7512$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
7513
7514fi
7515
7516fi
7517
7518
7519
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
7521$as_echo_n "checking for tty group... " >&6; }
7522if ${pt_cv_tty_group+:} false; then :
7523 $as_echo_n "(cached) " >&6
12137else 7524else
12138 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 7525 if test "$cross_compiling" = yes; then :
12139echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 7526 pt_cv_tty_group=no
12140if test "${ac_cv_lib_util_openpty+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142else 7527else
12143 ac_check_lib_save_LIBS=$LIBS
12144LIBS="-lutil $LIBS"
12145cat >conftest.$ac_ext <<_ACEOF
12146/* confdefs.h. */
12147_ACEOF
12148cat confdefs.h >>conftest.$ac_ext 7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149cat >>conftest.$ac_ext <<_ACEOF
12150/* end confdefs.h. */ 7529/* end confdefs.h. */
12151 7530
12152/* Override any gcc2 internal prototype to avoid an error. */ 7531#include <sys/types.h>
12153#ifdef __cplusplus 7532#include <sys/stat.h>
12154extern "C" 7533#include <unistd.h>
7534#include <grp.h>
7535
7536int main()
7537{
7538 struct stat st;
7539 struct group *gr;
7540 char *tty;
7541 gr = getgrnam("tty");
7542 tty = ttyname(0);
7543 if (gr != 0
7544 && tty != 0
7545 && (stat(tty, &st)) == 0
7546 && st.st_gid == gr->gr_gid)
7547 return 0;
7548 else
7549 return 1;
7550}
7551_ACEOF
7552if ac_fn_cxx_try_run "$LINENO"; then :
7553 pt_cv_tty_group=yes
7554else
7555 pt_cv_tty_group=no
7556fi
7557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7558 conftest.$ac_objext conftest.beam conftest.$ac_ext
7559fi
7560
7561fi
7562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
7563$as_echo "$pt_cv_tty_group" >&6; }
7564if test x$pt_cv_tty_group = xyes; then
7565
7566$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
7567
7568fi
7569
7570support_image=no
7571if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then
7572 support_image=yes
7573fi
7574if test x$support_xft = xyes || test x$support_image = xyes; then
7575 rxvt_have_xrender=no
7576
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xrender" >&5
7578$as_echo_n "checking for xrender... " >&6; }
7579 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
7580 XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`"
7581 XRENDER_LIBS="`$PKG_CONFIG --libs xrender`"
7582
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7584$as_echo "ok" >&6; }
7585
7586 X_LIBS="$XRENDER_LIBS $X_LIBS"
7587 CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS"
7588 rxvt_have_xrender=yes
7589
7590 save_LIBS="$LIBS"
7591 LIBS="$LIBS $X_LIBS"
7592 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
7593if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then :
7594
7595else
7596 rxvt_have_xrender=no
7597fi
7598
7599
7600 ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
7601if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes; then :
7602
7603else
7604 rxvt_have_xrender=no
7605fi
7606
7607 LIBS="$save_LIBS"
7608
7609 else
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611$as_echo "no" >&6; }
7612 :
7613 fi
7614
7615fi
7616
7617if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
7618
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft" >&5
7620$as_echo_n "checking for fontconfig xft... " >&6; }
7621 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then
7622 XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`"
7623 XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`"
7624
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7626$as_echo "ok" >&6; }
7627
7628 X_LIBS="$XFT_LIBS $X_LIBS"
7629 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
7630
7631 else
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633$as_echo "no" >&6; }
7634
7635 # Extract the first word of "xft-config", so it can be a program name with args.
7636set dummy xft-config; ac_word=$2
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638$as_echo_n "checking for $ac_word... " >&6; }
7639if ${ac_cv_path_XFT_CONFIG+:} false; then :
7640 $as_echo_n "(cached) " >&6
7641else
7642 case $XFT_CONFIG in
7643 [\\/]* | ?:[\\/]*)
7644 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
7645 ;;
7646 *)
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648for as_dir in $PATH
7649do
7650 IFS=$as_save_IFS
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 break 2
7657 fi
7658done
7659 done
7660IFS=$as_save_IFS
7661
7662 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
7663 ;;
7664esac
7665fi
7666XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7667if test -n "$XFT_CONFIG"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
7669$as_echo "$XFT_CONFIG" >&6; }
7670else
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672$as_echo "no" >&6; }
7673fi
7674
7675
7676 if test $XFT_CONFIG != no; then
7677 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7678 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
7679 fi
7680
7681 fi
7682
7683
7684 save_LIBS="$LIBS"
7685 LIBS="$LIBS $X_LIBS"
7686 for ac_header in X11/Xft/Xft.h fontconfig/fontconfig.h
7687do :
7688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7689ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7690if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7691 cat >>confdefs.h <<_ACEOF
7692#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7693_ACEOF
7694
7695else
7696 support_xft=no
7697fi
7698
7699done
7700
7701 for ac_func in XftDrawString32 FcPatternGet
7702do :
7703 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7704ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7705if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7706 cat >>confdefs.h <<_ACEOF
7707#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7708_ACEOF
7709
7710else
7711 support_xft=no
7712fi
7713done
7714
7715 LIBS="$save_LIBS"
7716
7717 if test x$support_xft = xyes; then
7718
7719$as_echo "#define XFT 1" >>confdefs.h
7720
7721 fi
7722fi
7723
7724if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Render >= 0.11" >&5
7726$as_echo_n "checking for Render >= 0.11... " >&6; }
7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728/* end confdefs.h. */
7729
7730#include <X11/extensions/Xrender.h>
7731#if RENDER_MAJOR == 0 && RENDER_MINOR <= 10
7732error
12155#endif 7733#endif
12156/* We use char because int might match the return type of a gcc2 7734
12157 builtin and then its argument prototype would still apply. */
12158char openpty ();
12159int 7735int
12160main () 7736main ()
12161{ 7737{
12162openpty (); 7738
12163 ; 7739 ;
12164 return 0; 7740 return 0;
12165} 7741}
12166_ACEOF 7742_ACEOF
12167rm -f conftest.$ac_objext conftest$ac_exeext 7743if ac_fn_cxx_try_compile "$LINENO"; then :
12168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12169 (eval $ac_link) 2>conftest.er1
12170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } &&
12176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178 (eval $ac_try) 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; } &&
12182 { ac_try='test -s conftest$ac_exeext'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 ac_cv_lib_util_openpty=yes
12189else
12190 echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
12192 7744
12193ac_cv_lib_util_openpty=no
12194fi
12195rm -f conftest.err conftest.$ac_objext \
12196 conftest$ac_exeext conftest.$ac_ext
12197LIBS=$ac_check_lib_save_LIBS
12198fi
12199echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12200echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12201if test $ac_cv_lib_util_openpty = yes; then
12202 LIBS="$LIBS -lutil"
12203fi
12204
12205fi
12206
12207fi
12208
12209echo "$as_me:$LINENO: checking for pty/tty type" >&5
12210echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
12211if test "${rxvt_cv_ptys+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12213else
12214 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
12215 rxvt_cv_ptys=OPENPTY
12216 else if test x$ac_cv_func__getpty = xyes; then
12217 rxvt_cv_ptys=SGI4
12218 else if test -c /dev/ttyp20; then
12219 rxvt_cv_ptys=SCO
12220 else if test -c /dev/ptym/clone; then
12221 rxvt_cv_ptys=HPUX
12222 else if test x$rxvt_cv_func_getpt = xyes; then
12223 rxvt_cv_ptys=GLIBC
12224 else if test -c /dev/ptc -a -c /dev/pts; then
12225 rxvt_cv_ptys=PTC
12226 else if test -c /dev/ptc -a -d /dev/pts; then
12227 rxvt_cv_ptys=PTC
12228 else if test -c /dev/ptmx -a -c /dev/pts/0; then
12229 rxvt_cv_ptys=STREAMS
12230 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
12231 rxvt_cv_ptys=STREAMS
12232 else 7745else
12233 rxvt_cv_ptys=BSD 7746 support_image=no
12234fi 7747fi
12235fi
12236fi
12237fi
12238fi
12239fi
12240fi
12241fi
12242fi
12243
12244fi
12245echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
12246echo "${ECHO_T}$rxvt_cv_ptys" >&6
12247
12248if test x$rxvt_cv_ptys = xOPENPTY; then
12249
12250cat >>confdefs.h <<\_ACEOF
12251#define PTYS_ARE_OPENPTY 1
12252_ACEOF
12253
12254fi
12255if test x$rxvt_cv_ptys = xSCO; then
12256
12257cat >>confdefs.h <<\_ACEOF
12258#define PTYS_ARE_NUMERIC 1
12259_ACEOF
12260
12261fi
12262if test x$rxvt_cv_ptys = xSTREAMS; then
12263
12264cat >>confdefs.h <<\_ACEOF
12265#define PTYS_ARE_PTMX 1
12266_ACEOF
12267
12268fi
12269if test x$rxvt_cv_ptys = xPTC; then
12270
12271cat >>confdefs.h <<\_ACEOF
12272#define PTYS_ARE_PTC 1
12273_ACEOF
12274
12275fi
12276if test x$rxvt_cv_ptys = xSGI4; then
12277
12278cat >>confdefs.h <<\_ACEOF
12279#define PTYS_ARE__GETPTY 1
12280_ACEOF
12281
12282fi
12283if test x$rxvt_cv_ptys = xCONVEX; then
12284
12285cat >>confdefs.h <<\_ACEOF
12286#define PTYS_ARE_GETPTY 1
12287_ACEOF
12288
12289fi
12290if test x$rxvt_cv_ptys = xGLIBC; then
12291
12292cat >>confdefs.h <<\_ACEOF
12293#define PTYS_ARE_GETPT 1
12294_ACEOF
12295
12296fi
12297if test x$rxvt_cv_ptys = xHPUX; then
12298
12299cat >>confdefs.h <<\_ACEOF
12300#define PTYS_ARE_CLONE 1
12301_ACEOF
12302
12303fi
12304if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
12305
12306cat >>confdefs.h <<\_ACEOF
12307#define PTYS_ARE_SEARCHED 1
12308_ACEOF
12309
12310fi
12311
12312
12313{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
12314echo "$as_me: checking for pty ranges..." >&6;}
12315ptys=`echo /dev/pty??`
12316pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12317pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
12318if test x$pch1 != x; then
12319
12320cat >>confdefs.h <<_ACEOF
12321#define PTYCHAR1 "$pch1"
12322_ACEOF
12323
12324fi
12325if test x$pch2 != x; then
12326
12327cat >>confdefs.h <<_ACEOF
12328#define PTYCHAR2 "$pch2"
12329_ACEOF
12330
12331fi
12332
12333if test x$support_xft = xyes; then
12334 LIBS="$LIBS `pkg-config xft --libs`"
12335 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
12336
12337
12338for ac_header in X11/Xft/Xft.h
12339do
12340as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12341if eval "test \"\${$as_ac_Header+set}\" = set"; then
12342 echo "$as_me:$LINENO: checking for $ac_header" >&5
12343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12344if eval "test \"\${$as_ac_Header+set}\" = set"; then
12345 echo $ECHO_N "(cached) $ECHO_C" >&6
12346fi
12347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12349else
12350 # Is the header compilable?
12351echo "$as_me:$LINENO: checking $ac_header usability" >&5
12352echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12353cat >conftest.$ac_ext <<_ACEOF
12354/* confdefs.h. */
12355_ACEOF
12356cat confdefs.h >>conftest.$ac_ext
12357cat >>conftest.$ac_ext <<_ACEOF
12358/* end confdefs.h. */
12359$ac_includes_default
12360#include <$ac_header>
12361_ACEOF
12362rm -f conftest.$ac_objext
12363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12364 (eval $ac_compile) 2>conftest.er1
12365 ac_status=$?
12366 grep -v '^ *+' conftest.er1 >conftest.err
12367 rm -f conftest.er1
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } &&
12371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest.$ac_objext'
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 ac_header_compiler=yes
12384else
12385 echo "$as_me: failed program was:" >&5
12386sed 's/^/| /' conftest.$ac_ext >&5
12387
12388ac_header_compiler=no
12389fi
12390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7749 if test x$support_image = xyes; then
12392echo "${ECHO_T}$ac_header_compiler" >&6 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7751$as_echo "ok" >&6; }
7752 LIBS="$LIBS -lm"
12393 7753
12394# Is the header present? 7754$as_echo "#define XRENDER 1" >>confdefs.h
12395echo "$as_me:$LINENO: checking $ac_header presence" >&5 7755
12396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7756
12397cat >conftest.$ac_ext <<_ACEOF 7757 if test x$support_inheritpixmap = xyes; then
12398/* confdefs.h. */ 7758
12399_ACEOF 7759$as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
12400cat confdefs.h >>conftest.$ac_ext 7760
12401cat >>conftest.$ac_ext <<_ACEOF 7761 fi
12402/* end confdefs.h. */
12403#include <$ac_header>
12404_ACEOF
12405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12407 ac_status=$?
12408 grep -v '^ *+' conftest.er1 >conftest.err
12409 rm -f conftest.er1
12410 cat conftest.err >&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } >/dev/null; then
12413 if test -s conftest.err; then
12414 ac_cpp_err=$ac_cxx_preproc_warn_flag
12415 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12416 else 7762 else
12417 ac_cpp_err= 7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764$as_echo "no" >&6; }
12418 fi 7765 fi
12419else
12420 ac_cpp_err=yes
12421fi 7766fi
12422if test -z "$ac_cpp_err"; then
12423 ac_header_preproc=yes
12424else
12425 echo "$as_me: failed program was:" >&5
12426sed 's/^/| /' conftest.$ac_ext >&5
12427 7767
12428 ac_header_preproc=no
12429fi
12430rm -f conftest.err conftest.$ac_ext
12431echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12432echo "${ECHO_T}$ac_header_preproc" >&6
12433
12434# So? What about this header?
12435case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12436 yes:no: )
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12438echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12440echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12441 ac_header_preproc=yes
12442 ;;
12443 no:yes:* )
12444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12445echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12447echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12449echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12451echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12453echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12455echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12456 (
12457 cat <<\_ASBOX
12458## ------------------------------------------ ##
12459## Report this to the AC_PACKAGE_NAME lists. ##
12460## ------------------------------------------ ##
12461_ASBOX
12462 ) |
12463 sed "s/^/$as_me: WARNING: /" >&2
12464 ;;
12465esac
12466echo "$as_me:$LINENO: checking for $ac_header" >&5
12467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12468if eval "test \"\${$as_ac_Header+set}\" = set"; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12470else
12471 eval "$as_ac_Header=\$ac_header_preproc"
12472fi
12473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12475
12476fi
12477if test `eval echo '${'$as_ac_Header'}'` = yes; then
12478 cat >>confdefs.h <<_ACEOF
12479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12480_ACEOF
12481
12482else
12483 support_xft=no
12484fi
12485
12486done
12487
12488
12489echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12490echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
12491if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12493else
12494 ac_check_lib_save_LIBS=$LIBS
12495LIBS="-lXft $LIBS"
12496cat >conftest.$ac_ext <<_ACEOF
12497/* confdefs.h. */
12498_ACEOF
12499cat confdefs.h >>conftest.$ac_ext
12500cat >>conftest.$ac_ext <<_ACEOF
12501/* end confdefs.h. */
12502
12503/* Override any gcc2 internal prototype to avoid an error. */
12504#ifdef __cplusplus
12505extern "C"
12506#endif
12507/* We use char because int might match the return type of a gcc2
12508 builtin and then its argument prototype would still apply. */
12509char XftDrawString32 ();
12510int
12511main ()
12512{
12513XftDrawString32 ();
12514 ;
12515 return 0;
12516}
12517_ACEOF
12518rm -f conftest.$ac_objext conftest$ac_exeext
12519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520 (eval $ac_link) 2>conftest.er1
12521 ac_status=$?
12522 grep -v '^ *+' conftest.er1 >conftest.err
12523 rm -f conftest.er1
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529 (eval $ac_try) 2>&5
12530 ac_status=$?
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; } &&
12533 { ac_try='test -s conftest$ac_exeext'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; }; then
12539 ac_cv_lib_Xft_XftDrawString32=yes
12540else
12541 echo "$as_me: failed program was:" >&5
12542sed 's/^/| /' conftest.$ac_ext >&5
12543
12544ac_cv_lib_Xft_XftDrawString32=no
12545fi
12546rm -f conftest.err conftest.$ac_objext \
12547 conftest$ac_exeext conftest.$ac_ext
12548LIBS=$ac_check_lib_save_LIBS
12549fi
12550echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12551echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
12552if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12553 cat >>confdefs.h <<_ACEOF
12554#define HAVE_LIBXFT 1
12555_ACEOF
12556
12557 LIBS="-lXft $LIBS"
12558
12559else
12560 support_xft=no
12561fi
12562
12563
12564 if test x$support_xft = xyes; then
12565
12566cat >>confdefs.h <<\_ACEOF
12567#define XFT 1
12568_ACEOF
12569
12570 fi
12571fi
12572if test x$support_styles = xyes; then 7768if test x$support_styles = xyes; then
12573 7769
12574cat >>confdefs.h <<\_ACEOF 7770$as_echo "#define ENABLE_STYLES 1" >>confdefs.h
12575#define ENABLE_STYLES 1
12576_ACEOF
12577 7771
12578fi 7772fi
12579if test x$support_iso14755 = xyes; then 7773if test x$support_iso14755 = xyes; then
12580 7774
12581cat >>confdefs.h <<\_ACEOF 7775$as_echo "#define ISO_14755 1" >>confdefs.h
12582#define ISO_14755 1
12583_ACEOF
12584 7776
12585fi 7777fi
12586if test x$support_8bitctrls = xyes; then 7778if test x$support_8bitctrls = xyes; then
12587 7779
12588cat >>confdefs.h <<\_ACEOF 7780$as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
12589#define EIGHT_BIT_CONTROLS 1
12590_ACEOF
12591 7781
12592fi 7782fi
12593if test x$support_fading = xyes; then 7783if test x$support_fading = xyes; then
12594 7784
12595cat >>confdefs.h <<\_ACEOF 7785$as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h
12596#define OFF_FOCUS_FADING 1
12597_ACEOF
12598
12599fi
12600if test x$support_tinting = xyes; then
12601
12602cat >>confdefs.h <<\_ACEOF
12603#define TINTING 1
12604_ACEOF
12605
12606fi
12607if test x$support_inheritpixmap = xyes; then
12608
12609cat >>confdefs.h <<\_ACEOF
12610#define TRANSPARENT 1
12611_ACEOF
12612 7786
12613fi 7787fi
12614if test x$support_keepscrolling = xno; then 7788if test x$support_keepscrolling = xno; then
12615 7789
12616cat >>confdefs.h <<\_ACEOF
12617#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 7790$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
12618_ACEOF
12619 7791
12620fi 7792fi
12621if test x$support_selectionscrolling = xyes; then 7793if test x$support_selectionscrolling = xyes; then
12622 7794
12623cat >>confdefs.h <<\_ACEOF 7795$as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h
12624#define SELECTION_SCROLLING 1
12625_ACEOF
12626
12627fi
12628if test x$support_menubar = xyes; then
12629
12630cat >>confdefs.h <<\_ACEOF
12631#define MENUBAR 1
12632_ACEOF
12633 7796
12634fi 7797fi
12635if test x$support_frills = xyes; then 7798if test x$support_frills = xyes; then
12636 7799
12637cat >>confdefs.h <<\_ACEOF 7800$as_echo "#define ENABLE_FRILLS 1" >>confdefs.h
12638#define ENABLE_FRILLS 1
12639_ACEOF
12640
12641fi
12642if test x$support_24bit = xyes; then
12643
12644cat >>confdefs.h <<\_ACEOF
12645#define PREFER_24BIT 1
12646_ACEOF
12647 7801
12648fi 7802fi
12649if test x$support_mousewheel = xyes; then 7803if test x$support_mousewheel = xyes; then
12650 7804
12651cat >>confdefs.h <<\_ACEOF 7805$as_echo "#define MOUSE_WHEEL 1" >>confdefs.h
12652#define MOUSE_WHEEL 1
12653_ACEOF
12654 7806
12655fi 7807fi
12656if test x$support_mouseslipwheel = xyes; then 7808if test x$support_mouseslipwheel = xyes; then
12657 7809
12658cat >>confdefs.h <<\_ACEOF 7810$as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
12659#define MOUSE_SLIP_WHEELING 1
12660_ACEOF
12661 7811
12662fi 7812fi
12663if test x$support_utmp = xyes; then
12664 7813
12665cat >>confdefs.h <<\_ACEOF 7814scrolltypes=plain
12666#define UTMP_SUPPORT 1
12667_ACEOF
12668 7815
12669fi 7816$as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h
12670if test x$support_wtmp = xyes; then
12671 7817
12672cat >>confdefs.h <<\_ACEOF
12673#define WTMP_SUPPORT 1
12674_ACEOF
12675 7818
12676fi
12677if test x$support_lastlog = xyes; then
12678
12679cat >>confdefs.h <<\_ACEOF
12680#define LASTLOG_SUPPORT 1
12681_ACEOF
12682
12683fi
12684if test x$support_xim = xyes -o x$multichar_set = xyes; then
12685 if test x$rxvt_cv_func_xlocale = xyes; then
12686
12687cat >>confdefs.h <<\_ACEOF
12688#define USE_XIM 1
12689_ACEOF
12690
12691 fi
12692fi
12693if test x$support_xpm = xyes; then
12694
12695cat >>confdefs.h <<\_ACEOF
12696#define XPM_BACKGROUND 1
12697_ACEOF
12698
12699fi
12700if test x$support_scroll_rxvt = xyes; then 7819if test x$support_scroll_rxvt = xyes; then
12701 7820
12702cat >>confdefs.h <<\_ACEOF 7821$as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h
12703#define RXVT_SCROLLBAR 1
12704_ACEOF
12705 7822
12706 scrolltypes="rxvt" 7823 scrolltypes="$scrolltypes rxvt"
12707fi 7824fi
12708if test x$support_scroll_next = xyes; then 7825if test x$support_scroll_next = xyes; then
12709 7826
12710cat >>confdefs.h <<\_ACEOF 7827$as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h
12711#define NEXT_SCROLLBAR 1
12712_ACEOF
12713 7828
12714 scrolltypes="$scrolltypes next" 7829 scrolltypes="$scrolltypes next"
12715fi 7830fi
12716if test x$support_scroll_xterm = xyes; then 7831if test x$support_scroll_xterm = xyes; then
12717 7832
12718cat >>confdefs.h <<\_ACEOF 7833$as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h
12719#define XTERM_SCROLLBAR 1
12720_ACEOF
12721 7834
12722 scrolltypes="$scrolltypes xterm" 7835 scrolltypes="$scrolltypes xterm"
12723fi 7836fi
12724if test x$support_scroll_plain = xyes; then
12725
12726cat >>confdefs.h <<\_ACEOF
12727#define PLAIN_SCROLLBAR 1
12728_ACEOF
12729
12730 scrolltypes="$scrolltypes plain"
12731fi
12732if test x$support_pointer_blank = xyes; then 7837if test x$support_pointer_blank = xyes; then
12733 7838
12734cat >>confdefs.h <<\_ACEOF 7839$as_echo "#define POINTER_BLANK 1" >>confdefs.h
12735#define POINTER_BLANK 1
12736_ACEOF
12737 7840
12738fi 7841fi
12739if test x$support_text_blink = xyes; then 7842if test x$support_text_blink = xyes; then
12740 7843
12741cat >>confdefs.h <<\_ACEOF 7844$as_echo "#define TEXT_BLINK 1" >>confdefs.h
12742#define TEXT_BLINK 1
12743_ACEOF
12744 7845
12745fi 7846fi
12746if test x$support_unicode3 = xyes; then 7847if test x$support_unicode3 = xyes; then
12747 7848
12748cat >>confdefs.h <<\_ACEOF 7849$as_echo "#define UNICODE_3 1" >>confdefs.h
12749#define UNICODE_3 1
12750_ACEOF
12751 7850
12752fi 7851fi
12753if test x$support_combining = xyes; then 7852if test x$support_combining = xyes; then
12754 7853
12755cat >>confdefs.h <<\_ACEOF 7854$as_echo "#define ENABLE_COMBINING 1" >>confdefs.h
12756#define ENABLE_COMBINING 1
12757_ACEOF
12758 7855
12759fi 7856fi
12760if test x$codesets = xall; then 7857if test x$codesets = xall; then
12761 codesets=jp,jp-ext,kr,zh,zh-ext 7858 codesets=jp,jp-ext,kr,zh,zh-ext
12762fi 7859fi
12763 7860
12764cat >>confdefs.h <<\_ACEOF 7861$as_echo "#define ENCODING_EU 1" >>confdefs.h
12765#define ENCODING_EU 1
12766_ACEOF
12767 7862
12768 7863
12769cat >>confdefs.h <<\_ACEOF 7864$as_echo "#define ENCODING_VN 1" >>confdefs.h
12770#define ENCODING_VN 1
12771_ACEOF
12772 7865
12773for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 7866for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12774 case "$codeset" in 7867 case "$codeset" in
12775 JP ) 7868 JP )
12776cat >>confdefs.h <<\_ACEOF 7869$as_echo "#define ENCODING_JP 1" >>confdefs.h
12777#define ENCODING_JP 1
12778_ACEOF
12779 ;; 7870 ;;
12780 JP_EXT ) 7871 JP_EXT )
12781cat >>confdefs.h <<\_ACEOF 7872$as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h
12782#define ENCODING_JP_EXT 1
12783_ACEOF
12784 ;; 7873 ;;
12785 KR ) 7874 KR )
12786cat >>confdefs.h <<\_ACEOF 7875$as_echo "#define ENCODING_KR 1" >>confdefs.h
12787#define ENCODING_KR 1
12788_ACEOF
12789 ;; 7876 ;;
12790 ZH ) 7877 ZH )
12791cat >>confdefs.h <<\_ACEOF 7878$as_echo "#define ENCODING_ZH 1" >>confdefs.h
12792#define ENCODING_ZH 1
12793_ACEOF
12794 ;; 7879 ;;
12795 ZH_EXT ) 7880 ZH_EXT )
12796cat >>confdefs.h <<\_ACEOF 7881$as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h
12797#define ENCODING_ZH_EXT 1
12798_ACEOF
12799 ;; 7882 ;;
12800 esac 7883 esac
12801done 7884done
12802 7885
12803IF_PERL=\# 7886IF_PERL=\#
12804if test x$support_perl = xyes; then 7887if test x$support_perl = xyes; then
12805 # Extract the first word of "perl5", so it can be a program name with args. 7888 # Extract the first word of "perl5", so it can be a program name with args.
12806set dummy perl5; ac_word=$2 7889set dummy perl5; ac_word=$2
12807echo "$as_me:$LINENO: checking for $ac_word" >&5 7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7891$as_echo_n "checking for $ac_word... " >&6; }
12809if test "${ac_cv_path_PERL+set}" = set; then 7892if ${ac_cv_path_PERL+:} false; then :
12810 echo $ECHO_N "(cached) $ECHO_C" >&6 7893 $as_echo_n "(cached) " >&6
12811else 7894else
12812 case $PERL in 7895 case $PERL in
12813 [\\/]* | ?:[\\/]*) 7896 [\\/]* | ?:[\\/]*)
12814 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 7897 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12815 ;; 7898 ;;
12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818for as_dir in $PATH 7901for as_dir in $PATH
12819do 7902do
12820 IFS=$as_save_IFS 7903 IFS=$as_save_IFS
12821 test -z "$as_dir" && as_dir=. 7904 test -z "$as_dir" && as_dir=.
12822 for ac_exec_ext in '' $ac_executable_extensions; do 7905 for ac_exec_ext in '' $ac_executable_extensions; do
12823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12824 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 7907 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12826 break 2 7909 break 2
12827 fi 7910 fi
12828done 7911done
12829done 7912 done
7913IFS=$as_save_IFS
12830 7914
7915 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12831 ;; 7916 ;;
12832esac 7917esac
12833fi 7918fi
12834PERL=$ac_cv_path_PERL 7919PERL=$ac_cv_path_PERL
12835
12836if test -n "$PERL"; then 7920if test -n "$PERL"; then
12837 echo "$as_me:$LINENO: result: $PERL" >&5 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12838echo "${ECHO_T}$PERL" >&6 7922$as_echo "$PERL" >&6; }
12839else 7923else
12840 echo "$as_me:$LINENO: result: no" >&5 7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841echo "${ECHO_T}no" >&6 7925$as_echo "no" >&6; }
12842fi 7926fi
12843 7927
12844 # Extract the first word of "perl", so it can be a program name with args.
12845set dummy perl; ac_word=$2
12846echo "$as_me:$LINENO: checking for $ac_word" >&5
12847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12848if test "${ac_cv_path_PERL+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12850else
12851 case $PERL in
12852 [\\/]* | ?:[\\/]*)
12853 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12854 ;;
12855 *)
12856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857for as_dir in $PATH
12858do
12859 IFS=$as_save_IFS
12860 test -z "$as_dir" && as_dir=.
12861 for ac_exec_ext in '' $ac_executable_extensions; do
12862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12863 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12865 break 2
12866 fi
12867done
12868done
12869 7928
12870 ;;
12871esac
12872fi
12873PERL=$ac_cv_path_PERL
12874 7929
12875if test -n "$PERL"; then
12876 echo "$as_me:$LINENO: result: $PERL" >&5
12877echo "${ECHO_T}$PERL" >&6
12878else
12879 echo "$as_me:$LINENO: result: no" >&5
12880echo "${ECHO_T}no" >&6
12881fi
12882
12883
12884 echo "$as_me:$LINENO: checking for $PERL suitability" >&5 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
12885echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6 7931$as_echo_n "checking for $PERL suitability... " >&6; }
12886 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then 7932 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
12887 7933
12888 save_CXXFLAGS="$CXXFLAGS" 7934 save_CXXFLAGS="$CXXFLAGS"
12889 save_LIBS="$LIBS" 7935 save_LIBS="$LIBS"
12890 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" 7936 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
12891 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" 7937 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
12892 cat >conftest.$ac_ext <<_ACEOF
12893/* confdefs.h. */
12894_ACEOF
12895cat confdefs.h >>conftest.$ac_ext 7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896cat >>conftest.$ac_ext <<_ACEOF
12897/* end confdefs.h. */ 7939/* end confdefs.h. */
12898 7940
12899#include <EXTERN.h> 7941#include <EXTERN.h>
12900#include <perl.h> 7942#include <perl.h>
12901#include <XSUB.h> 7943#include <XSUB.h>
12908 7950
12909 ; 7951 ;
12910 return 0; 7952 return 0;
12911} 7953}
12912_ACEOF 7954_ACEOF
12913rm -f conftest.$ac_objext conftest$ac_exeext 7955if ac_fn_cxx_try_link "$LINENO"; then :
12914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12915 (eval $ac_link) 2>conftest.er1
12916 ac_status=$?
12917 grep -v '^ *+' conftest.er1 >conftest.err
12918 rm -f conftest.er1
12919 cat conftest.err >&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } &&
12922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest$ac_exeext'
12929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930 (eval $ac_try) 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 rxvt_perl_link=yes 7956 rxvt_perl_link=yes
12935else 7957else
12936 echo "$as_me: failed program was:" >&5
12937sed 's/^/| /' conftest.$ac_ext >&5
12938
12939rxvt_perl_link=no 7958 rxvt_perl_link=no
12940fi 7959fi
12941rm -f conftest.err conftest.$ac_objext \ 7960rm -f core conftest.err conftest.$ac_objext \
12942 conftest$ac_exeext conftest.$ac_ext 7961 conftest$ac_exeext conftest.$ac_ext
12943 CXXFLAGS="$save_CXXFLAGS" 7962 CXXFLAGS="$save_CXXFLAGS"
12944 LIBS="$save_LIBS" 7963 LIBS="$save_LIBS"
12945 7964
12946 if test x$rxvt_perl_link = xyes; then 7965 if test x$rxvt_perl_link = xyes; then
12947 echo "$as_me:$LINENO: result: ok" >&5 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12948echo "${ECHO_T}ok" >&6 7967$as_echo "ok" >&6; }
12949 7968
12950cat >>confdefs.h <<\_ACEOF 7969$as_echo "#define ENABLE_PERL 1" >>confdefs.h
12951#define ENABLE_PERL 1
12952_ACEOF
12953 7970
12954 IF_PERL= 7971 IF_PERL=
12955 PERL_O=rxvtperl.o 7972 PERL_O=rxvtperl.o
12956 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 7973 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
12957 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 7974 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
12958 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" 7975 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
12959 else 7976 else
12960 support_perl=no 7977 as_fn_error $? "no, unable to link" "$LINENO" 5
12961 echo "$as_me:$LINENO: result: no, unable to link" >&5
12962echo "${ECHO_T}no, unable to link" >&6
12963 fi 7978 fi
12964 else 7979 else
12965 { { echo "$as_me:$LINENO: error: no working perl found" >&5 7980 as_fn_error $? "no working perl found, or perl not version >= 5.8" "$LINENO" 5
12966echo "$as_me: error: no working perl found" >&2;}
12967 { (exit or perl not version >= 5.8); exit or perl not version >= 5.8; }; }
12968 support_perl=no
12969 fi 7981 fi
12970fi 7982fi
12971 7983
12972 7984
12973 7985
12974 7986
12975 7987
12976 7988
12977 7989
12978if test x$support_perl = xyes; then
12979 support_frills=yes
12980fi
12981 7990
12982 7991ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
12983CFLAGS=${CFLAGS--O}
12984LDFLAGS=${LDFLAGS--O}
12985
12986CPPFLAGS="$CPPFLAGS"
12987
12988
12989
12990
12991
12992
12993
12994if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
12995 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
12996 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12997 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
12998 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
12999 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13000fi
13001
13002
13003
13004
13005
13006if test x$support_addstrings = xno; then
13007
13008cat >>confdefs.h <<\_ACEOF
13009#define NO_STRINGS 1
13010_ACEOF
13011
13012fi
13013
13014MCOMMON=./autoconf/Make.common
13015
13016
13017test "$program_prefix" != NONE &&
13018 program_transform_name="s,^,$program_prefix,;$program_transform_name"
13019# Use a double $ so make ignores it.
13020test "$program_suffix" != NONE &&
13021 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
13022# Double any \ or $. echo might interpret backslashes.
13023# By default was `s,x,x', remove it if useless.
13024cat <<\_ACEOF >conftest.sed
13025s/[\\$]/&&/g;s/;s,x,x,$//
13026_ACEOF
13027program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13028rm conftest.sed
13029
13030
13031
13032
13033
13034if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13035 include_stdint_h="#include <stdint.h>"
13036else
13037 include_stdint_h="/* #include <stdint.h> */"
13038fi
13039if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13040 include_stdarg_h="#include <cstdarg>"
13041else
13042 include_stdarg_h="/* #include <cstdarg> */"
13043fi
13044if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13045 include_stdlib_h="#include <cstdlib>"
13046else
13047 include_stdlib_h="/* #include <cstdlib> */"
13048fi
13049if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13050 include_unistd_h="#include <unistd.h>"
13051else
13052 include_unistd_h="/* #include <unistd.h> */"
13053fi
13054if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13055 include_string_h="#include <cstring>"
13056else
13057 include_string_h="/* #include <cstring> */"
13058fi
13059if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13060 include_fcntl_h="#include <fcntl.h>"
13061else
13062 include_fcntl_h="/* #include <fcntl.h> */"
13063fi
13064if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13065 include_util_h="#include <util.h>"
13066else
13067 include_util_h="/* #include <util.h> */"
13068fi
13069if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13070 include_assert_h="#include <assert.h>"
13071else
13072 include_assert_h="/* #include <assert.h> */"
13073fi
13074if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13075 include_sys_ioctl_h="#include <sys/ioctl.h>"
13076else
13077 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13078fi
13079if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13080 include_sys_select_h="#include <sys/select.h>"
13081else
13082 include_sys_select_h="/* #include <sys/select.h> */"
13083fi
13084if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13085 include_sys_strredir_h="#include <sys/strredir.h>"
13086else
13087 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13088fi
13089if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13090 include_sys_time_h="#include <sys/time.h>"
13091else
13092 include_sys_time_h="/* #include <sys/time.h> */"
13093fi
13094if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13095 include_time_h="#include <time.h>"
13096else
13097 include_time_h="/* #include <time.h> */"
13098fi
13099
13100 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13101 7992
13102cat >confcache <<\_ACEOF 7993cat >confcache <<\_ACEOF
13103# This file is a shell script that caches the results of configure 7994# This file is a shell script that caches the results of configure
13104# tests run on this system so they can be shared between configure 7995# tests run on this system so they can be shared between configure
13105# scripts and configure runs, see configure's option --config-cache. 7996# scripts and configure runs, see configure's option --config-cache.
13115 8006
13116_ACEOF 8007_ACEOF
13117 8008
13118# The following way of writing the cache mishandles newlines in values, 8009# The following way of writing the cache mishandles newlines in values,
13119# but we know of no workaround that is simple, portable, and efficient. 8010# but we know of no workaround that is simple, portable, and efficient.
13120# So, don't put newlines in cache variables' values. 8011# So, we kill variables containing newlines.
13121# Ultrix sh set writes to stderr and can't be redirected directly, 8012# Ultrix sh set writes to stderr and can't be redirected directly,
13122# and sets the high bit in the cache file unless we assign to the vars. 8013# and sets the high bit in the cache file unless we assign to the vars.
13123{ 8014(
8015 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8016 eval ac_val=\$$ac_var
8017 case $ac_val in #(
8018 *${as_nl}*)
8019 case $ac_var in #(
8020 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8021$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8022 esac
8023 case $ac_var in #(
8024 _ | IFS | as_nl) ;; #(
8025 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8026 *) { eval $ac_var=; unset $ac_var;} ;;
8027 esac ;;
8028 esac
8029 done
8030
13124 (set) 2>&1 | 8031 (set) 2>&1 |
13125 case `(ac_space=' '; set | grep ac_space) 2>&1` in 8032 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13126 *ac_space=\ *) 8033 *${as_nl}ac_space=\ *)
13127 # `set' does not quote correctly, so add quotes (double-quote 8034 # `set' does not quote correctly, so add quotes: double-quote
13128 # substitution turns \\\\ into \\, and sed turns \\ into \). 8035 # substitution turns \\\\ into \\, and sed turns \\ into \.
13129 sed -n \ 8036 sed -n \
13130 "s/'/'\\\\''/g; 8037 "s/'/'\\\\''/g;
13131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13132 ;; 8039 ;; #(
13133 *) 8040 *)
13134 # `set' quotes correctly as required by POSIX, so do not add quotes. 8041 # `set' quotes correctly as required by POSIX, so do not add quotes.
13135 sed -n \ 8042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13137 ;; 8043 ;;
13138 esac; 8044 esac |
13139} | 8045 sort
8046) |
13140 sed ' 8047 sed '
8048 /^ac_cv_env_/b end
13141 t clear 8049 t clear
13142 : clear 8050 :clear
13143 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13144 t end 8052 t end
13145 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8053 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13146 : end' >>confcache 8054 :end' >>confcache
13147if diff $cache_file confcache >/dev/null 2>&1; then :; else 8055if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13148 if test -w $cache_file; then 8056 if test -w "$cache_file"; then
13149 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 8057 if test "x$cache_file" != "x/dev/null"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8059$as_echo "$as_me: updating cache $cache_file" >&6;}
8060 if test ! -f "$cache_file" || test -h "$cache_file"; then
13150 cat confcache >$cache_file 8061 cat confcache >"$cache_file"
8062 else
8063 case $cache_file in #(
8064 */* | ?:*)
8065 mv -f confcache "$cache_file"$$ &&
8066 mv -f "$cache_file"$$ "$cache_file" ;; #(
8067 *)
8068 mv -f confcache "$cache_file" ;;
8069 esac
8070 fi
8071 fi
13151 else 8072 else
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13152 echo "not updating unwritable cache $cache_file" 8074$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13153 fi 8075 fi
13154fi 8076fi
13155rm -f confcache 8077rm -f confcache
13156 8078
13157test "x$prefix" = xNONE && prefix=$ac_default_prefix 8079test "x$prefix" = xNONE && prefix=$ac_default_prefix
13158# Let make expand exec_prefix. 8080# Let make expand exec_prefix.
13159test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8081test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13160 8082
13161# VPATH may cause trouble with some makes, so we remove $(srcdir),
13162# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13163# trailing colons and then remove the whole line if VPATH becomes empty
13164# (actually we leave an empty line to preserve line numbers).
13165if test "x$srcdir" = x.; then
13166 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13167s/:*\$(srcdir):*/:/;
13168s/:*\${srcdir}:*/:/;
13169s/:*@srcdir@:*/:/;
13170s/^\([^=]*=[ ]*\):*/\1/;
13171s/:*$//;
13172s/^[^=]*=[ ]*$//;
13173}'
13174fi
13175
13176DEFS=-DHAVE_CONFIG_H 8083DEFS=-DHAVE_CONFIG_H
13177 8084
13178ac_libobjs= 8085ac_libobjs=
13179ac_ltlibobjs= 8086ac_ltlibobjs=
8087U=
13180for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8088for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13181 # 1. Remove the extension, and $U if already installed. 8089 # 1. Remove the extension, and $U if already installed.
13182 ac_i=`echo "$ac_i" |
13183 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 8090 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13184 # 2. Add them. 8091 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13185 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 8092 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13186 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 8093 # will be set to the directory where LIBOBJS objects are built.
8094 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8095 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13187done 8096done
13188LIBOBJS=$ac_libobjs 8097LIBOBJS=$ac_libobjs
13189 8098
13190LTLIBOBJS=$ac_ltlibobjs 8099LTLIBOBJS=$ac_ltlibobjs
13191 8100
13192 8101
13193 8102
13194: ${CONFIG_STATUS=./config.status} 8103: "${CONFIG_STATUS=./config.status}"
8104ac_write_fail=0
13195ac_clean_files_save=$ac_clean_files 8105ac_clean_files_save=$ac_clean_files
13196ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8106ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13197{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8107{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13198echo "$as_me: creating $CONFIG_STATUS" >&6;} 8108$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13199cat >$CONFIG_STATUS <<_ACEOF 8109as_write_fail=0
8110cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13200#! $SHELL 8111#! $SHELL
13201# Generated by $as_me. 8112# Generated by $as_me.
13202# Run this file to recreate the current configuration. 8113# Run this file to recreate the current configuration.
13203# Compiler output produced by configure, useful for debugging 8114# Compiler output produced by configure, useful for debugging
13204# configure, is in config.log if it exists. 8115# configure, is in config.log if it exists.
13205 8116
13206debug=false 8117debug=false
13207ac_cs_recheck=false 8118ac_cs_recheck=false
13208ac_cs_silent=false 8119ac_cs_silent=false
8120
13209SHELL=\${CONFIG_SHELL-$SHELL} 8121SHELL=\${CONFIG_SHELL-$SHELL}
8122export SHELL
13210_ACEOF 8123_ASEOF
13211 8124cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13212cat >>$CONFIG_STATUS <<\_ACEOF
13213## --------------------- ## 8125## -------------------- ##
13214## M4sh Initialization. ## 8126## M4sh Initialization. ##
13215## --------------------- ## 8127## -------------------- ##
13216 8128
13217# Be Bourne compatible 8129# Be more Bourne compatible
8130DUALCASE=1; export DUALCASE # for MKS sh
13218if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8131if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13219 emulate sh 8132 emulate sh
13220 NULLCMD=: 8133 NULLCMD=:
13221 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8134 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13222 # is contrary to our usage. Disable this feature. 8135 # is contrary to our usage. Disable this feature.
13223 alias -g '${1+"$@"}'='"$@"' 8136 alias -g '${1+"$@"}'='"$@"'
13224elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 8137 setopt NO_GLOB_SUBST
8138else
8139 case `(set -o) 2>/dev/null` in #(
8140 *posix*) :
13225 set -o posix 8141 set -o posix ;; #(
8142 *) :
8143 ;;
8144esac
13226fi 8145fi
13227DUALCASE=1; export DUALCASE # for MKS sh
13228 8146
13229# Support unset when possible. 8147
13230if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8148as_nl='
13231 as_unset=unset 8149'
8150export as_nl
8151# Printing a long string crashes Solaris 7 /usr/bin/printf.
8152as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8153as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8154as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8155# Prefer a ksh shell builtin over an external printf program on Solaris,
8156# but without wasting forks for bash or zsh.
8157if test -z "$BASH_VERSION$ZSH_VERSION" \
8158 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8159 as_echo='print -r --'
8160 as_echo_n='print -rn --'
8161elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8162 as_echo='printf %s\n'
8163 as_echo_n='printf %s'
8164else
8165 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8166 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8167 as_echo_n='/usr/ucb/echo -n'
13232else 8168 else
13233 as_unset=false 8169 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8170 as_echo_n_body='eval
8171 arg=$1;
8172 case $arg in #(
8173 *"$as_nl"*)
8174 expr "X$arg" : "X\\(.*\\)$as_nl";
8175 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8176 esac;
8177 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8178 '
8179 export as_echo_n_body
8180 as_echo_n='sh -c $as_echo_n_body as_echo'
8181 fi
8182 export as_echo_body
8183 as_echo='sh -c $as_echo_body as_echo'
13234fi 8184fi
13235 8185
8186# The user is always right.
8187if test "${PATH_SEPARATOR+set}" != set; then
8188 PATH_SEPARATOR=:
8189 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8190 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8191 PATH_SEPARATOR=';'
8192 }
8193fi
13236 8194
13237# Work around bugs in pre-3.0 UWIN ksh. 8195
13238$as_unset ENV MAIL MAILPATH 8196# IFS
8197# We need space, tab and new line, in precisely that order. Quoting is
8198# there to prevent editors from complaining about space-tab.
8199# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8200# splitting by setting IFS to empty value.)
8201IFS=" "" $as_nl"
8202
8203# Find who we are. Look in the path if we contain no directory separator.
8204as_myself=
8205case $0 in #((
8206 *[\\/]* ) as_myself=$0 ;;
8207 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208for as_dir in $PATH
8209do
8210 IFS=$as_save_IFS
8211 test -z "$as_dir" && as_dir=.
8212 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8213 done
8214IFS=$as_save_IFS
8215
8216 ;;
8217esac
8218# We did not find ourselves, most probably we were run as `sh COMMAND'
8219# in which case we are not to be found in the path.
8220if test "x$as_myself" = x; then
8221 as_myself=$0
8222fi
8223if test ! -f "$as_myself"; then
8224 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8225 exit 1
8226fi
8227
8228# Unset variables that we do not need and which cause bugs (e.g. in
8229# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8230# suppresses any "Segmentation fault" message there. '((' could
8231# trigger a bug in pdksh 5.2.14.
8232for as_var in BASH_ENV ENV MAIL MAILPATH
8233do eval test x\${$as_var+set} = xset \
8234 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8235done
13239PS1='$ ' 8236PS1='$ '
13240PS2='> ' 8237PS2='> '
13241PS4='+ ' 8238PS4='+ '
13242 8239
13243# NLS nuisances. 8240# NLS nuisances.
13244for as_var in \ 8241LC_ALL=C
13245 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8242export LC_ALL
13246 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8243LANGUAGE=C
13247 LC_TELEPHONE LC_TIME 8244export LANGUAGE
13248do 8245
13249 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8246# CDPATH.
13250 eval $as_var=C; export $as_var 8247(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8248
8249
8250# as_fn_error STATUS ERROR [LINENO LOG_FD]
8251# ----------------------------------------
8252# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8253# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8254# script with STATUS, using 1 if that was 0.
8255as_fn_error ()
8256{
8257 as_status=$1; test $as_status -eq 0 && as_status=1
8258 if test "$4"; then
8259 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8260 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8261 fi
8262 $as_echo "$as_me: error: $2" >&2
8263 as_fn_exit $as_status
8264} # as_fn_error
8265
8266
8267# as_fn_set_status STATUS
8268# -----------------------
8269# Set $? to STATUS, without forking.
8270as_fn_set_status ()
8271{
8272 return $1
8273} # as_fn_set_status
8274
8275# as_fn_exit STATUS
8276# -----------------
8277# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8278as_fn_exit ()
8279{
8280 set +e
8281 as_fn_set_status $1
8282 exit $1
8283} # as_fn_exit
8284
8285# as_fn_unset VAR
8286# ---------------
8287# Portably unset VAR.
8288as_fn_unset ()
8289{
8290 { eval $1=; unset $1;}
8291}
8292as_unset=as_fn_unset
8293# as_fn_append VAR VALUE
8294# ----------------------
8295# Append the text in VALUE to the end of the definition contained in VAR. Take
8296# advantage of any shell optimizations that allow amortized linear growth over
8297# repeated appends, instead of the typical quadratic growth present in naive
8298# implementations.
8299if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8300 eval 'as_fn_append ()
8301 {
8302 eval $1+=\$2
8303 }'
13251 else 8304else
13252 $as_unset $as_var 8305 as_fn_append ()
13253 fi 8306 {
13254done 8307 eval $1=\$$1\$2
8308 }
8309fi # as_fn_append
13255 8310
13256# Required to use basename. 8311# as_fn_arith ARG...
8312# ------------------
8313# Perform arithmetic evaluation on the ARGs, and store the result in the
8314# global $as_val. Take advantage of shells that can avoid forks. The arguments
8315# must be portable across $(()) and expr.
8316if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8317 eval 'as_fn_arith ()
8318 {
8319 as_val=$(( $* ))
8320 }'
8321else
8322 as_fn_arith ()
8323 {
8324 as_val=`expr "$@" || test $? -eq 1`
8325 }
8326fi # as_fn_arith
8327
8328
13257if expr a : '\(a\)' >/dev/null 2>&1; then 8329if expr a : '\(a\)' >/dev/null 2>&1 &&
8330 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13258 as_expr=expr 8331 as_expr=expr
13259else 8332else
13260 as_expr=false 8333 as_expr=false
13261fi 8334fi
13262 8335
13263if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 8336if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13264 as_basename=basename 8337 as_basename=basename
13265else 8338else
13266 as_basename=false 8339 as_basename=false
13267fi 8340fi
13268 8341
8342if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8343 as_dirname=dirname
8344else
8345 as_dirname=false
8346fi
13269 8347
13270# Name of the executable.
13271as_me=`$as_basename "$0" || 8348as_me=`$as_basename -- "$0" ||
13272$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8349$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13273 X"$0" : 'X\(//\)$' \| \ 8350 X"$0" : 'X\(//\)$' \| \
13274 X"$0" : 'X\(/\)$' \| \ 8351 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13275 . : '\(.\)' 2>/dev/null ||
13276echo X/"$0" | 8352$as_echo X/"$0" |
13277 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 8353 sed '/^.*\/\([^/][^/]*\)\/*$/{
13278 /^X\/\(\/\/\)$/{ s//\1/; q; } 8354 s//\1/
13279 /^X\/\(\/\).*/{ s//\1/; q; } 8355 q
8356 }
8357 /^X\/\(\/\/\)$/{
8358 s//\1/
8359 q
8360 }
8361 /^X\/\(\/\).*/{
8362 s//\1/
8363 q
8364 }
13280 s/.*/./; q'` 8365 s/.*/./; q'`
13281 8366
13282
13283# PATH needs CR, and LINENO needs CR and PATH.
13284# Avoid depending upon Character Ranges. 8367# Avoid depending upon Character Ranges.
13285as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8368as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13286as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8369as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13287as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8370as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13288as_cr_digits='0123456789' 8371as_cr_digits='0123456789'
13289as_cr_alnum=$as_cr_Letters$as_cr_digits 8372as_cr_alnum=$as_cr_Letters$as_cr_digits
13290 8373
13291# The user is always right. 8374ECHO_C= ECHO_N= ECHO_T=
13292if test "${PATH_SEPARATOR+set}" != set; then 8375case `echo -n x` in #(((((
13293 echo "#! /bin/sh" >conf$$.sh 8376-n*)
13294 echo "exit 0" >>conf$$.sh 8377 case `echo 'xy\c'` in
13295 chmod +x conf$$.sh 8378 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13296 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8379 xy) ECHO_C='\c';;
13297 PATH_SEPARATOR=';' 8380 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8381 ECHO_T=' ';;
8382 esac;;
8383*)
8384 ECHO_N='-n';;
8385esac
8386
8387rm -f conf$$ conf$$.exe conf$$.file
8388if test -d conf$$.dir; then
8389 rm -f conf$$.dir/conf$$.file
8390else
8391 rm -f conf$$.dir
8392 mkdir conf$$.dir 2>/dev/null
8393fi
8394if (echo >conf$$.file) 2>/dev/null; then
8395 if ln -s conf$$.file conf$$ 2>/dev/null; then
8396 as_ln_s='ln -s'
8397 # ... but there are two gotchas:
8398 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8399 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8400 # In both cases, we have to default to `cp -pR'.
8401 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8402 as_ln_s='cp -pR'
8403 elif ln conf$$.file conf$$ 2>/dev/null; then
8404 as_ln_s=ln
13298 else 8405 else
13299 PATH_SEPARATOR=: 8406 as_ln_s='cp -pR'
13300 fi 8407 fi
13301 rm -f conf$$.sh 8408else
8409 as_ln_s='cp -pR'
13302fi 8410fi
8411rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8412rmdir conf$$.dir 2>/dev/null
13303 8413
13304 8414
13305 as_lineno_1=$LINENO 8415# as_fn_mkdir_p
13306 as_lineno_2=$LINENO 8416# -------------
13307 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 8417# Create "$as_dir" as a directory, including parents if necessary.
13308 test "x$as_lineno_1" != "x$as_lineno_2" && 8418as_fn_mkdir_p ()
13309 test "x$as_lineno_3" = "x$as_lineno_2" || { 8419{
13310 # Find who we are. Look in the path if we contain no path at all
13311 # relative or not.
13312 case $0 in
13313 *[\\/]* ) as_myself=$0 ;;
13314 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315for as_dir in $PATH
13316do
13317 IFS=$as_save_IFS
13318 test -z "$as_dir" && as_dir=.
13319 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13320done
13321 8420
13322 ;; 8421 case $as_dir in #(
8422 -*) as_dir=./$as_dir;;
13323 esac 8423 esac
13324 # We did not find ourselves, most probably we were run as `sh COMMAND' 8424 test -d "$as_dir" || eval $as_mkdir_p || {
13325 # in which case we are not to be found in the path. 8425 as_dirs=
13326 if test "x$as_myself" = x; then 8426 while :; do
13327 as_myself=$0
13328 fi
13329 if test ! -f "$as_myself"; then
13330 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13331echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13332 { (exit 1); exit 1; }; }
13333 fi
13334 case $CONFIG_SHELL in
13335 '')
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13338do
13339 IFS=$as_save_IFS
13340 test -z "$as_dir" && as_dir=.
13341 for as_base in sh bash ksh sh5; do
13342 case $as_dir in 8427 case $as_dir in #(
13343 /*) 8428 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13344 if ("$as_dir/$as_base" -c ' 8429 *) as_qdir=$as_dir;;
13345 as_lineno_1=$LINENO 8430 esac
13346 as_lineno_2=$LINENO 8431 as_dirs="'$as_qdir' $as_dirs"
13347 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 8432 as_dir=`$as_dirname -- "$as_dir" ||
13348 test "x$as_lineno_1" != "x$as_lineno_2" && 8433$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13349 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 8434 X"$as_dir" : 'X\(//\)[^/]' \| \
13350 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 8435 X"$as_dir" : 'X\(//\)$' \| \
13351 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 8436 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13352 CONFIG_SHELL=$as_dir/$as_base 8437$as_echo X"$as_dir" |
13353 export CONFIG_SHELL 8438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13354 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 8439 s//\1/
13355 fi;; 8440 q
13356 esac 8441 }
8442 /^X\(\/\/\)[^/].*/{
8443 s//\1/
8444 q
8445 }
8446 /^X\(\/\/\)$/{
8447 s//\1/
8448 q
8449 }
8450 /^X\(\/\).*/{
8451 s//\1/
8452 q
8453 }
8454 s/.*/./; q'`
8455 test -d "$as_dir" && break
13357 done 8456 done
13358done 8457 test -z "$as_dirs" || eval "mkdir $as_dirs"
13359;; 8458 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13360 esac
13361 8459
13362 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13363 # uniformly replaced by the line number. The first 'sed' inserts a
13364 # line-number line before each line; the second 'sed' does the real
13365 # work. The second script uses 'N' to pair each line-number line
13366 # with the numbered line, and appends trailing '-' during
13367 # substitution so that $LINENO is not a special case at line end.
13368 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13369 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13370 sed '=' <$as_myself |
13371 sed '
13372 N
13373 s,$,-,
13374 : loop
13375 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13376 t loop
13377 s,-$,,
13378 s,^['$as_cr_digits']*\n,,
13379 ' >$as_me.lineno &&
13380 chmod +x $as_me.lineno ||
13381 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13382echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13383 { (exit 1); exit 1; }; }
13384 8460
13385 # Don't try to exec as it changes $[0], causing all sort of problems 8461} # as_fn_mkdir_p
13386 # (the dirname of $[0] is not the place where we might find the
13387 # original and so on. Autoconf is especially sensible to this).
13388 . ./$as_me.lineno
13389 # Exit status is that of the last command.
13390 exit
13391}
13392
13393
13394case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13395 *c*,-n*) ECHO_N= ECHO_C='
13396' ECHO_T=' ' ;;
13397 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13398 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13399esac
13400
13401if expr a : '\(a\)' >/dev/null 2>&1; then
13402 as_expr=expr
13403else
13404 as_expr=false
13405fi
13406
13407rm -f conf$$ conf$$.exe conf$$.file
13408echo >conf$$.file
13409if ln -s conf$$.file conf$$ 2>/dev/null; then
13410 # We could just check for DJGPP; but this test a) works b) is more generic
13411 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13412 if test -f conf$$.exe; then
13413 # Don't use ln at all; we don't have any links
13414 as_ln_s='cp -p'
13415 else
13416 as_ln_s='ln -s'
13417 fi
13418elif ln conf$$.file conf$$ 2>/dev/null; then
13419 as_ln_s=ln
13420else
13421 as_ln_s='cp -p'
13422fi
13423rm -f conf$$ conf$$.exe conf$$.file
13424
13425if mkdir -p . 2>/dev/null; then 8462if mkdir -p . 2>/dev/null; then
13426 as_mkdir_p=: 8463 as_mkdir_p='mkdir -p "$as_dir"'
13427else 8464else
13428 test -d ./-p && rmdir ./-p 8465 test -d ./-p && rmdir ./-p
13429 as_mkdir_p=false 8466 as_mkdir_p=false
13430fi 8467fi
13431 8468
13432as_executable_p="test -f" 8469
8470# as_fn_executable_p FILE
8471# -----------------------
8472# Test if FILE is an executable regular file.
8473as_fn_executable_p ()
8474{
8475 test -f "$1" && test -x "$1"
8476} # as_fn_executable_p
8477as_test_x='test -x'
8478as_executable_p=as_fn_executable_p
13433 8479
13434# Sed expression to map a string onto a valid CPP name. 8480# Sed expression to map a string onto a valid CPP name.
13435as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8481as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13436 8482
13437# Sed expression to map a string onto a valid variable name. 8483# Sed expression to map a string onto a valid variable name.
13438as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8484as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13439 8485
13440 8486
13441# IFS
13442# We need space, tab and new line, in precisely that order.
13443as_nl='
13444'
13445IFS=" $as_nl"
13446
13447# CDPATH.
13448$as_unset CDPATH
13449
13450exec 6>&1 8487exec 6>&1
8488## ----------------------------------- ##
8489## Main body of $CONFIG_STATUS script. ##
8490## ----------------------------------- ##
8491_ASEOF
8492test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13451 8493
8494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13452# Open the log real soon, to keep \$[0] and so on meaningful, and to 8495# Save the log message, to keep $0 and so on meaningful, and to
13453# report actual input values of CONFIG_FILES etc. instead of their 8496# report actual input values of CONFIG_FILES etc. instead of their
13454# values after options handling. Logging --version etc. is OK. 8497# values after options handling.
13455exec 5>>config.log 8498ac_log="
13456{
13457 echo
13458 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13459## Running $as_me. ##
13460_ASBOX
13461} >&5
13462cat >&5 <<_CSEOF
13463
13464This file was extended by $as_me, which was 8499This file was extended by $as_me, which was
13465generated by GNU Autoconf 2.59. Invocation command line was 8500generated by GNU Autoconf 2.69. Invocation command line was
13466 8501
13467 CONFIG_FILES = $CONFIG_FILES 8502 CONFIG_FILES = $CONFIG_FILES
13468 CONFIG_HEADERS = $CONFIG_HEADERS 8503 CONFIG_HEADERS = $CONFIG_HEADERS
13469 CONFIG_LINKS = $CONFIG_LINKS 8504 CONFIG_LINKS = $CONFIG_LINKS
13470 CONFIG_COMMANDS = $CONFIG_COMMANDS 8505 CONFIG_COMMANDS = $CONFIG_COMMANDS
13471 $ $0 $@ 8506 $ $0 $@
13472 8507
13473_CSEOF
13474echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 8508on `(hostname || uname -n) 2>/dev/null | sed 1q`
13475echo >&5 8509"
13476_ACEOF
13477 8510
8511_ACEOF
8512
8513case $ac_config_files in *"
8514"*) set x $ac_config_files; shift; ac_config_files=$*;;
8515esac
8516
8517case $ac_config_headers in *"
8518"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8519esac
8520
8521
8522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13478# Files that config.status was made for. 8523# Files that config.status was made for.
13479if test -n "$ac_config_files"; then 8524config_files="$ac_config_files"
13480 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 8525config_headers="$ac_config_headers"
13481fi
13482 8526
13483if test -n "$ac_config_headers"; then 8527_ACEOF
13484 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13485fi
13486 8528
13487if test -n "$ac_config_links"; then
13488 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13489fi
13490
13491if test -n "$ac_config_commands"; then
13492 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13493fi
13494
13495cat >>$CONFIG_STATUS <<\_ACEOF 8529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13496
13497ac_cs_usage="\ 8530ac_cs_usage="\
13498\`$as_me' instantiates files from templates according to the 8531\`$as_me' instantiates files and other configuration actions
13499current configuration. 8532from templates according to the current configuration. Unless the files
8533and actions are specified as TAGs, all are instantiated by default.
13500 8534
13501Usage: $0 [OPTIONS] [FILE]... 8535Usage: $0 [OPTION]... [TAG]...
13502 8536
13503 -h, --help print this help, then exit 8537 -h, --help print this help, then exit
13504 -V, --version print version number, then exit 8538 -V, --version print version number and configuration settings, then exit
8539 --config print configuration, then exit
8540 -q, --quiet, --silent
13505 -q, --quiet do not print progress messages 8541 do not print progress messages
13506 -d, --debug don't remove temporary files 8542 -d, --debug don't remove temporary files
13507 --recheck update $as_me by reconfiguring in the same conditions 8543 --recheck update $as_me by reconfiguring in the same conditions
13508 --file=FILE[:TEMPLATE] 8544 --file=FILE[:TEMPLATE]
13509 instantiate the configuration file FILE 8545 instantiate the configuration file FILE
13510 --header=FILE[:TEMPLATE] 8546 --header=FILE[:TEMPLATE]
13511 instantiate the configuration header FILE 8547 instantiate the configuration header FILE
13512 8548
13513Configuration files: 8549Configuration files:
13514$config_files 8550$config_files
13515 8551
13516Configuration headers: 8552Configuration headers:
13517$config_headers 8553$config_headers
13518 8554
13519Report bugs to <bug-autoconf@gnu.org>." 8555Report bugs to the package provider."
13520_ACEOF
13521 8556
8557_ACEOF
13522cat >>$CONFIG_STATUS <<_ACEOF 8558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8559ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13523ac_cs_version="\\ 8560ac_cs_version="\\
13524config.status 8561config.status
13525configured by $0, generated by GNU Autoconf 2.59, 8562configured by $0, generated by GNU Autoconf 2.69,
13526 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 8563 with options \\"\$ac_cs_config\\"
13527 8564
13528Copyright (C) 2003 Free Software Foundation, Inc. 8565Copyright (C) 2012 Free Software Foundation, Inc.
13529This config.status script is free software; the Free Software Foundation 8566This config.status script is free software; the Free Software Foundation
13530gives unlimited permission to copy, distribute and modify it." 8567gives unlimited permission to copy, distribute and modify it."
8568
8569ac_pwd='$ac_pwd'
13531srcdir=$srcdir 8570srcdir='$srcdir'
13532INSTALL="$INSTALL" 8571INSTALL='$INSTALL'
8572test -n "\$AWK" || AWK=awk
13533_ACEOF 8573_ACEOF
13534 8574
13535cat >>$CONFIG_STATUS <<\_ACEOF 8575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13536# If no file are specified by the user, then we need to provide default 8576# The default lists apply if the user does not specify any file.
13537# value. By we need to know if files were specified by the user.
13538ac_need_defaults=: 8577ac_need_defaults=:
13539while test $# != 0 8578while test $# != 0
13540do 8579do
13541 case $1 in 8580 case $1 in
13542 --*=*) 8581 --*=?*)
13543 ac_option=`expr "x$1" : 'x\([^=]*\)='` 8582 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13544 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 8583 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13545 ac_shift=: 8584 ac_shift=:
13546 ;; 8585 ;;
8586 --*=)
8587 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8588 ac_optarg=
8589 ac_shift=:
8590 ;;
13547 -*) 8591 *)
13548 ac_option=$1 8592 ac_option=$1
13549 ac_optarg=$2 8593 ac_optarg=$2
13550 ac_shift=shift 8594 ac_shift=shift
13551 ;; 8595 ;;
13552 *) # This is not an option, so the user has probably given explicit
13553 # arguments.
13554 ac_option=$1
13555 ac_need_defaults=false;;
13556 esac 8596 esac
13557 8597
13558 case $ac_option in 8598 case $ac_option in
13559 # Handling of the options. 8599 # Handling of the options.
13560_ACEOF
13561cat >>$CONFIG_STATUS <<\_ACEOF
13562 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8600 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13563 ac_cs_recheck=: ;; 8601 ac_cs_recheck=: ;;
13564 --version | --vers* | -V ) 8602 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13565 echo "$ac_cs_version"; exit 0 ;; 8603 $as_echo "$ac_cs_version"; exit ;;
13566 --he | --h) 8604 --config | --confi | --conf | --con | --co | --c )
13567 # Conflict between --help and --header
13568 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13569Try \`$0 --help' for more information." >&5
13570echo "$as_me: error: ambiguous option: $1
13571Try \`$0 --help' for more information." >&2;}
13572 { (exit 1); exit 1; }; };;
13573 --help | --hel | -h )
13574 echo "$ac_cs_usage"; exit 0 ;; 8605 $as_echo "$ac_cs_config"; exit ;;
13575 --debug | --d* | -d ) 8606 --debug | --debu | --deb | --de | --d | -d )
13576 debug=: ;; 8607 debug=: ;;
13577 --file | --fil | --fi | --f ) 8608 --file | --fil | --fi | --f )
13578 $ac_shift 8609 $ac_shift
13579 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 8610 case $ac_optarg in
8611 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8612 '') as_fn_error $? "missing file argument" ;;
8613 esac
8614 as_fn_append CONFIG_FILES " '$ac_optarg'"
13580 ac_need_defaults=false;; 8615 ac_need_defaults=false;;
13581 --header | --heade | --head | --hea ) 8616 --header | --heade | --head | --hea )
13582 $ac_shift 8617 $ac_shift
13583 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 8618 case $ac_optarg in
8619 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8620 esac
8621 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13584 ac_need_defaults=false;; 8622 ac_need_defaults=false;;
8623 --he | --h)
8624 # Conflict between --help and --header
8625 as_fn_error $? "ambiguous option: \`$1'
8626Try \`$0 --help' for more information.";;
8627 --help | --hel | -h )
8628 $as_echo "$ac_cs_usage"; exit ;;
13585 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8629 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13586 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8630 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13587 ac_cs_silent=: ;; 8631 ac_cs_silent=: ;;
13588 8632
13589 # This is an error. 8633 # This is an error.
13590 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 8634 -*) as_fn_error $? "unrecognized option: \`$1'
13591Try \`$0 --help' for more information." >&5
13592echo "$as_me: error: unrecognized option: $1
13593Try \`$0 --help' for more information." >&2;} 8635Try \`$0 --help' for more information." ;;
13594 { (exit 1); exit 1; }; } ;;
13595 8636
13596 *) ac_config_targets="$ac_config_targets $1" ;; 8637 *) as_fn_append ac_config_targets " $1"
8638 ac_need_defaults=false ;;
13597 8639
13598 esac 8640 esac
13599 shift 8641 shift
13600done 8642done
13601 8643
13605 exec 6>/dev/null 8647 exec 6>/dev/null
13606 ac_configure_extra_args="$ac_configure_extra_args --silent" 8648 ac_configure_extra_args="$ac_configure_extra_args --silent"
13607fi 8649fi
13608 8650
13609_ACEOF 8651_ACEOF
13610cat >>$CONFIG_STATUS <<_ACEOF 8652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13611if \$ac_cs_recheck; then 8653if \$ac_cs_recheck; then
13612 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13613 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8654 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8655 shift
8656 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8657 CONFIG_SHELL='$SHELL'
8658 export CONFIG_SHELL
8659 exec "\$@"
13614fi 8660fi
13615 8661
13616_ACEOF 8662_ACEOF
13617
13618
13619
13620
13621
13622cat >>$CONFIG_STATUS <<\_ACEOF 8663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8664exec 5>>config.log
8665{
8666 echo
8667 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8668## Running $as_me. ##
8669_ASBOX
8670 $as_echo "$ac_log"
8671} >&5
8672
8673_ACEOF
8674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8675_ACEOF
8676
8677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8678
8679# Handling of arguments.
13623for ac_config_target in $ac_config_targets 8680for ac_config_target in $ac_config_targets
13624do 8681do
13625 case "$ac_config_target" in 8682 case $ac_config_target in
13626 # Handling of arguments. 8683 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13627 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
13628 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8684 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13629 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 8685 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13630 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 8686 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13631 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 8687
13632 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 8688 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13633 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13634echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13635 { (exit 1); exit 1; }; };;
13636 esac 8689 esac
13637done 8690done
8691
13638 8692
13639# If the user did not use the arguments to specify the items to instantiate, 8693# If the user did not use the arguments to specify the items to instantiate,
13640# then the envvar interface is used. Set only those that are not. 8694# then the envvar interface is used. Set only those that are not.
13641# We use the long form for the default assignment because of an extremely 8695# We use the long form for the default assignment because of an extremely
13642# bizarre bug on SunOS 4.1.3. 8696# bizarre bug on SunOS 4.1.3.
13644 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8698 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13645 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8699 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13646fi 8700fi
13647 8701
13648# Have a temporary directory for convenience. Make it in the build tree 8702# Have a temporary directory for convenience. Make it in the build tree
13649# simply because there is no reason to put it here, and in addition, 8703# simply because there is no reason against having it here, and in addition,
13650# creating and moving files from /tmp can sometimes cause problems. 8704# creating and moving files from /tmp can sometimes cause problems.
13651# Create a temporary directory, and hook for its removal unless debugging. 8705# Hook for its removal unless debugging.
8706# Note that there is a small window in which the directory will not be cleaned:
8707# after its creation but before its name has been assigned to `$tmp'.
13652$debug || 8708$debug ||
13653{ 8709{
13654 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 8710 tmp= ac_tmp=
13655 trap '{ (exit 1); exit 1; }' 1 2 13 15 8711 trap 'exit_status=$?
8712 : "${ac_tmp:=$tmp}"
8713 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8714' 0
8715 trap 'as_fn_exit 1' 1 2 13 15
13656} 8716}
13657
13658# Create a (secure) tmp directory for tmp files. 8717# Create a (secure) tmp directory for tmp files.
13659 8718
13660{ 8719{
13661 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 8720 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13662 test -n "$tmp" && test -d "$tmp" 8721 test -d "$tmp"
13663} || 8722} ||
13664{ 8723{
13665 tmp=./confstat$$-$RANDOM 8724 tmp=./conf$$-$RANDOM
13666 (umask 077 && mkdir $tmp) 8725 (umask 077 && mkdir "$tmp")
13667} || 8726} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8727ac_tmp=$tmp
8728
8729# Set up the scripts for CONFIG_FILES section.
8730# No need to generate them if there are no CONFIG_FILES.
8731# This happens for instance with `./config.status config.h'.
8732if test -n "$CONFIG_FILES"; then
8733
8734
8735ac_cr=`echo X | tr X '\015'`
8736# On cygwin, bash can eat \r inside `` if the user requested igncr.
8737# But we know of no other shell where ac_cr would be empty at this
8738# point, so we can use a bashism as a fallback.
8739if test "x$ac_cr" = x; then
8740 eval ac_cr=\$\'\\r\'
8741fi
8742ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8743if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8744 ac_cs_awk_cr='\\r'
8745else
8746 ac_cs_awk_cr=$ac_cr
8747fi
8748
8749echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8750_ACEOF
8751
8752
13668{ 8753{
13669 echo "$me: cannot create a temporary directory in ." >&2 8754 echo "cat >conf$$subs.awk <<_ACEOF" &&
13670 { (exit 1); exit 1; } 8755 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8756 echo "_ACEOF"
8757} >conf$$subs.sh ||
8758 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8759ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8760ac_delim='%!_!# '
8761for ac_last_try in false false false false false :; do
8762 . ./conf$$subs.sh ||
8763 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8764
8765 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8766 if test $ac_delim_n = $ac_delim_num; then
8767 break
8768 elif $ac_last_try; then
8769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8770 else
8771 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8772 fi
8773done
8774rm -f conf$$subs.sh
8775
8776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8777cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8778_ACEOF
8779sed -n '
8780h
8781s/^/S["/; s/!.*/"]=/
8782p
8783g
8784s/^[^!]*!//
8785:repl
8786t repl
8787s/'"$ac_delim"'$//
8788t delim
8789:nl
8790h
8791s/\(.\{148\}\)..*/\1/
8792t more1
8793s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8794p
8795n
8796b repl
8797:more1
8798s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8799p
8800g
8801s/.\{148\}//
8802t nl
8803:delim
8804h
8805s/\(.\{148\}\)..*/\1/
8806t more2
8807s/["\\]/\\&/g; s/^/"/; s/$/"/
8808p
8809b
8810:more2
8811s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8812p
8813g
8814s/.\{148\}//
8815t delim
8816' <conf$$subs.awk | sed '
8817/^[^""]/{
8818 N
8819 s/\n//
13671} 8820}
13672 8821' >>$CONFIG_STATUS || ac_write_fail=1
13673_ACEOF 8822rm -f conf$$subs.awk
13674
13675cat >>$CONFIG_STATUS <<_ACEOF 8823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8824_ACAWK
8825cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8826 for (key in S) S_is_set[key] = 1
8827 FS = ""
13676 8828
13677# 8829}
13678# CONFIG_FILES section. 8830{
13679# 8831 line = $ 0
13680 8832 nfields = split(line, field, "@")
13681# No need to generate the scripts if there are no CONFIG_FILES. 8833 substed = 0
13682# This happens for instance when ./config.status config.h 8834 len = length(field[1])
13683if test -n "\$CONFIG_FILES"; then 8835 for (i = 2; i < nfields; i++) {
13684 # Protect against being on the right side of a sed subst in config.status. 8836 key = field[i]
13685 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 8837 keylen = length(key)
13686 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 8838 if (S_is_set[key]) {
13687s,@SHELL@,$SHELL,;t t 8839 value = S[key]
13688s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 8840 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13689s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 8841 len += length(value) + length(field[++i])
13690s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 8842 substed = 1
13691s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13692s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13693s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13694s,@exec_prefix@,$exec_prefix,;t t
13695s,@prefix@,$prefix,;t t
13696s,@program_transform_name@,$program_transform_name,;t t
13697s,@bindir@,$bindir,;t t
13698s,@sbindir@,$sbindir,;t t
13699s,@libexecdir@,$libexecdir,;t t
13700s,@datadir@,$datadir,;t t
13701s,@sysconfdir@,$sysconfdir,;t t
13702s,@sharedstatedir@,$sharedstatedir,;t t
13703s,@localstatedir@,$localstatedir,;t t
13704s,@libdir@,$libdir,;t t
13705s,@includedir@,$includedir,;t t
13706s,@oldincludedir@,$oldincludedir,;t t
13707s,@infodir@,$infodir,;t t
13708s,@mandir@,$mandir,;t t
13709s,@build_alias@,$build_alias,;t t
13710s,@host_alias@,$host_alias,;t t
13711s,@target_alias@,$target_alias,;t t
13712s,@DEFS@,$DEFS,;t t
13713s,@ECHO_C@,$ECHO_C,;t t
13714s,@ECHO_N@,$ECHO_N,;t t
13715s,@ECHO_T@,$ECHO_T,;t t
13716s,@LIBS@,$LIBS,;t t
13717s,@build@,$build,;t t
13718s,@build_cpu@,$build_cpu,;t t
13719s,@build_vendor@,$build_vendor,;t t
13720s,@build_os@,$build_os,;t t
13721s,@host@,$host,;t t
13722s,@host_cpu@,$host_cpu,;t t
13723s,@host_vendor@,$host_vendor,;t t
13724s,@host_os@,$host_os,;t t
13725s,@VERSION@,$VERSION,;t t
13726s,@DATE@,$DATE,;t t
13727s,@LSMDATE@,$LSMDATE,;t t
13728s,@LIBVERSION@,$LIBVERSION,;t t
13729s,@CC@,$CC,;t t
13730s,@CFLAGS@,$CFLAGS,;t t
13731s,@LDFLAGS@,$LDFLAGS,;t t
13732s,@CPPFLAGS@,$CPPFLAGS,;t t
13733s,@ac_ct_CC@,$ac_ct_CC,;t t
13734s,@EXEEXT@,$EXEEXT,;t t
13735s,@OBJEXT@,$OBJEXT,;t t
13736s,@CXX@,$CXX,;t t
13737s,@CXXFLAGS@,$CXXFLAGS,;t t
13738s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13739s,@CPP@,$CPP,;t t
13740s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13741s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13742s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13743s,@AWK@,$AWK,;t t
13744s,@LINKER@,$LINKER,;t t
13745s,@CXXCPP@,$CXXCPP,;t t
13746s,@EGREP@,$EGREP,;t t
13747s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13748s,@RXVTNAME@,$RXVTNAME,;t t
13749s,@MV@,$MV,;t t
13750s,@RM@,$RM,;t t
13751s,@CP@,$CP,;t t
13752s,@LN@,$LN,;t t
13753s,@SED@,$SED,;t t
13754s,@ECHO@,$ECHO,;t t
13755s,@CMP@,$CMP,;t t
13756s,@TBL@,$TBL,;t t
13757s,@TIC@,$TIC,;t t
13758s,@X_CFLAGS@,$X_CFLAGS,;t t
13759s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13760s,@X_LIBS@,$X_LIBS,;t t
13761s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13762s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
13763s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
13764s,@XPM_LIBS@,$XPM_LIBS,;t t
13765s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
13766s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
13767s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
13768s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
13769s,@rxvt_intp_define@,$rxvt_intp_define,;t t
13770s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
13771s,@PERL@,$PERL,;t t
13772s,@PERLLIB@,$PERLLIB,;t t
13773s,@PERLFLAGS@,$PERLFLAGS,;t t
13774s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13775s,@IF_PERL@,$IF_PERL,;t t
13776s,@PERL_O@,$PERL_O,;t t
13777s,@DEBUG@,$DEBUG,;t t
13778s,@DINCLUDE@,$DINCLUDE,;t t
13779s,@DLIB@,$DLIB,;t t
13780s,@include_stdint_h@,$include_stdint_h,;t t
13781s,@include_stdarg_h@,$include_stdarg_h,;t t
13782s,@include_stdlib_h@,$include_stdlib_h,;t t
13783s,@include_unistd_h@,$include_unistd_h,;t t
13784s,@include_string_h@,$include_string_h,;t t
13785s,@include_fcntl_h@,$include_fcntl_h,;t t
13786s,@include_util_h@,$include_util_h,;t t
13787s,@include_assert_h@,$include_assert_h,;t t
13788s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
13789s,@include_sys_select_h@,$include_sys_select_h,;t t
13790s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
13791s,@include_sys_time_h@,$include_sys_time_h,;t t
13792s,@include_time_h@,$include_time_h,;t t
13793s,@LIBOBJS@,$LIBOBJS,;t t
13794s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13795/@MCOMMON@/r $MCOMMON
13796s,@MCOMMON@,,;t t
13797CEOF
13798
13799_ACEOF
13800
13801 cat >>$CONFIG_STATUS <<\_ACEOF
13802 # Split the substitutions into bite-sized pieces for seds with
13803 # small command number limits, like on Digital OSF/1 and HP-UX.
13804 ac_max_sed_lines=48
13805 ac_sed_frag=1 # Number of current file.
13806 ac_beg=1 # First line for current file.
13807 ac_end=$ac_max_sed_lines # Line after last line for current file.
13808 ac_more_lines=:
13809 ac_sed_cmds=
13810 while $ac_more_lines; do
13811 if test $ac_beg -gt 1; then
13812 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13813 else 8843 } else
13814 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 8844 len += 1 + keylen
8845 }
8846
8847 print line
8848}
8849
8850_ACAWK
8851_ACEOF
8852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8853if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8854 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8855else
8856 cat
8857fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8858 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8859_ACEOF
8860
8861# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8862# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8863# trailing colons and then remove the whole line if VPATH becomes empty
8864# (actually we leave an empty line to preserve line numbers).
8865if test "x$srcdir" = x.; then
8866 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8867h
8868s///
8869s/^/:/
8870s/[ ]*$/:/
8871s/:\$(srcdir):/:/g
8872s/:\${srcdir}:/:/g
8873s/:@srcdir@:/:/g
8874s/^:*//
8875s/:*$//
8876x
8877s/\(=[ ]*\).*/\1/
8878G
8879s/\n//
8880s/^[^=]*=[ ]*$//
8881}'
8882fi
8883
8884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8885fi # test -n "$CONFIG_FILES"
8886
8887# Set up the scripts for CONFIG_HEADERS section.
8888# No need to generate them if there are no CONFIG_HEADERS.
8889# This happens for instance with `./config.status Makefile'.
8890if test -n "$CONFIG_HEADERS"; then
8891cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8892BEGIN {
8893_ACEOF
8894
8895# Transform confdefs.h into an awk script `defines.awk', embedded as
8896# here-document in config.status, that substitutes the proper values into
8897# config.h.in to produce config.h.
8898
8899# Create a delimiter string that does not exist in confdefs.h, to ease
8900# handling of long lines.
8901ac_delim='%!_!# '
8902for ac_last_try in false false :; do
8903 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8904 if test -z "$ac_tt"; then
8905 break
8906 elif $ac_last_try; then
8907 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8908 else
8909 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8910 fi
8911done
8912
8913# For the awk script, D is an array of macro values keyed by name,
8914# likewise P contains macro parameters if any. Preserve backslash
8915# newline sequences.
8916
8917ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8918sed -n '
8919s/.\{148\}/&'"$ac_delim"'/g
8920t rset
8921:rset
8922s/^[ ]*#[ ]*define[ ][ ]*/ /
8923t def
8924d
8925:def
8926s/\\$//
8927t bsnl
8928s/["\\]/\\&/g
8929s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8930D["\1"]=" \3"/p
8931s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8932d
8933:bsnl
8934s/["\\]/\\&/g
8935s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8936D["\1"]=" \3\\\\\\n"\\/p
8937t cont
8938s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8939t cont
8940d
8941:cont
8942n
8943s/.\{148\}/&'"$ac_delim"'/g
8944t clear
8945:clear
8946s/\\$//
8947t bsnlc
8948s/["\\]/\\&/g; s/^/"/; s/$/"/p
8949d
8950:bsnlc
8951s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8952b cont
8953' <confdefs.h | sed '
8954s/'"$ac_delim"'/"\\\
8955"/g' >>$CONFIG_STATUS || ac_write_fail=1
8956
8957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8958 for (key in D) D_is_set[key] = 1
8959 FS = ""
8960}
8961/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8962 line = \$ 0
8963 split(line, arg, " ")
8964 if (arg[1] == "#") {
8965 defundef = arg[2]
8966 mac1 = arg[3]
8967 } else {
8968 defundef = substr(arg[1], 2)
8969 mac1 = arg[2]
8970 }
8971 split(mac1, mac2, "(") #)
8972 macro = mac2[1]
8973 prefix = substr(line, 1, index(line, defundef) - 1)
8974 if (D_is_set[macro]) {
8975 # Preserve the white space surrounding the "#".
8976 print prefix "define", macro P[macro] D[macro]
8977 next
8978 } else {
8979 # Replace #undef with comments. This is necessary, for example,
8980 # in the case of _POSIX_SOURCE, which is predefined and required
8981 # on some systems where configure will not decide to define it.
8982 if (defundef == "undef") {
8983 print "/*", prefix defundef, macro, "*/"
8984 next
8985 }
8986 }
8987}
8988{ print }
8989_ACAWK
8990_ACEOF
8991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8992 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8993fi # test -n "$CONFIG_HEADERS"
8994
8995
8996eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8997shift
8998for ac_tag
8999do
9000 case $ac_tag in
9001 :[FHLC]) ac_mode=$ac_tag; continue;;
9002 esac
9003 case $ac_mode$ac_tag in
9004 :[FHL]*:*);;
9005 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9006 :[FH]-) ac_tag=-:-;;
9007 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9008 esac
9009 ac_save_IFS=$IFS
9010 IFS=:
9011 set x $ac_tag
9012 IFS=$ac_save_IFS
9013 shift
9014 ac_file=$1
9015 shift
9016
9017 case $ac_mode in
9018 :L) ac_source=$1;;
9019 :[FH])
9020 ac_file_inputs=
9021 for ac_f
9022 do
9023 case $ac_f in
9024 -) ac_f="$ac_tmp/stdin";;
9025 *) # Look for the file first in the build tree, then in the source tree
9026 # (if the path is not absolute). The absolute path cannot be DOS-style,
9027 # because $ac_f cannot contain `:'.
9028 test -f "$ac_f" ||
9029 case $ac_f in
9030 [\\/$]*) false;;
9031 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9032 esac ||
9033 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9034 esac
9035 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9036 as_fn_append ac_file_inputs " '$ac_f'"
9037 done
9038
9039 # Let's still pretend it is `configure' which instantiates (i.e., don't
9040 # use $as_me), people would be surprised to read:
9041 # /* config.h. Generated by config.status. */
9042 configure_input='Generated from '`
9043 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9044 `' by configure.'
9045 if test x"$ac_file" != x-; then
9046 configure_input="$ac_file. $configure_input"
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9048$as_echo "$as_me: creating $ac_file" >&6;}
13815 fi 9049 fi
13816 if test ! -s $tmp/subs.frag; then 9050 # Neutralize special characters interpreted by sed in replacement strings.
13817 ac_more_lines=false 9051 case $configure_input in #(
9052 *\&* | *\|* | *\\* )
9053 ac_sed_conf_input=`$as_echo "$configure_input" |
9054 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9055 *) ac_sed_conf_input=$configure_input;;
13818 else 9056 esac
13819 # The purpose of the label and of the branching condition is to
13820 # speed up the sed processing (if there are no `@' at all, there
13821 # is no need to browse any of the substitutions).
13822 # These are the two extra sed commands mentioned above.
13823 (echo ':t
13824 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13825 if test -z "$ac_sed_cmds"; then
13826 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13827 else
13828 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13829 fi
13830 ac_sed_frag=`expr $ac_sed_frag + 1`
13831 ac_beg=$ac_end
13832 ac_end=`expr $ac_end + $ac_max_sed_lines`
13833 fi
13834 done
13835 if test -z "$ac_sed_cmds"; then
13836 ac_sed_cmds=cat
13837 fi
13838fi # test -n "$CONFIG_FILES"
13839 9057
13840_ACEOF
13841cat >>$CONFIG_STATUS <<\_ACEOF
13842for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13843 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13844 case $ac_file in 9058 case $ac_tag in
13845 - | *:- | *:-:* ) # input from stdin 9059 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13846 cat >$tmp/stdin 9060 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13847 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9061 esac
13848 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9062 ;;
13849 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13850 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13851 * ) ac_file_in=$ac_file.in ;;
13852 esac 9063 esac
13853 9064
13854 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 9065 ac_dir=`$as_dirname -- "$ac_file" ||
13855 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13856$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9066$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13857 X"$ac_file" : 'X\(//\)[^/]' \| \ 9067 X"$ac_file" : 'X\(//\)[^/]' \| \
13858 X"$ac_file" : 'X\(//\)$' \| \ 9068 X"$ac_file" : 'X\(//\)$' \| \
13859 X"$ac_file" : 'X\(/\)' \| \ 9069 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13860 . : '\(.\)' 2>/dev/null ||
13861echo X"$ac_file" | 9070$as_echo X"$ac_file" |
13862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13863 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9072 s//\1/
13864 /^X\(\/\/\)$/{ s//\1/; q; } 9073 q
13865 /^X\(\/\).*/{ s//\1/; q; } 9074 }
9075 /^X\(\/\/\)[^/].*/{
9076 s//\1/
9077 q
9078 }
9079 /^X\(\/\/\)$/{
9080 s//\1/
9081 q
9082 }
9083 /^X\(\/\).*/{
9084 s//\1/
9085 q
9086 }
13866 s/.*/./; q'` 9087 s/.*/./; q'`
13867 { if $as_mkdir_p; then 9088 as_dir="$ac_dir"; as_fn_mkdir_p
13868 mkdir -p "$ac_dir"
13869 else
13870 as_dir="$ac_dir"
13871 as_dirs=
13872 while test ! -d "$as_dir"; do
13873 as_dirs="$as_dir $as_dirs"
13874 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13875$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13876 X"$as_dir" : 'X\(//\)[^/]' \| \
13877 X"$as_dir" : 'X\(//\)$' \| \
13878 X"$as_dir" : 'X\(/\)' \| \
13879 . : '\(.\)' 2>/dev/null ||
13880echo X"$as_dir" |
13881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13883 /^X\(\/\/\)$/{ s//\1/; q; }
13884 /^X\(\/\).*/{ s//\1/; q; }
13885 s/.*/./; q'`
13886 done
13887 test ! -n "$as_dirs" || mkdir $as_dirs
13888 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13889echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13890 { (exit 1); exit 1; }; }; }
13891
13892 ac_builddir=. 9089 ac_builddir=.
13893 9090
13894if test "$ac_dir" != .; then 9091case "$ac_dir" in
9092.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9093*)
13895 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9094 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13896 # A "../" for each directory in $ac_dir_suffix. 9095 # A ".." for each directory in $ac_dir_suffix.
13897 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 9096 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13898else 9097 case $ac_top_builddir_sub in
13899 ac_dir_suffix= ac_top_builddir= 9098 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13900fi 9099 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9100 esac ;;
9101esac
9102ac_abs_top_builddir=$ac_pwd
9103ac_abs_builddir=$ac_pwd$ac_dir_suffix
9104# for backward compatibility:
9105ac_top_builddir=$ac_top_build_prefix
13901 9106
13902case $srcdir in 9107case $srcdir in
13903 .) # No --srcdir option. We are building in place. 9108 .) # We are building in place.
13904 ac_srcdir=. 9109 ac_srcdir=.
13905 if test -z "$ac_top_builddir"; then 9110 ac_top_srcdir=$ac_top_builddir_sub
13906 ac_top_srcdir=. 9111 ac_abs_top_srcdir=$ac_pwd ;;
13907 else
13908 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13909 fi ;;
13910 [\\/]* | ?:[\\/]* ) # Absolute path. 9112 [\\/]* | ?:[\\/]* ) # Absolute name.
13911 ac_srcdir=$srcdir$ac_dir_suffix; 9113 ac_srcdir=$srcdir$ac_dir_suffix;
13912 ac_top_srcdir=$srcdir ;; 9114 ac_top_srcdir=$srcdir
9115 ac_abs_top_srcdir=$srcdir ;;
13913 *) # Relative path. 9116 *) # Relative name.
13914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 9117 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13915 ac_top_srcdir=$ac_top_builddir$srcdir ;; 9118 ac_top_srcdir=$ac_top_build_prefix$srcdir
9119 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13916esac 9120esac
9121ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13917 9122
13918# Do not use `cd foo && pwd` to compute absolute paths, because 9123
13919# the directories may not exist.
13920case `pwd` in
13921.) ac_abs_builddir="$ac_dir";;
13922*)
13923 case "$ac_dir" in 9124 case $ac_mode in
13924 .) ac_abs_builddir=`pwd`;; 9125 :F)
13925 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 9126 #
13926 *) ac_abs_builddir=`pwd`/"$ac_dir";; 9127 # CONFIG_FILE
13927 esac;; 9128 #
13928esac
13929case $ac_abs_builddir in
13930.) ac_abs_top_builddir=${ac_top_builddir}.;;
13931*)
13932 case ${ac_top_builddir}. in
13933 .) ac_abs_top_builddir=$ac_abs_builddir;;
13934 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13935 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13936 esac;;
13937esac
13938case $ac_abs_builddir in
13939.) ac_abs_srcdir=$ac_srcdir;;
13940*)
13941 case $ac_srcdir in
13942 .) ac_abs_srcdir=$ac_abs_builddir;;
13943 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13944 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13945 esac;;
13946esac
13947case $ac_abs_builddir in
13948.) ac_abs_top_srcdir=$ac_top_srcdir;;
13949*)
13950 case $ac_top_srcdir in
13951 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13952 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13953 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13954 esac;;
13955esac
13956
13957 9129
13958 case $INSTALL in 9130 case $INSTALL in
13959 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9131 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13960 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 9132 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13961 esac 9133 esac
13962
13963 # Let's still pretend it is `configure' which instantiates (i.e., don't
13964 # use $as_me), people would be surprised to read:
13965 # /* config.h. Generated by config.status. */
13966 if test x"$ac_file" = x-; then
13967 configure_input=
13968 else
13969 configure_input="$ac_file. "
13970 fi
13971 configure_input=$configure_input"Generated from `echo $ac_file_in |
13972 sed 's,.*/,,'` by configure."
13973
13974 # First look for the input files in the build tree, otherwise in the
13975 # src tree.
13976 ac_file_inputs=`IFS=:
13977 for f in $ac_file_in; do
13978 case $f in
13979 -) echo $tmp/stdin ;;
13980 [\\/$]*)
13981 # Absolute (can't be DOS-style, as IFS=:)
13982 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13983echo "$as_me: error: cannot find input file: $f" >&2;}
13984 { (exit 1); exit 1; }; }
13985 echo "$f";;
13986 *) # Relative
13987 if test -f "$f"; then
13988 # Build tree
13989 echo "$f"
13990 elif test -f "$srcdir/$f"; then
13991 # Source tree
13992 echo "$srcdir/$f"
13993 else
13994 # /dev/null tree
13995 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13996echo "$as_me: error: cannot find input file: $f" >&2;}
13997 { (exit 1); exit 1; }; }
13998 fi;;
13999 esac
14000 done` || { (exit 1); exit 1; }
14001
14002 if test x"$ac_file" != x-; then
14003 { echo "$as_me:$LINENO: creating $ac_file" >&5
14004echo "$as_me: creating $ac_file" >&6;}
14005 rm -f "$ac_file"
14006 fi
14007_ACEOF 9134_ACEOF
9135
9136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9137# If the template does not know about datarootdir, expand it.
9138# FIXME: This hack should be removed a few years after 2.60.
9139ac_datarootdir_hack=; ac_datarootdir_seen=
9140ac_sed_dataroot='
9141/datarootdir/ {
9142 p
9143 q
9144}
9145/@datadir@/p
9146/@docdir@/p
9147/@infodir@/p
9148/@localedir@/p
9149/@mandir@/p'
9150case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9151*datarootdir*) ac_datarootdir_seen=yes;;
9152*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9154$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9155_ACEOF
14008cat >>$CONFIG_STATUS <<_ACEOF 9156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14009 sed "$ac_vpsub 9157 ac_datarootdir_hack='
9158 s&@datadir@&$datadir&g
9159 s&@docdir@&$docdir&g
9160 s&@infodir@&$infodir&g
9161 s&@localedir@&$localedir&g
9162 s&@mandir@&$mandir&g
9163 s&\\\${datarootdir}&$datarootdir&g' ;;
9164esac
9165_ACEOF
9166
9167# Neutralize VPATH when `$srcdir' = `.'.
9168# Shell code in configure.ac might set extrasub.
9169# FIXME: do we really want to maintain this feature?
9170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9171ac_sed_extra="$ac_vpsub
14010$extrasub 9172$extrasub
14011_ACEOF 9173_ACEOF
14012cat >>$CONFIG_STATUS <<\_ACEOF 9174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14013:t 9175:t
14014/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9176/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14015s,@configure_input@,$configure_input,;t t 9177s|@configure_input@|$ac_sed_conf_input|;t t
9178s&@top_builddir@&$ac_top_builddir_sub&;t t
9179s&@top_build_prefix@&$ac_top_build_prefix&;t t
14016s,@srcdir@,$ac_srcdir,;t t 9180s&@srcdir@&$ac_srcdir&;t t
14017s,@abs_srcdir@,$ac_abs_srcdir,;t t 9181s&@abs_srcdir@&$ac_abs_srcdir&;t t
14018s,@top_srcdir@,$ac_top_srcdir,;t t 9182s&@top_srcdir@&$ac_top_srcdir&;t t
14019s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 9183s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14020s,@builddir@,$ac_builddir,;t t 9184s&@builddir@&$ac_builddir&;t t
14021s,@abs_builddir@,$ac_abs_builddir,;t t 9185s&@abs_builddir@&$ac_abs_builddir&;t t
14022s,@top_builddir@,$ac_top_builddir,;t t
14023s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 9186s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14024s,@INSTALL@,$ac_INSTALL,;t t 9187s&@INSTALL@&$ac_INSTALL&;t t
14025" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 9188$ac_datarootdir_hack
9189"
9190eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9191 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9192
9193test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9194 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9195 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9196 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9198which seems to be undefined. Please make sure it is defined" >&5
9199$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9200which seems to be undefined. Please make sure it is defined" >&2;}
9201
14026 rm -f $tmp/stdin 9202 rm -f "$ac_tmp/stdin"
9203 case $ac_file in
9204 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9205 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9206 esac \
9207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9208 ;;
9209 :H)
9210 #
9211 # CONFIG_HEADER
9212 #
14027 if test x"$ac_file" != x-; then 9213 if test x"$ac_file" != x-; then
14028 mv $tmp/out $ac_file 9214 {
14029 else 9215 $as_echo "/* $configure_input */" \
14030 cat $tmp/out 9216 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14031 rm -f $tmp/out 9217 } >"$ac_tmp/config.h" \
14032 fi 9218 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14033
14034done
14035_ACEOF
14036cat >>$CONFIG_STATUS <<\_ACEOF
14037
14038#
14039# CONFIG_HEADER section.
14040#
14041
14042# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14043# NAME is the cpp macro being defined and VALUE is the value it is being given.
14044#
14045# ac_d sets the value in "#define NAME VALUE" lines.
14046ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14047ac_dB='[ ].*$,\1#\2'
14048ac_dC=' '
14049ac_dD=',;t'
14050# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14051ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14052ac_uB='$,\1#\2define\3'
14053ac_uC=' '
14054ac_uD=',;t'
14055
14056for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14057 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14058 case $ac_file in
14059 - | *:- | *:-:* ) # input from stdin
14060 cat >$tmp/stdin
14061 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14062 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14063 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14064 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14065 * ) ac_file_in=$ac_file.in ;;
14066 esac
14067
14068 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14069echo "$as_me: creating $ac_file" >&6;}
14070
14071 # First look for the input files in the build tree, otherwise in the
14072 # src tree.
14073 ac_file_inputs=`IFS=:
14074 for f in $ac_file_in; do
14075 case $f in
14076 -) echo $tmp/stdin ;;
14077 [\\/$]*)
14078 # Absolute (can't be DOS-style, as IFS=:)
14079 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14080echo "$as_me: error: cannot find input file: $f" >&2;}
14081 { (exit 1); exit 1; }; }
14082 # Do quote $f, to prevent DOS paths from being IFS'd.
14083 echo "$f";;
14084 *) # Relative
14085 if test -f "$f"; then
14086 # Build tree
14087 echo "$f"
14088 elif test -f "$srcdir/$f"; then
14089 # Source tree
14090 echo "$srcdir/$f"
14091 else
14092 # /dev/null tree
14093 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14094echo "$as_me: error: cannot find input file: $f" >&2;}
14095 { (exit 1); exit 1; }; }
14096 fi;;
14097 esac
14098 done` || { (exit 1); exit 1; }
14099 # Remove the trailing spaces.
14100 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14101
14102_ACEOF
14103
14104# Transform confdefs.h into two sed scripts, `conftest.defines' and
14105# `conftest.undefs', that substitutes the proper values into
14106# config.h.in to produce config.h. The first handles `#define'
14107# templates, and the second `#undef' templates.
14108# And first: Protect against being on the right side of a sed subst in
14109# config.status. Protect against being in an unquoted here document
14110# in config.status.
14111rm -f conftest.defines conftest.undefs
14112# Using a here document instead of a string reduces the quoting nightmare.
14113# Putting comments in sed scripts is not portable.
14114#
14115# `end' is used to avoid that the second main sed command (meant for
14116# 0-ary CPP macros) applies to n-ary macro definitions.
14117# See the Autoconf documentation for `clear'.
14118cat >confdef2sed.sed <<\_ACEOF
14119s/[\\&,]/\\&/g
14120s,[\\$`],\\&,g
14121t clear
14122: clear
14123s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14124t end
14125s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14126: end
14127_ACEOF
14128# If some macros were called several times there might be several times
14129# the same #defines, which is useless. Nevertheless, we may not want to
14130# sort them, since we want the *last* AC-DEFINE to be honored.
14131uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14132sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14133rm -f confdef2sed.sed
14134
14135# This sed command replaces #undef with comments. This is necessary, for
14136# example, in the case of _POSIX_SOURCE, which is predefined and required
14137# on some systems where configure will not decide to define it.
14138cat >>conftest.undefs <<\_ACEOF
14139s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14140_ACEOF
14141
14142# Break up conftest.defines because some shells have a limit on the size
14143# of here documents, and old seds have small limits too (100 cmds).
14144echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14145echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14146echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14147echo ' :' >>$CONFIG_STATUS
14148rm -f conftest.tail
14149while grep . conftest.defines >/dev/null
14150do
14151 # Write a limited-size here document to $tmp/defines.sed.
14152 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14153 # Speed up: don't consider the non `#define' lines.
14154 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14155 # Work around the forget-to-reset-the-flag bug.
14156 echo 't clr' >>$CONFIG_STATUS
14157 echo ': clr' >>$CONFIG_STATUS
14158 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14159 echo 'CEOF
14160 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14161 rm -f $tmp/in
14162 mv $tmp/out $tmp/in
14163' >>$CONFIG_STATUS
14164 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14165 rm -f conftest.defines
14166 mv conftest.tail conftest.defines
14167done
14168rm -f conftest.defines
14169echo ' fi # grep' >>$CONFIG_STATUS
14170echo >>$CONFIG_STATUS
14171
14172# Break up conftest.undefs because some shells have a limit on the size
14173# of here documents, and old seds have small limits too (100 cmds).
14174echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14175rm -f conftest.tail
14176while grep . conftest.undefs >/dev/null
14177do
14178 # Write a limited-size here document to $tmp/undefs.sed.
14179 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14180 # Speed up: don't consider the non `#undef'
14181 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14182 # Work around the forget-to-reset-the-flag bug.
14183 echo 't clr' >>$CONFIG_STATUS
14184 echo ': clr' >>$CONFIG_STATUS
14185 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14186 echo 'CEOF
14187 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14188 rm -f $tmp/in
14189 mv $tmp/out $tmp/in
14190' >>$CONFIG_STATUS
14191 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14192 rm -f conftest.undefs
14193 mv conftest.tail conftest.undefs
14194done
14195rm -f conftest.undefs
14196
14197cat >>$CONFIG_STATUS <<\_ACEOF
14198 # Let's still pretend it is `configure' which instantiates (i.e., don't
14199 # use $as_me), people would be surprised to read:
14200 # /* config.h. Generated by config.status. */
14201 if test x"$ac_file" = x-; then
14202 echo "/* Generated by configure. */" >$tmp/config.h
14203 else
14204 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14205 fi
14206 cat $tmp/in >>$tmp/config.h
14207 rm -f $tmp/in
14208 if test x"$ac_file" != x-; then
14209 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 9219 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14210 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9220 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14211echo "$as_me: $ac_file is unchanged" >&6;} 9221$as_echo "$as_me: $ac_file is unchanged" >&6;}
14212 else 9222 else
14213 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14214$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14215 X"$ac_file" : 'X\(//\)[^/]' \| \
14216 X"$ac_file" : 'X\(//\)$' \| \
14217 X"$ac_file" : 'X\(/\)' \| \
14218 . : '\(.\)' 2>/dev/null ||
14219echo X"$ac_file" |
14220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14221 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14222 /^X\(\/\/\)$/{ s//\1/; q; }
14223 /^X\(\/\).*/{ s//\1/; q; }
14224 s/.*/./; q'`
14225 { if $as_mkdir_p; then
14226 mkdir -p "$ac_dir"
14227 else
14228 as_dir="$ac_dir"
14229 as_dirs=
14230 while test ! -d "$as_dir"; do
14231 as_dirs="$as_dir $as_dirs"
14232 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14233$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14234 X"$as_dir" : 'X\(//\)[^/]' \| \
14235 X"$as_dir" : 'X\(//\)$' \| \
14236 X"$as_dir" : 'X\(/\)' \| \
14237 . : '\(.\)' 2>/dev/null ||
14238echo X"$as_dir" |
14239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14240 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14241 /^X\(\/\/\)$/{ s//\1/; q; }
14242 /^X\(\/\).*/{ s//\1/; q; }
14243 s/.*/./; q'`
14244 done
14245 test ! -n "$as_dirs" || mkdir $as_dirs
14246 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14247echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14248 { (exit 1); exit 1; }; }; }
14249
14250 rm -f $ac_file 9223 rm -f "$ac_file"
14251 mv $tmp/config.h $ac_file 9224 mv "$ac_tmp/config.h" "$ac_file" \
9225 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14252 fi 9226 fi
14253 else 9227 else
14254 cat $tmp/config.h 9228 $as_echo "/* $configure_input */" \
14255 rm -f $tmp/config.h 9229 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9230 || as_fn_error $? "could not create -" "$LINENO" 5
14256 fi 9231 fi
14257done 9232 ;;
14258_ACEOF
14259 9233
14260cat >>$CONFIG_STATUS <<\_ACEOF
14261 9234
14262{ (exit 0); exit 0; } 9235 esac
9236
9237done # for ac_tag
9238
9239
9240as_fn_exit 0
14263_ACEOF 9241_ACEOF
14264chmod +x $CONFIG_STATUS
14265ac_clean_files=$ac_clean_files_save 9242ac_clean_files=$ac_clean_files_save
9243
9244test $ac_write_fail = 0 ||
9245 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14266 9246
14267 9247
14268# configure is writing to config.log, and then calls config.status. 9248# configure is writing to config.log, and then calls config.status.
14269# config.status does its own redirection, appending to config.log. 9249# config.status does its own redirection, appending to config.log.
14270# Unfortunately, on DOS this fails, as config.log is still kept open 9250# Unfortunately, on DOS this fails, as config.log is still kept open
14281 exec 5>/dev/null 9261 exec 5>/dev/null
14282 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9262 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14283 exec 5>>config.log 9263 exec 5>>config.log
14284 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9264 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14285 # would make configure fail if this is the last instruction. 9265 # would make configure fail if this is the last instruction.
14286 $ac_cs_success || { (exit 1); exit 1; } 9266 $ac_cs_success || as_fn_exit 1
9267fi
9268if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9270$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14287fi 9271fi
14288 9272
14289 9273
14290echo "Configuration: 9274echo "Configuration:
14291 9275
14292 Rxvt version: $VERSION : $DATE 9276 Rxvt version: $VERSION : $DATE
14293 Source code location: $srcdir 9277 Source code location: $srcdir
14294 Install path: ${prefix}/bin 9278 Install path: ${prefix}/bin
14295 Compiler: $CXX 9279 Compiler: $CXX
14296 Compiler flags: $CFLAGS 9280 Compiler flags: $CXXFLAGS
14297 Linker: $LINKER" 9281 Linker: $LINKER"
14298 9282
14299if test "$MALLOC_TYPE" = S; then
14300 echo " malloc support: system default"
14301fi
14302if test "$MALLOC_TYPE" = G; then
14303 echo " malloc support: Gray Watson's dmalloc"
14304fi
14305if test "$MALLOC_TYPE" = D; then
14306 echo " malloc support: Doug Lea's malloc"
14307fi
14308
14309if test x$support_xpm = xyes; then
14310 echo " Xpm library: $XPM_LIBS"
14311fi
14312
14313echo "
14314The following are set in config.h
14315"
14316echo " pty/tty type: "$rxvt_cv_ptys
14317if test x$support_utmp != xyes; then
14318 echo " utmp support: disabled"
14319 echo
14320else
14321 echo " utmp support: enabled
14322 utmp file: $rxvt_cv_path_utmp
14323 utmpx file: $rxvt_cv_path_utmpx
14324 wtmp file: $rxvt_cv_path_wtmp
14325 wtmpx file: $rxvt_cv_path_wtmpx
14326 lastlog file: $rxvt_cv_path_lastlog
14327 ttys/ttytab file: $rxvt_cv_path_ttytab
14328 embedded perl: $support_perl"
14329 echo
14330fi
14331if test x$term != x; then 9283if test x$term != x; then
14332 echo " set TERM to: $term" 9284 echo " set TERM to: $term"
14333fi 9285fi
14334if test x$terminfo != x; then 9286if test x$terminfo != x; then
14335 echo " set TERMINFO to: $terminfo" 9287 echo " set TERMINFO to: $terminfo"
14338echo " resource class: $RESCLASS" 9290echo " resource class: $RESCLASS"
14339if test x$RESFALLBACK != x; then 9291if test x$RESFALLBACK != x; then
14340 echo " resource class fallback: $RESFALLBACK" 9292 echo " resource class fallback: $RESFALLBACK"
14341fi 9293fi
14342echo 9294echo
14343if test x$rxvt_cv_ptys = xUNKNOWN; then 9295echo " embedded perl: $support_perl"
14344 echo ".----------------------------------------------------------------." 9296echo " image library: $image_lib"
14345 echo ". WARNING: could not determine pty/tty type. Do not build until ." 9297echo
14346 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
14347 echo ".----------------------------------------------------------------."
14348fi
14349if test x$support_xpm = xneedsmanualspecification; then
14350 echo ".----------------------------------------------------------------."
14351 echo ". WARNING: --enable-xpm-background was specified however the ."
14352 echo ". XPM includes files and libraries could not be found. ."
14353 echo ". XPM backgrounds are now being DISABLED! If you want ."
14354 echo ". to use them you should rerun configure with the ."
14355 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14356 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14357 echo ".----------------------------------------------------------------."
14358fi
14359if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then 9298if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14360 echo ".----------------------------------------------------------------." 9299 echo ".----------------------------------------------------------------."
14361 echo ". WARNING: --enable-xim was specified however the locale support ." 9300 echo ". WARNING: --enable-xim was specified however the locale support ."
14362 echo ". functions could not be found. ." 9301 echo ". functions could not be found. ."
14363 echo ". XIM is now being DISABLED! ." 9302 echo ". XIM is now being DISABLED! ."
14364 echo ".----------------------------------------------------------------." 9303 echo ".----------------------------------------------------------------."
14365fi 9304fi
14366 9305
14367echo " *** Optionally check src/feature.h for further options ***" 9306echo "*** Optionally check src/feature.h for further, rarely used options ***"
14368echo 9307echo
14369 9308
14370echo ".----------------------------------------------------------------."
14371echo ". NOTE: some features are disabled by default, try ."
14372echo ". configure --help to get an idea of the optional features, ."
14373echo ". or read ./README.configure ."
14374echo ". ."
14375echo ". The script ./reconf gives a reasonable baseline, try it if ."
14376echo ". you do not want to read documentation and still want some ."
14377echo ". useful features. ."
14378echo ".----------------------------------------------------------------."
14379echo
14380

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines