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

Comparing rxvt-unicode/configure (file contents):
Revision 1.149 by sf-exg, Sun Nov 27 15:18:44 2011 UTC vs.
Revision 1.167 by sf-exg, Fri May 14 13:50:22 2021 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.68. 3# Generated by GNU Autoconf 2.71.
4# 4#
5# 5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 7# Inc.
8# Foundation, Inc.
9# 8#
10# 9#
11# This configure script is free software; the Free Software Foundation 10# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it. 11# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ## 12## -------------------- ##
14## M4sh Initialization. ## 13## M4sh Initialization. ##
15## -------------------- ## 14## -------------------- ##
16 15
17# Be more Bourne compatible 16# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh 17DUALCASE=1; export DUALCASE # for MKS sh
18as_nop=:
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20then :
20 emulate sh 21 emulate sh
21 NULLCMD=: 22 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature. 24 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"' 25 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST 26 setopt NO_GLOB_SUBST
26else 27else $as_nop
27 case `(set -o) 2>/dev/null` in #( 28 case `(set -o) 2>/dev/null` in #(
28 *posix*) : 29 *posix*) :
29 set -o posix ;; #( 30 set -o posix ;; #(
30 *) : 31 *) :
31 ;; 32 ;;
32esac 33esac
33fi 34fi
34 35
35 36
37
38# Reset variables that may have inherited troublesome values from
39# the environment.
40
41# IFS needs to be set, to space, tab, and newline, in precisely that order.
42# (If _AS_PATH_WALK were called with IFS unset, it would have the
43# side effect of setting IFS to empty, thus disabling word splitting.)
44# Quoting is to prevent editors from complaining about space-tab.
36as_nl=' 45as_nl='
37' 46'
38export as_nl 47export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf. 48IFS=" "" $as_nl"
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 49
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 50PS1='$ '
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 51PS2='> '
43# Prefer a ksh shell builtin over an external printf program on Solaris, 52PS4='+ '
44# but without wasting forks for bash or zsh. 53
45if test -z "$BASH_VERSION$ZSH_VERSION" \ 54# Ensure predictable behavior from utilities with locale-dependent output.
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 55LC_ALL=C
47 as_echo='print -r --' 56export LC_ALL
48 as_echo_n='print -rn --' 57LANGUAGE=C
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 58export LANGUAGE
50 as_echo='printf %s\n' 59
51 as_echo_n='printf %s' 60# We cannot yet rely on "unset" to work, but we need these variables
52else 61# to be unset--not just set to an empty or harmless value--now, to
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 62# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 63# also avoids known problems related to "unset" and subshell syntax
55 as_echo_n='/usr/ucb/echo -n' 64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
56 else 65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 66do eval test \${$as_var+y} \
58 as_echo_n_body='eval 67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
59 arg=$1; 68done
60 case $arg in #( 69
61 *"$as_nl"*) 70# Ensure that fds 0, 1, and 2 are open.
62 expr "X$arg" : "X\\(.*\\)$as_nl"; 71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
64 esac; 73if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73 74
74# The user is always right. 75# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then 76if ${PATH_SEPARATOR+false} :; then
76 PATH_SEPARATOR=: 77 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';' 80 PATH_SEPARATOR=';'
80 } 81 }
81fi 82fi
82 83
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90 84
91# Find who we are. Look in the path if we contain no directory separator. 85# Find who we are. Look in the path if we contain no directory separator.
92as_myself= 86as_myself=
93case $0 in #(( 87case $0 in #((
94 *[\\/]* ) as_myself=$0 ;; 88 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH 90for as_dir in $PATH
97do 91do
98 IFS=$as_save_IFS 92 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=. 93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done 99 done
102IFS=$as_save_IFS 100IFS=$as_save_IFS
103 101
104 ;; 102 ;;
105esac 103esac
107# in which case we are not to be found in the path. 105# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then 106if test "x$as_myself" = x; then
109 as_myself=$0 107 as_myself=$0
110fi 108fi
111if test ! -f "$as_myself"; then 109if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1 111 exit 1
114fi 112fi
115 113
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127 114
128# NLS nuisances. 115# Use a proper internal environment variable to ensure we don't fall
129LC_ALL=C 116 # into an infinite loop, continuously re-executing ourselves.
130export LC_ALL 117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
131LANGUAGE=C 118 _as_can_reexec=no; export _as_can_reexec;
132export LANGUAGE 119 # We cannot yet assume a decent shell, so we have to provide a
133 120# neutralization value for shells without unset; and this also
134# CDPATH. 121# works around shells that cannot unset nonexistent variables.
122# Preserve -v and -x to the replacement shell.
123BASH_ENV=/dev/null
124ENV=/dev/null
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 125(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
136 126case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131esac
132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133# Admittedly, this is quite paranoid, since all the known shells bail
134# out after a failed `exec'.
135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
137if test "x$CONFIG_SHELL" = x; then 140if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 as_bourne_compatible="as_nop=:
142if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143then :
139 emulate sh 144 emulate sh
140 NULLCMD=: 145 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature. 147 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"' 148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST 149 setopt NO_GLOB_SUBST
145else 150else \$as_nop
146 case \`(set -o) 2>/dev/null\` in #( 151 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) : 152 *posix*) :
148 set -o posix ;; #( 153 set -o posix ;; #(
149 *) : 154 *) :
150 ;; 155 ;;
160exitcode=0 165exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; } 166as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 170if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171then :
166 172
167else 173else \$as_nop
168 exitcode=1; echo positional parameters were not saved. 174 exitcode=1; echo positional parameters were not saved.
169fi 175fi
170test x\$exitcode = x0 || exit 1" 176test x\$exitcode = x0 || exit 1
177blah=\$(echo \$(echo blah))
178test x\"\$blah\" = xblah || exit 1
179test -x / || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1" 184test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then : 185 if (eval "$as_required") 2>/dev/null
186then :
177 as_have_required=yes 187 as_have_required=yes
178else 188else $as_nop
179 as_have_required=no 189 as_have_required=no
180fi 190fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192then :
182 193
183else 194else $as_nop
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185as_found=false 196as_found=false
186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187do 198do
188 IFS=$as_save_IFS 199 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=. 200 case $as_dir in #(((
201 '') as_dir=./ ;;
202 */) ;;
203 *) as_dir=$as_dir/ ;;
204 esac
190 as_found=: 205 as_found=:
191 case $as_dir in #( 206 case $as_dir in #(
192 /*) 207 /*)
193 for as_base in sh bash ksh sh5; do 208 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks. 209 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base 210 as_shell=$as_dir$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213then :
198 CONFIG_SHELL=$as_shell as_have_required=yes 214 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216then :
200 break 2 217 break 2
201fi 218fi
202fi 219fi
203 done;; 220 done;;
204 esac 221 esac
205 as_found=false 222 as_found=false
206done 223done
224IFS=$as_save_IFS
225if $as_found
226then :
227
228else $as_nop
207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231then :
209 CONFIG_SHELL=$SHELL as_have_required=yes 232 CONFIG_SHELL=$SHELL as_have_required=yes
210fi; } 233fi
211IFS=$as_save_IFS 234fi
212 235
213 236
214 if test "x$CONFIG_SHELL" != x; then : 237 if test "x$CONFIG_SHELL" != x
238then :
239 export CONFIG_SHELL
215 # We cannot yet assume a decent shell, so we have to provide a 240 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also 241# neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables. 242# works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell. 243# Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null 244BASH_ENV=/dev/null
220 ENV=/dev/null 245ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # (((( 247case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;; 248 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;; 249 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;; 250 *x* ) as_opts=-x ;;
227 * ) as_opts= ;; 251 * ) as_opts= ;;
228 esac 252esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 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'.
256printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
230fi 258fi
231 259
232 if test x$as_have_required = xno; then : 260 if test x$as_have_required = xno
261then :
233 $as_echo "$0: This script requires a shell more modern than all" 262 printf "%s\n" "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system." 263 printf "%s\n" "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then 264 if test ${ZSH_VERSION+y} ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
238 else 267 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
240$0: including any error possibly output before this 269$0: including any error possibly output before this
241$0: message. Then install a modern shell, or manually run 270$0: message. Then install a modern shell, or manually run
242$0: the script under such a shell if you do have one." 271$0: the script under such a shell if you do have one."
243 fi 272 fi
244 exit 1 273 exit 1
261{ 290{
262 { eval $1=; unset $1;} 291 { eval $1=; unset $1;}
263} 292}
264as_unset=as_fn_unset 293as_unset=as_fn_unset
265 294
295
266# as_fn_set_status STATUS 296# as_fn_set_status STATUS
267# ----------------------- 297# -----------------------
268# Set $? to STATUS, without forking. 298# Set $? to STATUS, without forking.
269as_fn_set_status () 299as_fn_set_status ()
270{ 300{
278{ 308{
279 set +e 309 set +e
280 as_fn_set_status $1 310 as_fn_set_status $1
281 exit $1 311 exit $1
282} # as_fn_exit 312} # as_fn_exit
313# as_fn_nop
314# ---------
315# Do nothing but, unlike ":", preserve the value of $?.
316as_fn_nop ()
317{
318 return $?
319}
320as_nop=as_fn_nop
283 321
284# as_fn_mkdir_p 322# as_fn_mkdir_p
285# ------------- 323# -------------
286# Create "$as_dir" as a directory, including parents if necessary. 324# Create "$as_dir" as a directory, including parents if necessary.
287as_fn_mkdir_p () 325as_fn_mkdir_p ()
292 esac 330 esac
293 test -d "$as_dir" || eval $as_mkdir_p || { 331 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs= 332 as_dirs=
295 while :; do 333 while :; do
296 case $as_dir in #( 334 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;; 336 *) as_qdir=$as_dir;;
299 esac 337 esac
300 as_dirs="'$as_qdir' $as_dirs" 338 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" || 339 as_dir=`$as_dirname -- "$as_dir" ||
302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306$as_echo X"$as_dir" | 344printf "%s\n" X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/ 346 s//\1/
309 q 347 q
310 } 348 }
311 /^X\(\/\/\)[^/].*/{ 349 /^X\(\/\/\)[^/].*/{
326 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328 366
329 367
330} # as_fn_mkdir_p 368} # as_fn_mkdir_p
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375 test -f "$1" && test -x "$1"
376} # as_fn_executable_p
331# as_fn_append VAR VALUE 377# as_fn_append VAR VALUE
332# ---------------------- 378# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take 379# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over 380# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive 381# repeated appends, instead of the typical quadratic growth present in naive
336# implementations. 382# implementations.
337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384then :
338 eval 'as_fn_append () 385 eval 'as_fn_append ()
339 { 386 {
340 eval $1+=\$2 387 eval $1+=\$2
341 }' 388 }'
342else 389else $as_nop
343 as_fn_append () 390 as_fn_append ()
344 { 391 {
345 eval $1=\$$1\$2 392 eval $1=\$$1\$2
346 } 393 }
347fi # as_fn_append 394fi # as_fn_append
349# as_fn_arith ARG... 396# as_fn_arith ARG...
350# ------------------ 397# ------------------
351# Perform arithmetic evaluation on the ARGs, and store the result in the 398# Perform arithmetic evaluation on the ARGs, and store the result in the
352# global $as_val. Take advantage of shells that can avoid forks. The arguments 399# global $as_val. Take advantage of shells that can avoid forks. The arguments
353# must be portable across $(()) and expr. 400# must be portable across $(()) and expr.
354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402then :
355 eval 'as_fn_arith () 403 eval 'as_fn_arith ()
356 { 404 {
357 as_val=$(( $* )) 405 as_val=$(( $* ))
358 }' 406 }'
359else 407else $as_nop
360 as_fn_arith () 408 as_fn_arith ()
361 { 409 {
362 as_val=`expr "$@" || test $? -eq 1` 410 as_val=`expr "$@" || test $? -eq 1`
363 } 411 }
364fi # as_fn_arith 412fi # as_fn_arith
365 413
414# as_fn_nop
415# ---------
416# Do nothing but, unlike ":", preserve the value of $?.
417as_fn_nop ()
418{
419 return $?
420}
421as_nop=as_fn_nop
366 422
367# as_fn_error STATUS ERROR [LINENO LOG_FD] 423# as_fn_error STATUS ERROR [LINENO LOG_FD]
368# ---------------------------------------- 424# ----------------------------------------
369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 425# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 426# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372as_fn_error () 428as_fn_error ()
373{ 429{
374 as_status=$1; test $as_status -eq 0 && as_status=1 430 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then 431 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi 434 fi
379 $as_echo "$as_me: error: $2" >&2 435 printf "%s\n" "$as_me: error: $2" >&2
380 as_fn_exit $as_status 436 as_fn_exit $as_status
381} # as_fn_error 437} # as_fn_error
382 438
383if expr a : '\(a\)' >/dev/null 2>&1 && 439if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then 440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 457
402as_me=`$as_basename -- "$0" || 458as_me=`$as_basename -- "$0" ||
403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \ 460 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null || 461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406$as_echo X/"$0" | 462printf "%s\n" X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{ 463 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/ 464 s//\1/
409 q 465 q
410 } 466 }
411 /^X\/\(\/\/\)$/{ 467 /^X\/\(\/\/\)$/{
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop 502 t loop
447 s/-\n.*// 503 s/-\n.*//
448 ' >$as_me.lineno && 504 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" || 505 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451 507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
452 # Don't try to exec as it changes $[0], causing all sort of problems 512 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the 513 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this). 514 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno" 515 . "./$as_me.lineno"
456 # Exit status is that of the last command. 516 # Exit status is that of the last command.
457 exit 517 exit
458} 518}
459 519
520
521# Determine whether it's possible to make 'echo' print without a newline.
522# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523# for compatibility with existing Makefiles.
460ECHO_C= ECHO_N= ECHO_T= 524ECHO_C= ECHO_N= ECHO_T=
461case `echo -n x` in #((((( 525case `echo -n x` in #(((((
462-n*) 526-n*)
463 case `echo 'xy\c'` in 527 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 esac;; 532 esac;;
469*) 533*)
470 ECHO_N='-n';; 534 ECHO_N='-n';;
471esac 535esac
472 536
537# For backward compatibility with old third-party macros, we provide
538# the shell variables $as_echo and $as_echo_n. New code should use
539# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540as_echo='printf %s\n'
541as_echo_n='printf %s'
542
543
473rm -f conf$$ conf$$.exe conf$$.file 544rm -f conf$$ conf$$.exe conf$$.file
474if test -d conf$$.dir; then 545if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file 546 rm -f conf$$.dir/conf$$.file
476else 547else
477 rm -f conf$$.dir 548 rm -f conf$$.dir
481 if ln -s conf$$.file conf$$ 2>/dev/null; then 552 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s' 553 as_ln_s='ln -s'
483 # ... but there are two gotchas: 554 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'. 557 # In both cases, we have to default to `cp -pR'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p' 559 as_ln_s='cp -pR'
489 elif ln conf$$.file conf$$ 2>/dev/null; then 560 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln 561 as_ln_s=ln
491 else 562 else
492 as_ln_s='cp -p' 563 as_ln_s='cp -pR'
493 fi 564 fi
494else 565else
495 as_ln_s='cp -p' 566 as_ln_s='cp -pR'
496fi 567fi
497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 568rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498rmdir conf$$.dir 2>/dev/null 569rmdir conf$$.dir 2>/dev/null
499 570
500if mkdir -p . 2>/dev/null; then 571if mkdir -p . 2>/dev/null; then
502else 573else
503 test -d ./-p && rmdir ./-p 574 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false 575 as_mkdir_p=false
505fi 576fi
506 577
507if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x' 578as_test_x='test -x'
509else 579as_executable_p=as_fn_executable_p
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527fi
528as_executable_p=$as_test_x
529 580
530# Sed expression to map a string onto a valid CPP name. 581# Sed expression to map a string onto a valid CPP name.
531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 582as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 583
533# Sed expression to map a string onto a valid variable name. 584# Sed expression to map a string onto a valid variable name.
553subdirs= 604subdirs=
554MFLAGS= 605MFLAGS=
555MAKEFLAGS= 606MAKEFLAGS=
556 607
557# Identity of this package. 608# Identity of this package.
558PACKAGE_NAME= 609PACKAGE_NAME=''
559PACKAGE_TARNAME= 610PACKAGE_TARNAME=''
560PACKAGE_VERSION= 611PACKAGE_VERSION=''
561PACKAGE_STRING= 612PACKAGE_STRING=''
562PACKAGE_BUGREPORT= 613PACKAGE_BUGREPORT=''
563PACKAGE_URL= 614PACKAGE_URL=''
564 615
565ac_unique_file="src/feature.h" 616ac_unique_file="src/feature.h"
566# Factoring default headers for most tests. 617# Factoring default headers for most tests.
567ac_includes_default="\ 618ac_includes_default="\
619#include <stddef.h>
620#ifdef HAVE_STDIO_H
568#include <stdio.h> 621# include <stdio.h>
569#ifdef HAVE_SYS_TYPES_H
570# include <sys/types.h>
571#endif 622#endif
572#ifdef HAVE_SYS_STAT_H 623#ifdef HAVE_STDLIB_H
573# include <sys/stat.h>
574#endif
575#ifdef STDC_HEADERS
576# include <stdlib.h> 624# include <stdlib.h>
577# include <stddef.h>
578#else
579# ifdef HAVE_STDLIB_H
580# include <stdlib.h>
581# endif
582#endif 625#endif
583#ifdef HAVE_STRING_H 626#ifdef HAVE_STRING_H
584# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585# include <memory.h>
586# endif
587# include <string.h> 627# include <string.h>
588#endif
589#ifdef HAVE_STRINGS_H
590# include <strings.h>
591#endif 628#endif
592#ifdef HAVE_INTTYPES_H 629#ifdef HAVE_INTTYPES_H
593# include <inttypes.h> 630# include <inttypes.h>
594#endif 631#endif
595#ifdef HAVE_STDINT_H 632#ifdef HAVE_STDINT_H
596# include <stdint.h> 633# include <stdint.h>
597#endif 634#endif
635#ifdef HAVE_STRINGS_H
636# include <strings.h>
637#endif
638#ifdef HAVE_SYS_TYPES_H
639# include <sys/types.h>
640#endif
641#ifdef HAVE_SYS_STAT_H
642# include <sys/stat.h>
643#endif
598#ifdef HAVE_UNISTD_H 644#ifdef HAVE_UNISTD_H
599# include <unistd.h> 645# include <unistd.h>
600#endif" 646#endif"
601 647
648ac_header_c_list=
602ac_subst_vars='LTLIBOBJS 649ac_subst_vars='LTLIBOBJS
603LIBOBJS 650LIBOBJS
604PERL_O 651PERL_O
605IF_PERL 652IF_PERL
606PERLPRIVLIBEXP 653PERLPRIVLIBEXP
607PERLFLAGS 654PERLFLAGS
608PERLLIB 655PERLLIB
609PERL 656PERL
610XFT_CONFIG 657XFT_CONFIG
611AFTERIMAGE_LIBS 658EGREP
612AFTERIMAGE_CFLAGS 659GREP
613afterimage_config
614STARTUP_NOTIFICATION_LIBS 660STARTUP_NOTIFICATION_LIBS
615STARTUP_NOTIFICATION_CFLAGS 661STARTUP_NOTIFICATION_CFLAGS
616PIXBUF_LIBS 662PIXBUF_LIBS
617PIXBUF_CFLAGS 663PIXBUF_CFLAGS
618PKG_CONFIG 664PKG_CONFIG
619X_EXTRA_LIBS 665X_EXTRA_LIBS
620X_LIBS 666X_LIBS
621X_PRE_LIBS 667X_PRE_LIBS
622X_CFLAGS 668X_CFLAGS
669CXXCPP
623XMKMF 670XMKMF
624TIC 671TIC
625CXXCPP
626RXVTNAME 672RXVTNAME
627LINKER 673LINKER
628EGREP
629GREP
630INSTALL_DATA 674INSTALL_DATA
631INSTALL_SCRIPT 675INSTALL_SCRIPT
632INSTALL_PROGRAM 676INSTALL_PROGRAM
633CPP
634ac_ct_CXX 677ac_ct_CXX
635CXXFLAGS 678CXXFLAGS
636CXX 679CXX
637OBJEXT 680OBJEXT
638EXEEXT 681EXEEXT
668htmldir 711htmldir
669infodir 712infodir
670docdir 713docdir
671oldincludedir 714oldincludedir
672includedir 715includedir
716runstatedir
673localstatedir 717localstatedir
674sharedstatedir 718sharedstatedir
675sysconfdir 719sysconfdir
676datadir 720datadir
677datarootdir 721datarootdir
698enable_256_color 742enable_256_color
699enable_unicode3 743enable_unicode3
700enable_combining 744enable_combining
701enable_xft 745enable_xft
702enable_font_styles 746enable_font_styles
703enable_afterimage
704with_afterimage_config
705enable_pixbuf 747enable_pixbuf
706enable_startup_notification 748enable_startup_notification
707enable_transparency 749enable_transparency
708enable_fading 750enable_fading
709enable_rxvt_scroll 751enable_rxvt_scroll
746LIBS 788LIBS
747CPPFLAGS 789CPPFLAGS
748CXX 790CXX
749CXXFLAGS 791CXXFLAGS
750CCC 792CCC
751CPP 793XMKMF
752CXXCPP 794CXXCPP'
753XMKMF'
754 795
755 796
756# Initialize some variables set by options. 797# Initialize some variables set by options.
757ac_init_help= 798ac_init_help=
758ac_init_version=false 799ac_init_version=false
787datarootdir='${prefix}/share' 828datarootdir='${prefix}/share'
788datadir='${datarootdir}' 829datadir='${datarootdir}'
789sysconfdir='${prefix}/etc' 830sysconfdir='${prefix}/etc'
790sharedstatedir='${prefix}/com' 831sharedstatedir='${prefix}/com'
791localstatedir='${prefix}/var' 832localstatedir='${prefix}/var'
833runstatedir='${localstatedir}/run'
792includedir='${prefix}/include' 834includedir='${prefix}/include'
793oldincludedir='/usr/include' 835oldincludedir='/usr/include'
794docdir='${datarootdir}/doc/${PACKAGE}' 836docdir='${datarootdir}/doc/${PACKAGE}'
795infodir='${datarootdir}/info' 837infodir='${datarootdir}/info'
796htmldir='${docdir}' 838htmldir='${docdir}'
816 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 858 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 *=) ac_optarg= ;; 859 *=) ac_optarg= ;;
818 *) ac_optarg=yes ;; 860 *) ac_optarg=yes ;;
819 esac 861 esac
820 862
821 # Accept the important Cygnus configure options, so we can diagnose typos.
822
823 case $ac_dashdash$ac_option in 863 case $ac_dashdash$ac_option in
824 --) 864 --)
825 ac_dashdash=yes ;; 865 ac_dashdash=yes ;;
826 866
827 -bindir | --bindir | --bindi | --bind | --bin | --bi) 867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 898
859 -disable-* | --disable-*) 899 -disable-* | --disable-*)
860 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names. 901 # Reject names that are not valid shell variable names.
862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863 as_fn_error $? "invalid feature name: $ac_useropt" 903 as_fn_error $? "invalid feature name: \`$ac_useropt'"
864 ac_useropt_orig=$ac_useropt 904 ac_useropt_orig=$ac_useropt
865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 905 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in 906 case $ac_user_opts in
867 *" 907 *"
868"enable_$ac_useropt" 908"enable_$ac_useropt"
869"*) ;; 909"*) ;;
870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
884 924
885 -enable-* | --enable-*) 925 -enable-* | --enable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
887 # Reject names that are not valid shell variable names. 927 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error $? "invalid feature name: $ac_useropt" 929 as_fn_error $? "invalid feature name: \`$ac_useropt'"
890 ac_useropt_orig=$ac_useropt 930 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 931 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in 932 case $ac_user_opts in
893 *" 933 *"
894"enable_$ac_useropt" 934"enable_$ac_useropt"
895"*) ;; 935"*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1039 1079
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil) 1081 | -silent | --silent | --silen | --sile | --sil)
1042 silent=yes ;; 1082 silent=yes ;;
1043 1083
1084 -runstatedir | --runstatedir | --runstatedi | --runstated \
1085 | --runstate | --runstat | --runsta | --runst | --runs \
1086 | --run | --ru | --r)
1087 ac_prev=runstatedir ;;
1088 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1089 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1090 | --run=* | --ru=* | --r=*)
1091 runstatedir=$ac_optarg ;;
1092
1044 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1045 ac_prev=sbindir ;; 1094 ac_prev=sbindir ;;
1046 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1047 | --sbi=* | --sb=*) 1096 | --sbi=* | --sb=*)
1048 sbindir=$ac_optarg ;; 1097 sbindir=$ac_optarg ;;
1088 1137
1089 -with-* | --with-*) 1138 -with-* | --with-*)
1090 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1091 # Reject names that are not valid shell variable names. 1140 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093 as_fn_error $? "invalid package name: $ac_useropt" 1142 as_fn_error $? "invalid package name: \`$ac_useropt'"
1094 ac_useropt_orig=$ac_useropt 1143 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1144 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in 1145 case $ac_user_opts in
1097 *" 1146 *"
1098"with_$ac_useropt" 1147"with_$ac_useropt"
1099"*) ;; 1148"*) ;;
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104 1153
1105 -without-* | --without-*) 1154 -without-* | --without-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107 # Reject names that are not valid shell variable names. 1156 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid package name: $ac_useropt" 1158 as_fn_error $? "invalid package name: \`$ac_useropt'"
1110 ac_useropt_orig=$ac_useropt 1159 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1160 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in 1161 case $ac_user_opts in
1113 *" 1162 *"
1114"with_$ac_useropt" 1163"with_$ac_useropt"
1115"*) ;; 1164"*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 eval $ac_envvar=\$ac_optarg 1199 eval $ac_envvar=\$ac_optarg
1151 export $ac_envvar ;; 1200 export $ac_envvar ;;
1152 1201
1153 *) 1202 *)
1154 # FIXME: should be removed in autoconf 3.0. 1203 # FIXME: should be removed in autoconf 3.0.
1155 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1204 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1206 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1158 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1159 ;; 1208 ;;
1160 1209
1161 esac 1210 esac
1162done 1211done
1168 1217
1169if test -n "$ac_unrecognized_opts"; then 1218if test -n "$ac_unrecognized_opts"; then
1170 case $enable_option_checking in 1219 case $enable_option_checking in
1171 no) ;; 1220 no) ;;
1172 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1173 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1222 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174 esac 1223 esac
1175fi 1224fi
1176 1225
1177# Check all directory arguments for consistency. 1226# Check all directory arguments for consistency.
1178for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1227for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179 datadir sysconfdir sharedstatedir localstatedir includedir \ 1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181 libdir localedir mandir 1230 libdir localedir mandir runstatedir
1182do 1231do
1183 eval ac_val=\$$ac_var 1232 eval ac_val=\$$ac_var
1184 # Remove trailing slashes. 1233 # Remove trailing slashes.
1185 case $ac_val in 1234 case $ac_val in
1186 */ ) 1235 */ )
1204 1253
1205# FIXME: To remove some day. 1254# FIXME: To remove some day.
1206if test "x$host_alias" != x; then 1255if test "x$host_alias" != x; then
1207 if test "x$build_alias" = x; then 1256 if test "x$build_alias" = x; then
1208 cross_compiling=maybe 1257 cross_compiling=maybe
1209 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1210 If a cross compiler is detected then cross compile mode will be used" >&2
1211 elif test "x$build_alias" != "x$host_alias"; then 1258 elif test "x$build_alias" != "x$host_alias"; then
1212 cross_compiling=yes 1259 cross_compiling=yes
1213 fi 1260 fi
1214fi 1261fi
1215 1262
1234 ac_confdir=`$as_dirname -- "$as_myself" || 1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1235$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236 X"$as_myself" : 'X\(//\)[^/]' \| \ 1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1237 X"$as_myself" : 'X\(//\)$' \| \ 1284 X"$as_myself" : 'X\(//\)$' \| \
1238 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1239$as_echo X"$as_myself" | 1286printf "%s\n" X"$as_myself" |
1240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241 s//\1/ 1288 s//\1/
1242 q 1289 q
1243 } 1290 }
1244 /^X\(\/\/\)[^/].*/{ 1291 /^X\(\/\/\)[^/].*/{
1331 --sbindir=DIR system admin executables [EPREFIX/sbin] 1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1332 --libexecdir=DIR program executables [EPREFIX/libexec] 1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1333 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1334 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1335 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1336 --libdir=DIR object code libraries [EPREFIX/lib] 1384 --libdir=DIR object code libraries [EPREFIX/lib]
1337 --includedir=DIR C header files [PREFIX/include] 1385 --includedir=DIR C header files [PREFIX/include]
1338 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1339 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1340 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --enable-256-color enable 256-color support 1423 --enable-256-color enable 256-color support
1376 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1424 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1377 --enable-combining enable composition of base and combining characters 1425 --enable-combining enable composition of base and combining characters
1378 --enable-xft enable xft support on systems that have it 1426 --enable-xft enable xft support on systems that have it
1379 --enable-font-styles enable bold and italic support 1427 --enable-font-styles enable bold and italic support
1380 --enable-afterimage enable integration with libAfterImage for background images
1381 --enable-pixbuf enable integration with gdk-pixbuf for background images 1428 --enable-pixbuf enable integration with gdk-pixbuf for background images
1382 --enable-startup-notification enable freedesktop startup notification support 1429 --enable-startup-notification enable freedesktop startup notification support
1383 --enable-transparency enable transparent backgrounds 1430 --enable-transparency enable transparent backgrounds
1384 --enable-fading enable colors fading when off focus 1431 --enable-fading enable colors fading when off focus
1385 --enable-rxvt-scroll enable rxvt style scrollbar 1432 --enable-rxvt-scroll enable rxvt style scrollbar
1407 --enable-lastlog enable lastlog support (requires --enable-utmp) 1454 --enable-lastlog enable lastlog support (requires --enable-utmp)
1408 1455
1409Optional Packages: 1456Optional Packages:
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1412 --with-afterimage-config=DIR use libAfterImage config script in DIR
1413 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1459 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1414 --with-res-name=NAME use this as default resource name (default: urxvt) 1460 --with-res-name=NAME use this as default resource name (default: urxvt)
1415 --with-res-class=CLASS use this as the resource class (default: URxvt) 1461 --with-res-class=CLASS use this as the resource class (default: URxvt)
1416 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1462 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1417 --with-term=NAME set the terminal to NAME (default: rxvt) 1463 --with-term=NAME set the terminal to NAME (default: rxvt)
1426 LIBS libraries to pass to the linker, e.g. -l<library> 1472 LIBS libraries to pass to the linker, e.g. -l<library>
1427 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1473 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1428 you have headers in a nonstandard directory <include dir> 1474 you have headers in a nonstandard directory <include dir>
1429 CXX C++ compiler command 1475 CXX C++ compiler command
1430 CXXFLAGS C++ compiler flags 1476 CXXFLAGS C++ compiler flags
1431 CPP C preprocessor 1477 XMKMF Path to xmkmf, Makefile generator for X Window System
1432 CXXCPP C++ preprocessor 1478 CXXCPP C++ preprocessor
1433 XMKMF Path to xmkmf, Makefile generator for X Window System
1434 1479
1435Use these variables to override the choices made by `configure' or to help 1480Use these variables to override the choices made by `configure' or to help
1436it to find libraries and programs with nonstandard names/locations. 1481it to find libraries and programs with nonstandard names/locations.
1437 1482
1438Report bugs to the package provider. 1483Report bugs to the package provider.
1449 ac_builddir=. 1494 ac_builddir=.
1450 1495
1451case "$ac_dir" in 1496case "$ac_dir" in
1452.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1497.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453*) 1498*)
1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1499 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1455 # A ".." for each directory in $ac_dir_suffix. 1500 # A ".." for each directory in $ac_dir_suffix.
1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1501 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457 case $ac_top_builddir_sub in 1502 case $ac_top_builddir_sub in
1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460 esac ;; 1505 esac ;;
1461esac 1506esac
1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480esac 1525esac
1481ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1526ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482 1527
1483 cd "$ac_dir" || { ac_status=$?; continue; } 1528 cd "$ac_dir" || { ac_status=$?; continue; }
1484 # Check for guested configure. 1529 # Check for configure.gnu first; this name is used for a wrapper for
1530 # Metaconfig's "Configure" on case-insensitive file systems.
1485 if test -f "$ac_srcdir/configure.gnu"; then 1531 if test -f "$ac_srcdir/configure.gnu"; then
1486 echo && 1532 echo &&
1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488 elif test -f "$ac_srcdir/configure"; then 1534 elif test -f "$ac_srcdir/configure"; then
1489 echo && 1535 echo &&
1490 $SHELL "$ac_srcdir/configure" --help=recursive 1536 $SHELL "$ac_srcdir/configure" --help=recursive
1491 else 1537 else
1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1538 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493 fi || ac_status=$? 1539 fi || ac_status=$?
1494 cd "$ac_pwd" || { ac_status=$?; break; } 1540 cd "$ac_pwd" || { ac_status=$?; break; }
1495 done 1541 done
1496fi 1542fi
1497 1543
1498test -n "$ac_init_help" && exit $ac_status 1544test -n "$ac_init_help" && exit $ac_status
1499if $ac_init_version; then 1545if $ac_init_version; then
1500 cat <<\_ACEOF 1546 cat <<\_ACEOF
1501configure 1547configure
1502generated by GNU Autoconf 2.68 1548generated by GNU Autoconf 2.71
1503 1549
1504Copyright (C) 2010 Free Software Foundation, Inc. 1550Copyright (C) 2021 Free Software Foundation, Inc.
1505This configure script is free software; the Free Software Foundation 1551This configure script is free software; the Free Software Foundation
1506gives unlimited permission to copy, distribute and modify it. 1552gives unlimited permission to copy, distribute and modify it.
1507_ACEOF 1553_ACEOF
1508 exit 1554 exit
1509fi 1555fi
1516# -------------------------- 1562# --------------------------
1517# Try to compile conftest.$ac_ext, and return whether this succeeded. 1563# Try to compile conftest.$ac_ext, and return whether this succeeded.
1518ac_fn_c_try_compile () 1564ac_fn_c_try_compile ()
1519{ 1565{
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext 1567 rm -f conftest.$ac_objext conftest.beam
1522 if { { ac_try="$ac_compile" 1568 if { { ac_try="$ac_compile"
1523case "(($ac_try" in 1569case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;; 1571 *) ac_try_echo=$ac_try;;
1526esac 1572esac
1527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528$as_echo "$ac_try_echo"; } >&5 1574printf "%s\n" "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err 1575 (eval "$ac_compile") 2>conftest.err
1530 ac_status=$? 1576 ac_status=$?
1531 if test -s conftest.err; then 1577 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1 1578 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5 1579 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err 1580 mv -f conftest.er1 conftest.err
1535 fi 1581 fi
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && { 1583 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" || 1584 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err 1585 test ! -s conftest.err
1540 } && test -s conftest.$ac_objext; then : 1586 } && test -s conftest.$ac_objext
1587then :
1541 ac_retval=0 1588 ac_retval=0
1542else 1589else $as_nop
1543 $as_echo "$as_me: failed program was:" >&5 1590 printf "%s\n" "$as_me: failed program was:" >&5
1544sed 's/^/| /' conftest.$ac_ext >&5 1591sed 's/^/| /' conftest.$ac_ext >&5
1545 1592
1546 ac_retval=1 1593 ac_retval=1
1547fi 1594fi
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1554# ---------------------------- 1601# ----------------------------
1555# Try to compile conftest.$ac_ext, and return whether this succeeded. 1602# Try to compile conftest.$ac_ext, and return whether this succeeded.
1556ac_fn_cxx_try_compile () 1603ac_fn_cxx_try_compile ()
1557{ 1604{
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext 1606 rm -f conftest.$ac_objext conftest.beam
1560 if { { ac_try="$ac_compile" 1607 if { { ac_try="$ac_compile"
1561case "(($ac_try" in 1608case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;; 1610 *) ac_try_echo=$ac_try;;
1564esac 1611esac
1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566$as_echo "$ac_try_echo"; } >&5 1613printf "%s\n" "$ac_try_echo"; } >&5
1567 (eval "$ac_compile") 2>conftest.err 1614 (eval "$ac_compile") 2>conftest.err
1568 ac_status=$? 1615 ac_status=$?
1569 if test -s conftest.err; then 1616 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1 1617 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5 1618 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err 1619 mv -f conftest.er1 conftest.err
1573 fi 1620 fi
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && { 1622 test $ac_status = 0; } && {
1576 test -z "$ac_cxx_werror_flag" || 1623 test -z "$ac_cxx_werror_flag" ||
1577 test ! -s conftest.err 1624 test ! -s conftest.err
1578 } && test -s conftest.$ac_objext; then : 1625 } && test -s conftest.$ac_objext
1626then :
1579 ac_retval=0 1627 ac_retval=0
1580else 1628else $as_nop
1581 $as_echo "$as_me: failed program was:" >&5 1629 printf "%s\n" "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5 1630sed 's/^/| /' conftest.$ac_ext >&5
1583 1631
1584 ac_retval=1 1632 ac_retval=1
1585fi 1633fi
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval 1635 as_fn_set_status $ac_retval
1588 1636
1589} # ac_fn_cxx_try_compile 1637} # ac_fn_cxx_try_compile
1590 1638
1591# ac_fn_c_try_cpp LINENO 1639# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1592# ---------------------- 1640# -------------------------------------------------------
1593# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1641# Tests whether HEADER exists and can be compiled using the include files in
1594ac_fn_c_try_cpp () 1642# INCLUDES, setting the cache variable VAR accordingly.
1643ac_fn_c_check_header_compile ()
1595{ 1644{
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if { { ac_try="$ac_cpp conftest.$ac_ext"
1598case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } > conftest.i && {
1613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 }; then :
1616 ac_retval=0
1617else
1618 $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622fi
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626} # ac_fn_c_try_cpp
1627
1628# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1629# -------------------------------------------------------
1630# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1631# the include files in INCLUDES and setting the cache variable VAR
1632# accordingly.
1633ac_fn_c_check_header_mongrel ()
1634{
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if eval \${$3+:} false; then :
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638$as_echo_n "checking for $2... " >&6; } 1647printf %s "checking for $2... " >&6; }
1639if eval \${$3+:} false; then : 1648if eval test \${$3+y}
1640 $as_echo_n "(cached) " >&6 1649then :
1641fi 1650 printf %s "(cached) " >&6
1642eval ac_res=\$$3 1651else $as_nop
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; }
1645else
1646 # Is the header compilable?
1647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1648$as_echo_n "checking $2 usability... " >&6; }
1649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650/* end confdefs.h. */ 1653/* end confdefs.h. */
1651$4 1654$4
1652#include <$2> 1655#include <$2>
1653_ACEOF 1656_ACEOF
1654if ac_fn_c_try_compile "$LINENO"; then : 1657if ac_fn_c_try_compile "$LINENO"
1655 ac_header_compiler=yes 1658then :
1656else 1659 eval "$3=yes"
1657 ac_header_compiler=no 1660else $as_nop
1661 eval "$3=no"
1658fi 1662fi
1659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1661$as_echo "$ac_header_compiler" >&6; }
1662
1663# Is the header present?
1664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1665$as_echo_n "checking $2 presence... " >&6; }
1666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667/* end confdefs.h. */
1668#include <$2>
1669_ACEOF
1670if ac_fn_c_try_cpp "$LINENO"; then :
1671 ac_header_preproc=yes
1672else
1673 ac_header_preproc=no
1674fi
1675rm -f conftest.err conftest.i conftest.$ac_ext
1676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1677$as_echo "$ac_header_preproc" >&6; }
1678
1679# So? What about this header?
1680case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1681 yes:no: )
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1683$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686 ;;
1687 no:yes:* )
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1689$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1691$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1693$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1695$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1697$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1698 ;;
1699esac
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701$as_echo_n "checking for $2... " >&6; }
1702if eval \${$3+:} false; then :
1703 $as_echo_n "(cached) " >&6
1704else
1705 eval "$3=\$ac_header_compiler"
1706fi 1664fi
1707eval ac_res=\$$3 1665eval ac_res=\$$3
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709$as_echo "$ac_res" >&6; } 1667printf "%s\n" "$ac_res" >&6; }
1710fi
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 1669
1713} # ac_fn_c_check_header_mongrel 1670} # ac_fn_c_check_header_compile
1714 1671
1715# ac_fn_c_try_run LINENO 1672# ac_fn_cxx_try_link LINENO
1716# ---------------------- 1673# -------------------------
1717# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1674# Try to link conftest.$ac_ext, and return whether this succeeded.
1718# that executables *can* be run.
1719ac_fn_c_try_run () 1675ac_fn_cxx_try_link ()
1720{ 1676{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1722 if { { ac_try="$ac_link" 1679 if { { ac_try="$ac_link"
1723case "(($ac_try" in 1680case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;; 1682 *) ac_try_echo=$ac_try;;
1726esac 1683esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5 1685printf "%s\n" "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>&5
1730 ac_status=$?
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1733 { { case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_try") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; }; }; then :
1743 ac_retval=0
1744else
1745 $as_echo "$as_me: program exited with status $ac_status" >&5
1746 $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=$ac_status
1750fi
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1754
1755} # ac_fn_c_try_run
1756
1757# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1758# -------------------------------------------------------
1759# Tests whether HEADER exists and can be compiled using the include files in
1760# INCLUDES, setting the cache variable VAR accordingly.
1761ac_fn_c_check_header_compile ()
1762{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765$as_echo_n "checking for $2... " >&6; }
1766if eval \${$3+:} false; then :
1767 $as_echo_n "(cached) " >&6
1768else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h. */
1771$4
1772#include <$2>
1773_ACEOF
1774if ac_fn_c_try_compile "$LINENO"; then :
1775 eval "$3=yes"
1776else
1777 eval "$3=no"
1778fi
1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780fi
1781eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783$as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786} # ac_fn_c_check_header_compile
1787
1788# ac_fn_c_try_link LINENO
1789# -----------------------
1790# Try to link conftest.$ac_ext, and return whether this succeeded.
1791ac_fn_c_try_link ()
1792{
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext conftest$ac_exeext
1795 if { { ac_try="$ac_link"
1796case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>conftest.err 1686 (eval "$ac_link") 2>conftest.err
1803 ac_status=$? 1687 ac_status=$?
1804 if test -s conftest.err; then 1688 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1 1689 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5 1690 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err 1691 mv -f conftest.er1 conftest.err
1808 fi 1692 fi
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && { 1694 test $ac_status = 0; } && {
1811 test -z "$ac_c_werror_flag" || 1695 test -z "$ac_cxx_werror_flag" ||
1812 test ! -s conftest.err 1696 test ! -s conftest.err
1813 } && test -s conftest$ac_exeext && { 1697 } && test -s conftest$ac_exeext && {
1814 test "$cross_compiling" = yes || 1698 test "$cross_compiling" = yes ||
1815 $as_test_x conftest$ac_exeext 1699 test -x conftest$ac_exeext
1816 }; then : 1700 }
1701then :
1817 ac_retval=0 1702 ac_retval=0
1818else 1703else $as_nop
1819 $as_echo "$as_me: failed program was:" >&5 1704 printf "%s\n" "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5 1705sed 's/^/| /' conftest.$ac_ext >&5
1821 1706
1822 ac_retval=1 1707 ac_retval=1
1823fi 1708fi
1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1709 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827 # left behind by Apple's compiler. We do this before executing the actions. 1712 # left behind by Apple's compiler. We do this before executing the actions.
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval 1715 as_fn_set_status $ac_retval
1831 1716
1832} # ac_fn_c_try_link 1717} # ac_fn_cxx_try_link
1833 1718
1834# ac_fn_cxx_try_link LINENO 1719# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1835# ------------------------- 1720# ---------------------------------------------------------
1836# Try to link conftest.$ac_ext, and return whether this succeeded. 1721# Tests whether HEADER exists and can be compiled using the include files in
1837ac_fn_cxx_try_link () 1722# INCLUDES, setting the cache variable VAR accordingly.
1723ac_fn_cxx_check_header_compile ()
1838{ 1724{
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1842case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845esac
1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847$as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1854 fi
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_cxx_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 $as_test_x conftest$ac_exeext
1862 }; then :
1863 ac_retval=0
1864else
1865 $as_echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869fi
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1877
1878} # ac_fn_cxx_try_link
1879
1880# ac_fn_cxx_try_cpp LINENO
1881# ------------------------
1882# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883ac_fn_cxx_try_cpp ()
1884{
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_cpp conftest.$ac_ext"
1887case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } > conftest.i && {
1902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1903 test ! -s conftest.err
1904 }; then :
1905 ac_retval=0
1906else
1907 $as_echo "$as_me: failed program was:" >&5
1908sed 's/^/| /' conftest.$ac_ext >&5
1909
1910 ac_retval=1
1911fi
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1914
1915} # ac_fn_cxx_try_cpp
1916
1917# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1918# ---------------------------------------------------------
1919# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1920# the include files in INCLUDES and setting the cache variable VAR
1921# accordingly.
1922ac_fn_cxx_check_header_mongrel ()
1923{
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if eval \${$3+:} false; then :
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927$as_echo_n "checking for $2... " >&6; } 1727printf %s "checking for $2... " >&6; }
1928if eval \${$3+:} false; then : 1728if eval test \${$3+y}
1929 $as_echo_n "(cached) " >&6 1729then :
1930fi 1730 printf %s "(cached) " >&6
1931eval ac_res=\$$3 1731else $as_nop
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
1934else
1935 # Is the header compilable?
1936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1937$as_echo_n "checking $2 usability... " >&6; }
1938cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939/* end confdefs.h. */ 1733/* end confdefs.h. */
1940$4 1734$4
1941#include <$2> 1735#include <$2>
1942_ACEOF 1736_ACEOF
1943if ac_fn_cxx_try_compile "$LINENO"; then : 1737if ac_fn_cxx_try_compile "$LINENO"
1944 ac_header_compiler=yes 1738then :
1945else 1739 eval "$3=yes"
1946 ac_header_compiler=no 1740else $as_nop
1741 eval "$3=no"
1947fi 1742fi
1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1950$as_echo "$ac_header_compiler" >&6; }
1951
1952# Is the header present?
1953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1954$as_echo_n "checking $2 presence... " >&6; }
1955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956/* end confdefs.h. */
1957#include <$2>
1958_ACEOF
1959if ac_fn_cxx_try_cpp "$LINENO"; then :
1960 ac_header_preproc=yes
1961else
1962 ac_header_preproc=no
1963fi
1964rm -f conftest.err conftest.i conftest.$ac_ext
1965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1966$as_echo "$ac_header_preproc" >&6; }
1967
1968# So? What about this header?
1969case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1970 yes:no: )
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1972$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 ;;
1976 no:yes:* )
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1978$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1980$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1982$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1984$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1986$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 ;;
1988esac
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990$as_echo_n "checking for $2... " >&6; }
1991if eval \${$3+:} false; then :
1992 $as_echo_n "(cached) " >&6
1993else
1994 eval "$3=\$ac_header_compiler"
1995fi 1744fi
1996eval ac_res=\$$3 1745eval ac_res=\$$3
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998$as_echo "$ac_res" >&6; } 1747printf "%s\n" "$ac_res" >&6; }
1999fi
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001 1749
2002} # ac_fn_cxx_check_header_mongrel 1750} # ac_fn_cxx_check_header_compile
2003 1751
2004# ac_fn_cxx_check_func LINENO FUNC VAR 1752# ac_fn_cxx_check_func LINENO FUNC VAR
2005# ------------------------------------ 1753# ------------------------------------
2006# Tests whether FUNC exists, setting the cache variable VAR accordingly 1754# Tests whether FUNC exists, setting the cache variable VAR accordingly
2007ac_fn_cxx_check_func () 1755ac_fn_cxx_check_func ()
2008{ 1756{
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011$as_echo_n "checking for $2... " >&6; } 1759printf %s "checking for $2... " >&6; }
2012if eval \${$3+:} false; then : 1760if eval test \${$3+y}
2013 $as_echo_n "(cached) " >&6 1761then :
2014else 1762 printf %s "(cached) " >&6
1763else $as_nop
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */ 1765/* end confdefs.h. */
2017/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1766/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2018 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2019#define $2 innocuous_$2 1768#define $2 innocuous_$2
2020 1769
2021/* System header to define __stub macros and hopefully few prototypes, 1770/* System header to define __stub macros and hopefully few prototypes,
2022 which can conflict with char $2 (); below. 1771 which can conflict with char $2 (); below. */
2023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2024 <limits.h> exists even on freestanding compilers. */
2025 1772
2026#ifdef __STDC__
2027# include <limits.h> 1773#include <limits.h>
2028#else
2029# include <assert.h>
2030#endif
2031
2032#undef $2 1774#undef $2
2033 1775
2034/* Override any GCC internal prototype to avoid an error. 1776/* Override any GCC internal prototype to avoid an error.
2035 Use char because int might match the return type of a GCC 1777 Use char because int might match the return type of a GCC
2036 builtin and then its argument prototype would still apply. */ 1778 builtin and then its argument prototype would still apply. */
2044#if defined __stub_$2 || defined __stub___$2 1786#if defined __stub_$2 || defined __stub___$2
2045choke me 1787choke me
2046#endif 1788#endif
2047 1789
2048int 1790int
2049main () 1791main (void)
2050{ 1792{
2051return $2 (); 1793return $2 ();
2052 ; 1794 ;
2053 return 0; 1795 return 0;
2054} 1796}
2055_ACEOF 1797_ACEOF
2056if ac_fn_cxx_try_link "$LINENO"; then : 1798if ac_fn_cxx_try_link "$LINENO"
1799then :
2057 eval "$3=yes" 1800 eval "$3=yes"
2058else 1801else $as_nop
2059 eval "$3=no" 1802 eval "$3=no"
2060fi 1803fi
2061rm -f core conftest.err conftest.$ac_objext \ 1804rm -f core conftest.err conftest.$ac_objext conftest.beam \
2062 conftest$ac_exeext conftest.$ac_ext 1805 conftest$ac_exeext conftest.$ac_ext
2063fi 1806fi
2064eval ac_res=\$$3 1807eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066$as_echo "$ac_res" >&6; } 1809printf "%s\n" "$ac_res" >&6; }
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068 1811
2069} # ac_fn_cxx_check_func 1812} # ac_fn_cxx_check_func
2070 1813
2071# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 1814# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2073# Tests whether TYPE exists after having included INCLUDES, setting cache 1816# Tests whether TYPE exists after having included INCLUDES, setting cache
2074# variable VAR accordingly. 1817# variable VAR accordingly.
2075ac_fn_cxx_check_type () 1818ac_fn_cxx_check_type ()
2076{ 1819{
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079$as_echo_n "checking for $2... " >&6; } 1822printf %s "checking for $2... " >&6; }
2080if eval \${$3+:} false; then : 1823if eval test \${$3+y}
2081 $as_echo_n "(cached) " >&6 1824then :
2082else 1825 printf %s "(cached) " >&6
1826else $as_nop
2083 eval "$3=no" 1827 eval "$3=no"
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h. */ 1829/* end confdefs.h. */
2086$4 1830$4
2087int 1831int
2088main () 1832main (void)
2089{ 1833{
2090if (sizeof ($2)) 1834if (sizeof ($2))
2091 return 0; 1835 return 0;
2092 ; 1836 ;
2093 return 0; 1837 return 0;
2094} 1838}
2095_ACEOF 1839_ACEOF
2096if ac_fn_cxx_try_compile "$LINENO"; then : 1840if ac_fn_cxx_try_compile "$LINENO"
1841then :
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098/* end confdefs.h. */ 1843/* end confdefs.h. */
2099$4 1844$4
2100int 1845int
2101main () 1846main (void)
2102{ 1847{
2103if (sizeof (($2))) 1848if (sizeof (($2)))
2104 return 0; 1849 return 0;
2105 ; 1850 ;
2106 return 0; 1851 return 0;
2107} 1852}
2108_ACEOF 1853_ACEOF
2109if ac_fn_cxx_try_compile "$LINENO"; then : 1854if ac_fn_cxx_try_compile "$LINENO"
1855then :
2110 1856
2111else 1857else $as_nop
2112 eval "$3=yes" 1858 eval "$3=yes"
2113fi 1859fi
2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2115fi 1861fi
2116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2117fi 1863fi
2118eval ac_res=\$$3 1864eval ac_res=\$$3
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120$as_echo "$ac_res" >&6; } 1866printf "%s\n" "$ac_res" >&6; }
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122 1868
2123} # ac_fn_cxx_check_type 1869} # ac_fn_cxx_check_type
1870
1871# ac_fn_cxx_try_cpp LINENO
1872# ------------------------
1873# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874ac_fn_cxx_try_cpp ()
1875{
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 if { { ac_try="$ac_cpp conftest.$ac_ext"
1878case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881esac
1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883printf "%s\n" "$ac_try_echo"; } >&5
1884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1890 fi
1891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } > conftest.i && {
1893 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1894 test ! -s conftest.err
1895 }
1896then :
1897 ac_retval=0
1898else $as_nop
1899 printf "%s\n" "$as_me: failed program was:" >&5
1900sed 's/^/| /' conftest.$ac_ext >&5
1901
1902 ac_retval=1
1903fi
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1906
1907} # ac_fn_cxx_try_cpp
2124 1908
2125# ac_fn_c_find_intX_t LINENO BITS VAR 1909# ac_fn_c_find_intX_t LINENO BITS VAR
2126# ----------------------------------- 1910# -----------------------------------
2127# Finds a signed integer type with width BITS, setting cache variable VAR 1911# Finds a signed integer type with width BITS, setting cache variable VAR
2128# accordingly. 1912# accordingly.
2129ac_fn_c_find_intX_t () 1913ac_fn_c_find_intX_t ()
2130{ 1914{
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 1916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2133$as_echo_n "checking for int$2_t... " >&6; } 1917printf %s "checking for int$2_t... " >&6; }
2134if eval \${$3+:} false; then : 1918if eval test \${$3+y}
2135 $as_echo_n "(cached) " >&6 1919then :
2136else 1920 printf %s "(cached) " >&6
1921else $as_nop
2137 eval "$3=no" 1922 eval "$3=no"
2138 # Order is important - never check a type that is potentially smaller 1923 # Order is important - never check a type that is potentially smaller
2139 # than half of the expected target width. 1924 # than half of the expected target width.
2140 for ac_type in int$2_t 'int' 'long int' \ 1925 for ac_type in int$2_t 'int' 'long int' \
2141 'long long int' 'short int' 'signed char'; do 1926 'long long int' 'short int' 'signed char'; do
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143/* end confdefs.h. */ 1928/* end confdefs.h. */
2144$ac_includes_default 1929$ac_includes_default
2145 enum { N = $2 / 2 - 1 }; 1930 enum { N = $2 / 2 - 1 };
2146int 1931int
2147main () 1932main (void)
2148{ 1933{
2149static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 1934static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2150test_array [0] = 0 1935test_array [0] = 0;
1936return test_array [0];
2151 1937
2152 ; 1938 ;
2153 return 0; 1939 return 0;
2154} 1940}
2155_ACEOF 1941_ACEOF
2156if ac_fn_cxx_try_compile "$LINENO"; then : 1942if ac_fn_cxx_try_compile "$LINENO"
1943then :
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158/* end confdefs.h. */ 1945/* end confdefs.h. */
2159$ac_includes_default 1946$ac_includes_default
2160 enum { N = $2 / 2 - 1 }; 1947 enum { N = $2 / 2 - 1 };
2161int 1948int
2162main () 1949main (void)
2163{ 1950{
2164static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 1951static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2165 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 1952 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2166test_array [0] = 0 1953test_array [0] = 0;
1954return test_array [0];
2167 1955
2168 ; 1956 ;
2169 return 0; 1957 return 0;
2170} 1958}
2171_ACEOF 1959_ACEOF
2172if ac_fn_cxx_try_compile "$LINENO"; then : 1960if ac_fn_cxx_try_compile "$LINENO"
1961then :
2173 1962
2174else 1963else $as_nop
2175 case $ac_type in #( 1964 case $ac_type in #(
2176 int$2_t) : 1965 int$2_t) :
2177 eval "$3=yes" ;; #( 1966 eval "$3=yes" ;; #(
2178 *) : 1967 *) :
2179 eval "$3=\$ac_type" ;; 1968 eval "$3=\$ac_type" ;;
2180esac 1969esac
2181fi 1970fi
2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2183fi 1972fi
2184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2185 if eval test \"x\$"$3"\" = x"no"; then : 1974 if eval test \"x\$"$3"\" = x"no"
1975then :
2186 1976
2187else 1977else $as_nop
2188 break 1978 break
2189fi 1979fi
2190 done 1980 done
2191fi 1981fi
2192eval ac_res=\$$3 1982eval ac_res=\$$3
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194$as_echo "$ac_res" >&6; } 1984printf "%s\n" "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2196 1986
2197} # ac_fn_c_find_intX_t 1987} # ac_fn_c_find_intX_t
2198 1988
2199# ac_fn_c_find_uintX_t LINENO BITS VAR 1989# ac_fn_c_find_uintX_t LINENO BITS VAR
2201# Finds an unsigned integer type with width BITS, setting cache variable VAR 1991# Finds an unsigned integer type with width BITS, setting cache variable VAR
2202# accordingly. 1992# accordingly.
2203ac_fn_c_find_uintX_t () 1993ac_fn_c_find_uintX_t ()
2204{ 1994{
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2207$as_echo_n "checking for uint$2_t... " >&6; } 1997printf %s "checking for uint$2_t... " >&6; }
2208if eval \${$3+:} false; then : 1998if eval test \${$3+y}
2209 $as_echo_n "(cached) " >&6 1999then :
2210else 2000 printf %s "(cached) " >&6
2001else $as_nop
2211 eval "$3=no" 2002 eval "$3=no"
2212 # Order is important - never check a type that is potentially smaller 2003 # Order is important - never check a type that is potentially smaller
2213 # than half of the expected target width. 2004 # than half of the expected target width.
2214 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2005 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2215 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2006 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217/* end confdefs.h. */ 2008/* end confdefs.h. */
2218$ac_includes_default 2009$ac_includes_default
2219int 2010int
2220main () 2011main (void)
2221{ 2012{
2222static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2013static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2223test_array [0] = 0 2014test_array [0] = 0;
2015return test_array [0];
2224 2016
2225 ; 2017 ;
2226 return 0; 2018 return 0;
2227} 2019}
2228_ACEOF 2020_ACEOF
2229if ac_fn_cxx_try_compile "$LINENO"; then : 2021if ac_fn_cxx_try_compile "$LINENO"
2022then :
2230 case $ac_type in #( 2023 case $ac_type in #(
2231 uint$2_t) : 2024 uint$2_t) :
2232 eval "$3=yes" ;; #( 2025 eval "$3=yes" ;; #(
2233 *) : 2026 *) :
2234 eval "$3=\$ac_type" ;; 2027 eval "$3=\$ac_type" ;;
2235esac 2028esac
2236fi 2029fi
2237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2238 if eval test \"x\$"$3"\" = x"no"; then : 2031 if eval test \"x\$"$3"\" = x"no"
2032then :
2239 2033
2240else 2034else $as_nop
2241 break 2035 break
2242fi 2036fi
2243 done 2037 done
2244fi 2038fi
2245eval ac_res=\$$3 2039eval ac_res=\$$3
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247$as_echo "$ac_res" >&6; } 2041printf "%s\n" "$ac_res" >&6; }
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 2043
2250} # ac_fn_c_find_uintX_t 2044} # ac_fn_c_find_uintX_t
2045
2046# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
2047# ------------------------------------------------------
2048# Tries to find if the field MEMBER exists in type AGGR, after including
2049# INCLUDES, setting cache variable VAR accordingly.
2050ac_fn_cxx_check_member ()
2051{
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2054printf %s "checking for $2.$3... " >&6; }
2055if eval test \${$4+y}
2056then :
2057 printf %s "(cached) " >&6
2058else $as_nop
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060/* end confdefs.h. */
2061$5
2062int
2063main (void)
2064{
2065static $2 ac_aggr;
2066if (ac_aggr.$3)
2067return 0;
2068 ;
2069 return 0;
2070}
2071_ACEOF
2072if ac_fn_cxx_try_compile "$LINENO"
2073then :
2074 eval "$4=yes"
2075else $as_nop
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h. */
2078$5
2079int
2080main (void)
2081{
2082static $2 ac_aggr;
2083if (sizeof ac_aggr.$3)
2084return 0;
2085 ;
2086 return 0;
2087}
2088_ACEOF
2089if ac_fn_cxx_try_compile "$LINENO"
2090then :
2091 eval "$4=yes"
2092else $as_nop
2093 eval "$4=no"
2094fi
2095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2096fi
2097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2098fi
2099eval ac_res=\$$4
2100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101printf "%s\n" "$ac_res" >&6; }
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103
2104} # ac_fn_cxx_check_member
2251 2105
2252# ac_fn_cxx_try_run LINENO 2106# ac_fn_cxx_try_run LINENO
2253# ------------------------ 2107# ------------------------
2254# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2108# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2255# that executables *can* be run. 2109# executables *can* be run.
2256ac_fn_cxx_try_run () 2110ac_fn_cxx_try_run ()
2257{ 2111{
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 if { { ac_try="$ac_link" 2113 if { { ac_try="$ac_link"
2260case "(($ac_try" in 2114case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;; 2116 *) ac_try_echo=$ac_try;;
2263esac 2117esac
2264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265$as_echo "$ac_try_echo"; } >&5 2119printf "%s\n" "$ac_try_echo"; } >&5
2266 (eval "$ac_link") 2>&5 2120 (eval "$ac_link") 2>&5
2267 ac_status=$? 2121 ac_status=$?
2268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2123 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2270 { { case "(($ac_try" in 2124 { { case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;; 2126 *) ac_try_echo=$ac_try;;
2273esac 2127esac
2274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2275$as_echo "$ac_try_echo"; } >&5 2129printf "%s\n" "$ac_try_echo"; } >&5
2276 (eval "$ac_try") 2>&5 2130 (eval "$ac_try") 2>&5
2277 ac_status=$? 2131 ac_status=$?
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; }; }; then : 2133 test $ac_status = 0; }; }
2134then :
2280 ac_retval=0 2135 ac_retval=0
2281else 2136else $as_nop
2282 $as_echo "$as_me: program exited with status $ac_status" >&5 2137 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2283 $as_echo "$as_me: failed program was:" >&5 2138 printf "%s\n" "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5 2139sed 's/^/| /' conftest.$ac_ext >&5
2285 2140
2286 ac_retval=$ac_status 2141 ac_retval=$ac_status
2287fi 2142fi
2288 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2143 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290 as_fn_set_status $ac_retval 2145 as_fn_set_status $ac_retval
2291 2146
2292} # ac_fn_cxx_try_run 2147} # ac_fn_cxx_try_run
2148ac_configure_args_raw=
2149for ac_arg
2150do
2151 case $ac_arg in
2152 *\'*)
2153 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2154 esac
2155 as_fn_append ac_configure_args_raw " '$ac_arg'"
2156done
2157
2158case $ac_configure_args_raw in
2159 *$as_nl*)
2160 ac_safe_unquote= ;;
2161 *)
2162 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2163 ac_unsafe_a="$ac_unsafe_z#~"
2164 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2165 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2166esac
2167
2293cat >config.log <<_ACEOF 2168cat >config.log <<_ACEOF
2294This file contains any messages produced by compilers while 2169This file contains any messages produced by compilers while
2295running configure, to aid debugging if configure makes a mistake. 2170running configure, to aid debugging if configure makes a mistake.
2296 2171
2297It was created by $as_me, which was 2172It was created by $as_me, which was
2298generated by GNU Autoconf 2.68. Invocation command line was 2173generated by GNU Autoconf 2.71. Invocation command line was
2299 2174
2300 $ $0 $@ 2175 $ $0$ac_configure_args_raw
2301 2176
2302_ACEOF 2177_ACEOF
2303exec 5>>config.log 2178exec 5>>config.log
2304{ 2179{
2305cat <<_ASUNAME 2180cat <<_ASUNAME
2328 2203
2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330for as_dir in $PATH 2205for as_dir in $PATH
2331do 2206do
2332 IFS=$as_save_IFS 2207 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=. 2208 case $as_dir in #(((
2334 $as_echo "PATH: $as_dir" 2209 '') as_dir=./ ;;
2210 */) ;;
2211 *) as_dir=$as_dir/ ;;
2212 esac
2213 printf "%s\n" "PATH: $as_dir"
2335 done 2214 done
2336IFS=$as_save_IFS 2215IFS=$as_save_IFS
2337 2216
2338} >&5 2217} >&5
2339 2218
2364 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2243 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2366 | -silent | --silent | --silen | --sile | --sil) 2245 | -silent | --silent | --silen | --sile | --sil)
2367 continue ;; 2246 continue ;;
2368 *\'*) 2247 *\'*)
2369 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2248 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2370 esac 2249 esac
2371 case $ac_pass in 2250 case $ac_pass in
2372 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2251 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2373 2) 2252 2)
2374 as_fn_append ac_configure_args1 " '$ac_arg'" 2253 as_fn_append ac_configure_args1 " '$ac_arg'"
2399# config.log. We remove comments because anyway the quotes in there 2278# config.log. We remove comments because anyway the quotes in there
2400# would cause problems or look ugly. 2279# would cause problems or look ugly.
2401# WARNING: Use '\'' to represent an apostrophe within the trap. 2280# WARNING: Use '\'' to represent an apostrophe within the trap.
2402# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2281# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2403trap 'exit_status=$? 2282trap 'exit_status=$?
2283 # Sanitize IFS.
2284 IFS=" "" $as_nl"
2404 # Save into config.log some information that might help in debugging. 2285 # Save into config.log some information that might help in debugging.
2405 { 2286 {
2406 echo 2287 echo
2407 2288
2408 $as_echo "## ---------------- ## 2289 printf "%s\n" "## ---------------- ##
2409## Cache variables. ## 2290## Cache variables. ##
2410## ---------------- ##" 2291## ---------------- ##"
2411 echo 2292 echo
2412 # The following way of writing the cache mishandles newlines in values, 2293 # The following way of writing the cache mishandles newlines in values,
2413( 2294(
2414 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2295 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2415 eval ac_val=\$$ac_var 2296 eval ac_val=\$$ac_var
2416 case $ac_val in #( 2297 case $ac_val in #(
2417 *${as_nl}*) 2298 *${as_nl}*)
2418 case $ac_var in #( 2299 case $ac_var in #(
2419 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2300 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2420$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2301printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2421 esac 2302 esac
2422 case $ac_var in #( 2303 case $ac_var in #(
2423 _ | IFS | as_nl) ;; #( 2304 _ | IFS | as_nl) ;; #(
2424 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2305 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2425 *) { eval $ac_var=; unset $ac_var;} ;; 2306 *) { eval $ac_var=; unset $ac_var;} ;;
2439 esac | 2320 esac |
2440 sort 2321 sort
2441) 2322)
2442 echo 2323 echo
2443 2324
2444 $as_echo "## ----------------- ## 2325 printf "%s\n" "## ----------------- ##
2445## Output variables. ## 2326## Output variables. ##
2446## ----------------- ##" 2327## ----------------- ##"
2447 echo 2328 echo
2448 for ac_var in $ac_subst_vars 2329 for ac_var in $ac_subst_vars
2449 do 2330 do
2450 eval ac_val=\$$ac_var 2331 eval ac_val=\$$ac_var
2451 case $ac_val in 2332 case $ac_val in
2452 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2333 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2453 esac 2334 esac
2454 $as_echo "$ac_var='\''$ac_val'\''" 2335 printf "%s\n" "$ac_var='\''$ac_val'\''"
2455 done | sort 2336 done | sort
2456 echo 2337 echo
2457 2338
2458 if test -n "$ac_subst_files"; then 2339 if test -n "$ac_subst_files"; then
2459 $as_echo "## ------------------- ## 2340 printf "%s\n" "## ------------------- ##
2460## File substitutions. ## 2341## File substitutions. ##
2461## ------------------- ##" 2342## ------------------- ##"
2462 echo 2343 echo
2463 for ac_var in $ac_subst_files 2344 for ac_var in $ac_subst_files
2464 do 2345 do
2465 eval ac_val=\$$ac_var 2346 eval ac_val=\$$ac_var
2466 case $ac_val in 2347 case $ac_val in
2467 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2348 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2468 esac 2349 esac
2469 $as_echo "$ac_var='\''$ac_val'\''" 2350 printf "%s\n" "$ac_var='\''$ac_val'\''"
2470 done | sort 2351 done | sort
2471 echo 2352 echo
2472 fi 2353 fi
2473 2354
2474 if test -s confdefs.h; then 2355 if test -s confdefs.h; then
2475 $as_echo "## ----------- ## 2356 printf "%s\n" "## ----------- ##
2476## confdefs.h. ## 2357## confdefs.h. ##
2477## ----------- ##" 2358## ----------- ##"
2478 echo 2359 echo
2479 cat confdefs.h 2360 cat confdefs.h
2480 echo 2361 echo
2481 fi 2362 fi
2482 test "$ac_signal" != 0 && 2363 test "$ac_signal" != 0 &&
2483 $as_echo "$as_me: caught signal $ac_signal" 2364 printf "%s\n" "$as_me: caught signal $ac_signal"
2484 $as_echo "$as_me: exit $exit_status" 2365 printf "%s\n" "$as_me: exit $exit_status"
2485 } >&5 2366 } >&5
2486 rm -f core *.core core.conftest.* && 2367 rm -f core *.core core.conftest.* &&
2487 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2368 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2488 exit $exit_status 2369 exit $exit_status
2489' 0 2370' 0
2493ac_signal=0 2374ac_signal=0
2494 2375
2495# confdefs.h avoids OS command line length limits that DEFS can exceed. 2376# confdefs.h avoids OS command line length limits that DEFS can exceed.
2496rm -f -r conftest* confdefs.h 2377rm -f -r conftest* confdefs.h
2497 2378
2498$as_echo "/* confdefs.h */" > confdefs.h 2379printf "%s\n" "/* confdefs.h */" > confdefs.h
2499 2380
2500# Predefined preprocessor variables. 2381# Predefined preprocessor variables.
2501 2382
2502cat >>confdefs.h <<_ACEOF 2383printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2503#define PACKAGE_NAME "$PACKAGE_NAME"
2504_ACEOF
2505 2384
2506cat >>confdefs.h <<_ACEOF 2385printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2507#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2508_ACEOF
2509 2386
2510cat >>confdefs.h <<_ACEOF 2387printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2511#define PACKAGE_VERSION "$PACKAGE_VERSION"
2512_ACEOF
2513 2388
2514cat >>confdefs.h <<_ACEOF 2389printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2515#define PACKAGE_STRING "$PACKAGE_STRING"
2516_ACEOF
2517 2390
2518cat >>confdefs.h <<_ACEOF 2391printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2519#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2520_ACEOF
2521 2392
2522cat >>confdefs.h <<_ACEOF 2393printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2523#define PACKAGE_URL "$PACKAGE_URL"
2524_ACEOF
2525 2394
2526 2395
2527# Let the site file select an alternate cache file if it wants to. 2396# Let the site file select an alternate cache file if it wants to.
2528# Prefer an explicitly selected file to automatically selected ones. 2397# Prefer an explicitly selected file to automatically selected ones.
2529ac_site_file1=NONE
2530ac_site_file2=NONE
2531if test -n "$CONFIG_SITE"; then 2398if test -n "$CONFIG_SITE"; then
2532 # We do not want a PATH search for config.site.
2533 case $CONFIG_SITE in #((
2534 -*) ac_site_file1=./$CONFIG_SITE;;
2535 */*) ac_site_file1=$CONFIG_SITE;; 2399 ac_site_files="$CONFIG_SITE"
2536 *) ac_site_file1=./$CONFIG_SITE;;
2537 esac
2538elif test "x$prefix" != xNONE; then 2400elif test "x$prefix" != xNONE; then
2539 ac_site_file1=$prefix/share/config.site 2401 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2540 ac_site_file2=$prefix/etc/config.site
2541else 2402else
2542 ac_site_file1=$ac_default_prefix/share/config.site 2403 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2543 ac_site_file2=$ac_default_prefix/etc/config.site
2544fi 2404fi
2405
2545for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2406for ac_site_file in $ac_site_files
2546do 2407do
2547 test "x$ac_site_file" = xNONE && continue 2408 case $ac_site_file in #(
2409 */*) :
2410 ;; #(
2411 *) :
2412 ac_site_file=./$ac_site_file ;;
2413esac
2548 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2414 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2550$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2416printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2551 sed 's/^/| /' "$ac_site_file" >&5 2417 sed 's/^/| /' "$ac_site_file" >&5
2552 . "$ac_site_file" \ 2418 . "$ac_site_file" \
2553 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2419 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2420printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2555as_fn_error $? "failed to load site script $ac_site_file 2421as_fn_error $? "failed to load site script $ac_site_file
2556See \`config.log' for more details" "$LINENO" 5; } 2422See \`config.log' for more details" "$LINENO" 5; }
2557 fi 2423 fi
2558done 2424done
2559 2425
2560if test -r "$cache_file"; then 2426if test -r "$cache_file"; then
2561 # Some versions of bash will fail to source /dev/null (special files 2427 # Some versions of bash will fail to source /dev/null (special files
2562 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2428 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2563 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2429 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2565$as_echo "$as_me: loading cache $cache_file" >&6;} 2431printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2566 case $cache_file in 2432 case $cache_file in
2567 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2433 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2568 *) . "./$cache_file";; 2434 *) . "./$cache_file";;
2569 esac 2435 esac
2570 fi 2436 fi
2571else 2437else
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2573$as_echo "$as_me: creating cache $cache_file" >&6;} 2439printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2574 >$cache_file 2440 >$cache_file
2441fi
2442
2443# Test code for whether the C compiler supports C89 (global declarations)
2444ac_c_conftest_c89_globals='
2445/* Does the compiler advertise C89 conformance?
2446 Do not test the value of __STDC__, because some compilers set it to 0
2447 while being otherwise adequately conformant. */
2448#if !defined __STDC__
2449# error "Compiler does not advertise C89 conformance"
2450#endif
2451
2452#include <stddef.h>
2453#include <stdarg.h>
2454struct stat;
2455/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2456struct buf { int x; };
2457struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2458static char *e (p, i)
2459 char **p;
2460 int i;
2461{
2462 return p[i];
2463}
2464static char *f (char * (*g) (char **, int), char **p, ...)
2465{
2466 char *s;
2467 va_list v;
2468 va_start (v,p);
2469 s = g (p, va_arg (v,int));
2470 va_end (v);
2471 return s;
2472}
2473
2474/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2475 function prototypes and stuff, but not \xHH hex character constants.
2476 These do not provoke an error unfortunately, instead are silently treated
2477 as an "x". The following induces an error, until -std is added to get
2478 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2479 array size at least. It is necessary to write \x00 == 0 to get something
2480 that is true only with -std. */
2481int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2482
2483/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2484 inside strings and character constants. */
2485#define FOO(x) '\''x'\''
2486int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2487
2488int test (int i, double x);
2489struct s1 {int (*f) (int a);};
2490struct s2 {int (*f) (double a);};
2491int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2492 int, int);'
2493
2494# Test code for whether the C compiler supports C89 (body of main).
2495ac_c_conftest_c89_main='
2496ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2497'
2498
2499# Test code for whether the C compiler supports C99 (global declarations)
2500ac_c_conftest_c99_globals='
2501// Does the compiler advertise C99 conformance?
2502#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2503# error "Compiler does not advertise C99 conformance"
2504#endif
2505
2506#include <stdbool.h>
2507extern int puts (const char *);
2508extern int printf (const char *, ...);
2509extern int dprintf (int, const char *, ...);
2510extern void *malloc (size_t);
2511
2512// Check varargs macros. These examples are taken from C99 6.10.3.5.
2513// dprintf is used instead of fprintf to avoid needing to declare
2514// FILE and stderr.
2515#define debug(...) dprintf (2, __VA_ARGS__)
2516#define showlist(...) puts (#__VA_ARGS__)
2517#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2518static void
2519test_varargs_macros (void)
2520{
2521 int x = 1234;
2522 int y = 5678;
2523 debug ("Flag");
2524 debug ("X = %d\n", x);
2525 showlist (The first, second, and third items.);
2526 report (x>y, "x is %d but y is %d", x, y);
2527}
2528
2529// Check long long types.
2530#define BIG64 18446744073709551615ull
2531#define BIG32 4294967295ul
2532#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2533#if !BIG_OK
2534 #error "your preprocessor is broken"
2535#endif
2536#if BIG_OK
2537#else
2538 #error "your preprocessor is broken"
2539#endif
2540static long long int bignum = -9223372036854775807LL;
2541static unsigned long long int ubignum = BIG64;
2542
2543struct incomplete_array
2544{
2545 int datasize;
2546 double data[];
2547};
2548
2549struct named_init {
2550 int number;
2551 const wchar_t *name;
2552 double average;
2553};
2554
2555typedef const char *ccp;
2556
2557static inline int
2558test_restrict (ccp restrict text)
2559{
2560 // See if C++-style comments work.
2561 // Iterate through items via the restricted pointer.
2562 // Also check for declarations in for loops.
2563 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2564 continue;
2565 return 0;
2566}
2567
2568// Check varargs and va_copy.
2569static bool
2570test_varargs (const char *format, ...)
2571{
2572 va_list args;
2573 va_start (args, format);
2574 va_list args_copy;
2575 va_copy (args_copy, args);
2576
2577 const char *str = "";
2578 int number = 0;
2579 float fnumber = 0;
2580
2581 while (*format)
2582 {
2583 switch (*format++)
2584 {
2585 case '\''s'\'': // string
2586 str = va_arg (args_copy, const char *);
2587 break;
2588 case '\''d'\'': // int
2589 number = va_arg (args_copy, int);
2590 break;
2591 case '\''f'\'': // float
2592 fnumber = va_arg (args_copy, double);
2593 break;
2594 default:
2595 break;
2596 }
2597 }
2598 va_end (args_copy);
2599 va_end (args);
2600
2601 return *str && number && fnumber;
2602}
2603'
2604
2605# Test code for whether the C compiler supports C99 (body of main).
2606ac_c_conftest_c99_main='
2607 // Check bool.
2608 _Bool success = false;
2609 success |= (argc != 0);
2610
2611 // Check restrict.
2612 if (test_restrict ("String literal") == 0)
2613 success = true;
2614 char *restrict newvar = "Another string";
2615
2616 // Check varargs.
2617 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2618 test_varargs_macros ();
2619
2620 // Check flexible array members.
2621 struct incomplete_array *ia =
2622 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2623 ia->datasize = 10;
2624 for (int i = 0; i < ia->datasize; ++i)
2625 ia->data[i] = i * 1.234;
2626
2627 // Check named initializers.
2628 struct named_init ni = {
2629 .number = 34,
2630 .name = L"Test wide string",
2631 .average = 543.34343,
2632 };
2633
2634 ni.number = 58;
2635
2636 int dynamic_array[ni.number];
2637 dynamic_array[0] = argv[0][0];
2638 dynamic_array[ni.number - 1] = 543;
2639
2640 // work around unused variable warnings
2641 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2642 || dynamic_array[ni.number - 1] != 543);
2643'
2644
2645# Test code for whether the C compiler supports C11 (global declarations)
2646ac_c_conftest_c11_globals='
2647// Does the compiler advertise C11 conformance?
2648#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2649# error "Compiler does not advertise C11 conformance"
2650#endif
2651
2652// Check _Alignas.
2653char _Alignas (double) aligned_as_double;
2654char _Alignas (0) no_special_alignment;
2655extern char aligned_as_int;
2656char _Alignas (0) _Alignas (int) aligned_as_int;
2657
2658// Check _Alignof.
2659enum
2660{
2661 int_alignment = _Alignof (int),
2662 int_array_alignment = _Alignof (int[100]),
2663 char_alignment = _Alignof (char)
2664};
2665_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2666
2667// Check _Noreturn.
2668int _Noreturn does_not_return (void) { for (;;) continue; }
2669
2670// Check _Static_assert.
2671struct test_static_assert
2672{
2673 int x;
2674 _Static_assert (sizeof (int) <= sizeof (long int),
2675 "_Static_assert does not work in struct");
2676 long int y;
2677};
2678
2679// Check UTF-8 literals.
2680#define u8 syntax error!
2681char const utf8_literal[] = u8"happens to be ASCII" "another string";
2682
2683// Check duplicate typedefs.
2684typedef long *long_ptr;
2685typedef long int *long_ptr;
2686typedef long_ptr long_ptr;
2687
2688// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2689struct anonymous
2690{
2691 union {
2692 struct { int i; int j; };
2693 struct { int k; long int l; } w;
2694 };
2695 int m;
2696} v1;
2697'
2698
2699# Test code for whether the C compiler supports C11 (body of main).
2700ac_c_conftest_c11_main='
2701 _Static_assert ((offsetof (struct anonymous, i)
2702 == offsetof (struct anonymous, w.k)),
2703 "Anonymous union alignment botch");
2704 v1.i = 2;
2705 v1.w.k = 5;
2706 ok |= v1.i != 5;
2707'
2708
2709# Test code for whether the C compiler supports C11 (complete).
2710ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2711${ac_c_conftest_c99_globals}
2712${ac_c_conftest_c11_globals}
2713
2714int
2715main (int argc, char **argv)
2716{
2717 int ok = 0;
2718 ${ac_c_conftest_c89_main}
2719 ${ac_c_conftest_c99_main}
2720 ${ac_c_conftest_c11_main}
2721 return ok;
2722}
2723"
2724
2725# Test code for whether the C compiler supports C99 (complete).
2726ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2727${ac_c_conftest_c99_globals}
2728
2729int
2730main (int argc, char **argv)
2731{
2732 int ok = 0;
2733 ${ac_c_conftest_c89_main}
2734 ${ac_c_conftest_c99_main}
2735 return ok;
2736}
2737"
2738
2739# Test code for whether the C compiler supports C89 (complete).
2740ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2741
2742int
2743main (int argc, char **argv)
2744{
2745 int ok = 0;
2746 ${ac_c_conftest_c89_main}
2747 return ok;
2748}
2749"
2750
2751# Test code for whether the C++ compiler supports C++98 (global declarations)
2752ac_cxx_conftest_cxx98_globals='
2753// Does the compiler advertise C++98 conformance?
2754#if !defined __cplusplus || __cplusplus < 199711L
2755# error "Compiler does not advertise C++98 conformance"
2756#endif
2757
2758// These inclusions are to reject old compilers that
2759// lack the unsuffixed header files.
2760#include <cstdlib>
2761#include <exception>
2762
2763// <cassert> and <cstring> are *not* freestanding headers in C++98.
2764extern void assert (int);
2765namespace std {
2766 extern int strcmp (const char *, const char *);
2767}
2768
2769// Namespaces, exceptions, and templates were all added after "C++ 2.0".
2770using std::exception;
2771using std::strcmp;
2772
2773namespace {
2774
2775void test_exception_syntax()
2776{
2777 try {
2778 throw "test";
2779 } catch (const char *s) {
2780 // Extra parentheses suppress a warning when building autoconf itself,
2781 // due to lint rules shared with more typical C programs.
2782 assert (!(strcmp) (s, "test"));
2783 }
2784}
2785
2786template <typename T> struct test_template
2787{
2788 T const val;
2789 explicit test_template(T t) : val(t) {}
2790 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2791};
2792
2793} // anonymous namespace
2794'
2795
2796# Test code for whether the C++ compiler supports C++98 (body of main)
2797ac_cxx_conftest_cxx98_main='
2798 assert (argc);
2799 assert (! argv[0]);
2800{
2801 test_exception_syntax ();
2802 test_template<double> tt (2.0);
2803 assert (tt.add (4) == 6.0);
2804 assert (true && !false);
2805}
2806'
2807
2808# Test code for whether the C++ compiler supports C++11 (global declarations)
2809ac_cxx_conftest_cxx11_globals='
2810// Does the compiler advertise C++ 2011 conformance?
2811#if !defined __cplusplus || __cplusplus < 201103L
2812# error "Compiler does not advertise C++11 conformance"
2813#endif
2814
2815namespace cxx11test
2816{
2817 constexpr int get_val() { return 20; }
2818
2819 struct testinit
2820 {
2821 int i;
2822 double d;
2823 };
2824
2825 class delegate
2826 {
2827 public:
2828 delegate(int n) : n(n) {}
2829 delegate(): delegate(2354) {}
2830
2831 virtual int getval() { return this->n; };
2832 protected:
2833 int n;
2834 };
2835
2836 class overridden : public delegate
2837 {
2838 public:
2839 overridden(int n): delegate(n) {}
2840 virtual int getval() override final { return this->n * 2; }
2841 };
2842
2843 class nocopy
2844 {
2845 public:
2846 nocopy(int i): i(i) {}
2847 nocopy() = default;
2848 nocopy(const nocopy&) = delete;
2849 nocopy & operator=(const nocopy&) = delete;
2850 private:
2851 int i;
2852 };
2853
2854 // for testing lambda expressions
2855 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2856 {
2857 return f(v);
2858 }
2859
2860 // for testing variadic templates and trailing return types
2861 template <typename V> auto sum(V first) -> V
2862 {
2863 return first;
2864 }
2865 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2866 {
2867 return first + sum(rest...);
2868 }
2869}
2870'
2871
2872# Test code for whether the C++ compiler supports C++11 (body of main)
2873ac_cxx_conftest_cxx11_main='
2874{
2875 // Test auto and decltype
2876 auto a1 = 6538;
2877 auto a2 = 48573953.4;
2878 auto a3 = "String literal";
2879
2880 int total = 0;
2881 for (auto i = a3; *i; ++i) { total += *i; }
2882
2883 decltype(a2) a4 = 34895.034;
2884}
2885{
2886 // Test constexpr
2887 short sa[cxx11test::get_val()] = { 0 };
2888}
2889{
2890 // Test initializer lists
2891 cxx11test::testinit il = { 4323, 435234.23544 };
2892}
2893{
2894 // Test range-based for
2895 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2896 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2897 for (auto &x : array) { x += 23; }
2898}
2899{
2900 // Test lambda expressions
2901 using cxx11test::eval;
2902 assert (eval ([](int x) { return x*2; }, 21) == 42);
2903 double d = 2.0;
2904 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2905 assert (d == 5.0);
2906 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2907 assert (d == 5.0);
2908}
2909{
2910 // Test use of variadic templates
2911 using cxx11test::sum;
2912 auto a = sum(1);
2913 auto b = sum(1, 2);
2914 auto c = sum(1.0, 2.0, 3.0);
2915}
2916{
2917 // Test constructor delegation
2918 cxx11test::delegate d1;
2919 cxx11test::delegate d2();
2920 cxx11test::delegate d3(45);
2921}
2922{
2923 // Test override and final
2924 cxx11test::overridden o1(55464);
2925}
2926{
2927 // Test nullptr
2928 char *c = nullptr;
2929}
2930{
2931 // Test template brackets
2932 test_template<::test_template<int>> v(test_template<int>(12));
2933}
2934{
2935 // Unicode literals
2936 char const *utf8 = u8"UTF-8 string \u2500";
2937 char16_t const *utf16 = u"UTF-8 string \u2500";
2938 char32_t const *utf32 = U"UTF-32 string \u2500";
2939}
2940'
2941
2942# Test code for whether the C compiler supports C++11 (complete).
2943ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2944${ac_cxx_conftest_cxx11_globals}
2945
2946int
2947main (int argc, char **argv)
2948{
2949 int ok = 0;
2950 ${ac_cxx_conftest_cxx98_main}
2951 ${ac_cxx_conftest_cxx11_main}
2952 return ok;
2953}
2954"
2955
2956# Test code for whether the C compiler supports C++98 (complete).
2957ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2958int
2959main (int argc, char **argv)
2960{
2961 int ok = 0;
2962 ${ac_cxx_conftest_cxx98_main}
2963 return ok;
2964}
2965"
2966
2967as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2968as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2969as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2970as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2971as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2972as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2973as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2974as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2975as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2976as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2977as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2978
2979# Auxiliary files required by this configure script.
2980ac_aux_files="install-sh config.guess config.sub"
2981
2982# Locations in which to look for auxiliary files.
2983ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2984
2985# Search for a directory containing all of the required auxiliary files,
2986# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2987# If we don't find one directory that contains all the files we need,
2988# we report the set of missing files from the *first* directory in
2989# $ac_aux_dir_candidates and give up.
2990ac_missing_aux_files=""
2991ac_first_candidate=:
2992printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994as_found=false
2995for as_dir in $ac_aux_dir_candidates
2996do
2997 IFS=$as_save_IFS
2998 case $as_dir in #(((
2999 '') as_dir=./ ;;
3000 */) ;;
3001 *) as_dir=$as_dir/ ;;
3002 esac
3003 as_found=:
3004
3005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3006 ac_aux_dir_found=yes
3007 ac_install_sh=
3008 for ac_aux in $ac_aux_files
3009 do
3010 # As a special case, if "install-sh" is required, that requirement
3011 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3012 # and $ac_install_sh is set appropriately for whichever one is found.
3013 if test x"$ac_aux" = x"install-sh"
3014 then
3015 if test -f "${as_dir}install-sh"; then
3016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3017 ac_install_sh="${as_dir}install-sh -c"
3018 elif test -f "${as_dir}install.sh"; then
3019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3020 ac_install_sh="${as_dir}install.sh -c"
3021 elif test -f "${as_dir}shtool"; then
3022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3023 ac_install_sh="${as_dir}shtool install -c"
3024 else
3025 ac_aux_dir_found=no
3026 if $ac_first_candidate; then
3027 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3028 else
3029 break
3030 fi
3031 fi
3032 else
3033 if test -f "${as_dir}${ac_aux}"; then
3034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3035 else
3036 ac_aux_dir_found=no
3037 if $ac_first_candidate; then
3038 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3039 else
3040 break
3041 fi
3042 fi
3043 fi
3044 done
3045 if test "$ac_aux_dir_found" = yes; then
3046 ac_aux_dir="$as_dir"
3047 break
3048 fi
3049 ac_first_candidate=false
3050
3051 as_found=false
3052done
3053IFS=$as_save_IFS
3054if $as_found
3055then :
3056
3057else $as_nop
3058 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3059fi
3060
3061
3062# These three variables are undocumented and unsupported,
3063# and are intended to be withdrawn in a future Autoconf release.
3064# They can cause serious problems if a builder's source tree is in a directory
3065# whose full name contains unusual characters.
3066if test -f "${ac_aux_dir}config.guess"; then
3067 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3068fi
3069if test -f "${ac_aux_dir}config.sub"; then
3070 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3071fi
3072if test -f "$ac_aux_dir/configure"; then
3073 ac_configure="$SHELL ${ac_aux_dir}configure"
2575fi 3074fi
2576 3075
2577# Check that the precious variables saved in the cache have kept the same 3076# Check that the precious variables saved in the cache have kept the same
2578# value. 3077# value.
2579ac_cache_corrupted=false 3078ac_cache_corrupted=false
2582 eval ac_new_set=\$ac_env_${ac_var}_set 3081 eval ac_new_set=\$ac_env_${ac_var}_set
2583 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3082 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2584 eval ac_new_val=\$ac_env_${ac_var}_value 3083 eval ac_new_val=\$ac_env_${ac_var}_value
2585 case $ac_old_set,$ac_new_set in 3084 case $ac_old_set,$ac_new_set in
2586 set,) 3085 set,)
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2588$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3087printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2589 ac_cache_corrupted=: ;; 3088 ac_cache_corrupted=: ;;
2590 ,set) 3089 ,set)
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2592$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3091printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2593 ac_cache_corrupted=: ;; 3092 ac_cache_corrupted=: ;;
2594 ,);; 3093 ,);;
2595 *) 3094 *)
2596 if test "x$ac_old_val" != "x$ac_new_val"; then 3095 if test "x$ac_old_val" != "x$ac_new_val"; then
2597 # differences in whitespace do not lead to failure. 3096 # differences in whitespace do not lead to failure.
2598 ac_old_val_w=`echo x $ac_old_val` 3097 ac_old_val_w=`echo x $ac_old_val`
2599 ac_new_val_w=`echo x $ac_new_val` 3098 ac_new_val_w=`echo x $ac_new_val`
2600 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3099 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2602$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3101printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2603 ac_cache_corrupted=: 3102 ac_cache_corrupted=:
2604 else 3103 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2606$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3105printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2607 eval $ac_var=\$ac_old_val 3106 eval $ac_var=\$ac_old_val
2608 fi 3107 fi
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2610$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3109printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2612$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3111printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2613 fi;; 3112 fi;;
2614 esac 3113 esac
2615 # Pass precious variables to config.status. 3114 # Pass precious variables to config.status.
2616 if test "$ac_new_set" = set; then 3115 if test "$ac_new_set" = set; then
2617 case $ac_new_val in 3116 case $ac_new_val in
2618 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3117 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2619 *) ac_arg=$ac_var=$ac_new_val ;; 3118 *) ac_arg=$ac_var=$ac_new_val ;;
2620 esac 3119 esac
2621 case " $ac_configure_args " in 3120 case " $ac_configure_args " in
2622 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3121 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2623 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3122 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2624 esac 3123 esac
2625 fi 3124 fi
2626done 3125done
2627if $ac_cache_corrupted; then 3126if $ac_cache_corrupted; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3128printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2631$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3130printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2632 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3131 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3132 and start over" "$LINENO" 5
2633fi 3133fi
2634## -------------------- ## 3134## -------------------- ##
2635## Main body of script. ## 3135## Main body of script. ##
2636## -------------------- ## 3136## -------------------- ##
2637 3137
2645 3145
2646 3146
2647ac_config_headers="$ac_config_headers config.h:config.h.in" 3147ac_config_headers="$ac_config_headers config.h:config.h.in"
2648 3148
2649 3149
2650ac_aux_dir=
2651for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2652 if test -f "$ac_dir/install-sh"; then
2653 ac_aux_dir=$ac_dir
2654 ac_install_sh="$ac_aux_dir/install-sh -c"
2655 break
2656 elif test -f "$ac_dir/install.sh"; then
2657 ac_aux_dir=$ac_dir
2658 ac_install_sh="$ac_aux_dir/install.sh -c"
2659 break
2660 elif test -f "$ac_dir/shtool"; then
2661 ac_aux_dir=$ac_dir
2662 ac_install_sh="$ac_aux_dir/shtool install -c"
2663 break
2664 fi
2665done
2666if test -z "$ac_aux_dir"; then
2667 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2668fi
2669 3150
2670# These three variables are undocumented and unsupported,
2671# and are intended to be withdrawn in a future Autoconf release.
2672# They can cause serious problems if a builder's source tree is in a directory
2673# whose full name contains unusual characters.
2674ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2675ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2676ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2677 3151
2678 3152
2679# Make sure we can run config.sub. 3153 # Make sure we can run config.sub.
2680$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3154$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2681 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3155 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2682 3156
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2684$as_echo_n "checking build system type... " >&6; } 3158printf %s "checking build system type... " >&6; }
2685if ${ac_cv_build+:} false; then : 3159if test ${ac_cv_build+y}
2686 $as_echo_n "(cached) " >&6 3160then :
2687else 3161 printf %s "(cached) " >&6
3162else $as_nop
2688 ac_build_alias=$build_alias 3163 ac_build_alias=$build_alias
2689test "x$ac_build_alias" = x && 3164test "x$ac_build_alias" = x &&
2690 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3165 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2691test "x$ac_build_alias" = x && 3166test "x$ac_build_alias" = x &&
2692 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3167 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2693ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3168ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2694 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3169 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2695 3170
2696fi 3171fi
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2698$as_echo "$ac_cv_build" >&6; } 3173printf "%s\n" "$ac_cv_build" >&6; }
2699case $ac_cv_build in 3174case $ac_cv_build in
2700*-*-*) ;; 3175*-*-*) ;;
2701*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3176*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2702esac 3177esac
2703build=$ac_cv_build 3178build=$ac_cv_build
2712build_os=$* 3187build_os=$*
2713IFS=$ac_save_IFS 3188IFS=$ac_save_IFS
2714case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3189case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2715 3190
2716 3191
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2718$as_echo_n "checking host system type... " >&6; } 3193printf %s "checking host system type... " >&6; }
2719if ${ac_cv_host+:} false; then : 3194if test ${ac_cv_host+y}
2720 $as_echo_n "(cached) " >&6 3195then :
2721else 3196 printf %s "(cached) " >&6
3197else $as_nop
2722 if test "x$host_alias" = x; then 3198 if test "x$host_alias" = x; then
2723 ac_cv_host=$ac_cv_build 3199 ac_cv_host=$ac_cv_build
2724else 3200else
2725 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3201 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2726 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3202 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2727fi 3203fi
2728 3204
2729fi 3205fi
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2731$as_echo "$ac_cv_host" >&6; } 3207printf "%s\n" "$ac_cv_host" >&6; }
2732case $ac_cv_host in 3208case $ac_cv_host in
2733*-*-*) ;; 3209*-*-*) ;;
2734*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3210*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2735esac 3211esac
2736host=$ac_cv_host 3212host=$ac_cv_host
2746IFS=$ac_save_IFS 3222IFS=$ac_save_IFS
2747case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3223case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2748 3224
2749 3225
2750 3226
2751VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 3227VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2752DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 3228DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2753 3229
2754echo "" 3230echo ""
2755echo "configuring for rxvt $VERSION" 3231echo "configuring for rxvt $VERSION"
2756echo "" 3232echo ""
2757 3233
2758orig_CXXFLAGS="$CXXFLAGS" 3234orig_CXXFLAGS="$CXXFLAGS"
3235
3236
3237
3238
3239
3240
3241
3242
3243
2759 3244
2760ac_ext=c 3245ac_ext=c
2761ac_cpp='$CPP $CPPFLAGS' 3246ac_cpp='$CPP $CPPFLAGS'
2762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764ac_compiler_gnu=$ac_cv_c_compiler_gnu 3249ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765if test -n "$ac_tool_prefix"; then 3250if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3251 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2767set dummy ${ac_tool_prefix}gcc; ac_word=$2 3252set dummy ${ac_tool_prefix}gcc; ac_word=$2
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769$as_echo_n "checking for $ac_word... " >&6; } 3254printf %s "checking for $ac_word... " >&6; }
2770if ${ac_cv_prog_CC+:} false; then : 3255if test ${ac_cv_prog_CC+y}
2771 $as_echo_n "(cached) " >&6 3256then :
2772else 3257 printf %s "(cached) " >&6
3258else $as_nop
2773 if test -n "$CC"; then 3259 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test. 3260 ac_cv_prog_CC="$CC" # Let the user override the test.
2775else 3261else
2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH 3263for as_dir in $PATH
2778do 3264do
2779 IFS=$as_save_IFS 3265 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=. 3266 case $as_dir in #(((
3267 '') as_dir=./ ;;
3268 */) ;;
3269 *) as_dir=$as_dir/ ;;
3270 esac
2781 for ac_exec_ext in '' $ac_executable_extensions; do 3271 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3273 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2785 break 2 3275 break 2
2786 fi 3276 fi
2787done 3277done
2788 done 3278 done
2789IFS=$as_save_IFS 3279IFS=$as_save_IFS
2790 3280
2791fi 3281fi
2792fi 3282fi
2793CC=$ac_cv_prog_CC 3283CC=$ac_cv_prog_CC
2794if test -n "$CC"; then 3284if test -n "$CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796$as_echo "$CC" >&6; } 3286printf "%s\n" "$CC" >&6; }
2797else 3287else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799$as_echo "no" >&6; } 3289printf "%s\n" "no" >&6; }
2800fi 3290fi
2801 3291
2802 3292
2803fi 3293fi
2804if test -z "$ac_cv_prog_CC"; then 3294if test -z "$ac_cv_prog_CC"; then
2805 ac_ct_CC=$CC 3295 ac_ct_CC=$CC
2806 # Extract the first word of "gcc", so it can be a program name with args. 3296 # Extract the first word of "gcc", so it can be a program name with args.
2807set dummy gcc; ac_word=$2 3297set dummy gcc; ac_word=$2
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809$as_echo_n "checking for $ac_word... " >&6; } 3299printf %s "checking for $ac_word... " >&6; }
2810if ${ac_cv_prog_ac_ct_CC+:} false; then : 3300if test ${ac_cv_prog_ac_ct_CC+y}
2811 $as_echo_n "(cached) " >&6 3301then :
2812else 3302 printf %s "(cached) " >&6
3303else $as_nop
2813 if test -n "$ac_ct_CC"; then 3304 if test -n "$ac_ct_CC"; then
2814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815else 3306else
2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH 3308for as_dir in $PATH
2818do 3309do
2819 IFS=$as_save_IFS 3310 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=. 3311 case $as_dir in #(((
3312 '') as_dir=./ ;;
3313 */) ;;
3314 *) as_dir=$as_dir/ ;;
3315 esac
2821 for ac_exec_ext in '' $ac_executable_extensions; do 3316 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_ac_ct_CC="gcc" 3318 ac_cv_prog_ac_ct_CC="gcc"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2825 break 2 3320 break 2
2826 fi 3321 fi
2827done 3322done
2828 done 3323 done
2829IFS=$as_save_IFS 3324IFS=$as_save_IFS
2830 3325
2831fi 3326fi
2832fi 3327fi
2833ac_ct_CC=$ac_cv_prog_ac_ct_CC 3328ac_ct_CC=$ac_cv_prog_ac_ct_CC
2834if test -n "$ac_ct_CC"; then 3329if test -n "$ac_ct_CC"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2836$as_echo "$ac_ct_CC" >&6; } 3331printf "%s\n" "$ac_ct_CC" >&6; }
2837else 3332else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839$as_echo "no" >&6; } 3334printf "%s\n" "no" >&6; }
2840fi 3335fi
2841 3336
2842 if test "x$ac_ct_CC" = x; then 3337 if test "x$ac_ct_CC" = x; then
2843 CC="" 3338 CC=""
2844 else 3339 else
2845 case $cross_compiling:$ac_tool_warned in 3340 case $cross_compiling:$ac_tool_warned in
2846yes:) 3341yes:)
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3343printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849ac_tool_warned=yes ;; 3344ac_tool_warned=yes ;;
2850esac 3345esac
2851 CC=$ac_ct_CC 3346 CC=$ac_ct_CC
2852 fi 3347 fi
2853else 3348else
2856 3351
2857if test -z "$CC"; then 3352if test -z "$CC"; then
2858 if test -n "$ac_tool_prefix"; then 3353 if test -n "$ac_tool_prefix"; then
2859 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3354 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2860set dummy ${ac_tool_prefix}cc; ac_word=$2 3355set dummy ${ac_tool_prefix}cc; ac_word=$2
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862$as_echo_n "checking for $ac_word... " >&6; } 3357printf %s "checking for $ac_word... " >&6; }
2863if ${ac_cv_prog_CC+:} false; then : 3358if test ${ac_cv_prog_CC+y}
2864 $as_echo_n "(cached) " >&6 3359then :
2865else 3360 printf %s "(cached) " >&6
3361else $as_nop
2866 if test -n "$CC"; then 3362 if test -n "$CC"; then
2867 ac_cv_prog_CC="$CC" # Let the user override the test. 3363 ac_cv_prog_CC="$CC" # Let the user override the test.
2868else 3364else
2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870for as_dir in $PATH 3366for as_dir in $PATH
2871do 3367do
2872 IFS=$as_save_IFS 3368 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=. 3369 case $as_dir in #(((
3370 '') as_dir=./ ;;
3371 */) ;;
3372 *) as_dir=$as_dir/ ;;
3373 esac
2874 for ac_exec_ext in '' $ac_executable_extensions; do 3374 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3375 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_CC="${ac_tool_prefix}cc" 3376 ac_cv_prog_CC="${ac_tool_prefix}cc"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2878 break 2 3378 break 2
2879 fi 3379 fi
2880done 3380done
2881 done 3381 done
2882IFS=$as_save_IFS 3382IFS=$as_save_IFS
2883 3383
2884fi 3384fi
2885fi 3385fi
2886CC=$ac_cv_prog_CC 3386CC=$ac_cv_prog_CC
2887if test -n "$CC"; then 3387if test -n "$CC"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889$as_echo "$CC" >&6; } 3389printf "%s\n" "$CC" >&6; }
2890else 3390else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892$as_echo "no" >&6; } 3392printf "%s\n" "no" >&6; }
2893fi 3393fi
2894 3394
2895 3395
2896 fi 3396 fi
2897fi 3397fi
2898if test -z "$CC"; then 3398if test -z "$CC"; then
2899 # Extract the first word of "cc", so it can be a program name with args. 3399 # Extract the first word of "cc", so it can be a program name with args.
2900set dummy cc; ac_word=$2 3400set dummy cc; ac_word=$2
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902$as_echo_n "checking for $ac_word... " >&6; } 3402printf %s "checking for $ac_word... " >&6; }
2903if ${ac_cv_prog_CC+:} false; then : 3403if test ${ac_cv_prog_CC+y}
2904 $as_echo_n "(cached) " >&6 3404then :
2905else 3405 printf %s "(cached) " >&6
3406else $as_nop
2906 if test -n "$CC"; then 3407 if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test. 3408 ac_cv_prog_CC="$CC" # Let the user override the test.
2908else 3409else
2909 ac_prog_rejected=no 3410 ac_prog_rejected=no
2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911for as_dir in $PATH 3412for as_dir in $PATH
2912do 3413do
2913 IFS=$as_save_IFS 3414 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=. 3415 case $as_dir in #(((
3416 '') as_dir=./ ;;
3417 */) ;;
3418 *) as_dir=$as_dir/ ;;
3419 esac
2915 for ac_exec_ext in '' $ac_executable_extensions; do 3420 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3422 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2918 ac_prog_rejected=yes 3423 ac_prog_rejected=yes
2919 continue 3424 continue
2920 fi 3425 fi
2921 ac_cv_prog_CC="cc" 3426 ac_cv_prog_CC="cc"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2923 break 2 3428 break 2
2924 fi 3429 fi
2925done 3430done
2926 done 3431 done
2927IFS=$as_save_IFS 3432IFS=$as_save_IFS
2933 if test $# != 0; then 3438 if test $# != 0; then
2934 # We chose a different compiler from the bogus one. 3439 # We chose a different compiler from the bogus one.
2935 # However, it has the same basename, so the bogon will be chosen 3440 # However, it has the same basename, so the bogon will be chosen
2936 # first if we set CC to just the basename; use the full file name. 3441 # first if we set CC to just the basename; use the full file name.
2937 shift 3442 shift
2938 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3443 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2939 fi 3444 fi
2940fi 3445fi
2941fi 3446fi
2942fi 3447fi
2943CC=$ac_cv_prog_CC 3448CC=$ac_cv_prog_CC
2944if test -n "$CC"; then 3449if test -n "$CC"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946$as_echo "$CC" >&6; } 3451printf "%s\n" "$CC" >&6; }
2947else 3452else
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949$as_echo "no" >&6; } 3454printf "%s\n" "no" >&6; }
2950fi 3455fi
2951 3456
2952 3457
2953fi 3458fi
2954if test -z "$CC"; then 3459if test -z "$CC"; then
2955 if test -n "$ac_tool_prefix"; then 3460 if test -n "$ac_tool_prefix"; then
2956 for ac_prog in cl.exe 3461 for ac_prog in cl.exe
2957 do 3462 do
2958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2959set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3464set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961$as_echo_n "checking for $ac_word... " >&6; } 3466printf %s "checking for $ac_word... " >&6; }
2962if ${ac_cv_prog_CC+:} false; then : 3467if test ${ac_cv_prog_CC+y}
2963 $as_echo_n "(cached) " >&6 3468then :
2964else 3469 printf %s "(cached) " >&6
3470else $as_nop
2965 if test -n "$CC"; then 3471 if test -n "$CC"; then
2966 ac_cv_prog_CC="$CC" # Let the user override the test. 3472 ac_cv_prog_CC="$CC" # Let the user override the test.
2967else 3473else
2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH 3475for as_dir in $PATH
2970do 3476do
2971 IFS=$as_save_IFS 3477 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=. 3478 case $as_dir in #(((
3479 '') as_dir=./ ;;
3480 */) ;;
3481 *) as_dir=$as_dir/ ;;
3482 esac
2973 for ac_exec_ext in '' $ac_executable_extensions; do 3483 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3485 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2977 break 2 3487 break 2
2978 fi 3488 fi
2979done 3489done
2980 done 3490 done
2981IFS=$as_save_IFS 3491IFS=$as_save_IFS
2982 3492
2983fi 3493fi
2984fi 3494fi
2985CC=$ac_cv_prog_CC 3495CC=$ac_cv_prog_CC
2986if test -n "$CC"; then 3496if test -n "$CC"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2988$as_echo "$CC" >&6; } 3498printf "%s\n" "$CC" >&6; }
2989else 3499else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991$as_echo "no" >&6; } 3501printf "%s\n" "no" >&6; }
2992fi 3502fi
2993 3503
2994 3504
2995 test -n "$CC" && break 3505 test -n "$CC" && break
2996 done 3506 done
2999 ac_ct_CC=$CC 3509 ac_ct_CC=$CC
3000 for ac_prog in cl.exe 3510 for ac_prog in cl.exe
3001do 3511do
3002 # Extract the first word of "$ac_prog", so it can be a program name with args. 3512 # Extract the first word of "$ac_prog", so it can be a program name with args.
3003set dummy $ac_prog; ac_word=$2 3513set dummy $ac_prog; ac_word=$2
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005$as_echo_n "checking for $ac_word... " >&6; } 3515printf %s "checking for $ac_word... " >&6; }
3006if ${ac_cv_prog_ac_ct_CC+:} false; then : 3516if test ${ac_cv_prog_ac_ct_CC+y}
3007 $as_echo_n "(cached) " >&6 3517then :
3008else 3518 printf %s "(cached) " >&6
3519else $as_nop
3009 if test -n "$ac_ct_CC"; then 3520 if test -n "$ac_ct_CC"; then
3010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011else 3522else
3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH 3524for as_dir in $PATH
3014do 3525do
3015 IFS=$as_save_IFS 3526 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=. 3527 case $as_dir in #(((
3528 '') as_dir=./ ;;
3529 */) ;;
3530 *) as_dir=$as_dir/ ;;
3531 esac
3017 for ac_exec_ext in '' $ac_executable_extensions; do 3532 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_ac_ct_CC="$ac_prog" 3534 ac_cv_prog_ac_ct_CC="$ac_prog"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3021 break 2 3536 break 2
3022 fi 3537 fi
3023done 3538done
3024 done 3539 done
3025IFS=$as_save_IFS 3540IFS=$as_save_IFS
3026 3541
3027fi 3542fi
3028fi 3543fi
3029ac_ct_CC=$ac_cv_prog_ac_ct_CC 3544ac_ct_CC=$ac_cv_prog_ac_ct_CC
3030if test -n "$ac_ct_CC"; then 3545if test -n "$ac_ct_CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3032$as_echo "$ac_ct_CC" >&6; } 3547printf "%s\n" "$ac_ct_CC" >&6; }
3033else 3548else
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035$as_echo "no" >&6; } 3550printf "%s\n" "no" >&6; }
3036fi 3551fi
3037 3552
3038 3553
3039 test -n "$ac_ct_CC" && break 3554 test -n "$ac_ct_CC" && break
3040done 3555done
3042 if test "x$ac_ct_CC" = x; then 3557 if test "x$ac_ct_CC" = x; then
3043 CC="" 3558 CC=""
3044 else 3559 else
3045 case $cross_compiling:$ac_tool_warned in 3560 case $cross_compiling:$ac_tool_warned in
3046yes:) 3561yes:)
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3563printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3049ac_tool_warned=yes ;; 3564ac_tool_warned=yes ;;
3050esac 3565esac
3051 CC=$ac_ct_CC 3566 CC=$ac_ct_CC
3052 fi 3567 fi
3053fi 3568fi
3054 3569
3055fi 3570fi
3571if test -z "$CC"; then
3572 if test -n "$ac_tool_prefix"; then
3573 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3574set dummy ${ac_tool_prefix}clang; ac_word=$2
3575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576printf %s "checking for $ac_word... " >&6; }
3577if test ${ac_cv_prog_CC+y}
3578then :
3579 printf %s "(cached) " >&6
3580else $as_nop
3581 if test -n "$CC"; then
3582 ac_cv_prog_CC="$CC" # Let the user override the test.
3583else
3584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585for as_dir in $PATH
3586do
3587 IFS=$as_save_IFS
3588 case $as_dir in #(((
3589 '') as_dir=./ ;;
3590 */) ;;
3591 *) as_dir=$as_dir/ ;;
3592 esac
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3595 ac_cv_prog_CC="${ac_tool_prefix}clang"
3596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3597 break 2
3598 fi
3599done
3600 done
3601IFS=$as_save_IFS
3056 3602
3603fi
3604fi
3605CC=$ac_cv_prog_CC
3606if test -n "$CC"; then
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3608printf "%s\n" "$CC" >&6; }
3609else
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611printf "%s\n" "no" >&6; }
3612fi
3057 3613
3614
3615fi
3616if test -z "$ac_cv_prog_CC"; then
3617 ac_ct_CC=$CC
3618 # Extract the first word of "clang", so it can be a program name with args.
3619set dummy clang; ac_word=$2
3620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621printf %s "checking for $ac_word... " >&6; }
3622if test ${ac_cv_prog_ac_ct_CC+y}
3623then :
3624 printf %s "(cached) " >&6
3625else $as_nop
3626 if test -n "$ac_ct_CC"; then
3627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3628else
3629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630for as_dir in $PATH
3631do
3632 IFS=$as_save_IFS
3633 case $as_dir in #(((
3634 '') as_dir=./ ;;
3635 */) ;;
3636 *) as_dir=$as_dir/ ;;
3637 esac
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3640 ac_cv_prog_ac_ct_CC="clang"
3641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3642 break 2
3643 fi
3644done
3645 done
3646IFS=$as_save_IFS
3647
3648fi
3649fi
3650ac_ct_CC=$ac_cv_prog_ac_ct_CC
3651if test -n "$ac_ct_CC"; then
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3653printf "%s\n" "$ac_ct_CC" >&6; }
3654else
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656printf "%s\n" "no" >&6; }
3657fi
3658
3659 if test "x$ac_ct_CC" = x; then
3660 CC=""
3661 else
3662 case $cross_compiling:$ac_tool_warned in
3663yes:)
3664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3665printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3666ac_tool_warned=yes ;;
3667esac
3668 CC=$ac_ct_CC
3669 fi
3670else
3671 CC="$ac_cv_prog_CC"
3672fi
3673
3674fi
3675
3676
3058test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3677test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3678printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3060as_fn_error $? "no acceptable C compiler found in \$PATH 3679as_fn_error $? "no acceptable C compiler found in \$PATH
3061See \`config.log' for more details" "$LINENO" 5; } 3680See \`config.log' for more details" "$LINENO" 5; }
3062 3681
3063# Provide some information about the compiler. 3682# Provide some information about the compiler.
3064$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3683printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3065set X $ac_compile 3684set X $ac_compile
3066ac_compiler=$2 3685ac_compiler=$2
3067for ac_option in --version -v -V -qversion; do 3686for ac_option in --version -v -V -qversion -version; do
3068 { { ac_try="$ac_compiler $ac_option >&5" 3687 { { ac_try="$ac_compiler $ac_option >&5"
3069case "(($ac_try" in 3688case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;; 3690 *) ac_try_echo=$ac_try;;
3072esac 3691esac
3073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074$as_echo "$ac_try_echo"; } >&5 3693printf "%s\n" "$ac_try_echo"; } >&5
3075 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3694 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3076 ac_status=$? 3695 ac_status=$?
3077 if test -s conftest.err; then 3696 if test -s conftest.err; then
3078 sed '10a\ 3697 sed '10a\
3079... rest of stderr output deleted ... 3698... rest of stderr output deleted ...
3080 10q' conftest.err >conftest.er1 3699 10q' conftest.err >conftest.er1
3081 cat conftest.er1 >&5 3700 cat conftest.er1 >&5
3082 fi 3701 fi
3083 rm -f conftest.er1 conftest.err 3702 rm -f conftest.er1 conftest.err
3084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085 test $ac_status = 0; } 3704 test $ac_status = 0; }
3086done 3705done
3087 3706
3088cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089/* end confdefs.h. */ 3708/* end confdefs.h. */
3090 3709
3091int 3710int
3092main () 3711main (void)
3093{ 3712{
3094 3713
3095 ; 3714 ;
3096 return 0; 3715 return 0;
3097} 3716}
3099ac_clean_files_save=$ac_clean_files 3718ac_clean_files_save=$ac_clean_files
3100ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3719ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3101# Try to create an executable without -o first, disregard a.out. 3720# Try to create an executable without -o first, disregard a.out.
3102# It will help us diagnose broken compilers, and finding out an intuition 3721# It will help us diagnose broken compilers, and finding out an intuition
3103# of exeext. 3722# of exeext.
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3105$as_echo_n "checking whether the C compiler works... " >&6; } 3724printf %s "checking whether the C compiler works... " >&6; }
3106ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3725ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3107 3726
3108# The possible output files: 3727# The possible output files:
3109ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3728ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3110 3729
3111ac_rmfiles= 3730ac_rmfiles=
3122case "(($ac_try" in 3741case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;; 3743 *) ac_try_echo=$ac_try;;
3125esac 3744esac
3126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127$as_echo "$ac_try_echo"; } >&5 3746printf "%s\n" "$ac_try_echo"; } >&5
3128 (eval "$ac_link_default") 2>&5 3747 (eval "$ac_link_default") 2>&5
3129 ac_status=$? 3748 ac_status=$?
3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }; then : 3750 test $ac_status = 0; }
3751then :
3132 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3752 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3133# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3753# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3134# in a Makefile. We should not override ac_cv_exeext if it was cached, 3754# in a Makefile. We should not override ac_cv_exeext if it was cached,
3135# so that the user can short-circuit this test for compilers unknown to 3755# so that the user can short-circuit this test for compilers unknown to
3136# Autoconf. 3756# Autoconf.
3143 [ab].out ) 3763 [ab].out )
3144 # We found the default executable, but exeext='' is most 3764 # We found the default executable, but exeext='' is most
3145 # certainly right. 3765 # certainly right.
3146 break;; 3766 break;;
3147 *.* ) 3767 *.* )
3148 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3768 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3149 then :; else 3769 then :; else
3150 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3770 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151 fi 3771 fi
3152 # We set ac_cv_exeext here because the later test for it is not 3772 # We set ac_cv_exeext here because the later test for it is not
3153 # safe: cross compilers may not add the suffix if given an `-o' 3773 # safe: cross compilers may not add the suffix if given an `-o'
3159 break;; 3779 break;;
3160 esac 3780 esac
3161done 3781done
3162test "$ac_cv_exeext" = no && ac_cv_exeext= 3782test "$ac_cv_exeext" = no && ac_cv_exeext=
3163 3783
3164else 3784else $as_nop
3165 ac_file='' 3785 ac_file=''
3166fi 3786fi
3167if test -z "$ac_file"; then : 3787if test -z "$ac_file"
3788then :
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169$as_echo "no" >&6; } 3790printf "%s\n" "no" >&6; }
3170$as_echo "$as_me: failed program was:" >&5 3791printf "%s\n" "$as_me: failed program was:" >&5
3171sed 's/^/| /' conftest.$ac_ext >&5 3792sed 's/^/| /' conftest.$ac_ext >&5
3172 3793
3173{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3794{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3795printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3175as_fn_error 77 "C compiler cannot create executables 3796as_fn_error 77 "C compiler cannot create executables
3176See \`config.log' for more details" "$LINENO" 5; } 3797See \`config.log' for more details" "$LINENO" 5; }
3177else 3798else $as_nop
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179$as_echo "yes" >&6; } 3800printf "%s\n" "yes" >&6; }
3180fi 3801fi
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3182$as_echo_n "checking for C compiler default output file name... " >&6; } 3803printf %s "checking for C compiler default output file name... " >&6; }
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3184$as_echo "$ac_file" >&6; } 3805printf "%s\n" "$ac_file" >&6; }
3185ac_exeext=$ac_cv_exeext 3806ac_exeext=$ac_cv_exeext
3186 3807
3187rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3808rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3188ac_clean_files=$ac_clean_files_save 3809ac_clean_files=$ac_clean_files_save
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3190$as_echo_n "checking for suffix of executables... " >&6; } 3811printf %s "checking for suffix of executables... " >&6; }
3191if { { ac_try="$ac_link" 3812if { { ac_try="$ac_link"
3192case "(($ac_try" in 3813case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;; 3815 *) ac_try_echo=$ac_try;;
3195esac 3816esac
3196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197$as_echo "$ac_try_echo"; } >&5 3818printf "%s\n" "$ac_try_echo"; } >&5
3198 (eval "$ac_link") 2>&5 3819 (eval "$ac_link") 2>&5
3199 ac_status=$? 3820 ac_status=$?
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }; then : 3822 test $ac_status = 0; }
3823then :
3202 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3824 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3203# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3825# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3204# work properly (i.e., refer to `conftest.exe'), while it won't with 3826# work properly (i.e., refer to `conftest.exe'), while it won't with
3205# `rm'. 3827# `rm'.
3206for ac_file in conftest.exe conftest conftest.*; do 3828for ac_file in conftest.exe conftest conftest.*; do
3210 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3832 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3211 break;; 3833 break;;
3212 * ) break;; 3834 * ) break;;
3213 esac 3835 esac
3214done 3836done
3215else 3837else $as_nop
3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3838 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3839printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3218as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3840as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3219See \`config.log' for more details" "$LINENO" 5; } 3841See \`config.log' for more details" "$LINENO" 5; }
3220fi 3842fi
3221rm -f conftest conftest$ac_cv_exeext 3843rm -f conftest conftest$ac_cv_exeext
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3223$as_echo "$ac_cv_exeext" >&6; } 3845printf "%s\n" "$ac_cv_exeext" >&6; }
3224 3846
3225rm -f conftest.$ac_ext 3847rm -f conftest.$ac_ext
3226EXEEXT=$ac_cv_exeext 3848EXEEXT=$ac_cv_exeext
3227ac_exeext=$EXEEXT 3849ac_exeext=$EXEEXT
3228cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229/* end confdefs.h. */ 3851/* end confdefs.h. */
3230#include <stdio.h> 3852#include <stdio.h>
3231int 3853int
3232main () 3854main (void)
3233{ 3855{
3234FILE *f = fopen ("conftest.out", "w"); 3856FILE *f = fopen ("conftest.out", "w");
3235 return ferror (f) || fclose (f) != 0; 3857 return ferror (f) || fclose (f) != 0;
3236 3858
3237 ; 3859 ;
3239} 3861}
3240_ACEOF 3862_ACEOF
3241ac_clean_files="$ac_clean_files conftest.out" 3863ac_clean_files="$ac_clean_files conftest.out"
3242# Check that the compiler produces executables we can run. If not, either 3864# Check that the compiler produces executables we can run. If not, either
3243# the compiler is broken, or we cross compile. 3865# the compiler is broken, or we cross compile.
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3245$as_echo_n "checking whether we are cross compiling... " >&6; } 3867printf %s "checking whether we are cross compiling... " >&6; }
3246if test "$cross_compiling" != yes; then 3868if test "$cross_compiling" != yes; then
3247 { { ac_try="$ac_link" 3869 { { ac_try="$ac_link"
3248case "(($ac_try" in 3870case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;; 3872 *) ac_try_echo=$ac_try;;
3251esac 3873esac
3252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253$as_echo "$ac_try_echo"; } >&5 3875printf "%s\n" "$ac_try_echo"; } >&5
3254 (eval "$ac_link") 2>&5 3876 (eval "$ac_link") 2>&5
3255 ac_status=$? 3877 ac_status=$?
3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257 test $ac_status = 0; } 3879 test $ac_status = 0; }
3258 if { ac_try='./conftest$ac_cv_exeext' 3880 if { ac_try='./conftest$ac_cv_exeext'
3259 { { case "(($ac_try" in 3881 { { case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;; 3883 *) ac_try_echo=$ac_try;;
3262esac 3884esac
3263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264$as_echo "$ac_try_echo"; } >&5 3886printf "%s\n" "$ac_try_echo"; } >&5
3265 (eval "$ac_try") 2>&5 3887 (eval "$ac_try") 2>&5
3266 ac_status=$? 3888 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; }; then 3890 test $ac_status = 0; }; }; then
3269 cross_compiling=no 3891 cross_compiling=no
3270 else 3892 else
3271 if test "$cross_compiling" = maybe; then 3893 if test "$cross_compiling" = maybe; then
3272 cross_compiling=yes 3894 cross_compiling=yes
3273 else 3895 else
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3896 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3897printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3276as_fn_error $? "cannot run C compiled programs. 3898as_fn_error 77 "cannot run C compiled programs.
3277If you meant to cross compile, use \`--host'. 3899If you meant to cross compile, use \`--host'.
3278See \`config.log' for more details" "$LINENO" 5; } 3900See \`config.log' for more details" "$LINENO" 5; }
3279 fi 3901 fi
3280 fi 3902 fi
3281fi 3903fi
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3283$as_echo "$cross_compiling" >&6; } 3905printf "%s\n" "$cross_compiling" >&6; }
3284 3906
3285rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3907rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3286ac_clean_files=$ac_clean_files_save 3908ac_clean_files=$ac_clean_files_save
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3288$as_echo_n "checking for suffix of object files... " >&6; } 3910printf %s "checking for suffix of object files... " >&6; }
3289if ${ac_cv_objext+:} false; then : 3911if test ${ac_cv_objext+y}
3290 $as_echo_n "(cached) " >&6 3912then :
3291else 3913 printf %s "(cached) " >&6
3914else $as_nop
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h. */ 3916/* end confdefs.h. */
3294 3917
3295int 3918int
3296main () 3919main (void)
3297{ 3920{
3298 3921
3299 ; 3922 ;
3300 return 0; 3923 return 0;
3301} 3924}
3305case "(($ac_try" in 3928case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;; 3930 *) ac_try_echo=$ac_try;;
3308esac 3931esac
3309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310$as_echo "$ac_try_echo"; } >&5 3933printf "%s\n" "$ac_try_echo"; } >&5
3311 (eval "$ac_compile") 2>&5 3934 (eval "$ac_compile") 2>&5
3312 ac_status=$? 3935 ac_status=$?
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then : 3937 test $ac_status = 0; }
3938then :
3315 for ac_file in conftest.o conftest.obj conftest.*; do 3939 for ac_file in conftest.o conftest.obj conftest.*; do
3316 test -f "$ac_file" || continue; 3940 test -f "$ac_file" || continue;
3317 case $ac_file in 3941 case $ac_file in
3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3320 break;; 3944 break;;
3321 esac 3945 esac
3322done 3946done
3323else 3947else $as_nop
3324 $as_echo "$as_me: failed program was:" >&5 3948 printf "%s\n" "$as_me: failed program was:" >&5
3325sed 's/^/| /' conftest.$ac_ext >&5 3949sed 's/^/| /' conftest.$ac_ext >&5
3326 3950
3327{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3951{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3952printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3329as_fn_error $? "cannot compute suffix of object files: cannot compile 3953as_fn_error $? "cannot compute suffix of object files: cannot compile
3330See \`config.log' for more details" "$LINENO" 5; } 3954See \`config.log' for more details" "$LINENO" 5; }
3331fi 3955fi
3332rm -f conftest.$ac_cv_objext conftest.$ac_ext 3956rm -f conftest.$ac_cv_objext conftest.$ac_ext
3333fi 3957fi
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3335$as_echo "$ac_cv_objext" >&6; } 3959printf "%s\n" "$ac_cv_objext" >&6; }
3336OBJEXT=$ac_cv_objext 3960OBJEXT=$ac_cv_objext
3337ac_objext=$OBJEXT 3961ac_objext=$OBJEXT
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3339$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3963printf %s "checking whether the compiler supports GNU C... " >&6; }
3340if ${ac_cv_c_compiler_gnu+:} false; then : 3964if test ${ac_cv_c_compiler_gnu+y}
3341 $as_echo_n "(cached) " >&6 3965then :
3342else 3966 printf %s "(cached) " >&6
3967else $as_nop
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344/* end confdefs.h. */ 3969/* end confdefs.h. */
3345 3970
3346int 3971int
3347main () 3972main (void)
3348{ 3973{
3349#ifndef __GNUC__ 3974#ifndef __GNUC__
3350 choke me 3975 choke me
3351#endif 3976#endif
3352 3977
3353 ; 3978 ;
3354 return 0; 3979 return 0;
3355} 3980}
3356_ACEOF 3981_ACEOF
3357if ac_fn_c_try_compile "$LINENO"; then : 3982if ac_fn_c_try_compile "$LINENO"
3983then :
3358 ac_compiler_gnu=yes 3984 ac_compiler_gnu=yes
3359else 3985else $as_nop
3360 ac_compiler_gnu=no 3986 ac_compiler_gnu=no
3361fi 3987fi
3362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3363ac_cv_c_compiler_gnu=$ac_compiler_gnu 3989ac_cv_c_compiler_gnu=$ac_compiler_gnu
3364 3990
3365fi 3991fi
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3367$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3993printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3994ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995
3368if test $ac_compiler_gnu = yes; then 3996if test $ac_compiler_gnu = yes; then
3369 GCC=yes 3997 GCC=yes
3370else 3998else
3371 GCC= 3999 GCC=
3372fi 4000fi
3373ac_test_CFLAGS=${CFLAGS+set} 4001ac_test_CFLAGS=${CFLAGS+y}
3374ac_save_CFLAGS=$CFLAGS 4002ac_save_CFLAGS=$CFLAGS
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3376$as_echo_n "checking whether $CC accepts -g... " >&6; } 4004printf %s "checking whether $CC accepts -g... " >&6; }
3377if ${ac_cv_prog_cc_g+:} false; then : 4005if test ${ac_cv_prog_cc_g+y}
3378 $as_echo_n "(cached) " >&6 4006then :
3379else 4007 printf %s "(cached) " >&6
4008else $as_nop
3380 ac_save_c_werror_flag=$ac_c_werror_flag 4009 ac_save_c_werror_flag=$ac_c_werror_flag
3381 ac_c_werror_flag=yes 4010 ac_c_werror_flag=yes
3382 ac_cv_prog_cc_g=no 4011 ac_cv_prog_cc_g=no
3383 CFLAGS="-g" 4012 CFLAGS="-g"
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385/* end confdefs.h. */ 4014/* end confdefs.h. */
3386 4015
3387int 4016int
3388main () 4017main (void)
3389{ 4018{
3390 4019
3391 ; 4020 ;
3392 return 0; 4021 return 0;
3393} 4022}
3394_ACEOF 4023_ACEOF
3395if ac_fn_c_try_compile "$LINENO"; then : 4024if ac_fn_c_try_compile "$LINENO"
4025then :
3396 ac_cv_prog_cc_g=yes 4026 ac_cv_prog_cc_g=yes
3397else 4027else $as_nop
3398 CFLAGS="" 4028 CFLAGS=""
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400/* end confdefs.h. */ 4030/* end confdefs.h. */
3401 4031
3402int 4032int
3403main () 4033main (void)
3404{ 4034{
3405 4035
3406 ; 4036 ;
3407 return 0; 4037 return 0;
3408} 4038}
3409_ACEOF 4039_ACEOF
3410if ac_fn_c_try_compile "$LINENO"; then : 4040if ac_fn_c_try_compile "$LINENO"
4041then :
3411 4042
3412else 4043else $as_nop
3413 ac_c_werror_flag=$ac_save_c_werror_flag 4044 ac_c_werror_flag=$ac_save_c_werror_flag
3414 CFLAGS="-g" 4045 CFLAGS="-g"
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416/* end confdefs.h. */ 4047/* end confdefs.h. */
3417 4048
3418int 4049int
3419main () 4050main (void)
3420{ 4051{
3421 4052
3422 ; 4053 ;
3423 return 0; 4054 return 0;
3424} 4055}
3425_ACEOF 4056_ACEOF
3426if ac_fn_c_try_compile "$LINENO"; then : 4057if ac_fn_c_try_compile "$LINENO"
4058then :
3427 ac_cv_prog_cc_g=yes 4059 ac_cv_prog_cc_g=yes
3428fi 4060fi
3429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3430fi 4062fi
3431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3432fi 4064fi
3433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3434 ac_c_werror_flag=$ac_save_c_werror_flag 4066 ac_c_werror_flag=$ac_save_c_werror_flag
3435fi 4067fi
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3437$as_echo "$ac_cv_prog_cc_g" >&6; } 4069printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3438if test "$ac_test_CFLAGS" = set; then 4070if test $ac_test_CFLAGS; then
3439 CFLAGS=$ac_save_CFLAGS 4071 CFLAGS=$ac_save_CFLAGS
3440elif test $ac_cv_prog_cc_g = yes; then 4072elif test $ac_cv_prog_cc_g = yes; then
3441 if test "$GCC" = yes; then 4073 if test "$GCC" = yes; then
3442 CFLAGS="-g -O2" 4074 CFLAGS="-g -O2"
3443 else 4075 else
3448 CFLAGS="-O2" 4080 CFLAGS="-O2"
3449 else 4081 else
3450 CFLAGS= 4082 CFLAGS=
3451 fi 4083 fi
3452fi 4084fi
4085ac_prog_cc_stdc=no
4086if test x$ac_prog_cc_stdc = xno
4087then :
4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4089printf %s "checking for $CC option to enable C11 features... " >&6; }
4090if test ${ac_cv_prog_cc_c11+y}
4091then :
4092 printf %s "(cached) " >&6
4093else $as_nop
4094 ac_cv_prog_cc_c11=no
4095ac_save_CC=$CC
4096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097/* end confdefs.h. */
4098$ac_c_conftest_c11_program
4099_ACEOF
4100for ac_arg in '' -std=gnu11
4101do
4102 CC="$ac_save_CC $ac_arg"
4103 if ac_fn_c_try_compile "$LINENO"
4104then :
4105 ac_cv_prog_cc_c11=$ac_arg
4106fi
4107rm -f core conftest.err conftest.$ac_objext conftest.beam
4108 test "x$ac_cv_prog_cc_c11" != "xno" && break
4109done
4110rm -f conftest.$ac_ext
4111CC=$ac_save_CC
4112fi
4113
4114if test "x$ac_cv_prog_cc_c11" = xno
4115then :
4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4117printf "%s\n" "unsupported" >&6; }
4118else $as_nop
4119 if test "x$ac_cv_prog_cc_c11" = x
4120then :
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4122printf "%s\n" "none needed" >&6; }
4123else $as_nop
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4125printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4126 CC="$CC $ac_cv_prog_cc_c11"
4127fi
4128 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4129 ac_prog_cc_stdc=c11
4130fi
4131fi
4132if test x$ac_prog_cc_stdc = xno
4133then :
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4135printf %s "checking for $CC option to enable C99 features... " >&6; }
4136if test ${ac_cv_prog_cc_c99+y}
4137then :
4138 printf %s "(cached) " >&6
4139else $as_nop
4140 ac_cv_prog_cc_c99=no
4141ac_save_CC=$CC
4142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143/* end confdefs.h. */
4144$ac_c_conftest_c99_program
4145_ACEOF
4146for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4147do
4148 CC="$ac_save_CC $ac_arg"
4149 if ac_fn_c_try_compile "$LINENO"
4150then :
4151 ac_cv_prog_cc_c99=$ac_arg
4152fi
4153rm -f core conftest.err conftest.$ac_objext conftest.beam
4154 test "x$ac_cv_prog_cc_c99" != "xno" && break
4155done
4156rm -f conftest.$ac_ext
4157CC=$ac_save_CC
4158fi
4159
4160if test "x$ac_cv_prog_cc_c99" = xno
4161then :
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4163printf "%s\n" "unsupported" >&6; }
4164else $as_nop
4165 if test "x$ac_cv_prog_cc_c99" = x
4166then :
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4168printf "%s\n" "none needed" >&6; }
4169else $as_nop
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4171printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4172 CC="$CC $ac_cv_prog_cc_c99"
4173fi
4174 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4175 ac_prog_cc_stdc=c99
4176fi
4177fi
4178if test x$ac_prog_cc_stdc = xno
4179then :
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3454$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4181printf %s "checking for $CC option to enable C89 features... " >&6; }
3455if ${ac_cv_prog_cc_c89+:} false; then : 4182if test ${ac_cv_prog_cc_c89+y}
3456 $as_echo_n "(cached) " >&6 4183then :
3457else 4184 printf %s "(cached) " >&6
4185else $as_nop
3458 ac_cv_prog_cc_c89=no 4186 ac_cv_prog_cc_c89=no
3459ac_save_CC=$CC 4187ac_save_CC=$CC
3460cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461/* end confdefs.h. */ 4189/* end confdefs.h. */
3462#include <stdarg.h> 4190$ac_c_conftest_c89_program
3463#include <stdio.h>
3464#include <sys/types.h>
3465#include <sys/stat.h>
3466/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3467struct buf { int x; };
3468FILE * (*rcsopen) (struct buf *, struct stat *, int);
3469static char *e (p, i)
3470 char **p;
3471 int i;
3472{
3473 return p[i];
3474}
3475static char *f (char * (*g) (char **, int), char **p, ...)
3476{
3477 char *s;
3478 va_list v;
3479 va_start (v,p);
3480 s = g (p, va_arg (v,int));
3481 va_end (v);
3482 return s;
3483}
3484
3485/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3486 function prototypes and stuff, but not '\xHH' hex character constants.
3487 These don't provoke an error unfortunately, instead are silently treated
3488 as 'x'. The following induces an error, until -std is added to get
3489 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3490 array size at least. It's necessary to write '\x00'==0 to get something
3491 that's true only with -std. */
3492int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3493
3494/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3495 inside strings and character constants. */
3496#define FOO(x) 'x'
3497int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3498
3499int test (int i, double x);
3500struct s1 {int (*f) (int a);};
3501struct s2 {int (*f) (double a);};
3502int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3503int argc;
3504char **argv;
3505int
3506main ()
3507{
3508return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3509 ;
3510 return 0;
3511}
3512_ACEOF 4191_ACEOF
3513for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4192for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3514 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3515do 4193do
3516 CC="$ac_save_CC $ac_arg" 4194 CC="$ac_save_CC $ac_arg"
3517 if ac_fn_c_try_compile "$LINENO"; then : 4195 if ac_fn_c_try_compile "$LINENO"
4196then :
3518 ac_cv_prog_cc_c89=$ac_arg 4197 ac_cv_prog_cc_c89=$ac_arg
3519fi 4198fi
3520rm -f core conftest.err conftest.$ac_objext 4199rm -f core conftest.err conftest.$ac_objext conftest.beam
3521 test "x$ac_cv_prog_cc_c89" != "xno" && break 4200 test "x$ac_cv_prog_cc_c89" != "xno" && break
3522done 4201done
3523rm -f conftest.$ac_ext 4202rm -f conftest.$ac_ext
3524CC=$ac_save_CC 4203CC=$ac_save_CC
3525
3526fi 4204fi
3527# AC_CACHE_VAL 4205
3528case "x$ac_cv_prog_cc_c89" in 4206if test "x$ac_cv_prog_cc_c89" = xno
3529 x) 4207then :
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3531$as_echo "none needed" >&6; } ;;
3532 xno)
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3534$as_echo "unsupported" >&6; } ;; 4209printf "%s\n" "unsupported" >&6; }
3535 *) 4210else $as_nop
4211 if test "x$ac_cv_prog_cc_c89" = x
4212then :
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4214printf "%s\n" "none needed" >&6; }
4215else $as_nop
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4217printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3536 CC="$CC $ac_cv_prog_cc_c89" 4218 CC="$CC $ac_cv_prog_cc_c89"
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4219fi
3538$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4220 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3539esac 4221 ac_prog_cc_stdc=c89
3540if test "x$ac_cv_prog_cc_c89" != xno; then : 4222fi
3541
3542fi 4223fi
3543 4224
3544ac_ext=c 4225ac_ext=c
3545ac_cpp='$CPP $CPPFLAGS' 4226ac_cpp='$CPP $CPPFLAGS'
3546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548ac_compiler_gnu=$ac_cv_c_compiler_gnu 4229ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230
4231
4232
4233
4234
4235
3549 4236
3550ac_ext=cpp 4237ac_ext=cpp
3551ac_cpp='$CXXCPP $CPPFLAGS' 4238ac_cpp='$CXXCPP $CPPFLAGS'
3552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3555if test -z "$CXX"; then 4242if test -z "$CXX"; then
3556 if test -n "$CCC"; then 4243 if test -n "$CCC"; then
3557 CXX=$CCC 4244 CXX=$CCC
3558 else 4245 else
3559 if test -n "$ac_tool_prefix"; then 4246 if test -n "$ac_tool_prefix"; then
3560 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4247 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3561 do 4248 do
3562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4249 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3563set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4250set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565$as_echo_n "checking for $ac_word... " >&6; } 4252printf %s "checking for $ac_word... " >&6; }
3566if ${ac_cv_prog_CXX+:} false; then : 4253if test ${ac_cv_prog_CXX+y}
3567 $as_echo_n "(cached) " >&6 4254then :
3568else 4255 printf %s "(cached) " >&6
4256else $as_nop
3569 if test -n "$CXX"; then 4257 if test -n "$CXX"; then
3570 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4258 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3571else 4259else
3572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573for as_dir in $PATH 4261for as_dir in $PATH
3574do 4262do
3575 IFS=$as_save_IFS 4263 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=. 4264 case $as_dir in #(((
4265 '') as_dir=./ ;;
4266 */) ;;
4267 *) as_dir=$as_dir/ ;;
4268 esac
3577 for ac_exec_ext in '' $ac_executable_extensions; do 4269 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4270 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3579 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4271 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3581 break 2 4273 break 2
3582 fi 4274 fi
3583done 4275done
3584 done 4276 done
3585IFS=$as_save_IFS 4277IFS=$as_save_IFS
3586 4278
3587fi 4279fi
3588fi 4280fi
3589CXX=$ac_cv_prog_CXX 4281CXX=$ac_cv_prog_CXX
3590if test -n "$CXX"; then 4282if test -n "$CXX"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3592$as_echo "$CXX" >&6; } 4284printf "%s\n" "$CXX" >&6; }
3593else 4285else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595$as_echo "no" >&6; } 4287printf "%s\n" "no" >&6; }
3596fi 4288fi
3597 4289
3598 4290
3599 test -n "$CXX" && break 4291 test -n "$CXX" && break
3600 done 4292 done
3601fi 4293fi
3602if test -z "$CXX"; then 4294if test -z "$CXX"; then
3603 ac_ct_CXX=$CXX 4295 ac_ct_CXX=$CXX
3604 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4296 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3605do 4297do
3606 # Extract the first word of "$ac_prog", so it can be a program name with args. 4298 # Extract the first word of "$ac_prog", so it can be a program name with args.
3607set dummy $ac_prog; ac_word=$2 4299set dummy $ac_prog; ac_word=$2
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609$as_echo_n "checking for $ac_word... " >&6; } 4301printf %s "checking for $ac_word... " >&6; }
3610if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4302if test ${ac_cv_prog_ac_ct_CXX+y}
3611 $as_echo_n "(cached) " >&6 4303then :
3612else 4304 printf %s "(cached) " >&6
4305else $as_nop
3613 if test -n "$ac_ct_CXX"; then 4306 if test -n "$ac_ct_CXX"; then
3614 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4307 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3615else 4308else
3616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617for as_dir in $PATH 4310for as_dir in $PATH
3618do 4311do
3619 IFS=$as_save_IFS 4312 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=. 4313 case $as_dir in #(((
4314 '') as_dir=./ ;;
4315 */) ;;
4316 *) as_dir=$as_dir/ ;;
4317 esac
3621 for ac_exec_ext in '' $ac_executable_extensions; do 4318 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3623 ac_cv_prog_ac_ct_CXX="$ac_prog" 4320 ac_cv_prog_ac_ct_CXX="$ac_prog"
3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3625 break 2 4322 break 2
3626 fi 4323 fi
3627done 4324done
3628 done 4325 done
3629IFS=$as_save_IFS 4326IFS=$as_save_IFS
3630 4327
3631fi 4328fi
3632fi 4329fi
3633ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4330ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3634if test -n "$ac_ct_CXX"; then 4331if test -n "$ac_ct_CXX"; then
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3636$as_echo "$ac_ct_CXX" >&6; } 4333printf "%s\n" "$ac_ct_CXX" >&6; }
3637else 4334else
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639$as_echo "no" >&6; } 4336printf "%s\n" "no" >&6; }
3640fi 4337fi
3641 4338
3642 4339
3643 test -n "$ac_ct_CXX" && break 4340 test -n "$ac_ct_CXX" && break
3644done 4341done
3646 if test "x$ac_ct_CXX" = x; then 4343 if test "x$ac_ct_CXX" = x; then
3647 CXX="g++" 4344 CXX="g++"
3648 else 4345 else
3649 case $cross_compiling:$ac_tool_warned in 4346 case $cross_compiling:$ac_tool_warned in
3650yes:) 4347yes:)
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4349printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3653ac_tool_warned=yes ;; 4350ac_tool_warned=yes ;;
3654esac 4351esac
3655 CXX=$ac_ct_CXX 4352 CXX=$ac_ct_CXX
3656 fi 4353 fi
3657fi 4354fi
3658 4355
3659 fi 4356 fi
3660fi 4357fi
3661# Provide some information about the compiler. 4358# Provide some information about the compiler.
3662$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4359printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3663set X $ac_compile 4360set X $ac_compile
3664ac_compiler=$2 4361ac_compiler=$2
3665for ac_option in --version -v -V -qversion; do 4362for ac_option in --version -v -V -qversion; do
3666 { { ac_try="$ac_compiler $ac_option >&5" 4363 { { ac_try="$ac_compiler $ac_option >&5"
3667case "(($ac_try" in 4364case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;; 4366 *) ac_try_echo=$ac_try;;
3670esac 4367esac
3671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672$as_echo "$ac_try_echo"; } >&5 4369printf "%s\n" "$ac_try_echo"; } >&5
3673 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4370 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3674 ac_status=$? 4371 ac_status=$?
3675 if test -s conftest.err; then 4372 if test -s conftest.err; then
3676 sed '10a\ 4373 sed '10a\
3677... rest of stderr output deleted ... 4374... rest of stderr output deleted ...
3678 10q' conftest.err >conftest.er1 4375 10q' conftest.err >conftest.er1
3679 cat conftest.er1 >&5 4376 cat conftest.er1 >&5
3680 fi 4377 fi
3681 rm -f conftest.er1 conftest.err 4378 rm -f conftest.er1 conftest.err
3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683 test $ac_status = 0; } 4380 test $ac_status = 0; }
3684done 4381done
3685 4382
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3687$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4384printf %s "checking whether the compiler supports GNU C++... " >&6; }
3688if ${ac_cv_cxx_compiler_gnu+:} false; then : 4385if test ${ac_cv_cxx_compiler_gnu+y}
3689 $as_echo_n "(cached) " >&6 4386then :
3690else 4387 printf %s "(cached) " >&6
4388else $as_nop
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692/* end confdefs.h. */ 4390/* end confdefs.h. */
3693 4391
3694int 4392int
3695main () 4393main (void)
3696{ 4394{
3697#ifndef __GNUC__ 4395#ifndef __GNUC__
3698 choke me 4396 choke me
3699#endif 4397#endif
3700 4398
3701 ; 4399 ;
3702 return 0; 4400 return 0;
3703} 4401}
3704_ACEOF 4402_ACEOF
3705if ac_fn_cxx_try_compile "$LINENO"; then : 4403if ac_fn_cxx_try_compile "$LINENO"
4404then :
3706 ac_compiler_gnu=yes 4405 ac_compiler_gnu=yes
3707else 4406else $as_nop
3708 ac_compiler_gnu=no 4407 ac_compiler_gnu=no
3709fi 4408fi
3710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3711ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4410ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3712 4411
3713fi 4412fi
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3715$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4414printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4416
3716if test $ac_compiler_gnu = yes; then 4417if test $ac_compiler_gnu = yes; then
3717 GXX=yes 4418 GXX=yes
3718else 4419else
3719 GXX= 4420 GXX=
3720fi 4421fi
3721ac_test_CXXFLAGS=${CXXFLAGS+set} 4422ac_test_CXXFLAGS=${CXXFLAGS+y}
3722ac_save_CXXFLAGS=$CXXFLAGS 4423ac_save_CXXFLAGS=$CXXFLAGS
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3724$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4425printf %s "checking whether $CXX accepts -g... " >&6; }
3725if ${ac_cv_prog_cxx_g+:} false; then : 4426if test ${ac_cv_prog_cxx_g+y}
3726 $as_echo_n "(cached) " >&6 4427then :
3727else 4428 printf %s "(cached) " >&6
4429else $as_nop
3728 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4430 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3729 ac_cxx_werror_flag=yes 4431 ac_cxx_werror_flag=yes
3730 ac_cv_prog_cxx_g=no 4432 ac_cv_prog_cxx_g=no
3731 CXXFLAGS="-g" 4433 CXXFLAGS="-g"
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733/* end confdefs.h. */ 4435/* end confdefs.h. */
3734 4436
3735int 4437int
3736main () 4438main (void)
3737{ 4439{
3738 4440
3739 ; 4441 ;
3740 return 0; 4442 return 0;
3741} 4443}
3742_ACEOF 4444_ACEOF
3743if ac_fn_cxx_try_compile "$LINENO"; then : 4445if ac_fn_cxx_try_compile "$LINENO"
4446then :
3744 ac_cv_prog_cxx_g=yes 4447 ac_cv_prog_cxx_g=yes
3745else 4448else $as_nop
3746 CXXFLAGS="" 4449 CXXFLAGS=""
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748/* end confdefs.h. */ 4451/* end confdefs.h. */
3749 4452
3750int 4453int
3751main () 4454main (void)
3752{ 4455{
3753 4456
3754 ; 4457 ;
3755 return 0; 4458 return 0;
3756} 4459}
3757_ACEOF 4460_ACEOF
3758if ac_fn_cxx_try_compile "$LINENO"; then : 4461if ac_fn_cxx_try_compile "$LINENO"
4462then :
3759 4463
3760else 4464else $as_nop
3761 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4465 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3762 CXXFLAGS="-g" 4466 CXXFLAGS="-g"
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h. */ 4468/* end confdefs.h. */
3765 4469
3766int 4470int
3767main () 4471main (void)
3768{ 4472{
3769 4473
3770 ; 4474 ;
3771 return 0; 4475 return 0;
3772} 4476}
3773_ACEOF 4477_ACEOF
3774if ac_fn_cxx_try_compile "$LINENO"; then : 4478if ac_fn_cxx_try_compile "$LINENO"
4479then :
3775 ac_cv_prog_cxx_g=yes 4480 ac_cv_prog_cxx_g=yes
3776fi 4481fi
3777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3778fi 4483fi
3779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3780fi 4485fi
3781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3782 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4487 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3783fi 4488fi
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3785$as_echo "$ac_cv_prog_cxx_g" >&6; } 4490printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
3786if test "$ac_test_CXXFLAGS" = set; then 4491if test $ac_test_CXXFLAGS; then
3787 CXXFLAGS=$ac_save_CXXFLAGS 4492 CXXFLAGS=$ac_save_CXXFLAGS
3788elif test $ac_cv_prog_cxx_g = yes; then 4493elif test $ac_cv_prog_cxx_g = yes; then
3789 if test "$GXX" = yes; then 4494 if test "$GXX" = yes; then
3790 CXXFLAGS="-g -O2" 4495 CXXFLAGS="-g -O2"
3791 else 4496 else
3796 CXXFLAGS="-O2" 4501 CXXFLAGS="-O2"
3797 else 4502 else
3798 CXXFLAGS= 4503 CXXFLAGS=
3799 fi 4504 fi
3800fi 4505fi
4506ac_prog_cxx_stdcxx=no
4507if test x$ac_prog_cxx_stdcxx = xno
4508then :
4509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4510printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4511if test ${ac_cv_prog_cxx_cxx11+y}
4512then :
4513 printf %s "(cached) " >&6
4514else $as_nop
4515 ac_cv_prog_cxx_cxx11=no
4516ac_save_CXX=$CXX
4517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518/* end confdefs.h. */
4519$ac_cxx_conftest_cxx11_program
4520_ACEOF
4521for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4522do
4523 CXX="$ac_save_CXX $ac_arg"
4524 if ac_fn_cxx_try_compile "$LINENO"
4525then :
4526 ac_cv_prog_cxx_cxx11=$ac_arg
4527fi
4528rm -f core conftest.err conftest.$ac_objext conftest.beam
4529 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4530done
4531rm -f conftest.$ac_ext
4532CXX=$ac_save_CXX
4533fi
4534
4535if test "x$ac_cv_prog_cxx_cxx11" = xno
4536then :
4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4538printf "%s\n" "unsupported" >&6; }
4539else $as_nop
4540 if test "x$ac_cv_prog_cxx_cxx11" = x
4541then :
4542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4543printf "%s\n" "none needed" >&6; }
4544else $as_nop
4545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4546printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4547 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4548fi
4549 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4550 ac_prog_cxx_stdcxx=cxx11
4551fi
4552fi
4553if test x$ac_prog_cxx_stdcxx = xno
4554then :
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4556printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4557if test ${ac_cv_prog_cxx_cxx98+y}
4558then :
4559 printf %s "(cached) " >&6
4560else $as_nop
4561 ac_cv_prog_cxx_cxx98=no
4562ac_save_CXX=$CXX
4563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564/* end confdefs.h. */
4565$ac_cxx_conftest_cxx98_program
4566_ACEOF
4567for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4568do
4569 CXX="$ac_save_CXX $ac_arg"
4570 if ac_fn_cxx_try_compile "$LINENO"
4571then :
4572 ac_cv_prog_cxx_cxx98=$ac_arg
4573fi
4574rm -f core conftest.err conftest.$ac_objext conftest.beam
4575 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4576done
4577rm -f conftest.$ac_ext
4578CXX=$ac_save_CXX
4579fi
4580
4581if test "x$ac_cv_prog_cxx_cxx98" = xno
4582then :
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4584printf "%s\n" "unsupported" >&6; }
4585else $as_nop
4586 if test "x$ac_cv_prog_cxx_cxx98" = x
4587then :
4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4589printf "%s\n" "none needed" >&6; }
4590else $as_nop
4591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4592printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4593 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4594fi
4595 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4596 ac_prog_cxx_stdcxx=cxx98
4597fi
4598fi
4599
3801ac_ext=c 4600ac_ext=c
3802ac_cpp='$CPP $CPPFLAGS' 4601ac_cpp='$CPP $CPPFLAGS'
3803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805ac_compiler_gnu=$ac_cv_c_compiler_gnu 4604ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806 4605
3807ac_ext=c
3808ac_cpp='$CPP $CPPFLAGS'
3809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3813$as_echo_n "checking how to run the C preprocessor... " >&6; }
3814# On Suns, sometimes $CPP names a directory.
3815if test -n "$CPP" && test -d "$CPP"; then
3816 CPP=
3817fi
3818if test -z "$CPP"; then
3819 if ${ac_cv_prog_CPP+:} false; then :
3820 $as_echo_n "(cached) " >&6
3821else
3822 # Double quotes because CPP needs to be expanded
3823 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3824 do
3825 ac_preproc_ok=false
3826for ac_c_preproc_warn_flag in '' yes
3827do
3828 # Use a header file that comes with gcc, so configuring glibc
3829 # with a fresh cross-compiler works.
3830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3831 # <limits.h> exists even on freestanding compilers.
3832 # On the NeXT, cc -E runs the code through the compiler's parser,
3833 # not just through cpp. "Syntax error" is here to catch this case.
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h. */
3836#ifdef __STDC__
3837# include <limits.h>
3838#else
3839# include <assert.h>
3840#endif
3841 Syntax error
3842_ACEOF
3843if ac_fn_c_try_cpp "$LINENO"; then :
3844 4606
3845else
3846 # Broken: fails on valid input.
3847continue
3848fi
3849rm -f conftest.err conftest.i conftest.$ac_ext
3850
3851 # OK, works on sane cases. Now check whether nonexistent headers
3852 # can be detected and how.
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854/* end confdefs.h. */
3855#include <ac_nonexistent.h>
3856_ACEOF
3857if ac_fn_c_try_cpp "$LINENO"; then :
3858 # Broken: success on invalid input.
3859continue
3860else
3861 # Passes both tests.
3862ac_preproc_ok=:
3863break
3864fi
3865rm -f conftest.err conftest.i conftest.$ac_ext
3866
3867done
3868# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3869rm -f conftest.i conftest.err conftest.$ac_ext
3870if $ac_preproc_ok; then :
3871 break
3872fi
3873
3874 done
3875 ac_cv_prog_CPP=$CPP
3876
3877fi
3878 CPP=$ac_cv_prog_CPP
3879else
3880 ac_cv_prog_CPP=$CPP
3881fi
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3883$as_echo "$CPP" >&6; }
3884ac_preproc_ok=false
3885for ac_c_preproc_warn_flag in '' yes
3886do
3887 # Use a header file that comes with gcc, so configuring glibc
3888 # with a fresh cross-compiler works.
3889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3890 # <limits.h> exists even on freestanding compilers.
3891 # On the NeXT, cc -E runs the code through the compiler's parser,
3892 # not just through cpp. "Syntax error" is here to catch this case.
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894/* end confdefs.h. */
3895#ifdef __STDC__
3896# include <limits.h>
3897#else
3898# include <assert.h>
3899#endif
3900 Syntax error
3901_ACEOF
3902if ac_fn_c_try_cpp "$LINENO"; then :
3903
3904else
3905 # Broken: fails on valid input.
3906continue
3907fi
3908rm -f conftest.err conftest.i conftest.$ac_ext
3909
3910 # OK, works on sane cases. Now check whether nonexistent headers
3911 # can be detected and how.
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h. */
3914#include <ac_nonexistent.h>
3915_ACEOF
3916if ac_fn_c_try_cpp "$LINENO"; then :
3917 # Broken: success on invalid input.
3918continue
3919else
3920 # Passes both tests.
3921ac_preproc_ok=:
3922break
3923fi
3924rm -f conftest.err conftest.i conftest.$ac_ext
3925
3926done
3927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3928rm -f conftest.i conftest.err conftest.$ac_ext
3929if $ac_preproc_ok; then :
3930
3931else
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3935See \`config.log' for more details" "$LINENO" 5; }
3936fi
3937
3938ac_ext=c
3939ac_cpp='$CPP $CPPFLAGS'
3940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943
3944# Find a good install program. We prefer a C program (faster), 4607 # Find a good install program. We prefer a C program (faster),
3945# so one script is as good as another. But avoid the broken or 4608# so one script is as good as another. But avoid the broken or
3946# incompatible versions: 4609# incompatible versions:
3947# SysV /etc/install, /usr/sbin/install 4610# SysV /etc/install, /usr/sbin/install
3948# SunOS /usr/etc/install 4611# SunOS /usr/etc/install
3949# IRIX /sbin/install 4612# IRIX /sbin/install
3953# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4616# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3954# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4617# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3955# OS/2's system install, which has a completely different semantic 4618# OS/2's system install, which has a completely different semantic
3956# ./install, which can be erroneously created by make from ./install.sh. 4619# ./install, which can be erroneously created by make from ./install.sh.
3957# Reject install programs that cannot install multiple files. 4620# Reject install programs that cannot install multiple files.
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3959$as_echo_n "checking for a BSD-compatible install... " >&6; } 4622printf %s "checking for a BSD-compatible install... " >&6; }
3960if test -z "$INSTALL"; then 4623if test -z "$INSTALL"; then
3961if ${ac_cv_path_install+:} false; then : 4624if test ${ac_cv_path_install+y}
3962 $as_echo_n "(cached) " >&6 4625then :
3963else 4626 printf %s "(cached) " >&6
4627else $as_nop
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH 4629for as_dir in $PATH
3966do 4630do
3967 IFS=$as_save_IFS 4631 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=. 4632 case $as_dir in #(((
4633 '') as_dir=./ ;;
4634 */) ;;
4635 *) as_dir=$as_dir/ ;;
4636 esac
3969 # Account for people who put trailing slashes in PATH elements. 4637 # Account for fact that we put trailing slashes in our PATH walk.
3970case $as_dir/ in #(( 4638case $as_dir in #((
3971 ./ | .// | /[cC]/* | \ 4639 ./ | /[cC]/* | \
3972 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4640 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3973 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4641 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3974 /usr/ucb/* ) ;; 4642 /usr/ucb/* ) ;;
3975 *) 4643 *)
3976 # OSF1 and SCO ODT 3.0 have their own names for install. 4644 # OSF1 and SCO ODT 3.0 have their own names for install.
3977 # Don't use installbsd from OSF since it installs stuff as root 4645 # Don't use installbsd from OSF since it installs stuff as root
3978 # by default. 4646 # by default.
3979 for ac_prog in ginstall scoinst install; do 4647 for ac_prog in ginstall scoinst install; do
3980 for ac_exec_ext in '' $ac_executable_extensions; do 4648 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4649 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3982 if test $ac_prog = install && 4650 if test $ac_prog = install &&
3983 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4651 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3984 # AIX install. It has an incompatible calling convention. 4652 # AIX install. It has an incompatible calling convention.
3985 : 4653 :
3986 elif test $ac_prog = install && 4654 elif test $ac_prog = install &&
3987 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4655 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3988 # program-specific install script used by HP pwplus--don't use. 4656 # program-specific install script used by HP pwplus--don't use.
3989 : 4657 :
3990 else 4658 else
3991 rm -rf conftest.one conftest.two conftest.dir 4659 rm -rf conftest.one conftest.two conftest.dir
3992 echo one > conftest.one 4660 echo one > conftest.one
3993 echo two > conftest.two 4661 echo two > conftest.two
3994 mkdir conftest.dir 4662 mkdir conftest.dir
3995 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4663 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3996 test -s conftest.one && test -s conftest.two && 4664 test -s conftest.one && test -s conftest.two &&
3997 test -s conftest.dir/conftest.one && 4665 test -s conftest.dir/conftest.one &&
3998 test -s conftest.dir/conftest.two 4666 test -s conftest.dir/conftest.two
3999 then 4667 then
4000 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4668 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4001 break 3 4669 break 3
4002 fi 4670 fi
4003 fi 4671 fi
4004 fi 4672 fi
4005 done 4673 done
4011IFS=$as_save_IFS 4679IFS=$as_save_IFS
4012 4680
4013rm -rf conftest.one conftest.two conftest.dir 4681rm -rf conftest.one conftest.two conftest.dir
4014 4682
4015fi 4683fi
4016 if test "${ac_cv_path_install+set}" = set; then 4684 if test ${ac_cv_path_install+y}; then
4017 INSTALL=$ac_cv_path_install 4685 INSTALL=$ac_cv_path_install
4018 else 4686 else
4019 # As a last resort, use the slow shell script. Don't cache a 4687 # As a last resort, use the slow shell script. Don't cache a
4020 # value for INSTALL within a source directory, because that will 4688 # value for INSTALL within a source directory, because that will
4021 # break other packages using the cache if that directory is 4689 # break other packages using the cache if that directory is
4022 # removed, or if the value is a relative name. 4690 # removed, or if the value is a relative name.
4023 INSTALL=$ac_install_sh 4691 INSTALL=$ac_install_sh
4024 fi 4692 fi
4025fi 4693fi
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4027$as_echo "$INSTALL" >&6; } 4695printf "%s\n" "$INSTALL" >&6; }
4028 4696
4029# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4697# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4030# It thinks the first close brace ends the variable substitution. 4698# It thinks the first close brace ends the variable substitution.
4031test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4699test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4032 4700
4034 4702
4035test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4703test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4036 4704
4037 4705
4038 4706
4039 4707ac_header= ac_cache=
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4708for ac_item in $ac_header_c_list
4041$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4042if ${ac_cv_path_GREP+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044else
4045 if test -z "$GREP"; then
4046 ac_path_GREP_found=false
4047 # Loop through the user's path and test for each of PROGNAME-LIST
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4050do 4709do
4051 IFS=$as_save_IFS 4710 if test $ac_cache; then
4052 test -z "$as_dir" && as_dir=. 4711 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4053 for ac_prog in grep ggrep; do 4712 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4054 for ac_exec_ext in '' $ac_executable_extensions; do 4713 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4055 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4056 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4057# Check for GNU ac_path_GREP and select it if it is found.
4058 # Check for GNU $ac_path_GREP
4059case `"$ac_path_GREP" --version 2>&1` in
4060*GNU*)
4061 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4062*)
4063 ac_count=0
4064 $as_echo_n 0123456789 >"conftest.in"
4065 while :
4066 do
4067 cat "conftest.in" "conftest.in" >"conftest.tmp"
4068 mv "conftest.tmp" "conftest.in"
4069 cp "conftest.in" "conftest.nl"
4070 $as_echo 'GREP' >> "conftest.nl"
4071 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4073 as_fn_arith $ac_count + 1 && ac_count=$as_val
4074 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4075 # Best one so far, save it but keep looking for a better one
4076 ac_cv_path_GREP="$ac_path_GREP"
4077 ac_path_GREP_max=$ac_count
4078 fi 4714 fi
4079 # 10*(2^10) chars as input seems more than enough 4715 ac_header= ac_cache=
4080 test $ac_count -gt 10 && break 4716 elif test $ac_header; then
4081 done 4717 ac_cache=$ac_item
4082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4083esac
4084
4085 $ac_path_GREP_found && break 3
4086 done
4087 done
4088 done
4089IFS=$as_save_IFS
4090 if test -z "$ac_cv_path_GREP"; then
4091 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4092 fi
4093else
4094 ac_cv_path_GREP=$GREP
4095fi
4096
4097fi
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4099$as_echo "$ac_cv_path_GREP" >&6; }
4100 GREP="$ac_cv_path_GREP"
4101
4102
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4104$as_echo_n "checking for egrep... " >&6; }
4105if ${ac_cv_path_EGREP+:} false; then :
4106 $as_echo_n "(cached) " >&6
4107else
4108 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4109 then ac_cv_path_EGREP="$GREP -E"
4110 else 4718 else
4111 if test -z "$EGREP"; then 4719 ac_header=$ac_item
4112 ac_path_EGREP_found=false
4113 # Loop through the user's path and test for each of PROGNAME-LIST
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4116do
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
4119 for ac_prog in egrep; do
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4122 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4123# Check for GNU ac_path_EGREP and select it if it is found.
4124 # Check for GNU $ac_path_EGREP
4125case `"$ac_path_EGREP" --version 2>&1` in
4126*GNU*)
4127 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4128*)
4129 ac_count=0
4130 $as_echo_n 0123456789 >"conftest.in"
4131 while :
4132 do
4133 cat "conftest.in" "conftest.in" >"conftest.tmp"
4134 mv "conftest.tmp" "conftest.in"
4135 cp "conftest.in" "conftest.nl"
4136 $as_echo 'EGREP' >> "conftest.nl"
4137 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4139 as_fn_arith $ac_count + 1 && ac_count=$as_val
4140 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4141 # Best one so far, save it but keep looking for a better one
4142 ac_cv_path_EGREP="$ac_path_EGREP"
4143 ac_path_EGREP_max=$ac_count
4144 fi
4145 # 10*(2^10) chars as input seems more than enough
4146 test $ac_count -gt 10 && break
4147 done
4148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4149esac
4150
4151 $ac_path_EGREP_found && break 3
4152 done
4153 done
4154 done
4155IFS=$as_save_IFS
4156 if test -z "$ac_cv_path_EGREP"; then
4157 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4158 fi
4159else
4160 ac_cv_path_EGREP=$EGREP
4161fi
4162
4163 fi 4720 fi
4164fi 4721done
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4166$as_echo "$ac_cv_path_EGREP" >&6; }
4167 EGREP="$ac_cv_path_EGREP"
4168 4722
4169 4723
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4724
4171$as_echo_n "checking for ANSI C header files... " >&6; } 4725
4172if ${ac_cv_header_stdc+:} false; then : 4726
4173 $as_echo_n "(cached) " >&6 4727
4174else 4728
4729
4730if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4731then :
4732
4733printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4734
4735fi
4736
4737
4738
4739
4740
4741
4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4743printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4744if test ${ac_cv_safe_to_define___extensions__+y}
4745then :
4746 printf %s "(cached) " >&6
4747else $as_nop
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176/* end confdefs.h. */ 4749/* end confdefs.h. */
4177#include <stdlib.h>
4178#include <stdarg.h>
4179#include <string.h>
4180#include <float.h>
4181 4750
4751# define __EXTENSIONS__ 1
4752 $ac_includes_default
4182int 4753int
4183main () 4754main (void)
4184{ 4755{
4185 4756
4186 ; 4757 ;
4187 return 0; 4758 return 0;
4188} 4759}
4189_ACEOF 4760_ACEOF
4190if ac_fn_c_try_compile "$LINENO"; then : 4761if ac_fn_c_try_compile "$LINENO"
4191 ac_cv_header_stdc=yes 4762then :
4192else 4763 ac_cv_safe_to_define___extensions__=yes
4193 ac_cv_header_stdc=no 4764else $as_nop
4765 ac_cv_safe_to_define___extensions__=no
4194fi 4766fi
4195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4768fi
4769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4770printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4196 4771
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4773printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4774if test ${ac_cv_should_define__xopen_source+y}
4775then :
4776 printf %s "(cached) " >&6
4777else $as_nop
4778 ac_cv_should_define__xopen_source=no
4197if test $ac_cv_header_stdc = yes; then 4779 if test $ac_cv_header_wchar_h = yes
4198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4780then :
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200/* end confdefs.h. */ 4782/* end confdefs.h. */
4201#include <string.h>
4202 4783
4784 #include <wchar.h>
4785 mbstate_t x;
4786int
4787main (void)
4788{
4789
4790 ;
4791 return 0;
4792}
4203_ACEOF 4793_ACEOF
4204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4794if ac_fn_c_try_compile "$LINENO"
4205 $EGREP "memchr" >/dev/null 2>&1; then : 4795then :
4206 4796
4207else 4797else $as_nop
4208 ac_cv_header_stdc=no
4209fi
4210rm -f conftest*
4211
4212fi
4213
4214if test $ac_cv_header_stdc = yes; then
4215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217/* end confdefs.h. */ 4799/* end confdefs.h. */
4218#include <stdlib.h>
4219 4800
4220_ACEOF 4801 #define _XOPEN_SOURCE 500
4221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4802 #include <wchar.h>
4222 $EGREP "free" >/dev/null 2>&1; then : 4803 mbstate_t x;
4223
4224else
4225 ac_cv_header_stdc=no
4226fi
4227rm -f conftest*
4228
4229fi
4230
4231if test $ac_cv_header_stdc = yes; then
4232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4233 if test "$cross_compiling" = yes; then :
4234 :
4235else
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237/* end confdefs.h. */
4238#include <ctype.h>
4239#include <stdlib.h>
4240#if ((' ' & 0x0FF) == 0x020)
4241# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4242# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4243#else
4244# define ISLOWER(c) \
4245 (('a' <= (c) && (c) <= 'i') \
4246 || ('j' <= (c) && (c) <= 'r') \
4247 || ('s' <= (c) && (c) <= 'z'))
4248# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4249#endif
4250
4251#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4252int 4804int
4253main () 4805main (void)
4254{
4255 int i;
4256 for (i = 0; i < 256; i++)
4257 if (XOR (islower (i), ISLOWER (i))
4258 || toupper (i) != TOUPPER (i))
4259 return 2;
4260 return 0;
4261}
4262_ACEOF
4263if ac_fn_c_try_run "$LINENO"; then :
4264
4265else
4266 ac_cv_header_stdc=no
4267fi
4268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4269 conftest.$ac_objext conftest.beam conftest.$ac_ext
4270fi
4271
4272fi
4273fi
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4275$as_echo "$ac_cv_header_stdc" >&6; }
4276if test $ac_cv_header_stdc = yes; then
4277
4278$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4279
4280fi
4281
4282# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4283for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4284 inttypes.h stdint.h unistd.h
4285do :
4286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4287ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4288"
4289if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4290 cat >>confdefs.h <<_ACEOF
4291#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4292_ACEOF
4293
4294fi
4295
4296done
4297
4298
4299
4300 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4301if test "x$ac_cv_header_minix_config_h" = xyes; then :
4302 MINIX=yes
4303else
4304 MINIX=
4305fi
4306
4307
4308 if test "$MINIX" = yes; then
4309
4310$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4311
4312
4313$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4314
4315
4316$as_echo "#define _MINIX 1" >>confdefs.h
4317
4318 fi
4319
4320
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4322$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4323if ${ac_cv_safe_to_define___extensions__+:} false; then :
4324 $as_echo_n "(cached) " >&6
4325else
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327/* end confdefs.h. */
4328
4329# define __EXTENSIONS__ 1
4330 $ac_includes_default
4331int
4332main ()
4333{ 4806{
4334 4807
4335 ; 4808 ;
4336 return 0; 4809 return 0;
4337} 4810}
4338_ACEOF 4811_ACEOF
4339if ac_fn_c_try_compile "$LINENO"; then : 4812if ac_fn_c_try_compile "$LINENO"
4340 ac_cv_safe_to_define___extensions__=yes 4813then :
4341else 4814 ac_cv_should_define__xopen_source=yes
4342 ac_cv_safe_to_define___extensions__=no
4343fi 4815fi
4344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4345fi 4817fi
4818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4819fi
4820fi
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4347$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4822printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4823
4824 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4825
4826 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4827
4828 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4829
4830 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4831
4832 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4833
4834 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4835
4836 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4837
4838 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4839
4840 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4841
4842 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4843
4844 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4845
4846 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4847
4848 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4849
4850 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4851
4852 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4853
4854 if test $ac_cv_header_minix_config_h = yes
4855then :
4856 MINIX=yes
4857 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4858
4859 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4860
4861 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4862
4863else $as_nop
4864 MINIX=
4865fi
4348 test $ac_cv_safe_to_define___extensions__ = yes && 4866 if test $ac_cv_safe_to_define___extensions__ = yes
4867then :
4349 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4868 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4350 4869
4351 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4870fi
4871 if test $ac_cv_should_define__xopen_source = yes
4872then :
4873 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4352 4874
4353 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4875fi
4354 4876
4355 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4877ac_ext=cpp
4878ac_cpp='$CXXCPP $CPPFLAGS'
4879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4356 4882
4357 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4358 4883
4884if test "$ac_prog_cxx_stdcxx" != cxx11; then
4885 as_fn_error $? "the compiler does not support C++11" "$LINENO" 5
4886fi
4359 4887
4888LINKER="$CXX"
4889if test x$GCC = xyes && test x$GXX = xyes; then
4890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
4891printf %s "checking for working libsupc++... " >&6; }
4892 save_CXX="$CXX"
4893 save_LIBS="$LIBS"
4894 CXX="$CC"
4895 LIBS="$LIBS -lsupc++"
4360 4896
4897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898/* end confdefs.h. */
4899struct test { }; void f() try { throw new test; } catch (...) { throw; }
4900int
4901main (void)
4902{
4361 4903
4904 ;
4905 return 0;
4906}
4907_ACEOF
4908if ac_fn_cxx_try_link "$LINENO"
4909then :
4910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4911printf "%s\n" "ok" >&6; }
4912 LINKER="$CC"
4913else $as_nop
4914
4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
4916printf "%s\n" "no, making everything bigger and slower" >&6; }
4917 LIBS="$save_LIBS"
4918
4919
4920fi
4921rm -f core conftest.err conftest.$ac_objext conftest.beam \
4922 conftest$ac_exeext conftest.$ac_ext
4923 CXX="$save_CXX"
4924fi
4925LINKER=$LINKER
4926
4927
4928if test -z "$orig_CXXFLAGS"; then
4929 if test x$GCC = xyes && test "x$GXX" = xyes; then
4930 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932/* end confdefs.h. */
4933
4934int
4935main (void)
4936{
4937
4938 ;
4939 return 0;
4940}
4941_ACEOF
4942if ac_fn_cxx_try_compile "$LINENO"
4943then :
4944
4945else $as_nop
4946 CXXFLAGS="-g -O3"
4947fi
4948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4949 else
4950 CXXFLAGS="-O"
4951 fi
4952 CFLAGS="$CXXFLAGS"
4953fi
4954
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 4955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
4363$as_echo_n "checking for library containing strerror... " >&6; } 4956printf %s "checking for library containing setlocale... " >&6; }
4364if ${ac_cv_search_strerror+:} false; then : 4957if test ${ac_cv_search_setlocale+y}
4365 $as_echo_n "(cached) " >&6 4958then :
4366else 4959 printf %s "(cached) " >&6
4960else $as_nop
4367 ac_func_search_save_LIBS=$LIBS 4961 ac_func_search_save_LIBS=$LIBS
4368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369/* end confdefs.h. */ 4963/* end confdefs.h. */
4370 4964
4371/* Override any GCC internal prototype to avoid an error. 4965namespace conftest {
4372 Use char because int might match the return type of a GCC 4966 extern "C" int setlocale ();
4373 builtin and then its argument prototype would still apply. */ 4967}
4374#ifdef __cplusplus
4375extern "C"
4376#endif
4377char strerror ();
4378int 4968int
4379main () 4969main (void)
4380{ 4970{
4381return strerror (); 4971return conftest::setlocale ();
4382 ; 4972 ;
4383 return 0; 4973 return 0;
4384} 4974}
4385_ACEOF 4975_ACEOF
4386for ac_lib in '' cposix; do 4976for ac_lib in '' xpg4
4977do
4387 if test -z "$ac_lib"; then 4978 if test -z "$ac_lib"; then
4388 ac_res="none required" 4979 ac_res="none required"
4389 else 4980 else
4390 ac_res=-l$ac_lib 4981 ac_res=-l$ac_lib
4391 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4392 fi 4983 fi
4393 if ac_fn_c_try_link "$LINENO"; then : 4984 if ac_fn_cxx_try_link "$LINENO"
4985then :
4394 ac_cv_search_strerror=$ac_res 4986 ac_cv_search_setlocale=$ac_res
4395fi 4987fi
4396rm -f core conftest.err conftest.$ac_objext \ 4988rm -f core conftest.err conftest.$ac_objext conftest.beam \
4397 conftest$ac_exeext 4989 conftest$ac_exeext
4398 if ${ac_cv_search_strerror+:} false; then : 4990 if test ${ac_cv_search_setlocale+y}
4991then :
4399 break 4992 break
4400fi 4993fi
4401done 4994done
4402if ${ac_cv_search_strerror+:} false; then : 4995if test ${ac_cv_search_setlocale+y}
4996then :
4403 4997
4404else 4998else $as_nop
4405 ac_cv_search_strerror=no 4999 ac_cv_search_setlocale=no
4406fi 5000fi
4407rm conftest.$ac_ext 5001rm conftest.$ac_ext
4408LIBS=$ac_func_search_save_LIBS 5002LIBS=$ac_func_search_save_LIBS
4409fi 5003fi
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 5004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5
4411$as_echo "$ac_cv_search_strerror" >&6; } 5005printf "%s\n" "$ac_cv_search_setlocale" >&6; }
4412ac_res=$ac_cv_search_strerror 5006ac_res=$ac_cv_search_setlocale
4413if test "$ac_res" != no; then : 5007if test "$ac_res" != no
5008then :
4414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5009 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4415 5010
4416fi 5011fi
4417 5012
4418ac_ext=cpp
4419ac_cpp='$CXXCPP $CPPFLAGS'
4420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4423 5013
4424
4425if test x$GCC = xyes && test x$GXX = xyes; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
4427$as_echo_n "checking for working libsupc++... " >&6; }
4428 save_CXX="$CXX"
4429 save_LIBS="$LIBS"
4430 CXX="$CC"
4431 LIBS="$LIBS -lsupc++"
4432 LINKER="$CC"
4433
4434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435/* end confdefs.h. */
4436struct test { }; void f() try { throw new test; } catch (...) { throw; }
4437int
4438main ()
4439{
4440
4441 ;
4442 return 0;
4443}
4444_ACEOF
4445if ac_fn_cxx_try_link "$LINENO"; then :
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4447$as_echo "ok" >&6; }
4448else
4449
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
4451$as_echo "no, making everything bigger and slower" >&6; }
4452 LIBS="$save_LIBS"
4453 LINKER="$save_CXX"
4454
4455
4456fi
4457rm -f core conftest.err conftest.$ac_objext \
4458 conftest$ac_exeext conftest.$ac_ext
4459 CXX="$save_CXX"
4460fi
4461LINKER=$LINKER
4462
4463
4464if test -z "$orig_CXXFLAGS"; then
4465 if test x$GCC = xyes && test "x$GXX" = xyes; then
4466 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468/* end confdefs.h. */
4469
4470int
4471main ()
4472{
4473
4474 ;
4475 return 0;
4476}
4477_ACEOF
4478if ac_fn_cxx_try_compile "$LINENO"; then :
4479
4480else
4481 CXXFLAGS="-g -O3"
4482fi
4483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 else
4485 CXXFLAGS="-O"
4486 fi
4487 CFLAGS="$CXXFLAGS"
4488fi
4489
4490case $host in
4491 *-*-solaris* )
4492
4493$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4494
4495 ;;
4496esac
4497
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5 5014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4499$as_echo_n "checking for library containing setlocale... " >&6; } 5015printf %s "checking for library containing gethostbyname... " >&6; }
4500if ${ac_cv_search_setlocale+:} false; then : 5016if test ${ac_cv_search_gethostbyname+y}
4501 $as_echo_n "(cached) " >&6 5017then :
4502else 5018 printf %s "(cached) " >&6
5019else $as_nop
4503 ac_func_search_save_LIBS=$LIBS 5020 ac_func_search_save_LIBS=$LIBS
4504cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505/* end confdefs.h. */ 5022/* end confdefs.h. */
4506 5023
4507/* Override any GCC internal prototype to avoid an error. 5024namespace conftest {
4508 Use char because int might match the return type of a GCC 5025 extern "C" int gethostbyname ();
4509 builtin and then its argument prototype would still apply. */ 5026}
4510#ifdef __cplusplus
4511extern "C"
4512#endif
4513char setlocale ();
4514int 5027int
4515main () 5028main (void)
4516{ 5029{
4517return setlocale (); 5030return conftest::gethostbyname ();
4518 ; 5031 ;
4519 return 0; 5032 return 0;
4520} 5033}
4521_ACEOF 5034_ACEOF
4522for ac_lib in '' xpg4; do 5035for ac_lib in '' nsl
5036do
4523 if test -z "$ac_lib"; then 5037 if test -z "$ac_lib"; then
4524 ac_res="none required" 5038 ac_res="none required"
4525 else 5039 else
4526 ac_res=-l$ac_lib 5040 ac_res=-l$ac_lib
4527 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4528 fi 5042 fi
4529 if ac_fn_cxx_try_link "$LINENO"; then : 5043 if ac_fn_cxx_try_link "$LINENO"
5044then :
4530 ac_cv_search_setlocale=$ac_res 5045 ac_cv_search_gethostbyname=$ac_res
4531fi 5046fi
4532rm -f core conftest.err conftest.$ac_objext \ 5047rm -f core conftest.err conftest.$ac_objext conftest.beam \
4533 conftest$ac_exeext 5048 conftest$ac_exeext
4534 if ${ac_cv_search_setlocale+:} false; then : 5049 if test ${ac_cv_search_gethostbyname+y}
5050then :
4535 break 5051 break
4536fi 5052fi
4537done 5053done
4538if ${ac_cv_search_setlocale+:} false; then : 5054if test ${ac_cv_search_gethostbyname+y}
5055then :
4539 5056
4540else 5057else $as_nop
4541 ac_cv_search_setlocale=no 5058 ac_cv_search_gethostbyname=no
4542fi 5059fi
4543rm conftest.$ac_ext 5060rm conftest.$ac_ext
4544LIBS=$ac_func_search_save_LIBS 5061LIBS=$ac_func_search_save_LIBS
4545fi 5062fi
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5 5063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4547$as_echo "$ac_cv_search_setlocale" >&6; } 5064printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
4548ac_res=$ac_cv_search_setlocale 5065ac_res=$ac_cv_search_gethostbyname
4549if test "$ac_res" != no; then : 5066if test "$ac_res" != no
5067then :
4550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4551 5069
4552fi 5070fi
4553 5071
4554
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 5072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4556$as_echo_n "checking for library containing gethostbyname... " >&6; } 5073printf %s "checking for library containing socket... " >&6; }
4557if ${ac_cv_search_gethostbyname+:} false; then : 5074if test ${ac_cv_search_socket+y}
4558 $as_echo_n "(cached) " >&6 5075then :
4559else 5076 printf %s "(cached) " >&6
5077else $as_nop
4560 ac_func_search_save_LIBS=$LIBS 5078 ac_func_search_save_LIBS=$LIBS
4561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562/* end confdefs.h. */ 5080/* end confdefs.h. */
4563 5081
4564/* Override any GCC internal prototype to avoid an error. 5082namespace conftest {
4565 Use char because int might match the return type of a GCC 5083 extern "C" int socket ();
4566 builtin and then its argument prototype would still apply. */ 5084}
4567#ifdef __cplusplus
4568extern "C"
4569#endif
4570char gethostbyname ();
4571int 5085int
4572main () 5086main (void)
4573{ 5087{
4574return gethostbyname (); 5088return conftest::socket ();
4575 ; 5089 ;
4576 return 0; 5090 return 0;
4577} 5091}
4578_ACEOF 5092_ACEOF
4579for ac_lib in '' nsl; do 5093for ac_lib in '' socket
5094do
4580 if test -z "$ac_lib"; then 5095 if test -z "$ac_lib"; then
4581 ac_res="none required" 5096 ac_res="none required"
4582 else 5097 else
4583 ac_res=-l$ac_lib 5098 ac_res=-l$ac_lib
4584 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4585 fi 5100 fi
4586 if ac_fn_cxx_try_link "$LINENO"; then : 5101 if ac_fn_cxx_try_link "$LINENO"
5102then :
4587 ac_cv_search_gethostbyname=$ac_res 5103 ac_cv_search_socket=$ac_res
4588fi 5104fi
4589rm -f core conftest.err conftest.$ac_objext \ 5105rm -f core conftest.err conftest.$ac_objext conftest.beam \
4590 conftest$ac_exeext 5106 conftest$ac_exeext
4591 if ${ac_cv_search_gethostbyname+:} false; then : 5107 if test ${ac_cv_search_socket+y}
5108then :
4592 break 5109 break
4593fi 5110fi
4594done 5111done
4595if ${ac_cv_search_gethostbyname+:} false; then : 5112if test ${ac_cv_search_socket+y}
5113then :
4596 5114
4597else 5115else $as_nop
4598 ac_cv_search_gethostbyname=no 5116 ac_cv_search_socket=no
4599fi 5117fi
4600rm conftest.$ac_ext 5118rm conftest.$ac_ext
4601LIBS=$ac_func_search_save_LIBS 5119LIBS=$ac_func_search_save_LIBS
4602fi 5120fi
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4604$as_echo "$ac_cv_search_gethostbyname" >&6; }
4605ac_res=$ac_cv_search_gethostbyname
4606if test "$ac_res" != no; then :
4607 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4608
4609fi
4610
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4612$as_echo_n "checking for library containing socket... " >&6; }
4613if ${ac_cv_search_socket+:} false; then :
4614 $as_echo_n "(cached) " >&6
4615else
4616 ac_func_search_save_LIBS=$LIBS
4617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618/* end confdefs.h. */
4619
4620/* Override any GCC internal prototype to avoid an error.
4621 Use char because int might match the return type of a GCC
4622 builtin and then its argument prototype would still apply. */
4623#ifdef __cplusplus
4624extern "C"
4625#endif
4626char socket ();
4627int
4628main ()
4629{
4630return socket ();
4631 ;
4632 return 0;
4633}
4634_ACEOF
4635for ac_lib in '' socket; do
4636 if test -z "$ac_lib"; then
4637 ac_res="none required"
4638 else
4639 ac_res=-l$ac_lib
4640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4641 fi
4642 if ac_fn_cxx_try_link "$LINENO"; then :
4643 ac_cv_search_socket=$ac_res
4644fi
4645rm -f core conftest.err conftest.$ac_objext \
4646 conftest$ac_exeext
4647 if ${ac_cv_search_socket+:} false; then :
4648 break
4649fi
4650done
4651if ${ac_cv_search_socket+:} false; then :
4652
4653else
4654 ac_cv_search_socket=no
4655fi
4656rm conftest.$ac_ext
4657LIBS=$ac_func_search_save_LIBS
4658fi
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 5121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4660$as_echo "$ac_cv_search_socket" >&6; } 5122printf "%s\n" "$ac_cv_search_socket" >&6; }
4661ac_res=$ac_cv_search_socket 5123ac_res=$ac_cv_search_socket
4662if test "$ac_res" != no; then : 5124if test "$ac_res" != no
5125then :
4663 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5126 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4664 5127
4665fi 5128fi
4666 5129
4667 5130
4678support_scroll_next=yes 5141support_scroll_next=yes
4679support_scroll_xterm=yes 5142support_scroll_xterm=yes
4680support_xim=yes 5143support_xim=yes
4681support_pixbuf=yes 5144support_pixbuf=yes
4682support_startup_notification=yes 5145support_startup_notification=yes
4683support_afterimage=yes
4684support_xft=yes 5146support_xft=yes
4685support_unicode3=no 5147support_unicode3=no
4686support_combining=yes 5148support_combining=yes
4687support_8bitctrls=no 5149support_8bitctrls=no
4688support_iso14755=yes 5150support_iso14755=yes
4690support_perl=yes 5152support_perl=yes
4691codesets=all 5153codesets=all
4692 5154
4693 5155
4694# Check whether --enable-everything was given. 5156# Check whether --enable-everything was given.
4695if test "${enable_everything+set}" = set; then : 5157if test ${enable_everything+y}
5158then :
4696 enableval=$enable_everything; 5159 enableval=$enable_everything;
4697 if test x$enableval = xno; then 5160 if test x$enableval = xno; then
4698 support_frills=no 5161 support_frills=no
4699 support_inheritpixmap=no 5162 support_inheritpixmap=no
4700 support_fading=no 5163 support_fading=no
4711 support_utmp=no 5174 support_utmp=no
4712 support_wtmp=no 5175 support_wtmp=no
4713 support_xim=no 5176 support_xim=no
4714 support_pixbuf=no 5177 support_pixbuf=no
4715 support_startup_notification=no 5178 support_startup_notification=no
4716 support_afterimage=no
4717 support_xft=no 5179 support_xft=no
4718 support_unicode3=no 5180 support_unicode3=no
4719 support_combining=no 5181 support_combining=no
4720 support_8bitctrls=no 5182 support_8bitctrls=no
4721 support_iso14755=no 5183 support_iso14755=no
4740 support_utmp=yes 5202 support_utmp=yes
4741 support_wtmp=yes 5203 support_wtmp=yes
4742 support_xim=yes 5204 support_xim=yes
4743 support_pixbuf=yes 5205 support_pixbuf=yes
4744 support_startup_notification=yes 5206 support_startup_notification=yes
4745 support_afterimage=yes
4746 support_xft=yes 5207 support_xft=yes
4747 support_unicode3=yes 5208 support_unicode3=yes
4748 support_combining=yes 5209 support_combining=yes
4749 #support_8bitctrls=yes 5210 #support_8bitctrls=yes
4750 support_iso14755=yes 5211 support_iso14755=yes
4754 fi 5215 fi
4755 5216
4756fi 5217fi
4757 5218
4758 5219
4759ASSERTIONS=no 5220support_assertions=no
4760# Check whether --enable-assert was given. 5221# Check whether --enable-assert was given.
4761if test "${enable_assert+set}" = set; then : 5222if test ${enable_assert+y}
5223then :
4762 enableval=$enable_assert; if test x$enableval = xyes; then 5224 enableval=$enable_assert; if test x$enableval = xyes; then
4763 ASSERTIONS=yes 5225 support_assertions=yes
4764 fi 5226 fi
4765fi 5227fi
4766 5228
4767if test x$ASSERTIONS = xno; then 5229if test x$support_assertions = xno; then
4768 5230
4769$as_echo "#define NDEBUG 1" >>confdefs.h 5231printf "%s\n" "#define NDEBUG 1" >>confdefs.h
4770 5232
4771fi 5233fi
4772 5234
4773WARNINGS=no 5235support_warnings=no
4774# Check whether --enable-warnings was given. 5236# Check whether --enable-warnings was given.
4775if test "${enable_warnings+set}" = set; then : 5237if test ${enable_warnings+y}
5238then :
4776 enableval=$enable_warnings; if test x$enableval = xyes; then 5239 enableval=$enable_warnings; if test x$enableval = xyes; then
4777 WARNINGS=yes 5240 support_warnings=yes
4778 fi 5241 fi
4779fi 5242fi
4780 5243
4781if test x$GXX = xyes; then 5244if test x$GXX = xyes; then
4782 if test $WARNINGS = yes; then 5245 if test $support_warnings = yes; then
4783 save_CXXFLAGS="$CXXFLAGS" 5246 save_CXXFLAGS="$CXXFLAGS"
4784 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" 5247 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value"
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786/* end confdefs.h. */ 5249/* end confdefs.h. */
4787 5250
4788int 5251int
4789main () 5252main (void)
4790{ 5253{
4791 5254
4792 ; 5255 ;
4793 return 0; 5256 return 0;
4794} 5257}
4795_ACEOF 5258_ACEOF
4796if ac_fn_cxx_try_compile "$LINENO"; then : 5259if ac_fn_cxx_try_compile "$LINENO"
5260then :
4797 5261
4798else 5262else $as_nop
4799 CXXFLAGS="$save_CXXFLAGS" 5263 CXXFLAGS="$save_CXXFLAGS"
4800fi 5264fi
4801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4802 else 5266 else
4803 CXXFLAGS="$CXXFLAGS -w" 5267 CXXFLAGS="$CXXFLAGS -w"
4804 fi 5268 fi
4805fi 5269fi
4806 5270
4807support_256_color=no 5271support_256_color=no
4808# Check whether --enable-256-color was given. 5272# Check whether --enable-256-color was given.
4809if test "${enable_256_color+set}" = set; then : 5273if test ${enable_256_color+y}
5274then :
4810 enableval=$enable_256_color; if test x$enableval = xyes; then 5275 enableval=$enable_256_color; if test x$enableval = xyes; then
4811 support_256_color=yes 5276 support_256_color=yes
4812 fi 5277 fi
4813fi 5278fi
4814 5279
4815if test x$support_256_color = xyes; then 5280if test x$support_256_color = xyes; then
4816 5281
4817$as_echo "#define USE_256_COLORS 1" >>confdefs.h 5282printf "%s\n" "#define USE_256_COLORS 1" >>confdefs.h
4818 5283
4819fi 5284fi
4820 5285
4821# Check whether --enable-unicode3 was given. 5286# Check whether --enable-unicode3 was given.
4822if test "${enable_unicode3+set}" = set; then : 5287if test ${enable_unicode3+y}
5288then :
4823 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 5289 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4824 support_unicode3=$enableval 5290 support_unicode3=$enableval
4825 fi 5291 fi
4826fi 5292fi
4827 5293
4828 5294
4829# Check whether --enable-combining was given. 5295# Check whether --enable-combining was given.
4830if test "${enable_combining+set}" = set; then : 5296if test ${enable_combining+y}
5297then :
4831 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then 5298 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then
4832 support_combining=$enableval 5299 support_combining=$enableval
4833 fi 5300 fi
4834fi 5301fi
4835 5302
4836 5303
4837# Check whether --enable-xft was given. 5304# Check whether --enable-xft was given.
4838if test "${enable_xft+set}" = set; then : 5305if test ${enable_xft+y}
5306then :
4839 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then 5307 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then
4840 support_xft=$enableval 5308 support_xft=$enableval
4841 fi 5309 fi
4842fi 5310fi
4843 5311
4844 5312
4845# Check whether --enable-font-styles was given. 5313# Check whether --enable-font-styles was given.
4846if test "${enable_font_styles+set}" = set; then : 5314if test ${enable_font_styles+y}
5315then :
4847 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then 5316 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
4848 support_styles=$enableval 5317 support_styles=$enableval
4849 fi 5318 fi
4850fi 5319fi
4851 5320
4852 5321
4853# Check whether --enable-afterimage was given.
4854if test "${enable_afterimage+set}" = set; then :
4855 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4856 support_afterimage=$enableval
4857 fi
4858fi
4859
4860
4861
4862# Check whether --with-afterimage_config was given.
4863if test "${with_afterimage_config+set}" = set; then :
4864 withval=$with_afterimage_config; if test "x$withval" != x; then
4865 afterimage_config=$withval/afterimage-config
4866 fi
4867fi
4868
4869
4870# Check whether --enable-pixbuf was given. 5322# Check whether --enable-pixbuf was given.
4871if test "${enable_pixbuf+set}" = set; then : 5323if test ${enable_pixbuf+y}
5324then :
4872 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then 5325 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then
4873 support_pixbuf=$enableval 5326 support_pixbuf=$enableval
4874 fi 5327 fi
4875fi 5328fi
4876 5329
4877 5330
4878# Check whether --enable-startup-notification was given. 5331# Check whether --enable-startup-notification was given.
4879if test "${enable_startup_notification+set}" = set; then : 5332if test ${enable_startup_notification+y}
5333then :
4880 enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then 5334 enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then
4881 support_startup_notification=$enableval 5335 support_startup_notification=$enableval
4882 fi 5336 fi
4883fi 5337fi
4884 5338
4885 5339
4886# Check whether --enable-transparency was given. 5340# Check whether --enable-transparency was given.
4887if test "${enable_transparency+set}" = set; then : 5341if test ${enable_transparency+y}
5342then :
4888 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then 5343 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4889 support_inheritpixmap=$enableval 5344 support_inheritpixmap=$enableval
4890 fi 5345 fi
4891fi 5346fi
4892 5347
4893 5348
4894# Check whether --enable-fading was given. 5349# Check whether --enable-fading was given.
4895if test "${enable_fading+set}" = set; then : 5350if test ${enable_fading+y}
5351then :
4896 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then 5352 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4897 support_fading=$enableval 5353 support_fading=$enableval
4898 fi 5354 fi
4899fi 5355fi
4900 5356
4901 5357
4902# Check whether --enable-rxvt-scroll was given. 5358# Check whether --enable-rxvt-scroll was given.
4903if test "${enable_rxvt_scroll+set}" = set; then : 5359if test ${enable_rxvt_scroll+y}
5360then :
4904 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then 5361 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4905 support_scroll_rxvt=$enableval 5362 support_scroll_rxvt=$enableval
4906 fi 5363 fi
4907fi 5364fi
4908 5365
4909 5366
4910# Check whether --enable-next-scroll was given. 5367# Check whether --enable-next-scroll was given.
4911if test "${enable_next_scroll+set}" = set; then : 5368if test ${enable_next_scroll+y}
5369then :
4912 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then 5370 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4913 support_scroll_next=$enableval 5371 support_scroll_next=$enableval
4914 fi 5372 fi
4915fi 5373fi
4916 5374
4917 5375
4918# Check whether --enable-xterm-scroll was given. 5376# Check whether --enable-xterm-scroll was given.
4919if test "${enable_xterm_scroll+set}" = set; then : 5377if test ${enable_xterm_scroll+y}
5378then :
4920 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then 5379 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4921 support_scroll_xterm=$enableval 5380 support_scroll_xterm=$enableval
4922 fi 5381 fi
4923fi 5382fi
4924 5383
4925 5384
4926# Check whether --enable-perl was given. 5385# Check whether --enable-perl was given.
4927if test "${enable_perl+set}" = set; then : 5386if test ${enable_perl+y}
5387then :
4928 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then 5388 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4929 support_perl=$enableval 5389 support_perl=$enableval
4930 fi 5390 fi
4931fi 5391fi
4932 5392
4933 5393
4934 5394
4935# Check whether --with-codesets was given. 5395# Check whether --with-codesets was given.
4936if test "${with_codesets+set}" = set; then : 5396if test ${with_codesets+y}
5397then :
4937 withval=$with_codesets; codesets="$withval" 5398 withval=$with_codesets; codesets="$withval"
4938fi 5399fi
4939 5400
4940 5401
4941# Check whether --enable-xim was given. 5402# Check whether --enable-xim was given.
4942if test "${enable_xim+set}" = set; then : 5403if test ${enable_xim+y}
5404then :
4943 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then 5405 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
4944 support_xim=$enableval 5406 support_xim=$enableval
4945 fi 5407 fi
4946fi 5408fi
4947 5409
4948 5410
4949# Check whether --enable-backspace-key was given. 5411# Check whether --enable-backspace-key was given.
4950if test "${enable_backspace_key+set}" = set; then : 5412if test ${enable_backspace_key+y}
5413then :
4951 enableval=$enable_backspace_key; if test x$enableval = xno; then 5414 enableval=$enable_backspace_key; if test x$enableval = xno; then
4952 5415
4953$as_echo "#define NO_BACKSPACE_KEY 1" >>confdefs.h 5416printf "%s\n" "#define NO_BACKSPACE_KEY 1" >>confdefs.h
4954 5417
4955 fi 5418 fi
4956fi 5419fi
4957 5420
4958 5421
4959# Check whether --enable-delete-key was given. 5422# Check whether --enable-delete-key was given.
4960if test "${enable_delete_key+set}" = set; then : 5423if test ${enable_delete_key+y}
5424then :
4961 enableval=$enable_delete_key; if test x$enableval = xno; then 5425 enableval=$enable_delete_key; if test x$enableval = xno; then
4962 5426
4963$as_echo "#define NO_DELETE_KEY 1" >>confdefs.h 5427printf "%s\n" "#define NO_DELETE_KEY 1" >>confdefs.h
4964 5428
4965 fi 5429 fi
4966fi 5430fi
4967 5431
4968 5432
5433support_resources=yes
4969# Check whether --enable-resources was given. 5434# Check whether --enable-resources was given.
4970if test "${enable_resources+set}" = set; then : 5435if test ${enable_resources+y}
5436then :
4971 enableval=$enable_resources; if test x$enableval = xno; then 5437 enableval=$enable_resources; if test x$enableval = xno; then
4972 5438 support_resources=no
4973$as_echo "#define NO_RESOURCES 1" >>confdefs.h
4974
4975 fi 5439 fi
4976fi 5440fi
4977 5441
4978 5442
4979# Check whether --enable-8bitctrls was given. 5443# Check whether --enable-8bitctrls was given.
4980if test "${enable_8bitctrls+set}" = set; then : 5444if test ${enable_8bitctrls+y}
5445then :
4981 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then 5446 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
4982 support_8bitctrls=$enableval 5447 support_8bitctrls=$enableval
4983 fi 5448 fi
4984fi 5449fi
4985 5450
4986 5451
4987RESFALLBACK=Rxvt 5452RESFALLBACK=Rxvt
4988# Check whether --enable-fallback was given. 5453# Check whether --enable-fallback was given.
4989if test "${enable_fallback+set}" = set; then : 5454if test ${enable_fallback+y}
5455then :
4990 enableval=$enable_fallback; 5456 enableval=$enable_fallback;
4991 test x$enableval = xyes && enableval=Rxvt 5457 test x$enableval = xyes && enableval=Rxvt
4992 test x$enableval = xno && enableval= 5458 test x$enableval = xno && enableval=
4993 RESFALLBACK="$enableval" 5459 RESFALLBACK="$enableval"
4994 5460
4995fi 5461fi
4996 5462
4997 5463
4998if test x$RESFALLBACK != x; then 5464if test x$RESFALLBACK != x; then
4999 5465
5000cat >>confdefs.h <<_ACEOF 5466printf "%s\n" "#define RESFALLBACK \"$RESFALLBACK\"" >>confdefs.h
5001#define RESFALLBACK "$RESFALLBACK"
5002_ACEOF
5003 5467
5004fi 5468fi
5005 5469
5006RESNAME=urxvt 5470RESNAME=urxvt
5007 5471
5008# Check whether --with-res-name was given. 5472# Check whether --with-res-name was given.
5009if test "${with_res_name+set}" = set; then : 5473if test ${with_res_name+y}
5474then :
5010 withval=$with_res_name; RESNAME="$withval" 5475 withval=$with_res_name; RESNAME="$withval"
5011fi 5476fi
5012 5477
5013 5478
5014cat >>confdefs.h <<_ACEOF 5479printf "%s\n" "#define RESNAME \"$RESNAME\"" >>confdefs.h
5015#define RESNAME "$RESNAME"
5016_ACEOF
5017 5480
5018 5481
5019RESCLASS=URxvt 5482RESCLASS=URxvt
5020 5483
5021# Check whether --with-res-class was given. 5484# Check whether --with-res-class was given.
5022if test "${with_res_class+set}" = set; then : 5485if test ${with_res_class+y}
5486then :
5023 withval=$with_res_class; RESCLASS="$withval" 5487 withval=$with_res_class; RESCLASS="$withval"
5024fi 5488fi
5025 5489
5026 5490
5027cat >>confdefs.h <<_ACEOF 5491printf "%s\n" "#define RESCLASS \"$RESCLASS\"" >>confdefs.h
5028#define RESCLASS "$RESCLASS"
5029_ACEOF
5030 5492
5031 5493
5032RXVTNAME=urxvt 5494RXVTNAME=urxvt
5033 5495
5034# Check whether --with-name was given. 5496# Check whether --with-name was given.
5035if test "${with_name+set}" = set; then : 5497if test ${with_name+y}
5498then :
5036 withval=$with_name; RXVTNAME="$withval" 5499 withval=$with_name; RXVTNAME="$withval"
5037fi 5500fi
5038 5501
5039 5502
5040cat >>confdefs.h <<_ACEOF 5503printf "%s\n" "#define RXVTNAME \"$RXVTNAME\"" >>confdefs.h
5041#define RXVTNAME "$RXVTNAME"
5042_ACEOF
5043 5504
5044 5505
5045 5506
5046 5507
5047# Check whether --enable-swapscreen was given. 5508# Check whether --enable-swapscreen was given.
5048if test "${enable_swapscreen+set}" = set; then : 5509if test ${enable_swapscreen+y}
5510then :
5049 enableval=$enable_swapscreen; if test x$enableval = xno; then 5511 enableval=$enable_swapscreen; if test x$enableval = xno; then
5050 5512
5051$as_echo "#define NO_SECONDARY_SCREEN 1" >>confdefs.h 5513printf "%s\n" "#define NO_SECONDARY_SCREEN 1" >>confdefs.h
5052 5514
5053 fi 5515 fi
5054fi 5516fi
5055 5517
5056 5518
5057# Check whether --enable-iso14755 was given. 5519# Check whether --enable-iso14755 was given.
5058if test "${enable_iso14755+set}" = set; then : 5520if test ${enable_iso14755+y}
5521then :
5059 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then 5522 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
5060 support_iso14755=$enableval 5523 support_iso14755=$enableval
5061 fi 5524 fi
5062fi 5525fi
5063 5526
5064 5527
5065# Check whether --enable-frills was given. 5528# Check whether --enable-frills was given.
5066if test "${enable_frills+set}" = set; then : 5529if test ${enable_frills+y}
5530then :
5067 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then 5531 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
5068 support_frills=$enableval 5532 support_frills=$enableval
5069 fi 5533 fi
5070fi 5534fi
5071 5535
5072 5536
5073# Check whether --enable-keepscrolling was given. 5537# Check whether --enable-keepscrolling was given.
5074if test "${enable_keepscrolling+set}" = set; then : 5538if test ${enable_keepscrolling+y}
5539then :
5075 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then 5540 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5076 support_keepscrolling=$enableval 5541 support_keepscrolling=$enableval
5077 fi 5542 fi
5078fi 5543fi
5079 5544
5080 5545
5081# Check whether --enable-selectionscrolling was given. 5546# Check whether --enable-selectionscrolling was given.
5082if test "${enable_selectionscrolling+set}" = set; then : 5547if test ${enable_selectionscrolling+y}
5548then :
5083 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then 5549 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5084 support_selectionscrolling=$enableval 5550 support_selectionscrolling=$enableval
5085 fi 5551 fi
5086fi 5552fi
5087 5553
5088 5554
5089# Check whether --enable-mousewheel was given. 5555# Check whether --enable-mousewheel was given.
5090if test "${enable_mousewheel+set}" = set; then : 5556if test ${enable_mousewheel+y}
5557then :
5091 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then 5558 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
5092 support_mousewheel=$enableval 5559 support_mousewheel=$enableval
5093 fi 5560 fi
5094fi 5561fi
5095 5562
5096 5563
5097# Check whether --enable-slipwheeling was given. 5564# Check whether --enable-slipwheeling was given.
5098if test "${enable_slipwheeling+set}" = set; then : 5565if test ${enable_slipwheeling+y}
5566then :
5099 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then 5567 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
5100 support_mouseslipwheel=$enableval 5568 support_mouseslipwheel=$enableval
5101 fi 5569 fi
5102fi 5570fi
5103 5571
5104 5572
5105# Check whether --enable-smart-resize was given. 5573# Check whether --enable-smart-resize was given.
5106if test "${enable_smart_resize+set}" = set; then : 5574if test ${enable_smart_resize+y}
5575then :
5107 enableval=$enable_smart_resize; if test x$enableval = xyes; then 5576 enableval=$enable_smart_resize; if test x$enableval = xyes; then
5108 5577
5109$as_echo "#define SMART_RESIZE 1" >>confdefs.h 5578printf "%s\n" "#define SMART_RESIZE 1" >>confdefs.h
5110 5579
5111 fi 5580 fi
5112fi 5581fi
5113 5582
5114 5583
5115# Check whether --enable-text-blink was given. 5584# Check whether --enable-text-blink was given.
5116if test "${enable_text_blink+set}" = set; then : 5585if test ${enable_text_blink+y}
5586then :
5117 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then 5587 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
5118 support_text_blink=$enableval 5588 support_text_blink=$enableval
5119 fi 5589 fi
5120fi 5590fi
5121 5591
5122 5592
5123# Check whether --enable-pointer-blank was given. 5593# Check whether --enable-pointer-blank was given.
5124if test "${enable_pointer_blank+set}" = set; then : 5594if test ${enable_pointer_blank+y}
5595then :
5125 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then 5596 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
5126 support_pointer_blank=$enableval 5597 support_pointer_blank=$enableval
5127 fi 5598 fi
5128fi 5599fi
5129 5600
5130 5601
5131 5602
5132# Check whether --with-term was given. 5603# Check whether --with-term was given.
5133if test "${with_term+set}" = set; then : 5604if test ${with_term+y}
5605then :
5134 withval=$with_term; if test x$withval != x; then 5606 withval=$with_term; if test x$withval != x; then
5135 5607
5136cat >>confdefs.h <<_ACEOF 5608printf "%s\n" "#define TERMENV \"$withval\"" >>confdefs.h
5137#define TERMENV "$withval"
5138_ACEOF
5139 term="$withval" 5609 term="$withval"
5140 fi 5610 fi
5141fi 5611fi
5142 5612
5143 5613
5144 5614
5145# Check whether --with-terminfo was given. 5615# Check whether --with-terminfo was given.
5146if test "${with_terminfo+set}" = set; then : 5616if test ${with_terminfo+y}
5617then :
5147 withval=$with_terminfo; if test x$withval != x; then 5618 withval=$with_terminfo; if test x$withval != x; then
5148 5619
5149cat >>confdefs.h <<_ACEOF 5620printf "%s\n" "#define RXVT_TERMINFO \"$withval\"" >>confdefs.h
5150#define RXVT_TERMINFO "$withval"
5151_ACEOF
5152 terminfo="$withval" 5621 terminfo="$withval"
5153 fi 5622 fi
5154fi 5623fi
5155 5624
5156 5625
5626if test x$support_resources = xno; then
5627 if test x$support_frills = xyes || test x$support_perl = xyes; then
5628 as_fn_error $? "--disable-resources requires --disable-frills --disable-perl" "$LINENO" 5
5629 fi
5630
5631
5632printf "%s\n" "#define NO_RESOURCES 1" >>confdefs.h
5633
5634fi
5635
5157 5636
5158LIBEV_M4_AVOID_LIBRT=1 5637LIBEV_M4_AVOID_LIBRT=1
5159 5638
5160ac_ext=cpp 5639ac_fn_cxx_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
5161ac_cpp='$CXXCPP $CPPFLAGS' 5640if test "x$ac_cv_header_sys_inotify_h" = xyes
5162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5641then :
5163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5642 printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
5164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5166$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5167if test -z "$CXXCPP"; then
5168 if ${ac_cv_prog_CXXCPP+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170else
5171 # Double quotes because CXXCPP needs to be expanded
5172 for CXXCPP in "$CXX -E" "/lib/cpp"
5173 do
5174 ac_preproc_ok=false
5175for ac_cxx_preproc_warn_flag in '' yes
5176do
5177 # Use a header file that comes with gcc, so configuring glibc
5178 # with a fresh cross-compiler works.
5179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5180 # <limits.h> exists even on freestanding compilers.
5181 # On the NeXT, cc -E runs the code through the compiler's parser,
5182 # not just through cpp. "Syntax error" is here to catch this case.
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184/* end confdefs.h. */
5185#ifdef __STDC__
5186# include <limits.h>
5187#else
5188# include <assert.h>
5189#endif
5190 Syntax error
5191_ACEOF
5192if ac_fn_cxx_try_cpp "$LINENO"; then :
5193 5643
5194else
5195 # Broken: fails on valid input.
5196continue
5197fi 5644fi
5198rm -f conftest.err conftest.i conftest.$ac_ext 5645ac_fn_cxx_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
5646if test "x$ac_cv_header_sys_epoll_h" = xyes
5647then :
5648 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h
5199 5649
5200 # OK, works on sane cases. Now check whether nonexistent headers
5201 # can be detected and how.
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203/* end confdefs.h. */
5204#include <ac_nonexistent.h>
5205_ACEOF
5206if ac_fn_cxx_try_cpp "$LINENO"; then :
5207 # Broken: success on invalid input.
5208continue
5209else
5210 # Passes both tests.
5211ac_preproc_ok=:
5212break
5213fi 5650fi
5214rm -f conftest.err conftest.i conftest.$ac_ext 5651ac_fn_cxx_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
5652if test "x$ac_cv_header_sys_event_h" = xyes
5653then :
5654 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
5215 5655
5216done
5217# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5218rm -f conftest.i conftest.err conftest.$ac_ext
5219if $ac_preproc_ok; then :
5220 break
5221fi 5656fi
5222
5223 done
5224 ac_cv_prog_CXXCPP=$CXXCPP
5225
5226fi
5227 CXXCPP=$ac_cv_prog_CXXCPP
5228else
5229 ac_cv_prog_CXXCPP=$CXXCPP
5230fi
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5232$as_echo "$CXXCPP" >&6; }
5233ac_preproc_ok=false
5234for ac_cxx_preproc_warn_flag in '' yes
5235do
5236 # Use a header file that comes with gcc, so configuring glibc
5237 # with a fresh cross-compiler works.
5238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5239 # <limits.h> exists even on freestanding compilers.
5240 # On the NeXT, cc -E runs the code through the compiler's parser,
5241 # not just through cpp. "Syntax error" is here to catch this case.
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243/* end confdefs.h. */
5244#ifdef __STDC__
5245# include <limits.h>
5246#else
5247# include <assert.h>
5248#endif
5249 Syntax error
5250_ACEOF
5251if ac_fn_cxx_try_cpp "$LINENO"; then :
5252
5253else
5254 # Broken: fails on valid input.
5255continue
5256fi
5257rm -f conftest.err conftest.i conftest.$ac_ext
5258
5259 # OK, works on sane cases. Now check whether nonexistent headers
5260 # can be detected and how.
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262/* end confdefs.h. */
5263#include <ac_nonexistent.h>
5264_ACEOF
5265if ac_fn_cxx_try_cpp "$LINENO"; then :
5266 # Broken: success on invalid input.
5267continue
5268else
5269 # Passes both tests.
5270ac_preproc_ok=:
5271break
5272fi
5273rm -f conftest.err conftest.i conftest.$ac_ext
5274
5275done
5276# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5277rm -f conftest.i conftest.err conftest.$ac_ext
5278if $ac_preproc_ok; then :
5279
5280else
5281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5283as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5284See \`config.log' for more details" "$LINENO" 5; }
5285fi
5286
5287ac_ext=cpp
5288ac_cpp='$CXXCPP $CPPFLAGS'
5289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5292
5293
5294for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h
5295do :
5296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5297ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5657ac_fn_cxx_check_header_compile "$LINENO" "port.h" "ac_cv_header_port_h" "$ac_includes_default"
5298if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5658if test "x$ac_cv_header_port_h" = xyes
5299 cat >>confdefs.h <<_ACEOF 5659then :
5300#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5660 printf "%s\n" "#define HAVE_PORT_H 1" >>confdefs.h
5301_ACEOF
5302 5661
5303fi 5662fi
5663ac_fn_cxx_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
5664if test "x$ac_cv_header_poll_h" = xyes
5665then :
5666 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
5304 5667
5305done
5306
5307
5308for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5309do :
5310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5311ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5312if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5313 cat >>confdefs.h <<_ACEOF
5314#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5315_ACEOF
5316
5317fi 5668fi
5318done 5669ac_fn_cxx_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
5670if test "x$ac_cv_header_sys_timerfd_h" = xyes
5671then :
5672 printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h
5319 5673
5674fi
5320 5675
5676ac_fn_cxx_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
5677if test "x$ac_cv_header_sys_select_h" = xyes
5678then :
5679 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
5680
5681fi
5682ac_fn_cxx_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
5683if test "x$ac_cv_header_sys_eventfd_h" = xyes
5684then :
5685 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h
5686
5687fi
5688ac_fn_cxx_check_header_compile "$LINENO" "sys/signalfd.h" "ac_cv_header_sys_signalfd_h" "$ac_includes_default"
5689if test "x$ac_cv_header_sys_signalfd_h" = xyes
5690then :
5691 printf "%s\n" "#define HAVE_SYS_SIGNALFD_H 1" >>confdefs.h
5692
5693fi
5694ac_fn_cxx_check_header_compile "$LINENO" "linux/aio_abi.h" "ac_cv_header_linux_aio_abi_h" "$ac_includes_default"
5695if test "x$ac_cv_header_linux_aio_abi_h" = xyes
5696then :
5697 printf "%s\n" "#define HAVE_LINUX_AIO_ABI_H 1" >>confdefs.h
5698
5699fi
5700ac_fn_cxx_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
5701if test "x$ac_cv_header_linux_fs_h" = xyes
5702then :
5703 printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h
5704
5705fi
5706
5707
5708ac_fn_cxx_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
5709if test "x$ac_cv_func_inotify_init" = xyes
5710then :
5711 printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
5712
5713fi
5714ac_fn_cxx_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
5715if test "x$ac_cv_func_epoll_ctl" = xyes
5716then :
5717 printf "%s\n" "#define HAVE_EPOLL_CTL 1" >>confdefs.h
5718
5719fi
5720ac_fn_cxx_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
5721if test "x$ac_cv_func_kqueue" = xyes
5722then :
5723 printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h
5724
5725fi
5726ac_fn_cxx_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
5727if test "x$ac_cv_func_port_create" = xyes
5728then :
5729 printf "%s\n" "#define HAVE_PORT_CREATE 1" >>confdefs.h
5730
5731fi
5732ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll"
5733if test "x$ac_cv_func_poll" = xyes
5734then :
5735 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
5736
5737fi
5738ac_fn_cxx_check_func "$LINENO" "select" "ac_cv_func_select"
5739if test "x$ac_cv_func_select" = xyes
5740then :
5741 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
5742
5743fi
5744ac_fn_cxx_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd"
5745if test "x$ac_cv_func_eventfd" = xyes
5746then :
5747 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
5748
5749fi
5750ac_fn_cxx_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
5751if test "x$ac_cv_func_signalfd" = xyes
5752then :
5753 printf "%s\n" "#define HAVE_SIGNALFD 1" >>confdefs.h
5754
5755fi
5756
5757
5758
5321for ac_func in clock_gettime 5759 for ac_func in clock_gettime
5322do : 5760do :
5323 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 5761 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5324if test "x$ac_cv_func_clock_gettime" = xyes; then : 5762if test "x$ac_cv_func_clock_gettime" = xyes
5325 cat >>confdefs.h <<_ACEOF 5763then :
5326#define HAVE_CLOCK_GETTIME 1 5764 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
5327_ACEOF
5328 5765
5329else 5766else $as_nop
5330 5767
5331 if test $(uname) = Linux; then 5768 if test $(uname) = Linux; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5 5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5333$as_echo_n "checking for clock_gettime syscall... " >&6; } 5770printf %s "checking for clock_gettime syscall... " >&6; }
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335/* end confdefs.h. */ 5772/* end confdefs.h. */
5336#include <unistd.h> 5773#include <unistd.h>
5337 #include <sys/syscall.h> 5774 #include <sys/syscall.h>
5338 #include <time.h> 5775 #include <time.h>
5339int 5776int
5340main () 5777main (void)
5341{ 5778{
5342struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) 5779struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5343 ; 5780 ;
5344 return 0; 5781 return 0;
5345} 5782}
5346_ACEOF 5783_ACEOF
5347if ac_fn_cxx_try_link "$LINENO"; then : 5784if ac_fn_cxx_try_link "$LINENO"
5785then :
5348 ac_have_clock_syscall=1 5786 ac_have_clock_syscall=1
5349 5787
5350$as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h 5788printf "%s\n" "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
5351 5789
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5353$as_echo "yes" >&6; } 5791printf "%s\n" "yes" >&6; }
5354else 5792else $as_nop
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356$as_echo "no" >&6; } 5794printf "%s\n" "no" >&6; }
5357fi 5795fi
5358rm -f core conftest.err conftest.$ac_objext \ 5796rm -f core conftest.err conftest.$ac_objext conftest.beam \
5359 conftest$ac_exeext conftest.$ac_ext 5797 conftest$ac_exeext conftest.$ac_ext
5360 fi 5798 fi
5361 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then 5799 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 5800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5363$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 5801printf %s "checking for clock_gettime in -lrt... " >&6; }
5364if ${ac_cv_lib_rt_clock_gettime+:} false; then : 5802if test ${ac_cv_lib_rt_clock_gettime+y}
5365 $as_echo_n "(cached) " >&6 5803then :
5366else 5804 printf %s "(cached) " >&6
5805else $as_nop
5367 ac_check_lib_save_LIBS=$LIBS 5806 ac_check_lib_save_LIBS=$LIBS
5368LIBS="-lrt $LIBS" 5807LIBS="-lrt $LIBS"
5369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370/* end confdefs.h. */ 5809/* end confdefs.h. */
5371 5810
5372/* Override any GCC internal prototype to avoid an error. 5811namespace conftest {
5373 Use char because int might match the return type of a GCC 5812 extern "C" int clock_gettime ();
5374 builtin and then its argument prototype would still apply. */ 5813}
5375#ifdef __cplusplus
5376extern "C"
5377#endif
5378char clock_gettime ();
5379int 5814int
5380main () 5815main (void)
5381{ 5816{
5382return clock_gettime (); 5817return conftest::clock_gettime ();
5383 ; 5818 ;
5384 return 0; 5819 return 0;
5385} 5820}
5386_ACEOF 5821_ACEOF
5387if ac_fn_cxx_try_link "$LINENO"; then : 5822if ac_fn_cxx_try_link "$LINENO"
5823then :
5388 ac_cv_lib_rt_clock_gettime=yes 5824 ac_cv_lib_rt_clock_gettime=yes
5389else 5825else $as_nop
5390 ac_cv_lib_rt_clock_gettime=no 5826 ac_cv_lib_rt_clock_gettime=no
5391fi 5827fi
5392rm -f core conftest.err conftest.$ac_objext \ 5828rm -f core conftest.err conftest.$ac_objext conftest.beam \
5393 conftest$ac_exeext conftest.$ac_ext 5829 conftest$ac_exeext conftest.$ac_ext
5394LIBS=$ac_check_lib_save_LIBS 5830LIBS=$ac_check_lib_save_LIBS
5395fi 5831fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 5832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5397$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 5833printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
5398if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 5834if test "x$ac_cv_lib_rt_clock_gettime" = xyes
5399 cat >>confdefs.h <<_ACEOF 5835then :
5400#define HAVE_LIBRT 1 5836 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
5401_ACEOF
5402 5837
5403 LIBS="-lrt $LIBS" 5838 LIBS="-lrt $LIBS"
5404 5839
5405fi 5840fi
5406 5841
5407 unset ac_cv_func_clock_gettime 5842 unset ac_cv_func_clock_gettime
5408 for ac_func in clock_gettime
5409do :
5410 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 5843 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5411if test "x$ac_cv_func_clock_gettime" = xyes; then : 5844if test "x$ac_cv_func_clock_gettime" = xyes
5412 cat >>confdefs.h <<_ACEOF 5845then :
5413#define HAVE_CLOCK_GETTIME 1 5846 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
5414_ACEOF
5415 5847
5416fi 5848fi
5849
5850 fi
5851
5852fi
5853
5417done 5854done
5418 5855
5419 fi
5420 5856
5421fi
5422done
5423
5424
5425for ac_func in nanosleep 5857 for ac_func in nanosleep
5426do : 5858do :
5427 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 5859 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5428if test "x$ac_cv_func_nanosleep" = xyes; then : 5860if test "x$ac_cv_func_nanosleep" = xyes
5429 cat >>confdefs.h <<_ACEOF 5861then :
5430#define HAVE_NANOSLEEP 1 5862 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
5431_ACEOF
5432 5863
5433else 5864else $as_nop
5434 5865
5435 if test -z "$LIBEV_M4_AVOID_LIBRT"; then 5866 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5437$as_echo_n "checking for nanosleep in -lrt... " >&6; } 5868printf %s "checking for nanosleep in -lrt... " >&6; }
5438if ${ac_cv_lib_rt_nanosleep+:} false; then : 5869if test ${ac_cv_lib_rt_nanosleep+y}
5439 $as_echo_n "(cached) " >&6 5870then :
5440else 5871 printf %s "(cached) " >&6
5872else $as_nop
5441 ac_check_lib_save_LIBS=$LIBS 5873 ac_check_lib_save_LIBS=$LIBS
5442LIBS="-lrt $LIBS" 5874LIBS="-lrt $LIBS"
5443cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444/* end confdefs.h. */ 5876/* end confdefs.h. */
5445 5877
5446/* Override any GCC internal prototype to avoid an error. 5878namespace conftest {
5447 Use char because int might match the return type of a GCC 5879 extern "C" int nanosleep ();
5448 builtin and then its argument prototype would still apply. */ 5880}
5449#ifdef __cplusplus
5450extern "C"
5451#endif
5452char nanosleep ();
5453int 5881int
5454main () 5882main (void)
5455{ 5883{
5456return nanosleep (); 5884return conftest::nanosleep ();
5457 ; 5885 ;
5458 return 0; 5886 return 0;
5459} 5887}
5460_ACEOF 5888_ACEOF
5461if ac_fn_cxx_try_link "$LINENO"; then : 5889if ac_fn_cxx_try_link "$LINENO"
5890then :
5462 ac_cv_lib_rt_nanosleep=yes 5891 ac_cv_lib_rt_nanosleep=yes
5463else 5892else $as_nop
5464 ac_cv_lib_rt_nanosleep=no 5893 ac_cv_lib_rt_nanosleep=no
5465fi 5894fi
5466rm -f core conftest.err conftest.$ac_objext \ 5895rm -f core conftest.err conftest.$ac_objext conftest.beam \
5467 conftest$ac_exeext conftest.$ac_ext 5896 conftest$ac_exeext conftest.$ac_ext
5468LIBS=$ac_check_lib_save_LIBS 5897LIBS=$ac_check_lib_save_LIBS
5469fi 5898fi
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 5899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5471$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } 5900printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; }
5472if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : 5901if test "x$ac_cv_lib_rt_nanosleep" = xyes
5473 cat >>confdefs.h <<_ACEOF 5902then :
5474#define HAVE_LIBRT 1 5903 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
5475_ACEOF
5476 5904
5477 LIBS="-lrt $LIBS" 5905 LIBS="-lrt $LIBS"
5478 5906
5479fi 5907fi
5480 5908
5481 unset ac_cv_func_nanosleep 5909 unset ac_cv_func_nanosleep
5482 for ac_func in nanosleep
5483do :
5484 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 5910 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5485if test "x$ac_cv_func_nanosleep" = xyes; then : 5911if test "x$ac_cv_func_nanosleep" = xyes
5486 cat >>confdefs.h <<_ACEOF 5912then :
5487#define HAVE_NANOSLEEP 1 5913 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
5488_ACEOF
5489 5914
5490fi 5915fi
5916
5917 fi
5918
5919fi
5920
5491done 5921done
5492 5922
5493 fi 5923ac_fn_cxx_check_type "$LINENO" "__kernel_rwf_t" "ac_cv_type___kernel_rwf_t" "#include <linux/fs.h>
5924"
5925if test "x$ac_cv_type___kernel_rwf_t" = xyes
5926then :
5494 5927
5928
5929printf "%s\n" "#define HAVE_KERNEL_RWF_T 1" >>confdefs.h
5930
5931
5495fi 5932fi
5496done
5497 5933
5498 5934
5499if test -z "$LIBEV_M4_AVOID_LIBM"; then 5935if test -z "$LIBEV_M4_AVOID_LIBM"; then
5500 LIBM=m 5936 LIBM=m
5501fi 5937fi
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 5938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
5503$as_echo_n "checking for library containing floor... " >&6; } 5939printf %s "checking for library containing floor... " >&6; }
5504if ${ac_cv_search_floor+:} false; then : 5940if test ${ac_cv_search_floor+y}
5505 $as_echo_n "(cached) " >&6 5941then :
5506else 5942 printf %s "(cached) " >&6
5943else $as_nop
5507 ac_func_search_save_LIBS=$LIBS 5944 ac_func_search_save_LIBS=$LIBS
5508cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509/* end confdefs.h. */ 5946/* end confdefs.h. */
5510 5947
5511/* Override any GCC internal prototype to avoid an error. 5948namespace conftest {
5512 Use char because int might match the return type of a GCC 5949 extern "C" int floor ();
5513 builtin and then its argument prototype would still apply. */ 5950}
5514#ifdef __cplusplus
5515extern "C"
5516#endif
5517char floor ();
5518int 5951int
5519main () 5952main (void)
5520{ 5953{
5521return floor (); 5954return conftest::floor ();
5522 ; 5955 ;
5523 return 0; 5956 return 0;
5524} 5957}
5525_ACEOF 5958_ACEOF
5526for ac_lib in '' $LIBM; do 5959for ac_lib in '' $LIBM
5960do
5527 if test -z "$ac_lib"; then 5961 if test -z "$ac_lib"; then
5528 ac_res="none required" 5962 ac_res="none required"
5529 else 5963 else
5530 ac_res=-l$ac_lib 5964 ac_res=-l$ac_lib
5531 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5532 fi 5966 fi
5533 if ac_fn_cxx_try_link "$LINENO"; then : 5967 if ac_fn_cxx_try_link "$LINENO"
5968then :
5534 ac_cv_search_floor=$ac_res 5969 ac_cv_search_floor=$ac_res
5535fi 5970fi
5536rm -f core conftest.err conftest.$ac_objext \ 5971rm -f core conftest.err conftest.$ac_objext conftest.beam \
5537 conftest$ac_exeext 5972 conftest$ac_exeext
5538 if ${ac_cv_search_floor+:} false; then : 5973 if test ${ac_cv_search_floor+y}
5974then :
5539 break 5975 break
5540fi 5976fi
5541done 5977done
5542if ${ac_cv_search_floor+:} false; then : 5978if test ${ac_cv_search_floor+y}
5979then :
5543 5980
5544else 5981else $as_nop
5545 ac_cv_search_floor=no 5982 ac_cv_search_floor=no
5546fi 5983fi
5547rm conftest.$ac_ext 5984rm conftest.$ac_ext
5548LIBS=$ac_func_search_save_LIBS 5985LIBS=$ac_func_search_save_LIBS
5549fi 5986fi
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 5987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
5551$as_echo "$ac_cv_search_floor" >&6; } 5988printf "%s\n" "$ac_cv_search_floor" >&6; }
5552ac_res=$ac_cv_search_floor 5989ac_res=$ac_cv_search_floor
5553if test "$ac_res" != no; then : 5990if test "$ac_res" != no
5991then :
5554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5555 5993
5556$as_echo "#define HAVE_FLOOR 1" >>confdefs.h 5994printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
5557 5995
5558fi 5996fi
5559 5997
5560 5998
5561 5999
5562 6000
5563 6001
5564# Extract the first word of "tic", so it can be a program name with args. 6002# Extract the first word of "tic", so it can be a program name with args.
5565set dummy tic; ac_word=$2 6003set dummy tic; ac_word=$2
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567$as_echo_n "checking for $ac_word... " >&6; } 6005printf %s "checking for $ac_word... " >&6; }
5568if ${ac_cv_path_TIC+:} false; then : 6006if test ${ac_cv_path_TIC+y}
5569 $as_echo_n "(cached) " >&6 6007then :
5570else 6008 printf %s "(cached) " >&6
6009else $as_nop
5571 case $TIC in 6010 case $TIC in
5572 [\\/]* | ?:[\\/]*) 6011 [\\/]* | ?:[\\/]*)
5573 ac_cv_path_TIC="$TIC" # Let the user override the test with a path. 6012 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5574 ;; 6013 ;;
5575 *) 6014 *)
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577for as_dir in $PATH 6016for as_dir in $PATH
5578do 6017do
5579 IFS=$as_save_IFS 6018 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=. 6019 case $as_dir in #(((
6020 '') as_dir=./ ;;
6021 */) ;;
6022 *) as_dir=$as_dir/ ;;
6023 esac
5581 for ac_exec_ext in '' $ac_executable_extensions; do 6024 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5583 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext" 6026 ac_cv_path_TIC="$as_dir$ac_word$ac_exec_ext"
5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5585 break 2 6028 break 2
5586 fi 6029 fi
5587done 6030done
5588 done 6031 done
5589IFS=$as_save_IFS 6032IFS=$as_save_IFS
5592 ;; 6035 ;;
5593esac 6036esac
5594fi 6037fi
5595TIC=$ac_cv_path_TIC 6038TIC=$ac_cv_path_TIC
5596if test -n "$TIC"; then 6039if test -n "$TIC"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5 6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5
5598$as_echo "$TIC" >&6; } 6041printf "%s\n" "$TIC" >&6; }
5599else 6042else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601$as_echo "no" >&6; } 6044printf "%s\n" "no" >&6; }
5602fi 6045fi
5603 6046
5604 6047
5605 6048
6049ac_ext=cpp
6050ac_cpp='$CXXCPP $CPPFLAGS'
6051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6055printf %s "checking how to run the C++ preprocessor... " >&6; }
6056if test -z "$CXXCPP"; then
6057 if test ${ac_cv_prog_CXXCPP+y}
6058then :
6059 printf %s "(cached) " >&6
6060else $as_nop
6061 # Double quotes because $CXX needs to be expanded
6062 for CXXCPP in "$CXX -E" cpp /lib/cpp
6063 do
6064 ac_preproc_ok=false
6065for ac_cxx_preproc_warn_flag in '' yes
6066do
6067 # Use a header file that comes with gcc, so configuring glibc
6068 # with a fresh cross-compiler works.
6069 # On the NeXT, cc -E runs the code through the compiler's parser,
6070 # not just through cpp. "Syntax error" is here to catch this case.
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072/* end confdefs.h. */
6073#include <limits.h>
6074 Syntax error
6075_ACEOF
6076if ac_fn_cxx_try_cpp "$LINENO"
6077then :
6078
6079else $as_nop
6080 # Broken: fails on valid input.
6081continue
6082fi
6083rm -f conftest.err conftest.i conftest.$ac_ext
6084
6085 # OK, works on sane cases. Now check whether nonexistent headers
6086 # can be detected and how.
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088/* end confdefs.h. */
6089#include <ac_nonexistent.h>
6090_ACEOF
6091if ac_fn_cxx_try_cpp "$LINENO"
6092then :
6093 # Broken: success on invalid input.
6094continue
6095else $as_nop
6096 # Passes both tests.
6097ac_preproc_ok=:
6098break
6099fi
6100rm -f conftest.err conftest.i conftest.$ac_ext
6101
6102done
6103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6104rm -f conftest.i conftest.err conftest.$ac_ext
6105if $ac_preproc_ok
6106then :
6107 break
6108fi
6109
6110 done
6111 ac_cv_prog_CXXCPP=$CXXCPP
6112
6113fi
6114 CXXCPP=$ac_cv_prog_CXXCPP
6115else
6116 ac_cv_prog_CXXCPP=$CXXCPP
6117fi
6118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6119printf "%s\n" "$CXXCPP" >&6; }
6120ac_preproc_ok=false
6121for ac_cxx_preproc_warn_flag in '' yes
6122do
6123 # Use a header file that comes with gcc, so configuring glibc
6124 # with a fresh cross-compiler works.
6125 # On the NeXT, cc -E runs the code through the compiler's parser,
6126 # not just through cpp. "Syntax error" is here to catch this case.
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128/* end confdefs.h. */
6129#include <limits.h>
6130 Syntax error
6131_ACEOF
6132if ac_fn_cxx_try_cpp "$LINENO"
6133then :
6134
6135else $as_nop
6136 # Broken: fails on valid input.
6137continue
6138fi
6139rm -f conftest.err conftest.i conftest.$ac_ext
6140
6141 # OK, works on sane cases. Now check whether nonexistent headers
6142 # can be detected and how.
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144/* end confdefs.h. */
6145#include <ac_nonexistent.h>
6146_ACEOF
6147if ac_fn_cxx_try_cpp "$LINENO"
6148then :
6149 # Broken: success on invalid input.
6150continue
6151else $as_nop
6152 # Passes both tests.
6153ac_preproc_ok=:
6154break
6155fi
6156rm -f conftest.err conftest.i conftest.$ac_ext
6157
6158done
6159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6160rm -f conftest.i conftest.err conftest.$ac_ext
6161if $ac_preproc_ok
6162then :
6163
6164else $as_nop
6165 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6166printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6167as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6168See \`config.log' for more details" "$LINENO" 5; }
6169fi
6170
6171ac_ext=cpp
6172ac_cpp='$CXXCPP $CPPFLAGS'
6173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6176
6177
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 6178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5607$as_echo_n "checking for X... " >&6; } 6179printf %s "checking for X... " >&6; }
5608 6180
5609 6181
5610# Check whether --with-x was given. 6182# Check whether --with-x was given.
5611if test "${with_x+set}" = set; then : 6183if test ${with_x+y}
6184then :
5612 withval=$with_x; 6185 withval=$with_x;
5613fi 6186fi
5614 6187
5615# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 6188# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5616if test "x$with_x" = xno; then 6189if test "x$with_x" = xno; then
5617 # The user explicitly disabled X. 6190 # The user explicitly disabled X.
5618 have_x=disabled 6191 have_x=disabled
5619else 6192else
5620 case $x_includes,$x_libraries in #( 6193 case $x_includes,$x_libraries in #(
5621 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 6194 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5622 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 6195 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
5623 $as_echo_n "(cached) " >&6 6196then :
5624else 6197 printf %s "(cached) " >&6
6198else $as_nop
5625 # One or both of the vars are not set, and there is no cached value. 6199 # One or both of the vars are not set, and there is no cached value.
5626ac_x_includes=no ac_x_libraries=no 6200ac_x_includes=no
6201ac_x_libraries=no
6202# Do we need to do anything special at all?
6203ac_save_LIBS=$LIBS
6204LIBS="-lX11 $LIBS"
6205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206/* end confdefs.h. */
6207#include <X11/Xlib.h>
6208int
6209main (void)
6210{
6211XrmInitialize ()
6212 ;
6213 return 0;
6214}
6215_ACEOF
6216if ac_fn_cxx_try_link "$LINENO"
6217then :
6218 # We can compile and link X programs with no special options.
6219 ac_x_includes=
6220 ac_x_libraries=
6221fi
6222rm -f core conftest.err conftest.$ac_objext conftest.beam \
6223 conftest$ac_exeext conftest.$ac_ext
6224LIBS="$ac_save_LIBS"
6225# If that didn't work, only try xmkmf and file system searches
6226# for native compilation.
6227if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
6228then :
5627rm -f -r conftest.dir 6229 rm -f -r conftest.dir
5628if mkdir conftest.dir; then 6230if mkdir conftest.dir; then
5629 cd conftest.dir 6231 cd conftest.dir
5630 cat >Imakefile <<'_ACEOF' 6232 cat >Imakefile <<'_ACEOF'
5631incroot: 6233incroot:
5632 @echo incroot='${INCROOT}' 6234 @echo incroot='${INCROOT}'
5661 fi 6263 fi
5662 cd .. 6264 cd ..
5663 rm -f -r conftest.dir 6265 rm -f -r conftest.dir
5664fi 6266fi
5665 6267
5666# Standard set of common directories for X headers. 6268 # Standard set of common directories for X headers.
5667# Check X11 before X11Rn because it is often a symlink to the current release. 6269# Check X11 before X11Rn because it is often a symlink to the current release.
5668ac_x_header_dirs=' 6270ac_x_header_dirs='
5669/usr/X11/include 6271/usr/X11/include
5670/usr/X11R7/include 6272/usr/X11R7/include
5671/usr/X11R6/include 6273/usr/X11R6/include
5688/usr/local/include/X11R7 6290/usr/local/include/X11R7
5689/usr/local/include/X11R6 6291/usr/local/include/X11R6
5690/usr/local/include/X11R5 6292/usr/local/include/X11R5
5691/usr/local/include/X11R4 6293/usr/local/include/X11R4
5692 6294
6295/opt/X11/include
6296
5693/usr/X386/include 6297/usr/X386/include
5694/usr/x386/include 6298/usr/x386/include
5695/usr/XFree86/include/X11 6299/usr/XFree86/include/X11
5696 6300
5697/usr/include 6301/usr/include
5709 # First, try using that file with no special directory specified. 6313 # First, try using that file with no special directory specified.
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711/* end confdefs.h. */ 6315/* end confdefs.h. */
5712#include <X11/Xlib.h> 6316#include <X11/Xlib.h>
5713_ACEOF 6317_ACEOF
5714if ac_fn_cxx_try_cpp "$LINENO"; then : 6318if ac_fn_cxx_try_cpp "$LINENO"
6319then :
5715 # We can compile using X headers with no special include directory. 6320 # We can compile using X headers with no special include directory.
5716ac_x_includes= 6321ac_x_includes=
5717else 6322else $as_nop
5718 for ac_dir in $ac_x_header_dirs; do 6323 for ac_dir in $ac_x_header_dirs; do
5719 if test -r "$ac_dir/X11/Xlib.h"; then 6324 if test -r "$ac_dir/X11/Xlib.h"; then
5720 ac_x_includes=$ac_dir 6325 ac_x_includes=$ac_dir
5721 break 6326 break
5722 fi 6327 fi
5733 LIBS="-lX11 $LIBS" 6338 LIBS="-lX11 $LIBS"
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735/* end confdefs.h. */ 6340/* end confdefs.h. */
5736#include <X11/Xlib.h> 6341#include <X11/Xlib.h>
5737int 6342int
5738main () 6343main (void)
5739{ 6344{
5740XrmInitialize () 6345XrmInitialize ()
5741 ; 6346 ;
5742 return 0; 6347 return 0;
5743} 6348}
5744_ACEOF 6349_ACEOF
5745if ac_fn_cxx_try_link "$LINENO"; then : 6350if ac_fn_cxx_try_link "$LINENO"
6351then :
5746 LIBS=$ac_save_LIBS 6352 LIBS=$ac_save_LIBS
5747# We can link X programs with no special library path. 6353# We can link X programs with no special library path.
5748ac_x_libraries= 6354ac_x_libraries=
5749else 6355else $as_nop
5750 LIBS=$ac_save_LIBS 6356 LIBS=$ac_save_LIBS
5751for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 6357for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5752do 6358do
5753 # Don't even attempt the hair of trying to link an X program! 6359 # Don't even attempt the hair of trying to link an X program!
5754 for ac_extension in a so sl dylib la dll; do 6360 for ac_extension in a so sl dylib la dll; do
5755 if test -r "$ac_dir/libX11.$ac_extension"; then 6361 if test -r "$ac_dir/libX11.$ac_extension"; then
5756 ac_x_libraries=$ac_dir 6362 ac_x_libraries=$ac_dir
5757 break 2 6363 break 2
5758 fi 6364 fi
5759 done 6365 done
5760done 6366done
5761fi 6367fi
5762rm -f core conftest.err conftest.$ac_objext \ 6368rm -f core conftest.err conftest.$ac_objext conftest.beam \
5763 conftest$ac_exeext conftest.$ac_ext 6369 conftest$ac_exeext conftest.$ac_ext
5764fi # $ac_x_libraries = no 6370fi # $ac_x_libraries = no
5765 6371
6372fi
6373# Record the results.
5766case $ac_x_includes,$ac_x_libraries in #( 6374case $ac_x_includes,$ac_x_libraries in #(
5767 no,* | *,no | *\'*) 6375 no,* | *,no | *\'*) :
5768 # Didn't find X, or a directory has "'" in its name. 6376 # Didn't find X, or a directory has "'" in its name.
5769 ac_cv_have_x="have_x=no";; #( 6377 ac_cv_have_x="have_x=no" ;; #(
5770 *) 6378 *) :
5771 # Record where we found X for the cache. 6379 # Record where we found X for the cache.
5772 ac_cv_have_x="have_x=yes\ 6380 ac_cv_have_x="have_x=yes\
5773 ac_x_includes='$ac_x_includes'\ 6381 ac_x_includes='$ac_x_includes'\
5774 ac_x_libraries='$ac_x_libraries'" 6382 ac_x_libraries='$ac_x_libraries'" ;;
5775esac 6383esac
5776fi 6384fi
5777;; #( 6385;; #(
5778 *) have_x=yes;; 6386 *) have_x=yes;;
5779 esac 6387 esac
5780 eval "$ac_cv_have_x" 6388 eval "$ac_cv_have_x"
5781fi # $with_x != no 6389fi # $with_x != no
5782 6390
5783if test "$have_x" != yes; then 6391if test "$have_x" != yes; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5785$as_echo "$have_x" >&6; } 6393printf "%s\n" "$have_x" >&6; }
5786 no_x=yes 6394 no_x=yes
5787else 6395else
5788 # If each of the values was on the command line, it overrides each guess. 6396 # If each of the values was on the command line, it overrides each guess.
5789 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 6397 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5790 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 6398 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5791 # Update the cache value to reflect the command line values. 6399 # Update the cache value to reflect the command line values.
5792 ac_cv_have_x="have_x=yes\ 6400 ac_cv_have_x="have_x=yes\
5793 ac_x_includes='$x_includes'\ 6401 ac_x_includes='$x_includes'\
5794 ac_x_libraries='$x_libraries'" 6402 ac_x_libraries='$x_libraries'"
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 6403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5796$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 6404printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
5797fi 6405fi
5798 6406
5799if test "$no_x" = yes; then 6407if test "$no_x" = yes; then
5800 # Not all programs may use this symbol, but it does not hurt to define it. 6408 # Not all programs may use this symbol, but it does not hurt to define it.
5801 6409
5802$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 6410printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
5803 6411
5804 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 6412 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5805else 6413else
5806 if test -n "$x_includes"; then 6414 if test -n "$x_includes"; then
5807 X_CFLAGS="$X_CFLAGS -I$x_includes" 6415 X_CFLAGS="$X_CFLAGS -I$x_includes"
5810 # It would also be nice to do this for all -L options, not just this one. 6418 # It would also be nice to do this for all -L options, not just this one.
5811 if test -n "$x_libraries"; then 6419 if test -n "$x_libraries"; then
5812 X_LIBS="$X_LIBS -L$x_libraries" 6420 X_LIBS="$X_LIBS -L$x_libraries"
5813 # For Solaris; some versions of Sun CC require a space after -R and 6421 # For Solaris; some versions of Sun CC require a space after -R and
5814 # others require no space. Words are not sufficient . . . . 6422 # others require no space. Words are not sufficient . . . .
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5816$as_echo_n "checking whether -R must be followed by a space... " >&6; } 6424printf %s "checking whether -R must be followed by a space... " >&6; }
5817 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 6425 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5818 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 6426 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
5819 ac_cxx_werror_flag=yes 6427 ac_cxx_werror_flag=yes
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821/* end confdefs.h. */ 6429/* end confdefs.h. */
5822 6430
5823int 6431int
5824main () 6432main (void)
5825{ 6433{
5826 6434
5827 ; 6435 ;
5828 return 0; 6436 return 0;
5829} 6437}
5830_ACEOF 6438_ACEOF
5831if ac_fn_cxx_try_link "$LINENO"; then : 6439if ac_fn_cxx_try_link "$LINENO"
6440then :
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833$as_echo "no" >&6; } 6442printf "%s\n" "no" >&6; }
5834 X_LIBS="$X_LIBS -R$x_libraries" 6443 X_LIBS="$X_LIBS -R$x_libraries"
5835else 6444else $as_nop
5836 LIBS="$ac_xsave_LIBS -R $x_libraries" 6445 LIBS="$ac_xsave_LIBS -R $x_libraries"
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838/* end confdefs.h. */ 6447/* end confdefs.h. */
5839 6448
5840int 6449int
5841main () 6450main (void)
5842{ 6451{
5843 6452
5844 ; 6453 ;
5845 return 0; 6454 return 0;
5846} 6455}
5847_ACEOF 6456_ACEOF
5848if ac_fn_cxx_try_link "$LINENO"; then : 6457if ac_fn_cxx_try_link "$LINENO"
6458then :
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5850$as_echo "yes" >&6; } 6460printf "%s\n" "yes" >&6; }
5851 X_LIBS="$X_LIBS -R $x_libraries" 6461 X_LIBS="$X_LIBS -R $x_libraries"
5852else 6462else $as_nop
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5854$as_echo "neither works" >&6; } 6464printf "%s\n" "neither works" >&6; }
5855fi 6465fi
5856rm -f core conftest.err conftest.$ac_objext \ 6466rm -f core conftest.err conftest.$ac_objext conftest.beam \
5857 conftest$ac_exeext conftest.$ac_ext 6467 conftest$ac_exeext conftest.$ac_ext
5858fi 6468fi
5859rm -f core conftest.err conftest.$ac_objext \ 6469rm -f core conftest.err conftest.$ac_objext conftest.beam \
5860 conftest$ac_exeext conftest.$ac_ext 6470 conftest$ac_exeext conftest.$ac_ext
5861 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 6471 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5862 LIBS=$ac_xsave_LIBS 6472 LIBS=$ac_xsave_LIBS
5863 fi 6473 fi
5864 6474
5874 # the Alpha needs dnet_stub (dnet does not exist). 6484 # the Alpha needs dnet_stub (dnet does not exist).
5875 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 6485 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877/* end confdefs.h. */ 6487/* end confdefs.h. */
5878 6488
5879/* Override any GCC internal prototype to avoid an error. 6489namespace conftest {
5880 Use char because int might match the return type of a GCC 6490 extern "C" int XOpenDisplay ();
5881 builtin and then its argument prototype would still apply. */ 6491}
5882#ifdef __cplusplus
5883extern "C"
5884#endif
5885char XOpenDisplay ();
5886int 6492int
5887main () 6493main (void)
5888{ 6494{
5889return XOpenDisplay (); 6495return conftest::XOpenDisplay ();
5890 ; 6496 ;
5891 return 0; 6497 return 0;
5892} 6498}
5893_ACEOF 6499_ACEOF
5894if ac_fn_cxx_try_link "$LINENO"; then : 6500if ac_fn_cxx_try_link "$LINENO"
6501then :
5895 6502
5896else 6503else $as_nop
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5898$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 6505printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
5899if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 6506if test ${ac_cv_lib_dnet_dnet_ntoa+y}
5900 $as_echo_n "(cached) " >&6 6507then :
5901else 6508 printf %s "(cached) " >&6
6509else $as_nop
5902 ac_check_lib_save_LIBS=$LIBS 6510 ac_check_lib_save_LIBS=$LIBS
5903LIBS="-ldnet $LIBS" 6511LIBS="-ldnet $LIBS"
5904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905/* end confdefs.h. */ 6513/* end confdefs.h. */
5906 6514
5907/* Override any GCC internal prototype to avoid an error. 6515namespace conftest {
5908 Use char because int might match the return type of a GCC 6516 extern "C" int dnet_ntoa ();
5909 builtin and then its argument prototype would still apply. */ 6517}
5910#ifdef __cplusplus
5911extern "C"
5912#endif
5913char dnet_ntoa ();
5914int 6518int
5915main () 6519main (void)
5916{ 6520{
5917return dnet_ntoa (); 6521return conftest::dnet_ntoa ();
5918 ; 6522 ;
5919 return 0; 6523 return 0;
5920} 6524}
5921_ACEOF 6525_ACEOF
5922if ac_fn_cxx_try_link "$LINENO"; then : 6526if ac_fn_cxx_try_link "$LINENO"
6527then :
5923 ac_cv_lib_dnet_dnet_ntoa=yes 6528 ac_cv_lib_dnet_dnet_ntoa=yes
5924else 6529else $as_nop
5925 ac_cv_lib_dnet_dnet_ntoa=no 6530 ac_cv_lib_dnet_dnet_ntoa=no
5926fi 6531fi
5927rm -f core conftest.err conftest.$ac_objext \ 6532rm -f core conftest.err conftest.$ac_objext conftest.beam \
5928 conftest$ac_exeext conftest.$ac_ext 6533 conftest$ac_exeext conftest.$ac_ext
5929LIBS=$ac_check_lib_save_LIBS 6534LIBS=$ac_check_lib_save_LIBS
5930fi 6535fi
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 6536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5932$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 6537printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5933if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 6538if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
6539then :
5934 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 6540 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5935fi 6541fi
5936 6542
5937 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6543 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5939$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 6545printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5940if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 6546if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
5941 $as_echo_n "(cached) " >&6 6547then :
5942else 6548 printf %s "(cached) " >&6
6549else $as_nop
5943 ac_check_lib_save_LIBS=$LIBS 6550 ac_check_lib_save_LIBS=$LIBS
5944LIBS="-ldnet_stub $LIBS" 6551LIBS="-ldnet_stub $LIBS"
5945cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946/* end confdefs.h. */ 6553/* end confdefs.h. */
5947 6554
5948/* Override any GCC internal prototype to avoid an error. 6555namespace conftest {
5949 Use char because int might match the return type of a GCC 6556 extern "C" int dnet_ntoa ();
5950 builtin and then its argument prototype would still apply. */ 6557}
5951#ifdef __cplusplus
5952extern "C"
5953#endif
5954char dnet_ntoa ();
5955int 6558int
5956main () 6559main (void)
5957{ 6560{
5958return dnet_ntoa (); 6561return conftest::dnet_ntoa ();
5959 ; 6562 ;
5960 return 0; 6563 return 0;
5961} 6564}
5962_ACEOF 6565_ACEOF
5963if ac_fn_cxx_try_link "$LINENO"; then : 6566if ac_fn_cxx_try_link "$LINENO"
6567then :
5964 ac_cv_lib_dnet_stub_dnet_ntoa=yes 6568 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5965else 6569else $as_nop
5966 ac_cv_lib_dnet_stub_dnet_ntoa=no 6570 ac_cv_lib_dnet_stub_dnet_ntoa=no
5967fi 6571fi
5968rm -f core conftest.err conftest.$ac_objext \ 6572rm -f core conftest.err conftest.$ac_objext conftest.beam \
5969 conftest$ac_exeext conftest.$ac_ext 6573 conftest$ac_exeext conftest.$ac_ext
5970LIBS=$ac_check_lib_save_LIBS 6574LIBS=$ac_check_lib_save_LIBS
5971fi 6575fi
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 6576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5973$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 6577printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5974if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 6578if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
6579then :
5975 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 6580 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5976fi 6581fi
5977 6582
5978 fi 6583 fi
5979fi 6584fi
5980rm -f core conftest.err conftest.$ac_objext \ 6585rm -f core conftest.err conftest.$ac_objext conftest.beam \
5981 conftest$ac_exeext conftest.$ac_ext 6586 conftest$ac_exeext conftest.$ac_ext
5982 LIBS="$ac_xsave_LIBS" 6587 LIBS="$ac_xsave_LIBS"
5983 6588
5984 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 6589 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5985 # to get the SysV transport functions. 6590 # to get the SysV transport functions.
5988 # The nsl library prevents programs from opening the X display 6593 # The nsl library prevents programs from opening the X display
5989 # on Irix 5.2, according to T.E. Dickey. 6594 # on Irix 5.2, according to T.E. Dickey.
5990 # The functions gethostbyname, getservbyname, and inet_addr are 6595 # The functions gethostbyname, getservbyname, and inet_addr are
5991 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 6596 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5992 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 6597 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5993if test "x$ac_cv_func_gethostbyname" = xyes; then : 6598if test "x$ac_cv_func_gethostbyname" = xyes
6599then :
5994 6600
5995fi 6601fi
5996 6602
5997 if test $ac_cv_func_gethostbyname = no; then 6603 if test $ac_cv_func_gethostbyname = no; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5999$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 6605printf %s "checking for gethostbyname in -lnsl... " >&6; }
6000if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 6606if test ${ac_cv_lib_nsl_gethostbyname+y}
6001 $as_echo_n "(cached) " >&6 6607then :
6002else 6608 printf %s "(cached) " >&6
6609else $as_nop
6003 ac_check_lib_save_LIBS=$LIBS 6610 ac_check_lib_save_LIBS=$LIBS
6004LIBS="-lnsl $LIBS" 6611LIBS="-lnsl $LIBS"
6005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006/* end confdefs.h. */ 6613/* end confdefs.h. */
6007 6614
6008/* Override any GCC internal prototype to avoid an error. 6615namespace conftest {
6009 Use char because int might match the return type of a GCC 6616 extern "C" int gethostbyname ();
6010 builtin and then its argument prototype would still apply. */ 6617}
6011#ifdef __cplusplus
6012extern "C"
6013#endif
6014char gethostbyname ();
6015int 6618int
6016main () 6619main (void)
6017{ 6620{
6018return gethostbyname (); 6621return conftest::gethostbyname ();
6019 ; 6622 ;
6020 return 0; 6623 return 0;
6021} 6624}
6022_ACEOF 6625_ACEOF
6023if ac_fn_cxx_try_link "$LINENO"; then : 6626if ac_fn_cxx_try_link "$LINENO"
6627then :
6024 ac_cv_lib_nsl_gethostbyname=yes 6628 ac_cv_lib_nsl_gethostbyname=yes
6025else 6629else $as_nop
6026 ac_cv_lib_nsl_gethostbyname=no 6630 ac_cv_lib_nsl_gethostbyname=no
6027fi 6631fi
6028rm -f core conftest.err conftest.$ac_objext \ 6632rm -f core conftest.err conftest.$ac_objext conftest.beam \
6029 conftest$ac_exeext conftest.$ac_ext 6633 conftest$ac_exeext conftest.$ac_ext
6030LIBS=$ac_check_lib_save_LIBS 6634LIBS=$ac_check_lib_save_LIBS
6031fi 6635fi
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 6636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6033$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 6637printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
6034if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 6638if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
6639then :
6035 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6640 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6036fi 6641fi
6037 6642
6038 if test $ac_cv_lib_nsl_gethostbyname = no; then 6643 if test $ac_cv_lib_nsl_gethostbyname = no; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 6644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6040$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 6645printf %s "checking for gethostbyname in -lbsd... " >&6; }
6041if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 6646if test ${ac_cv_lib_bsd_gethostbyname+y}
6042 $as_echo_n "(cached) " >&6 6647then :
6043else 6648 printf %s "(cached) " >&6
6649else $as_nop
6044 ac_check_lib_save_LIBS=$LIBS 6650 ac_check_lib_save_LIBS=$LIBS
6045LIBS="-lbsd $LIBS" 6651LIBS="-lbsd $LIBS"
6046cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047/* end confdefs.h. */ 6653/* end confdefs.h. */
6048 6654
6049/* Override any GCC internal prototype to avoid an error. 6655namespace conftest {
6050 Use char because int might match the return type of a GCC 6656 extern "C" int gethostbyname ();
6051 builtin and then its argument prototype would still apply. */ 6657}
6052#ifdef __cplusplus
6053extern "C"
6054#endif
6055char gethostbyname ();
6056int 6658int
6057main () 6659main (void)
6058{ 6660{
6059return gethostbyname (); 6661return conftest::gethostbyname ();
6060 ; 6662 ;
6061 return 0; 6663 return 0;
6062} 6664}
6063_ACEOF 6665_ACEOF
6064if ac_fn_cxx_try_link "$LINENO"; then : 6666if ac_fn_cxx_try_link "$LINENO"
6667then :
6065 ac_cv_lib_bsd_gethostbyname=yes 6668 ac_cv_lib_bsd_gethostbyname=yes
6066else 6669else $as_nop
6067 ac_cv_lib_bsd_gethostbyname=no 6670 ac_cv_lib_bsd_gethostbyname=no
6068fi 6671fi
6069rm -f core conftest.err conftest.$ac_objext \ 6672rm -f core conftest.err conftest.$ac_objext conftest.beam \
6070 conftest$ac_exeext conftest.$ac_ext 6673 conftest$ac_exeext conftest.$ac_ext
6071LIBS=$ac_check_lib_save_LIBS 6674LIBS=$ac_check_lib_save_LIBS
6072fi 6675fi
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 6676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6074$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 6677printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
6075if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 6678if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
6679then :
6076 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6680 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6077fi 6681fi
6078 6682
6079 fi 6683 fi
6080 fi 6684 fi
6085 # on later versions), says Simon Leinen: it contains gethostby* 6689 # on later versions), says Simon Leinen: it contains gethostby*
6086 # variants that don't use the name server (or something). -lsocket 6690 # variants that don't use the name server (or something). -lsocket
6087 # must be given before -lnsl if both are needed. We assume that 6691 # must be given before -lnsl if both are needed. We assume that
6088 # if connect needs -lnsl, so does gethostbyname. 6692 # if connect needs -lnsl, so does gethostbyname.
6089 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 6693 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6090if test "x$ac_cv_func_connect" = xyes; then : 6694if test "x$ac_cv_func_connect" = xyes
6695then :
6091 6696
6092fi 6697fi
6093 6698
6094 if test $ac_cv_func_connect = no; then 6699 if test $ac_cv_func_connect = no; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6096$as_echo_n "checking for connect in -lsocket... " >&6; } 6701printf %s "checking for connect in -lsocket... " >&6; }
6097if ${ac_cv_lib_socket_connect+:} false; then : 6702if test ${ac_cv_lib_socket_connect+y}
6098 $as_echo_n "(cached) " >&6 6703then :
6099else 6704 printf %s "(cached) " >&6
6705else $as_nop
6100 ac_check_lib_save_LIBS=$LIBS 6706 ac_check_lib_save_LIBS=$LIBS
6101LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6707LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103/* end confdefs.h. */ 6709/* end confdefs.h. */
6104 6710
6105/* Override any GCC internal prototype to avoid an error. 6711namespace conftest {
6106 Use char because int might match the return type of a GCC 6712 extern "C" int connect ();
6107 builtin and then its argument prototype would still apply. */ 6713}
6108#ifdef __cplusplus
6109extern "C"
6110#endif
6111char connect ();
6112int 6714int
6113main () 6715main (void)
6114{ 6716{
6115return connect (); 6717return conftest::connect ();
6116 ; 6718 ;
6117 return 0; 6719 return 0;
6118} 6720}
6119_ACEOF 6721_ACEOF
6120if ac_fn_cxx_try_link "$LINENO"; then : 6722if ac_fn_cxx_try_link "$LINENO"
6723then :
6121 ac_cv_lib_socket_connect=yes 6724 ac_cv_lib_socket_connect=yes
6122else 6725else $as_nop
6123 ac_cv_lib_socket_connect=no 6726 ac_cv_lib_socket_connect=no
6124fi 6727fi
6125rm -f core conftest.err conftest.$ac_objext \ 6728rm -f core conftest.err conftest.$ac_objext conftest.beam \
6126 conftest$ac_exeext conftest.$ac_ext 6729 conftest$ac_exeext conftest.$ac_ext
6127LIBS=$ac_check_lib_save_LIBS 6730LIBS=$ac_check_lib_save_LIBS
6128fi 6731fi
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 6732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6130$as_echo "$ac_cv_lib_socket_connect" >&6; } 6733printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
6131if test "x$ac_cv_lib_socket_connect" = xyes; then : 6734if test "x$ac_cv_lib_socket_connect" = xyes
6735then :
6132 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6736 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6133fi 6737fi
6134 6738
6135 fi 6739 fi
6136 6740
6137 # Guillermo Gomez says -lposix is necessary on A/UX. 6741 # Guillermo Gomez says -lposix is necessary on A/UX.
6138 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 6742 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6139if test "x$ac_cv_func_remove" = xyes; then : 6743if test "x$ac_cv_func_remove" = xyes
6744then :
6140 6745
6141fi 6746fi
6142 6747
6143 if test $ac_cv_func_remove = no; then 6748 if test $ac_cv_func_remove = no; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6145$as_echo_n "checking for remove in -lposix... " >&6; } 6750printf %s "checking for remove in -lposix... " >&6; }
6146if ${ac_cv_lib_posix_remove+:} false; then : 6751if test ${ac_cv_lib_posix_remove+y}
6147 $as_echo_n "(cached) " >&6 6752then :
6148else 6753 printf %s "(cached) " >&6
6754else $as_nop
6149 ac_check_lib_save_LIBS=$LIBS 6755 ac_check_lib_save_LIBS=$LIBS
6150LIBS="-lposix $LIBS" 6756LIBS="-lposix $LIBS"
6151cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152/* end confdefs.h. */ 6758/* end confdefs.h. */
6153 6759
6154/* Override any GCC internal prototype to avoid an error. 6760namespace conftest {
6155 Use char because int might match the return type of a GCC 6761 extern "C" int remove ();
6156 builtin and then its argument prototype would still apply. */ 6762}
6157#ifdef __cplusplus
6158extern "C"
6159#endif
6160char remove ();
6161int 6763int
6162main () 6764main (void)
6163{ 6765{
6164return remove (); 6766return conftest::remove ();
6165 ; 6767 ;
6166 return 0; 6768 return 0;
6167} 6769}
6168_ACEOF 6770_ACEOF
6169if ac_fn_cxx_try_link "$LINENO"; then : 6771if ac_fn_cxx_try_link "$LINENO"
6772then :
6170 ac_cv_lib_posix_remove=yes 6773 ac_cv_lib_posix_remove=yes
6171else 6774else $as_nop
6172 ac_cv_lib_posix_remove=no 6775 ac_cv_lib_posix_remove=no
6173fi 6776fi
6174rm -f core conftest.err conftest.$ac_objext \ 6777rm -f core conftest.err conftest.$ac_objext conftest.beam \
6175 conftest$ac_exeext conftest.$ac_ext 6778 conftest$ac_exeext conftest.$ac_ext
6176LIBS=$ac_check_lib_save_LIBS 6779LIBS=$ac_check_lib_save_LIBS
6177fi 6780fi
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 6781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6179$as_echo "$ac_cv_lib_posix_remove" >&6; } 6782printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
6180if test "x$ac_cv_lib_posix_remove" = xyes; then : 6783if test "x$ac_cv_lib_posix_remove" = xyes
6784then :
6181 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 6785 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6182fi 6786fi
6183 6787
6184 fi 6788 fi
6185 6789
6186 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6790 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6187 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 6791 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6188if test "x$ac_cv_func_shmat" = xyes; then : 6792if test "x$ac_cv_func_shmat" = xyes
6793then :
6189 6794
6190fi 6795fi
6191 6796
6192 if test $ac_cv_func_shmat = no; then 6797 if test $ac_cv_func_shmat = no; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 6798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6194$as_echo_n "checking for shmat in -lipc... " >&6; } 6799printf %s "checking for shmat in -lipc... " >&6; }
6195if ${ac_cv_lib_ipc_shmat+:} false; then : 6800if test ${ac_cv_lib_ipc_shmat+y}
6196 $as_echo_n "(cached) " >&6 6801then :
6197else 6802 printf %s "(cached) " >&6
6803else $as_nop
6198 ac_check_lib_save_LIBS=$LIBS 6804 ac_check_lib_save_LIBS=$LIBS
6199LIBS="-lipc $LIBS" 6805LIBS="-lipc $LIBS"
6200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201/* end confdefs.h. */ 6807/* end confdefs.h. */
6202 6808
6203/* Override any GCC internal prototype to avoid an error. 6809namespace conftest {
6204 Use char because int might match the return type of a GCC 6810 extern "C" int shmat ();
6205 builtin and then its argument prototype would still apply. */ 6811}
6206#ifdef __cplusplus
6207extern "C"
6208#endif
6209char shmat ();
6210int 6812int
6211main () 6813main (void)
6212{ 6814{
6213return shmat (); 6815return conftest::shmat ();
6214 ; 6816 ;
6215 return 0; 6817 return 0;
6216} 6818}
6217_ACEOF 6819_ACEOF
6218if ac_fn_cxx_try_link "$LINENO"; then : 6820if ac_fn_cxx_try_link "$LINENO"
6821then :
6219 ac_cv_lib_ipc_shmat=yes 6822 ac_cv_lib_ipc_shmat=yes
6220else 6823else $as_nop
6221 ac_cv_lib_ipc_shmat=no 6824 ac_cv_lib_ipc_shmat=no
6222fi 6825fi
6223rm -f core conftest.err conftest.$ac_objext \ 6826rm -f core conftest.err conftest.$ac_objext conftest.beam \
6224 conftest$ac_exeext conftest.$ac_ext 6827 conftest$ac_exeext conftest.$ac_ext
6225LIBS=$ac_check_lib_save_LIBS 6828LIBS=$ac_check_lib_save_LIBS
6226fi 6829fi
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 6830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6228$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 6831printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
6229if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 6832if test "x$ac_cv_lib_ipc_shmat" = xyes
6833then :
6230 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6834 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6231fi 6835fi
6232 6836
6233 fi 6837 fi
6234 fi 6838 fi
6240 # check for ICE first), but we must link in the order -lSM -lICE or 6844 # check for ICE first), but we must link in the order -lSM -lICE or
6241 # we get undefined symbols. So assume we have SM if we have ICE. 6845 # we get undefined symbols. So assume we have SM if we have ICE.
6242 # These have to be linked with before -lX11, unlike the other 6846 # These have to be linked with before -lX11, unlike the other
6243 # libraries we check for below, so use a different variable. 6847 # libraries we check for below, so use a different variable.
6244 # John Interrante, Karl Berry 6848 # John Interrante, Karl Berry
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6246$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 6850printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
6247if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 6851if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
6248 $as_echo_n "(cached) " >&6 6852then :
6249else 6853 printf %s "(cached) " >&6
6854else $as_nop
6250 ac_check_lib_save_LIBS=$LIBS 6855 ac_check_lib_save_LIBS=$LIBS
6251LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6856LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6252cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253/* end confdefs.h. */ 6858/* end confdefs.h. */
6254 6859
6255/* Override any GCC internal prototype to avoid an error. 6860namespace conftest {
6256 Use char because int might match the return type of a GCC 6861 extern "C" int IceConnectionNumber ();
6257 builtin and then its argument prototype would still apply. */ 6862}
6258#ifdef __cplusplus
6259extern "C"
6260#endif
6261char IceConnectionNumber ();
6262int 6863int
6263main () 6864main (void)
6264{ 6865{
6265return IceConnectionNumber (); 6866return conftest::IceConnectionNumber ();
6266 ; 6867 ;
6267 return 0; 6868 return 0;
6268} 6869}
6269_ACEOF 6870_ACEOF
6270if ac_fn_cxx_try_link "$LINENO"; then : 6871if ac_fn_cxx_try_link "$LINENO"
6872then :
6271 ac_cv_lib_ICE_IceConnectionNumber=yes 6873 ac_cv_lib_ICE_IceConnectionNumber=yes
6272else 6874else $as_nop
6273 ac_cv_lib_ICE_IceConnectionNumber=no 6875 ac_cv_lib_ICE_IceConnectionNumber=no
6274fi 6876fi
6275rm -f core conftest.err conftest.$ac_objext \ 6877rm -f core conftest.err conftest.$ac_objext conftest.beam \
6276 conftest$ac_exeext conftest.$ac_ext 6878 conftest$ac_exeext conftest.$ac_ext
6277LIBS=$ac_check_lib_save_LIBS 6879LIBS=$ac_check_lib_save_LIBS
6278fi 6880fi
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 6881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6280$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 6882printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6281if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 6883if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
6884then :
6282 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 6885 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6283fi 6886fi
6284 6887
6285 LDFLAGS=$ac_save_LDFLAGS 6888 LDFLAGS=$ac_save_LDFLAGS
6286 6889
6287fi 6890fi
6288 6891
6289 6892
6290image_lib=none 6893if test -n "$ac_tool_prefix"; then
6291
6292PIXBUF_CFLAGS=
6293PIXBUF_LIBS=
6294
6295if test x$support_pixbuf = xyes; then
6296 support_pixbuf=no
6297 # Extract the first word of "pkg-config", so it can be a program name with args. 6894 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6298set dummy pkg-config; ac_word=$2 6895set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300$as_echo_n "checking for $ac_word... " >&6; } 6897printf %s "checking for $ac_word... " >&6; }
6301if ${ac_cv_path_PKG_CONFIG+:} false; then : 6898if test ${ac_cv_path_PKG_CONFIG+y}
6302 $as_echo_n "(cached) " >&6 6899then :
6303else 6900 printf %s "(cached) " >&6
6901else $as_nop
6304 case $PKG_CONFIG in 6902 case $PKG_CONFIG in
6305 [\\/]* | ?:[\\/]*) 6903 [\\/]* | ?:[\\/]*)
6306 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6904 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6307 ;; 6905 ;;
6308 *) 6906 *)
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH 6908for as_dir in $PATH
6311do 6909do
6312 IFS=$as_save_IFS 6910 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=. 6911 case $as_dir in #(((
6912 '') as_dir=./ ;;
6913 */) ;;
6914 *) as_dir=$as_dir/ ;;
6915 esac
6314 for ac_exec_ext in '' $ac_executable_extensions; do 6916 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6316 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6918 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6318 break 2 6920 break 2
6319 fi 6921 fi
6320done 6922done
6321 done 6923 done
6322IFS=$as_save_IFS 6924IFS=$as_save_IFS
6323 6925
6324 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6325 ;; 6926 ;;
6326esac 6927esac
6327fi 6928fi
6328PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6929PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6329if test -n "$PKG_CONFIG"; then 6930if test -n "$PKG_CONFIG"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6331$as_echo "$PKG_CONFIG" >&6; } 6932printf "%s\n" "$PKG_CONFIG" >&6; }
6332else 6933else
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334$as_echo "no" >&6; } 6935printf "%s\n" "no" >&6; }
6335fi 6936fi
6336 6937
6337 6938
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5
6339$as_echo_n "checking for gdk-pixbuf... " >&6; }
6340 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
6341 PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`"
6342 PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`"
6343 support_pixbuf=yes
6344 fi
6345
6346 if test x$support_pixbuf = xyes; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6348$as_echo "ok" >&6; }
6349 image_lib=gdk-pixbuf
6350 support_afterimage=no
6351
6352$as_echo "#define HAVE_PIXBUF 1" >>confdefs.h
6353
6354
6355$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6356
6357 else
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359$as_echo "no" >&6; }
6360 fi
6361fi 6939fi
6362 6940if test -z "$ac_cv_path_PKG_CONFIG"; then
6363 6941 ac_pt_PKG_CONFIG=$PKG_CONFIG
6364
6365
6366STARTUP_NOTIFICATION_CFLAGS=
6367STARTUP_NOTIFICATION_LIBS=
6368
6369if test x$support_startup_notification = xyes; then
6370 support_startup_notification=no
6371 # Extract the first word of "pkg-config", so it can be a program name with args. 6942 # Extract the first word of "pkg-config", so it can be a program name with args.
6372set dummy pkg-config; ac_word=$2 6943set dummy pkg-config; ac_word=$2
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374$as_echo_n "checking for $ac_word... " >&6; } 6945printf %s "checking for $ac_word... " >&6; }
6375if ${ac_cv_path_PKG_CONFIG+:} false; then : 6946if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6376 $as_echo_n "(cached) " >&6 6947then :
6377else 6948 printf %s "(cached) " >&6
6949else $as_nop
6378 case $PKG_CONFIG in 6950 case $ac_pt_PKG_CONFIG in
6379 [\\/]* | ?:[\\/]*) 6951 [\\/]* | ?:[\\/]*)
6380 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6952 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6381 ;; 6953 ;;
6382 *) 6954 *)
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH 6956for as_dir in $PATH
6385do 6957do
6386 IFS=$as_save_IFS 6958 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=. 6959 case $as_dir in #(((
6960 '') as_dir=./ ;;
6961 */) ;;
6962 *) as_dir=$as_dir/ ;;
6963 esac
6388 for ac_exec_ext in '' $ac_executable_extensions; do 6964 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6390 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6966 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6392 break 2 6968 break 2
6393 fi 6969 fi
6394done 6970done
6395 done 6971 done
6396IFS=$as_save_IFS 6972IFS=$as_save_IFS
6397 6973
6398 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6399 ;; 6974 ;;
6400esac 6975esac
6401fi 6976fi
6402PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6977ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6403if test -n "$PKG_CONFIG"; then 6978if test -n "$ac_pt_PKG_CONFIG"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6405$as_echo "$PKG_CONFIG" >&6; } 6980printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6406else 6981else
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408$as_echo "no" >&6; } 6983printf "%s\n" "no" >&6; }
6409fi 6984fi
6410 6985
6986 if test "x$ac_pt_PKG_CONFIG" = x; then
6987 PKG_CONFIG="no"
6988 else
6989 case $cross_compiling:$ac_tool_warned in
6990yes:)
6991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6992printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6993ac_tool_warned=yes ;;
6994esac
6995 PKG_CONFIG=$ac_pt_PKG_CONFIG
6996 fi
6997else
6998 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6999fi
6411 7000
7001
7002image_lib=none
7003
7004PIXBUF_CFLAGS=
7005PIXBUF_LIBS=
7006
7007if test x$support_pixbuf = xyes; then
7008
7009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0" >&5
7010printf %s "checking for gdk-pixbuf-2.0... " >&6; }
7011 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
7012 PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`"
7013 PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`"
7014
7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7016printf "%s\n" "ok" >&6; }
7017
7018 image_lib=gdk-pixbuf
7019
7020printf "%s\n" "#define HAVE_PIXBUF 1" >>confdefs.h
7021
7022
7023 else
7024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025printf "%s\n" "no" >&6; }
7026 :
7027 fi
7028
7029fi
7030
7031
7032
7033
7034STARTUP_NOTIFICATION_CFLAGS=
7035STARTUP_NOTIFICATION_LIBS=
7036
7037if test x$support_startup_notification = xyes; then
7038
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5 7039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0" >&5
6413$as_echo_n "checking for libstartup-notification... " >&6; } 7040printf %s "checking for libstartup-notification-1.0... " >&6; }
6414 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then 7041 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
6415 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" 7042 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`"
6416 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" 7043 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`"
6417 support_startup_notification=yes
6418 fi
6419 7044
6420 if test x$support_startup_notification = xyes; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6422$as_echo "ok" >&6; } 7046printf "%s\n" "ok" >&6; }
6423 7047
7048
6424$as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h 7049printf "%s\n" "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
7050
6425 7051
6426 else 7052 else
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428$as_echo "no" >&6; } 7054printf "%s\n" "no" >&6; }
7055 :
6429 fi 7056 fi
6430fi
6431 7057
7058fi
6432 7059
6433 7060
6434 7061
6435AFTERIMAGE_CFLAGS=
6436AFTERIMAGE_LIBS=
6437AFTERIMAGE_VERSION=
6438 7062
6439if test x$support_afterimage = xyes; then 7063if test x$support_frills = xyes; then
6440 support_afterimage=no
6441 7064
6442 if test "x$afterimage_config" = "x" ; then
6443 # Extract the first word of "afterimage-config", so it can be a program name with args.
6444set dummy afterimage-config; ac_word=$2
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmu" >&5
6446$as_echo_n "checking for $ac_word... " >&6; } 7066printf %s "checking for xmu... " >&6; }
6447if ${ac_cv_path_afterimage_config+:} false; then : 7067 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then
6448 $as_echo_n "(cached) " >&6 7068 XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`"
7069 XMU_LIBS="`$PKG_CONFIG --libs xmu`"
7070
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7072printf "%s\n" "ok" >&6; }
7073
7074 X_LIBS="$XMU_LIBS $X_LIBS"
7075 CPPFLAGS="$CPPFLAGS $XMU_CFLAGS"
7076
7077printf "%s\n" "#define HAVE_XMU 1" >>confdefs.h
7078
7079
6449else 7080 else
6450 case $afterimage_config in 7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451 [\\/]* | ?:[\\/]*) 7082printf "%s\n" "no" >&6; }
6452 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path. 7083 :
7084 fi
7085
7086fi
7087
7088ac_fn_cxx_check_header_compile "$LINENO" "sys/byteorder.h" "ac_cv_header_sys_byteorder_h" "$ac_includes_default"
7089if test "x$ac_cv_header_sys_byteorder_h" = xyes
7090then :
7091 printf "%s\n" "#define HAVE_SYS_BYTEORDER_H 1" >>confdefs.h
7092
7093fi
7094ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
7095if test "x$ac_cv_header_sys_ioctl_h" = xyes
7096then :
7097 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
7098
7099fi
7100ac_fn_cxx_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7101if test "x$ac_cv_header_sys_sockio_h" = xyes
7102then :
7103 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7104
7105fi
7106ac_fn_cxx_check_header_compile "$LINENO" "sys/strredir.h" "ac_cv_header_sys_strredir_h" "$ac_includes_default"
7107if test "x$ac_cv_header_sys_strredir_h" = xyes
7108then :
7109 printf "%s\n" "#define HAVE_SYS_STRREDIR_H 1" >>confdefs.h
7110
7111fi
7112ac_fn_cxx_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7113if test "x$ac_cv_header_stdint_h" = xyes
7114then :
7115 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
7116
7117fi
7118ac_fn_cxx_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
7119if test "x$ac_cv_header_wchar_h" = xyes
7120then :
7121 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
7122
7123fi
7124
7125
7126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
7127printf %s "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
7128if test ${rxvt_cv_xlib_illegal_access+y}
7129then :
7130 printf %s "(cached) " >&6
7131else $as_nop
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133/* end confdefs.h. */
7134
7135#define XLIB_ILLEGAL_ACCESS
7136#include <X11/Xlib.h>
7137
7138int
7139main (void)
7140{
7141
7142 Display *dpy;
7143 dpy->xdefaults = (char *)0;
7144
6453 ;; 7145 ;
6454 *) 7146 return 0;
7147}
7148_ACEOF
7149if ac_fn_cxx_try_compile "$LINENO"
7150then :
7151 rxvt_cv_xlib_illegal_access=yes
7152else $as_nop
7153 rxvt_cv_xlib_illegal_access=no
7154
7155fi
7156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7157fi
7158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
7159printf "%s\n" "$rxvt_cv_xlib_illegal_access" >&6; }
7160if test x$rxvt_cv_xlib_illegal_access = xyes; then
7161
7162printf "%s\n" "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
7163
7164fi
7165
7166ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7167if test "x$ac_cv_type_mode_t" = xyes
7168then :
7169
7170else $as_nop
7171
7172printf "%s\n" "#define mode_t int" >>confdefs.h
7173
7174fi
7175
7176
7177 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
7178"
7179if test "x$ac_cv_type_pid_t" = xyes
7180then :
7181
7182else $as_nop
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184/* end confdefs.h. */
7185
7186 #if defined _WIN64 && !defined __CYGWIN__
7187 LLP64
7188 #endif
7189
7190int
7191main (void)
7192{
7193
7194 ;
7195 return 0;
7196}
7197
7198_ACEOF
7199if ac_fn_cxx_try_compile "$LINENO"
7200then :
7201 ac_pid_type='int'
7202else $as_nop
7203 ac_pid_type='__int64'
7204fi
7205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7206
7207printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
7208
7209
7210fi
7211
7212
7213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7214printf %s "checking for grep that handles long lines and -e... " >&6; }
7215if test ${ac_cv_path_GREP+y}
7216then :
7217 printf %s "(cached) " >&6
7218else $as_nop
7219 if test -z "$GREP"; then
7220 ac_path_GREP_found=false
7221 # Loop through the user's path and test for each of PROGNAME-LIST
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH 7223for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6457do 7224do
6458 IFS=$as_save_IFS 7225 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=. 7226 case $as_dir in #(((
7227 '') as_dir=./ ;;
7228 */) ;;
7229 *) as_dir=$as_dir/ ;;
7230 esac
7231 for ac_prog in grep ggrep
7232 do
6460 for ac_exec_ext in '' $ac_executable_extensions; do 7233 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7234 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6462 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext" 7235 as_fn_executable_p "$ac_path_GREP" || continue
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7236# Check for GNU ac_path_GREP and select it if it is found.
6464 break 2 7237 # Check for GNU $ac_path_GREP
7238case `"$ac_path_GREP" --version 2>&1` in
7239*GNU*)
7240 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7241*)
7242 ac_count=0
7243 printf %s 0123456789 >"conftest.in"
7244 while :
7245 do
7246 cat "conftest.in" "conftest.in" >"conftest.tmp"
7247 mv "conftest.tmp" "conftest.in"
7248 cp "conftest.in" "conftest.nl"
7249 printf "%s\n" 'GREP' >> "conftest.nl"
7250 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7252 as_fn_arith $ac_count + 1 && ac_count=$as_val
7253 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7254 # Best one so far, save it but keep looking for a better one
7255 ac_cv_path_GREP="$ac_path_GREP"
7256 ac_path_GREP_max=$ac_count
6465 fi 7257 fi
7258 # 10*(2^10) chars as input seems more than enough
7259 test $ac_count -gt 10 && break
6466done 7260 done
7261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7262esac
7263
7264 $ac_path_GREP_found && break 3
7265 done
7266 done
6467 done 7267 done
6468IFS=$as_save_IFS 7268IFS=$as_save_IFS
7269 if test -z "$ac_cv_path_GREP"; then
7270 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7271 fi
7272else
7273 ac_cv_path_GREP=$GREP
7274fi
6469 7275
6470 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no" 7276fi
6471 ;; 7277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7278printf "%s\n" "$ac_cv_path_GREP" >&6; }
7279 GREP="$ac_cv_path_GREP"
7280
7281
7282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7283printf %s "checking for egrep... " >&6; }
7284if test ${ac_cv_path_EGREP+y}
7285then :
7286 printf %s "(cached) " >&6
7287else $as_nop
7288 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7289 then ac_cv_path_EGREP="$GREP -E"
7290 else
7291 if test -z "$EGREP"; then
7292 ac_path_EGREP_found=false
7293 # Loop through the user's path and test for each of PROGNAME-LIST
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7296do
7297 IFS=$as_save_IFS
7298 case $as_dir in #(((
7299 '') as_dir=./ ;;
7300 */) ;;
7301 *) as_dir=$as_dir/ ;;
7302 esac
7303 for ac_prog in egrep
7304 do
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7307 as_fn_executable_p "$ac_path_EGREP" || continue
7308# Check for GNU ac_path_EGREP and select it if it is found.
7309 # Check for GNU $ac_path_EGREP
7310case `"$ac_path_EGREP" --version 2>&1` in
7311*GNU*)
7312 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7313*)
7314 ac_count=0
7315 printf %s 0123456789 >"conftest.in"
7316 while :
7317 do
7318 cat "conftest.in" "conftest.in" >"conftest.tmp"
7319 mv "conftest.tmp" "conftest.in"
7320 cp "conftest.in" "conftest.nl"
7321 printf "%s\n" 'EGREP' >> "conftest.nl"
7322 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7324 as_fn_arith $ac_count + 1 && ac_count=$as_val
7325 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7326 # Best one so far, save it but keep looking for a better one
7327 ac_cv_path_EGREP="$ac_path_EGREP"
7328 ac_path_EGREP_max=$ac_count
7329 fi
7330 # 10*(2^10) chars as input seems more than enough
7331 test $ac_count -gt 10 && break
7332 done
7333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6472esac 7334esac
6473fi 7335
6474afterimage_config=$ac_cv_path_afterimage_config 7336 $ac_path_EGREP_found && break 3
6475if test -n "$afterimage_config"; then 7337 done
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afterimage_config" >&5 7338 done
6477$as_echo "$afterimage_config" >&6; } 7339 done
7340IFS=$as_save_IFS
7341 if test -z "$ac_cv_path_EGREP"; then
7342 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7343 fi
6478else 7344else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7345 ac_cv_path_EGREP=$EGREP
6480$as_echo "no" >&6; }
6481fi 7346fi
6482 7347
6483
6484 fi
6485 if test "x$afterimage_config" != "xno" ; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5
6487$as_echo_n "checking for libAfterImage version >= 1.15... " >&6; }
6488 xAFTERIMAGE_VERSION=`$afterimage_config --version`
6489 if test -n "$xAFTERIMAGE_VERSION" ; then
6490 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6491 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6492 if test "x$xAFTERIMAGE_LIBS" != "x"; then
6493 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
6494 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
6495 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6496 support_afterimage=yes
6497 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6498 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6499 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6500 fi
6501 fi
6502 fi 7348 fi
6503 if test "x$support_afterimage" = "xyes"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5
6505$as_echo "$AFTERIMAGE_LIBS" >&6; }
6506 image_lib=libafterimage
6507
6508$as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h
6509
6510
6511$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6512
6513 else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515$as_echo "no" >&6; }
6516 fi
6517 fi
6518fi 7349fi
7350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7351printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7352 EGREP="$ac_cv_path_EGREP"
6519 7353
6520 7354
6521
6522
6523for ac_header in \
6524 sys/byteorder.h \
6525 sys/ioctl.h \
6526 sys/sockio.h \
6527 sys/strredir.h \
6528 stdint.h \
6529 wchar.h \
6530 cwchar \
6531
6532do :
6533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6534ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6535if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6536 cat >>confdefs.h <<_ACEOF
6537#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6538_ACEOF
6539
6540fi
6541
6542done
6543
6544
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
6546$as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
6547if ${rxvt_cv_xlib_illegal_access+:} false; then :
6548 $as_echo_n "(cached) " >&6
6549else
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551/* end confdefs.h. */
6552
6553#define XLIB_ILLEGAL_ACCESS
6554#include <X11/Xlib.h>
6555
6556int
6557main ()
6558{
6559
6560 Display *dpy;
6561 dpy->xdefaults = (char *)0;
6562
6563 ;
6564 return 0;
6565}
6566_ACEOF
6567if ac_fn_cxx_try_compile "$LINENO"; then :
6568 rxvt_cv_xlib_illegal_access=yes
6569else
6570 rxvt_cv_xlib_illegal_access=no
6571
6572fi
6573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574fi
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6576$as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6577if test x$rxvt_cv_xlib_illegal_access = xyes; then
6578
6579$as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6580
6581fi
6582
6583ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6584if test "x$ac_cv_type_mode_t" = xyes; then :
6585
6586else
6587
6588cat >>confdefs.h <<_ACEOF
6589#define mode_t int
6590_ACEOF
6591
6592fi
6593
6594ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6595if test "x$ac_cv_type_pid_t" = xyes; then :
6596
6597else
6598
6599cat >>confdefs.h <<_ACEOF
6600#define pid_t int
6601_ACEOF
6602
6603fi
6604
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 7355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6606$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 7356printf %s "checking for uid_t in sys/types.h... " >&6; }
6607if ${ac_cv_type_uid_t+:} false; then : 7357if test ${ac_cv_type_uid_t+y}
6608 $as_echo_n "(cached) " >&6 7358then :
6609else 7359 printf %s "(cached) " >&6
7360else $as_nop
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611/* end confdefs.h. */ 7362/* end confdefs.h. */
6612#include <sys/types.h> 7363#include <sys/types.h>
6613 7364
6614_ACEOF 7365_ACEOF
6615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6616 $EGREP "uid_t" >/dev/null 2>&1; then : 7367 $EGREP "uid_t" >/dev/null 2>&1
7368then :
6617 ac_cv_type_uid_t=yes 7369 ac_cv_type_uid_t=yes
6618else 7370else $as_nop
6619 ac_cv_type_uid_t=no 7371 ac_cv_type_uid_t=no
6620fi 7372fi
6621rm -f conftest* 7373rm -rf conftest*
6622 7374
6623fi 7375fi
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 7376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6625$as_echo "$ac_cv_type_uid_t" >&6; } 7377printf "%s\n" "$ac_cv_type_uid_t" >&6; }
6626if test $ac_cv_type_uid_t = no; then 7378if test $ac_cv_type_uid_t = no; then
6627 7379
6628$as_echo "#define uid_t int" >>confdefs.h 7380printf "%s\n" "#define uid_t int" >>confdefs.h
6629 7381
6630 7382
6631$as_echo "#define gid_t int" >>confdefs.h 7383printf "%s\n" "#define gid_t int" >>confdefs.h
6632 7384
6633fi 7385fi
6634 7386
6635ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 7387ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6636case $ac_cv_c_int16_t in #( 7388case $ac_cv_c_int16_t in #(
6637 no|yes) ;; #( 7389 no|yes) ;; #(
6638 *) 7390 *)
6639 7391
6640cat >>confdefs.h <<_ACEOF 7392printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
6641#define int16_t $ac_cv_c_int16_t
6642_ACEOF
6643;; 7393;;
6644esac 7394esac
6645 7395
6646ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 7396ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6647case $ac_cv_c_uint16_t in #( 7397case $ac_cv_c_uint16_t in #(
6648 no|yes) ;; #( 7398 no|yes) ;; #(
6649 *) 7399 *)
6650 7400
6651 7401
6652cat >>confdefs.h <<_ACEOF 7402printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
6653#define uint16_t $ac_cv_c_uint16_t
6654_ACEOF
6655;; 7403;;
6656 esac 7404 esac
6657 7405
6658ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 7406ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6659case $ac_cv_c_int32_t in #( 7407case $ac_cv_c_int32_t in #(
6660 no|yes) ;; #( 7408 no|yes) ;; #(
6661 *) 7409 *)
6662 7410
6663cat >>confdefs.h <<_ACEOF 7411printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
6664#define int32_t $ac_cv_c_int32_t
6665_ACEOF
6666;; 7412;;
6667esac 7413esac
6668 7414
6669ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 7415ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6670case $ac_cv_c_uint32_t in #( 7416case $ac_cv_c_uint32_t in #(
6671 no|yes) ;; #( 7417 no|yes) ;; #(
6672 *) 7418 *)
6673 7419
6674$as_echo "#define _UINT32_T 1" >>confdefs.h 7420printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
6675 7421
6676 7422
6677cat >>confdefs.h <<_ACEOF 7423printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
6678#define uint32_t $ac_cv_c_uint32_t
6679_ACEOF
6680;; 7424;;
6681 esac 7425 esac
6682 7426
6683 7427
6684for ac_func in unsetenv
6685do :
6686 ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 7428ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6687if test "x$ac_cv_func_unsetenv" = xyes; then : 7429if test "x$ac_cv_func_unsetenv" = xyes
6688 cat >>confdefs.h <<_ACEOF 7430then :
6689#define HAVE_UNSETENV 1 7431 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
6690_ACEOF
6691 7432
6692fi 7433fi
6693done
6694 7434
6695 7435
6696 7436
6697support_utmp=yes 7437support_utmp=yes
6698support_wtmp=yes 7438support_wtmp=yes
6699support_lastlog=yes 7439support_lastlog=yes
6700 7440
6701# Check whether --enable-utmp was given. 7441# Check whether --enable-utmp was given.
6702if test "${enable_utmp+set}" = set; then : 7442if test ${enable_utmp+y}
7443then :
6703 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then 7444 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
6704 support_utmp=$enableval 7445 support_utmp=$enableval
6705 fi 7446 fi
6706fi 7447fi
6707 7448
6708 7449
6709# Check whether --enable-wtmp was given. 7450# Check whether --enable-wtmp was given.
6710if test "${enable_wtmp+set}" = set; then : 7451if test ${enable_wtmp+y}
7452then :
6711 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then 7453 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
6712 support_wtmp=$enableval 7454 support_wtmp=$enableval
6713 fi 7455 fi
6714fi 7456fi
6715 7457
6716 7458
6717# Check whether --enable-lastlog was given. 7459# Check whether --enable-lastlog was given.
6718if test "${enable_lastlog+set}" = set; then : 7460if test ${enable_lastlog+y}
7461then :
6719 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then 7462 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
6720 support_lastlog=$enableval 7463 support_lastlog=$enableval
6721 fi 7464 fi
6722fi 7465fi
6723 7466
6724 7467
6725if test x$support_utmp = xyes; then 7468if test x$support_utmp = xyes; then
6726 7469
6727$as_echo "#define UTMP_SUPPORT 1" >>confdefs.h 7470printf "%s\n" "#define UTMP_SUPPORT 1" >>confdefs.h
6728 7471
6729fi 7472fi
6730if test x$support_wtmp = xyes; then 7473if test x$support_wtmp = xyes; then
6731 7474
6732$as_echo "#define WTMP_SUPPORT 1" >>confdefs.h 7475printf "%s\n" "#define WTMP_SUPPORT 1" >>confdefs.h
6733 7476
6734fi 7477fi
6735if test x$support_lastlog = xyes; then 7478if test x$support_lastlog = xyes; then
6736 7479
6737$as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h 7480printf "%s\n" "#define LASTLOG_SUPPORT 1" >>confdefs.h
6738 7481
6739fi 7482fi
6740 7483
6741for ac_func in \ 7484ac_fn_cxx_check_func "$LINENO" "updwtmp" "ac_cv_func_updwtmp"
6742 updwtmp \ 7485if test "x$ac_cv_func_updwtmp" = xyes
6743 updwtmpx \ 7486then :
6744 updlastlogx \ 7487 printf "%s\n" "#define HAVE_UPDWTMP 1" >>confdefs.h
6745 7488
7489fi
7490ac_fn_cxx_check_func "$LINENO" "updwtmpx" "ac_cv_func_updwtmpx"
7491if test "x$ac_cv_func_updwtmpx" = xyes
7492then :
7493 printf "%s\n" "#define HAVE_UPDWTMPX 1" >>confdefs.h
7494
7495fi
7496ac_fn_cxx_check_func "$LINENO" "updlastlogx" "ac_cv_func_updlastlogx"
7497if test "x$ac_cv_func_updlastlogx" = xyes
7498then :
7499 printf "%s\n" "#define HAVE_UPDLASTLOGX 1" >>confdefs.h
7500
7501fi
7502
7503
7504ac_fn_cxx_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
7505if test "x$ac_cv_header_lastlog_h" = xyes
7506then :
7507 printf "%s\n" "#define HAVE_LASTLOG_H 1" >>confdefs.h
7508
7509fi
7510
7511
7512case $host in
7513 *-*-solaris*)
7514
7515printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
7516
7517 ;;
7518esac
7519
7520
7521 for ac_header in utmp.h
6746do : 7522do :
6747 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6748ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6749if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6750 cat >>confdefs.h <<_ACEOF
6751#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6752_ACEOF
6753
6754fi
6755done
6756
6757
6758for ac_header in lastlog.h
6759do :
6760 ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
6761if test "x$ac_cv_header_lastlog_h" = xyes; then :
6762 cat >>confdefs.h <<_ACEOF
6763#define HAVE_LASTLOG_H 1
6764_ACEOF
6765
6766fi
6767
6768done
6769
6770
6771
6772for ac_header in utmp.h
6773do :
6774 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" 7523 ac_fn_cxx_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6775if test "x$ac_cv_header_utmp_h" = xyes; then : 7524if test "x$ac_cv_header_utmp_h" = xyes
6776 cat >>confdefs.h <<_ACEOF 7525then :
6777#define HAVE_UTMP_H 1 7526 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
6778_ACEOF 7527
6779 ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" " 7528ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
6780#include <sys/types.h> 7529#include <sys/types.h>
6781#include <utmp.h> 7530#include <utmp.h>
6782 7531
6783" 7532"
6784if test "x$ac_cv_type_struct_utmp" = xyes; then : 7533if test "x$ac_cv_type_struct_utmp" = xyes
7534then :
6785 7535
6786cat >>confdefs.h <<_ACEOF 7536printf "%s\n" "#define HAVE_STRUCT_UTMP 1" >>confdefs.h
6787#define HAVE_STRUCT_UTMP 1
6788_ACEOF
6789 7537
6790 7538
6791fi 7539fi
6792 7540
6793 7541
6794
6795# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
6796# ------------------------------------------------------
6797# Tries to find if the field MEMBER exists in type AGGR, after including
6798# INCLUDES, setting cache variable VAR accordingly.
6799ac_fn_cxx_check_member ()
6800{
6801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
6803$as_echo_n "checking for $2.$3... " >&6; }
6804if eval \${$4+:} false; then :
6805 $as_echo_n "(cached) " >&6
6806else
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h. */
6809$5
6810int
6811main ()
6812{
6813static $2 ac_aggr;
6814if (ac_aggr.$3)
6815return 0;
6816 ;
6817 return 0;
6818}
6819_ACEOF
6820if ac_fn_cxx_try_compile "$LINENO"; then :
6821 eval "$4=yes"
6822else
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824/* end confdefs.h. */
6825$5
6826int
6827main ()
6828{
6829static $2 ac_aggr;
6830if (sizeof ac_aggr.$3)
6831return 0;
6832 ;
6833 return 0;
6834}
6835_ACEOF
6836if ac_fn_cxx_try_compile "$LINENO"; then :
6837 eval "$4=yes"
6838else
6839 eval "$4=no"
6840fi
6841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6842fi
6843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844fi
6845eval ac_res=\$$4
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6847$as_echo "$ac_res" >&6; }
6848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6849
6850} # ac_fn_cxx_check_member
6851ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " 7542ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
6852#include <sys/types.h> 7543#include <sys/types.h>
6853#include <utmp.h> 7544#include <utmp.h>
6854 7545
6855" 7546"
6856if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then : 7547if test "x$ac_cv_member_struct_utmp_ut_host" = xyes
7548then :
6857 7549
6858$as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h 7550printf "%s\n" "#define HAVE_UTMP_HOST 1" >>confdefs.h
6859 7551
6860fi 7552fi
6861 7553
6862 7554
6863ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " 7555ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
6864#include <sys/types.h> 7556#include <sys/types.h>
6865#include <utmp.h> 7557#include <utmp.h>
6866 7558
6867" 7559"
6868if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then : 7560if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes
7561then :
6869 7562
6870$as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h 7563printf "%s\n" "#define HAVE_UTMP_PID 1" >>confdefs.h
6871 7564
6872fi 7565fi
6873 7566
6874 7567
6875fi 7568fi
6876 7569
6877done 7570done
6878 7571
6879
6880for ac_header in utmpx.h 7572 for ac_header in utmpx.h
6881do : 7573do :
6882 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" 7574 ac_fn_cxx_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6883if test "x$ac_cv_header_utmpx_h" = xyes; then : 7575if test "x$ac_cv_header_utmpx_h" = xyes
6884 cat >>confdefs.h <<_ACEOF 7576then :
6885#define HAVE_UTMPX_H 1 7577 printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h
6886_ACEOF 7578
6887 ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" " 7579ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" "
6888#include <sys/types.h> 7580#include <sys/types.h>
6889#include <utmpx.h> 7581#include <utmpx.h>
6890 7582
6891" 7583"
6892if test "x$ac_cv_type_struct_utmpx" = xyes; then : 7584if test "x$ac_cv_type_struct_utmpx" = xyes
7585then :
6893 7586
6894cat >>confdefs.h <<_ACEOF 7587printf "%s\n" "#define HAVE_STRUCT_UTMPX 1" >>confdefs.h
6895#define HAVE_STRUCT_UTMPX 1
6896_ACEOF
6897 7588
6898 7589
6899fi 7590fi
6900 7591
6901 7592
6902ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" " 7593ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
6903#include <sys/types.h> 7594#include <sys/types.h>
6904#include <utmpx.h> 7595#include <utmpx.h>
6905 7596
6906" 7597"
6907if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then : 7598if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes
7599then :
6908 7600
6909$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h 7601printf "%s\n" "#define HAVE_UTMPX_HOST 1" >>confdefs.h
6910
6911fi
6912
6913
6914ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_session" "ac_cv_member_struct_utmpx_ut_session" "
6915#include <sys/types.h>
6916#include <utmpx.h>
6917
6918"
6919if test "x$ac_cv_member_struct_utmpx_ut_session" = xyes; then :
6920
6921$as_echo "#define HAVE_UTMPX_SESSION 1" >>confdefs.h
6922 7602
6923fi 7603fi
6924 7604
6925 7605
6926fi 7606fi
6927 7607
6928done 7608done
6929
6930ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " 7609ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
6931#include <sys/types.h> 7610#include <sys/types.h>
6932#include <utmp.h> 7611#include <utmp.h>
6933#ifdef HAVE_LASTLOG_H 7612#ifdef HAVE_LASTLOG_H
6934#include <lastlog.h> 7613#include <lastlog.h>
6935#endif 7614#endif
6936 7615
6937" 7616"
6938if test "x$ac_cv_type_struct_lastlog" = xyes; then : 7617if test "x$ac_cv_type_struct_lastlog" = xyes
7618then :
6939 7619
6940cat >>confdefs.h <<_ACEOF 7620printf "%s\n" "#define HAVE_STRUCT_LASTLOG 1" >>confdefs.h
6941#define HAVE_STRUCT_LASTLOG 1
6942_ACEOF
6943 7621
6944 7622
6945fi 7623fi
6946 7624
6947 7625
6951#ifdef HAVE_LASTLOG_H 7629#ifdef HAVE_LASTLOG_H
6952#include <lastlog.h> 7630#include <lastlog.h>
6953#endif 7631#endif
6954 7632
6955" 7633"
6956if test "x$ac_cv_type_struct_lastlogx" = xyes; then : 7634if test "x$ac_cv_type_struct_lastlogx" = xyes
7635then :
6957 7636
6958cat >>confdefs.h <<_ACEOF 7637printf "%s\n" "#define HAVE_STRUCT_LASTLOGX 1" >>confdefs.h
6959#define HAVE_STRUCT_LASTLOGX 1
6960_ACEOF
6961 7638
6962 7639
6963fi 7640fi
6964 7641
6965 7642
6966 7643
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5 7644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5
6968$as_echo_n "checking for a fallback location of utmp... " >&6; } 7645printf %s "checking for a fallback location of utmp... " >&6; }
6969if ${pt_cv_path_utmp+:} false; then : 7646if test ${pt_cv_path_utmp+y}
6970 $as_echo_n "(cached) " >&6 7647then :
6971else 7648 printf %s "(cached) " >&6
7649else $as_nop
6972 7650
6973if test "$cross_compiling" != yes; then 7651if test "$cross_compiling" != yes; then
6974 for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do 7652 for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do
6975 if test -f "$file"; then 7653 if test -f "$file"; then
6976 pt_cv_path_utmp=$file 7654 pt_cv_path_utmp=$file
6977 break 7655 break
6978 fi 7656 fi
6979 done 7657 done
6980fi 7658fi
6981fi 7659fi
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 7660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
6983$as_echo "$pt_cv_path_utmp" >&6; } 7661printf "%s\n" "$pt_cv_path_utmp" >&6; }
6984if test x$pt_cv_path_utmp != x; then 7662if test x$pt_cv_path_utmp != x; then
6985 7663
6986cat >>confdefs.h <<_ACEOF 7664printf "%s\n" "#define PT_UTMP_FILE \"$pt_cv_path_utmp\"" >>confdefs.h
6987#define PT_UTMP_FILE "$pt_cv_path_utmp"
6988_ACEOF
6989 7665
6990elif test "$cross_compiling" = yes; then 7666elif test "$cross_compiling" = yes; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5 7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5
6992$as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;} 7668printf "%s\n" "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;}
6993fi 7669fi
6994 7670
6995 7671
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5 7672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5
6997$as_echo_n "checking for a fallback location of wtmp... " >&6; } 7673printf %s "checking for a fallback location of wtmp... " >&6; }
6998if ${pt_cv_path_wtmp+:} false; then : 7674if test ${pt_cv_path_wtmp+y}
6999 $as_echo_n "(cached) " >&6 7675then :
7000else 7676 printf %s "(cached) " >&6
7677else $as_nop
7001 7678
7002if test "$cross_compiling" != yes; then 7679if test "$cross_compiling" != yes; then
7003 for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do 7680 for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do
7004 if test -f "$file"; then 7681 if test -f "$file"; then
7005 pt_cv_path_wtmp=$file 7682 pt_cv_path_wtmp=$file
7006 break 7683 break
7007 fi 7684 fi
7008 done 7685 done
7009fi 7686fi
7010fi 7687fi
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 7688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
7012$as_echo "$pt_cv_path_wtmp" >&6; } 7689printf "%s\n" "$pt_cv_path_wtmp" >&6; }
7013if test x$pt_cv_path_wtmp != x; then 7690if test x$pt_cv_path_wtmp != x; then
7014 7691
7015cat >>confdefs.h <<_ACEOF 7692printf "%s\n" "#define PT_WTMP_FILE \"$pt_cv_path_wtmp\"" >>confdefs.h
7016#define PT_WTMP_FILE "$pt_cv_path_wtmp"
7017_ACEOF
7018 7693
7019elif test "$cross_compiling" = yes; then 7694elif test "$cross_compiling" = yes; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5 7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5
7021$as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;} 7696printf "%s\n" "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;}
7022fi 7697fi
7023 7698
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5 7699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5
7025$as_echo_n "checking for a fallback location of wtmpx... " >&6; } 7700printf %s "checking for a fallback location of wtmpx... " >&6; }
7026if ${pt_cv_path_wtmpx+:} false; then : 7701if test ${pt_cv_path_wtmpx+y}
7027 $as_echo_n "(cached) " >&6 7702then :
7028else 7703 printf %s "(cached) " >&6
7704else $as_nop
7029 7705
7030if test "$cross_compiling" != yes; then 7706if test "$cross_compiling" != yes; then
7031 for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do 7707 for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do
7032 if test -f "$file"; then 7708 if test -f "$file"; then
7033 pt_cv_path_wtmpx=$file 7709 pt_cv_path_wtmpx=$file
7034 break 7710 break
7035 fi 7711 fi
7036 done 7712 done
7037fi 7713fi
7038fi 7714fi
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 7715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
7040$as_echo "$pt_cv_path_wtmpx" >&6; } 7716printf "%s\n" "$pt_cv_path_wtmpx" >&6; }
7041if test x$pt_cv_path_wtmpx != x; then 7717if test x$pt_cv_path_wtmpx != x; then
7042 7718
7043cat >>confdefs.h <<_ACEOF 7719printf "%s\n" "#define PT_WTMPX_FILE \"$pt_cv_path_wtmpx\"" >>confdefs.h
7044#define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
7045_ACEOF
7046 7720
7047elif test "$cross_compiling" = yes; then 7721elif test "$cross_compiling" = yes; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5 7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5
7049$as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;} 7723printf "%s\n" "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;}
7050fi 7724fi
7051 7725
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5 7726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5
7053$as_echo_n "checking for a fallback location of lastlog... " >&6; } 7727printf %s "checking for a fallback location of lastlog... " >&6; }
7054if ${pt_cv_path_lastlog+:} false; then : 7728if test ${pt_cv_path_lastlog+y}
7055 $as_echo_n "(cached) " >&6 7729then :
7056else 7730 printf %s "(cached) " >&6
7731else $as_nop
7057 7732
7058if test "$cross_compiling" != yes; then 7733if test "$cross_compiling" != yes; then
7059 for file in "/var/log/lastlog"; do 7734 for file in "/var/log/lastlog" "/var/adm/lastlog"; do
7060 if test -f "$file"; then 7735 if test -f "$file"; then
7061 pt_cv_path_lastlog=$file 7736 pt_cv_path_lastlog=$file
7062 break 7737 break
7063 fi 7738 fi
7064 done 7739 done
7065fi 7740fi
7066fi 7741fi
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 7742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
7068$as_echo "$pt_cv_path_lastlog" >&6; } 7743printf "%s\n" "$pt_cv_path_lastlog" >&6; }
7069if test x$pt_cv_path_lastlog != x; then 7744if test x$pt_cv_path_lastlog != x; then
7070 7745
7071cat >>confdefs.h <<_ACEOF 7746printf "%s\n" "#define PT_LASTLOG_FILE \"$pt_cv_path_lastlog\"" >>confdefs.h
7072#define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
7073_ACEOF
7074 7747
7075elif test "$cross_compiling" = yes; then 7748elif test "$cross_compiling" = yes; then
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5 7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5
7077$as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;} 7750printf "%s\n" "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;}
7078fi 7751fi
7079 7752
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5 7753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5
7081$as_echo_n "checking for a fallback location of lastlogx... " >&6; } 7754printf %s "checking for a fallback location of lastlogx... " >&6; }
7082if ${pt_cv_path_lastlogx+:} false; then : 7755if test ${pt_cv_path_lastlogx+y}
7083 $as_echo_n "(cached) " >&6 7756then :
7084else 7757 printf %s "(cached) " >&6
7758else $as_nop
7085 7759
7086if test "$cross_compiling" != yes; then 7760if test "$cross_compiling" != yes; then
7087 for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do 7761 for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do
7088 if test -f "$file"; then 7762 if test -f "$file"; then
7089 pt_cv_path_lastlogx=$file 7763 pt_cv_path_lastlogx=$file
7090 break 7764 break
7091 fi 7765 fi
7092 done 7766 done
7093fi 7767fi
7094fi 7768fi
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 7769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
7096$as_echo "$pt_cv_path_lastlogx" >&6; } 7770printf "%s\n" "$pt_cv_path_lastlogx" >&6; }
7097if test x$pt_cv_path_lastlogx != x; then 7771if test x$pt_cv_path_lastlogx != x; then
7098 7772
7099cat >>confdefs.h <<_ACEOF
7100#define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx" 7773printf "%s\n" "#define PT_LASTLOGX_FILE \"$pt_cv_path_lastlogx\"" >>confdefs.h
7101_ACEOF
7102 7774
7103elif test "$cross_compiling" = yes; then 7775elif test "$cross_compiling" = yes; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5 7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5
7105$as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;} 7777printf "%s\n" "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;}
7106fi 7778fi
7107 7779
7108 7780
7109 7781
7110 7782
7111save_LIBS=$LIBS 7783save_LIBS=$LIBS
7112save_CFLAGS=$CFLAGS 7784save_CXXFLAGS=$CXXFLAGS
7113CFLAGS="$CFLAGS $X_CFLAGS" 7785CXXFLAGS="$CXXFLAGS $X_CFLAGS"
7114LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 7786LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7115if test x$support_xim = xyes; then 7787if test x$support_xim = xyes; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5 7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
7117$as_echo_n "checking for working Xlocale... " >&6; } 7789printf %s "checking for working Xlocale... " >&6; }
7118if ${rxvt_cv_func_xlocale+:} false; then : 7790if test ${rxvt_cv_func_xlocale+y}
7119 $as_echo_n "(cached) " >&6 7791then :
7120else 7792 printf %s "(cached) " >&6
7793else $as_nop
7121 if test "$cross_compiling" = yes; then : 7794 if test "$cross_compiling" = yes
7795then :
7122 : 7796 :
7123else 7797else $as_nop
7124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125/* end confdefs.h. */ 7799/* end confdefs.h. */
7126 7800
7127 #include <X11/Xlib.h> 7801 #include <X11/Xlib.h>
7128 #include <stdlib.h> 7802 #include <stdlib.h>
7133 else 7807 else
7134 exit (1); 7808 exit (1);
7135 } 7809 }
7136 7810
7137_ACEOF 7811_ACEOF
7138if ac_fn_cxx_try_run "$LINENO"; then : 7812if ac_fn_cxx_try_run "$LINENO"
7813then :
7139 rxvt_cv_func_xlocale=yes 7814 rxvt_cv_func_xlocale=yes
7140else 7815else $as_nop
7141 rxvt_cv_func_xlocale=no 7816 rxvt_cv_func_xlocale=no
7142fi 7817fi
7143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7144 conftest.$ac_objext conftest.beam conftest.$ac_ext 7819 conftest.$ac_objext conftest.beam conftest.$ac_ext
7145fi 7820fi
7146 7821
7147fi 7822fi
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5 7823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
7149$as_echo "$rxvt_cv_func_xlocale" >&6; } 7824printf "%s\n" "$rxvt_cv_func_xlocale" >&6; }
7150 if test x$rxvt_cv_func_xlocale = xyes; then 7825 if test x$rxvt_cv_func_xlocale = xyes; then
7151 7826
7152$as_echo "#define USE_XIM 1" >>confdefs.h 7827printf "%s\n" "#define USE_XIM 1" >>confdefs.h
7153 7828
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5 7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
7155$as_echo_n "checking for broken XIM callback... " >&6; } 7830printf %s "checking for broken XIM callback... " >&6; }
7156if ${rxvt_cv_broken_ximcb+:} false; then : 7831if test ${rxvt_cv_broken_ximcb+y}
7157 $as_echo_n "(cached) " >&6 7832then :
7158else 7833 printf %s "(cached) " >&6
7834else $as_nop
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160/* end confdefs.h. */ 7836/* end confdefs.h. */
7161 7837
7162 #include <X11/Xlib.h> 7838 #include <X11/Xlib.h>
7163 7839
7167 XIMCallback cb; 7843 XIMCallback cb;
7168 cb.callback = im_destroy_cb; 7844 cb.callback = im_destroy_cb;
7169 } 7845 }
7170 7846
7171_ACEOF 7847_ACEOF
7172if ac_fn_cxx_try_compile "$LINENO"; then : 7848if ac_fn_cxx_try_compile "$LINENO"
7849then :
7173 rxvt_cv_broken_ximcb=yes 7850 rxvt_cv_broken_ximcb=yes
7174else 7851else $as_nop
7175 rxvt_cv_broken_ximcb=no 7852 rxvt_cv_broken_ximcb=no
7176fi 7853fi
7177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7178fi 7855fi
7179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5 7856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
7180$as_echo "$rxvt_cv_broken_ximcb" >&6; } 7857printf "%s\n" "$rxvt_cv_broken_ximcb" >&6; }
7181 7858
7182 if test x$rxvt_cv_broken_ximcb = xyes; then 7859 if test x$rxvt_cv_broken_ximcb = xyes; then
7183 7860
7184$as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h 7861printf "%s\n" "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
7185 7862
7186 fi 7863 fi
7187 fi 7864 fi
7188fi 7865fi
7189 7866
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5 7867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
7191$as_echo_n "checking for working X setlocale... " >&6; } 7868printf %s "checking for working X setlocale... " >&6; }
7192if ${rxvt_cv_func_xsetlocale+:} false; then : 7869if test ${rxvt_cv_func_xsetlocale+y}
7193 $as_echo_n "(cached) " >&6 7870then :
7194else 7871 printf %s "(cached) " >&6
7872else $as_nop
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196/* end confdefs.h. */ 7874/* end confdefs.h. */
7197#define X_LOCALE 1 7875#define X_LOCALE 1
7198#include <X11/Xlocale.h> 7876#include <X11/Xlocale.h>
7199int 7877int
7200main () 7878main (void)
7201{ 7879{
7202setlocale(LC_CTYPE, ""); 7880setlocale(LC_CTYPE, "");
7203 ; 7881 ;
7204 return 0; 7882 return 0;
7205} 7883}
7206_ACEOF 7884_ACEOF
7207if ac_fn_cxx_try_link "$LINENO"; then : 7885if ac_fn_cxx_try_link "$LINENO"
7886then :
7208 rxvt_cv_func_xsetlocale=yes 7887 rxvt_cv_func_xsetlocale=yes
7209else 7888else $as_nop
7210 rxvt_cv_func_xsetlocale=no 7889 rxvt_cv_func_xsetlocale=no
7211fi 7890fi
7212rm -f core conftest.err conftest.$ac_objext \ 7891rm -f core conftest.err conftest.$ac_objext conftest.beam \
7213 conftest$ac_exeext conftest.$ac_ext 7892 conftest$ac_exeext conftest.$ac_ext
7214fi 7893fi
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5 7894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
7216$as_echo "$rxvt_cv_func_xsetlocale" >&6; } 7895printf "%s\n" "$rxvt_cv_func_xsetlocale" >&6; }
7217if test x$rxvt_cv_func_xsetlocale = xyes; then 7896if test x$rxvt_cv_func_xsetlocale = xyes; then
7218 7897
7219$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h 7898printf "%s\n" "#define HAVE_XSETLOCALE 1" >>confdefs.h
7220 7899
7221fi 7900fi
7222LIBS=$save_LIBS 7901LIBS=$save_LIBS
7223CFLAGS=$save_CFLAGS 7902CXXFLAGS=$save_CXXFLAGS
7224 7903
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5
7226$as_echo_n "checking for working plain setlocale... " >&6; }
7227if ${rxvt_cv_func_setlocale+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229else
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231/* end confdefs.h. */
7232#include <clocale>
7233int
7234main ()
7235{
7236setlocale(LC_CTYPE, "");
7237 ;
7238 return 0;
7239}
7240_ACEOF
7241if ac_fn_cxx_try_link "$LINENO"; then :
7242 rxvt_cv_func_setlocale=yes
7243else
7244 rxvt_cv_func_setlocale=no
7245fi
7246rm -f core conftest.err conftest.$ac_objext \
7247 conftest$ac_exeext conftest.$ac_ext
7248fi
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5
7250$as_echo "$rxvt_cv_func_setlocale" >&6; }
7251if test x$rxvt_cv_func_setlocale = xyes; then
7252
7253$as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
7254
7255fi
7256
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5 7904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
7258$as_echo_n "checking for working nl_langinfo... " >&6; } 7905printf %s "checking for working nl_langinfo... " >&6; }
7259if ${rxvt_cv_func_nl_langinfo+:} false; then : 7906if test ${rxvt_cv_func_nl_langinfo+y}
7260 $as_echo_n "(cached) " >&6 7907then :
7261else 7908 printf %s "(cached) " >&6
7909else $as_nop
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263/* end confdefs.h. */ 7911/* end confdefs.h. */
7264#include <langinfo.h> 7912#include <langinfo.h>
7265int 7913int
7266main () 7914main (void)
7267{ 7915{
7268nl_langinfo(CODESET); 7916nl_langinfo(CODESET);
7269 ; 7917 ;
7270 return 0; 7918 return 0;
7271} 7919}
7272_ACEOF 7920_ACEOF
7273if ac_fn_cxx_try_link "$LINENO"; then : 7921if ac_fn_cxx_try_link "$LINENO"
7922then :
7274 rxvt_cv_func_nl_langinfo=yes 7923 rxvt_cv_func_nl_langinfo=yes
7275else 7924else $as_nop
7276 rxvt_cv_func_nl_langinfo=no 7925 rxvt_cv_func_nl_langinfo=no
7277fi 7926fi
7278rm -f core conftest.err conftest.$ac_objext \ 7927rm -f core conftest.err conftest.$ac_objext conftest.beam \
7279 conftest$ac_exeext conftest.$ac_ext 7928 conftest$ac_exeext conftest.$ac_ext
7280fi 7929fi
7281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5 7930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7282$as_echo "$rxvt_cv_func_nl_langinfo" >&6; } 7931printf "%s\n" "$rxvt_cv_func_nl_langinfo" >&6; }
7283if test x$rxvt_cv_func_nl_langinfo = xyes; then 7932if test x$rxvt_cv_func_nl_langinfo = xyes; then
7284 7933
7285$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h 7934printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7286 7935
7287fi 7936fi
7288 7937
7289 7938
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 7939
7291$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; } 7940case $host in
7292if ${pt_cv_can_pass_fds+:} false; then : 7941 *-*-solaris*)
7293 $as_echo_n "(cached) " >&6
7294else
7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296/* end confdefs.h. */ 7943/* end confdefs.h. */
7297 7944
7298#include <cstddef> // broken bsds (is that redundant?) need this 7945#if __STDC_VERSION__ >= 199901L
7299#include <sys/types.h> 7946error
7300#include <sys/socket.h> 7947#endif
7301#include <sys/uio.h>
7302 7948
7303int 7949int
7304main () 7950main (void)
7305{ 7951{
7306
7307{
7308 msghdr msg;
7309 iovec iov;
7310 char buf [100];
7311 char data = 0;
7312
7313 iov.iov_base = &data;
7314 iov.iov_len = 1;
7315
7316 msg.msg_iov = &iov;
7317 msg.msg_iovlen = 1;
7318 msg.msg_control = buf;
7319 msg.msg_controllen = sizeof buf;
7320
7321 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
7322 cmsg->cmsg_level = SOL_SOCKET;
7323 cmsg->cmsg_type = SCM_RIGHTS;
7324 cmsg->cmsg_len = 100;
7325
7326 *(int *)CMSG_DATA (cmsg) = 5;
7327
7328 return sendmsg (3, &msg, 0);
7329}
7330 7952
7331 ; 7953 ;
7332 return 0; 7954 return 0;
7333} 7955}
7334_ACEOF 7956_ACEOF
7335if ac_fn_cxx_try_link "$LINENO"; then : 7957if ac_fn_cxx_try_compile "$LINENO"
7336 pt_cv_can_pass_fds=yes 7958then :
7337else 7959 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
7338 pt_cv_can_pass_fds=no
7339fi
7340rm -f core conftest.err conftest.$ac_objext \
7341 conftest$ac_exeext conftest.$ac_ext
7342fi
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
7344$as_echo "$pt_cv_can_pass_fds" >&6; }
7345if test x$pt_cv_can_pass_fds = xyes; then
7346 7960
7347$as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h 7961else $as_nop
7962 printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
7348 7963
7349else
7350 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
7351fi 7964fi
7352 7965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7353
7354
7355for ac_header in \
7356 pty.h \
7357 util.h \
7358 libutil.h \
7359 sys/ioctl.h \
7360 sys/stropts.h \
7361 stropts.h \
7362
7363do :
7364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7365ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7366if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7367 cat >>confdefs.h <<_ACEOF
7368#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7369_ACEOF
7370
7371fi
7372
7373done
7374
7375
7376for ac_func in \
7377 revoke \
7378 _getpty \
7379 getpt \
7380 posix_openpt \
7381 isastream \
7382 setuid \
7383 seteuid \
7384 setreuid \
7385 setresuid \
7386
7387do :
7388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7389ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7390if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7391 cat >>confdefs.h <<_ACEOF
7392#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7393_ACEOF
7394
7395fi
7396done
7397
7398
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
7400$as_echo_n "checking for UNIX98 ptys... " >&6; }
7401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402/* end confdefs.h. */
7403#include <stdlib.h>
7404int
7405main ()
7406{
7407grantpt(0);unlockpt(0);ptsname(0);
7408 ;
7409 return 0;
7410}
7411_ACEOF
7412if ac_fn_cxx_try_link "$LINENO"; then :
7413 unix98_pty=yes
7414
7415$as_echo "#define UNIX98_PTY 1" >>confdefs.h
7416
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7418$as_echo "yes" >&6; }
7419else
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421$as_echo "no" >&6; }
7422fi
7423rm -f core conftest.err conftest.$ac_objext \
7424 conftest$ac_exeext conftest.$ac_ext
7425
7426if test -z "$unix98_pty"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
7428$as_echo_n "checking for library containing openpty... " >&6; } 7967printf %s "checking for library containing sendmsg... " >&6; }
7429if ${ac_cv_search_openpty+:} false; then : 7968if test ${ac_cv_search_sendmsg+y}
7430 $as_echo_n "(cached) " >&6 7969then :
7431else 7970 printf %s "(cached) " >&6
7971else $as_nop
7432 ac_func_search_save_LIBS=$LIBS 7972 ac_func_search_save_LIBS=$LIBS
7433cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434/* end confdefs.h. */ 7974/* end confdefs.h. */
7435 7975
7436/* Override any GCC internal prototype to avoid an error. 7976namespace conftest {
7437 Use char because int might match the return type of a GCC 7977 extern "C" int sendmsg ();
7438 builtin and then its argument prototype would still apply. */ 7978}
7439#ifdef __cplusplus
7440extern "C"
7441#endif
7442char openpty ();
7443int 7979int
7444main () 7980main (void)
7445{ 7981{
7446return openpty (); 7982return conftest::sendmsg ();
7447 ; 7983 ;
7448 return 0; 7984 return 0;
7449} 7985}
7450_ACEOF 7986_ACEOF
7451for ac_lib in '' util; do 7987for ac_lib in '' socket
7988do
7452 if test -z "$ac_lib"; then 7989 if test -z "$ac_lib"; then
7453 ac_res="none required" 7990 ac_res="none required"
7454 else 7991 else
7455 ac_res=-l$ac_lib 7992 ac_res=-l$ac_lib
7456 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7457 fi 7994 fi
7458 if ac_fn_cxx_try_link "$LINENO"; then : 7995 if ac_fn_cxx_try_link "$LINENO"
7996then :
7459 ac_cv_search_openpty=$ac_res 7997 ac_cv_search_sendmsg=$ac_res
7460fi 7998fi
7461rm -f core conftest.err conftest.$ac_objext \ 7999rm -f core conftest.err conftest.$ac_objext conftest.beam \
7462 conftest$ac_exeext 8000 conftest$ac_exeext
7463 if ${ac_cv_search_openpty+:} false; then : 8001 if test ${ac_cv_search_sendmsg+y}
8002then :
7464 break 8003 break
7465fi 8004fi
7466done 8005done
7467if ${ac_cv_search_openpty+:} false; then : 8006if test ${ac_cv_search_sendmsg+y}
8007then :
7468 8008
7469else 8009else $as_nop
7470 ac_cv_search_openpty=no 8010 ac_cv_search_sendmsg=no
7471fi 8011fi
7472rm conftest.$ac_ext 8012rm conftest.$ac_ext
7473LIBS=$ac_func_search_save_LIBS 8013LIBS=$ac_func_search_save_LIBS
7474fi 8014fi
8015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
8016printf "%s\n" "$ac_cv_search_sendmsg" >&6; }
8017ac_res=$ac_cv_search_sendmsg
8018if test "$ac_res" != no
8019then :
8020 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8021
8022fi
8023
8024 ;;
8025esac
8026
8027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
8028printf %s "checking for unix-compliant filehandle passing ability... " >&6; }
8029if test ${pt_cv_can_pass_fds+y}
8030then :
8031 printf %s "(cached) " >&6
8032else $as_nop
8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034/* end confdefs.h. */
8035
8036#include <stddef.h> // broken bsds (is that redundant?) need this
8037#include <sys/types.h>
8038#include <sys/socket.h>
8039#include <sys/uio.h>
8040
8041int
8042main (void)
8043{
8044
8045{
8046 msghdr msg;
8047 iovec iov;
8048 char buf [100];
8049 char data = 0;
8050
8051 iov.iov_base = &data;
8052 iov.iov_len = 1;
8053
8054 msg.msg_iov = &iov;
8055 msg.msg_iovlen = 1;
8056 msg.msg_control = buf;
8057 msg.msg_controllen = sizeof buf;
8058
8059 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
8060 cmsg->cmsg_level = SOL_SOCKET;
8061 cmsg->cmsg_type = SCM_RIGHTS;
8062 cmsg->cmsg_len = 100;
8063
8064 *(int *)CMSG_DATA (cmsg) = 5;
8065
8066 return sendmsg (3, &msg, 0);
8067}
8068
8069 ;
8070 return 0;
8071}
8072_ACEOF
8073if ac_fn_cxx_try_link "$LINENO"
8074then :
8075 pt_cv_can_pass_fds=yes
8076else $as_nop
8077 pt_cv_can_pass_fds=no
8078fi
8079rm -f core conftest.err conftest.$ac_objext conftest.beam \
8080 conftest$ac_exeext conftest.$ac_ext
8081fi
8082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
8083printf "%s\n" "$pt_cv_can_pass_fds" >&6; }
8084if test x$pt_cv_can_pass_fds = xyes; then
8085
8086printf "%s\n" "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
8087
8088else
8089 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
8090fi
8091
8092
8093
8094ac_fn_cxx_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default"
8095if test "x$ac_cv_header_pty_h" = xyes
8096then :
8097 printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h
8098
8099fi
8100ac_fn_cxx_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
8101if test "x$ac_cv_header_util_h" = xyes
8102then :
8103 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h
8104
8105fi
8106ac_fn_cxx_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
8107if test "x$ac_cv_header_libutil_h" = xyes
8108then :
8109 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h
8110
8111fi
8112ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
8113if test "x$ac_cv_header_sys_ioctl_h" = xyes
8114then :
8115 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
8116
8117fi
8118ac_fn_cxx_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
8119if test "x$ac_cv_header_stropts_h" = xyes
8120then :
8121 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
8122
8123fi
8124
8125
8126ac_fn_cxx_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
8127if test "x$ac_cv_func_revoke" = xyes
8128then :
8129 printf "%s\n" "#define HAVE_REVOKE 1" >>confdefs.h
8130
8131fi
8132ac_fn_cxx_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
8133if test "x$ac_cv_func__getpty" = xyes
8134then :
8135 printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h
8136
8137fi
8138ac_fn_cxx_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
8139if test "x$ac_cv_func_getpt" = xyes
8140then :
8141 printf "%s\n" "#define HAVE_GETPT 1" >>confdefs.h
8142
8143fi
8144ac_fn_cxx_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
8145if test "x$ac_cv_func_posix_openpt" = xyes
8146then :
8147 printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h
8148
8149fi
8150ac_fn_cxx_check_func "$LINENO" "isastream" "ac_cv_func_isastream"
8151if test "x$ac_cv_func_isastream" = xyes
8152then :
8153 printf "%s\n" "#define HAVE_ISASTREAM 1" >>confdefs.h
8154
8155fi
8156ac_fn_cxx_check_func "$LINENO" "setuid" "ac_cv_func_setuid"
8157if test "x$ac_cv_func_setuid" = xyes
8158then :
8159 printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h
8160
8161fi
8162ac_fn_cxx_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
8163if test "x$ac_cv_func_seteuid" = xyes
8164then :
8165 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
8166
8167fi
8168ac_fn_cxx_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
8169if test "x$ac_cv_func_setreuid" = xyes
8170then :
8171 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
8172
8173fi
8174ac_fn_cxx_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
8175if test "x$ac_cv_func_setresuid" = xyes
8176then :
8177 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
8178
8179fi
8180
8181
8182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
8183printf %s "checking for UNIX98 ptys... " >&6; }
8184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185/* end confdefs.h. */
8186#include <stdlib.h>
8187int
8188main (void)
8189{
8190grantpt(0);unlockpt(0);ptsname(0);
8191 ;
8192 return 0;
8193}
8194_ACEOF
8195if ac_fn_cxx_try_link "$LINENO"
8196then :
8197 unix98_pty=yes
8198
8199printf "%s\n" "#define UNIX98_PTY 1" >>confdefs.h
8200
8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8202printf "%s\n" "yes" >&6; }
8203else $as_nop
8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205printf "%s\n" "no" >&6; }
8206fi
8207rm -f core conftest.err conftest.$ac_objext conftest.beam \
8208 conftest$ac_exeext conftest.$ac_ext
8209
8210if test -z "$unix98_pty"; then
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
8212printf %s "checking for library containing openpty... " >&6; }
8213if test ${ac_cv_search_openpty+y}
8214then :
8215 printf %s "(cached) " >&6
8216else $as_nop
8217 ac_func_search_save_LIBS=$LIBS
8218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219/* end confdefs.h. */
8220
8221namespace conftest {
8222 extern "C" int openpty ();
8223}
8224int
8225main (void)
8226{
8227return conftest::openpty ();
8228 ;
8229 return 0;
8230}
8231_ACEOF
8232for ac_lib in '' util
8233do
8234 if test -z "$ac_lib"; then
8235 ac_res="none required"
8236 else
8237 ac_res=-l$ac_lib
8238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8239 fi
8240 if ac_fn_cxx_try_link "$LINENO"
8241then :
8242 ac_cv_search_openpty=$ac_res
8243fi
8244rm -f core conftest.err conftest.$ac_objext conftest.beam \
8245 conftest$ac_exeext
8246 if test ${ac_cv_search_openpty+y}
8247then :
8248 break
8249fi
8250done
8251if test ${ac_cv_search_openpty+y}
8252then :
8253
8254else $as_nop
8255 ac_cv_search_openpty=no
8256fi
8257rm conftest.$ac_ext
8258LIBS=$ac_func_search_save_LIBS
8259fi
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 8260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7476$as_echo "$ac_cv_search_openpty" >&6; } 8261printf "%s\n" "$ac_cv_search_openpty" >&6; }
7477ac_res=$ac_cv_search_openpty 8262ac_res=$ac_cv_search_openpty
7478if test "$ac_res" != no; then : 8263if test "$ac_res" != no
8264then :
7479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7480 8266
7481$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h 8267printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
7482 8268
7483fi 8269fi
7484 8270
7485fi 8271fi
7486 8272
7487 8273
7488 8274
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5 8275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
7490$as_echo_n "checking for tty group... " >&6; } 8276printf %s "checking for tty group... " >&6; }
7491if ${pt_cv_tty_group+:} false; then : 8277if test ${pt_cv_tty_group+y}
7492 $as_echo_n "(cached) " >&6 8278then :
7493else 8279 printf %s "(cached) " >&6
8280else $as_nop
7494 if test "$cross_compiling" = yes; then : 8281 if test "$cross_compiling" = yes
8282then :
7495 pt_cv_tty_group=no 8283 pt_cv_tty_group=no
7496else 8284else $as_nop
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498/* end confdefs.h. */ 8286/* end confdefs.h. */
7499 8287
7500#include <sys/types.h> 8288#include <sys/types.h>
7501#include <sys/stat.h> 8289#include <sys/stat.h>
7516 return 0; 8304 return 0;
7517 else 8305 else
7518 return 1; 8306 return 1;
7519} 8307}
7520_ACEOF 8308_ACEOF
7521if ac_fn_cxx_try_run "$LINENO"; then : 8309if ac_fn_cxx_try_run "$LINENO"
8310then :
7522 pt_cv_tty_group=yes 8311 pt_cv_tty_group=yes
7523else 8312else $as_nop
7524 pt_cv_tty_group=no 8313 pt_cv_tty_group=no
7525fi 8314fi
7526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8315rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7527 conftest.$ac_objext conftest.beam conftest.$ac_ext 8316 conftest.$ac_objext conftest.beam conftest.$ac_ext
7528fi 8317fi
7529 8318
7530fi 8319fi
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5 8320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
7532$as_echo "$pt_cv_tty_group" >&6; } 8321printf "%s\n" "$pt_cv_tty_group" >&6; }
7533if test x$pt_cv_tty_group = xyes; then 8322if test x$pt_cv_tty_group = xyes; then
7534 8323
7535$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h 8324printf "%s\n" "#define TTY_GID_SUPPORT 1" >>confdefs.h
7536 8325
7537fi 8326fi
7538 8327
8328support_image=no
8329if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then
8330 support_image=yes
8331fi
7539if test x$support_xft = xyes || test x$support_inheritpixmap = xyes; then 8332if test x$support_xft = xyes || test x$support_image = xyes; then
7540 rxvt_have_xrender=no 8333 rxvt_have_xrender=no
7541 # Extract the first word of "pkg-config", so it can be a program name with args. 8334
7542set dummy pkg-config; ac_word=$2
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender" >&5
7544$as_echo_n "checking for $ac_word... " >&6; } 8336printf %s "checking for xrender... " >&6; }
7545if ${ac_cv_path_PKG_CONFIG+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547else
7548 case $PKG_CONFIG in
7549 [\\/]* | ?:[\\/]*)
7550 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7551 ;;
7552 *)
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7563 fi
7564done
7565 done
7566IFS=$as_save_IFS
7567
7568 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7569 ;;
7570esac
7571fi
7572PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7573if test -n "$PKG_CONFIG"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7575$as_echo "$PKG_CONFIG" >&6; }
7576else
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578$as_echo "no" >&6; }
7579fi
7580
7581
7582 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then 8337 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
7583 X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" 8338 XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`"
7584 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" 8339 XRENDER_LIBS="`$PKG_CONFIG --libs xrender`"
8340
8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8342printf "%s\n" "ok" >&6; }
8343
8344 X_LIBS="$XRENDER_LIBS $X_LIBS"
8345 CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS"
7585 rxvt_have_xrender=yes 8346 rxvt_have_xrender=yes
7586 8347
7587 save_LIBS="$LIBS" 8348 save_LIBS="$LIBS"
7588 LIBS="$LIBS $X_LIBS" 8349 LIBS="$LIBS $X_LIBS"
7589 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default" 8350 ac_fn_cxx_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
7590if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then : 8351if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes
8352then :
7591 8353
7592else 8354else $as_nop
7593 rxvt_have_xrender=no 8355 rxvt_have_xrender=no
7594fi 8356fi
7595 8357
7596
7597 ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat" 8358 ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
7598if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes; then : 8359if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes
8360then :
7599 8361
7600else 8362else $as_nop
7601 rxvt_have_xrender=no 8363 rxvt_have_xrender=no
7602fi 8364fi
7603 8365
7604 LIBS="$save_LIBS" 8366 LIBS="$save_LIBS"
8367
8368 else
8369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370printf "%s\n" "no" >&6; }
8371 :
7605 fi 8372 fi
8373
7606fi 8374fi
7607 8375
7608if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then 8376if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
7609 # Extract the first word of "pkg-config", so it can be a program name with args.
7610set dummy pkg-config; ac_word=$2
7611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612$as_echo_n "checking for $ac_word... " >&6; }
7613if ${ac_cv_path_PKG_CONFIG+:} false; then :
7614 $as_echo_n "(cached) " >&6
7615else
7616 case $PKG_CONFIG in
7617 [\\/]* | ?:[\\/]*)
7618 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7619 ;;
7620 *)
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622for as_dir in $PATH
7623do
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 break 2
7631 fi
7632done
7633 done
7634IFS=$as_save_IFS
7635 8377
7636 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft" >&5
7637 ;; 8379printf %s "checking for fontconfig xft... " >&6; }
7638esac
7639fi
7640PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7641if test -n "$PKG_CONFIG"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7643$as_echo "$PKG_CONFIG" >&6; }
7644else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; }
7647fi
7648
7649
7650 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 8380 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then
7651 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" 8381 XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`"
7652 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 8382 XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`"
8383
8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8385printf "%s\n" "ok" >&6; }
8386
8387 X_LIBS="$XFT_LIBS $X_LIBS"
8388 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
8389
7653 else 8390 else
8391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392printf "%s\n" "no" >&6; }
8393
7654 # Extract the first word of "xft-config", so it can be a program name with args. 8394 # Extract the first word of "xft-config", so it can be a program name with args.
7655set dummy xft-config; ac_word=$2 8395set dummy xft-config; ac_word=$2
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657$as_echo_n "checking for $ac_word... " >&6; } 8397printf %s "checking for $ac_word... " >&6; }
7658if ${ac_cv_path_XFT_CONFIG+:} false; then : 8398if test ${ac_cv_path_XFT_CONFIG+y}
7659 $as_echo_n "(cached) " >&6 8399then :
7660else 8400 printf %s "(cached) " >&6
8401else $as_nop
7661 case $XFT_CONFIG in 8402 case $XFT_CONFIG in
7662 [\\/]* | ?:[\\/]*) 8403 [\\/]* | ?:[\\/]*)
7663 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. 8404 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
7664 ;; 8405 ;;
7665 *) 8406 *)
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667for as_dir in $PATH 8408for as_dir in $PATH
7668do 8409do
7669 IFS=$as_save_IFS 8410 IFS=$as_save_IFS
7670 test -z "$as_dir" && as_dir=. 8411 case $as_dir in #(((
8412 '') as_dir=./ ;;
8413 */) ;;
8414 *) as_dir=$as_dir/ ;;
8415 esac
7671 for ac_exec_ext in '' $ac_executable_extensions; do 8416 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7673 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8418 ac_cv_path_XFT_CONFIG="$as_dir$ac_word$ac_exec_ext"
7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7675 break 2 8420 break 2
7676 fi 8421 fi
7677done 8422done
7678 done 8423 done
7679IFS=$as_save_IFS 8424IFS=$as_save_IFS
7682 ;; 8427 ;;
7683esac 8428esac
7684fi 8429fi
7685XFT_CONFIG=$ac_cv_path_XFT_CONFIG 8430XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7686if test -n "$XFT_CONFIG"; then 8431if test -n "$XFT_CONFIG"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
7688$as_echo "$XFT_CONFIG" >&6; } 8433printf "%s\n" "$XFT_CONFIG" >&6; }
7689else 8434else
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691$as_echo "no" >&6; } 8436printf "%s\n" "no" >&6; }
7692fi 8437fi
7693 8438
7694 8439
7695 if test $XFT_CONFIG != no; then 8440 if test $XFT_CONFIG != no; then
7696 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" 8441 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7697 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 8442 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
7698 fi 8443 fi
7699 fi
7700 8444
7701 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then
7702 X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS"
7703 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
7704 fi 8445 fi
8446
7705 8447
7706 save_LIBS="$LIBS" 8448 save_LIBS="$LIBS"
7707 LIBS="$LIBS $X_LIBS" 8449 LIBS="$LIBS $X_LIBS"
7708 for ac_header in X11/Xft/Xft.h 8450 for ac_header in X11/Xft/Xft.h fontconfig/fontconfig.h
7709do : 8451do :
7710 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" 8452 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
7711if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then : 8453ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8454if eval test \"x\$"$as_ac_Header"\" = x"yes"
8455then :
7712 cat >>confdefs.h <<_ACEOF 8456 cat >>confdefs.h <<_ACEOF
7713#define HAVE_X11_XFT_XFT_H 1 8457#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
7714_ACEOF 8458_ACEOF
7715 8459
7716else 8460else $as_nop
7717 support_xft=no 8461 support_xft=no
7718fi 8462fi
7719 8463
7720done 8464done
7721 8465
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5 8466 for ac_func in XftDrawString32 FcPatternGet
7723$as_echo_n "checking for XftDrawString32 in -lXft... " >&6; } 8467do :
7724if ${ac_cv_lib_Xft_XftDrawString32+:} false; then : 8468 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
7725 $as_echo_n "(cached) " >&6 8469ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7726else 8470if eval test \"x\$"$as_ac_var"\" = x"yes"
7727 ac_check_lib_save_LIBS=$LIBS 8471then :
7728LIBS="-lXft $LIBS" 8472 cat >>confdefs.h <<_ACEOF
8473#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
8474_ACEOF
8475
8476else $as_nop
8477 support_xft=no
8478fi
8479
8480done
8481 LIBS="$save_LIBS"
8482
8483 if test x$support_xft = xyes; then
8484
8485printf "%s\n" "#define XFT 1" >>confdefs.h
8486
8487 fi
8488fi
8489
8490if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Render >= 0.11" >&5
8492printf %s "checking for Render >= 0.11... " >&6; }
7729cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730/* end confdefs.h. */ 8494/* end confdefs.h. */
7731 8495
7732/* Override any GCC internal prototype to avoid an error. 8496#include <X11/extensions/Xrender.h>
7733 Use char because int might match the return type of a GCC 8497#if RENDER_MAJOR == 0 && RENDER_MINOR <= 10
7734 builtin and then its argument prototype would still apply. */ 8498error
7735#ifdef __cplusplus
7736extern "C"
7737#endif 8499#endif
7738char XftDrawString32 (); 8500
7739int 8501int
7740main () 8502main (void)
7741{ 8503{
7742return XftDrawString32 (); 8504
7743 ; 8505 ;
7744 return 0; 8506 return 0;
7745} 8507}
7746_ACEOF 8508_ACEOF
7747if ac_fn_cxx_try_link "$LINENO"; then : 8509if ac_fn_cxx_try_compile "$LINENO"
7748 ac_cv_lib_Xft_XftDrawString32=yes 8510then :
7749else 8511
7750 ac_cv_lib_Xft_XftDrawString32=no 8512else $as_nop
7751fi
7752rm -f core conftest.err conftest.$ac_objext \
7753 conftest$ac_exeext conftest.$ac_ext
7754LIBS=$ac_check_lib_save_LIBS
7755fi
7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
7757$as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
7758if test "x$ac_cv_lib_Xft_XftDrawString32" = xyes; then :
7759 :
7760else
7761 support_xft=no 8513 support_image=no
7762fi 8514fi
7763 8515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7764 for ac_header in fontconfig/fontconfig.h
7765do :
7766 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
7767if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
7768 cat >>confdefs.h <<_ACEOF
7769#define HAVE_FONTCONFIG_FONTCONFIG_H 1
7770_ACEOF
7771
7772else
7773 support_xft=no
7774fi
7775
7776done
7777
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5
7779$as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; }
7780if ${ac_cv_lib_fontconfig_FcPatternGet+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782else
7783 ac_check_lib_save_LIBS=$LIBS
7784LIBS="-lfontconfig $LIBS"
7785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h. */
7787
7788/* Override any GCC internal prototype to avoid an error.
7789 Use char because int might match the return type of a GCC
7790 builtin and then its argument prototype would still apply. */
7791#ifdef __cplusplus
7792extern "C"
7793#endif
7794char FcPatternGet ();
7795int
7796main ()
7797{
7798return FcPatternGet ();
7799 ;
7800 return 0;
7801}
7802_ACEOF
7803if ac_fn_cxx_try_link "$LINENO"; then :
7804 ac_cv_lib_fontconfig_FcPatternGet=yes
7805else
7806 ac_cv_lib_fontconfig_FcPatternGet=no
7807fi
7808rm -f core conftest.err conftest.$ac_objext \
7809 conftest$ac_exeext conftest.$ac_ext
7810LIBS=$ac_check_lib_save_LIBS
7811fi
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5
7813$as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; }
7814if test "x$ac_cv_lib_fontconfig_FcPatternGet" = xyes; then :
7815 :
7816else
7817 support_xft=no
7818fi
7819
7820 LIBS="$save_LIBS"
7821
7822 if test x$support_xft = xyes; then 8516 if test x$support_image = xyes; then
8517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8518printf "%s\n" "ok" >&6; }
8519 LIBS="$LIBS -lm"
7823 8520
7824$as_echo "#define XFT 1" >>confdefs.h 8521printf "%s\n" "#define XRENDER 1" >>confdefs.h
7825 8522
8523
8524 if test x$support_inheritpixmap = xyes; then
8525
8526printf "%s\n" "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
8527
7826 fi 8528 fi
8529 else
8530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531printf "%s\n" "no" >&6; }
8532 fi
7827fi 8533fi
8534
7828if test x$support_styles = xyes; then 8535if test x$support_styles = xyes; then
7829 8536
7830$as_echo "#define ENABLE_STYLES 1" >>confdefs.h 8537printf "%s\n" "#define ENABLE_STYLES 1" >>confdefs.h
7831 8538
7832fi 8539fi
7833if test x$support_iso14755 = xyes; then 8540if test x$support_iso14755 = xyes; then
7834 8541
7835$as_echo "#define ISO_14755 1" >>confdefs.h 8542printf "%s\n" "#define ISO_14755 1" >>confdefs.h
7836 8543
7837fi 8544fi
7838if test x$support_8bitctrls = xyes; then 8545if test x$support_8bitctrls = xyes; then
7839 8546
7840$as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h 8547printf "%s\n" "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
7841 8548
7842fi 8549fi
7843if test x$support_fading = xyes; then 8550if test x$support_fading = xyes; then
7844 8551
7845$as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h 8552printf "%s\n" "#define OFF_FOCUS_FADING 1" >>confdefs.h
7846
7847fi
7848if test x$support_inheritpixmap = xyes; then
7849 if test x$rxvt_have_xrender = xyes; then
7850 LIBS="$LIBS -lm"
7851
7852$as_echo "#define XRENDER 1" >>confdefs.h
7853
7854 fi
7855
7856$as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7857 8553
7858fi 8554fi
7859if test x$support_keepscrolling = xno; then 8555if test x$support_keepscrolling = xno; then
7860 8556
7861$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h 8557printf "%s\n" "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
7862 8558
7863fi 8559fi
7864if test x$support_selectionscrolling = xyes; then 8560if test x$support_selectionscrolling = xyes; then
7865 8561
7866$as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h 8562printf "%s\n" "#define SELECTION_SCROLLING 1" >>confdefs.h
7867 8563
7868fi 8564fi
7869if test x$support_frills = xyes; then 8565if test x$support_frills = xyes; then
7870 8566
7871$as_echo "#define ENABLE_FRILLS 1" >>confdefs.h 8567printf "%s\n" "#define ENABLE_FRILLS 1" >>confdefs.h
7872 8568
7873fi 8569fi
7874if test x$support_mousewheel = xyes; then 8570if test x$support_mousewheel = xyes; then
7875 8571
7876$as_echo "#define MOUSE_WHEEL 1" >>confdefs.h 8572printf "%s\n" "#define MOUSE_WHEEL 1" >>confdefs.h
7877 8573
7878fi 8574fi
7879if test x$support_mouseslipwheel = xyes; then 8575if test x$support_mouseslipwheel = xyes; then
7880 8576
7881$as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h 8577printf "%s\n" "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
7882 8578
7883fi 8579fi
7884 8580
7885scrolltypes=plain 8581scrolltypes=plain
7886 8582
7887$as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h 8583printf "%s\n" "#define PLAIN_SCROLLBAR 1" >>confdefs.h
7888 8584
7889 8585
7890if test x$support_scroll_rxvt = xyes; then 8586if test x$support_scroll_rxvt = xyes; then
7891 8587
7892$as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h 8588printf "%s\n" "#define RXVT_SCROLLBAR 1" >>confdefs.h
7893 8589
7894 scrolltypes="$scrolltypes rxvt" 8590 scrolltypes="$scrolltypes rxvt"
7895fi 8591fi
7896if test x$support_scroll_next = xyes; then 8592if test x$support_scroll_next = xyes; then
7897 8593
7898$as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h 8594printf "%s\n" "#define NEXT_SCROLLBAR 1" >>confdefs.h
7899 8595
7900 scrolltypes="$scrolltypes next" 8596 scrolltypes="$scrolltypes next"
7901fi 8597fi
7902if test x$support_scroll_xterm = xyes; then 8598if test x$support_scroll_xterm = xyes; then
7903 8599
7904$as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h 8600printf "%s\n" "#define XTERM_SCROLLBAR 1" >>confdefs.h
7905 8601
7906 scrolltypes="$scrolltypes xterm" 8602 scrolltypes="$scrolltypes xterm"
7907fi 8603fi
7908if test x$support_pointer_blank = xyes; then 8604if test x$support_pointer_blank = xyes; then
7909 8605
7910$as_echo "#define POINTER_BLANK 1" >>confdefs.h 8606printf "%s\n" "#define POINTER_BLANK 1" >>confdefs.h
7911 8607
7912fi 8608fi
7913if test x$support_text_blink = xyes; then 8609if test x$support_text_blink = xyes; then
7914 8610
7915$as_echo "#define TEXT_BLINK 1" >>confdefs.h 8611printf "%s\n" "#define TEXT_BLINK 1" >>confdefs.h
7916 8612
7917fi 8613fi
7918if test x$support_unicode3 = xyes; then 8614if test x$support_unicode3 = xyes; then
7919 8615
7920$as_echo "#define UNICODE_3 1" >>confdefs.h 8616printf "%s\n" "#define UNICODE_3 1" >>confdefs.h
7921 8617
7922fi 8618fi
7923if test x$support_combining = xyes; then 8619if test x$support_combining = xyes; then
7924 8620
7925$as_echo "#define ENABLE_COMBINING 1" >>confdefs.h 8621printf "%s\n" "#define ENABLE_COMBINING 1" >>confdefs.h
7926 8622
7927fi 8623fi
7928if test x$codesets = xall; then 8624if test x$codesets = xall; then
7929 codesets=jp,jp-ext,kr,zh,zh-ext 8625 codesets=jp,jp-ext,kr,zh,zh-ext
7930fi 8626fi
7931 8627
7932$as_echo "#define ENCODING_EU 1" >>confdefs.h 8628printf "%s\n" "#define ENCODING_EU 1" >>confdefs.h
7933 8629
7934 8630
7935$as_echo "#define ENCODING_VN 1" >>confdefs.h 8631printf "%s\n" "#define ENCODING_VN 1" >>confdefs.h
7936 8632
7937for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 8633for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
7938 case "$codeset" in 8634 case "$codeset" in
7939 JP ) 8635 JP )
7940$as_echo "#define ENCODING_JP 1" >>confdefs.h 8636printf "%s\n" "#define ENCODING_JP 1" >>confdefs.h
7941 ;; 8637 ;;
7942 JP_EXT ) 8638 JP_EXT )
7943$as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h 8639printf "%s\n" "#define ENCODING_JP_EXT 1" >>confdefs.h
7944 ;; 8640 ;;
7945 KR ) 8641 KR )
7946$as_echo "#define ENCODING_KR 1" >>confdefs.h 8642printf "%s\n" "#define ENCODING_KR 1" >>confdefs.h
7947 ;; 8643 ;;
7948 ZH ) 8644 ZH )
7949$as_echo "#define ENCODING_ZH 1" >>confdefs.h 8645printf "%s\n" "#define ENCODING_ZH 1" >>confdefs.h
7950 ;; 8646 ;;
7951 ZH_EXT ) 8647 ZH_EXT )
7952$as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h 8648printf "%s\n" "#define ENCODING_ZH_EXT 1" >>confdefs.h
7953 ;; 8649 ;;
7954 esac 8650 esac
7955done 8651done
7956 8652
7957IF_PERL=\# 8653IF_PERL=\#
7958if test x$support_perl = xyes; then 8654if test x$support_perl = xyes; then
7959 # Extract the first word of "perl5", so it can be a program name with args. 8655 # Extract the first word of "perl5", so it can be a program name with args.
7960set dummy perl5; ac_word=$2 8656set dummy perl5; ac_word=$2
7961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962$as_echo_n "checking for $ac_word... " >&6; } 8658printf %s "checking for $ac_word... " >&6; }
7963if ${ac_cv_path_PERL+:} false; then : 8659if test ${ac_cv_path_PERL+y}
7964 $as_echo_n "(cached) " >&6 8660then :
7965else 8661 printf %s "(cached) " >&6
8662else $as_nop
7966 case $PERL in 8663 case $PERL in
7967 [\\/]* | ?:[\\/]*) 8664 [\\/]* | ?:[\\/]*)
7968 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 8665 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7969 ;; 8666 ;;
7970 *) 8667 *)
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972for as_dir in $PATH 8669for as_dir in $PATH
7973do 8670do
7974 IFS=$as_save_IFS 8671 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=. 8672 case $as_dir in #(((
8673 '') as_dir=./ ;;
8674 */) ;;
8675 *) as_dir=$as_dir/ ;;
8676 esac
7976 for ac_exec_ext in '' $ac_executable_extensions; do 8677 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7978 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 8679 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7980 break 2 8681 break 2
7981 fi 8682 fi
7982done 8683done
7983 done 8684 done
7984IFS=$as_save_IFS 8685IFS=$as_save_IFS
7985 8686
8687 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
7986 ;; 8688 ;;
7987esac 8689esac
7988fi 8690fi
7989PERL=$ac_cv_path_PERL 8691PERL=$ac_cv_path_PERL
7990if test -n "$PERL"; then 8692if test -n "$PERL"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7992$as_echo "$PERL" >&6; } 8694printf "%s\n" "$PERL" >&6; }
7993else 8695else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995$as_echo "no" >&6; } 8697printf "%s\n" "no" >&6; }
7996fi 8698fi
7997 8699
7998 8700
7999 # Extract the first word of "perl", so it can be a program name with args.
8000set dummy perl; ac_word=$2
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002$as_echo_n "checking for $ac_word... " >&6; }
8003if ${ac_cv_path_PERL+:} false; then :
8004 $as_echo_n "(cached) " >&6
8005else
8006 case $PERL in
8007 [\\/]* | ?:[\\/]*)
8008 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8009 ;;
8010 *)
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012for as_dir in $PATH
8013do
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8021 fi
8022done
8023 done
8024IFS=$as_save_IFS
8025 8701
8026 ;;
8027esac
8028fi
8029PERL=$ac_cv_path_PERL
8030if test -n "$PERL"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8032$as_echo "$PERL" >&6; }
8033else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035$as_echo "no" >&6; }
8036fi
8037
8038
8039
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5 8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
8041$as_echo_n "checking for $PERL suitability... " >&6; } 8703printf %s "checking for $PERL suitability... " >&6; }
8042 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then 8704 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
8043 8705
8044 save_CXXFLAGS="$CXXFLAGS" 8706 save_CXXFLAGS="$CXXFLAGS"
8045 save_LIBS="$LIBS" 8707 save_LIBS="$LIBS"
8046 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" 8708 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
8051#include <EXTERN.h> 8713#include <EXTERN.h>
8052#include <perl.h> 8714#include <perl.h>
8053#include <XSUB.h> 8715#include <XSUB.h>
8054 8716
8055int 8717int
8056main () 8718main (void)
8057{ 8719{
8058 8720
8059 PerlInterpreter *perl = perl_alloc (); 8721 PerlInterpreter *perl = perl_alloc ();
8060 8722
8061 ; 8723 ;
8062 return 0; 8724 return 0;
8063} 8725}
8064_ACEOF 8726_ACEOF
8065if ac_fn_cxx_try_link "$LINENO"; then : 8727if ac_fn_cxx_try_link "$LINENO"
8728then :
8066 rxvt_perl_link=yes 8729 rxvt_perl_link=yes
8067else 8730else $as_nop
8068 rxvt_perl_link=no 8731 rxvt_perl_link=no
8069fi 8732fi
8070rm -f core conftest.err conftest.$ac_objext \ 8733rm -f core conftest.err conftest.$ac_objext conftest.beam \
8071 conftest$ac_exeext conftest.$ac_ext 8734 conftest$ac_exeext conftest.$ac_ext
8072 CXXFLAGS="$save_CXXFLAGS" 8735 CXXFLAGS="$save_CXXFLAGS"
8073 LIBS="$save_LIBS" 8736 LIBS="$save_LIBS"
8074 8737
8075 if test x$rxvt_perl_link = xyes; then 8738 if test x$rxvt_perl_link = xyes; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8077$as_echo "ok" >&6; } 8740printf "%s\n" "ok" >&6; }
8078 8741
8079$as_echo "#define ENABLE_PERL 1" >>confdefs.h 8742printf "%s\n" "#define ENABLE_PERL 1" >>confdefs.h
8080 8743
8081 IF_PERL= 8744 IF_PERL=
8082 PERL_O=rxvtperl.o 8745 PERL_O=rxvtperl.o
8083 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 8746 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
8084 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 8747 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
8125 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8788 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8126 eval ac_val=\$$ac_var 8789 eval ac_val=\$$ac_var
8127 case $ac_val in #( 8790 case $ac_val in #(
8128 *${as_nl}*) 8791 *${as_nl}*)
8129 case $ac_var in #( 8792 case $ac_var in #(
8130 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8793 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8131$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8794printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8132 esac 8795 esac
8133 case $ac_var in #( 8796 case $ac_var in #(
8134 _ | IFS | as_nl) ;; #( 8797 _ | IFS | as_nl) ;; #(
8135 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8136 *) { eval $ac_var=; unset $ac_var;} ;; 8799 *) { eval $ac_var=; unset $ac_var;} ;;
8156) | 8819) |
8157 sed ' 8820 sed '
8158 /^ac_cv_env_/b end 8821 /^ac_cv_env_/b end
8159 t clear 8822 t clear
8160 :clear 8823 :clear
8161 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8824 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8162 t end 8825 t end
8163 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8826 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8164 :end' >>confcache 8827 :end' >>confcache
8165if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8828if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8166 if test -w "$cache_file"; then 8829 if test -w "$cache_file"; then
8167 if test "x$cache_file" != "x/dev/null"; then 8830 if test "x$cache_file" != "x/dev/null"; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8169$as_echo "$as_me: updating cache $cache_file" >&6;} 8832printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
8170 if test ! -f "$cache_file" || test -h "$cache_file"; then 8833 if test ! -f "$cache_file" || test -h "$cache_file"; then
8171 cat confcache >"$cache_file" 8834 cat confcache >"$cache_file"
8172 else 8835 else
8173 case $cache_file in #( 8836 case $cache_file in #(
8174 */* | ?:*) 8837 */* | ?:*)
8178 mv -f confcache "$cache_file" ;; 8841 mv -f confcache "$cache_file" ;;
8179 esac 8842 esac
8180 fi 8843 fi
8181 fi 8844 fi
8182 else 8845 else
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8184$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8847printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8185 fi 8848 fi
8186fi 8849fi
8187rm -f confcache 8850rm -f confcache
8188 8851
8189test "x$prefix" = xNONE && prefix=$ac_default_prefix 8852test "x$prefix" = xNONE && prefix=$ac_default_prefix
8196ac_ltlibobjs= 8859ac_ltlibobjs=
8197U= 8860U=
8198for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8861for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8199 # 1. Remove the extension, and $U if already installed. 8862 # 1. Remove the extension, and $U if already installed.
8200 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8863 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8201 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 8864 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8202 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8865 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8203 # will be set to the directory where LIBOBJS objects are built. 8866 # will be set to the directory where LIBOBJS objects are built.
8204 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8867 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8205 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 8868 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8206done 8869done
8212 8875
8213: "${CONFIG_STATUS=./config.status}" 8876: "${CONFIG_STATUS=./config.status}"
8214ac_write_fail=0 8877ac_write_fail=0
8215ac_clean_files_save=$ac_clean_files 8878ac_clean_files_save=$ac_clean_files
8216ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8879ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8218$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8881printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8219as_write_fail=0 8882as_write_fail=0
8220cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 8883cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8221#! $SHELL 8884#! $SHELL
8222# Generated by $as_me. 8885# Generated by $as_me.
8223# Run this file to recreate the current configuration. 8886# Run this file to recreate the current configuration.
8236## M4sh Initialization. ## 8899## M4sh Initialization. ##
8237## -------------------- ## 8900## -------------------- ##
8238 8901
8239# Be more Bourne compatible 8902# Be more Bourne compatible
8240DUALCASE=1; export DUALCASE # for MKS sh 8903DUALCASE=1; export DUALCASE # for MKS sh
8904as_nop=:
8241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 8905if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
8906then :
8242 emulate sh 8907 emulate sh
8243 NULLCMD=: 8908 NULLCMD=:
8244 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 8909 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8245 # is contrary to our usage. Disable this feature. 8910 # is contrary to our usage. Disable this feature.
8246 alias -g '${1+"$@"}'='"$@"' 8911 alias -g '${1+"$@"}'='"$@"'
8247 setopt NO_GLOB_SUBST 8912 setopt NO_GLOB_SUBST
8248else 8913else $as_nop
8249 case `(set -o) 2>/dev/null` in #( 8914 case `(set -o) 2>/dev/null` in #(
8250 *posix*) : 8915 *posix*) :
8251 set -o posix ;; #( 8916 set -o posix ;; #(
8252 *) : 8917 *) :
8253 ;; 8918 ;;
8254esac 8919esac
8255fi 8920fi
8256 8921
8257 8922
8923
8924# Reset variables that may have inherited troublesome values from
8925# the environment.
8926
8927# IFS needs to be set, to space, tab, and newline, in precisely that order.
8928# (If _AS_PATH_WALK were called with IFS unset, it would have the
8929# side effect of setting IFS to empty, thus disabling word splitting.)
8930# Quoting is to prevent editors from complaining about space-tab.
8258as_nl=' 8931as_nl='
8259' 8932'
8260export as_nl 8933export as_nl
8261# Printing a long string crashes Solaris 7 /usr/bin/printf. 8934IFS=" "" $as_nl"
8262as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8935
8263as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 8936PS1='$ '
8264as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 8937PS2='> '
8265# Prefer a ksh shell builtin over an external printf program on Solaris, 8938PS4='+ '
8266# but without wasting forks for bash or zsh. 8939
8267if test -z "$BASH_VERSION$ZSH_VERSION" \ 8940# Ensure predictable behavior from utilities with locale-dependent output.
8268 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 8941LC_ALL=C
8269 as_echo='print -r --' 8942export LC_ALL
8270 as_echo_n='print -rn --' 8943LANGUAGE=C
8271elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 8944export LANGUAGE
8272 as_echo='printf %s\n' 8945
8273 as_echo_n='printf %s' 8946# We cannot yet rely on "unset" to work, but we need these variables
8274else 8947# to be unset--not just set to an empty or harmless value--now, to
8275 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 8948# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8276 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 8949# also avoids known problems related to "unset" and subshell syntax
8277 as_echo_n='/usr/ucb/echo -n' 8950# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8278 else 8951for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
8279 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 8952do eval test \${$as_var+y} \
8280 as_echo_n_body='eval 8953 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8281 arg=$1; 8954done
8282 case $arg in #( 8955
8283 *"$as_nl"*) 8956# Ensure that fds 0, 1, and 2 are open.
8284 expr "X$arg" : "X\\(.*\\)$as_nl"; 8957if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
8285 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 8958if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
8286 esac; 8959if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
8287 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8288 '
8289 export as_echo_n_body
8290 as_echo_n='sh -c $as_echo_n_body as_echo'
8291 fi
8292 export as_echo_body
8293 as_echo='sh -c $as_echo_body as_echo'
8294fi
8295 8960
8296# The user is always right. 8961# The user is always right.
8297if test "${PATH_SEPARATOR+set}" != set; then 8962if ${PATH_SEPARATOR+false} :; then
8298 PATH_SEPARATOR=: 8963 PATH_SEPARATOR=:
8299 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8964 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8300 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8965 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8301 PATH_SEPARATOR=';' 8966 PATH_SEPARATOR=';'
8302 } 8967 }
8303fi 8968fi
8304 8969
8305
8306# IFS
8307# We need space, tab and new line, in precisely that order. Quoting is
8308# there to prevent editors from complaining about space-tab.
8309# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8310# splitting by setting IFS to empty value.)
8311IFS=" "" $as_nl"
8312 8970
8313# Find who we are. Look in the path if we contain no directory separator. 8971# Find who we are. Look in the path if we contain no directory separator.
8314as_myself= 8972as_myself=
8315case $0 in #(( 8973case $0 in #((
8316 *[\\/]* ) as_myself=$0 ;; 8974 *[\\/]* ) as_myself=$0 ;;
8317 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8975 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318for as_dir in $PATH 8976for as_dir in $PATH
8319do 8977do
8320 IFS=$as_save_IFS 8978 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=. 8979 case $as_dir in #(((
8980 '') as_dir=./ ;;
8981 */) ;;
8982 *) as_dir=$as_dir/ ;;
8983 esac
8322 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8984 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
8323 done 8985 done
8324IFS=$as_save_IFS 8986IFS=$as_save_IFS
8325 8987
8326 ;; 8988 ;;
8327esac 8989esac
8329# in which case we are not to be found in the path. 8991# in which case we are not to be found in the path.
8330if test "x$as_myself" = x; then 8992if test "x$as_myself" = x; then
8331 as_myself=$0 8993 as_myself=$0
8332fi 8994fi
8333if test ! -f "$as_myself"; then 8995if test ! -f "$as_myself"; then
8334 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8996 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8335 exit 1 8997 exit 1
8336fi 8998fi
8337 8999
8338# Unset variables that we do not need and which cause bugs (e.g. in
8339# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8340# suppresses any "Segmentation fault" message there. '((' could
8341# trigger a bug in pdksh 5.2.14.
8342for as_var in BASH_ENV ENV MAIL MAILPATH
8343do eval test x\${$as_var+set} = xset \
8344 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8345done
8346PS1='$ '
8347PS2='> '
8348PS4='+ '
8349
8350# NLS nuisances.
8351LC_ALL=C
8352export LC_ALL
8353LANGUAGE=C
8354export LANGUAGE
8355
8356# CDPATH.
8357(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8358 9000
8359 9001
8360# as_fn_error STATUS ERROR [LINENO LOG_FD] 9002# as_fn_error STATUS ERROR [LINENO LOG_FD]
8361# ---------------------------------------- 9003# ----------------------------------------
8362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 9004# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8365as_fn_error () 9007as_fn_error ()
8366{ 9008{
8367 as_status=$1; test $as_status -eq 0 && as_status=1 9009 as_status=$1; test $as_status -eq 0 && as_status=1
8368 if test "$4"; then 9010 if test "$4"; then
8369 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 9011 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 9012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8371 fi 9013 fi
8372 $as_echo "$as_me: error: $2" >&2 9014 printf "%s\n" "$as_me: error: $2" >&2
8373 as_fn_exit $as_status 9015 as_fn_exit $as_status
8374} # as_fn_error 9016} # as_fn_error
9017
8375 9018
8376 9019
8377# as_fn_set_status STATUS 9020# as_fn_set_status STATUS
8378# ----------------------- 9021# -----------------------
8379# Set $? to STATUS, without forking. 9022# Set $? to STATUS, without forking.
8398as_fn_unset () 9041as_fn_unset ()
8399{ 9042{
8400 { eval $1=; unset $1;} 9043 { eval $1=; unset $1;}
8401} 9044}
8402as_unset=as_fn_unset 9045as_unset=as_fn_unset
9046
8403# as_fn_append VAR VALUE 9047# as_fn_append VAR VALUE
8404# ---------------------- 9048# ----------------------
8405# Append the text in VALUE to the end of the definition contained in VAR. Take 9049# Append the text in VALUE to the end of the definition contained in VAR. Take
8406# advantage of any shell optimizations that allow amortized linear growth over 9050# advantage of any shell optimizations that allow amortized linear growth over
8407# repeated appends, instead of the typical quadratic growth present in naive 9051# repeated appends, instead of the typical quadratic growth present in naive
8408# implementations. 9052# implementations.
8409if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 9053if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
9054then :
8410 eval 'as_fn_append () 9055 eval 'as_fn_append ()
8411 { 9056 {
8412 eval $1+=\$2 9057 eval $1+=\$2
8413 }' 9058 }'
8414else 9059else $as_nop
8415 as_fn_append () 9060 as_fn_append ()
8416 { 9061 {
8417 eval $1=\$$1\$2 9062 eval $1=\$$1\$2
8418 } 9063 }
8419fi # as_fn_append 9064fi # as_fn_append
8421# as_fn_arith ARG... 9066# as_fn_arith ARG...
8422# ------------------ 9067# ------------------
8423# Perform arithmetic evaluation on the ARGs, and store the result in the 9068# Perform arithmetic evaluation on the ARGs, and store the result in the
8424# global $as_val. Take advantage of shells that can avoid forks. The arguments 9069# global $as_val. Take advantage of shells that can avoid forks. The arguments
8425# must be portable across $(()) and expr. 9070# must be portable across $(()) and expr.
8426if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 9071if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
9072then :
8427 eval 'as_fn_arith () 9073 eval 'as_fn_arith ()
8428 { 9074 {
8429 as_val=$(( $* )) 9075 as_val=$(( $* ))
8430 }' 9076 }'
8431else 9077else $as_nop
8432 as_fn_arith () 9078 as_fn_arith ()
8433 { 9079 {
8434 as_val=`expr "$@" || test $? -eq 1` 9080 as_val=`expr "$@" || test $? -eq 1`
8435 } 9081 }
8436fi # as_fn_arith 9082fi # as_fn_arith
8457 9103
8458as_me=`$as_basename -- "$0" || 9104as_me=`$as_basename -- "$0" ||
8459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 9105$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8460 X"$0" : 'X\(//\)$' \| \ 9106 X"$0" : 'X\(//\)$' \| \
8461 X"$0" : 'X\(/\)' \| . 2>/dev/null || 9107 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8462$as_echo X/"$0" | 9108printf "%s\n" X/"$0" |
8463 sed '/^.*\/\([^/][^/]*\)\/*$/{ 9109 sed '/^.*\/\([^/][^/]*\)\/*$/{
8464 s//\1/ 9110 s//\1/
8465 q 9111 q
8466 } 9112 }
8467 /^X\/\(\/\/\)$/{ 9113 /^X\/\(\/\/\)$/{
8479as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 9125as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8480as_cr_Letters=$as_cr_letters$as_cr_LETTERS 9126as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8481as_cr_digits='0123456789' 9127as_cr_digits='0123456789'
8482as_cr_alnum=$as_cr_Letters$as_cr_digits 9128as_cr_alnum=$as_cr_Letters$as_cr_digits
8483 9129
9130
9131# Determine whether it's possible to make 'echo' print without a newline.
9132# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
9133# for compatibility with existing Makefiles.
8484ECHO_C= ECHO_N= ECHO_T= 9134ECHO_C= ECHO_N= ECHO_T=
8485case `echo -n x` in #((((( 9135case `echo -n x` in #(((((
8486-n*) 9136-n*)
8487 case `echo 'xy\c'` in 9137 case `echo 'xy\c'` in
8488 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 9138 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8492 esac;; 9142 esac;;
8493*) 9143*)
8494 ECHO_N='-n';; 9144 ECHO_N='-n';;
8495esac 9145esac
8496 9146
9147# For backward compatibility with old third-party macros, we provide
9148# the shell variables $as_echo and $as_echo_n. New code should use
9149# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
9150as_echo='printf %s\n'
9151as_echo_n='printf %s'
9152
8497rm -f conf$$ conf$$.exe conf$$.file 9153rm -f conf$$ conf$$.exe conf$$.file
8498if test -d conf$$.dir; then 9154if test -d conf$$.dir; then
8499 rm -f conf$$.dir/conf$$.file 9155 rm -f conf$$.dir/conf$$.file
8500else 9156else
8501 rm -f conf$$.dir 9157 rm -f conf$$.dir
8505 if ln -s conf$$.file conf$$ 2>/dev/null; then 9161 if ln -s conf$$.file conf$$ 2>/dev/null; then
8506 as_ln_s='ln -s' 9162 as_ln_s='ln -s'
8507 # ... but there are two gotchas: 9163 # ... but there are two gotchas:
8508 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 9164 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8509 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 9165 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8510 # In both cases, we have to default to `cp -p'. 9166 # In both cases, we have to default to `cp -pR'.
8511 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 9167 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8512 as_ln_s='cp -p' 9168 as_ln_s='cp -pR'
8513 elif ln conf$$.file conf$$ 2>/dev/null; then 9169 elif ln conf$$.file conf$$ 2>/dev/null; then
8514 as_ln_s=ln 9170 as_ln_s=ln
8515 else 9171 else
8516 as_ln_s='cp -p' 9172 as_ln_s='cp -pR'
8517 fi 9173 fi
8518else 9174else
8519 as_ln_s='cp -p' 9175 as_ln_s='cp -pR'
8520fi 9176fi
8521rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 9177rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8522rmdir conf$$.dir 2>/dev/null 9178rmdir conf$$.dir 2>/dev/null
8523 9179
8524 9180
8533 esac 9189 esac
8534 test -d "$as_dir" || eval $as_mkdir_p || { 9190 test -d "$as_dir" || eval $as_mkdir_p || {
8535 as_dirs= 9191 as_dirs=
8536 while :; do 9192 while :; do
8537 case $as_dir in #( 9193 case $as_dir in #(
8538 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 9194 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8539 *) as_qdir=$as_dir;; 9195 *) as_qdir=$as_dir;;
8540 esac 9196 esac
8541 as_dirs="'$as_qdir' $as_dirs" 9197 as_dirs="'$as_qdir' $as_dirs"
8542 as_dir=`$as_dirname -- "$as_dir" || 9198 as_dir=`$as_dirname -- "$as_dir" ||
8543$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9199$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8544 X"$as_dir" : 'X\(//\)[^/]' \| \ 9200 X"$as_dir" : 'X\(//\)[^/]' \| \
8545 X"$as_dir" : 'X\(//\)$' \| \ 9201 X"$as_dir" : 'X\(//\)$' \| \
8546 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 9202 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8547$as_echo X"$as_dir" | 9203printf "%s\n" X"$as_dir" |
8548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8549 s//\1/ 9205 s//\1/
8550 q 9206 q
8551 } 9207 }
8552 /^X\(\/\/\)[^/].*/{ 9208 /^X\(\/\/\)[^/].*/{
8574else 9230else
8575 test -d ./-p && rmdir ./-p 9231 test -d ./-p && rmdir ./-p
8576 as_mkdir_p=false 9232 as_mkdir_p=false
8577fi 9233fi
8578 9234
8579if test -x / >/dev/null 2>&1; then 9235
9236# as_fn_executable_p FILE
9237# -----------------------
9238# Test if FILE is an executable regular file.
9239as_fn_executable_p ()
9240{
9241 test -f "$1" && test -x "$1"
9242} # as_fn_executable_p
8580 as_test_x='test -x' 9243as_test_x='test -x'
8581else 9244as_executable_p=as_fn_executable_p
8582 if ls -dL / >/dev/null 2>&1; then
8583 as_ls_L_option=L
8584 else
8585 as_ls_L_option=
8586 fi
8587 as_test_x='
8588 eval sh -c '\''
8589 if test -d "$1"; then
8590 test -d "$1/.";
8591 else
8592 case $1 in #(
8593 -*)set "./$1";;
8594 esac;
8595 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8596 ???[sx]*):;;*)false;;esac;fi
8597 '\'' sh
8598 '
8599fi
8600as_executable_p=$as_test_x
8601 9245
8602# Sed expression to map a string onto a valid CPP name. 9246# Sed expression to map a string onto a valid CPP name.
8603as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 9247as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8604 9248
8605# Sed expression to map a string onto a valid variable name. 9249# Sed expression to map a string onto a valid variable name.
8617# Save the log message, to keep $0 and so on meaningful, and to 9261# Save the log message, to keep $0 and so on meaningful, and to
8618# report actual input values of CONFIG_FILES etc. instead of their 9262# report actual input values of CONFIG_FILES etc. instead of their
8619# values after options handling. 9263# values after options handling.
8620ac_log=" 9264ac_log="
8621This file was extended by $as_me, which was 9265This file was extended by $as_me, which was
8622generated by GNU Autoconf 2.68. Invocation command line was 9266generated by GNU Autoconf 2.71. Invocation command line was
8623 9267
8624 CONFIG_FILES = $CONFIG_FILES 9268 CONFIG_FILES = $CONFIG_FILES
8625 CONFIG_HEADERS = $CONFIG_HEADERS 9269 CONFIG_HEADERS = $CONFIG_HEADERS
8626 CONFIG_LINKS = $CONFIG_LINKS 9270 CONFIG_LINKS = $CONFIG_LINKS
8627 CONFIG_COMMANDS = $CONFIG_COMMANDS 9271 CONFIG_COMMANDS = $CONFIG_COMMANDS
8675$config_headers 9319$config_headers
8676 9320
8677Report bugs to the package provider." 9321Report bugs to the package provider."
8678 9322
8679_ACEOF 9323_ACEOF
9324ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
9325ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
8680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8681ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 9327ac_cs_config='$ac_cs_config_escaped'
8682ac_cs_version="\\ 9328ac_cs_version="\\
8683config.status 9329config.status
8684configured by $0, generated by GNU Autoconf 2.68, 9330configured by $0, generated by GNU Autoconf 2.71,
8685 with options \\"\$ac_cs_config\\" 9331 with options \\"\$ac_cs_config\\"
8686 9332
8687Copyright (C) 2010 Free Software Foundation, Inc. 9333Copyright (C) 2021 Free Software Foundation, Inc.
8688This config.status script is free software; the Free Software Foundation 9334This config.status script is free software; the Free Software Foundation
8689gives unlimited permission to copy, distribute and modify it." 9335gives unlimited permission to copy, distribute and modify it."
8690 9336
8691ac_pwd='$ac_pwd' 9337ac_pwd='$ac_pwd'
8692srcdir='$srcdir' 9338srcdir='$srcdir'
8720 case $ac_option in 9366 case $ac_option in
8721 # Handling of the options. 9367 # Handling of the options.
8722 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9368 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8723 ac_cs_recheck=: ;; 9369 ac_cs_recheck=: ;;
8724 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 9370 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8725 $as_echo "$ac_cs_version"; exit ;; 9371 printf "%s\n" "$ac_cs_version"; exit ;;
8726 --config | --confi | --conf | --con | --co | --c ) 9372 --config | --confi | --conf | --con | --co | --c )
8727 $as_echo "$ac_cs_config"; exit ;; 9373 printf "%s\n" "$ac_cs_config"; exit ;;
8728 --debug | --debu | --deb | --de | --d | -d ) 9374 --debug | --debu | --deb | --de | --d | -d )
8729 debug=: ;; 9375 debug=: ;;
8730 --file | --fil | --fi | --f ) 9376 --file | --fil | --fi | --f )
8731 $ac_shift 9377 $ac_shift
8732 case $ac_optarg in 9378 case $ac_optarg in
8733 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9379 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8734 '') as_fn_error $? "missing file argument" ;; 9380 '') as_fn_error $? "missing file argument" ;;
8735 esac 9381 esac
8736 as_fn_append CONFIG_FILES " '$ac_optarg'" 9382 as_fn_append CONFIG_FILES " '$ac_optarg'"
8737 ac_need_defaults=false;; 9383 ac_need_defaults=false;;
8738 --header | --heade | --head | --hea ) 9384 --header | --heade | --head | --hea )
8739 $ac_shift 9385 $ac_shift
8740 case $ac_optarg in 9386 case $ac_optarg in
8741 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9387 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8742 esac 9388 esac
8743 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 9389 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8744 ac_need_defaults=false;; 9390 ac_need_defaults=false;;
8745 --he | --h) 9391 --he | --h)
8746 # Conflict between --help and --header 9392 # Conflict between --help and --header
8747 as_fn_error $? "ambiguous option: \`$1' 9393 as_fn_error $? "ambiguous option: \`$1'
8748Try \`$0 --help' for more information.";; 9394Try \`$0 --help' for more information.";;
8749 --help | --hel | -h ) 9395 --help | --hel | -h )
8750 $as_echo "$ac_cs_usage"; exit ;; 9396 printf "%s\n" "$ac_cs_usage"; exit ;;
8751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 9397 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8752 | -silent | --silent | --silen | --sile | --sil | --si | --s) 9398 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8753 ac_cs_silent=: ;; 9399 ac_cs_silent=: ;;
8754 9400
8755 # This is an error. 9401 # This is an error.
8771fi 9417fi
8772 9418
8773_ACEOF 9419_ACEOF
8774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8775if \$ac_cs_recheck; then 9421if \$ac_cs_recheck; then
8776 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 9422 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8777 shift 9423 shift
8778 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 9424 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
8779 CONFIG_SHELL='$SHELL' 9425 CONFIG_SHELL='$SHELL'
8780 export CONFIG_SHELL 9426 export CONFIG_SHELL
8781 exec "\$@" 9427 exec "\$@"
8782fi 9428fi
8783 9429
8787{ 9433{
8788 echo 9434 echo
8789 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 9435 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8790## Running $as_me. ## 9436## Running $as_me. ##
8791_ASBOX 9437_ASBOX
8792 $as_echo "$ac_log" 9438 printf "%s\n" "$ac_log"
8793} >&5 9439} >&5
8794 9440
8795_ACEOF 9441_ACEOF
8796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9442cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8797_ACEOF 9443_ACEOF
8815# If the user did not use the arguments to specify the items to instantiate, 9461# If the user did not use the arguments to specify the items to instantiate,
8816# then the envvar interface is used. Set only those that are not. 9462# then the envvar interface is used. Set only those that are not.
8817# We use the long form for the default assignment because of an extremely 9463# We use the long form for the default assignment because of an extremely
8818# bizarre bug on SunOS 4.1.3. 9464# bizarre bug on SunOS 4.1.3.
8819if $ac_need_defaults; then 9465if $ac_need_defaults; then
8820 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9466 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
8821 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 9467 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
8822fi 9468fi
8823 9469
8824# Have a temporary directory for convenience. Make it in the build tree 9470# Have a temporary directory for convenience. Make it in the build tree
8825# simply because there is no reason against having it here, and in addition, 9471# simply because there is no reason against having it here, and in addition,
8826# creating and moving files from /tmp can sometimes cause problems. 9472# creating and moving files from /tmp can sometimes cause problems.
9152 [\\/$]*) false;; 9798 [\\/$]*) false;;
9153 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9799 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9154 esac || 9800 esac ||
9155 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 9801 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9156 esac 9802 esac
9157 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9803 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9158 as_fn_append ac_file_inputs " '$ac_f'" 9804 as_fn_append ac_file_inputs " '$ac_f'"
9159 done 9805 done
9160 9806
9161 # Let's still pretend it is `configure' which instantiates (i.e., don't 9807 # Let's still pretend it is `configure' which instantiates (i.e., don't
9162 # use $as_me), people would be surprised to read: 9808 # use $as_me), people would be surprised to read:
9163 # /* config.h. Generated by config.status. */ 9809 # /* config.h. Generated by config.status. */
9164 configure_input='Generated from '` 9810 configure_input='Generated from '`
9165 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 9811 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9166 `' by configure.' 9812 `' by configure.'
9167 if test x"$ac_file" != x-; then 9813 if test x"$ac_file" != x-; then
9168 configure_input="$ac_file. $configure_input" 9814 configure_input="$ac_file. $configure_input"
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 9815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9170$as_echo "$as_me: creating $ac_file" >&6;} 9816printf "%s\n" "$as_me: creating $ac_file" >&6;}
9171 fi 9817 fi
9172 # Neutralize special characters interpreted by sed in replacement strings. 9818 # Neutralize special characters interpreted by sed in replacement strings.
9173 case $configure_input in #( 9819 case $configure_input in #(
9174 *\&* | *\|* | *\\* ) 9820 *\&* | *\|* | *\\* )
9175 ac_sed_conf_input=`$as_echo "$configure_input" | 9821 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
9176 sed 's/[\\\\&|]/\\\\&/g'`;; #( 9822 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9177 *) ac_sed_conf_input=$configure_input;; 9823 *) ac_sed_conf_input=$configure_input;;
9178 esac 9824 esac
9179 9825
9180 case $ac_tag in 9826 case $ac_tag in
9187 ac_dir=`$as_dirname -- "$ac_file" || 9833 ac_dir=`$as_dirname -- "$ac_file" ||
9188$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9834$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9189 X"$ac_file" : 'X\(//\)[^/]' \| \ 9835 X"$ac_file" : 'X\(//\)[^/]' \| \
9190 X"$ac_file" : 'X\(//\)$' \| \ 9836 X"$ac_file" : 'X\(//\)$' \| \
9191 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9837 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9192$as_echo X"$ac_file" | 9838printf "%s\n" X"$ac_file" |
9193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9194 s//\1/ 9840 s//\1/
9195 q 9841 q
9196 } 9842 }
9197 /^X\(\/\/\)[^/].*/{ 9843 /^X\(\/\/\)[^/].*/{
9211 ac_builddir=. 9857 ac_builddir=.
9212 9858
9213case "$ac_dir" in 9859case "$ac_dir" in
9214.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9860.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9215*) 9861*)
9216 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 9862 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9217 # A ".." for each directory in $ac_dir_suffix. 9863 # A ".." for each directory in $ac_dir_suffix.
9218 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 9864 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9219 case $ac_top_builddir_sub in 9865 case $ac_top_builddir_sub in
9220 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9866 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9221 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9867 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9222 esac ;; 9868 esac ;;
9223esac 9869esac
9270/@localedir@/p 9916/@localedir@/p
9271/@mandir@/p' 9917/@mandir@/p'
9272case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 9918case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9273*datarootdir*) ac_datarootdir_seen=yes;; 9919*datarootdir*) ac_datarootdir_seen=yes;;
9274*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9920*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9276$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9922printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9277_ACEOF 9923_ACEOF
9278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9279 ac_datarootdir_hack=' 9925 ac_datarootdir_hack='
9280 s&@datadir@&$datadir&g 9926 s&@datadir@&$datadir&g
9281 s&@docdir@&$docdir&g 9927 s&@docdir@&$docdir&g
9314 9960
9315test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9961test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9316 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 9962 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9317 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 9963 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9318 "$ac_tmp/out"`; test -z "$ac_out"; } && 9964 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9320which seems to be undefined. Please make sure it is defined" >&5 9966which seems to be undefined. Please make sure it is defined" >&5
9321$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9967printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9322which seems to be undefined. Please make sure it is defined" >&2;} 9968which seems to be undefined. Please make sure it is defined" >&2;}
9323 9969
9324 rm -f "$ac_tmp/stdin" 9970 rm -f "$ac_tmp/stdin"
9325 case $ac_file in 9971 case $ac_file in
9326 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 9972 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9332 # 9978 #
9333 # CONFIG_HEADER 9979 # CONFIG_HEADER
9334 # 9980 #
9335 if test x"$ac_file" != x-; then 9981 if test x"$ac_file" != x-; then
9336 { 9982 {
9337 $as_echo "/* $configure_input */" \ 9983 printf "%s\n" "/* $configure_input */" >&1 \
9338 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 9984 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9339 } >"$ac_tmp/config.h" \ 9985 } >"$ac_tmp/config.h" \
9340 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9986 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9341 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 9987 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 9988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9343$as_echo "$as_me: $ac_file is unchanged" >&6;} 9989printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
9344 else 9990 else
9345 rm -f "$ac_file" 9991 rm -f "$ac_file"
9346 mv "$ac_tmp/config.h" "$ac_file" \ 9992 mv "$ac_tmp/config.h" "$ac_file" \
9347 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9993 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9348 fi 9994 fi
9349 else 9995 else
9350 $as_echo "/* $configure_input */" \ 9996 printf "%s\n" "/* $configure_input */" >&1 \
9351 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 9997 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9352 || as_fn_error $? "could not create -" "$LINENO" 5 9998 || as_fn_error $? "could not create -" "$LINENO" 5
9353 fi 9999 fi
9354 ;; 10000 ;;
9355 10001
9386 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 10032 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9387 # would make configure fail if this is the last instruction. 10033 # would make configure fail if this is the last instruction.
9388 $ac_cs_success || as_fn_exit 1 10034 $ac_cs_success || as_fn_exit 1
9389fi 10035fi
9390if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 10036if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 10037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9392$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 10038printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9393fi 10039fi
9394 10040
9395 10041
9396echo "Configuration: 10042echo "Configuration:
9397 10043
9426fi 10072fi
9427 10073
9428echo "*** Optionally check src/feature.h for further, rarely used options ***" 10074echo "*** Optionally check src/feature.h for further, rarely used options ***"
9429echo 10075echo
9430 10076
10077

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines