Tue Jun 27 09:30:43 2023 UTC ()
libnbcompat: regen configure


(riastradh)
diff -r1.87 -r1.88 pkgsrc/pkgtools/libnbcompat/files/configure

cvs diff -r1.87 -r1.88 pkgsrc/pkgtools/libnbcompat/files/configure (expand / switch to unified diff)

--- pkgsrc/pkgtools/libnbcompat/files/configure 2020/05/24 21:51:54 1.87
+++ pkgsrc/pkgtools/libnbcompat/files/configure 2023/06/27 09:30:43 1.88
@@ -1,282 +1,283 @@ @@ -1,282 +1,283 @@
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.69 for libnbcompat 20190708. 3# Generated by GNU Autoconf 2.71 for libnbcompat 20190708.
4# 4#
5# Report bugs to <joerg@NetBSD.org>. 5# Report bugs to <joerg@NetBSD.org>.
6# 6#
7# 7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
 9# Inc.
9# 10#
10# 11#
11# This configure script is free software; the Free Software Foundation 12# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it. 13# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ## 14## -------------------- ##
14## M4sh Initialization. ## 15## M4sh Initialization. ##
15## -------------------- ## 16## -------------------- ##
16 17
17# Be more Bourne compatible 18# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh 19DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20as_nop=:
 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
 22then :
20 emulate sh 23 emulate sh
21 NULLCMD=: 24 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature. 26 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"' 27 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST 28 setopt NO_GLOB_SUBST
26else 29else $as_nop
27 case `(set -o) 2>/dev/null` in #( 30 case `(set -o) 2>/dev/null` in #(
28 *posix*) : 31 *posix*) :
29 set -o posix ;; #( 32 set -o posix ;; #(
30 *) : 33 *) :
31 ;; 34 ;;
32esac 35esac
33fi 36fi
34 37
35 38
 39
 40# Reset variables that may have inherited troublesome values from
 41# the environment.
 42
 43# IFS needs to be set, to space, tab, and newline, in precisely that order.
 44# (If _AS_PATH_WALK were called with IFS unset, it would have the
 45# side effect of setting IFS to empty, thus disabling word splitting.)
 46# Quoting is to prevent editors from complaining about space-tab.
36as_nl=' 47as_nl='
37' 48'
38export as_nl 49export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf. 50IFS=" "" $as_nl"
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 51
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 52PS1='$ '
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 53PS2='> '
43# Prefer a ksh shell builtin over an external printf program on Solaris, 54PS4='+ '
44# but without wasting forks for bash or zsh. 55
45if test -z "$BASH_VERSION$ZSH_VERSION" \ 56# Ensure predictable behavior from utilities with locale-dependent output.
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 57LC_ALL=C
47 as_echo='print -r --' 58export LC_ALL
48 as_echo_n='print -rn --' 59LANGUAGE=C
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 60export LANGUAGE
50 as_echo='printf %s\n' 61
51 as_echo_n='printf %s' 62# We cannot yet rely on "unset" to work, but we need these variables
52else 63# 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 64# 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"' 65# also avoids known problems related to "unset" and subshell syntax
55 as_echo_n='/usr/ucb/echo -n' 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
56 else 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 68do eval test \${$as_var+y} \
58 as_echo_n_body='eval 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
59 arg=$1; 70done
60 case $arg in #( 71
61 *"$as_nl"*) 72# Ensure that fds 0, 1, and 2 are open.
62 expr "X$arg" : "X\\(.*\\)$as_nl"; 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
64 esac; 75if (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 76
74# The user is always right. 77# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then 78if ${PATH_SEPARATOR+false} :; then
76 PATH_SEPARATOR=: 79 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';' 82 PATH_SEPARATOR=';'
80 } 83 }
81fi 84fi
82 85
83 86
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 
91# Find who we are. Look in the path if we contain no directory separator. 87# Find who we are. Look in the path if we contain no directory separator.
92as_myself= 88as_myself=
93case $0 in #(( 89case $0 in #((
94 *[\\/]* ) as_myself=$0 ;; 90 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH 92for as_dir in $PATH
97do 93do
98 IFS=$as_save_IFS 94 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=. 95 case $as_dir in #(((
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 96 '') as_dir=./ ;;
 97 */) ;;
 98 *) as_dir=$as_dir/ ;;
 99 esac
 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done 101 done
102IFS=$as_save_IFS 102IFS=$as_save_IFS
103 103
104 ;; 104 ;;
105esac 105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND' 106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path. 107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then 108if test "x$as_myself" = x; then
109 as_myself=$0 109 as_myself=$0
110fi 110fi
111if test ! -f "$as_myself"; then 111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1 113 exit 1
114fi 114fi
115 115
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 
128# NLS nuisances. 
129LC_ALL=C 
130export LC_ALL 
131LANGUAGE=C 
132export LANGUAGE 
133 
134# CDPATH. 
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 
136 116
137# Use a proper internal environment variable to ensure we don't fall 117# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves. 118 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec; 120 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a 121 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also 122# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables. 123# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell. 124# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null 125BASH_ENV=/dev/null
146ENV=/dev/null 126ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # (((( 128case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;; 129 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;; 130 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;; 131 *x* ) as_opts=-x ;;
152 * ) as_opts= ;; 132 * ) as_opts= ;;
153esac 133esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail 135# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'. 136# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255 138exit 255
159 fi 139 fi
160 # We don't want this to propagate to other subprocesses. 140 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;} 141 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then 142if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 143 as_bourne_compatible="as_nop=:
 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
 145then :
164 emulate sh 146 emulate sh
165 NULLCMD=: 147 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature. 149 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST 151 setopt NO_GLOB_SUBST
170else 152else \$as_nop
171 case \`(set -o) 2>/dev/null\` in #( 153 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) : 154 *posix*) :
173 set -o posix ;; #( 155 set -o posix ;; #(
174 *) : 156 *) :
175 ;; 157 ;;
176esac 158esac
177fi 159fi
178" 160"
179 as_required="as_fn_return () { (exit \$1); } 161 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; } 162as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; } 163as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; } 164as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; } 165as_fn_ret_failure () { return 1; }
184 166
185exitcode=0 167exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
 173then :
191 174
192else 175else \$as_nop
193 exitcode=1; echo positional parameters were not saved. 176 exitcode=1; echo positional parameters were not saved.
194fi 177fi
195test x\$exitcode = x0 || exit 1 178test x\$exitcode = x0 || exit 1
 179blah=\$(echo \$(echo blah))
 180test x\"\$blah\" = xblah || exit 1
196test -x / || exit 1" 181test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1" 186test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then : 187 if (eval "$as_required") 2>/dev/null
 188then :
203 as_have_required=yes 189 as_have_required=yes
204else 190else $as_nop
205 as_have_required=no 191 as_have_required=no
206fi 192fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
 194then :
208 195
209else 196else $as_nop
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false 198as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do 200do
214 IFS=$as_save_IFS 201 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=. 202 case $as_dir in #(((
 203 '') as_dir=./ ;;
 204 */) ;;
 205 *) as_dir=$as_dir/ ;;
 206 esac
216 as_found=: 207 as_found=:
217 case $as_dir in #( 208 case $as_dir in #(
218 /*) 209 /*)
219 for as_base in sh bash ksh sh5; do 210 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks. 211 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base 212 as_shell=$as_dir$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
 215then :
224 CONFIG_SHELL=$as_shell as_have_required=yes 216 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
 218then :
226 break 2 219 break 2
227fi 220fi
228fi 221fi
229 done;; 222 done;;
230 esac 223 esac
231 as_found=false 224 as_found=false
232done 225done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 
235 CONFIG_SHELL=$SHELL as_have_required=yes 
236fi; } 
237IFS=$as_save_IFS 226IFS=$as_save_IFS
 227if $as_found
 228then :
 229
 230else $as_nop
 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
 233then :
 234 CONFIG_SHELL=$SHELL as_have_required=yes
 235fi
 236fi
238 237
239 238
240 if test "x$CONFIG_SHELL" != x; then : 239 if test "x$CONFIG_SHELL" != x
 240then :
241 export CONFIG_SHELL 241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a 242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also 243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables. 244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell. 245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null 246BASH_ENV=/dev/null
247ENV=/dev/null 247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # (((( 249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;; 250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;; 251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;; 252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;; 253 * ) as_opts= ;;
254esac 254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail 256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'. 257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255 259exit 255
260fi 260fi
261 261
262 if test x$as_have_required = xno; then : 262 if test x$as_have_required = xno
263 $as_echo "$0: This script requires a shell more modern than all" 263then :
264 $as_echo "$0: the shells that I found on your system." 264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 if test x${ZSH_VERSION+set} = xset ; then 265 printf "%s\n" "$0: the shells that I found on your system."
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 266 if test ${ZSH_VERSION+y} ; then
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
268 else 269 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and joerg@NetBSD.org 270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and joerg@NetBSD.org
270$0: about your system, including any error possibly output 271$0: about your system, including any error possibly output
271$0: before this message. Then install a modern shell, or 272$0: before this message. Then install a modern shell, or
272$0: manually run the script under such a shell if you do 273$0: manually run the script under such a shell if you do
273$0: have one." 274$0: have one."
274 fi 275 fi
275 exit 1 276 exit 1
276fi 277fi
277fi 278fi
278fi 279fi
279SHELL=${CONFIG_SHELL-/bin/sh} 280SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL 281export SHELL
281# Unset more variables known to interfere with behavior of common tools. 282# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS= 283CLICOLOR_FORCE= GREP_OPTIONS=
@@ -284,67 +285,76 @@ unset CLICOLOR_FORCE GREP_OPTIONS @@ -284,67 +285,76 @@ unset CLICOLOR_FORCE GREP_OPTIONS
284 285
285## --------------------- ## 286## --------------------- ##
286## M4sh Shell Functions. ## 287## M4sh Shell Functions. ##
287## --------------------- ## 288## --------------------- ##
288# as_fn_unset VAR 289# as_fn_unset VAR
289# --------------- 290# ---------------
290# Portably unset VAR. 291# Portably unset VAR.
291as_fn_unset () 292as_fn_unset ()
292{ 293{
293 { eval $1=; unset $1;} 294 { eval $1=; unset $1;}
294} 295}
295as_unset=as_fn_unset 296as_unset=as_fn_unset
296 297
 298
297# as_fn_set_status STATUS 299# as_fn_set_status STATUS
298# ----------------------- 300# -----------------------
299# Set $? to STATUS, without forking. 301# Set $? to STATUS, without forking.
300as_fn_set_status () 302as_fn_set_status ()
301{ 303{
302 return $1 304 return $1
303} # as_fn_set_status 305} # as_fn_set_status
304 306
305# as_fn_exit STATUS 307# as_fn_exit STATUS
306# ----------------- 308# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit () 310as_fn_exit ()
309{ 311{
310 set +e 312 set +e
311 as_fn_set_status $1 313 as_fn_set_status $1
312 exit $1 314 exit $1
313} # as_fn_exit 315} # as_fn_exit
 316# as_fn_nop
 317# ---------
 318# Do nothing but, unlike ":", preserve the value of $?.
 319as_fn_nop ()
 320{
 321 return $?
 322}
 323as_nop=as_fn_nop
314 324
315# as_fn_mkdir_p 325# as_fn_mkdir_p
316# ------------- 326# -------------
317# Create "$as_dir" as a directory, including parents if necessary. 327# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p () 328as_fn_mkdir_p ()
319{ 329{
320 330
321 case $as_dir in #( 331 case $as_dir in #(
322 -*) as_dir=./$as_dir;; 332 -*) as_dir=./$as_dir;;
323 esac 333 esac
324 test -d "$as_dir" || eval $as_mkdir_p || { 334 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs= 335 as_dirs=
326 while :; do 336 while :; do
327 case $as_dir in #( 337 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;; 339 *) as_qdir=$as_dir;;
330 esac 340 esac
331 as_dirs="'$as_qdir' $as_dirs" 341 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" || 342 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" | 347printf "%s\n" X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/ 349 s//\1/
340 q 350 q
341 } 351 }
342 /^X\(\/\/\)[^/].*/{ 352 /^X\(\/\/\)[^/].*/{
343 s//\1/ 353 s//\1/
344 q 354 q
345 } 355 }
346 /^X\(\/\/\)$/{ 356 /^X\(\/\/\)$/{
347 s//\1/ 357 s//\1/
348 q 358 q
349 } 359 }
350 /^X\(\/\).*/{ 360 /^X\(\/\).*/{
@@ -363,96 +373,106 @@ $as_echo X"$as_dir" | @@ -363,96 +373,106 @@ $as_echo X"$as_dir" |
363# as_fn_executable_p FILE 373# as_fn_executable_p FILE
364# ----------------------- 374# -----------------------
365# Test if FILE is an executable regular file. 375# Test if FILE is an executable regular file.
366as_fn_executable_p () 376as_fn_executable_p ()
367{ 377{
368 test -f "$1" && test -x "$1" 378 test -f "$1" && test -x "$1"
369} # as_fn_executable_p 379} # as_fn_executable_p
370# as_fn_append VAR VALUE 380# as_fn_append VAR VALUE
371# ---------------------- 381# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take 382# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over 383# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive 384# repeated appends, instead of the typical quadratic growth present in naive
375# implementations. 385# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
 387then :
377 eval 'as_fn_append () 388 eval 'as_fn_append ()
378 { 389 {
379 eval $1+=\$2 390 eval $1+=\$2
380 }' 391 }'
381else 392else $as_nop
382 as_fn_append () 393 as_fn_append ()
383 { 394 {
384 eval $1=\$$1\$2 395 eval $1=\$$1\$2
385 } 396 }
386fi # as_fn_append 397fi # as_fn_append
387 398
388# as_fn_arith ARG... 399# as_fn_arith ARG...
389# ------------------ 400# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the 401# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments 402# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr. 403# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 404if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
 405then :
394 eval 'as_fn_arith () 406 eval 'as_fn_arith ()
395 { 407 {
396 as_val=$(( $* )) 408 as_val=$(( $* ))
397 }' 409 }'
398else 410else $as_nop
399 as_fn_arith () 411 as_fn_arith ()
400 { 412 {
401 as_val=`expr "$@" || test $? -eq 1` 413 as_val=`expr "$@" || test $? -eq 1`
402 } 414 }
403fi # as_fn_arith 415fi # as_fn_arith
404 416
 417# as_fn_nop
 418# ---------
 419# Do nothing but, unlike ":", preserve the value of $?.
 420as_fn_nop ()
 421{
 422 return $?
 423}
 424as_nop=as_fn_nop
405 425
406# as_fn_error STATUS ERROR [LINENO LOG_FD] 426# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ---------------------------------------- 427# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 428# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 429# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0. 430# script with STATUS, using 1 if that was 0.
411as_fn_error () 431as_fn_error ()
412{ 432{
413 as_status=$1; test $as_status -eq 0 && as_status=1 433 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then 434 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi 437 fi
418 $as_echo "$as_me: error: $2" >&2 438 printf "%s\n" "$as_me: error: $2" >&2
419 as_fn_exit $as_status 439 as_fn_exit $as_status
420} # as_fn_error 440} # as_fn_error
421 441
422if expr a : '\(a\)' >/dev/null 2>&1 && 442if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr 444 as_expr=expr
425else 445else
426 as_expr=false 446 as_expr=false
427fi 447fi
428 448
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename 450 as_basename=basename
431else 451else
432 as_basename=false 452 as_basename=false
433fi 453fi
434 454
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname 456 as_dirname=dirname
437else 457else
438 as_dirname=false 458 as_dirname=false
439fi 459fi
440 460
441as_me=`$as_basename -- "$0" || 461as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" | 465printf "%s\n" X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 466 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/ 467 s//\1/
448 q 468 q
449 } 469 }
450 /^X\/\(\/\/\)$/{ 470 /^X\/\(\/\/\)$/{
451 s//\1/ 471 s//\1/
452 q 472 q
453 } 473 }
454 /^X\/\(\/\).*/{ 474 /^X\/\(\/\).*/{
455 s//\1/ 475 s//\1/
456 q 476 q
457 } 477 }
458 s/.*/./; q'` 478 s/.*/./; q'`
@@ -476,53 +496,64 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits @@ -476,53 +496,64 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
476 ' <$as_myself | 496 ' <$as_myself |
477 sed ' 497 sed '
478 s/[$]LINENO.*/&-/ 498 s/[$]LINENO.*/&-/
479 t lineno 499 t lineno
480 b 500 b
481 :lineno 501 :lineno
482 N 502 N
483 :loop 503 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop 505 t loop
486 s/-\n.*// 506 s/-\n.*//
487 ' >$as_me.lineno && 507 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" || 508 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490 510
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall 512 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice. 513 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec 514 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems 515 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the 516 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this). 517 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno" 518 . "./$as_me.lineno"
499 # Exit status is that of the last command. 519 # Exit status is that of the last command.
500 exit 520 exit
501} 521}
502 522
 523
 524# Determine whether it's possible to make 'echo' print without a newline.
 525# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
 526# for compatibility with existing Makefiles.
503ECHO_C= ECHO_N= ECHO_T= 527ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #((((( 528case `echo -n x` in #(((((
505-n*) 529-n*)
506 case `echo 'xy\c'` in 530 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';; 532 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';; 534 ECHO_T=' ';;
511 esac;; 535 esac;;
512*) 536*)
513 ECHO_N='-n';; 537 ECHO_N='-n';;
514esac 538esac
515 539
 540# For backward compatibility with old third-party macros, we provide
 541# the shell variables $as_echo and $as_echo_n. New code should use
 542# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
 543as_echo='printf %s\n'
 544as_echo_n='printf %s'
 545
 546
516rm -f conf$$ conf$$.exe conf$$.file 547rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then 548if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file 549 rm -f conf$$.dir/conf$$.file
519else 550else
520 rm -f conf$$.dir 551 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null 552 mkdir conf$$.dir 2>/dev/null
522fi 553fi
523if (echo >conf$$.file) 2>/dev/null; then 554if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s' 556 as_ln_s='ln -s'
526 # ... but there are two gotchas: 557 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
@@ -577,78 +608,74 @@ subdirs= @@ -577,78 +608,74 @@ subdirs=
577MFLAGS= 608MFLAGS=
578MAKEFLAGS= 609MAKEFLAGS=
579 610
580# Identity of this package. 611# Identity of this package.
581PACKAGE_NAME='libnbcompat' 612PACKAGE_NAME='libnbcompat'
582PACKAGE_TARNAME='libnbcompat' 613PACKAGE_TARNAME='libnbcompat'
583PACKAGE_VERSION='20190708' 614PACKAGE_VERSION='20190708'
584PACKAGE_STRING='libnbcompat 20190708' 615PACKAGE_STRING='libnbcompat 20190708'
585PACKAGE_BUGREPORT='joerg@NetBSD.org' 616PACKAGE_BUGREPORT='joerg@NetBSD.org'
586PACKAGE_URL='' 617PACKAGE_URL=''
587 618
588# Factoring default headers for most tests. 619# Factoring default headers for most tests.
589ac_includes_default="\ 620ac_includes_default="\
590#include <stdio.h> 621#include <stddef.h>
591#ifdef HAVE_SYS_TYPES_H 622#ifdef HAVE_STDIO_H
592# include <sys/types.h> 623# include <stdio.h>
593#endif 
594#ifdef HAVE_SYS_STAT_H 
595# include <sys/stat.h> 
596#endif 624#endif
597#ifdef STDC_HEADERS 625#ifdef HAVE_STDLIB_H
598# include <stdlib.h> 626# include <stdlib.h>
599# include <stddef.h> 
600#else 
601# ifdef HAVE_STDLIB_H 
602# include <stdlib.h> 
603# endif 
604#endif 627#endif
605#ifdef HAVE_STRING_H 628#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 
607# include <memory.h> 
608# endif 
609# include <string.h> 629# include <string.h>
610#endif 630#endif
611#ifdef HAVE_STRINGS_H 
612# include <strings.h> 
613#endif 
614#ifdef HAVE_INTTYPES_H 631#ifdef HAVE_INTTYPES_H
615# include <inttypes.h> 632# include <inttypes.h>
616#endif 633#endif
617#ifdef HAVE_STDINT_H 634#ifdef HAVE_STDINT_H
618# include <stdint.h> 635# include <stdint.h>
619#endif 636#endif
 637#ifdef HAVE_STRINGS_H
 638# include <strings.h>
 639#endif
 640#ifdef HAVE_SYS_TYPES_H
 641# include <sys/types.h>
 642#endif
 643#ifdef HAVE_SYS_STAT_H
 644# include <sys/stat.h>
 645#endif
620#ifdef HAVE_UNISTD_H 646#ifdef HAVE_UNISTD_H
621# include <unistd.h> 647# include <unistd.h>
622#endif" 648#endif"
623 649
 650ac_header_c_list=
 651ac_func_c_list=
624ac_subst_vars='LTLIBOBJS 652ac_subst_vars='LTLIBOBJS
625WITH_DB 653WITH_DB
626LIBOBJS 654LIBOBJS
 655EGREP
 656GREP
627AUTOHEADER 657AUTOHEADER
628AUTOCONF 658AUTOCONF
629AR 659AR
630AWK 660AWK
631RANLIB 661RANLIB
632LN_S 662LN_S
633INSTALL_DATA 663INSTALL_DATA
634INSTALL_SCRIPT 664INSTALL_SCRIPT
635INSTALL_PROGRAM 665INSTALL_PROGRAM
636SET_MAKE 666SET_MAKE
637INCLUDES 667INCLUDES
638CANONICAL_HOST 668CANONICAL_HOST
639EGREP 
640GREP 
641CPP 
642OBJEXT 669OBJEXT
643EXEEXT 670EXEEXT
644ac_ct_CC 671ac_ct_CC
645CPPFLAGS 672CPPFLAGS
646LDFLAGS 673LDFLAGS
647CFLAGS 674CFLAGS
648CC 675CC
649host_os 676host_os
650host_vendor 677host_vendor
651host_cpu 678host_cpu
652host 679host
653build_os 680build_os
654build_vendor 681build_vendor
@@ -663,26 +690,27 @@ ECHO_N @@ -663,26 +690,27 @@ ECHO_N
663ECHO_C 690ECHO_C
664DEFS 691DEFS
665mandir 692mandir
666localedir 693localedir
667libdir 694libdir
668psdir 695psdir
669pdfdir 696pdfdir
670dvidir 697dvidir
671htmldir 698htmldir
672infodir 699infodir
673docdir 700docdir
674oldincludedir 701oldincludedir
675includedir 702includedir
 703runstatedir
676localstatedir 704localstatedir
677sharedstatedir 705sharedstatedir
678sysconfdir 706sysconfdir
679datadir 707datadir
680datarootdir 708datarootdir
681libexecdir 709libexecdir
682sbindir 710sbindir
683bindir 711bindir
684program_transform_name 712program_transform_name
685prefix 713prefix
686exec_prefix 714exec_prefix
687PACKAGE_URL 715PACKAGE_URL
688PACKAGE_BUGREPORT 716PACKAGE_BUGREPORT
@@ -695,28 +723,27 @@ SHELL' @@ -695,28 +723,27 @@ SHELL'
695ac_subst_files='' 723ac_subst_files=''
696ac_user_opts=' 724ac_user_opts='
697enable_option_checking 725enable_option_checking
698enable_db 726enable_db
699enable_bsd_getopt 727enable_bsd_getopt
700' 728'
701 ac_precious_vars='build_alias 729 ac_precious_vars='build_alias
702host_alias 730host_alias
703target_alias 731target_alias
704CC 732CC
705CFLAGS 733CFLAGS
706LDFLAGS 734LDFLAGS
707LIBS 735LIBS
708CPPFLAGS 736CPPFLAGS'
709CPP' 
710 737
711 738
712# Initialize some variables set by options. 739# Initialize some variables set by options.
713ac_init_help= 740ac_init_help=
714ac_init_version=false 741ac_init_version=false
715ac_unrecognized_opts= 742ac_unrecognized_opts=
716ac_unrecognized_sep= 743ac_unrecognized_sep=
717# The variables have the same names as the options, with 744# The variables have the same names as the options, with
718# dashes changed to underlines. 745# dashes changed to underlines.
719cache_file=/dev/null 746cache_file=/dev/null
720exec_prefix=NONE 747exec_prefix=NONE
721no_create= 748no_create=
722no_recursion= 749no_recursion=
@@ -735,26 +762,27 @@ x_libraries=NONE @@ -735,26 +762,27 @@ x_libraries=NONE
735# These are left unexpanded so users can "make install exec_prefix=/foo" 762# These are left unexpanded so users can "make install exec_prefix=/foo"
736# and all the variables that are supposed to be based on exec_prefix 763# and all the variables that are supposed to be based on exec_prefix
737# by default will actually change. 764# by default will actually change.
738# Use braces instead of parens because sh, perl, etc. also accept them. 765# Use braces instead of parens because sh, perl, etc. also accept them.
739# (The list follows the same order as the GNU Coding Standards.) 766# (The list follows the same order as the GNU Coding Standards.)
740bindir='${exec_prefix}/bin' 767bindir='${exec_prefix}/bin'
741sbindir='${exec_prefix}/sbin' 768sbindir='${exec_prefix}/sbin'
742libexecdir='${exec_prefix}/libexec' 769libexecdir='${exec_prefix}/libexec'
743datarootdir='${prefix}/share' 770datarootdir='${prefix}/share'
744datadir='${datarootdir}' 771datadir='${datarootdir}'
745sysconfdir='${prefix}/etc' 772sysconfdir='${prefix}/etc'
746sharedstatedir='${prefix}/com' 773sharedstatedir='${prefix}/com'
747localstatedir='${prefix}/var' 774localstatedir='${prefix}/var'
 775runstatedir='${localstatedir}/run'
748includedir='${prefix}/include' 776includedir='${prefix}/include'
749oldincludedir='/usr/include' 777oldincludedir='/usr/include'
750docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 778docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
751infodir='${datarootdir}/info' 779infodir='${datarootdir}/info'
752htmldir='${docdir}' 780htmldir='${docdir}'
753dvidir='${docdir}' 781dvidir='${docdir}'
754pdfdir='${docdir}' 782pdfdir='${docdir}'
755psdir='${docdir}' 783psdir='${docdir}'
756libdir='${exec_prefix}/lib' 784libdir='${exec_prefix}/lib'
757localedir='${datarootdir}/locale' 785localedir='${datarootdir}/locale'
758mandir='${datarootdir}/man' 786mandir='${datarootdir}/man'
759 787
760ac_prev= 788ac_prev=
@@ -764,28 +792,26 @@ do @@ -764,28 +792,26 @@ do
764 # If the previous option needs an argument, assign it. 792 # If the previous option needs an argument, assign it.
765 if test -n "$ac_prev"; then 793 if test -n "$ac_prev"; then
766 eval $ac_prev=\$ac_option 794 eval $ac_prev=\$ac_option
767 ac_prev= 795 ac_prev=
768 continue 796 continue
769 fi 797 fi
770 798
771 case $ac_option in 799 case $ac_option in
772 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 800 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
773 *=) ac_optarg= ;; 801 *=) ac_optarg= ;;
774 *) ac_optarg=yes ;; 802 *) ac_optarg=yes ;;
775 esac 803 esac
776 804
777 # Accept the important Cygnus configure options, so we can diagnose typos. 
778 
779 case $ac_dashdash$ac_option in 805 case $ac_dashdash$ac_option in
780 --) 806 --)
781 ac_dashdash=yes ;; 807 ac_dashdash=yes ;;
782 808
783 -bindir | --bindir | --bindi | --bind | --bin | --bi) 809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
784 ac_prev=bindir ;; 810 ac_prev=bindir ;;
785 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
786 bindir=$ac_optarg ;; 812 bindir=$ac_optarg ;;
787 813
788 -build | --build | --buil | --bui | --bu) 814 -build | --build | --buil | --bui | --bu)
789 ac_prev=build_alias ;; 815 ac_prev=build_alias ;;
790 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
791 build_alias=$ac_optarg ;; 817 build_alias=$ac_optarg ;;
@@ -806,55 +832,55 @@ do @@ -806,55 +832,55 @@ do
806 datadir=$ac_optarg ;; 832 datadir=$ac_optarg ;;
807 833
808 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
809 | --dataroo | --dataro | --datar) 835 | --dataroo | --dataro | --datar)
810 ac_prev=datarootdir ;; 836 ac_prev=datarootdir ;;
811 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
812 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
813 datarootdir=$ac_optarg ;; 839 datarootdir=$ac_optarg ;;
814 840
815 -disable-* | --disable-*) 841 -disable-* | --disable-*)
816 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 842 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
817 # Reject names that are not valid shell variable names. 843 # Reject names that are not valid shell variable names.
818 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 844 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
819 as_fn_error $? "invalid feature name: $ac_useropt" 845 as_fn_error $? "invalid feature name: \`$ac_useropt'"
820 ac_useropt_orig=$ac_useropt 846 ac_useropt_orig=$ac_useropt
821 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 847 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
822 case $ac_user_opts in 848 case $ac_user_opts in
823 *" 849 *"
824"enable_$ac_useropt" 850"enable_$ac_useropt"
825"*) ;; 851"*) ;;
826 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 852 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
827 ac_unrecognized_sep=', ';; 853 ac_unrecognized_sep=', ';;
828 esac 854 esac
829 eval enable_$ac_useropt=no ;; 855 eval enable_$ac_useropt=no ;;
830 856
831 -docdir | --docdir | --docdi | --doc | --do) 857 -docdir | --docdir | --docdi | --doc | --do)
832 ac_prev=docdir ;; 858 ac_prev=docdir ;;
833 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 859 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
834 docdir=$ac_optarg ;; 860 docdir=$ac_optarg ;;
835 861
836 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 862 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
837 ac_prev=dvidir ;; 863 ac_prev=dvidir ;;
838 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 864 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
839 dvidir=$ac_optarg ;; 865 dvidir=$ac_optarg ;;
840 866
841 -enable-* | --enable-*) 867 -enable-* | --enable-*)
842 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 868 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
843 # Reject names that are not valid shell variable names. 869 # Reject names that are not valid shell variable names.
844 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
845 as_fn_error $? "invalid feature name: $ac_useropt" 871 as_fn_error $? "invalid feature name: \`$ac_useropt'"
846 ac_useropt_orig=$ac_useropt 872 ac_useropt_orig=$ac_useropt
847 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 873 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
848 case $ac_user_opts in 874 case $ac_user_opts in
849 *" 875 *"
850"enable_$ac_useropt" 876"enable_$ac_useropt"
851"*) ;; 877"*) ;;
852 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
853 ac_unrecognized_sep=', ';; 879 ac_unrecognized_sep=', ';;
854 esac 880 esac
855 eval enable_$ac_useropt=\$ac_optarg ;; 881 eval enable_$ac_useropt=\$ac_optarg ;;
856 882
857 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 883 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
858 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 884 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
859 | --exec | --exe | --ex) 885 | --exec | --exe | --ex)
860 ac_prev=exec_prefix ;; 886 ac_prev=exec_prefix ;;
@@ -987,26 +1013,35 @@ do @@ -987,26 +1013,35 @@ do
987 ac_prev=pdfdir ;; 1013 ac_prev=pdfdir ;;
988 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1014 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
989 pdfdir=$ac_optarg ;; 1015 pdfdir=$ac_optarg ;;
990 1016
991 -psdir | --psdir | --psdi | --psd | --ps) 1017 -psdir | --psdir | --psdi | --psd | --ps)
992 ac_prev=psdir ;; 1018 ac_prev=psdir ;;
993 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1019 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
994 psdir=$ac_optarg ;; 1020 psdir=$ac_optarg ;;
995 1021
996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
997 | -silent | --silent | --silen | --sile | --sil) 1023 | -silent | --silent | --silen | --sile | --sil)
998 silent=yes ;; 1024 silent=yes ;;
999 1025
 1026 -runstatedir | --runstatedir | --runstatedi | --runstated \
 1027 | --runstate | --runstat | --runsta | --runst | --runs \
 1028 | --run | --ru | --r)
 1029 ac_prev=runstatedir ;;
 1030 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
 1031 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
 1032 | --run=* | --ru=* | --r=*)
 1033 runstatedir=$ac_optarg ;;
 1034
1000 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1035 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1001 ac_prev=sbindir ;; 1036 ac_prev=sbindir ;;
1002 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1037 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1003 | --sbi=* | --sb=*) 1038 | --sbi=* | --sb=*)
1004 sbindir=$ac_optarg ;; 1039 sbindir=$ac_optarg ;;
1005 1040
1006 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1041 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1007 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1042 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1008 | --sharedst | --shareds | --shared | --share | --shar \ 1043 | --sharedst | --shareds | --shared | --share | --shar \
1009 | --sha | --sh) 1044 | --sha | --sh)
1010 ac_prev=sharedstatedir ;; 1045 ac_prev=sharedstatedir ;;
1011 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1046 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1012 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1047 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
@@ -1036,45 +1071,45 @@ do @@ -1036,45 +1071,45 @@ do
1036 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1071 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1037 target_alias=$ac_optarg ;; 1072 target_alias=$ac_optarg ;;
1038 1073
1039 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1074 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1040 verbose=yes ;; 1075 verbose=yes ;;
1041 1076
1042 -version | --version | --versio | --versi | --vers | -V) 1077 -version | --version | --versio | --versi | --vers | -V)
1043 ac_init_version=: ;; 1078 ac_init_version=: ;;
1044 1079
1045 -with-* | --with-*) 1080 -with-* | --with-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1081 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names. 1082 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error $? "invalid package name: $ac_useropt" 1084 as_fn_error $? "invalid package name: \`$ac_useropt'"
1050 ac_useropt_orig=$ac_useropt 1085 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1086 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in 1087 case $ac_user_opts in
1053 *" 1088 *"
1054"with_$ac_useropt" 1089"with_$ac_useropt"
1055"*) ;; 1090"*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';; 1092 ac_unrecognized_sep=', ';;
1058 esac 1093 esac
1059 eval with_$ac_useropt=\$ac_optarg ;; 1094 eval with_$ac_useropt=\$ac_optarg ;;
1060 1095
1061 -without-* | --without-*) 1096 -without-* | --without-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1097 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1063 # Reject names that are not valid shell variable names. 1098 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error $? "invalid package name: $ac_useropt" 1100 as_fn_error $? "invalid package name: \`$ac_useropt'"
1066 ac_useropt_orig=$ac_useropt 1101 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1102 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in 1103 case $ac_user_opts in
1069 *" 1104 *"
1070"with_$ac_useropt" 1105"with_$ac_useropt"
1071"*) ;; 1106"*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';; 1108 ac_unrecognized_sep=', ';;
1074 esac 1109 esac
1075 eval with_$ac_useropt=no ;; 1110 eval with_$ac_useropt=no ;;
1076 1111
1077 --x) 1112 --x)
1078 # Obsolete; use --with-x. 1113 # Obsolete; use --with-x.
1079 with_x=yes ;; 1114 with_x=yes ;;
1080 1115
@@ -1098,53 +1133,53 @@ Try \`$0 --help' for more information" @@ -1098,53 +1133,53 @@ Try \`$0 --help' for more information"
1098 1133
1099 *=*) 1134 *=*)
1100 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1135 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1101 # Reject names that are not valid shell variable names. 1136 # Reject names that are not valid shell variable names.
1102 case $ac_envvar in #( 1137 case $ac_envvar in #(
1103 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1138 '' | [0-9]* | *[!_$as_cr_alnum]* )
1104 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1139 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1105 esac 1140 esac
1106 eval $ac_envvar=\$ac_optarg 1141 eval $ac_envvar=\$ac_optarg
1107 export $ac_envvar ;; 1142 export $ac_envvar ;;
1108 1143
1109 *) 1144 *)
1110 # FIXME: should be removed in autoconf 3.0. 1145 # FIXME: should be removed in autoconf 3.0.
1111 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1146 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1112 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1147 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1148 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1114 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1149 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1115 ;; 1150 ;;
1116 1151
1117 esac 1152 esac
1118done 1153done
1119 1154
1120if test -n "$ac_prev"; then 1155if test -n "$ac_prev"; then
1121 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1156 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1122 as_fn_error $? "missing argument to $ac_option" 1157 as_fn_error $? "missing argument to $ac_option"
1123fi 1158fi
1124 1159
1125if test -n "$ac_unrecognized_opts"; then 1160if test -n "$ac_unrecognized_opts"; then
1126 case $enable_option_checking in 1161 case $enable_option_checking in
1127 no) ;; 1162 no) ;;
1128 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1163 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1129 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1164 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1130 esac 1165 esac
1131fi 1166fi
1132 1167
1133# Check all directory arguments for consistency. 1168# Check all directory arguments for consistency.
1134for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1169for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \ 1170 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1171 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir 1172 libdir localedir mandir runstatedir
1138do 1173do
1139 eval ac_val=\$$ac_var 1174 eval ac_val=\$$ac_var
1140 # Remove trailing slashes. 1175 # Remove trailing slashes.
1141 case $ac_val in 1176 case $ac_val in
1142 */ ) 1177 */ )
1143 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1178 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1144 eval $ac_var=\$ac_val;; 1179 eval $ac_var=\$ac_val;;
1145 esac 1180 esac
1146 # Be sure to have absolute directory names. 1181 # Be sure to have absolute directory names.
1147 case $ac_val in 1182 case $ac_val in
1148 [\\/$]* | ?:[\\/]* ) continue;; 1183 [\\/$]* | ?:[\\/]* ) continue;;
1149 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1184 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1150 esac 1185 esac
@@ -1180,27 +1215,27 @@ ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .`  @@ -1180,27 +1215,27 @@ ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .`
1180test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1215test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1181 as_fn_error $? "pwd does not report name of working directory" 1216 as_fn_error $? "pwd does not report name of working directory"
1182 1217
1183 1218
1184# Find the source files, if location was not specified. 1219# Find the source files, if location was not specified.
1185if test -z "$srcdir"; then 1220if test -z "$srcdir"; then
1186 ac_srcdir_defaulted=yes 1221 ac_srcdir_defaulted=yes
1187 # Try the directory containing this script, then the parent directory. 1222 # Try the directory containing this script, then the parent directory.
1188 ac_confdir=`$as_dirname -- "$as_myself" || 1223 ac_confdir=`$as_dirname -- "$as_myself" ||
1189$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1224$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$as_myself" : 'X\(//\)[^/]' \| \ 1225 X"$as_myself" : 'X\(//\)[^/]' \| \
1191 X"$as_myself" : 'X\(//\)$' \| \ 1226 X"$as_myself" : 'X\(//\)$' \| \
1192 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1193$as_echo X"$as_myself" | 1228printf "%s\n" X"$as_myself" |
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1195 s//\1/ 1230 s//\1/
1196 q 1231 q
1197 } 1232 }
1198 /^X\(\/\/\)[^/].*/{ 1233 /^X\(\/\/\)[^/].*/{
1199 s//\1/ 1234 s//\1/
1200 q 1235 q
1201 } 1236 }
1202 /^X\(\/\/\)$/{ 1237 /^X\(\/\/\)$/{
1203 s//\1/ 1238 s//\1/
1204 q 1239 q
1205 } 1240 }
1206 /^X\(\/\).*/{ 1241 /^X\(\/\).*/{
@@ -1277,26 +1312,27 @@ By default, \`make install' will install @@ -1277,26 +1312,27 @@ By default, \`make install' will install
1277\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1312\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1313an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279for instance \`--prefix=\$HOME'. 1314for instance \`--prefix=\$HOME'.
1280 1315
1281For better control, use the options below. 1316For better control, use the options below.
1282 1317
1283Fine tuning of the installation directories: 1318Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin] 1319 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin] 1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec] 1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
 1325 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1290 --libdir=DIR object code libraries [EPREFIX/lib] 1326 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include] 1327 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1328 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1329 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1330 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info] 1331 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1332 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man] 1333 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/libnbcompat] 1334 --docdir=DIR documentation root [DATAROOTDIR/doc/libnbcompat]
1299 --htmldir=DIR html documentation [DOCDIR] 1335 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR] 1336 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR] 1337 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR] 1338 --psdir=DIR ps documentation [DOCDIR]
@@ -1326,50 +1362,49 @@ Optional Features: @@ -1326,50 +1362,49 @@ Optional Features:
1326 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1327 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1328 --enable-db include DB implementation 1364 --enable-db include DB implementation
1329 --enable-bsd-getopt force use of BSDish getopt implementation 1365 --enable-bsd-getopt force use of BSDish getopt implementation
1330 1366
1331Some influential environment variables: 1367Some influential environment variables:
1332 CC C compiler command 1368 CC C compiler command
1333 CFLAGS C compiler flags 1369 CFLAGS C compiler flags
1334 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1370 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1335 nonstandard directory <lib dir> 1371 nonstandard directory <lib dir>
1336 LIBS libraries to pass to the linker, e.g. -l<library> 1372 LIBS libraries to pass to the linker, e.g. -l<library>
1337 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1373 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1338 you have headers in a nonstandard directory <include dir> 1374 you have headers in a nonstandard directory <include dir>
1339 CPP C preprocessor 
1340 1375
1341Use these variables to override the choices made by `configure' or to help 1376Use these variables to override the choices made by `configure' or to help
1342it to find libraries and programs with nonstandard names/locations. 1377it to find libraries and programs with nonstandard names/locations.
1343 1378
1344Report bugs to <joerg@NetBSD.org>. 1379Report bugs to <joerg@NetBSD.org>.
1345_ACEOF 1380_ACEOF
1346ac_status=$? 1381ac_status=$?
1347fi 1382fi
1348 1383
1349if test "$ac_init_help" = "recursive"; then 1384if test "$ac_init_help" = "recursive"; then
1350 # If there are subdirs, report their specific --help. 1385 # If there are subdirs, report their specific --help.
1351 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1386 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1352 test -d "$ac_dir" || 1387 test -d "$ac_dir" ||
1353 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1388 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1354 continue 1389 continue
1355 ac_builddir=. 1390 ac_builddir=.
1356 1391
1357case "$ac_dir" in 1392case "$ac_dir" in
1358.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1393.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359*) 1394*)
1360 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1395 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1361 # A ".." for each directory in $ac_dir_suffix. 1396 # A ".." for each directory in $ac_dir_suffix.
1362 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1397 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1363 case $ac_top_builddir_sub in 1398 case $ac_top_builddir_sub in
1364 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1399 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1365 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1400 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1366 esac ;; 1401 esac ;;
1367esac 1402esac
1368ac_abs_top_builddir=$ac_pwd 1403ac_abs_top_builddir=$ac_pwd
1369ac_abs_builddir=$ac_pwd$ac_dir_suffix 1404ac_abs_builddir=$ac_pwd$ac_dir_suffix
1370# for backward compatibility: 1405# for backward compatibility:
1371ac_top_builddir=$ac_top_build_prefix 1406ac_top_builddir=$ac_top_build_prefix
1372 1407
1373case $srcdir in 1408case $srcdir in
1374 .) # We are building in place. 1409 .) # We are building in place.
1375 ac_srcdir=. 1410 ac_srcdir=.
@@ -1377,780 +1412,674 @@ case $srcdir in @@ -1377,780 +1412,674 @@ case $srcdir in
1377 ac_abs_top_srcdir=$ac_pwd ;; 1412 ac_abs_top_srcdir=$ac_pwd ;;
1378 [\\/]* | ?:[\\/]* ) # Absolute name. 1413 [\\/]* | ?:[\\/]* ) # Absolute name.
1379 ac_srcdir=$srcdir$ac_dir_suffix; 1414 ac_srcdir=$srcdir$ac_dir_suffix;
1380 ac_top_srcdir=$srcdir 1415 ac_top_srcdir=$srcdir
1381 ac_abs_top_srcdir=$srcdir ;; 1416 ac_abs_top_srcdir=$srcdir ;;
1382 *) # Relative name. 1417 *) # Relative name.
1383 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1418 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1384 ac_top_srcdir=$ac_top_build_prefix$srcdir 1419 ac_top_srcdir=$ac_top_build_prefix$srcdir
1385 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1420 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1386esac 1421esac
1387ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1422ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1388 1423
1389 cd "$ac_dir" || { ac_status=$?; continue; } 1424 cd "$ac_dir" || { ac_status=$?; continue; }
1390 # Check for guested configure. 1425 # Check for configure.gnu first; this name is used for a wrapper for
 1426 # Metaconfig's "Configure" on case-insensitive file systems.
1391 if test -f "$ac_srcdir/configure.gnu"; then 1427 if test -f "$ac_srcdir/configure.gnu"; then
1392 echo && 1428 echo &&
1393 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1394 elif test -f "$ac_srcdir/configure"; then 1430 elif test -f "$ac_srcdir/configure"; then
1395 echo && 1431 echo &&
1396 $SHELL "$ac_srcdir/configure" --help=recursive 1432 $SHELL "$ac_srcdir/configure" --help=recursive
1397 else 1433 else
1398 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1434 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1399 fi || ac_status=$? 1435 fi || ac_status=$?
1400 cd "$ac_pwd" || { ac_status=$?; break; } 1436 cd "$ac_pwd" || { ac_status=$?; break; }
1401 done 1437 done
1402fi 1438fi
1403 1439
1404test -n "$ac_init_help" && exit $ac_status 1440test -n "$ac_init_help" && exit $ac_status
1405if $ac_init_version; then 1441if $ac_init_version; then
1406 cat <<\_ACEOF 1442 cat <<\_ACEOF
1407libnbcompat configure 20190708 1443libnbcompat configure 20190708
1408generated by GNU Autoconf 2.69 1444generated by GNU Autoconf 2.71
1409 1445
1410Copyright (C) 2012 Free Software Foundation, Inc. 1446Copyright (C) 2021 Free Software Foundation, Inc.
1411This configure script is free software; the Free Software Foundation 1447This configure script is free software; the Free Software Foundation
1412gives unlimited permission to copy, distribute and modify it. 1448gives unlimited permission to copy, distribute and modify it.
1413_ACEOF 1449_ACEOF
1414 exit 1450 exit
1415fi 1451fi
1416 1452
1417## ------------------------ ## 1453## ------------------------ ##
1418## Autoconf initialization. ## 1454## Autoconf initialization. ##
1419## ------------------------ ## 1455## ------------------------ ##
1420 1456
1421# ac_fn_c_try_compile LINENO 1457# ac_fn_c_try_compile LINENO
1422# -------------------------- 1458# --------------------------
1423# Try to compile conftest.$ac_ext, and return whether this succeeded. 1459# Try to compile conftest.$ac_ext, and return whether this succeeded.
1424ac_fn_c_try_compile () 1460ac_fn_c_try_compile ()
1425{ 1461{
1426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1427 rm -f conftest.$ac_objext 1463 rm -f conftest.$ac_objext conftest.beam
1428 if { { ac_try="$ac_compile" 1464 if { { ac_try="$ac_compile"
1429case "(($ac_try" in 1465case "(($ac_try" in
1430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1431 *) ac_try_echo=$ac_try;; 1467 *) ac_try_echo=$ac_try;;
1432esac 1468esac
1433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1434$as_echo "$ac_try_echo"; } >&5 1470printf "%s\n" "$ac_try_echo"; } >&5
1435 (eval "$ac_compile") 2>conftest.err 1471 (eval "$ac_compile") 2>conftest.err
1436 ac_status=$? 1472 ac_status=$?
1437 if test -s conftest.err; then 1473 if test -s conftest.err; then
1438 grep -v '^ *+' conftest.err >conftest.er1 1474 grep -v '^ *+' conftest.err >conftest.er1
1439 cat conftest.er1 >&5 1475 cat conftest.er1 >&5
1440 mv -f conftest.er1 conftest.err 1476 mv -f conftest.er1 conftest.err
1441 fi 1477 fi
1442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1443 test $ac_status = 0; } && { 1479 test $ac_status = 0; } && {
1444 test -z "$ac_c_werror_flag" || 1480 test -z "$ac_c_werror_flag" ||
1445 test ! -s conftest.err 1481 test ! -s conftest.err
1446 } && test -s conftest.$ac_objext; then : 1482 } && test -s conftest.$ac_objext
 1483then :
1447 ac_retval=0 1484 ac_retval=0
1448else 1485else $as_nop
1449 $as_echo "$as_me: failed program was:" >&5 1486 printf "%s\n" "$as_me: failed program was:" >&5
1450sed 's/^/| /' conftest.$ac_ext >&5 1487sed 's/^/| /' conftest.$ac_ext >&5
1451 1488
1452 ac_retval=1 1489 ac_retval=1
1453fi 1490fi
1454 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1455 as_fn_set_status $ac_retval 1492 as_fn_set_status $ac_retval
1456 1493
1457} # ac_fn_c_try_compile 1494} # ac_fn_c_try_compile
1458 1495
1459# ac_fn_c_try_cpp LINENO 
1460# ---------------------- 
1461# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 
1462ac_fn_c_try_cpp () 
1463{ 
1464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 
1465 if { { ac_try="$ac_cpp conftest.$ac_ext" 
1466case "(($ac_try" in 
1467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
1468 *) ac_try_echo=$ac_try;; 
1469esac 
1470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 
1471$as_echo "$ac_try_echo"; } >&5 
1472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 
1473 ac_status=$? 
1474 if test -s conftest.err; then 
1475 grep -v '^ *+' conftest.err >conftest.er1 
1476 cat conftest.er1 >&5 
1477 mv -f conftest.er1 conftest.err 
1478 fi 
1479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 
1480 test $ac_status = 0; } > conftest.i && { 
1481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 
1482 test ! -s conftest.err 
1483 }; then : 
1484 ac_retval=0 
1485else 
1486 $as_echo "$as_me: failed program was:" >&5 
1487sed 's/^/| /' conftest.$ac_ext >&5 
1488 
1489 ac_retval=1 
1490fi 
1491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 
1492 as_fn_set_status $ac_retval 
1493 
1494} # ac_fn_c_try_cpp 
1495 
1496# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 
1497# ------------------------------------------------------- 
1498# Tests whether HEADER exists, giving a warning if it cannot be compiled using 
1499# the include files in INCLUDES and setting the cache variable VAR 
1500# accordingly. 
1501ac_fn_c_check_header_mongrel () 
1502{ 
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 
1504 if eval \${$3+:} false; then : 
1505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 
1506$as_echo_n "checking for $2... " >&6; } 
1507if eval \${$3+:} false; then : 
1508 $as_echo_n "(cached) " >&6 
1509fi 
1510eval ac_res=\$$3 
1511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 
1512$as_echo "$ac_res" >&6; } 
1513else 
1514 # Is the header compilable? 
1515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 
1516$as_echo_n "checking $2 usability... " >&6; } 
1517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
1518/* end confdefs.h. */ 
1519$4 
1520#include <$2> 
1521_ACEOF 
1522if ac_fn_c_try_compile "$LINENO"; then : 
1523 ac_header_compiler=yes 
1524else 
1525 ac_header_compiler=no 
1526fi 
1527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
1528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 
1529$as_echo "$ac_header_compiler" >&6; } 
1530 
1531# Is the header present? 
1532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 
1533$as_echo_n "checking $2 presence... " >&6; } 
1534cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
1535/* end confdefs.h. */ 
1536#include <$2> 
1537_ACEOF 
1538if ac_fn_c_try_cpp "$LINENO"; then : 
1539 ac_header_preproc=yes 
1540else 
1541 ac_header_preproc=no 
1542fi 
1543rm -f conftest.err conftest.i conftest.$ac_ext 
1544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 
1545$as_echo "$ac_header_preproc" >&6; } 
1546 
1547# So? What about this header? 
1548case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 
1549 yes:no: ) 
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 
1551$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 
1553$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 
1554 ;; 
1555 no:yes:* ) 
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 
1557$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 
1559$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 
1561$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 
1563$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 
1565$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 
1566( $as_echo "## ------------------------------- ## 
1567## Report this to joerg@NetBSD.org ## 
1568## ------------------------------- ##" 
1569 ) | sed "s/^/$as_me: WARNING: /" >&2 
1570 ;; 
1571esac 
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 
1573$as_echo_n "checking for $2... " >&6; } 
1574if eval \${$3+:} false; then : 
1575 $as_echo_n "(cached) " >&6 
1576else 
1577 eval "$3=\$ac_header_compiler" 
1578fi 
1579eval ac_res=\$$3 
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 
1581$as_echo "$ac_res" >&6; } 
1582fi 
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 
1584 
1585} # ac_fn_c_check_header_mongrel 
1586 
1587# ac_fn_c_try_run LINENO 
1588# ---------------------- 
1589# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 
1590# that executables *can* be run. 
1591ac_fn_c_try_run () 
1592{ 
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 
1594 if { { ac_try="$ac_link" 
1595case "(($ac_try" in 
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
1597 *) ac_try_echo=$ac_try;; 
1598esac 
1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 
1600$as_echo "$ac_try_echo"; } >&5 
1601 (eval "$ac_link") 2>&5 
1602 ac_status=$? 
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 
1604 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 
1605 { { case "(($ac_try" in 
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
1607 *) ac_try_echo=$ac_try;; 
1608esac 
1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 
1610$as_echo "$ac_try_echo"; } >&5 
1611 (eval "$ac_try") 2>&5 
1612 ac_status=$? 
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 
1614 test $ac_status = 0; }; }; then : 
1615 ac_retval=0 
1616else 
1617 $as_echo "$as_me: program exited with status $ac_status" >&5 
1618 $as_echo "$as_me: failed program was:" >&5 
1619sed 's/^/| /' conftest.$ac_ext >&5 
1620 
1621 ac_retval=$ac_status 
1622fi 
1623 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 
1625 as_fn_set_status $ac_retval 
1626 
1627} # ac_fn_c_try_run 
1628 
1629# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1496# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1630# ------------------------------------------------------- 1497# -------------------------------------------------------
1631# Tests whether HEADER exists and can be compiled using the include files in 1498# Tests whether HEADER exists and can be compiled using the include files in
1632# INCLUDES, setting the cache variable VAR accordingly. 1499# INCLUDES, setting the cache variable VAR accordingly.
1633ac_fn_c_check_header_compile () 1500ac_fn_c_check_header_compile ()
1634{ 1501{
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637$as_echo_n "checking for $2... " >&6; } 1504printf %s "checking for $2... " >&6; }
1638if eval \${$3+:} false; then : 1505if eval test \${$3+y}
1639 $as_echo_n "(cached) " >&6 1506then :
1640else 1507 printf %s "(cached) " >&6
 1508else $as_nop
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642/* end confdefs.h. */ 1510/* end confdefs.h. */
1643$4 1511$4
1644#include <$2> 1512#include <$2>
1645_ACEOF 1513_ACEOF
1646if ac_fn_c_try_compile "$LINENO"; then : 1514if ac_fn_c_try_compile "$LINENO"
 1515then :
1647 eval "$3=yes" 1516 eval "$3=yes"
1648else 1517else $as_nop
1649 eval "$3=no" 1518 eval "$3=no"
1650fi 1519fi
1651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1652fi 1521fi
1653eval ac_res=\$$3 1522eval ac_res=\$$3
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655$as_echo "$ac_res" >&6; } 1524printf "%s\n" "$ac_res" >&6; }
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 1526
1658} # ac_fn_c_check_header_compile 1527} # ac_fn_c_check_header_compile
1659 1528
1660# ac_fn_c_try_link LINENO 1529# ac_fn_c_try_link LINENO
1661# ----------------------- 1530# -----------------------
1662# Try to link conftest.$ac_ext, and return whether this succeeded. 1531# Try to link conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_link () 1532ac_fn_c_try_link ()
1664{ 1533{
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext conftest$ac_exeext 1535 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1667 if { { ac_try="$ac_link" 1536 if { { ac_try="$ac_link"
1668case "(($ac_try" in 1537case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;; 1539 *) ac_try_echo=$ac_try;;
1671esac 1540esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5 1542printf "%s\n" "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err 1543 (eval "$ac_link") 2>conftest.err
1675 ac_status=$? 1544 ac_status=$?
1676 if test -s conftest.err; then 1545 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1 1546 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5 1547 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err 1548 mv -f conftest.er1 conftest.err
1680 fi 1549 fi
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && { 1551 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" || 1552 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err 1553 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && { 1554 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes || 1555 test "$cross_compiling" = yes ||
1687 test -x conftest$ac_exeext 1556 test -x conftest$ac_exeext
1688 }; then : 1557 }
 1558then :
1689 ac_retval=0 1559 ac_retval=0
1690else 1560else $as_nop
1691 $as_echo "$as_me: failed program was:" >&5 1561 printf "%s\n" "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5 1562sed 's/^/| /' conftest.$ac_ext >&5
1693 1563
1694 ac_retval=1 1564 ac_retval=1
1695fi 1565fi
1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1566 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1567 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698 # interfere with the next link command; also delete a directory that is 1568 # interfere with the next link command; also delete a directory that is
1699 # left behind by Apple's compiler. We do this before executing the actions. 1569 # left behind by Apple's compiler. We do this before executing the actions.
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1570 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval 1572 as_fn_set_status $ac_retval
1703 1573
1704} # ac_fn_c_try_link 1574} # ac_fn_c_try_link
1705 1575
1706# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1576# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1707# ------------------------------------------- 1577# -------------------------------------------
1708# Tests whether TYPE exists after having included INCLUDES, setting cache 1578# Tests whether TYPE exists after having included INCLUDES, setting cache
1709# variable VAR accordingly. 1579# variable VAR accordingly.
1710ac_fn_c_check_type () 1580ac_fn_c_check_type ()
1711{ 1581{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714$as_echo_n "checking for $2... " >&6; } 1584printf %s "checking for $2... " >&6; }
1715if eval \${$3+:} false; then : 1585if eval test \${$3+y}
1716 $as_echo_n "(cached) " >&6 1586then :
1717else 1587 printf %s "(cached) " >&6
 1588else $as_nop
1718 eval "$3=no" 1589 eval "$3=no"
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720/* end confdefs.h. */ 1591/* end confdefs.h. */
1721$4 1592$4
1722int 1593int
1723main () 1594main (void)
1724{ 1595{
1725if (sizeof ($2)) 1596if (sizeof ($2))
1726 return 0; 1597 return 0;
1727 ; 1598 ;
1728 return 0; 1599 return 0;
1729} 1600}
1730_ACEOF 1601_ACEOF
1731if ac_fn_c_try_compile "$LINENO"; then : 1602if ac_fn_c_try_compile "$LINENO"
 1603then :
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733/* end confdefs.h. */ 1605/* end confdefs.h. */
1734$4 1606$4
1735int 1607int
1736main () 1608main (void)
1737{ 1609{
1738if (sizeof (($2))) 1610if (sizeof (($2)))
1739 return 0; 1611 return 0;
1740 ; 1612 ;
1741 return 0; 1613 return 0;
1742} 1614}
1743_ACEOF 1615_ACEOF
1744if ac_fn_c_try_compile "$LINENO"; then : 1616if ac_fn_c_try_compile "$LINENO"
 1617then :
1745 1618
1746else 1619else $as_nop
1747 eval "$3=yes" 1620 eval "$3=yes"
1748fi 1621fi
1749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1750fi 1623fi
1751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1752fi 1625fi
1753eval ac_res=\$$3 1626eval ac_res=\$$3
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755$as_echo "$ac_res" >&6; } 1628printf "%s\n" "$ac_res" >&6; }
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 1630
1758} # ac_fn_c_check_type 1631} # ac_fn_c_check_type
1759 1632
1760# ac_fn_c_check_func LINENO FUNC VAR 1633# ac_fn_c_check_func LINENO FUNC VAR
1761# ---------------------------------- 1634# ----------------------------------
1762# Tests whether FUNC exists, setting the cache variable VAR accordingly 1635# Tests whether FUNC exists, setting the cache variable VAR accordingly
1763ac_fn_c_check_func () 1636ac_fn_c_check_func ()
1764{ 1637{
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767$as_echo_n "checking for $2... " >&6; } 1640printf %s "checking for $2... " >&6; }
1768if eval \${$3+:} false; then : 1641if eval test \${$3+y}
1769 $as_echo_n "(cached) " >&6 1642then :
1770else 1643 printf %s "(cached) " >&6
 1644else $as_nop
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772/* end confdefs.h. */ 1646/* end confdefs.h. */
1773/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1647/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1774 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1775#define $2 innocuous_$2 1649#define $2 innocuous_$2
1776 1650
1777/* System header to define __stub macros and hopefully few prototypes, 1651/* System header to define __stub macros and hopefully few prototypes,
1778 which can conflict with char $2 (); below. 1652 which can conflict with char $2 (); below. */
1779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 
1780 <limits.h> exists even on freestanding compilers. */ 
1781 
1782#ifdef __STDC__ 
1783# include <limits.h> 
1784#else 
1785# include <assert.h> 
1786#endif 
1787 1653
 1654#include <limits.h>
1788#undef $2 1655#undef $2
1789 1656
1790/* Override any GCC internal prototype to avoid an error. 1657/* Override any GCC internal prototype to avoid an error.
1791 Use char because int might match the return type of a GCC 1658 Use char because int might match the return type of a GCC
1792 builtin and then its argument prototype would still apply. */ 1659 builtin and then its argument prototype would still apply. */
1793#ifdef __cplusplus 1660#ifdef __cplusplus
1794extern "C" 1661extern "C"
1795#endif 1662#endif
1796char $2 (); 1663char $2 ();
1797/* The GNU C library defines this for functions which it implements 1664/* The GNU C library defines this for functions which it implements
1798 to always fail with ENOSYS. Some functions are actually named 1665 to always fail with ENOSYS. Some functions are actually named
1799 something starting with __ and the normal name is an alias. */ 1666 something starting with __ and the normal name is an alias. */
1800#if defined __stub_$2 || defined __stub___$2 1667#if defined __stub_$2 || defined __stub___$2
1801choke me 1668choke me
1802#endif 1669#endif
1803 1670
1804int 1671int
1805main () 1672main (void)
1806{ 1673{
1807return $2 (); 1674return $2 ();
1808 ; 1675 ;
1809 return 0; 1676 return 0;
1810} 1677}
1811_ACEOF 1678_ACEOF
1812if ac_fn_c_try_link "$LINENO"; then : 1679if ac_fn_c_try_link "$LINENO"
 1680then :
1813 eval "$3=yes" 1681 eval "$3=yes"
1814else 1682else $as_nop
1815 eval "$3=no" 1683 eval "$3=no"
1816fi 1684fi
1817rm -f core conftest.err conftest.$ac_objext \ 1685rm -f core conftest.err conftest.$ac_objext conftest.beam \
1818 conftest$ac_exeext conftest.$ac_ext 1686 conftest$ac_exeext conftest.$ac_ext
1819fi 1687fi
1820eval ac_res=\$$3 1688eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822$as_echo "$ac_res" >&6; } 1690printf "%s\n" "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 1692
1825} # ac_fn_c_check_func 1693} # ac_fn_c_check_func
1826 1694
1827# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1695# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1828# --------------------------------------------- 1696# ------------------------------------------------------------------
1829# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1697# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1830# accordingly. 1698# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1831ac_fn_c_check_decl () 1699ac_fn_check_decl ()
1832{ 1700{
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 as_decl_name=`echo $2|sed 's/ *(.*//'` 1702 as_decl_name=`echo $2|sed 's/ *(.*//'`
 1703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
 1704printf %s "checking whether $as_decl_name is declared... " >&6; }
 1705if eval test \${$3+y}
 1706then :
 1707 printf %s "(cached) " >&6
 1708else $as_nop
1835 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1709 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1710 eval ac_save_FLAGS=\$$6
1837$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1711 as_fn_append $6 " $5"
1838if eval \${$3+:} false; then : 
1839 $as_echo_n "(cached) " >&6 
1840else 
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842/* end confdefs.h. */ 1713/* end confdefs.h. */
1843$4 1714$4
1844int 1715int
1845main () 1716main (void)
1846{ 1717{
1847#ifndef $as_decl_name 1718#ifndef $as_decl_name
1848#ifdef __cplusplus 1719#ifdef __cplusplus
1849 (void) $as_decl_use; 1720 (void) $as_decl_use;
1850#else 1721#else
1851 (void) $as_decl_name; 1722 (void) $as_decl_name;
1852#endif 1723#endif
1853#endif 1724#endif
1854 1725
1855 ; 1726 ;
1856 return 0; 1727 return 0;
1857} 1728}
1858_ACEOF 1729_ACEOF
1859if ac_fn_c_try_compile "$LINENO"; then : 1730if ac_fn_c_try_compile "$LINENO"
 1731then :
1860 eval "$3=yes" 1732 eval "$3=yes"
1861else 1733else $as_nop
1862 eval "$3=no" 1734 eval "$3=no"
1863fi 1735fi
1864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 1737 eval $6=\$ac_save_FLAGS
 1738
1865fi 1739fi
1866eval ac_res=\$$3 1740eval ac_res=\$$3
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868$as_echo "$ac_res" >&6; } 1742printf "%s\n" "$ac_res" >&6; }
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 1744
1871} # ac_fn_c_check_decl 1745} # ac_fn_check_decl
1872 1746
1873# ac_fn_c_find_intX_t LINENO BITS VAR 1747# ac_fn_c_find_intX_t LINENO BITS VAR
1874# ----------------------------------- 1748# -----------------------------------
1875# Finds a signed integer type with width BITS, setting cache variable VAR 1749# Finds a signed integer type with width BITS, setting cache variable VAR
1876# accordingly. 1750# accordingly.
1877ac_fn_c_find_intX_t () 1751ac_fn_c_find_intX_t ()
1878{ 1752{
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 1754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1881$as_echo_n "checking for int$2_t... " >&6; } 1755printf %s "checking for int$2_t... " >&6; }
1882if eval \${$3+:} false; then : 1756if eval test \${$3+y}
1883 $as_echo_n "(cached) " >&6 1757then :
1884else 1758 printf %s "(cached) " >&6
 1759else $as_nop
1885 eval "$3=no" 1760 eval "$3=no"
1886 # Order is important - never check a type that is potentially smaller 1761 # Order is important - never check a type that is potentially smaller
1887 # than half of the expected target width. 1762 # than half of the expected target width.
1888 for ac_type in int$2_t 'int' 'long int' \ 1763 for ac_type in int$2_t 'int' 'long int' \
1889 'long long int' 'short int' 'signed char'; do 1764 'long long int' 'short int' 'signed char'; do
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891/* end confdefs.h. */ 1766/* end confdefs.h. */
1892$ac_includes_default 1767$ac_includes_default
1893 enum { N = $2 / 2 - 1 }; 1768 enum { N = $2 / 2 - 1 };
1894int 1769int
1895main () 1770main (void)
1896{ 1771{
1897static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 1772static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1898test_array [0] = 0; 1773test_array [0] = 0;
1899return test_array [0]; 1774return test_array [0];
1900 1775
1901 ; 1776 ;
1902 return 0; 1777 return 0;
1903} 1778}
1904_ACEOF 1779_ACEOF
1905if ac_fn_c_try_compile "$LINENO"; then : 1780if ac_fn_c_try_compile "$LINENO"
 1781then :
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907/* end confdefs.h. */ 1783/* end confdefs.h. */
1908$ac_includes_default 1784$ac_includes_default
1909 enum { N = $2 / 2 - 1 }; 1785 enum { N = $2 / 2 - 1 };
1910int 1786int
1911main () 1787main (void)
1912{ 1788{
1913static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 1789static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1914 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 1790 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1915test_array [0] = 0; 1791test_array [0] = 0;
1916return test_array [0]; 1792return test_array [0];
1917 1793
1918 ; 1794 ;
1919 return 0; 1795 return 0;
1920} 1796}
1921_ACEOF 1797_ACEOF
1922if ac_fn_c_try_compile "$LINENO"; then : 1798if ac_fn_c_try_compile "$LINENO"
 1799then :
1923 1800
1924else 1801else $as_nop
1925 case $ac_type in #( 1802 case $ac_type in #(
1926 int$2_t) : 1803 int$2_t) :
1927 eval "$3=yes" ;; #( 1804 eval "$3=yes" ;; #(
1928 *) : 1805 *) :
1929 eval "$3=\$ac_type" ;; 1806 eval "$3=\$ac_type" ;;
1930esac 1807esac
1931fi 1808fi
1932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1933fi 1810fi
1934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1935 if eval test \"x\$"$3"\" = x"no"; then : 1812 if eval test \"x\$"$3"\" = x"no"
 1813then :
1936 1814
1937else 1815else $as_nop
1938 break 1816 break
1939fi 1817fi
1940 done 1818 done
1941fi 1819fi
1942eval ac_res=\$$3 1820eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944$as_echo "$ac_res" >&6; } 1822printf "%s\n" "$ac_res" >&6; }
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 1824
1947} # ac_fn_c_find_intX_t 1825} # ac_fn_c_find_intX_t
1948 1826
1949# ac_fn_c_find_uintX_t LINENO BITS VAR 1827# ac_fn_c_find_uintX_t LINENO BITS VAR
1950# ------------------------------------ 1828# ------------------------------------
1951# Finds an unsigned integer type with width BITS, setting cache variable VAR 1829# Finds an unsigned integer type with width BITS, setting cache variable VAR
1952# accordingly. 1830# accordingly.
1953ac_fn_c_find_uintX_t () 1831ac_fn_c_find_uintX_t ()
1954{ 1832{
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1957$as_echo_n "checking for uint$2_t... " >&6; } 1835printf %s "checking for uint$2_t... " >&6; }
1958if eval \${$3+:} false; then : 1836if eval test \${$3+y}
1959 $as_echo_n "(cached) " >&6 1837then :
1960else 1838 printf %s "(cached) " >&6
 1839else $as_nop
1961 eval "$3=no" 1840 eval "$3=no"
1962 # Order is important - never check a type that is potentially smaller 1841 # Order is important - never check a type that is potentially smaller
1963 # than half of the expected target width. 1842 # than half of the expected target width.
1964 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1843 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1965 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1844 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967/* end confdefs.h. */ 1846/* end confdefs.h. */
1968$ac_includes_default 1847$ac_includes_default
1969int 1848int
1970main () 1849main (void)
1971{ 1850{
1972static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 1851static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1973test_array [0] = 0; 1852test_array [0] = 0;
1974return test_array [0]; 1853return test_array [0];
1975 1854
1976 ; 1855 ;
1977 return 0; 1856 return 0;
1978} 1857}
1979_ACEOF 1858_ACEOF
1980if ac_fn_c_try_compile "$LINENO"; then : 1859if ac_fn_c_try_compile "$LINENO"
 1860then :
1981 case $ac_type in #( 1861 case $ac_type in #(
1982 uint$2_t) : 1862 uint$2_t) :
1983 eval "$3=yes" ;; #( 1863 eval "$3=yes" ;; #(
1984 *) : 1864 *) :
1985 eval "$3=\$ac_type" ;; 1865 eval "$3=\$ac_type" ;;
1986esac 1866esac
1987fi 1867fi
1988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1989 if eval test \"x\$"$3"\" = x"no"; then : 1869 if eval test \"x\$"$3"\" = x"no"
 1870then :
1990 1871
1991else 1872else $as_nop
1992 break 1873 break
1993fi 1874fi
1994 done 1875 done
1995fi 1876fi
1996eval ac_res=\$$3 1877eval ac_res=\$$3
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998$as_echo "$ac_res" >&6; } 1879printf "%s\n" "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 1881
2001} # ac_fn_c_find_uintX_t 1882} # ac_fn_c_find_uintX_t
2002 1883
 1884# ac_fn_c_try_run LINENO
 1885# ----------------------
 1886# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
 1887# executables *can* be run.
 1888ac_fn_c_try_run ()
 1889{
 1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1891 if { { ac_try="$ac_link"
 1892case "(($ac_try" in
 1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1894 *) ac_try_echo=$ac_try;;
 1895esac
 1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1897printf "%s\n" "$ac_try_echo"; } >&5
 1898 (eval "$ac_link") 2>&5
 1899 ac_status=$?
 1900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1901 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 1902 { { case "(($ac_try" in
 1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1904 *) ac_try_echo=$ac_try;;
 1905esac
 1906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1907printf "%s\n" "$ac_try_echo"; } >&5
 1908 (eval "$ac_try") 2>&5
 1909 ac_status=$?
 1910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1911 test $ac_status = 0; }; }
 1912then :
 1913 ac_retval=0
 1914else $as_nop
 1915 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
 1916 printf "%s\n" "$as_me: failed program was:" >&5
 1917sed 's/^/| /' conftest.$ac_ext >&5
 1918
 1919 ac_retval=$ac_status
 1920fi
 1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1923 as_fn_set_status $ac_retval
 1924
 1925} # ac_fn_c_try_run
 1926
2003# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1927# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2004# -------------------------------------------- 1928# --------------------------------------------
2005# Tries to find the compile-time value of EXPR in a program that includes 1929# Tries to find the compile-time value of EXPR in a program that includes
2006# INCLUDES, setting VAR accordingly. Returns whether the value could be 1930# INCLUDES, setting VAR accordingly. Returns whether the value could be
2007# computed 1931# computed
2008ac_fn_c_compute_int () 1932ac_fn_c_compute_int ()
2009{ 1933{
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 if test "$cross_compiling" = yes; then 1935 if test "$cross_compiling" = yes; then
2012 # Depending upon the size, compute the lo and hi bounds. 1936 # Depending upon the size, compute the lo and hi bounds.
2013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h. */ 1938/* end confdefs.h. */
2015$4 1939$4
2016int 1940int
2017main () 1941main (void)
2018{ 1942{
2019static int test_array [1 - 2 * !(($2) >= 0)]; 1943static int test_array [1 - 2 * !(($2) >= 0)];
2020test_array [0] = 0; 1944test_array [0] = 0;
2021return test_array [0]; 1945return test_array [0];
2022 1946
2023 ; 1947 ;
2024 return 0; 1948 return 0;
2025} 1949}
2026_ACEOF 1950_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then : 1951if ac_fn_c_try_compile "$LINENO"
 1952then :
2028 ac_lo=0 ac_mid=0 1953 ac_lo=0 ac_mid=0
2029 while :; do 1954 while :; do
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h. */ 1956/* end confdefs.h. */
2032$4 1957$4
2033int 1958int
2034main () 1959main (void)
2035{ 1960{
2036static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1961static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2037test_array [0] = 0; 1962test_array [0] = 0;
2038return test_array [0]; 1963return test_array [0];
2039 1964
2040 ; 1965 ;
2041 return 0; 1966 return 0;
2042} 1967}
2043_ACEOF 1968_ACEOF
2044if ac_fn_c_try_compile "$LINENO"; then : 1969if ac_fn_c_try_compile "$LINENO"
 1970then :
2045 ac_hi=$ac_mid; break 1971 ac_hi=$ac_mid; break
2046else 1972else $as_nop
2047 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1973 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2048 if test $ac_lo -le $ac_mid; then 1974 if test $ac_lo -le $ac_mid; then
2049 ac_lo= ac_hi= 1975 ac_lo= ac_hi=
2050 break 1976 break
2051 fi 1977 fi
2052 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1978 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2053fi 1979fi
2054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2055 done 1981 done
2056else 1982else $as_nop
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h. */ 1984/* end confdefs.h. */
2059$4 1985$4
2060int 1986int
2061main () 1987main (void)
2062{ 1988{
2063static int test_array [1 - 2 * !(($2) < 0)]; 1989static int test_array [1 - 2 * !(($2) < 0)];
2064test_array [0] = 0; 1990test_array [0] = 0;
2065return test_array [0]; 1991return test_array [0];
2066 1992
2067 ; 1993 ;
2068 return 0; 1994 return 0;
2069} 1995}
2070_ACEOF 1996_ACEOF
2071if ac_fn_c_try_compile "$LINENO"; then : 1997if ac_fn_c_try_compile "$LINENO"
 1998then :
2072 ac_hi=-1 ac_mid=-1 1999 ac_hi=-1 ac_mid=-1
2073 while :; do 2000 while :; do
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075/* end confdefs.h. */ 2002/* end confdefs.h. */
2076$4 2003$4
2077int 2004int
2078main () 2005main (void)
2079{ 2006{
2080static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2007static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2081test_array [0] = 0; 2008test_array [0] = 0;
2082return test_array [0]; 2009return test_array [0];
2083 2010
2084 ; 2011 ;
2085 return 0; 2012 return 0;
2086} 2013}
2087_ACEOF 2014_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then : 2015if ac_fn_c_try_compile "$LINENO"
 2016then :
2089 ac_lo=$ac_mid; break 2017 ac_lo=$ac_mid; break
2090else 2018else $as_nop
2091 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2019 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2092 if test $ac_mid -le $ac_hi; then 2020 if test $ac_mid -le $ac_hi; then
2093 ac_lo= ac_hi= 2021 ac_lo= ac_hi=
2094 break 2022 break
2095 fi 2023 fi
2096 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2024 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2097fi 2025fi
2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2099 done 2027 done
2100else 2028else $as_nop
2101 ac_lo= ac_hi= 2029 ac_lo= ac_hi=
2102fi 2030fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2104fi 2032fi
2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2106# Binary search between lo and hi bounds. 2034# Binary search between lo and hi bounds.
2107while test "x$ac_lo" != "x$ac_hi"; do 2035while test "x$ac_lo" != "x$ac_hi"; do
2108 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2036 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110/* end confdefs.h. */ 2038/* end confdefs.h. */
2111$4 2039$4
2112int 2040int
2113main () 2041main (void)
2114{ 2042{
2115static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2043static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2116test_array [0] = 0; 2044test_array [0] = 0;
2117return test_array [0]; 2045return test_array [0];
2118 2046
2119 ; 2047 ;
2120 return 0; 2048 return 0;
2121} 2049}
2122_ACEOF 2050_ACEOF
2123if ac_fn_c_try_compile "$LINENO"; then : 2051if ac_fn_c_try_compile "$LINENO"
 2052then :
2124 ac_hi=$ac_mid 2053 ac_hi=$ac_mid
2125else 2054else $as_nop
2126 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2055 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2127fi 2056fi
2128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2129done 2058done
2130case $ac_lo in #(( 2059case $ac_lo in #((
2131?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2060?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2132'') ac_retval=1 ;; 2061'') ac_retval=1 ;;
2133esac 2062esac
2134 else 2063 else
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h. */ 2065/* end confdefs.h. */
2137$4 2066$4
2138static long int longval () { return $2; } 2067static long int longval (void) { return $2; }
2139static unsigned long int ulongval () { return $2; } 2068static unsigned long int ulongval (void) { return $2; }
2140#include <stdio.h> 2069#include <stdio.h>
2141#include <stdlib.h> 2070#include <stdlib.h>
2142int 2071int
2143main () 2072main (void)
2144{ 2073{
2145 2074
2146 FILE *f = fopen ("conftest.val", "w"); 2075 FILE *f = fopen ("conftest.val", "w");
2147 if (! f) 2076 if (! f)
2148 return 1; 2077 return 1;
2149 if (($2) < 0) 2078 if (($2) < 0)
2150 { 2079 {
2151 long int i = longval (); 2080 long int i = longval ();
2152 if (i != ($2)) 2081 if (i != ($2))
2153 return 1; 2082 return 1;
2154 fprintf (f, "%ld", i); 2083 fprintf (f, "%ld", i);
2155 } 2084 }
2156 else 2085 else
@@ -2158,105 +2087,129 @@ main () @@ -2158,105 +2087,129 @@ main ()
2158 unsigned long int i = ulongval (); 2087 unsigned long int i = ulongval ();
2159 if (i != ($2)) 2088 if (i != ($2))
2160 return 1; 2089 return 1;
2161 fprintf (f, "%lu", i); 2090 fprintf (f, "%lu", i);
2162 } 2091 }
2163 /* Do not output a trailing newline, as this causes \r\n confusion 2092 /* Do not output a trailing newline, as this causes \r\n confusion
2164 on some platforms. */ 2093 on some platforms. */
2165 return ferror (f) || fclose (f) != 0; 2094 return ferror (f) || fclose (f) != 0;
2166 2095
2167 ; 2096 ;
2168 return 0; 2097 return 0;
2169} 2098}
2170_ACEOF 2099_ACEOF
2171if ac_fn_c_try_run "$LINENO"; then : 2100if ac_fn_c_try_run "$LINENO"
 2101then :
2172 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2102 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2173else 2103else $as_nop
2174 ac_retval=1 2104 ac_retval=1
2175fi 2105fi
2176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2106rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2177 conftest.$ac_objext conftest.beam conftest.$ac_ext 2107 conftest.$ac_objext conftest.beam conftest.$ac_ext
2178rm -f conftest.val 2108rm -f conftest.val
2179 2109
2180 fi 2110 fi
2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 as_fn_set_status $ac_retval 2112 as_fn_set_status $ac_retval
2183 2113
2184} # ac_fn_c_compute_int 2114} # ac_fn_c_compute_int
2185 2115
2186# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2116# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2187# ---------------------------------------------------- 2117# ----------------------------------------------------
2188# Tries to find if the field MEMBER exists in type AGGR, after including 2118# Tries to find if the field MEMBER exists in type AGGR, after including
2189# INCLUDES, setting cache variable VAR accordingly. 2119# INCLUDES, setting cache variable VAR accordingly.
2190ac_fn_c_check_member () 2120ac_fn_c_check_member ()
2191{ 2121{
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2194$as_echo_n "checking for $2.$3... " >&6; } 2124printf %s "checking for $2.$3... " >&6; }
2195if eval \${$4+:} false; then : 2125if eval test \${$4+y}
2196 $as_echo_n "(cached) " >&6 2126then :
2197else 2127 printf %s "(cached) " >&6
 2128else $as_nop
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h. */ 2130/* end confdefs.h. */
2200$5 2131$5
2201int 2132int
2202main () 2133main (void)
2203{ 2134{
2204static $2 ac_aggr; 2135static $2 ac_aggr;
2205if (ac_aggr.$3) 2136if (ac_aggr.$3)
2206return 0; 2137return 0;
2207 ; 2138 ;
2208 return 0; 2139 return 0;
2209} 2140}
2210_ACEOF 2141_ACEOF
2211if ac_fn_c_try_compile "$LINENO"; then : 2142if ac_fn_c_try_compile "$LINENO"
 2143then :
2212 eval "$4=yes" 2144 eval "$4=yes"
2213else 2145else $as_nop
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215/* end confdefs.h. */ 2147/* end confdefs.h. */
2216$5 2148$5
2217int 2149int
2218main () 2150main (void)
2219{ 2151{
2220static $2 ac_aggr; 2152static $2 ac_aggr;
2221if (sizeof ac_aggr.$3) 2153if (sizeof ac_aggr.$3)
2222return 0; 2154return 0;
2223 ; 2155 ;
2224 return 0; 2156 return 0;
2225} 2157}
2226_ACEOF 2158_ACEOF
2227if ac_fn_c_try_compile "$LINENO"; then : 2159if ac_fn_c_try_compile "$LINENO"
 2160then :
2228 eval "$4=yes" 2161 eval "$4=yes"
2229else 2162else $as_nop
2230 eval "$4=no" 2163 eval "$4=no"
2231fi 2164fi
2232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2233fi 2166fi
2234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2235fi 2168fi
2236eval ac_res=\$$4 2169eval ac_res=\$$4
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2238$as_echo "$ac_res" >&6; } 2171printf "%s\n" "$ac_res" >&6; }
2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240 2173
2241} # ac_fn_c_check_member 2174} # ac_fn_c_check_member
 2175ac_configure_args_raw=
 2176for ac_arg
 2177do
 2178 case $ac_arg in
 2179 *\'*)
 2180 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 2181 esac
 2182 as_fn_append ac_configure_args_raw " '$ac_arg'"
 2183done
 2184
 2185case $ac_configure_args_raw in
 2186 *$as_nl*)
 2187 ac_safe_unquote= ;;
 2188 *)
 2189 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
 2190 ac_unsafe_a="$ac_unsafe_z#~"
 2191 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
 2192 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
 2193esac
 2194
2242cat >config.log <<_ACEOF 2195cat >config.log <<_ACEOF
2243This file contains any messages produced by compilers while 2196This file contains any messages produced by compilers while
2244running configure, to aid debugging if configure makes a mistake. 2197running configure, to aid debugging if configure makes a mistake.
2245 2198
2246It was created by libnbcompat $as_me 20190708, which was 2199It was created by libnbcompat $as_me 20190708, which was
2247generated by GNU Autoconf 2.69. Invocation command line was 2200generated by GNU Autoconf 2.71. Invocation command line was
2248 2201
2249 $ $0 $@ 2202 $ $0$ac_configure_args_raw
2250 2203
2251_ACEOF 2204_ACEOF
2252exec 5>>config.log 2205exec 5>>config.log
2253{ 2206{
2254cat <<_ASUNAME 2207cat <<_ASUNAME
2255## --------- ## 2208## --------- ##
2256## Platform. ## 2209## Platform. ##
2257## --------- ## 2210## --------- ##
2258 2211
2259hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2212hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2260uname -m = `(uname -m) 2>/dev/null || echo unknown` 2213uname -m = `(uname -m) 2>/dev/null || echo unknown`
2261uname -r = `(uname -r) 2>/dev/null || echo unknown` 2214uname -r = `(uname -r) 2>/dev/null || echo unknown`
2262uname -s = `(uname -s) 2>/dev/null || echo unknown` 2215uname -s = `(uname -s) 2>/dev/null || echo unknown`
@@ -2269,28 +2222,32 @@ uname -v = `(uname -v) 2>/dev/null || ec @@ -2269,28 +2222,32 @@ uname -v = `(uname -v) 2>/dev/null || ec
2269/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2222/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2270/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2223/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2271/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2224/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2272/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2225/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2273/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2226/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2274/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2227/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2275 2228
2276_ASUNAME 2229_ASUNAME
2277 2230
2278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279for as_dir in $PATH 2232for as_dir in $PATH
2280do 2233do
2281 IFS=$as_save_IFS 2234 IFS=$as_save_IFS
2282 test -z "$as_dir" && as_dir=. 2235 case $as_dir in #(((
2283 $as_echo "PATH: $as_dir" 2236 '') as_dir=./ ;;
 2237 */) ;;
 2238 *) as_dir=$as_dir/ ;;
 2239 esac
 2240 printf "%s\n" "PATH: $as_dir"
2284 done 2241 done
2285IFS=$as_save_IFS 2242IFS=$as_save_IFS
2286 2243
2287} >&5 2244} >&5
2288 2245
2289cat >&5 <<_ACEOF 2246cat >&5 <<_ACEOF
2290 2247
2291 2248
2292## ----------- ## 2249## ----------- ##
2293## Core tests. ## 2250## Core tests. ##
2294## ----------- ## 2251## ----------- ##
2295 2252
2296_ACEOF 2253_ACEOF
@@ -2305,27 +2262,27 @@ ac_configure_args= @@ -2305,27 +2262,27 @@ ac_configure_args=
2305ac_configure_args0= 2262ac_configure_args0=
2306ac_configure_args1= 2263ac_configure_args1=
2307ac_must_keep_next=false 2264ac_must_keep_next=false
2308for ac_pass in 1 2 2265for ac_pass in 1 2
2309do 2266do
2310 for ac_arg 2267 for ac_arg
2311 do 2268 do
2312 case $ac_arg in 2269 case $ac_arg in
2313 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2270 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2315 | -silent | --silent | --silen | --sile | --sil) 2272 | -silent | --silent | --silen | --sile | --sil)
2316 continue ;; 2273 continue ;;
2317 *\'*) 2274 *\'*)
2318 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2275 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2319 esac 2276 esac
2320 case $ac_pass in 2277 case $ac_pass in
2321 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2278 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2322 2) 2279 2)
2323 as_fn_append ac_configure_args1 " '$ac_arg'" 2280 as_fn_append ac_configure_args1 " '$ac_arg'"
2324 if test $ac_must_keep_next = true; then 2281 if test $ac_must_keep_next = true; then
2325 ac_must_keep_next=false # Got value, back to normal. 2282 ac_must_keep_next=false # Got value, back to normal.
2326 else 2283 else
2327 case $ac_arg in 2284 case $ac_arg in
2328 *=* | --config-cache | -C | -disable-* | --disable-* \ 2285 *=* | --config-cache | -C | -disable-* | --disable-* \
2329 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2286 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2330 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2287 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2331 | -with-* | --with-* | -without-* | --without-* | --x) 2288 | -with-* | --with-* | -without-* | --without-* | --x)
@@ -2340,2509 +2297,2994 @@ do @@ -2340,2509 +2297,2994 @@ do
2340 ;; 2297 ;;
2341 esac 2298 esac
2342 done 2299 done
2343done 2300done
2344{ ac_configure_args0=; unset ac_configure_args0;} 2301{ ac_configure_args0=; unset ac_configure_args0;}
2345{ ac_configure_args1=; unset ac_configure_args1;} 2302{ ac_configure_args1=; unset ac_configure_args1;}
2346 2303
2347# When interrupted or exit'd, cleanup temporary files, and complete 2304# When interrupted or exit'd, cleanup temporary files, and complete
2348# config.log. We remove comments because anyway the quotes in there 2305# config.log. We remove comments because anyway the quotes in there
2349# would cause problems or look ugly. 2306# would cause problems or look ugly.
2350# WARNING: Use '\'' to represent an apostrophe within the trap. 2307# WARNING: Use '\'' to represent an apostrophe within the trap.
2351# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2308# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2352trap 'exit_status=$? 2309trap 'exit_status=$?
 2310 # Sanitize IFS.
 2311 IFS=" "" $as_nl"
2353 # Save into config.log some information that might help in debugging. 2312 # Save into config.log some information that might help in debugging.
2354 { 2313 {
2355 echo 2314 echo
2356 2315
2357 $as_echo "## ---------------- ## 2316 printf "%s\n" "## ---------------- ##
2358## Cache variables. ## 2317## Cache variables. ##
2359## ---------------- ##" 2318## ---------------- ##"
2360 echo 2319 echo
2361 # The following way of writing the cache mishandles newlines in values, 2320 # The following way of writing the cache mishandles newlines in values,
2362( 2321(
2363 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2322 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2364 eval ac_val=\$$ac_var 2323 eval ac_val=\$$ac_var
2365 case $ac_val in #( 2324 case $ac_val in #(
2366 *${as_nl}*) 2325 *${as_nl}*)
2367 case $ac_var in #( 2326 case $ac_var in #(
2368 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2327 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2369$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2328printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2370 esac 2329 esac
2371 case $ac_var in #( 2330 case $ac_var in #(
2372 _ | IFS | as_nl) ;; #( 2331 _ | IFS | as_nl) ;; #(
2373 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2332 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2374 *) { eval $ac_var=; unset $ac_var;} ;; 2333 *) { eval $ac_var=; unset $ac_var;} ;;
2375 esac ;; 2334 esac ;;
2376 esac 2335 esac
2377 done 2336 done
2378 (set) 2>&1 | 2337 (set) 2>&1 |
2379 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2338 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2380 *${as_nl}ac_space=\ *) 2339 *${as_nl}ac_space=\ *)
2381 sed -n \ 2340 sed -n \
2382 "s/'\''/'\''\\\\'\'''\''/g; 2341 "s/'\''/'\''\\\\'\'''\''/g;
2383 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2384 ;; #( 2343 ;; #(
2385 *) 2344 *)
2386 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2345 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2387 ;; 2346 ;;
2388 esac | 2347 esac |
2389 sort 2348 sort
2390) 2349)
2391 echo 2350 echo
2392 2351
2393 $as_echo "## ----------------- ## 2352 printf "%s\n" "## ----------------- ##
2394## Output variables. ## 2353## Output variables. ##
2395## ----------------- ##" 2354## ----------------- ##"
2396 echo 2355 echo
2397 for ac_var in $ac_subst_vars 2356 for ac_var in $ac_subst_vars
2398 do 2357 do
2399 eval ac_val=\$$ac_var 2358 eval ac_val=\$$ac_var
2400 case $ac_val in 2359 case $ac_val in
2401 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2360 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2402 esac 2361 esac
2403 $as_echo "$ac_var='\''$ac_val'\''" 2362 printf "%s\n" "$ac_var='\''$ac_val'\''"
2404 done | sort 2363 done | sort
2405 echo 2364 echo
2406 2365
2407 if test -n "$ac_subst_files"; then 2366 if test -n "$ac_subst_files"; then
2408 $as_echo "## ------------------- ## 2367 printf "%s\n" "## ------------------- ##
2409## File substitutions. ## 2368## File substitutions. ##
2410## ------------------- ##" 2369## ------------------- ##"
2411 echo 2370 echo
2412 for ac_var in $ac_subst_files 2371 for ac_var in $ac_subst_files
2413 do 2372 do
2414 eval ac_val=\$$ac_var 2373 eval ac_val=\$$ac_var
2415 case $ac_val in 2374 case $ac_val in
2416 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2375 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417 esac 2376 esac
2418 $as_echo "$ac_var='\''$ac_val'\''" 2377 printf "%s\n" "$ac_var='\''$ac_val'\''"
2419 done | sort 2378 done | sort
2420 echo 2379 echo
2421 fi 2380 fi
2422 2381
2423 if test -s confdefs.h; then 2382 if test -s confdefs.h; then
2424 $as_echo "## ----------- ## 2383 printf "%s\n" "## ----------- ##
2425## confdefs.h. ## 2384## confdefs.h. ##
2426## ----------- ##" 2385## ----------- ##"
2427 echo 2386 echo
2428 cat confdefs.h 2387 cat confdefs.h
2429 echo 2388 echo
2430 fi 2389 fi
2431 test "$ac_signal" != 0 && 2390 test "$ac_signal" != 0 &&
2432 $as_echo "$as_me: caught signal $ac_signal" 2391 printf "%s\n" "$as_me: caught signal $ac_signal"
2433 $as_echo "$as_me: exit $exit_status" 2392 printf "%s\n" "$as_me: exit $exit_status"
2434 } >&5 2393 } >&5
2435 rm -f core *.core core.conftest.* && 2394 rm -f core *.core core.conftest.* &&
2436 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2395 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2437 exit $exit_status 2396 exit $exit_status
2438' 0 2397' 0
2439for ac_signal in 1 2 13 15; do 2398for ac_signal in 1 2 13 15; do
2440 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2399 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2441done 2400done
2442ac_signal=0 2401ac_signal=0
2443 2402
2444# confdefs.h avoids OS command line length limits that DEFS can exceed. 2403# confdefs.h avoids OS command line length limits that DEFS can exceed.
2445rm -f -r conftest* confdefs.h 2404rm -f -r conftest* confdefs.h
2446 2405
2447$as_echo "/* confdefs.h */" > confdefs.h 2406printf "%s\n" "/* confdefs.h */" > confdefs.h
2448 2407
2449# Predefined preprocessor variables. 2408# Predefined preprocessor variables.
2450 2409
2451cat >>confdefs.h <<_ACEOF 2410printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2452#define PACKAGE_NAME "$PACKAGE_NAME" 
2453_ACEOF 
2454 2411
2455cat >>confdefs.h <<_ACEOF 2412printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2456#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 
2457_ACEOF 
2458 2413
2459cat >>confdefs.h <<_ACEOF 2414printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2460#define PACKAGE_VERSION "$PACKAGE_VERSION" 
2461_ACEOF 
2462 2415
2463cat >>confdefs.h <<_ACEOF 2416printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2464#define PACKAGE_STRING "$PACKAGE_STRING" 
2465_ACEOF 
2466 2417
2467cat >>confdefs.h <<_ACEOF 2418printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2468#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 
2469_ACEOF 
2470 2419
2471cat >>confdefs.h <<_ACEOF 2420printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2472#define PACKAGE_URL "$PACKAGE_URL" 
2473_ACEOF 
2474 2421
2475 2422
2476# Let the site file select an alternate cache file if it wants to. 2423# Let the site file select an alternate cache file if it wants to.
2477# Prefer an explicitly selected file to automatically selected ones. 2424# Prefer an explicitly selected file to automatically selected ones.
2478ac_site_file1=NONE 
2479ac_site_file2=NONE 
2480if test -n "$CONFIG_SITE"; then 2425if test -n "$CONFIG_SITE"; then
2481 # We do not want a PATH search for config.site. 2426 ac_site_files="$CONFIG_SITE"
2482 case $CONFIG_SITE in #(( 
2483 -*) ac_site_file1=./$CONFIG_SITE;; 
2484 */*) ac_site_file1=$CONFIG_SITE;; 
2485 *) ac_site_file1=./$CONFIG_SITE;; 
2486 esac 
2487elif test "x$prefix" != xNONE; then 2427elif test "x$prefix" != xNONE; then
2488 ac_site_file1=$prefix/share/config.site 2428 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2489 ac_site_file2=$prefix/etc/config.site 
2490else 2429else
2491 ac_site_file1=$ac_default_prefix/share/config.site 2430 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2492 ac_site_file2=$ac_default_prefix/etc/config.site 
2493fi 2431fi
2494for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2432
 2433for ac_site_file in $ac_site_files
2495do 2434do
2496 test "x$ac_site_file" = xNONE && continue 2435 case $ac_site_file in #(
2497 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2436 */*) :
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2437 ;; #(
2499$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2438 *) :
 2439 ac_site_file=./$ac_site_file ;;
 2440esac
 2441 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
 2442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 2443printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2500 sed 's/^/| /' "$ac_site_file" >&5 2444 sed 's/^/| /' "$ac_site_file" >&5
2501 . "$ac_site_file" \ 2445 . "$ac_site_file" \
2502 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2446 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2447printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2504as_fn_error $? "failed to load site script $ac_site_file 2448as_fn_error $? "failed to load site script $ac_site_file
2505See \`config.log' for more details" "$LINENO" 5; } 2449See \`config.log' for more details" "$LINENO" 5; }
2506 fi 2450 fi
2507done 2451done
2508 2452
2509if test -r "$cache_file"; then 2453if test -r "$cache_file"; then
2510 # Some versions of bash will fail to source /dev/null (special files 2454 # Some versions of bash will fail to source /dev/null (special files
2511 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2455 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2512 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2456 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2514$as_echo "$as_me: loading cache $cache_file" >&6;} 2458printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2515 case $cache_file in 2459 case $cache_file in
2516 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2460 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2517 *) . "./$cache_file";; 2461 *) . "./$cache_file";;
2518 esac 2462 esac
2519 fi 2463 fi
2520else 2464else
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2522$as_echo "$as_me: creating cache $cache_file" >&6;} 2466printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2523 >$cache_file 2467 >$cache_file
2524fi 2468fi
2525 2469
2526# Check that the precious variables saved in the cache have kept the same 2470as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2527# value. 2471# Test code for whether the C compiler supports C89 (global declarations)
2528ac_cache_corrupted=false 2472ac_c_conftest_c89_globals='
2529for ac_var in $ac_precious_vars; do 2473/* Does the compiler advertise C89 conformance?
2530 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2474 Do not test the value of __STDC__, because some compilers set it to 0
 2475 while being otherwise adequately conformant. */
 2476#if !defined __STDC__
 2477# error "Compiler does not advertise C89 conformance"
 2478#endif
 2479
 2480#include <stddef.h>
 2481#include <stdarg.h>
 2482struct stat;
 2483/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
 2484struct buf { int x; };
 2485struct buf * (*rcsopen) (struct buf *, struct stat *, int);
 2486static char *e (p, i)
 2487 char **p;
 2488 int i;
 2489{
 2490 return p[i];
 2491}
 2492static char *f (char * (*g) (char **, int), char **p, ...)
 2493{
 2494 char *s;
 2495 va_list v;
 2496 va_start (v,p);
 2497 s = g (p, va_arg (v,int));
 2498 va_end (v);
 2499 return s;
 2500}
 2501
 2502/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
 2503 function prototypes and stuff, but not \xHH hex character constants.
 2504 These do not provoke an error unfortunately, instead are silently treated
 2505 as an "x". The following induces an error, until -std is added to get
 2506 proper ANSI mode. Curiously \x00 != x always comes out true, for an
 2507 array size at least. It is necessary to write \x00 == 0 to get something
 2508 that is true only with -std. */
 2509int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
 2510
 2511/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 2512 inside strings and character constants. */
 2513#define FOO(x) '\''x'\''
 2514int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
 2515
 2516int test (int i, double x);
 2517struct s1 {int (*f) (int a);};
 2518struct s2 {int (*f) (double a);};
 2519int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
 2520 int, int);'
 2521
 2522# Test code for whether the C compiler supports C89 (body of main).
 2523ac_c_conftest_c89_main='
 2524ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
 2525'
 2526
 2527# Test code for whether the C compiler supports C99 (global declarations)
 2528ac_c_conftest_c99_globals='
 2529// Does the compiler advertise C99 conformance?
 2530#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
 2531# error "Compiler does not advertise C99 conformance"
 2532#endif
 2533
 2534#include <stdbool.h>
 2535extern int puts (const char *);
 2536extern int printf (const char *, ...);
 2537extern int dprintf (int, const char *, ...);
 2538extern void *malloc (size_t);
 2539
 2540// Check varargs macros. These examples are taken from C99 6.10.3.5.
 2541// dprintf is used instead of fprintf to avoid needing to declare
 2542// FILE and stderr.
 2543#define debug(...) dprintf (2, __VA_ARGS__)
 2544#define showlist(...) puts (#__VA_ARGS__)
 2545#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 2546static void
 2547test_varargs_macros (void)
 2548{
 2549 int x = 1234;
 2550 int y = 5678;
 2551 debug ("Flag");
 2552 debug ("X = %d\n", x);
 2553 showlist (The first, second, and third items.);
 2554 report (x>y, "x is %d but y is %d", x, y);
 2555}
 2556
 2557// Check long long types.
 2558#define BIG64 18446744073709551615ull
 2559#define BIG32 4294967295ul
 2560#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 2561#if !BIG_OK
 2562 #error "your preprocessor is broken"
 2563#endif
 2564#if BIG_OK
 2565#else
 2566 #error "your preprocessor is broken"
 2567#endif
 2568static long long int bignum = -9223372036854775807LL;
 2569static unsigned long long int ubignum = BIG64;
 2570
 2571struct incomplete_array
 2572{
 2573 int datasize;
 2574 double data[];
 2575};
 2576
 2577struct named_init {
 2578 int number;
 2579 const wchar_t *name;
 2580 double average;
 2581};
 2582
 2583typedef const char *ccp;
 2584
 2585static inline int
 2586test_restrict (ccp restrict text)
 2587{
 2588 // See if C++-style comments work.
 2589 // Iterate through items via the restricted pointer.
 2590 // Also check for declarations in for loops.
 2591 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
 2592 continue;
 2593 return 0;
 2594}
 2595
 2596// Check varargs and va_copy.
 2597static bool
 2598test_varargs (const char *format, ...)
 2599{
 2600 va_list args;
 2601 va_start (args, format);
 2602 va_list args_copy;
 2603 va_copy (args_copy, args);
 2604
 2605 const char *str = "";
 2606 int number = 0;
 2607 float fnumber = 0;
 2608
 2609 while (*format)
 2610 {
 2611 switch (*format++)
 2612 {
 2613 case '\''s'\'': // string
 2614 str = va_arg (args_copy, const char *);
 2615 break;
 2616 case '\''d'\'': // int
 2617 number = va_arg (args_copy, int);
 2618 break;
 2619 case '\''f'\'': // float
 2620 fnumber = va_arg (args_copy, double);
 2621 break;
 2622 default:
 2623 break;
 2624 }
 2625 }
 2626 va_end (args_copy);
 2627 va_end (args);
 2628
 2629 return *str && number && fnumber;
 2630}
 2631'
 2632
 2633# Test code for whether the C compiler supports C99 (body of main).
 2634ac_c_conftest_c99_main='
 2635 // Check bool.
 2636 _Bool success = false;
 2637 success |= (argc != 0);
 2638
 2639 // Check restrict.
 2640 if (test_restrict ("String literal") == 0)
 2641 success = true;
 2642 char *restrict newvar = "Another string";
 2643
 2644 // Check varargs.
 2645 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
 2646 test_varargs_macros ();
 2647
 2648 // Check flexible array members.
 2649 struct incomplete_array *ia =
 2650 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 2651 ia->datasize = 10;
 2652 for (int i = 0; i < ia->datasize; ++i)
 2653 ia->data[i] = i * 1.234;
 2654
 2655 // Check named initializers.
 2656 struct named_init ni = {
 2657 .number = 34,
 2658 .name = L"Test wide string",
 2659 .average = 543.34343,
 2660 };
 2661
 2662 ni.number = 58;
 2663
 2664 int dynamic_array[ni.number];
 2665 dynamic_array[0] = argv[0][0];
 2666 dynamic_array[ni.number - 1] = 543;
 2667
 2668 // work around unused variable warnings
 2669 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
 2670 || dynamic_array[ni.number - 1] != 543);
 2671'
 2672
 2673# Test code for whether the C compiler supports C11 (global declarations)
 2674ac_c_conftest_c11_globals='
 2675// Does the compiler advertise C11 conformance?
 2676#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
 2677# error "Compiler does not advertise C11 conformance"
 2678#endif
 2679
 2680// Check _Alignas.
 2681char _Alignas (double) aligned_as_double;
 2682char _Alignas (0) no_special_alignment;
 2683extern char aligned_as_int;
 2684char _Alignas (0) _Alignas (int) aligned_as_int;
 2685
 2686// Check _Alignof.
 2687enum
 2688{
 2689 int_alignment = _Alignof (int),
 2690 int_array_alignment = _Alignof (int[100]),
 2691 char_alignment = _Alignof (char)
 2692};
 2693_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
 2694
 2695// Check _Noreturn.
 2696int _Noreturn does_not_return (void) { for (;;) continue; }
 2697
 2698// Check _Static_assert.
 2699struct test_static_assert
 2700{
 2701 int x;
 2702 _Static_assert (sizeof (int) <= sizeof (long int),
 2703 "_Static_assert does not work in struct");
 2704 long int y;
 2705};
 2706
 2707// Check UTF-8 literals.
 2708#define u8 syntax error!
 2709char const utf8_literal[] = u8"happens to be ASCII" "another string";
 2710
 2711// Check duplicate typedefs.
 2712typedef long *long_ptr;
 2713typedef long int *long_ptr;
 2714typedef long_ptr long_ptr;
 2715
 2716// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
 2717struct anonymous
 2718{
 2719 union {
 2720 struct { int i; int j; };
 2721 struct { int k; long int l; } w;
 2722 };
 2723 int m;
 2724} v1;
 2725'
 2726
 2727# Test code for whether the C compiler supports C11 (body of main).
 2728ac_c_conftest_c11_main='
 2729 _Static_assert ((offsetof (struct anonymous, i)
 2730 == offsetof (struct anonymous, w.k)),
 2731 "Anonymous union alignment botch");
 2732 v1.i = 2;
 2733 v1.w.k = 5;
 2734 ok |= v1.i != 5;
 2735'
 2736
 2737# Test code for whether the C compiler supports C11 (complete).
 2738ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
 2739${ac_c_conftest_c99_globals}
 2740${ac_c_conftest_c11_globals}
 2741
 2742int
 2743main (int argc, char **argv)
 2744{
 2745 int ok = 0;
 2746 ${ac_c_conftest_c89_main}
 2747 ${ac_c_conftest_c99_main}
 2748 ${ac_c_conftest_c11_main}
 2749 return ok;
 2750}
 2751"
 2752
 2753# Test code for whether the C compiler supports C99 (complete).
 2754ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
 2755${ac_c_conftest_c99_globals}
 2756
 2757int
 2758main (int argc, char **argv)
 2759{
 2760 int ok = 0;
 2761 ${ac_c_conftest_c89_main}
 2762 ${ac_c_conftest_c99_main}
 2763 return ok;
 2764}
 2765"
 2766
 2767# Test code for whether the C compiler supports C89 (complete).
 2768ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
 2769
 2770int
 2771main (int argc, char **argv)
 2772{
 2773 int ok = 0;
 2774 ${ac_c_conftest_c89_main}
 2775 return ok;
 2776}
 2777"
 2778
 2779as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
 2780as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
 2781as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
 2782as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
 2783as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
 2784as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
 2785as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
 2786as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
 2787as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
 2788as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
 2789as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
 2790as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
 2791as_fn_append ac_func_c_list " fork HAVE_FORK"
 2792as_fn_append ac_func_c_list " vfork HAVE_VFORK"
 2793
 2794# Auxiliary files required by this configure script.
 2795ac_aux_files="install-sh config.guess config.sub"
 2796
 2797# Locations in which to look for auxiliary files.
 2798ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
 2799
 2800# Search for a directory containing all of the required auxiliary files,
 2801# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
 2802# If we don't find one directory that contains all the files we need,
 2803# we report the set of missing files from the *first* directory in
 2804# $ac_aux_dir_candidates and give up.
 2805ac_missing_aux_files=""
 2806ac_first_candidate=:
 2807printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
 2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2809as_found=false
 2810for as_dir in $ac_aux_dir_candidates
 2811do
 2812 IFS=$as_save_IFS
 2813 case $as_dir in #(((
 2814 '') as_dir=./ ;;
 2815 */) ;;
 2816 *) as_dir=$as_dir/ ;;
 2817 esac
 2818 as_found=:
 2819
 2820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
 2821 ac_aux_dir_found=yes
 2822 ac_install_sh=
 2823 for ac_aux in $ac_aux_files
 2824 do
 2825 # As a special case, if "install-sh" is required, that requirement
 2826 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
 2827 # and $ac_install_sh is set appropriately for whichever one is found.
 2828 if test x"$ac_aux" = x"install-sh"
 2829 then
 2830 if test -f "${as_dir}install-sh"; then
 2831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
 2832 ac_install_sh="${as_dir}install-sh -c"
 2833 elif test -f "${as_dir}install.sh"; then
 2834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
 2835 ac_install_sh="${as_dir}install.sh -c"
 2836 elif test -f "${as_dir}shtool"; then
 2837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
 2838 ac_install_sh="${as_dir}shtool install -c"
 2839 else
 2840 ac_aux_dir_found=no
 2841 if $ac_first_candidate; then
 2842 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
 2843 else
 2844 break
 2845 fi
 2846 fi
 2847 else
 2848 if test -f "${as_dir}${ac_aux}"; then
 2849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
 2850 else
 2851 ac_aux_dir_found=no
 2852 if $ac_first_candidate; then
 2853 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
 2854 else
 2855 break
 2856 fi
 2857 fi
 2858 fi
 2859 done
 2860 if test "$ac_aux_dir_found" = yes; then
 2861 ac_aux_dir="$as_dir"
 2862 break
 2863 fi
 2864 ac_first_candidate=false
 2865
 2866 as_found=false
 2867done
 2868IFS=$as_save_IFS
 2869if $as_found
 2870then :
 2871
 2872else $as_nop
 2873 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
 2874fi
 2875
 2876
 2877# These three variables are undocumented and unsupported,
 2878# and are intended to be withdrawn in a future Autoconf release.
 2879# They can cause serious problems if a builder's source tree is in a directory
 2880# whose full name contains unusual characters.
 2881if test -f "${ac_aux_dir}config.guess"; then
 2882 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
 2883fi
 2884if test -f "${ac_aux_dir}config.sub"; then
 2885 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
 2886fi
 2887if test -f "$ac_aux_dir/configure"; then
 2888 ac_configure="$SHELL ${ac_aux_dir}configure"
 2889fi
 2890
 2891# Check that the precious variables saved in the cache have kept the same
 2892# value.
 2893ac_cache_corrupted=false
 2894for ac_var in $ac_precious_vars; do
 2895 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2531 eval ac_new_set=\$ac_env_${ac_var}_set 2896 eval ac_new_set=\$ac_env_${ac_var}_set
2532 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2897 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2533 eval ac_new_val=\$ac_env_${ac_var}_value 2898 eval ac_new_val=\$ac_env_${ac_var}_value
2534 case $ac_old_set,$ac_new_set in 2899 case $ac_old_set,$ac_new_set in
2535 set,) 2900 set,)
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2537$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2902printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2538 ac_cache_corrupted=: ;; 2903 ac_cache_corrupted=: ;;
2539 ,set) 2904 ,set)
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2541$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2906printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2542 ac_cache_corrupted=: ;; 2907 ac_cache_corrupted=: ;;
2543 ,);; 2908 ,);;
2544 *) 2909 *)
2545 if test "x$ac_old_val" != "x$ac_new_val"; then 2910 if test "x$ac_old_val" != "x$ac_new_val"; then
2546 # differences in whitespace do not lead to failure. 2911 # differences in whitespace do not lead to failure.
2547 ac_old_val_w=`echo x $ac_old_val` 2912 ac_old_val_w=`echo x $ac_old_val`
2548 ac_new_val_w=`echo x $ac_new_val` 2913 ac_new_val_w=`echo x $ac_new_val`
2549 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2914 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2551$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2916printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2552 ac_cache_corrupted=: 2917 ac_cache_corrupted=:
2553 else 2918 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2555$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2920printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2556 eval $ac_var=\$ac_old_val 2921 eval $ac_var=\$ac_old_val
2557 fi 2922 fi
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2559$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2924printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2561$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2926printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2562 fi;; 2927 fi;;
2563 esac 2928 esac
2564 # Pass precious variables to config.status. 2929 # Pass precious variables to config.status.
2565 if test "$ac_new_set" = set; then 2930 if test "$ac_new_set" = set; then
2566 case $ac_new_val in 2931 case $ac_new_val in
2567 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2932 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2568 *) ac_arg=$ac_var=$ac_new_val ;; 2933 *) ac_arg=$ac_var=$ac_new_val ;;
2569 esac 2934 esac
2570 case " $ac_configure_args " in 2935 case " $ac_configure_args " in
2571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2936 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2572 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2937 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2573 esac 2938 esac
2574 fi 2939 fi
2575done 2940done
2576if $ac_cache_corrupted; then 2941if $ac_cache_corrupted; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2943printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2580$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2945printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2581 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2946 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
 2947 and start over" "$LINENO" 5
2582fi 2948fi
2583## -------------------- ## 2949## -------------------- ##
2584## Main body of script. ## 2950## Main body of script. ##
2585## -------------------- ## 2951## -------------------- ##
2586 2952
2587ac_ext=c 2953ac_ext=c
2588ac_cpp='$CPP $CPPFLAGS' 2954ac_cpp='$CPP $CPPFLAGS'
2589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591ac_compiler_gnu=$ac_cv_c_compiler_gnu 2957ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592 2958
2593 2959
2594ac_config_headers="$ac_config_headers nbcompat/config.h" 2960ac_config_headers="$ac_config_headers nbcompat/config.h"
2595 2961
2596test "$program_prefix" != NONE && 2962test "$program_prefix" != NONE &&
2597 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2963 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2598# Use a double $ so make ignores it. 2964# Use a double $ so make ignores it.
2599test "$program_suffix" != NONE && 2965test "$program_suffix" != NONE &&
2600 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2966 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2601# Double any \ or $. 2967# Double any \ or $.
2602# By default was `s,x,x', remove it if useless. 2968# By default was `s,x,x', remove it if useless.
2603ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2969ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2604program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2970program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2605 2971
2606 2972
2607ac_aux_dir= 
2608for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 
2609 if test -f "$ac_dir/install-sh"; then 
2610 ac_aux_dir=$ac_dir 
2611 ac_install_sh="$ac_aux_dir/install-sh -c" 
2612 break 
2613 elif test -f "$ac_dir/install.sh"; then 
2614 ac_aux_dir=$ac_dir 
2615 ac_install_sh="$ac_aux_dir/install.sh -c" 
2616 break 
2617 elif test -f "$ac_dir/shtool"; then 
2618 ac_aux_dir=$ac_dir 
2619 ac_install_sh="$ac_aux_dir/shtool install -c" 
2620 break 
2621 fi 
2622done 
2623if test -z "$ac_aux_dir"; then 
2624 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 
2625fi 
2626 2973
2627# These three variables are undocumented and unsupported, 
2628# and are intended to be withdrawn in a future Autoconf release. 
2629# They can cause serious problems if a builder's source tree is in a directory 
2630# whose full name contains unusual characters. 
2631ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 
2632ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 
2633ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 
2634 2974
2635 2975
2636# Make sure we can run config.sub. 2976 # Make sure we can run config.sub.
2637$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2977$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2638 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2978 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2639 2979
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2641$as_echo_n "checking build system type... " >&6; } 2981printf %s "checking build system type... " >&6; }
2642if ${ac_cv_build+:} false; then : 2982if test ${ac_cv_build+y}
2643 $as_echo_n "(cached) " >&6 2983then :
2644else 2984 printf %s "(cached) " >&6
 2985else $as_nop
2645 ac_build_alias=$build_alias 2986 ac_build_alias=$build_alias
2646test "x$ac_build_alias" = x && 2987test "x$ac_build_alias" = x &&
2647 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2988 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2648test "x$ac_build_alias" = x && 2989test "x$ac_build_alias" = x &&
2649 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2990 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2650ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2991ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2651 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2992 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2652 2993
2653fi 2994fi
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2655$as_echo "$ac_cv_build" >&6; } 2996printf "%s\n" "$ac_cv_build" >&6; }
2656case $ac_cv_build in 2997case $ac_cv_build in
2657*-*-*) ;; 2998*-*-*) ;;
2658*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2999*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2659esac 3000esac
2660build=$ac_cv_build 3001build=$ac_cv_build
2661ac_save_IFS=$IFS; IFS='-' 3002ac_save_IFS=$IFS; IFS='-'
2662set x $ac_cv_build 3003set x $ac_cv_build
2663shift 3004shift
2664build_cpu=$1 3005build_cpu=$1
2665build_vendor=$2 3006build_vendor=$2
2666shift; shift 3007shift; shift
2667# Remember, the first character of IFS is used to create $*, 3008# Remember, the first character of IFS is used to create $*,
2668# except with old shells: 3009# except with old shells:
2669build_os=$* 3010build_os=$*
2670IFS=$ac_save_IFS 3011IFS=$ac_save_IFS
2671case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3012case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2672 3013
2673 3014
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2675$as_echo_n "checking host system type... " >&6; } 3016printf %s "checking host system type... " >&6; }
2676if ${ac_cv_host+:} false; then : 3017if test ${ac_cv_host+y}
2677 $as_echo_n "(cached) " >&6 3018then :
2678else 3019 printf %s "(cached) " >&6
 3020else $as_nop
2679 if test "x$host_alias" = x; then 3021 if test "x$host_alias" = x; then
2680 ac_cv_host=$ac_cv_build 3022 ac_cv_host=$ac_cv_build
2681else 3023else
2682 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3024 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2683 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3025 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2684fi 3026fi
2685 3027
2686fi 3028fi
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2688$as_echo "$ac_cv_host" >&6; } 3030printf "%s\n" "$ac_cv_host" >&6; }
2689case $ac_cv_host in 3031case $ac_cv_host in
2690*-*-*) ;; 3032*-*-*) ;;
2691*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3033*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2692esac 3034esac
2693host=$ac_cv_host 3035host=$ac_cv_host
2694ac_save_IFS=$IFS; IFS='-' 3036ac_save_IFS=$IFS; IFS='-'
2695set x $ac_cv_host 3037set x $ac_cv_host
2696shift 3038shift
2697host_cpu=$1 3039host_cpu=$1
2698host_vendor=$2 3040host_vendor=$2
2699shift; shift 3041shift; shift
2700# Remember, the first character of IFS is used to create $*, 3042# Remember, the first character of IFS is used to create $*,
2701# except with old shells: 3043# except with old shells:
2702host_os=$* 3044host_os=$*
2703IFS=$ac_save_IFS 3045IFS=$ac_save_IFS
2704case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3046case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2705 3047
2706 3048
 3049
 3050
 3051
 3052
 3053
 3054
 3055
 3056
 3057
2707ac_ext=c 3058ac_ext=c
2708ac_cpp='$CPP $CPPFLAGS' 3059ac_cpp='$CPP $CPPFLAGS'
2709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711ac_compiler_gnu=$ac_cv_c_compiler_gnu 3062ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712if test -n "$ac_tool_prefix"; then 3063if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3064 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2714set dummy ${ac_tool_prefix}gcc; ac_word=$2 3065set dummy ${ac_tool_prefix}gcc; ac_word=$2
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716$as_echo_n "checking for $ac_word... " >&6; } 3067printf %s "checking for $ac_word... " >&6; }
2717if ${ac_cv_prog_CC+:} false; then : 3068if test ${ac_cv_prog_CC+y}
2718 $as_echo_n "(cached) " >&6 3069then :
2719else 3070 printf %s "(cached) " >&6
 3071else $as_nop
2720 if test -n "$CC"; then 3072 if test -n "$CC"; then
2721 ac_cv_prog_CC="$CC" # Let the user override the test. 3073 ac_cv_prog_CC="$CC" # Let the user override the test.
2722else 3074else
2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH 3076for as_dir in $PATH
2725do 3077do
2726 IFS=$as_save_IFS 3078 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=. 3079 case $as_dir in #(((
 3080 '') as_dir=./ ;;
 3081 */) ;;
 3082 *) as_dir=$as_dir/ ;;
 3083 esac
2728 for ac_exec_ext in '' $ac_executable_extensions; do 3084 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2730 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3086 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2732 break 2 3088 break 2
2733 fi 3089 fi
2734done 3090done
2735 done 3091 done
2736IFS=$as_save_IFS 3092IFS=$as_save_IFS
2737 3093
2738fi 3094fi
2739fi 3095fi
2740CC=$ac_cv_prog_CC 3096CC=$ac_cv_prog_CC
2741if test -n "$CC"; then 3097if test -n "$CC"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2743$as_echo "$CC" >&6; } 3099printf "%s\n" "$CC" >&6; }
2744else 3100else
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746$as_echo "no" >&6; } 3102printf "%s\n" "no" >&6; }
2747fi 3103fi
2748 3104
2749 3105
2750fi 3106fi
2751if test -z "$ac_cv_prog_CC"; then 3107if test -z "$ac_cv_prog_CC"; then
2752 ac_ct_CC=$CC 3108 ac_ct_CC=$CC
2753 # Extract the first word of "gcc", so it can be a program name with args. 3109 # Extract the first word of "gcc", so it can be a program name with args.
2754set dummy gcc; ac_word=$2 3110set dummy gcc; ac_word=$2
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756$as_echo_n "checking for $ac_word... " >&6; } 3112printf %s "checking for $ac_word... " >&6; }
2757if ${ac_cv_prog_ac_ct_CC+:} false; then : 3113if test ${ac_cv_prog_ac_ct_CC+y}
2758 $as_echo_n "(cached) " >&6 3114then :
2759else 3115 printf %s "(cached) " >&6
 3116else $as_nop
2760 if test -n "$ac_ct_CC"; then 3117 if test -n "$ac_ct_CC"; then
2761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2762else 3119else
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH 3121for as_dir in $PATH
2765do 3122do
2766 IFS=$as_save_IFS 3123 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=. 3124 case $as_dir in #(((
 3125 '') as_dir=./ ;;
 3126 */) ;;
 3127 *) as_dir=$as_dir/ ;;
 3128 esac
2768 for ac_exec_ext in '' $ac_executable_extensions; do 3129 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2770 ac_cv_prog_ac_ct_CC="gcc" 3131 ac_cv_prog_ac_ct_CC="gcc"
2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2772 break 2 3133 break 2
2773 fi 3134 fi
2774done 3135done
2775 done 3136 done
2776IFS=$as_save_IFS 3137IFS=$as_save_IFS
2777 3138
2778fi 3139fi
2779fi 3140fi
2780ac_ct_CC=$ac_cv_prog_ac_ct_CC 3141ac_ct_CC=$ac_cv_prog_ac_ct_CC
2781if test -n "$ac_ct_CC"; then 3142if test -n "$ac_ct_CC"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2783$as_echo "$ac_ct_CC" >&6; } 3144printf "%s\n" "$ac_ct_CC" >&6; }
2784else 3145else
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786$as_echo "no" >&6; } 3147printf "%s\n" "no" >&6; }
2787fi 3148fi
2788 3149
2789 if test "x$ac_ct_CC" = x; then 3150 if test "x$ac_ct_CC" = x; then
2790 CC="" 3151 CC=""
2791 else 3152 else
2792 case $cross_compiling:$ac_tool_warned in 3153 case $cross_compiling:$ac_tool_warned in
2793yes:) 3154yes:)
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3156printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2796ac_tool_warned=yes ;; 3157ac_tool_warned=yes ;;
2797esac 3158esac
2798 CC=$ac_ct_CC 3159 CC=$ac_ct_CC
2799 fi 3160 fi
2800else 3161else
2801 CC="$ac_cv_prog_CC" 3162 CC="$ac_cv_prog_CC"
2802fi 3163fi
2803 3164
2804if test -z "$CC"; then 3165if test -z "$CC"; then
2805 if test -n "$ac_tool_prefix"; then 3166 if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2807set dummy ${ac_tool_prefix}cc; ac_word=$2 3168set dummy ${ac_tool_prefix}cc; ac_word=$2
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809$as_echo_n "checking for $ac_word... " >&6; } 3170printf %s "checking for $ac_word... " >&6; }
2810if ${ac_cv_prog_CC+:} false; then : 3171if test ${ac_cv_prog_CC+y}
2811 $as_echo_n "(cached) " >&6 3172then :
2812else 3173 printf %s "(cached) " >&6
 3174else $as_nop
2813 if test -n "$CC"; then 3175 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test. 3176 ac_cv_prog_CC="$CC" # Let the user override the test.
2815else 3177else
2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH 3179for as_dir in $PATH
2818do 3180do
2819 IFS=$as_save_IFS 3181 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=. 3182 case $as_dir in #(((
 3183 '') as_dir=./ ;;
 3184 */) ;;
 3185 *) as_dir=$as_dir/ ;;
 3186 esac
2821 for ac_exec_ext in '' $ac_executable_extensions; do 3187 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_CC="${ac_tool_prefix}cc" 3189 ac_cv_prog_CC="${ac_tool_prefix}cc"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2825 break 2 3191 break 2
2826 fi 3192 fi
2827done 3193done
2828 done 3194 done
2829IFS=$as_save_IFS 3195IFS=$as_save_IFS
2830 3196
2831fi 3197fi
2832fi 3198fi
2833CC=$ac_cv_prog_CC 3199CC=$ac_cv_prog_CC
2834if test -n "$CC"; then 3200if test -n "$CC"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836$as_echo "$CC" >&6; } 3202printf "%s\n" "$CC" >&6; }
2837else 3203else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839$as_echo "no" >&6; } 3205printf "%s\n" "no" >&6; }
2840fi 3206fi
2841 3207
2842 3208
2843 fi 3209 fi
2844fi 3210fi
2845if test -z "$CC"; then 3211if test -z "$CC"; then
2846 # Extract the first word of "cc", so it can be a program name with args. 3212 # Extract the first word of "cc", so it can be a program name with args.
2847set dummy cc; ac_word=$2 3213set dummy cc; ac_word=$2
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849$as_echo_n "checking for $ac_word... " >&6; } 3215printf %s "checking for $ac_word... " >&6; }
2850if ${ac_cv_prog_CC+:} false; then : 3216if test ${ac_cv_prog_CC+y}
2851 $as_echo_n "(cached) " >&6 3217then :
2852else 3218 printf %s "(cached) " >&6
 3219else $as_nop
2853 if test -n "$CC"; then 3220 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test. 3221 ac_cv_prog_CC="$CC" # Let the user override the test.
2855else 3222else
2856 ac_prog_rejected=no 3223 ac_prog_rejected=no
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH 3225for as_dir in $PATH
2859do 3226do
2860 IFS=$as_save_IFS 3227 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=. 3228 case $as_dir in #(((
 3229 '') as_dir=./ ;;
 3230 */) ;;
 3231 *) as_dir=$as_dir/ ;;
 3232 esac
2862 for ac_exec_ext in '' $ac_executable_extensions; do 3233 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3235 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2865 ac_prog_rejected=yes 3236 ac_prog_rejected=yes
2866 continue 3237 continue
2867 fi 3238 fi
2868 ac_cv_prog_CC="cc" 3239 ac_cv_prog_CC="cc"
2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2870 break 2 3241 break 2
2871 fi 3242 fi
2872done 3243done
2873 done 3244 done
2874IFS=$as_save_IFS 3245IFS=$as_save_IFS
2875 3246
2876if test $ac_prog_rejected = yes; then 3247if test $ac_prog_rejected = yes; then
2877 # We found a bogon in the path, so make sure we never use it. 3248 # We found a bogon in the path, so make sure we never use it.
2878 set dummy $ac_cv_prog_CC 3249 set dummy $ac_cv_prog_CC
2879 shift 3250 shift
2880 if test $# != 0; then 3251 if test $# != 0; then
2881 # We chose a different compiler from the bogus one. 3252 # We chose a different compiler from the bogus one.
2882 # However, it has the same basename, so the bogon will be chosen 3253 # However, it has the same basename, so the bogon will be chosen
2883 # first if we set CC to just the basename; use the full file name. 3254 # first if we set CC to just the basename; use the full file name.
2884 shift 3255 shift
2885 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3256 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2886 fi 3257 fi
2887fi 3258fi
2888fi 3259fi
2889fi 3260fi
2890CC=$ac_cv_prog_CC 3261CC=$ac_cv_prog_CC
2891if test -n "$CC"; then 3262if test -n "$CC"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2893$as_echo "$CC" >&6; } 3264printf "%s\n" "$CC" >&6; }
2894else 3265else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896$as_echo "no" >&6; } 3267printf "%s\n" "no" >&6; }
2897fi 3268fi
2898 3269
2899 3270
2900fi 3271fi
2901if test -z "$CC"; then 3272if test -z "$CC"; then
2902 if test -n "$ac_tool_prefix"; then 3273 if test -n "$ac_tool_prefix"; then
2903 for ac_prog in cl.exe 3274 for ac_prog in cl.exe
2904 do 3275 do
2905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3277set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908$as_echo_n "checking for $ac_word... " >&6; } 3279printf %s "checking for $ac_word... " >&6; }
2909if ${ac_cv_prog_CC+:} false; then : 3280if test ${ac_cv_prog_CC+y}
2910 $as_echo_n "(cached) " >&6 3281then :
2911else 3282 printf %s "(cached) " >&6
 3283else $as_nop
2912 if test -n "$CC"; then 3284 if test -n "$CC"; then
2913 ac_cv_prog_CC="$CC" # Let the user override the test. 3285 ac_cv_prog_CC="$CC" # Let the user override the test.
2914else 3286else
2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH 3288for as_dir in $PATH
2917do 3289do
2918 IFS=$as_save_IFS 3290 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=. 3291 case $as_dir in #(((
 3292 '') as_dir=./ ;;
 3293 */) ;;
 3294 *) as_dir=$as_dir/ ;;
 3295 esac
2920 for ac_exec_ext in '' $ac_executable_extensions; do 3296 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2922 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3298 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2924 break 2 3300 break 2
2925 fi 3301 fi
2926done 3302done
2927 done 3303 done
2928IFS=$as_save_IFS 3304IFS=$as_save_IFS
2929 3305
2930fi 3306fi
2931fi 3307fi
2932CC=$ac_cv_prog_CC 3308CC=$ac_cv_prog_CC
2933if test -n "$CC"; then 3309if test -n "$CC"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2935$as_echo "$CC" >&6; } 3311printf "%s\n" "$CC" >&6; }
2936else 3312else
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938$as_echo "no" >&6; } 3314printf "%s\n" "no" >&6; }
2939fi 3315fi
2940 3316
2941 3317
2942 test -n "$CC" && break 3318 test -n "$CC" && break
2943 done 3319 done
2944fi 3320fi
2945if test -z "$CC"; then 3321if test -z "$CC"; then
2946 ac_ct_CC=$CC 3322 ac_ct_CC=$CC
2947 for ac_prog in cl.exe 3323 for ac_prog in cl.exe
2948do 3324do
2949 # Extract the first word of "$ac_prog", so it can be a program name with args. 3325 # Extract the first word of "$ac_prog", so it can be a program name with args.
2950set dummy $ac_prog; ac_word=$2 3326set dummy $ac_prog; ac_word=$2
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952$as_echo_n "checking for $ac_word... " >&6; } 3328printf %s "checking for $ac_word... " >&6; }
2953if ${ac_cv_prog_ac_ct_CC+:} false; then : 3329if test ${ac_cv_prog_ac_ct_CC+y}
2954 $as_echo_n "(cached) " >&6 3330then :
2955else 3331 printf %s "(cached) " >&6
 3332else $as_nop
2956 if test -n "$ac_ct_CC"; then 3333 if test -n "$ac_ct_CC"; then
2957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3334 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958else 3335else
2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960for as_dir in $PATH 3337for as_dir in $PATH
2961do 3338do
2962 IFS=$as_save_IFS 3339 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=. 3340 case $as_dir in #(((
 3341 '') as_dir=./ ;;
 3342 */) ;;
 3343 *) as_dir=$as_dir/ ;;
 3344 esac
2964 for ac_exec_ext in '' $ac_executable_extensions; do 3345 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_ac_ct_CC="$ac_prog" 3347 ac_cv_prog_ac_ct_CC="$ac_prog"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2968 break 2 3349 break 2
2969 fi 3350 fi
2970done 3351done
2971 done 3352 done
2972IFS=$as_save_IFS 3353IFS=$as_save_IFS
2973 3354
2974fi 3355fi
2975fi 3356fi
2976ac_ct_CC=$ac_cv_prog_ac_ct_CC 3357ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977if test -n "$ac_ct_CC"; then 3358if test -n "$ac_ct_CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2979$as_echo "$ac_ct_CC" >&6; } 3360printf "%s\n" "$ac_ct_CC" >&6; }
2980else 3361else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982$as_echo "no" >&6; } 3363printf "%s\n" "no" >&6; }
2983fi 3364fi
2984 3365
2985 3366
2986 test -n "$ac_ct_CC" && break 3367 test -n "$ac_ct_CC" && break
2987done 3368done
2988 3369
2989 if test "x$ac_ct_CC" = x; then 3370 if test "x$ac_ct_CC" = x; then
2990 CC="" 3371 CC=""
2991 else 3372 else
2992 case $cross_compiling:$ac_tool_warned in 3373 case $cross_compiling:$ac_tool_warned in
2993yes:) 3374yes:)
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3376printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2996ac_tool_warned=yes ;; 3377ac_tool_warned=yes ;;
2997esac 3378esac
2998 CC=$ac_ct_CC 3379 CC=$ac_ct_CC
2999 fi 3380 fi
3000fi 3381fi
3001 3382
3002fi 3383fi
3003 3384if test -z "$CC"; then
3004 3385 if test -n "$ac_tool_prefix"; then
3005test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3386 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3387set dummy ${ac_tool_prefix}clang; ac_word=$2
3007as_fn_error $? "no acceptable C compiler found in \$PATH 3388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008See \`config.log' for more details" "$LINENO" 5; } 3389printf %s "checking for $ac_word... " >&6; }
3009 3390if test ${ac_cv_prog_CC+y}
 3391then :
 3392 printf %s "(cached) " >&6
 3393else $as_nop
 3394 if test -n "$CC"; then
 3395 ac_cv_prog_CC="$CC" # Let the user override the test.
 3396else
 3397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3398for as_dir in $PATH
 3399do
 3400 IFS=$as_save_IFS
 3401 case $as_dir in #(((
 3402 '') as_dir=./ ;;
 3403 */) ;;
 3404 *) as_dir=$as_dir/ ;;
 3405 esac
 3406 for ac_exec_ext in '' $ac_executable_extensions; do
 3407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 3408 ac_cv_prog_CC="${ac_tool_prefix}clang"
 3409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 3410 break 2
 3411 fi
 3412done
 3413 done
 3414IFS=$as_save_IFS
 3415
 3416fi
 3417fi
 3418CC=$ac_cv_prog_CC
 3419if test -n "$CC"; then
 3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3421printf "%s\n" "$CC" >&6; }
 3422else
 3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3424printf "%s\n" "no" >&6; }
 3425fi
 3426
 3427
 3428fi
 3429if test -z "$ac_cv_prog_CC"; then
 3430 ac_ct_CC=$CC
 3431 # Extract the first word of "clang", so it can be a program name with args.
 3432set dummy clang; ac_word=$2
 3433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3434printf %s "checking for $ac_word... " >&6; }
 3435if test ${ac_cv_prog_ac_ct_CC+y}
 3436then :
 3437 printf %s "(cached) " >&6
 3438else $as_nop
 3439 if test -n "$ac_ct_CC"; then
 3440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 3441else
 3442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3443for as_dir in $PATH
 3444do
 3445 IFS=$as_save_IFS
 3446 case $as_dir in #(((
 3447 '') as_dir=./ ;;
 3448 */) ;;
 3449 *) as_dir=$as_dir/ ;;
 3450 esac
 3451 for ac_exec_ext in '' $ac_executable_extensions; do
 3452 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 3453 ac_cv_prog_ac_ct_CC="clang"
 3454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 3455 break 2
 3456 fi
 3457done
 3458 done
 3459IFS=$as_save_IFS
 3460
 3461fi
 3462fi
 3463ac_ct_CC=$ac_cv_prog_ac_ct_CC
 3464if test -n "$ac_ct_CC"; then
 3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 3466printf "%s\n" "$ac_ct_CC" >&6; }
 3467else
 3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3469printf "%s\n" "no" >&6; }
 3470fi
 3471
 3472 if test "x$ac_ct_CC" = x; then
 3473 CC=""
 3474 else
 3475 case $cross_compiling:$ac_tool_warned in
 3476yes:)
 3477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3478printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3479ac_tool_warned=yes ;;
 3480esac
 3481 CC=$ac_ct_CC
 3482 fi
 3483else
 3484 CC="$ac_cv_prog_CC"
 3485fi
 3486
 3487fi
 3488
 3489
 3490test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3491printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 3492as_fn_error $? "no acceptable C compiler found in \$PATH
 3493See \`config.log' for more details" "$LINENO" 5; }
 3494
3010# Provide some information about the compiler. 3495# Provide some information about the compiler.
3011$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3496printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3012set X $ac_compile 3497set X $ac_compile
3013ac_compiler=$2 3498ac_compiler=$2
3014for ac_option in --version -v -V -qversion; do 3499for ac_option in --version -v -V -qversion -version; do
3015 { { ac_try="$ac_compiler $ac_option >&5" 3500 { { ac_try="$ac_compiler $ac_option >&5"
3016case "(($ac_try" in 3501case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;; 3503 *) ac_try_echo=$ac_try;;
3019esac 3504esac
3020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3021$as_echo "$ac_try_echo"; } >&5 3506printf "%s\n" "$ac_try_echo"; } >&5
3022 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3507 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3023 ac_status=$? 3508 ac_status=$?
3024 if test -s conftest.err; then 3509 if test -s conftest.err; then
3025 sed '10a\ 3510 sed '10a\
3026... rest of stderr output deleted ... 3511... rest of stderr output deleted ...
3027 10q' conftest.err >conftest.er1 3512 10q' conftest.err >conftest.er1
3028 cat conftest.er1 >&5 3513 cat conftest.er1 >&5
3029 fi 3514 fi
3030 rm -f conftest.er1 conftest.err 3515 rm -f conftest.er1 conftest.err
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032 test $ac_status = 0; } 3517 test $ac_status = 0; }
3033done 3518done
3034 3519
3035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036/* end confdefs.h. */ 3521/* end confdefs.h. */
3037 3522
3038int 3523int
3039main () 3524main (void)
3040{ 3525{
3041 3526
3042 ; 3527 ;
3043 return 0; 3528 return 0;
3044} 3529}
3045_ACEOF 3530_ACEOF
3046ac_clean_files_save=$ac_clean_files 3531ac_clean_files_save=$ac_clean_files
3047ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3532ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3048# Try to create an executable without -o first, disregard a.out. 3533# Try to create an executable without -o first, disregard a.out.
3049# It will help us diagnose broken compilers, and finding out an intuition 3534# It will help us diagnose broken compilers, and finding out an intuition
3050# of exeext. 3535# of exeext.
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3052$as_echo_n "checking whether the C compiler works... " >&6; } 3537printf %s "checking whether the C compiler works... " >&6; }
3053ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3538ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3054 3539
3055# The possible output files: 3540# The possible output files:
3056ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3541ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3057 3542
3058ac_rmfiles= 3543ac_rmfiles=
3059for ac_file in $ac_files 3544for ac_file in $ac_files
3060do 3545do
3061 case $ac_file in 3546 case $ac_file in
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3063 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3548 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3064 esac 3549 esac
3065done 3550done
3066rm -f $ac_rmfiles 3551rm -f $ac_rmfiles
3067 3552
3068if { { ac_try="$ac_link_default" 3553if { { ac_try="$ac_link_default"
3069case "(($ac_try" in 3554case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;; 3556 *) ac_try_echo=$ac_try;;
3072esac 3557esac
3073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074$as_echo "$ac_try_echo"; } >&5 3559printf "%s\n" "$ac_try_echo"; } >&5
3075 (eval "$ac_link_default") 2>&5 3560 (eval "$ac_link_default") 2>&5
3076 ac_status=$? 3561 ac_status=$?
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }; then : 3563 test $ac_status = 0; }
 3564then :
3079 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3565 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3080# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3566# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3081# in a Makefile. We should not override ac_cv_exeext if it was cached, 3567# in a Makefile. We should not override ac_cv_exeext if it was cached,
3082# so that the user can short-circuit this test for compilers unknown to 3568# so that the user can short-circuit this test for compilers unknown to
3083# Autoconf. 3569# Autoconf.
3084for ac_file in $ac_files '' 3570for ac_file in $ac_files ''
3085do 3571do
3086 test -f "$ac_file" || continue 3572 test -f "$ac_file" || continue
3087 case $ac_file in 3573 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3089 ;; 3575 ;;
3090 [ab].out ) 3576 [ab].out )
3091 # We found the default executable, but exeext='' is most 3577 # We found the default executable, but exeext='' is most
3092 # certainly right. 3578 # certainly right.
3093 break;; 3579 break;;
3094 *.* ) 3580 *.* )
3095 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3581 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3096 then :; else 3582 then :; else
3097 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3583 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3098 fi 3584 fi
3099 # We set ac_cv_exeext here because the later test for it is not 3585 # We set ac_cv_exeext here because the later test for it is not
3100 # safe: cross compilers may not add the suffix if given an `-o' 3586 # safe: cross compilers may not add the suffix if given an `-o'
3101 # argument, so we may need to know it at that point already. 3587 # argument, so we may need to know it at that point already.
3102 # Even if this section looks crufty: it has the advantage of 3588 # Even if this section looks crufty: it has the advantage of
3103 # actually working. 3589 # actually working.
3104 break;; 3590 break;;
3105 * ) 3591 * )
3106 break;; 3592 break;;
3107 esac 3593 esac
3108done 3594done
3109test "$ac_cv_exeext" = no && ac_cv_exeext= 3595test "$ac_cv_exeext" = no && ac_cv_exeext=
3110 3596
3111else 3597else $as_nop
3112 ac_file='' 3598 ac_file=''
3113fi 3599fi
3114if test -z "$ac_file"; then : 3600if test -z "$ac_file"
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3601then :
3116$as_echo "no" >&6; } 3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117$as_echo "$as_me: failed program was:" >&5 3603printf "%s\n" "no" >&6; }
 3604printf "%s\n" "$as_me: failed program was:" >&5
3118sed 's/^/| /' conftest.$ac_ext >&5 3605sed 's/^/| /' conftest.$ac_ext >&5
3119 3606
3120{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3607{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3608printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3122as_fn_error 77 "C compiler cannot create executables 3609as_fn_error 77 "C compiler cannot create executables
3123See \`config.log' for more details" "$LINENO" 5; } 3610See \`config.log' for more details" "$LINENO" 5; }
3124else 3611else $as_nop
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3126$as_echo "yes" >&6; } 3613printf "%s\n" "yes" >&6; }
3127fi 3614fi
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3129$as_echo_n "checking for C compiler default output file name... " >&6; } 3616printf %s "checking for C compiler default output file name... " >&6; }
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3131$as_echo "$ac_file" >&6; } 3618printf "%s\n" "$ac_file" >&6; }
3132ac_exeext=$ac_cv_exeext 3619ac_exeext=$ac_cv_exeext
3133 3620
3134rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3621rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3135ac_clean_files=$ac_clean_files_save 3622ac_clean_files=$ac_clean_files_save
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3137$as_echo_n "checking for suffix of executables... " >&6; } 3624printf %s "checking for suffix of executables... " >&6; }
3138if { { ac_try="$ac_link" 3625if { { ac_try="$ac_link"
3139case "(($ac_try" in 3626case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;; 3628 *) ac_try_echo=$ac_try;;
3142esac 3629esac
3143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144$as_echo "$ac_try_echo"; } >&5 3631printf "%s\n" "$ac_try_echo"; } >&5
3145 (eval "$ac_link") 2>&5 3632 (eval "$ac_link") 2>&5
3146 ac_status=$? 3633 ac_status=$?
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }; then : 3635 test $ac_status = 0; }
 3636then :
3149 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3637 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3150# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3638# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3151# work properly (i.e., refer to `conftest.exe'), while it won't with 3639# work properly (i.e., refer to `conftest.exe'), while it won't with
3152# `rm'. 3640# `rm'.
3153for ac_file in conftest.exe conftest conftest.*; do 3641for ac_file in conftest.exe conftest conftest.*; do
3154 test -f "$ac_file" || continue 3642 test -f "$ac_file" || continue
3155 case $ac_file in 3643 case $ac_file in
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3157 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3158 break;; 3646 break;;
3159 * ) break;; 3647 * ) break;;
3160 esac 3648 esac
3161done 3649done
3162else 3650else $as_nop
3163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3651 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3652printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3165as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3653as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3166See \`config.log' for more details" "$LINENO" 5; } 3654See \`config.log' for more details" "$LINENO" 5; }
3167fi 3655fi
3168rm -f conftest conftest$ac_cv_exeext 3656rm -f conftest conftest$ac_cv_exeext
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3170$as_echo "$ac_cv_exeext" >&6; } 3658printf "%s\n" "$ac_cv_exeext" >&6; }
3171 3659
3172rm -f conftest.$ac_ext 3660rm -f conftest.$ac_ext
3173EXEEXT=$ac_cv_exeext 3661EXEEXT=$ac_cv_exeext
3174ac_exeext=$EXEEXT 3662ac_exeext=$EXEEXT
3175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176/* end confdefs.h. */ 3664/* end confdefs.h. */
3177#include <stdio.h> 3665#include <stdio.h>
3178int 3666int
3179main () 3667main (void)
3180{ 3668{
3181FILE *f = fopen ("conftest.out", "w"); 3669FILE *f = fopen ("conftest.out", "w");
3182 return ferror (f) || fclose (f) != 0; 3670 return ferror (f) || fclose (f) != 0;
3183 3671
3184 ; 3672 ;
3185 return 0; 3673 return 0;
3186} 3674}
3187_ACEOF 3675_ACEOF
3188ac_clean_files="$ac_clean_files conftest.out" 3676ac_clean_files="$ac_clean_files conftest.out"
3189# Check that the compiler produces executables we can run. If not, either 3677# Check that the compiler produces executables we can run. If not, either
3190# the compiler is broken, or we cross compile. 3678# the compiler is broken, or we cross compile.
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3192$as_echo_n "checking whether we are cross compiling... " >&6; } 3680printf %s "checking whether we are cross compiling... " >&6; }
3193if test "$cross_compiling" != yes; then 3681if test "$cross_compiling" != yes; then
3194 { { ac_try="$ac_link" 3682 { { ac_try="$ac_link"
3195case "(($ac_try" in 3683case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;; 3685 *) ac_try_echo=$ac_try;;
3198esac 3686esac
3199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200$as_echo "$ac_try_echo"; } >&5 3688printf "%s\n" "$ac_try_echo"; } >&5
3201 (eval "$ac_link") 2>&5 3689 (eval "$ac_link") 2>&5
3202 ac_status=$? 3690 ac_status=$?
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; } 3692 test $ac_status = 0; }
3205 if { ac_try='./conftest$ac_cv_exeext' 3693 if { ac_try='./conftest$ac_cv_exeext'
3206 { { case "(($ac_try" in 3694 { { case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;; 3696 *) ac_try_echo=$ac_try;;
3209esac 3697esac
3210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211$as_echo "$ac_try_echo"; } >&5 3699printf "%s\n" "$ac_try_echo"; } >&5
3212 (eval "$ac_try") 2>&5 3700 (eval "$ac_try") 2>&5
3213 ac_status=$? 3701 ac_status=$?
3214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215 test $ac_status = 0; }; }; then 3703 test $ac_status = 0; }; }; then
3216 cross_compiling=no 3704 cross_compiling=no
3217 else 3705 else
3218 if test "$cross_compiling" = maybe; then 3706 if test "$cross_compiling" = maybe; then
3219 cross_compiling=yes 3707 cross_compiling=yes
3220 else 3708 else
3221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3709 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3710printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3223as_fn_error $? "cannot run C compiled programs. 3711as_fn_error 77 "cannot run C compiled programs.
3224If you meant to cross compile, use \`--host'. 3712If you meant to cross compile, use \`--host'.
3225See \`config.log' for more details" "$LINENO" 5; } 3713See \`config.log' for more details" "$LINENO" 5; }
3226 fi 3714 fi
3227 fi 3715 fi
3228fi 3716fi
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3230$as_echo "$cross_compiling" >&6; } 3718printf "%s\n" "$cross_compiling" >&6; }
3231 3719
3232rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3720rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3233ac_clean_files=$ac_clean_files_save 3721ac_clean_files=$ac_clean_files_save
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3235$as_echo_n "checking for suffix of object files... " >&6; } 3723printf %s "checking for suffix of object files... " >&6; }
3236if ${ac_cv_objext+:} false; then : 3724if test ${ac_cv_objext+y}
3237 $as_echo_n "(cached) " >&6 3725then :
3238else 3726 printf %s "(cached) " >&6
 3727else $as_nop
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240/* end confdefs.h. */ 3729/* end confdefs.h. */
3241 3730
3242int 3731int
3243main () 3732main (void)
3244{ 3733{
3245 3734
3246 ; 3735 ;
3247 return 0; 3736 return 0;
3248} 3737}
3249_ACEOF 3738_ACEOF
3250rm -f conftest.o conftest.obj 3739rm -f conftest.o conftest.obj
3251if { { ac_try="$ac_compile" 3740if { { ac_try="$ac_compile"
3252case "(($ac_try" in 3741case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;; 3743 *) ac_try_echo=$ac_try;;
3255esac 3744esac
3256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257$as_echo "$ac_try_echo"; } >&5 3746printf "%s\n" "$ac_try_echo"; } >&5
3258 (eval "$ac_compile") 2>&5 3747 (eval "$ac_compile") 2>&5
3259 ac_status=$? 3748 ac_status=$?
3260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261 test $ac_status = 0; }; then : 3750 test $ac_status = 0; }
 3751then :
3262 for ac_file in conftest.o conftest.obj conftest.*; do 3752 for ac_file in conftest.o conftest.obj conftest.*; do
3263 test -f "$ac_file" || continue; 3753 test -f "$ac_file" || continue;
3264 case $ac_file in 3754 case $ac_file in
3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3266 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3756 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3267 break;; 3757 break;;
3268 esac 3758 esac
3269done 3759done
3270else 3760else $as_nop
3271 $as_echo "$as_me: failed program was:" >&5 3761 printf "%s\n" "$as_me: failed program was:" >&5
3272sed 's/^/| /' conftest.$ac_ext >&5 3762sed 's/^/| /' conftest.$ac_ext >&5
3273 3763
3274{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3764{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3765printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3276as_fn_error $? "cannot compute suffix of object files: cannot compile 3766as_fn_error $? "cannot compute suffix of object files: cannot compile
3277See \`config.log' for more details" "$LINENO" 5; } 3767See \`config.log' for more details" "$LINENO" 5; }
3278fi 3768fi
3279rm -f conftest.$ac_cv_objext conftest.$ac_ext 3769rm -f conftest.$ac_cv_objext conftest.$ac_ext
3280fi 3770fi
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3282$as_echo "$ac_cv_objext" >&6; } 3772printf "%s\n" "$ac_cv_objext" >&6; }
3283OBJEXT=$ac_cv_objext 3773OBJEXT=$ac_cv_objext
3284ac_objext=$OBJEXT 3774ac_objext=$OBJEXT
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3286$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3776printf %s "checking whether the compiler supports GNU C... " >&6; }
3287if ${ac_cv_c_compiler_gnu+:} false; then : 3777if test ${ac_cv_c_compiler_gnu+y}
3288 $as_echo_n "(cached) " >&6 3778then :
3289else 3779 printf %s "(cached) " >&6
 3780else $as_nop
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291/* end confdefs.h. */ 3782/* end confdefs.h. */
3292 3783
3293int 3784int
3294main () 3785main (void)
3295{ 3786{
3296#ifndef __GNUC__ 3787#ifndef __GNUC__
3297 choke me 3788 choke me
3298#endif 3789#endif
3299 3790
3300 ; 3791 ;
3301 return 0; 3792 return 0;
3302} 3793}
3303_ACEOF 3794_ACEOF
3304if ac_fn_c_try_compile "$LINENO"; then : 3795if ac_fn_c_try_compile "$LINENO"
 3796then :
3305 ac_compiler_gnu=yes 3797 ac_compiler_gnu=yes
3306else 3798else $as_nop
3307 ac_compiler_gnu=no 3799 ac_compiler_gnu=no
3308fi 3800fi
3309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3310ac_cv_c_compiler_gnu=$ac_compiler_gnu 3802ac_cv_c_compiler_gnu=$ac_compiler_gnu
3311 3803
3312fi 3804fi
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3314$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3806printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
 3807ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3808
3315if test $ac_compiler_gnu = yes; then 3809if test $ac_compiler_gnu = yes; then
3316 GCC=yes 3810 GCC=yes
3317else 3811else
3318 GCC= 3812 GCC=
3319fi 3813fi
3320ac_test_CFLAGS=${CFLAGS+set} 3814ac_test_CFLAGS=${CFLAGS+y}
3321ac_save_CFLAGS=$CFLAGS 3815ac_save_CFLAGS=$CFLAGS
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3323$as_echo_n "checking whether $CC accepts -g... " >&6; } 3817printf %s "checking whether $CC accepts -g... " >&6; }
3324if ${ac_cv_prog_cc_g+:} false; then : 3818if test ${ac_cv_prog_cc_g+y}
3325 $as_echo_n "(cached) " >&6 3819then :
3326else 3820 printf %s "(cached) " >&6
 3821else $as_nop
3327 ac_save_c_werror_flag=$ac_c_werror_flag 3822 ac_save_c_werror_flag=$ac_c_werror_flag
3328 ac_c_werror_flag=yes 3823 ac_c_werror_flag=yes
3329 ac_cv_prog_cc_g=no 3824 ac_cv_prog_cc_g=no
3330 CFLAGS="-g" 3825 CFLAGS="-g"
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h. */ 3827/* end confdefs.h. */
3333 3828
3334int 3829int
3335main () 3830main (void)
3336{ 3831{
3337 3832
3338 ; 3833 ;
3339 return 0; 3834 return 0;
3340} 3835}
3341_ACEOF 3836_ACEOF
3342if ac_fn_c_try_compile "$LINENO"; then : 3837if ac_fn_c_try_compile "$LINENO"
 3838then :
3343 ac_cv_prog_cc_g=yes 3839 ac_cv_prog_cc_g=yes
3344else 3840else $as_nop
3345 CFLAGS="" 3841 CFLAGS=""
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347/* end confdefs.h. */ 3843/* end confdefs.h. */
3348 3844
3349int 3845int
3350main () 3846main (void)
3351{ 3847{
3352 3848
3353 ; 3849 ;
3354 return 0; 3850 return 0;
3355} 3851}
3356_ACEOF 3852_ACEOF
3357if ac_fn_c_try_compile "$LINENO"; then : 3853if ac_fn_c_try_compile "$LINENO"
 3854then :
3358 3855
3359else 3856else $as_nop
3360 ac_c_werror_flag=$ac_save_c_werror_flag 3857 ac_c_werror_flag=$ac_save_c_werror_flag
3361 CFLAGS="-g" 3858 CFLAGS="-g"
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363/* end confdefs.h. */ 3860/* end confdefs.h. */
3364 3861
3365int 3862int
3366main () 3863main (void)
3367{ 3864{
3368 3865
3369 ; 3866 ;
3370 return 0; 3867 return 0;
3371} 3868}
3372_ACEOF 3869_ACEOF
3373if ac_fn_c_try_compile "$LINENO"; then : 3870if ac_fn_c_try_compile "$LINENO"
 3871then :
3374 ac_cv_prog_cc_g=yes 3872 ac_cv_prog_cc_g=yes
3375fi 3873fi
3376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3874rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3377fi 3875fi
3378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3379fi 3877fi
3380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3381 ac_c_werror_flag=$ac_save_c_werror_flag 3879 ac_c_werror_flag=$ac_save_c_werror_flag
3382fi 3880fi
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3384$as_echo "$ac_cv_prog_cc_g" >&6; } 3882printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3385if test "$ac_test_CFLAGS" = set; then 3883if test $ac_test_CFLAGS; then
3386 CFLAGS=$ac_save_CFLAGS 3884 CFLAGS=$ac_save_CFLAGS
3387elif test $ac_cv_prog_cc_g = yes; then 3885elif test $ac_cv_prog_cc_g = yes; then
3388 if test "$GCC" = yes; then 3886 if test "$GCC" = yes; then
3389 CFLAGS="-g -O2" 3887 CFLAGS="-g -O2"
3390 else 3888 else
3391 CFLAGS="-g" 3889 CFLAGS="-g"
3392 fi 3890 fi
3393else 3891else
3394 if test "$GCC" = yes; then 3892 if test "$GCC" = yes; then
3395 CFLAGS="-O2" 3893 CFLAGS="-O2"
3396 else 3894 else
3397 CFLAGS= 3895 CFLAGS=
3398 fi 3896 fi
3399fi 3897fi
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3898ac_prog_cc_stdc=no
3401$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3899if test x$ac_prog_cc_stdc = xno
3402if ${ac_cv_prog_cc_c89+:} false; then : 3900then :
3403 $as_echo_n "(cached) " >&6 3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3404else 3902printf %s "checking for $CC option to enable C11 features... " >&6; }
3405 ac_cv_prog_cc_c89=no 3903if test ${ac_cv_prog_cc_c11+y}
 3904then :
 3905 printf %s "(cached) " >&6
 3906else $as_nop
 3907 ac_cv_prog_cc_c11=no
3406ac_save_CC=$CC 3908ac_save_CC=$CC
3407cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408/* end confdefs.h. */ 3910/* end confdefs.h. */
3409#include <stdarg.h> 3911$ac_c_conftest_c11_program
3410#include <stdio.h> 3912_ACEOF
3411struct stat; 3913for ac_arg in '' -std=gnu11
3412/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3914do
3413struct buf { int x; }; 3915 CC="$ac_save_CC $ac_arg"
3414FILE * (*rcsopen) (struct buf *, struct stat *, int); 3916 if ac_fn_c_try_compile "$LINENO"
3415static char *e (p, i) 3917then :
3416 char **p; 3918 ac_cv_prog_cc_c11=$ac_arg
3417 int i; 3919fi
3418{ 3920rm -f core conftest.err conftest.$ac_objext conftest.beam
3419 return p[i]; 3921 test "x$ac_cv_prog_cc_c11" != "xno" && break
3420} 3922done
3421static char *f (char * (*g) (char **, int), char **p, ...) 3923rm -f conftest.$ac_ext
3422{ 3924CC=$ac_save_CC
3423 char *s; 3925fi
3424 va_list v; 
3425 va_start (v,p); 
3426 s = g (p, va_arg (v,int)); 
3427 va_end (v); 
3428 return s; 
3429} 
3430 
3431/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 
3432 function prototypes and stuff, but not '\xHH' hex character constants. 
3433 These don't provoke an error unfortunately, instead are silently treated 
3434 as 'x'. The following induces an error, until -std is added to get 
3435 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 
3436 array size at least. It's necessary to write '\x00'==0 to get something 
3437 that's true only with -std. */ 
3438int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 
3439 3926
3440/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3927if test "x$ac_cv_prog_cc_c11" = xno
3441 inside strings and character constants. */ 3928then :
3442#define FOO(x) 'x' 3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3443int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3930printf "%s\n" "unsupported" >&6; }
 3931else $as_nop
 3932 if test "x$ac_cv_prog_cc_c11" = x
 3933then :
 3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 3935printf "%s\n" "none needed" >&6; }
 3936else $as_nop
 3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
 3938printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
 3939 CC="$CC $ac_cv_prog_cc_c11"
 3940fi
 3941 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
 3942 ac_prog_cc_stdc=c11
 3943fi
 3944fi
 3945if test x$ac_prog_cc_stdc = xno
 3946then :
 3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
 3948printf %s "checking for $CC option to enable C99 features... " >&6; }
 3949if test ${ac_cv_prog_cc_c99+y}
 3950then :
 3951 printf %s "(cached) " >&6
 3952else $as_nop
 3953 ac_cv_prog_cc_c99=no
 3954ac_save_CC=$CC
 3955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3956/* end confdefs.h. */
 3957$ac_c_conftest_c99_program
 3958_ACEOF
 3959for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
 3960do
 3961 CC="$ac_save_CC $ac_arg"
 3962 if ac_fn_c_try_compile "$LINENO"
 3963then :
 3964 ac_cv_prog_cc_c99=$ac_arg
 3965fi
 3966rm -f core conftest.err conftest.$ac_objext conftest.beam
 3967 test "x$ac_cv_prog_cc_c99" != "xno" && break
 3968done
 3969rm -f conftest.$ac_ext
 3970CC=$ac_save_CC
 3971fi
3444 3972
3445int test (int i, double x); 3973if test "x$ac_cv_prog_cc_c99" = xno
3446struct s1 {int (*f) (int a);}; 3974then :
3447struct s2 {int (*f) (double a);}; 3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3448int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3976printf "%s\n" "unsupported" >&6; }
3449int argc; 3977else $as_nop
3450char **argv; 3978 if test "x$ac_cv_prog_cc_c99" = x
3451int 3979then :
3452main () 3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3453{ 3981printf "%s\n" "none needed" >&6; }
3454return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3982else $as_nop
3455 ; 3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3456 return 0; 3984printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3457} 3985 CC="$CC $ac_cv_prog_cc_c99"
 3986fi
 3987 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
 3988 ac_prog_cc_stdc=c99
 3989fi
 3990fi
 3991if test x$ac_prog_cc_stdc = xno
 3992then :
 3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
 3994printf %s "checking for $CC option to enable C89 features... " >&6; }
 3995if test ${ac_cv_prog_cc_c89+y}
 3996then :
 3997 printf %s "(cached) " >&6
 3998else $as_nop
 3999 ac_cv_prog_cc_c89=no
 4000ac_save_CC=$CC
 4001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4002/* end confdefs.h. */
 4003$ac_c_conftest_c89_program
3458_ACEOF 4004_ACEOF
3459for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4005for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3460 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 
3461do 4006do
3462 CC="$ac_save_CC $ac_arg" 4007 CC="$ac_save_CC $ac_arg"
3463 if ac_fn_c_try_compile "$LINENO"; then : 4008 if ac_fn_c_try_compile "$LINENO"
 4009then :
3464 ac_cv_prog_cc_c89=$ac_arg 4010 ac_cv_prog_cc_c89=$ac_arg
3465fi 4011fi
3466rm -f core conftest.err conftest.$ac_objext 4012rm -f core conftest.err conftest.$ac_objext conftest.beam
3467 test "x$ac_cv_prog_cc_c89" != "xno" && break 4013 test "x$ac_cv_prog_cc_c89" != "xno" && break
3468done 4014done
3469rm -f conftest.$ac_ext 4015rm -f conftest.$ac_ext
3470CC=$ac_save_CC 4016CC=$ac_save_CC
3471 
3472fi 4017fi
3473# AC_CACHE_VAL 
3474case "x$ac_cv_prog_cc_c89" in 
3475 x) 
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 
3477$as_echo "none needed" >&6; } ;; 
3478 xno) 
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 
3480$as_echo "unsupported" >&6; } ;; 
3481 *) 
3482 CC="$CC $ac_cv_prog_cc_c89" 
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 
3484$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 
3485esac 
3486if test "x$ac_cv_prog_cc_c89" != xno; then : 
3487 4018
 4019if test "x$ac_cv_prog_cc_c89" = xno
 4020then :
 4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 4022printf "%s\n" "unsupported" >&6; }
 4023else $as_nop
 4024 if test "x$ac_cv_prog_cc_c89" = x
 4025then :
 4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 4027printf "%s\n" "none needed" >&6; }
 4028else $as_nop
 4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 4030printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
 4031 CC="$CC $ac_cv_prog_cc_c89"
 4032fi
 4033 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
 4034 ac_prog_cc_stdc=c89
 4035fi
3488fi 4036fi
3489 4037
3490ac_ext=c 4038ac_ext=c
3491ac_cpp='$CPP $CPPFLAGS' 4039ac_cpp='$CPP $CPPFLAGS'
3492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494ac_compiler_gnu=$ac_cv_c_compiler_gnu 4042ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495 4043
3496 4044
3497ac_ext=c 4045ac_header= ac_cache=
3498ac_cpp='$CPP $CPPFLAGS' 4046for ac_item in $ac_header_c_list
3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 
3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 
3501ac_compiler_gnu=$ac_cv_c_compiler_gnu 
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 
3503$as_echo_n "checking how to run the C preprocessor... " >&6; } 
3504# On Suns, sometimes $CPP names a directory. 
3505if test -n "$CPP" && test -d "$CPP"; then 
3506 CPP= 
3507fi 
3508if test -z "$CPP"; then 
3509 if ${ac_cv_prog_CPP+:} false; then : 
3510 $as_echo_n "(cached) " >&6 
3511else 
3512 # Double quotes because CPP needs to be expanded 
3513 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 
3514 do 
3515 ac_preproc_ok=false 
3516for ac_c_preproc_warn_flag in '' yes 
3517do 4047do
3518 # Use a header file that comes with gcc, so configuring glibc 4048 if test $ac_cache; then
3519 # with a fresh cross-compiler works. 4049 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4050 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3521 # <limits.h> exists even on freestanding compilers. 4051 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3522 # On the NeXT, cc -E runs the code through the compiler's parser, 4052 fi
3523 # not just through cpp. "Syntax error" is here to catch this case. 4053 ac_header= ac_cache=
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4054 elif test $ac_header; then
3525/* end confdefs.h. */ 4055 ac_cache=$ac_item
3526#ifdef __STDC__ 4056 else
3527# include <limits.h> 4057 ac_header=$ac_item
3528#else 4058 fi
3529# include <assert.h> 4059done
3530#endif 4060
3531 Syntax error 4061
3532_ACEOF 4062
3533if ac_fn_c_try_cpp "$LINENO"; then : 4063
 4064
 4065
 4066
 4067
 4068if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
 4069then :
 4070
 4071printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3534 4072
3535else 
3536 # Broken: fails on valid input. 
3537continue 
3538fi 4073fi
3539rm -f conftest.err conftest.i conftest.$ac_ext 
3540 4074
3541 # OK, works on sane cases. Now check whether nonexistent headers 4075
3542 # can be detected and how. 4076
 4077
 4078
 4079
 4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
 4081printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 4082if test ${ac_cv_safe_to_define___extensions__+y}
 4083then :
 4084 printf %s "(cached) " >&6
 4085else $as_nop
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544/* end confdefs.h. */ 4087/* end confdefs.h. */
3545#include <ac_nonexistent.h> 
3546_ACEOF 
3547if ac_fn_c_try_cpp "$LINENO"; then : 
3548 # Broken: success on invalid input. 
3549continue 
3550else 
3551 # Passes both tests. 
3552ac_preproc_ok=: 
3553break 
3554fi 
3555rm -f conftest.err conftest.i conftest.$ac_ext 
3556 
3557done 
3558# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 
3559rm -f conftest.i conftest.err conftest.$ac_ext 
3560if $ac_preproc_ok; then : 
3561 break 
3562fi 
3563 4088
3564 done 4089# define __EXTENSIONS__ 1
3565 ac_cv_prog_CPP=$CPP 4090 $ac_includes_default
 4091int
 4092main (void)
 4093{
3566 4094
 4095 ;
 4096 return 0;
 4097}
 4098_ACEOF
 4099if ac_fn_c_try_compile "$LINENO"
 4100then :
 4101 ac_cv_safe_to_define___extensions__=yes
 4102else $as_nop
 4103 ac_cv_safe_to_define___extensions__=no
3567fi 4104fi
3568 CPP=$ac_cv_prog_CPP 4105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3569else 
3570 ac_cv_prog_CPP=$CPP 
3571fi 4106fi
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3573$as_echo "$CPP" >&6; } 4108printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3574ac_preproc_ok=false 4109
3575for ac_c_preproc_warn_flag in '' yes 4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3576do 4111printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3577 # Use a header file that comes with gcc, so configuring glibc 4112if test ${ac_cv_should_define__xopen_source+y}
3578 # with a fresh cross-compiler works. 4113then :
3579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4114 printf %s "(cached) " >&6
3580 # <limits.h> exists even on freestanding compilers. 4115else $as_nop
3581 # On the NeXT, cc -E runs the code through the compiler's parser, 4116 ac_cv_should_define__xopen_source=no
3582 # not just through cpp. "Syntax error" is here to catch this case. 4117 if test $ac_cv_header_wchar_h = yes
 4118then :
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h. */ 4120/* end confdefs.h. */
3585#ifdef __STDC__ 
3586# include <limits.h> 
3587#else 
3588# include <assert.h> 
3589#endif 
3590 Syntax error 
3591_ACEOF 
3592if ac_fn_c_try_cpp "$LINENO"; then : 
3593 4121
3594else 4122 #include <wchar.h>
3595 # Broken: fails on valid input. 4123 mbstate_t x;
3596continue 4124int
3597fi 4125main (void)
3598rm -f conftest.err conftest.i conftest.$ac_ext 4126{
3599 4127
3600 # OK, works on sane cases. Now check whether nonexistent headers 4128 ;
3601 # can be detected and how. 4129 return 0;
 4130}
 4131_ACEOF
 4132if ac_fn_c_try_compile "$LINENO"
 4133then :
 4134
 4135else $as_nop
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603/* end confdefs.h. */ 4137/* end confdefs.h. */
3604#include <ac_nonexistent.h> 4138
 4139 #define _XOPEN_SOURCE 500
 4140 #include <wchar.h>
 4141 mbstate_t x;
 4142int
 4143main (void)
 4144{
 4145
 4146 ;
 4147 return 0;
 4148}
3605_ACEOF 4149_ACEOF
3606if ac_fn_c_try_cpp "$LINENO"; then : 4150if ac_fn_c_try_compile "$LINENO"
3607 # Broken: success on invalid input. 4151then :
3608continue 4152 ac_cv_should_define__xopen_source=yes
3609else 4153fi
3610 # Passes both tests. 4154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3611ac_preproc_ok=: 4155fi
3612break 4156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 4157fi
3613fi 4158fi
3614rm -f conftest.err conftest.i conftest.$ac_ext 4159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
 4160printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3615 4161
3616done 4162 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3617# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 
3618rm -f conftest.i conftest.err conftest.$ac_ext 
3619if $ac_preproc_ok; then : 
3620 4163
3621else 4164 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4165
3623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4166 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3624as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4167
3625See \`config.log' for more details" "$LINENO" 5; } 4168 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
 4169
 4170 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
 4171
 4172 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
 4173
 4174 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 4175
 4176 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
 4177
 4178 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
 4179
 4180 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
 4181
 4182 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
 4183
 4184 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
 4185
 4186 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
 4187
 4188 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
 4189
 4190 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
 4191
 4192 if test $ac_cv_header_minix_config_h = yes
 4193then :
 4194 MINIX=yes
 4195 printf "%s\n" "#define _MINIX 1" >>confdefs.h
 4196
 4197 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
 4198
 4199 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
 4200
 4201else $as_nop
 4202 MINIX=
3626fi 4203fi
 4204 if test $ac_cv_safe_to_define___extensions__ = yes
 4205then :
 4206 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3627 4207
3628ac_ext=c 4208fi
3629ac_cpp='$CPP $CPPFLAGS' 4209 if test $ac_cv_should_define__xopen_source = yes
3630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4210then :
3631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4211 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3632ac_compiler_gnu=$ac_cv_c_compiler_gnu 
3633 
3634 
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 
3636$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 
3637if ${ac_cv_path_GREP+:} false; then : 
3638 $as_echo_n "(cached) " >&6 
3639else 
3640 if test -z "$GREP"; then 
3641 ac_path_GREP_found=false 
3642 # Loop through the user's path and test for each of PROGNAME-LIST 
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 
3644for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 
3645do 
3646 IFS=$as_save_IFS 
3647 test -z "$as_dir" && as_dir=. 
3648 for ac_prog in grep ggrep; do 
3649 for ac_exec_ext in '' $ac_executable_extensions; do 
3650 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 
3651 as_fn_executable_p "$ac_path_GREP" || continue 
3652# Check for GNU ac_path_GREP and select it if it is found. 
3653 # Check for GNU $ac_path_GREP 
3654case `"$ac_path_GREP" --version 2>&1` in 
3655*GNU*) 
3656 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 
3657*) 
3658 ac_count=0 
3659 $as_echo_n 0123456789 >"conftest.in" 
3660 while : 
3661 do 
3662 cat "conftest.in" "conftest.in" >"conftest.tmp" 
3663 mv "conftest.tmp" "conftest.in" 
3664 cp "conftest.in" "conftest.nl" 
3665 $as_echo 'GREP' >> "conftest.nl" 
3666 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 
3667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 
3668 as_fn_arith $ac_count + 1 && ac_count=$as_val 
3669 if test $ac_count -gt ${ac_path_GREP_max-0}; then 
3670 # Best one so far, save it but keep looking for a better one 
3671 ac_cv_path_GREP="$ac_path_GREP" 
3672 ac_path_GREP_max=$ac_count 
3673 fi 
3674 # 10*(2^10) chars as input seems more than enough 
3675 test $ac_count -gt 10 && break 
3676 done 
3677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 
3678esac 
3679 
3680 $ac_path_GREP_found && break 3 
3681 done 
3682 done 
3683 done 
3684IFS=$as_save_IFS 
3685 if test -z "$ac_cv_path_GREP"; then 
3686 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 
3687 fi 
3688else 
3689 ac_cv_path_GREP=$GREP 
3690fi 
3691 
3692fi 
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 
3694$as_echo "$ac_cv_path_GREP" >&6; } 
3695 GREP="$ac_cv_path_GREP" 
3696 
3697 
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 
3699$as_echo_n "checking for egrep... " >&6; } 
3700if ${ac_cv_path_EGREP+:} false; then : 
3701 $as_echo_n "(cached) " >&6 
3702else 
3703 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 
3704 then ac_cv_path_EGREP="$GREP -E" 
3705 else 
3706 if test -z "$EGREP"; then 
3707 ac_path_EGREP_found=false 
3708 # Loop through the user's path and test for each of PROGNAME-LIST 
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 
3710for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 
3711do 
3712 IFS=$as_save_IFS 
3713 test -z "$as_dir" && as_dir=. 
3714 for ac_prog in egrep; do 
3715 for ac_exec_ext in '' $ac_executable_extensions; do 
3716 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 
3717 as_fn_executable_p "$ac_path_EGREP" || continue 
3718# Check for GNU ac_path_EGREP and select it if it is found. 
3719 # Check for GNU $ac_path_EGREP 
3720case `"$ac_path_EGREP" --version 2>&1` in 
3721*GNU*) 
3722 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 
3723*) 
3724 ac_count=0 
3725 $as_echo_n 0123456789 >"conftest.in" 
3726 while : 
3727 do 
3728 cat "conftest.in" "conftest.in" >"conftest.tmp" 
3729 mv "conftest.tmp" "conftest.in" 
3730 cp "conftest.in" "conftest.nl" 
3731 $as_echo 'EGREP' >> "conftest.nl" 
3732 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 
3733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 
3734 as_fn_arith $ac_count + 1 && ac_count=$as_val 
3735 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 
3736 # Best one so far, save it but keep looking for a better one 
3737 ac_cv_path_EGREP="$ac_path_EGREP" 
3738 ac_path_EGREP_max=$ac_count 
3739 fi 
3740 # 10*(2^10) chars as input seems more than enough 
3741 test $ac_count -gt 10 && break 
3742 done 
3743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 
3744esac 
3745 
3746 $ac_path_EGREP_found && break 3 
3747 done 
3748 done 
3749 done 
3750IFS=$as_save_IFS 
3751 if test -z "$ac_cv_path_EGREP"; then 
3752 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 
3753 fi 
3754else 
3755 ac_cv_path_EGREP=$EGREP 
3756fi 
3757 
3758 fi 
3759fi 
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 
3761$as_echo "$ac_cv_path_EGREP" >&6; } 
3762 EGREP="$ac_cv_path_EGREP" 
3763 
3764 
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 
3766$as_echo_n "checking for ANSI C header files... " >&6; } 
3767if ${ac_cv_header_stdc+:} false; then : 
3768 $as_echo_n "(cached) " >&6 
3769else 
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
3771/* end confdefs.h. */ 
3772#include <stdlib.h> 
3773#include <stdarg.h> 
3774#include <string.h> 
3775#include <float.h> 
3776 
3777int 
3778main () 
3779{ 
3780 
3781 ; 
3782 return 0; 
3783} 
3784_ACEOF 
3785if ac_fn_c_try_compile "$LINENO"; then : 
3786 ac_cv_header_stdc=yes 
3787else 
3788 ac_cv_header_stdc=no 
3789fi 
3790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
3791 
3792if test $ac_cv_header_stdc = yes; then 
3793 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
3795/* end confdefs.h. */ 
3796#include <string.h> 
3797 
3798_ACEOF 
3799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 
3800 $EGREP "memchr" >/dev/null 2>&1; then : 
3801 
3802else 
3803 ac_cv_header_stdc=no 
3804fi 
3805rm -f conftest* 
3806 
3807fi 
3808 
3809if test $ac_cv_header_stdc = yes; then 
3810 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
3812/* end confdefs.h. */ 
3813#include <stdlib.h> 
3814 
3815_ACEOF 
3816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 
3817 $EGREP "free" >/dev/null 2>&1; then : 
3818 
3819else 
3820 ac_cv_header_stdc=no 
3821fi 
3822rm -f conftest* 
3823 
3824fi 
3825 
3826if test $ac_cv_header_stdc = yes; then 
3827 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 
3828 if test "$cross_compiling" = yes; then : 
3829 : 
3830else 
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
3832/* end confdefs.h. */ 
3833#include <ctype.h> 
3834#include <stdlib.h> 
3835#if ((' ' & 0x0FF) == 0x020) 
3836# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 
3837# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 
3838#else 
3839# define ISLOWER(c) \ 
3840 (('a' <= (c) && (c) <= 'i') \ 
3841 || ('j' <= (c) && (c) <= 'r') \ 
3842 || ('s' <= (c) && (c) <= 'z')) 
3843# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 
3844#endif 
3845 
3846#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 
3847int 
3848main () 
3849{ 
3850 int i; 
3851 for (i = 0; i < 256; i++) 
3852 if (XOR (islower (i), ISLOWER (i)) 
3853 || toupper (i) != TOUPPER (i)) 
3854 return 2; 
3855 return 0; 
3856} 
3857_ACEOF 
3858if ac_fn_c_try_run "$LINENO"; then : 
3859 
3860else 
3861 ac_cv_header_stdc=no 
3862fi 
3863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 
3864 conftest.$ac_objext conftest.beam conftest.$ac_ext 
3865fi 
3866 
3867fi 
3868fi 
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 
3870$as_echo "$ac_cv_header_stdc" >&6; } 
3871if test $ac_cv_header_stdc = yes; then 
3872 
3873$as_echo "#define STDC_HEADERS 1" >>confdefs.h 
3874 
3875fi 
3876 
3877# On IRIX 5.3, sys/types and inttypes.h are conflicting. 
3878for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 
3879 inttypes.h stdint.h unistd.h 
3880do : 
3881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 
3882ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 
3883" 
3884if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 
3885 cat >>confdefs.h <<_ACEOF 
3886#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 
3887_ACEOF 
3888 
3889fi 
3890 
3891done 
3892 
3893 
3894 
3895 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 
3896if test "x$ac_cv_header_minix_config_h" = xyes; then : 
3897 MINIX=yes 
3898else 
3899 MINIX= 
3900fi 
3901 
3902 
3903 if test "$MINIX" = yes; then 
3904 
3905$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 
3906 
3907 
3908$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 
3909 
3910 
3911$as_echo "#define _MINIX 1" >>confdefs.h 
3912 
3913 fi 
3914 
3915 
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 
3917$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 
3918if ${ac_cv_safe_to_define___extensions__+:} false; then : 
3919 $as_echo_n "(cached) " >&6 
3920else 
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
3922/* end confdefs.h. */ 
3923 
3924# define __EXTENSIONS__ 1 
3925 $ac_includes_default 
3926int 
3927main () 
3928{ 
3929 
3930 ; 
3931 return 0; 
3932} 
3933_ACEOF 
3934if ac_fn_c_try_compile "$LINENO"; then : 
3935 ac_cv_safe_to_define___extensions__=yes 
3936else 
3937 ac_cv_safe_to_define___extensions__=no 
3938fi 
3939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
3940fi 
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 
3942$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 
3943 test $ac_cv_safe_to_define___extensions__ = yes && 
3944 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 
3945 
3946 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 
3947 
3948 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 
3949 
3950 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 
3951 
3952 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 
3953 4212
 4213fi
3954 4214
3955 4215
3956CANONICAL_HOST=$host 4216CANONICAL_HOST=$host
3957 4217
3958 4218
3959 4219
3960# Checks for programs. 4220# Checks for programs.
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3962$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4222printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3963set x ${MAKE-make} 4223set x ${MAKE-make}
3964ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4224ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3965if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4225if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3966 $as_echo_n "(cached) " >&6 4226then :
3967else 4227 printf %s "(cached) " >&6
 4228else $as_nop
3968 cat >conftest.make <<\_ACEOF 4229 cat >conftest.make <<\_ACEOF
3969SHELL = /bin/sh 4230SHELL = /bin/sh
3970all: 4231all:
3971 @echo '@@@%%%=$(MAKE)=@@@%%%' 4232 @echo '@@@%%%=$(MAKE)=@@@%%%'
3972_ACEOF 4233_ACEOF
3973# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4234# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3974case `${MAKE-make} -f conftest.make 2>/dev/null` in 4235case `${MAKE-make} -f conftest.make 2>/dev/null` in
3975 *@@@%%%=?*=@@@%%%*) 4236 *@@@%%%=?*=@@@%%%*)
3976 eval ac_cv_prog_make_${ac_make}_set=yes;; 4237 eval ac_cv_prog_make_${ac_make}_set=yes;;
3977 *) 4238 *)
3978 eval ac_cv_prog_make_${ac_make}_set=no;; 4239 eval ac_cv_prog_make_${ac_make}_set=no;;
3979esac 4240esac
3980rm -f conftest.make 4241rm -f conftest.make
3981fi 4242fi
3982if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4243if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3984$as_echo "yes" >&6; } 4245printf "%s\n" "yes" >&6; }
3985 SET_MAKE= 4246 SET_MAKE=
3986else 4247else
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988$as_echo "no" >&6; } 4249printf "%s\n" "no" >&6; }
3989 SET_MAKE="MAKE=${MAKE-make}" 4250 SET_MAKE="MAKE=${MAKE-make}"
3990fi 4251fi
3991 4252
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 
3993$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 
3994if ${ac_cv_prog_cc_c99+:} false; then : 
3995 $as_echo_n "(cached) " >&6 
3996else 
3997 ac_cv_prog_cc_c99=no 
3998ac_save_CC=$CC 
3999cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
4000/* end confdefs.h. */ 
4001#include <stdarg.h> 
4002#include <stdbool.h> 
4003#include <stdlib.h> 
4004#include <wchar.h> 
4005#include <stdio.h> 
4006 
4007// Check varargs macros. These examples are taken from C99 6.10.3.5. 
4008#define debug(...) fprintf (stderr, __VA_ARGS__) 
4009#define showlist(...) puts (#__VA_ARGS__) 
4010#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 
4011static void 
4012test_varargs_macros (void) 
4013{ 
4014 int x = 1234; 
4015 int y = 5678; 
4016 debug ("Flag"); 
4017 debug ("X = %d\n", x); 
4018 showlist (The first, second, and third items.); 
4019 report (x>y, "x is %d but y is %d", x, y); 
4020} 
4021 
4022// Check long long types. 
4023#define BIG64 18446744073709551615ull 
4024#define BIG32 4294967295ul 
4025#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 
4026#if !BIG_OK 
4027 your preprocessor is broken; 
4028#endif 
4029#if BIG_OK 
4030#else 
4031 your preprocessor is broken; 
4032#endif 
4033static long long int bignum = -9223372036854775807LL; 
4034static unsigned long long int ubignum = BIG64; 
4035 
4036struct incomplete_array 
4037{ 
4038 int datasize; 
4039 double data[]; 
4040}; 
4041 
4042struct named_init { 
4043 int number; 
4044 const wchar_t *name; 
4045 double average; 
4046}; 
4047 
4048typedef const char *ccp; 
4049 
4050static inline int 
4051test_restrict (ccp restrict text) 
4052{ 
4053 // See if C++-style comments work. 
4054 // Iterate through items via the restricted pointer. 
4055 // Also check for declarations in for loops. 
4056 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 
4057 continue; 
4058 return 0; 
4059} 
4060 
4061// Check varargs and va_copy. 
4062static void 
4063test_varargs (const char *format, ...) 
4064{ 
4065 va_list args; 
4066 va_start (args, format); 
4067 va_list args_copy; 
4068 va_copy (args_copy, args); 
4069 
4070 const char *str; 
4071 int number; 
4072 float fnumber; 
4073 
4074 while (*format) 
4075 { 
4076 switch (*format++) 
4077 { 
4078 case 's': // string 
4079 str = va_arg (args_copy, const char *); 
4080 break; 
4081 case 'd': // int 
4082 number = va_arg (args_copy, int); 
4083 break; 
4084 case 'f': // float 
4085 fnumber = va_arg (args_copy, double); 
4086 break; 
4087 default: 
4088 break; 
4089 } 
4090 } 
4091 va_end (args_copy); 
4092 va_end (args); 
4093} 
4094 
4095int 
4096main () 
4097{ 
4098 
4099 // Check bool. 
4100 _Bool success = false; 
4101 
4102 // Check restrict. 
4103 if (test_restrict ("String literal") == 0) 
4104 success = true; 
4105 char *restrict newvar = "Another string"; 
4106 
4107 // Check varargs. 
4108 test_varargs ("s, d' f .", "string", 65, 34.234); 
4109 test_varargs_macros (); 
4110 
4111 // Check flexible array members. 
4112 struct incomplete_array *ia = 
4113 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 
4114 ia->datasize = 10; 
4115 for (int i = 0; i < ia->datasize; ++i) 
4116 ia->data[i] = i * 1.234; 
4117 
4118 // Check named initializers. 
4119 struct named_init ni = { 
4120 .number = 34, 
4121 .name = L"Test wide string", 
4122 .average = 543.34343, 
4123 }; 
4124 
4125 ni.number = 58; 
4126 
4127 int dynamic_array[ni.number]; 
4128 dynamic_array[ni.number - 1] = 543; 
4129 
4130 // work around unused variable warnings 
4131 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 
4132 || dynamic_array[ni.number - 1] != 543); 
4133 
4134 ; 
4135 return 0; 
4136} 
4137_ACEOF 
4138for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 
4139do 
4140 CC="$ac_save_CC $ac_arg" 
4141 if ac_fn_c_try_compile "$LINENO"; then : 
4142 ac_cv_prog_cc_c99=$ac_arg 
4143fi 
4144rm -f core conftest.err conftest.$ac_objext 
4145 test "x$ac_cv_prog_cc_c99" != "xno" && break 
4146done 
4147rm -f conftest.$ac_ext 
4148CC=$ac_save_CC 
4149 
4150fi 
4151# AC_CACHE_VAL 
4152case "x$ac_cv_prog_cc_c99" in 
4153 x) 
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 
4155$as_echo "none needed" >&6; } ;; 
4156 xno) 
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 
4158$as_echo "unsupported" >&6; } ;; 
4159 *) 
4160 CC="$CC $ac_cv_prog_cc_c99" 
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 
4162$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 
4163esac 
4164if test "x$ac_cv_prog_cc_c99" != xno; then : 
4165 
4166fi 
4167 4253
4168 4254
4169# Find a good install program. We prefer a C program (faster), 4255 # Find a good install program. We prefer a C program (faster),
4170# so one script is as good as another. But avoid the broken or 4256# so one script is as good as another. But avoid the broken or
4171# incompatible versions: 4257# incompatible versions:
4172# SysV /etc/install, /usr/sbin/install 4258# SysV /etc/install, /usr/sbin/install
4173# SunOS /usr/etc/install 4259# SunOS /usr/etc/install
4174# IRIX /sbin/install 4260# IRIX /sbin/install
4175# AIX /bin/install 4261# AIX /bin/install
4176# AmigaOS /C/install, which installs bootblocks on floppy discs 4262# AmigaOS /C/install, which installs bootblocks on floppy discs
4177# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4263# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4178# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4264# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4179# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4265# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4180# OS/2's system install, which has a completely different semantic 4266# OS/2's system install, which has a completely different semantic
4181# ./install, which can be erroneously created by make from ./install.sh. 4267# ./install, which can be erroneously created by make from ./install.sh.
4182# Reject install programs that cannot install multiple files. 4268# Reject install programs that cannot install multiple files.
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4184$as_echo_n "checking for a BSD-compatible install... " >&6; } 4270printf %s "checking for a BSD-compatible install... " >&6; }
4185if test -z "$INSTALL"; then 4271if test -z "$INSTALL"; then
4186if ${ac_cv_path_install+:} false; then : 4272if test ${ac_cv_path_install+y}
4187 $as_echo_n "(cached) " >&6 4273then :
4188else 4274 printf %s "(cached) " >&6
 4275else $as_nop
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH 4277for as_dir in $PATH
4191do 4278do
4192 IFS=$as_save_IFS 4279 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=. 4280 case $as_dir in #(((
4194 # Account for people who put trailing slashes in PATH elements. 4281 '') as_dir=./ ;;
4195case $as_dir/ in #(( 4282 */) ;;
4196 ./ | .// | /[cC]/* | \ 4283 *) as_dir=$as_dir/ ;;
 4284 esac
 4285 # Account for fact that we put trailing slashes in our PATH walk.
 4286case $as_dir in #((
 4287 ./ | /[cC]/* | \
4197 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4198 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4289 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4199 /usr/ucb/* ) ;; 4290 /usr/ucb/* ) ;;
4200 *) 4291 *)
4201 # OSF1 and SCO ODT 3.0 have their own names for install. 4292 # OSF1 and SCO ODT 3.0 have their own names for install.
4202 # Don't use installbsd from OSF since it installs stuff as root 4293 # Don't use installbsd from OSF since it installs stuff as root
4203 # by default. 4294 # by default.
4204 for ac_prog in ginstall scoinst install; do 4295 for ac_prog in ginstall scoinst install; do
4205 for ac_exec_ext in '' $ac_executable_extensions; do 4296 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4297 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4207 if test $ac_prog = install && 4298 if test $ac_prog = install &&
4208 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4299 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4209 # AIX install. It has an incompatible calling convention. 4300 # AIX install. It has an incompatible calling convention.
4210 : 4301 :
4211 elif test $ac_prog = install && 4302 elif test $ac_prog = install &&
4212 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4303 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4213 # program-specific install script used by HP pwplus--don't use. 4304 # program-specific install script used by HP pwplus--don't use.
4214 : 4305 :
4215 else 4306 else
4216 rm -rf conftest.one conftest.two conftest.dir 4307 rm -rf conftest.one conftest.two conftest.dir
4217 echo one > conftest.one 4308 echo one > conftest.one
4218 echo two > conftest.two 4309 echo two > conftest.two
4219 mkdir conftest.dir 4310 mkdir conftest.dir
4220 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4311 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4221 test -s conftest.one && test -s conftest.two && 4312 test -s conftest.one && test -s conftest.two &&
4222 test -s conftest.dir/conftest.one && 4313 test -s conftest.dir/conftest.one &&
4223 test -s conftest.dir/conftest.two 4314 test -s conftest.dir/conftest.two
4224 then 4315 then
4225 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4316 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4226 break 3 4317 break 3
4227 fi 4318 fi
4228 fi 4319 fi
4229 fi 4320 fi
4230 done 4321 done
4231 done 4322 done
4232 ;; 4323 ;;
4233esac 4324esac
4234 4325
4235 done 4326 done
4236IFS=$as_save_IFS 4327IFS=$as_save_IFS
4237 4328
4238rm -rf conftest.one conftest.two conftest.dir 4329rm -rf conftest.one conftest.two conftest.dir
4239 4330
4240fi 4331fi
4241 if test "${ac_cv_path_install+set}" = set; then 4332 if test ${ac_cv_path_install+y}; then
4242 INSTALL=$ac_cv_path_install 4333 INSTALL=$ac_cv_path_install
4243 else 4334 else
4244 # As a last resort, use the slow shell script. Don't cache a 4335 # As a last resort, use the slow shell script. Don't cache a
4245 # value for INSTALL within a source directory, because that will 4336 # value for INSTALL within a source directory, because that will
4246 # break other packages using the cache if that directory is 4337 # break other packages using the cache if that directory is
4247 # removed, or if the value is a relative name. 4338 # removed, or if the value is a relative name.
4248 INSTALL=$ac_install_sh 4339 INSTALL=$ac_install_sh
4249 fi 4340 fi
4250fi 4341fi
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4252$as_echo "$INSTALL" >&6; } 4343printf "%s\n" "$INSTALL" >&6; }
4253 4344
4254# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4345# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4255# It thinks the first close brace ends the variable substitution. 4346# It thinks the first close brace ends the variable substitution.
4256test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4347test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4257 4348
4258test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4349test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4259 4350
4260test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4351test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4261 4352
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4263$as_echo_n "checking whether ln -s works... " >&6; } 4354printf %s "checking whether ln -s works... " >&6; }
4264LN_S=$as_ln_s 4355LN_S=$as_ln_s
4265if test "$LN_S" = "ln -s"; then 4356if test "$LN_S" = "ln -s"; then
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4267$as_echo "yes" >&6; } 4358printf "%s\n" "yes" >&6; }
4268else 4359else
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4270$as_echo "no, using $LN_S" >&6; } 4361printf "%s\n" "no, using $LN_S" >&6; }
4271fi 4362fi
4272 4363
4273if test -n "$ac_tool_prefix"; then 4364if test -n "$ac_tool_prefix"; then
4274 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4365 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4275set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4366set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277$as_echo_n "checking for $ac_word... " >&6; } 4368printf %s "checking for $ac_word... " >&6; }
4278if ${ac_cv_prog_RANLIB+:} false; then : 4369if test ${ac_cv_prog_RANLIB+y}
4279 $as_echo_n "(cached) " >&6 4370then :
4280else 4371 printf %s "(cached) " >&6
 4372else $as_nop
4281 if test -n "$RANLIB"; then 4373 if test -n "$RANLIB"; then
4282 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4374 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4283else 4375else
4284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285for as_dir in $PATH 4377for as_dir in $PATH
4286do 4378do
4287 IFS=$as_save_IFS 4379 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=. 4380 case $as_dir in #(((
 4381 '') as_dir=./ ;;
 4382 */) ;;
 4383 *) as_dir=$as_dir/ ;;
 4384 esac
4289 for ac_exec_ext in '' $ac_executable_extensions; do 4385 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4291 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4387 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4293 break 2 4389 break 2
4294 fi 4390 fi
4295done 4391done
4296 done 4392 done
4297IFS=$as_save_IFS 4393IFS=$as_save_IFS
4298 4394
4299fi 4395fi
4300fi 4396fi
4301RANLIB=$ac_cv_prog_RANLIB 4397RANLIB=$ac_cv_prog_RANLIB
4302if test -n "$RANLIB"; then 4398if test -n "$RANLIB"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4304$as_echo "$RANLIB" >&6; } 4400printf "%s\n" "$RANLIB" >&6; }
4305else 4401else
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307$as_echo "no" >&6; } 4403printf "%s\n" "no" >&6; }
4308fi 4404fi
4309 4405
4310 4406
4311fi 4407fi
4312if test -z "$ac_cv_prog_RANLIB"; then 4408if test -z "$ac_cv_prog_RANLIB"; then
4313 ac_ct_RANLIB=$RANLIB 4409 ac_ct_RANLIB=$RANLIB
4314 # Extract the first word of "ranlib", so it can be a program name with args. 4410 # Extract the first word of "ranlib", so it can be a program name with args.
4315set dummy ranlib; ac_word=$2 4411set dummy ranlib; ac_word=$2
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317$as_echo_n "checking for $ac_word... " >&6; } 4413printf %s "checking for $ac_word... " >&6; }
4318if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4414if test ${ac_cv_prog_ac_ct_RANLIB+y}
4319 $as_echo_n "(cached) " >&6 4415then :
4320else 4416 printf %s "(cached) " >&6
 4417else $as_nop
4321 if test -n "$ac_ct_RANLIB"; then 4418 if test -n "$ac_ct_RANLIB"; then
4322 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4419 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4323else 4420else
4324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH 4422for as_dir in $PATH
4326do 4423do
4327 IFS=$as_save_IFS 4424 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=. 4425 case $as_dir in #(((
 4426 '') as_dir=./ ;;
 4427 */) ;;
 4428 *) as_dir=$as_dir/ ;;
 4429 esac
4329 for ac_exec_ext in '' $ac_executable_extensions; do 4430 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4431 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4331 ac_cv_prog_ac_ct_RANLIB="ranlib" 4432 ac_cv_prog_ac_ct_RANLIB="ranlib"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4333 break 2 4434 break 2
4334 fi 4435 fi
4335done 4436done
4336 done 4437 done
4337IFS=$as_save_IFS 4438IFS=$as_save_IFS
4338 4439
4339fi 4440fi
4340fi 4441fi
4341ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4442ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4342if test -n "$ac_ct_RANLIB"; then 4443if test -n "$ac_ct_RANLIB"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4344$as_echo "$ac_ct_RANLIB" >&6; } 4445printf "%s\n" "$ac_ct_RANLIB" >&6; }
4345else 4446else
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347$as_echo "no" >&6; } 4448printf "%s\n" "no" >&6; }
4348fi 4449fi
4349 4450
4350 if test "x$ac_ct_RANLIB" = x; then 4451 if test "x$ac_ct_RANLIB" = x; then
4351 RANLIB=":" 4452 RANLIB=":"
4352 else 4453 else
4353 case $cross_compiling:$ac_tool_warned in 4454 case $cross_compiling:$ac_tool_warned in
4354yes:) 4455yes:)
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4457printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4357ac_tool_warned=yes ;; 4458ac_tool_warned=yes ;;
4358esac 4459esac
4359 RANLIB=$ac_ct_RANLIB 4460 RANLIB=$ac_ct_RANLIB
4360 fi 4461 fi
4361else 4462else
4362 RANLIB="$ac_cv_prog_RANLIB" 4463 RANLIB="$ac_cv_prog_RANLIB"
4363fi 4464fi
4364 4465
4365for ac_prog in gawk mawk nawk awk 4466for ac_prog in gawk mawk nawk awk
4366do 4467do
4367 # Extract the first word of "$ac_prog", so it can be a program name with args. 4468 # Extract the first word of "$ac_prog", so it can be a program name with args.
4368set dummy $ac_prog; ac_word=$2 4469set dummy $ac_prog; ac_word=$2
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370$as_echo_n "checking for $ac_word... " >&6; } 4471printf %s "checking for $ac_word... " >&6; }
4371if ${ac_cv_prog_AWK+:} false; then : 4472if test ${ac_cv_prog_AWK+y}
4372 $as_echo_n "(cached) " >&6 4473then :
4373else 4474 printf %s "(cached) " >&6
 4475else $as_nop
4374 if test -n "$AWK"; then 4476 if test -n "$AWK"; then
4375 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4477 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4376else 4478else
4377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378for as_dir in $PATH 4480for as_dir in $PATH
4379do 4481do
4380 IFS=$as_save_IFS 4482 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=. 4483 case $as_dir in #(((
 4484 '') as_dir=./ ;;
 4485 */) ;;
 4486 *) as_dir=$as_dir/ ;;
 4487 esac
4382 for ac_exec_ext in '' $ac_executable_extensions; do 4488 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4384 ac_cv_prog_AWK="$ac_prog" 4490 ac_cv_prog_AWK="$ac_prog"
4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4386 break 2 4492 break 2
4387 fi 4493 fi
4388done 4494done
4389 done 4495 done
4390IFS=$as_save_IFS 4496IFS=$as_save_IFS
4391 4497
4392fi 4498fi
4393fi 4499fi
4394AWK=$ac_cv_prog_AWK 4500AWK=$ac_cv_prog_AWK
4395if test -n "$AWK"; then 4501if test -n "$AWK"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4397$as_echo "$AWK" >&6; } 4503printf "%s\n" "$AWK" >&6; }
 4504else
 4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4506printf "%s\n" "no" >&6; }
 4507fi
 4508
 4509
 4510 test -n "$AWK" && break
 4511done
 4512
 4513# Extract the first word of "ar", so it can be a program name with args.
 4514set dummy ar; ac_word=$2
 4515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4516printf %s "checking for $ac_word... " >&6; }
 4517if test ${ac_cv_prog_AR+y}
 4518then :
 4519 printf %s "(cached) " >&6
 4520else $as_nop
 4521 if test -n "$AR"; then
 4522 ac_cv_prog_AR="$AR" # Let the user override the test.
 4523else
 4524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4525for as_dir in $PATH
 4526do
 4527 IFS=$as_save_IFS
 4528 case $as_dir in #(((
 4529 '') as_dir=./ ;;
 4530 */) ;;
 4531 *) as_dir=$as_dir/ ;;
 4532 esac
 4533 for ac_exec_ext in '' $ac_executable_extensions; do
 4534 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 4535 ac_cv_prog_AR="ar"
 4536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 4537 break 2
 4538 fi
 4539done
 4540 done
 4541IFS=$as_save_IFS
 4542
 4543fi
 4544fi
 4545AR=$ac_cv_prog_AR
 4546if test -n "$AR"; then
 4547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 4548printf "%s\n" "$AR" >&6; }
 4549else
 4550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4551printf "%s\n" "no" >&6; }
 4552fi
 4553
 4554
 4555
 4556AUTOCONF=${AUTOCONF-"$srcdir/missing --run autoconf"}
 4557
 4558AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"}
 4559
 4560
 4561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fparseln in -lutil" >&5
 4562printf %s "checking for fparseln in -lutil... " >&6; }
 4563if test ${ac_cv_lib_util_fparseln+y}
 4564then :
 4565 printf %s "(cached) " >&6
 4566else $as_nop
 4567 ac_check_lib_save_LIBS=$LIBS
 4568LIBS="-lutil $LIBS"
 4569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4570/* end confdefs.h. */
 4571
 4572/* Override any GCC internal prototype to avoid an error.
 4573 Use char because int might match the return type of a GCC
 4574 builtin and then its argument prototype would still apply. */
 4575char fparseln ();
 4576int
 4577main (void)
 4578{
 4579return fparseln ();
 4580 ;
 4581 return 0;
 4582}
 4583_ACEOF
 4584if ac_fn_c_try_link "$LINENO"
 4585then :
 4586 ac_cv_lib_util_fparseln=yes
 4587else $as_nop
 4588 ac_cv_lib_util_fparseln=no
 4589fi
 4590rm -f core conftest.err conftest.$ac_objext conftest.beam \
 4591 conftest$ac_exeext conftest.$ac_ext
 4592LIBS=$ac_check_lib_save_LIBS
 4593fi
 4594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_fparseln" >&5
 4595printf "%s\n" "$ac_cv_lib_util_fparseln" >&6; }
 4596if test "x$ac_cv_lib_util_fparseln" = xyes
 4597then :
 4598 printf "%s\n" "#define HAVE_LIBUTIL 1" >>confdefs.h
 4599
 4600 LIBS="-lutil $LIBS"
 4601
 4602fi
 4603
 4604
 4605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 4606printf %s "checking for grep that handles long lines and -e... " >&6; }
 4607if test ${ac_cv_path_GREP+y}
 4608then :
 4609 printf %s "(cached) " >&6
 4610else $as_nop
 4611 if test -z "$GREP"; then
 4612 ac_path_GREP_found=false
 4613 # Loop through the user's path and test for each of PROGNAME-LIST
 4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4615for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 4616do
 4617 IFS=$as_save_IFS
 4618 case $as_dir in #(((
 4619 '') as_dir=./ ;;
 4620 */) ;;
 4621 *) as_dir=$as_dir/ ;;
 4622 esac
 4623 for ac_prog in grep ggrep
 4624 do
 4625 for ac_exec_ext in '' $ac_executable_extensions; do
 4626 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
 4627 as_fn_executable_p "$ac_path_GREP" || continue
 4628# Check for GNU ac_path_GREP and select it if it is found.
 4629 # Check for GNU $ac_path_GREP
 4630case `"$ac_path_GREP" --version 2>&1` in
 4631*GNU*)
 4632 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 4633*)
 4634 ac_count=0
 4635 printf %s 0123456789 >"conftest.in"
 4636 while :
 4637 do
 4638 cat "conftest.in" "conftest.in" >"conftest.tmp"
 4639 mv "conftest.tmp" "conftest.in"
 4640 cp "conftest.in" "conftest.nl"
 4641 printf "%s\n" 'GREP' >> "conftest.nl"
 4642 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 4643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 4644 as_fn_arith $ac_count + 1 && ac_count=$as_val
 4645 if test $ac_count -gt ${ac_path_GREP_max-0}; then
 4646 # Best one so far, save it but keep looking for a better one
 4647 ac_cv_path_GREP="$ac_path_GREP"
 4648 ac_path_GREP_max=$ac_count
 4649 fi
 4650 # 10*(2^10) chars as input seems more than enough
 4651 test $ac_count -gt 10 && break
 4652 done
 4653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 4654esac
 4655
 4656 $ac_path_GREP_found && break 3
 4657 done
 4658 done
 4659 done
 4660IFS=$as_save_IFS
 4661 if test -z "$ac_cv_path_GREP"; then
 4662 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 4663 fi
4398else 4664else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4665 ac_cv_path_GREP=$GREP
4400$as_echo "no" >&6; } 
4401fi 4666fi
4402 4667
 4668fi
 4669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 4670printf "%s\n" "$ac_cv_path_GREP" >&6; }
 4671 GREP="$ac_cv_path_GREP"
4403 4672
4404 test -n "$AWK" && break 
4405done 
4406 4673
4407# Extract the first word of "ar", so it can be a program name with args. 4674# Autoupdate added the next two lines to ensure that your configure
4408set dummy ar; ac_word=$2 4675# script's behavior did not change. They are probably safe to remove.
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4676
4410$as_echo_n "checking for $ac_word... " >&6; } 4677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4411if ${ac_cv_prog_AR+:} false; then : 4678printf %s "checking for egrep... " >&6; }
4412 $as_echo_n "(cached) " >&6 4679if test ${ac_cv_path_EGREP+y}
4413else 4680then :
4414 if test -n "$AR"; then 4681 printf %s "(cached) " >&6
4415 ac_cv_prog_AR="$AR" # Let the user override the test. 4682else $as_nop
4416else 4683 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4684 then ac_cv_path_EGREP="$GREP -E"
4418for as_dir in $PATH 4685 else
 4686 if test -z "$EGREP"; then
 4687 ac_path_EGREP_found=false
 4688 # Loop through the user's path and test for each of PROGNAME-LIST
 4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4690for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4419do 4691do
4420 IFS=$as_save_IFS 4692 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=. 4693 case $as_dir in #(((
 4694 '') as_dir=./ ;;
 4695 */) ;;
 4696 *) as_dir=$as_dir/ ;;
 4697 esac
 4698 for ac_prog in egrep
 4699 do
4422 for ac_exec_ext in '' $ac_executable_extensions; do 4700 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4701 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4424 ac_cv_prog_AR="ar" 4702 as_fn_executable_p "$ac_path_EGREP" || continue
4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4703# Check for GNU ac_path_EGREP and select it if it is found.
4426 break 2 4704 # Check for GNU $ac_path_EGREP
4427 fi 4705case `"$ac_path_EGREP" --version 2>&1` in
4428done 4706*GNU*)
 4707 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 4708*)
 4709 ac_count=0
 4710 printf %s 0123456789 >"conftest.in"
 4711 while :
 4712 do
 4713 cat "conftest.in" "conftest.in" >"conftest.tmp"
 4714 mv "conftest.tmp" "conftest.in"
 4715 cp "conftest.in" "conftest.nl"
 4716 printf "%s\n" 'EGREP' >> "conftest.nl"
 4717 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 4718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 4719 as_fn_arith $ac_count + 1 && ac_count=$as_val
 4720 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 4721 # Best one so far, save it but keep looking for a better one
 4722 ac_cv_path_EGREP="$ac_path_EGREP"
 4723 ac_path_EGREP_max=$ac_count
 4724 fi
 4725 # 10*(2^10) chars as input seems more than enough
 4726 test $ac_count -gt 10 && break
 4727 done
 4728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 4729esac
 4730
 4731 $ac_path_EGREP_found && break 3
 4732 done
 4733 done
4429 done 4734 done
4430IFS=$as_save_IFS 4735IFS=$as_save_IFS
 4736 if test -z "$ac_cv_path_EGREP"; then
 4737 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 4738 fi
 4739else
 4740 ac_cv_path_EGREP=$EGREP
 4741fi
4431 4742
 4743 fi
4432fi 4744fi
 4745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 4746printf "%s\n" "$ac_cv_path_EGREP" >&6; }
 4747 EGREP="$ac_cv_path_EGREP"
 4748
 4749
 4750
 4751
 4752
 4753# Obsolete code to be removed.
 4754if test $ac_cv_header_sys_time_h = yes; then
 4755
 4756printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
 4757
4433fi 4758fi
4434AR=$ac_cv_prog_AR 4759# End of obsolete code.
4435if test -n "$AR"; then 4760
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4761ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4437$as_echo "$AR" >&6; } 4762if test "x$ac_cv_type__Bool" = xyes
4438else 4763then :
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4764
4440$as_echo "no" >&6; } 4765printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
 4766
 4767
4441fi 4768fi
4442 4769
 4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
 4771printf %s "checking for stdbool.h that conforms to C99... " >&6; }
 4772if test ${ac_cv_header_stdbool_h+y}
 4773then :
 4774 printf %s "(cached) " >&6
 4775else $as_nop
 4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4777/* end confdefs.h. */
 4778#include <stdbool.h>
 4779
 4780 #ifndef __bool_true_false_are_defined
 4781 #error "__bool_true_false_are_defined is not defined"
 4782 #endif
 4783 char a[__bool_true_false_are_defined == 1 ? 1 : -1];
4443 4784
 4785 /* Regardless of whether this is C++ or "_Bool" is a
 4786 valid type name, "true" and "false" should be usable
 4787 in #if expressions and integer constant expressions,
 4788 and "bool" should be a valid type name. */
4444 4789
4445AUTOCONF=${AUTOCONF-"$srcdir/missing --run autoconf"} 4790 #if !true
 4791 #error "'true' is not true"
 4792 #endif
 4793 #if true != 1
 4794 #error "'true' is not equal to 1"
 4795 #endif
 4796 char b[true == 1 ? 1 : -1];
 4797 char c[true];
4446 4798
4447AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"} 4799 #if false
 4800 #error "'false' is not false"
 4801 #endif
 4802 #if false != 0
 4803 #error "'false' is not equal to 0"
 4804 #endif
 4805 char d[false == 0 ? 1 : -1];
4448 4806
 4807 enum { e = false, f = true, g = false * true, h = true * 256 };
4449 4808
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fparseln in -lutil" >&5 4809 char i[(bool) 0.5 == true ? 1 : -1];
4451$as_echo_n "checking for fparseln in -lutil... " >&6; } 4810 char j[(bool) 0.0 == false ? 1 : -1];
4452if ${ac_cv_lib_util_fparseln+:} false; then : 4811 char k[sizeof (bool) > 0 ? 1 : -1];
4453 $as_echo_n "(cached) " >&6 4812
4454else 4813 struct sb { bool s: 1; bool t; } s;
4455 ac_check_lib_save_LIBS=$LIBS 4814 char l[sizeof s.t > 0 ? 1 : -1];
4456LIBS="-lutil $LIBS" 4815
4457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4816 /* The following fails for
4458/* end confdefs.h. */ 4817 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
 4818 bool m[h];
 4819 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
 4820 char o[-1 - (bool) 0 < 0 ? 1 : -1];
 4821 /* Catch a bug in an HP-UX C compiler. See
 4822 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 4823 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 4824 */
 4825 bool p = true;
 4826 bool *pp = &p;
 4827
 4828 /* C 1999 specifies that bool, true, and false are to be
 4829 macros, but C++ 2011 and later overrule this. */
 4830 #if __cplusplus < 201103
 4831 #ifndef bool
 4832 #error "bool is not defined"
 4833 #endif
 4834 #ifndef false
 4835 #error "false is not defined"
 4836 #endif
 4837 #ifndef true
 4838 #error "true is not defined"
 4839 #endif
 4840 #endif
 4841
 4842 /* If _Bool is available, repeat with it all the tests
 4843 above that used bool. */
 4844 #ifdef HAVE__BOOL
 4845 struct sB { _Bool s: 1; _Bool t; } t;
 4846
 4847 char q[(_Bool) 0.5 == true ? 1 : -1];
 4848 char r[(_Bool) 0.0 == false ? 1 : -1];
 4849 char u[sizeof (_Bool) > 0 ? 1 : -1];
 4850 char v[sizeof t.t > 0 ? 1 : -1];
 4851
 4852 _Bool w[h];
 4853 char x[sizeof m == h * sizeof m[0] ? 1 : -1];
 4854 char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
 4855 _Bool z = true;
 4856 _Bool *pz = &p;
 4857 #endif
4459 4858
4460/* Override any GCC internal prototype to avoid an error. 
4461 Use char because int might match the return type of a GCC 
4462 builtin and then its argument prototype would still apply. */ 
4463#ifdef __cplusplus 
4464extern "C" 
4465#endif 
4466char fparseln (); 
4467int 4859int
4468main () 4860main (void)
4469{ 4861{
4470return fparseln (); 4862
 4863 bool ps = &s;
 4864 *pp |= p;
 4865 *pp |= ! p;
 4866
 4867 #ifdef HAVE__BOOL
 4868 _Bool pt = &t;
 4869 *pz |= z;
 4870 *pz |= ! z;
 4871 #endif
 4872
 4873 /* Refer to every declared value, so they cannot be
 4874 discarded as unused. */
 4875 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
 4876 + !l + !m + !n + !o + !p + !pp + !ps
 4877 #ifdef HAVE__BOOL
 4878 + !q + !r + !u + !v + !w + !x + !y + !z + !pt
 4879 #endif
 4880 );
 4881
4471 ; 4882 ;
4472 return 0; 4883 return 0;
4473} 4884}
4474_ACEOF 4885_ACEOF
4475if ac_fn_c_try_link "$LINENO"; then : 4886if ac_fn_c_try_compile "$LINENO"
4476 ac_cv_lib_util_fparseln=yes 4887then :
4477else 4888 ac_cv_header_stdbool_h=yes
4478 ac_cv_lib_util_fparseln=no 4889else $as_nop
 4890 ac_cv_header_stdbool_h=no
4479fi 4891fi
4480rm -f core conftest.err conftest.$ac_objext \ 4892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4481 conftest$ac_exeext conftest.$ac_ext 
4482LIBS=$ac_check_lib_save_LIBS 
4483fi 4893fi
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_fparseln" >&5 4894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4485$as_echo "$ac_cv_lib_util_fparseln" >&6; } 4895printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
4486if test "x$ac_cv_lib_util_fparseln" = xyes; then : 
4487 cat >>confdefs.h <<_ACEOF 
4488#define HAVE_LIBUTIL 1 
4489_ACEOF 
4490 4896
4491 LIBS="-lutil $LIBS" 4897if test $ac_cv_header_stdbool_h = yes; then
 4898
 4899printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
4492 4900
4493fi 4901fi
4494 4902
4495 4903
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4904ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
4497$as_echo_n "checking for ANSI C header files... " >&6; } 4905if test "x$ac_cv_header_alloca_h" = xyes
4498if ${ac_cv_header_stdc+:} false; then : 4906then :
4499 $as_echo_n "(cached) " >&6 4907 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
4500else 
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
4502/* end confdefs.h. */ 
4503#include <stdlib.h> 
4504#include <stdarg.h> 
4505#include <string.h> 
4506#include <float.h> 
4507 4908
4508int 4909fi
4509main () 4910ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
4510{ 4911if test "x$ac_cv_header_assert_h" = xyes
 4912then :
 4913 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
4511 4914
4512 ; 
4513 return 0; 
4514} 
4515_ACEOF 
4516if ac_fn_c_try_compile "$LINENO"; then : 
4517 ac_cv_header_stdc=yes 
4518else 
4519 ac_cv_header_stdc=no 
4520fi 4915fi
4521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4916ac_fn_c_check_header_compile "$LINENO" "bsd/libutil.h" "ac_cv_header_bsd_libutil_h" "$ac_includes_default"
 4917if test "x$ac_cv_header_bsd_libutil_h" = xyes
 4918then :
 4919 printf "%s\n" "#define HAVE_BSD_LIBUTIL_H 1" >>confdefs.h
4522 4920
4523if test $ac_cv_header_stdc = yes; then 4921fi
4524 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4922ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4923if test "x$ac_cv_header_ctype_h" = xyes
4526/* end confdefs.h. */ 4924then :
4527#include <string.h> 4925 printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
4528 4926
4529_ACEOF 4927fi
4530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4928ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
4531 $EGREP "memchr" >/dev/null 2>&1; then : 4929if test "x$ac_cv_header_dirent_h" = xyes
 4930then :
 4931 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
4532 4932
4533else 
4534 ac_cv_header_stdc=no 
4535fi 4933fi
4536rm -f conftest* 4934ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
 4935if test "x$ac_cv_header_endian_h" = xyes
 4936then :
 4937 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
4537 4938
4538fi 4939fi
 4940ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
 4941if test "x$ac_cv_header_err_h" = xyes
 4942then :
 4943 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
4539 4944
4540if test $ac_cv_header_stdc = yes; then 4945fi
4541 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4946ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4947if test "x$ac_cv_header_errno_h" = xyes
4543/* end confdefs.h. */ 4948then :
4544#include <stdlib.h> 4949 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
4545 4950
4546_ACEOF 4951fi
4547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4952ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4548 $EGREP "free" >/dev/null 2>&1; then : 4953if test "x$ac_cv_header_fcntl_h" = xyes
 4954then :
 4955 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
4549 4956
4550else 
4551 ac_cv_header_stdc=no 
4552fi 4957fi
4553rm -f conftest* 4958ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
 4959if test "x$ac_cv_header_fnmatch_h" = xyes
 4960then :
 4961 printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h
4554 4962
4555fi 4963fi
 4964ac_fn_c_check_header_compile "$LINENO" "fts.h" "ac_cv_header_fts_h" "$ac_includes_default"
 4965if test "x$ac_cv_header_fts_h" = xyes
 4966then :
 4967 printf "%s\n" "#define HAVE_FTS_H 1" >>confdefs.h
4556 4968
4557if test $ac_cv_header_stdc = yes; then 4969fi
4558 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4970ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
4559 if test "$cross_compiling" = yes; then : 4971if test "x$ac_cv_header_grp_h" = xyes
4560 : 4972then :
4561else 4973 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
4563/* end confdefs.h. */ 
4564#include <ctype.h> 
4565#include <stdlib.h> 
4566#if ((' ' & 0x0FF) == 0x020) 
4567# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 
4568# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 
4569#else 
4570# define ISLOWER(c) \ 
4571 (('a' <= (c) && (c) <= 'i') \ 
4572 || ('j' <= (c) && (c) <= 'r') \ 
4573 || ('s' <= (c) && (c) <= 'z')) 
4574# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 
4575#endif 
4576 4974
4577#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4975fi
4578int 4976ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4579main () 4977if test "x$ac_cv_header_inttypes_h" = xyes
4580{ 4978then :
4581 int i; 4979 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
4582 for (i = 0; i < 256; i++) 
4583 if (XOR (islower (i), ISLOWER (i)) 
4584 || toupper (i) != TOUPPER (i)) 
4585 return 2; 
4586 return 0; 
4587} 
4588_ACEOF 
4589if ac_fn_c_try_run "$LINENO"; then : 
4590 4980
4591else 
4592 ac_cv_header_stdc=no 
4593fi 4981fi
4594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4982ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
4595 conftest.$ac_objext conftest.beam conftest.$ac_ext 4983if test "x$ac_cv_header_libutil_h" = xyes
 4984then :
 4985 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h
 4986
4596fi 4987fi
 4988ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
 4989if test "x$ac_cv_header_limits_h" = xyes
 4990then :
 4991 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
4597 4992
4598fi 4993fi
 4994ac_fn_c_check_header_compile "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
 4995if test "x$ac_cv_header_machine_endian_h" = xyes
 4996then :
 4997 printf "%s\n" "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
 4998
4599fi 4999fi
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5000ac_fn_c_check_header_compile "$LINENO" "ndir.h" "ac_cv_header_ndir_h" "$ac_includes_default"
4601$as_echo "$ac_cv_header_stdc" >&6; } 5001if test "x$ac_cv_header_ndir_h" = xyes
4602if test $ac_cv_header_stdc = yes; then 5002then :
 5003 printf "%s\n" "#define HAVE_NDIR_H 1" >>confdefs.h
4603 5004
4604$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5005fi
 5006ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
 5007if test "x$ac_cv_header_netdb_h" = xyes
 5008then :
 5009 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
4605 5010
4606fi 5011fi
 5012ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
 5013if test "x$ac_cv_header_paths_h" = xyes
 5014then :
 5015 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
4607 5016
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 5017fi
4609$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 5018ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
4610if ${ac_cv_header_time+:} false; then : 5019if test "x$ac_cv_header_pwd_h" = xyes
4611 $as_echo_n "(cached) " >&6 5020then :
4612else 5021 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
4614/* end confdefs.h. */ 
4615#include <sys/types.h> 
4616#include <sys/time.h> 
4617#include <time.h> 
4618 5022
4619int 
4620main () 
4621{ 
4622if ((struct tm *) 0) 
4623return 0; 
4624 ; 
4625 return 0; 
4626} 
4627_ACEOF 
4628if ac_fn_c_try_compile "$LINENO"; then : 
4629 ac_cv_header_time=yes 
4630else 
4631 ac_cv_header_time=no 
4632fi 5023fi
4633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5024ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
 5025if test "x$ac_cv_header_signal_h" = xyes
 5026then :
 5027 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
 5028
4634fi 5029fi
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 5030ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
4636$as_echo "$ac_cv_header_time" >&6; } 5031if test "x$ac_cv_header_stdarg_h" = xyes
4637if test $ac_cv_header_time = yes; then 5032then :
 5033 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
4638 5034
4639$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 5035fi
 5036ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
 5037if test "x$ac_cv_header_stddef_h" = xyes
 5038then :
 5039 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
4640 5040
4641fi 5041fi
 5042ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
 5043if test "x$ac_cv_header_stdint_h" = xyes
 5044then :
 5045 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
4642 5046
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 5047fi
4644$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 5048ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4645if ${ac_cv_header_stdbool_h+:} false; then : 5049if test "x$ac_cv_header_stdio_h" = xyes
4646 $as_echo_n "(cached) " >&6 5050then :
4647else 5051 printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
4649/* end confdefs.h. */ 
4650 5052
4651 #include <stdbool.h> 5053fi
4652 #ifndef bool 5054ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4653 "error: bool is not defined" 5055if test "x$ac_cv_header_stdlib_h" = xyes
4654 #endif 5056then :
4655 #ifndef false 5057 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
4656 "error: false is not defined" 
4657 #endif 
4658 #if false 
4659 "error: false is not 0" 
4660 #endif 
4661 #ifndef true 
4662 "error: true is not defined" 
4663 #endif 
4664 #if true != 1 
4665 "error: true is not 1" 
4666 #endif 
4667 #ifndef __bool_true_false_are_defined 
4668 "error: __bool_true_false_are_defined is not defined" 
4669 #endif 
4670 5058
4671 struct s { _Bool s: 1; _Bool t; } s; 5059fi
 5060ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
 5061if test "x$ac_cv_header_string_h" = xyes
 5062then :
 5063 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
4672 5064
4673 char a[true == 1 ? 1 : -1]; 5065fi
4674 char b[false == 0 ? 1 : -1]; 5066ac_fn_c_check_header_compile "$LINENO" "sys/byteorder.h" "ac_cv_header_sys_byteorder_h" "$ac_includes_default"
4675 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 5067if test "x$ac_cv_header_sys_byteorder_h" = xyes
4676 char d[(bool) 0.5 == true ? 1 : -1]; 5068then :
4677 /* See body of main program for 'e'. */ 5069 printf "%s\n" "#define HAVE_SYS_BYTEORDER_H 1" >>confdefs.h
4678 char f[(_Bool) 0.0 == false ? 1 : -1]; 
4679 char g[true]; 
4680 char h[sizeof (_Bool)]; 
4681 char i[sizeof s.t]; 
4682 enum { j = false, k = true, l = false * true, m = true * 256 }; 
4683 /* The following fails for 
4684 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 
4685 _Bool n[m]; 
4686 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 
4687 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 
4688 /* Catch a bug in an HP-UX C compiler. See 
4689 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 
4690 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 
4691 */ 
4692 _Bool q = true; 
4693 _Bool *pq = &q; 
4694 5070
4695int 5071fi
4696main () 5072ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
4697{ 5073if test "x$ac_cv_header_sys_cdefs_h" = xyes
 5074then :
 5075 printf "%s\n" "#define HAVE_SYS_CDEFS_H 1" >>confdefs.h
4698 5076
4699 bool e = &s; 5077fi
4700 *pq |= q; 5078ac_fn_c_check_header_compile "$LINENO" "sys/dir.h" "ac_cv_header_sys_dir_h" "$ac_includes_default"
4701 *pq |= ! q; 5079if test "x$ac_cv_header_sys_dir_h" = xyes
4702 /* Refer to every declared value, to avoid compiler optimizations. */ 5080then :
4703 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 5081 printf "%s\n" "#define HAVE_SYS_DIR_H 1" >>confdefs.h
4704 + !m + !n + !o + !p + !q + !pq); 
4705 5082
4706 ; 
4707 return 0; 
4708} 
4709_ACEOF 
4710if ac_fn_c_try_compile "$LINENO"; then : 
4711 ac_cv_header_stdbool_h=yes 
4712else 
4713 ac_cv_header_stdbool_h=no 
4714fi 5083fi
4715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5084ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
 5085if test "x$ac_cv_header_sys_endian_h" = xyes
 5086then :
 5087 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
 5088
4716fi 5089fi
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 5090ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
4718$as_echo "$ac_cv_header_stdbool_h" >&6; } 5091if test "x$ac_cv_header_sys_file_h" = xyes
4719 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 5092then :
4720if test "x$ac_cv_type__Bool" = xyes; then : 5093 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
4721 5094
4722cat >>confdefs.h <<_ACEOF 5095fi
4723#define HAVE__BOOL 1 5096ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4724_ACEOF 5097if test "x$ac_cv_header_sys_mkdev_h" = xyes
 5098then :
 5099 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
 5100
 5101fi
 5102ac_fn_c_check_header_compile "$LINENO" "sys/ndir.h" "ac_cv_header_sys_ndir_h" "$ac_includes_default"
 5103if test "x$ac_cv_header_sys_ndir_h" = xyes
 5104then :
 5105 printf "%s\n" "#define HAVE_SYS_NDIR_H 1" >>confdefs.h
 5106
 5107fi
 5108ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
 5109if test "x$ac_cv_header_sys_param_h" = xyes
 5110then :
 5111 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
 5112
 5113fi
 5114ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
 5115if test "x$ac_cv_header_sys_socket_h" = xyes
 5116then :
 5117 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
 5118
 5119fi
 5120ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
 5121if test "x$ac_cv_header_sys_stat_h" = xyes
 5122then :
 5123 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
 5124
 5125fi
 5126ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
 5127if test "x$ac_cv_header_sys_statfs_h" = xyes
 5128then :
 5129 printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
 5130
 5131fi
 5132ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
 5133if test "x$ac_cv_header_sys_statvfs_h" = xyes
 5134then :
 5135 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
 5136
 5137fi
 5138ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
 5139if test "x$ac_cv_header_sys_time_h" = xyes
 5140then :
 5141 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
 5142
 5143fi
 5144ac_fn_c_check_header_compile "$LINENO" "sys/ttycom.h" "ac_cv_header_sys_ttycom_h" "$ac_includes_default"
 5145if test "x$ac_cv_header_sys_ttycom_h" = xyes
 5146then :
 5147 printf "%s\n" "#define HAVE_SYS_TTYCOM_H 1" >>confdefs.h
 5148
 5149fi
 5150ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
 5151if test "x$ac_cv_header_sys_types_h" = xyes
 5152then :
 5153 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
4725 5154
 5155fi
 5156ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
 5157if test "x$ac_cv_header_sys_uio_h" = xyes
 5158then :
 5159 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
4726 5160
4727fi 5161fi
 5162ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
 5163if test "x$ac_cv_header_sys_vfs_h" = xyes
 5164then :
 5165 printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h
4728 5166
 5167fi
 5168ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
 5169if test "x$ac_cv_header_sysexits_h" = xyes
 5170then :
 5171 printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h
4729 5172
4730if test $ac_cv_header_stdbool_h = yes; then 5173fi
 5174ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
 5175if test "x$ac_cv_header_termcap_h" = xyes
 5176then :
 5177 printf "%s\n" "#define HAVE_TERMCAP_H 1" >>confdefs.h
4731 5178
4732$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 5179fi
 5180ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
 5181if test "x$ac_cv_header_time_h" = xyes
 5182then :
 5183 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
4733 5184
4734fi 5185fi
 5186ac_fn_c_check_header_compile "$LINENO" "tzfile.h" "ac_cv_header_tzfile_h" "$ac_includes_default"
 5187if test "x$ac_cv_header_tzfile_h" = xyes
 5188then :
 5189 printf "%s\n" "#define HAVE_TZFILE_H 1" >>confdefs.h
4735 5190
 5191fi
 5192ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
 5193if test "x$ac_cv_header_unistd_h" = xyes
 5194then :
 5195 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
4736 5196
4737for ac_header in alloca.h assert.h bsd/libutil.h ctype.h dirent.h endian.h \ 5197fi
4738 err.h errno.h fcntl.h fnmatch.h fts.h grp.h inttypes.h libutil.h \ 5198ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
4739 limits.h machine/endian.h ndir.h netdb.h paths.h pwd.h signal.h \ 5199if test "x$ac_cv_header_util_h" = xyes
4740 stdarg.h stddef.h stdint.h stdio.h \ 5200then :
4741 stdlib.h string.h sys/byteorder.h sys/cdefs.h sys/dir.h sys/endian.h \ 5201 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h
4742 sys/file.h sys/mkdev.h sys/ndir.h sys/param.h sys/socket.h sys/stat.h \ 
4743 sys/statfs.h sys/statvfs.h sys/time.h sys/ttycom.h sys/types.h \ 
4744 sys/uio.h sys/vfs.h sysexits.h termcap.h time.h tzfile.h unistd.h \ 
4745 util.h utime.h sys/mman.h 
4746 5202
4747do : 5203fi
4748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5204ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
4749ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5205if test "x$ac_cv_header_utime_h" = xyes
4750if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5206then :
4751 cat >>confdefs.h <<_ACEOF 5207 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
4752#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 
4753_ACEOF 
4754 5208
4755fi 5209fi
 5210ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
 5211if test "x$ac_cv_header_sys_mman_h" = xyes
 5212then :
 5213 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
4756 5214
4757done 5215fi
4758 5216
4759for ac_header in sys/mount.h 5217 for ac_header in sys/mount.h
4760do : 5218do :
4761 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" " 5219 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
4762 $ac_includes_default 5220 $ac_includes_default
4763 #ifdef HAVE_SYS_PARAM_H 5221 #ifdef HAVE_SYS_PARAM_H
4764 #include <sys/param.h> 5222 #include <sys/param.h>
4765 #endif 5223 #endif
4766 5224
4767" 5225"
4768if test "x$ac_cv_header_sys_mount_h" = xyes; then : 5226if test "x$ac_cv_header_sys_mount_h" = xyes
4769 cat >>confdefs.h <<_ACEOF 5227then :
4770#define HAVE_SYS_MOUNT_H 1 5228 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
4771_ACEOF 
4772 : 5229 :
4773else 5230else $as_nop
4774 : 5231 :
4775fi 5232fi
4776 5233
4777done 5234done
4778 5235
4779 5236ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
4780for ac_header in glob.h 5237if test "x$ac_cv_header_glob_h" = xyes
4781do : 5238then :
4782 ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default" 5239 printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h
4783if test "x$ac_cv_header_glob_h" = xyes; then : 
4784 cat >>confdefs.h <<_ACEOF 
4785#define HAVE_GLOB_H 1 
4786_ACEOF 
4787 5240
4788fi 5241fi
4789 5242
4790done 5243printf "%s\n" "#define HAVE_NBCOMPAT_GLOB 1" >>confdefs.h
4791 
4792$as_echo "#define HAVE_NBCOMPAT_GLOB 1" >>confdefs.h 
4793 5244
4794 5245
4795case " $LIBOBJS " in 5246case " $LIBOBJS " in
4796 *" glob.$ac_objext "* ) ;; 5247 *" glob.$ac_objext "* ) ;;
4797 *) LIBOBJS="$LIBOBJS glob.$ac_objext" 5248 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
4798 ;; 5249 ;;
4799esac 5250esac
4800 5251
4801 5252
4802for ac_header in sys/queue.h 5253ac_fn_c_check_header_compile "$LINENO" "sys/queue.h" "ac_cv_header_sys_queue_h" "$ac_includes_default"
4803do : 5254if test "x$ac_cv_header_sys_queue_h" = xyes
4804 ac_fn_c_check_header_mongrel "$LINENO" "sys/queue.h" "ac_cv_header_sys_queue_h" "$ac_includes_default" 5255then :
4805if test "x$ac_cv_header_sys_queue_h" = xyes; then : 5256 printf "%s\n" "#define HAVE_SYS_QUEUE_H 1" >>confdefs.h
4806 cat >>confdefs.h <<_ACEOF 
4807#define HAVE_SYS_QUEUE_H 1 
4808_ACEOF 
4809 5257
4810fi 5258fi
4811 5259
4812done 5260printf "%s\n" "#define HAVE_NBCOMPAT_QUEUE 1" >>confdefs.h
4813 
4814$as_echo "#define HAVE_NBCOMPAT_QUEUE 1" >>confdefs.h 
4815 5261
4816 5262
4817 5263
4818for ac_header in regex.h 5264ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
4819do : 5265if test "x$ac_cv_header_regex_h" = xyes
4820 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default" 5266then :
4821if test "x$ac_cv_header_regex_h" = xyes; then : 5267 printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
4822 cat >>confdefs.h <<_ACEOF 
4823#define HAVE_REGEX_H 1 
4824_ACEOF 
4825 5268
4826fi 5269fi
4827 5270
4828done 
4829 
4830ac_fn_c_check_func "$LINENO" "regexec" "ac_cv_func_regexec" 5271ac_fn_c_check_func "$LINENO" "regexec" "ac_cv_func_regexec"
4831if test "x$ac_cv_func_regexec" = xyes; then : 5272if test "x$ac_cv_func_regexec" = xyes
 5273then :
4832 : 5274 :
4833else 5275else $as_nop
4834 5276
4835 $as_echo "#define HAVE_NBCOMPAT_REGEX 1" >>confdefs.h 5277 printf "%s\n" "#define HAVE_NBCOMPAT_REGEX 1" >>confdefs.h
4836 5278
4837 5279
4838 case " $LIBOBJS " in 5280 case " $LIBOBJS " in
4839 *" regcomp.$ac_objext "* ) ;; 5281 *" regcomp.$ac_objext "* ) ;;
4840 *) LIBOBJS="$LIBOBJS regcomp.$ac_objext" 5282 *) LIBOBJS="$LIBOBJS regcomp.$ac_objext"
4841 ;; 5283 ;;
4842esac 5284esac
4843 5285
4844 case " $LIBOBJS " in 5286 case " $LIBOBJS " in
4845 *" regerror.$ac_objext "* ) ;; 5287 *" regerror.$ac_objext "* ) ;;
4846 *) LIBOBJS="$LIBOBJS regerror.$ac_objext" 5288 *) LIBOBJS="$LIBOBJS regerror.$ac_objext"
4847 ;; 5289 ;;
4848esac 5290esac
@@ -4854,2673 +5296,2822 @@ esac @@ -4854,2673 +5296,2822 @@ esac
4854esac 5296esac
4855 5297
4856 case " $LIBOBJS " in 5298 case " $LIBOBJS " in
4857 *" regfree.$ac_objext "* ) ;; 5299 *" regfree.$ac_objext "* ) ;;
4858 *) LIBOBJS="$LIBOBJS regfree.$ac_objext" 5300 *) LIBOBJS="$LIBOBJS regfree.$ac_objext"
4859 ;; 5301 ;;
4860esac 5302esac
4861 5303
4862 5304
4863fi 5305fi
4864 5306
4865 5307
4866 5308
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
4868$as_echo_n "checking for va_copy... " >&6; } 5310printf %s "checking for va_copy... " >&6; }
4869if ${pkg_cv_have_va_copy+:} false; then : 5311if test ${pkg_cv_have_va_copy+y}
4870 $as_echo_n "(cached) " >&6 5312then :
4871else 5313 printf %s "(cached) " >&6
 5314else $as_nop
4872 5315
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874/* end confdefs.h. */ 5317/* end confdefs.h. */
4875 5318
4876#include <stdarg.h> 5319#include <stdarg.h>
4877 5320
4878int 5321int
4879main () 5322main (void)
4880{ 5323{
4881 5324
4882 va_list ap, ap2; 5325 va_list ap, ap2;
4883 va_copy(ap2, ap); 5326 va_copy(ap2, ap);
4884 return 0; 5327 return 0;
4885; 5328;
4886 ; 5329 ;
4887 return 0; 5330 return 0;
4888} 5331}
4889_ACEOF 5332_ACEOF
4890if ac_fn_c_try_link "$LINENO"; then : 5333if ac_fn_c_try_link "$LINENO"
 5334then :
4891 pkg_cv_have_va_copy=yes 5335 pkg_cv_have_va_copy=yes
4892else 5336else $as_nop
4893 pkg_cv_have_va_copy=no 5337 pkg_cv_have_va_copy=no
4894fi 5338fi
4895rm -f core conftest.err conftest.$ac_objext \ 5339rm -f core conftest.err conftest.$ac_objext conftest.beam \
4896 conftest$ac_exeext conftest.$ac_ext 5340 conftest$ac_exeext conftest.$ac_ext
4897 5341
4898fi 5342fi
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_have_va_copy" >&5 5343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_have_va_copy" >&5
4900$as_echo "$pkg_cv_have_va_copy" >&6; } 5344printf "%s\n" "$pkg_cv_have_va_copy" >&6; }
4901 if test "x$pkg_cv_have_va_copy" = "xyes"; then 5345 if test "x$pkg_cv_have_va_copy" = "xyes"; then
4902 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h 5346 printf "%s\n" "#define HAVE_VA_COPY 1" >>confdefs.h
4903 5347
4904 5348
4905 else 5349 else
4906 : 5350 :
4907] 5351]
4908 : 5352 :
4909 fi 5353 fi
4910 5354
4911 5355
4912 5356
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_va_copy" >&5 5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_va_copy" >&5
4914$as_echo_n "checking for __builtin_va_copy... " >&6; } 5358printf %s "checking for __builtin_va_copy... " >&6; }
4915if ${pkg_cv_have___builtin_va_copy+:} false; then : 5359if test ${pkg_cv_have___builtin_va_copy+y}
4916 $as_echo_n "(cached) " >&6 5360then :
4917else 5361 printf %s "(cached) " >&6
 5362else $as_nop
4918 5363
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920/* end confdefs.h. */ 5365/* end confdefs.h. */
4921 5366
4922#include <stdarg.h> 5367#include <stdarg.h>
4923 5368
4924int 5369int
4925main () 5370main (void)
4926{ 5371{
4927 5372
4928 va_list ap, ap2; 5373 va_list ap, ap2;
4929 __builtin_va_copy(ap2, ap); 5374 __builtin_va_copy(ap2, ap);
4930 return 0; 5375 return 0;
4931; 5376;
4932 ; 5377 ;
4933 return 0; 5378 return 0;
4934} 5379}
4935_ACEOF 5380_ACEOF
4936if ac_fn_c_try_link "$LINENO"; then : 5381if ac_fn_c_try_link "$LINENO"
 5382then :
4937 pkg_cv_have___builtin_va_copy=yes 5383 pkg_cv_have___builtin_va_copy=yes
4938else 5384else $as_nop
4939 pkg_cv_have___builtin_va_copy=no 5385 pkg_cv_have___builtin_va_copy=no
4940fi 5386fi
4941rm -f core conftest.err conftest.$ac_objext \ 5387rm -f core conftest.err conftest.$ac_objext conftest.beam \
4942 conftest$ac_exeext conftest.$ac_ext 5388 conftest$ac_exeext conftest.$ac_ext
4943 5389
4944fi 5390fi
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_have___builtin_va_copy" >&5 5391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_have___builtin_va_copy" >&5
4946$as_echo "$pkg_cv_have___builtin_va_copy" >&6; } 5392printf "%s\n" "$pkg_cv_have___builtin_va_copy" >&6; }
4947 if test "x$pkg_cv_have___builtin_va_copy" = "xyes"; then 5393 if test "x$pkg_cv_have___builtin_va_copy" = "xyes"; then
4948 $as_echo "#define HAVE___BUILTIN_VA_COPY 1" >>confdefs.h 5394 printf "%s\n" "#define HAVE___BUILTIN_VA_COPY 1" >>confdefs.h
4949 5395
4950 5396
4951 else 5397 else
4952 : 5398 :
4953] 5399]
4954 : 5400 :
4955 fi 5401 fi
4956 5402
4957 5403
4958for ac_header in md5.h 5404 for ac_header in md5.h
4959do : 5405do :
4960 ac_fn_c_check_header_mongrel "$LINENO" "md5.h" "ac_cv_header_md5_h" "$ac_includes_default" 5406 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "$ac_includes_default"
4961if test "x$ac_cv_header_md5_h" = xyes; then : 5407if test "x$ac_cv_header_md5_h" = xyes
4962 cat >>confdefs.h <<_ACEOF 5408then :
4963#define HAVE_MD5_H 1 5409 printf "%s\n" "#define HAVE_MD5_H 1" >>confdefs.h
4964_ACEOF 
4965 5410
4966 5411
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5Init in md5.h" >&5 5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MD5Init in md5.h" >&5
4968$as_echo_n "checking for MD5Init in md5.h... " >&6; } 5413printf %s "checking for MD5Init in md5.h... " >&6; }
4969if ${pkg_cv_have_md5init+:} false; then : 5414if test ${pkg_cv_have_md5init+y}
4970 $as_echo_n "(cached) " >&6 5415then :
4971else 5416 printf %s "(cached) " >&6
 5417else $as_nop
4972 5418
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974/* end confdefs.h. */ 5420/* end confdefs.h. */
4975 5421
4976 #include <sys/types.h> 5422 #include <sys/types.h>
4977 #include <md5.h> 5423 #include <md5.h>
4978 5424
4979int 5425int
4980main () 5426main (void)
4981{ 5427{
4982 5428
4983 MD5_CTX *f; 5429 MD5_CTX *f;
4984 MD5Init(f); 5430 MD5Init(f);
4985 ; 5431 ;
4986 ; 5432 ;
4987 return 0; 5433 return 0;
4988} 5434}
4989_ACEOF 5435_ACEOF
4990if ac_fn_c_try_compile "$LINENO"; then : 5436if ac_fn_c_try_compile "$LINENO"
 5437then :
4991 pkg_cv_have_md5init=yes 5438 pkg_cv_have_md5init=yes
4992else 5439else $as_nop
4993 pkg_cv_have_md5init=no 5440 pkg_cv_have_md5init=no
4994fi 5441fi
4995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4996 5443
4997fi 5444fi
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_have_md5init" >&5 5445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_have_md5init" >&5
4999$as_echo "$pkg_cv_have_md5init" >&6; } 5446printf "%s\n" "$pkg_cv_have_md5init" >&6; }
5000 if test "x$pkg_cv_have_md5init" = "xyes"; then 5447 if test "x$pkg_cv_have_md5init" = "xyes"; then
5001 : 5448 :
5002 else 5449 else
5003 5450
5004 $as_echo "#define HAVE_NBCOMPAT_MD5INIT 1" >>confdefs.h 5451 printf "%s\n" "#define HAVE_NBCOMPAT_MD5INIT 1" >>confdefs.h
5005 5452
5006 5453
5007 5454
5008 : 5455 :
5009 fi 5456 fi
5010 5457
5011 5458
5012fi 5459fi
5013 5460
5014done 5461done
5015 5462
 5463ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "$ac_includes_default"
 5464if test "x$ac_cv_header_md5_h" = xyes
 5465then :
 5466 printf "%s\n" "#define HAVE_MD5_H 1" >>confdefs.h
5016 5467
5017for ac_header in md5.h rmd160.h sha1.h sha2.h 5468fi
5018do : 5469ac_fn_c_check_header_compile "$LINENO" "rmd160.h" "ac_cv_header_rmd160_h" "$ac_includes_default"
5019 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5470if test "x$ac_cv_header_rmd160_h" = xyes
5020ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5471then :
5021if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5472 printf "%s\n" "#define HAVE_RMD160_H 1" >>confdefs.h
5022 cat >>confdefs.h <<_ACEOF 
5023#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 
5024_ACEOF 
5025 5473
5026fi 5474fi
 5475ac_fn_c_check_header_compile "$LINENO" "sha1.h" "ac_cv_header_sha1_h" "$ac_includes_default"
 5476if test "x$ac_cv_header_sha1_h" = xyes
 5477then :
 5478 printf "%s\n" "#define HAVE_SHA1_H 1" >>confdefs.h
5027 5479
5028done 5480fi
 5481ac_fn_c_check_header_compile "$LINENO" "sha2.h" "ac_cv_header_sha2_h" "$ac_includes_default"
 5482if test "x$ac_cv_header_sha2_h" = xyes
 5483then :
 5484 printf "%s\n" "#define HAVE_SHA2_H 1" >>confdefs.h
 5485
 5486fi
5029 5487
5030ac_fn_c_check_func "$LINENO" "MD5File" "ac_cv_func_MD5File" 5488ac_fn_c_check_func "$LINENO" "MD5File" "ac_cv_func_MD5File"
5031if test "x$ac_cv_func_MD5File" = xyes; then : 5489if test "x$ac_cv_func_MD5File" = xyes
 5490then :
5032 : 5491 :
5033else 5492else $as_nop
5034 5493
5035 $as_echo "#define HAVE_NBCOMPAT_MD5 1" >>confdefs.h 5494 printf "%s\n" "#define HAVE_NBCOMPAT_MD5 1" >>confdefs.h
5036 5495
5037 5496
5038 case " $LIBOBJS " in 5497 case " $LIBOBJS " in
5039 *" md5c.$ac_objext "* ) ;; 5498 *" md5c.$ac_objext "* ) ;;
5040 *) LIBOBJS="$LIBOBJS md5c.$ac_objext" 5499 *) LIBOBJS="$LIBOBJS md5c.$ac_objext"
5041 ;; 5500 ;;
5042esac 5501esac
5043 5502
5044 case " $LIBOBJS " in 5503 case " $LIBOBJS " in
5045 *" md5hl.$ac_objext "* ) ;; 5504 *" md5hl.$ac_objext "* ) ;;
5046 *) LIBOBJS="$LIBOBJS md5hl.$ac_objext" 5505 *) LIBOBJS="$LIBOBJS md5hl.$ac_objext"
5047 ;; 5506 ;;
5048esac 5507esac
5049 5508
5050 5509
5051fi 5510fi
5052 5511
5053ac_fn_c_check_func "$LINENO" "RMD160File" "ac_cv_func_RMD160File" 5512ac_fn_c_check_func "$LINENO" "RMD160File" "ac_cv_func_RMD160File"
5054if test "x$ac_cv_func_RMD160File" = xyes; then : 5513if test "x$ac_cv_func_RMD160File" = xyes
 5514then :
5055 : 5515 :
5056else 5516else $as_nop
5057 5517
5058 $as_echo "#define HAVE_NBCOMPAT_RMD160 1" >>confdefs.h 5518 printf "%s\n" "#define HAVE_NBCOMPAT_RMD160 1" >>confdefs.h
5059 5519
5060 5520
5061 case " $LIBOBJS " in 5521 case " $LIBOBJS " in
5062 *" rmd160.$ac_objext "* ) ;; 5522 *" rmd160.$ac_objext "* ) ;;
5063 *) LIBOBJS="$LIBOBJS rmd160.$ac_objext" 5523 *) LIBOBJS="$LIBOBJS rmd160.$ac_objext"
5064 ;; 5524 ;;
5065esac 5525esac
5066 5526
5067 case " $LIBOBJS " in 5527 case " $LIBOBJS " in
5068 *" rmd160hl.$ac_objext "* ) ;; 5528 *" rmd160hl.$ac_objext "* ) ;;
5069 *) LIBOBJS="$LIBOBJS rmd160hl.$ac_objext" 5529 *) LIBOBJS="$LIBOBJS rmd160hl.$ac_objext"
5070 ;; 5530 ;;
5071esac 5531esac
5072 5532
5073 5533
5074fi 5534fi
5075 5535
5076ac_fn_c_check_func "$LINENO" "SHA1File" "ac_cv_func_SHA1File" 5536ac_fn_c_check_func "$LINENO" "SHA1File" "ac_cv_func_SHA1File"
5077if test "x$ac_cv_func_SHA1File" = xyes; then : 5537if test "x$ac_cv_func_SHA1File" = xyes
 5538then :
5078 : 5539 :
5079else 5540else $as_nop
5080 5541
5081 $as_echo "#define HAVE_NBCOMPAT_SHA1 1" >>confdefs.h 5542 printf "%s\n" "#define HAVE_NBCOMPAT_SHA1 1" >>confdefs.h
5082 5543
5083 5544
5084 case " $LIBOBJS " in 5545 case " $LIBOBJS " in
5085 *" sha1.$ac_objext "* ) ;; 5546 *" sha1.$ac_objext "* ) ;;
5086 *) LIBOBJS="$LIBOBJS sha1.$ac_objext" 5547 *) LIBOBJS="$LIBOBJS sha1.$ac_objext"
5087 ;; 5548 ;;
5088esac 5549esac
5089 5550
5090 case " $LIBOBJS " in 5551 case " $LIBOBJS " in
5091 *" sha1hl.$ac_objext "* ) ;; 5552 *" sha1hl.$ac_objext "* ) ;;
5092 *) LIBOBJS="$LIBOBJS sha1hl.$ac_objext" 5553 *) LIBOBJS="$LIBOBJS sha1hl.$ac_objext"
5093 ;; 5554 ;;
5094esac 5555esac
5095 5556
5096 5557
5097fi 5558fi
5098 5559
5099 5560
5100ac_fn_c_check_func "$LINENO" "SHA512_File" "ac_cv_func_SHA512_File" 5561ac_fn_c_check_func "$LINENO" "SHA512_File" "ac_cv_func_SHA512_File"
5101if test "x$ac_cv_func_SHA512_File" = xyes; then : 5562if test "x$ac_cv_func_SHA512_File" = xyes
 5563then :
5102 : 5564 :
5103else 5565else $as_nop
5104 5566
5105 $as_echo "#define HAVE_NBCOMPAT_SHA2 1" >>confdefs.h 5567 printf "%s\n" "#define HAVE_NBCOMPAT_SHA2 1" >>confdefs.h
5106 5568
5107 5569
5108 case " $LIBOBJS " in 5570 case " $LIBOBJS " in
5109 *" sha2.$ac_objext "* ) ;; 5571 *" sha2.$ac_objext "* ) ;;
5110 *) LIBOBJS="$LIBOBJS sha2.$ac_objext" 5572 *) LIBOBJS="$LIBOBJS sha2.$ac_objext"
5111 ;; 5573 ;;
5112esac 5574esac
5113 5575
5114 case " $LIBOBJS " in 5576 case " $LIBOBJS " in
5115 *" sha2hl.$ac_objext "* ) ;; 5577 *" sha2hl.$ac_objext "* ) ;;
5116 *) LIBOBJS="$LIBOBJS sha2hl.$ac_objext" 5578 *) LIBOBJS="$LIBOBJS sha2hl.$ac_objext"
5117 ;; 5579 ;;
5118esac 5580esac
5119 5581
5120 5582
5121fi 5583fi
5122 5584
5123 5585
5124case $host in 5586case $host in
5125*-*-hpux*) 5587*-*-hpux*)
5126 $as_echo "#define BROKEN_PREAD 1" >>confdefs.h 5588 printf "%s\n" "#define BROKEN_PREAD 1" >>confdefs.h
5127 5589
5128 5590
5129 $as_echo "#define BROKEN_PWRITE 1" >>confdefs.h 5591 printf "%s\n" "#define BROKEN_PWRITE 1" >>confdefs.h
5130 5592
5131 5593
5132 ;; 5594 ;;
5133*-*-sco3.2v5*) 5595*-*-sco3.2v5*)
5134 $as_echo "#define BROKEN_PREAD 1" >>confdefs.h 5596 printf "%s\n" "#define BROKEN_PREAD 1" >>confdefs.h
5135 5597
5136 5598
5137 $as_echo "#define BROKEN_PWRITE 1" >>confdefs.h 5599 printf "%s\n" "#define BROKEN_PWRITE 1" >>confdefs.h
5138 5600
5139 5601
5140 ;; 5602 ;;
5141esac 5603esac
5142 5604
5143# Check whether --enable-db was given. 5605# Check whether --enable-db was given.
5144if test "${enable_db+set}" = set; then : 5606if test ${enable_db+y}
 5607then :
5145 enableval=$enable_db; 5608 enableval=$enable_db;
5146fi 5609fi
5147 5610
5148WITH_DB=$enable_db 5611WITH_DB=$enable_db
5149 5612
5150for ac_func in issetugid 5613ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
5151do : 5614if test "x$ac_cv_func_issetugid" = xyes
5152 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 5615then :
5153if test "x$ac_cv_func_issetugid" = xyes; then : 5616 printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h
5154 cat >>confdefs.h <<_ACEOF 
5155#define HAVE_ISSETUGID 1 
5156_ACEOF 
5157 5617
5158fi 5618fi
5159done 
5160 5619
5161 5620
5162# Check whether --enable-bsd-getopt was given. 5621# Check whether --enable-bsd-getopt was given.
5163if test "${enable_bsd_getopt+set}" = set; then : 5622if test ${enable_bsd_getopt+y}
 5623then :
5164 enableval=$enable_bsd_getopt; 5624 enableval=$enable_bsd_getopt;
5165fi 5625fi
5166 5626
5167 5627
5168ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" " 5628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
 5629printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
 5630if test ${ac_cv_c_undeclared_builtin_options+y}
 5631then :
 5632 printf %s "(cached) " >&6
 5633else $as_nop
 5634 ac_save_CFLAGS=$CFLAGS
 5635 ac_cv_c_undeclared_builtin_options='cannot detect'
 5636 for ac_arg in '' -fno-builtin; do
 5637 CFLAGS="$ac_save_CFLAGS $ac_arg"
 5638 # This test program should *not* compile successfully.
 5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5640/* end confdefs.h. */
 5641
 5642int
 5643main (void)
 5644{
 5645(void) strchr;
 5646 ;
 5647 return 0;
 5648}
 5649_ACEOF
 5650if ac_fn_c_try_compile "$LINENO"
 5651then :
 5652
 5653else $as_nop
 5654 # This test program should compile successfully.
 5655 # No library function is consistently available on
 5656 # freestanding implementations, so test against a dummy
 5657 # declaration. Include always-available headers on the
 5658 # off chance that they somehow elicit warnings.
 5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5660/* end confdefs.h. */
 5661#include <float.h>
 5662#include <limits.h>
 5663#include <stdarg.h>
 5664#include <stddef.h>
 5665extern void ac_decl (int, char *);
 5666
 5667int
 5668main (void)
 5669{
 5670(void) ac_decl (0, (char *) 0);
 5671 (void) ac_decl;
 5672
 5673 ;
 5674 return 0;
 5675}
 5676_ACEOF
 5677if ac_fn_c_try_compile "$LINENO"
 5678then :
 5679 if test x"$ac_arg" = x
 5680then :
 5681 ac_cv_c_undeclared_builtin_options='none needed'
 5682else $as_nop
 5683 ac_cv_c_undeclared_builtin_options=$ac_arg
 5684fi
 5685 break
 5686fi
 5687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 5688fi
 5689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 5690 done
 5691 CFLAGS=$ac_save_CFLAGS
 5692
 5693fi
 5694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
 5695printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
 5696 case $ac_cv_c_undeclared_builtin_options in #(
 5697 'cannot detect') :
 5698 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 5699printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 5700as_fn_error $? "cannot make $CC report undeclared builtins
 5701See \`config.log' for more details" "$LINENO" 5; } ;; #(
 5702 'none needed') :
 5703 ac_c_undeclared_builtin_options='' ;; #(
 5704 *) :
 5705 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
 5706esac
 5707
 5708ac_fn_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "
5169 #include <stdio.h> 5709 #include <stdio.h>
5170 #include <stdlib.h> 5710 #include <stdlib.h>
5171 #include <unistd.h> 5711 #include <unistd.h>
5172 5712
5173" 5713" "$ac_c_undeclared_builtin_options" "CFLAGS"
5174if test "x$ac_cv_have_decl_optarg" = xyes; then : 5714if test "x$ac_cv_have_decl_optarg" = xyes
 5715then :
5175 ac_have_decl=1 5716 ac_have_decl=1
5176else 5717else $as_nop
5177 ac_have_decl=0 5718 ac_have_decl=0
5178fi 5719fi
5179 5720printf "%s\n" "#define HAVE_DECL_OPTARG $ac_have_decl" >>confdefs.h
5180cat >>confdefs.h <<_ACEOF 5721if test $ac_have_decl = 1
5181#define HAVE_DECL_OPTARG $ac_have_decl 5722then :
5182_ACEOF 
5183if test $ac_have_decl = 1; then : 
5184 : 5723 :
5185else 5724else $as_nop
5186 : 5725 :
5187fi 5726fi
5188ac_fn_c_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" " 5727ac_fn_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" "
5189 #include <stdio.h> 5728 #include <stdio.h>
5190 #include <stdlib.h> 5729 #include <stdlib.h>
5191 #include <unistd.h> 5730 #include <unistd.h>
5192 5731
5193" 5732" "$ac_c_undeclared_builtin_options" "CFLAGS"
5194if test "x$ac_cv_have_decl_optind" = xyes; then : 5733if test "x$ac_cv_have_decl_optind" = xyes
 5734then :
5195 ac_have_decl=1 5735 ac_have_decl=1
5196else 5736else $as_nop
5197 ac_have_decl=0 5737 ac_have_decl=0
5198fi 5738fi
5199 5739printf "%s\n" "#define HAVE_DECL_OPTIND $ac_have_decl" >>confdefs.h
5200cat >>confdefs.h <<_ACEOF 5740if test $ac_have_decl = 1
5201#define HAVE_DECL_OPTIND $ac_have_decl 5741then :
5202_ACEOF 
5203if test $ac_have_decl = 1; then : 
5204 : 5742 :
5205else 5743else $as_nop
5206 : 5744 :
5207fi 5745fi
5208ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" " 5746ac_fn_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "
5209 #include <stdio.h> 5747 #include <stdio.h>
5210 #include <stdlib.h> 5748 #include <stdlib.h>
5211 #include <unistd.h> 5749 #include <unistd.h>
5212 5750
5213" 5751" "$ac_c_undeclared_builtin_options" "CFLAGS"
5214if test "x$ac_cv_have_decl_optreset" = xyes; then : 5752if test "x$ac_cv_have_decl_optreset" = xyes
 5753then :
5215 ac_have_decl=1 5754 ac_have_decl=1
5216else 5755else $as_nop
5217 ac_have_decl=0 5756 ac_have_decl=0
5218fi 5757fi
5219 5758printf "%s\n" "#define HAVE_DECL_OPTRESET $ac_have_decl" >>confdefs.h
5220cat >>confdefs.h <<_ACEOF 5759if test $ac_have_decl = 1
5221#define HAVE_DECL_OPTRESET $ac_have_decl 5760then :
5222_ACEOF 
5223if test $ac_have_decl = 1; then : 
5224 : 5761 :
5225else 5762else $as_nop
5226 : 5763 :
5227fi 5764fi
5228 5765
5229 5766
5230our_getopt_long=no 5767our_getopt_long=no
5231for ac_header in getopt.h 5768 for ac_header in getopt.h
5232do : 5769do :
5233 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 5770 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
5234if test "x$ac_cv_header_getopt_h" = xyes; then : 5771if test "x$ac_cv_header_getopt_h" = xyes
5235 cat >>confdefs.h <<_ACEOF 5772then :
5236#define HAVE_GETOPT_H 1 5773 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
5237_ACEOF 
5238 ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#include <getopt.h> 5774 ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#include <getopt.h>
5239" 5775"
5240if test "x$ac_cv_type_struct_option" = xyes; then : 5776if test "x$ac_cv_type_struct_option" = xyes
 5777then :
5241 5778
5242cat >>confdefs.h <<_ACEOF 5779printf "%s\n" "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
5243#define HAVE_STRUCT_OPTION 1 
5244_ACEOF 
5245 5780
5246: 5781:
5247else 5782else $as_nop
5248 our_getopt_long=yes 5783 our_getopt_long=yes
5249fi 5784fi
5250 5785
5251else 5786else $as_nop
5252 our_getopt_long=yes 5787 our_getopt_long=yes
5253 5788
5254fi 5789fi
5255 5790
5256done 5791done
5257 5792
5258 
5259if test "$enable_bsd_getopt" = yes; then 5793if test "$enable_bsd_getopt" = yes; then
5260 if test "$ac_cv_have_decl_optreset" = no; then 5794 if test "$ac_cv_have_decl_optreset" = no; then
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: Using included getopt and getopt_long" >&5 5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using included getopt and getopt_long" >&5
5262$as_echo "$as_me: Using included getopt and getopt_long" >&6;} 5796printf "%s\n" "$as_me: Using included getopt and getopt_long" >&6;}
5263 case " $LIBOBJS " in 5797 case " $LIBOBJS " in
5264 *" getopt.$ac_objext "* ) ;; 5798 *" getopt.$ac_objext "* ) ;;
5265 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 5799 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
5266 ;; 5800 ;;
5267esac 5801esac
5268 5802
5269 our_getopt_long=yes 5803 our_getopt_long=yes
5270 fi 5804 fi
5271fi 5805fi
5272 5806
5273if test "$our_getopt_long" = "yes"; then 5807if test "$our_getopt_long" = "yes"; then
5274 case " $LIBOBJS " in 5808 case " $LIBOBJS " in
5275 *" getopt_long.$ac_objext "* ) ;; 5809 *" getopt_long.$ac_objext "* ) ;;
5276 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 5810 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
5277 ;; 5811 ;;
5278esac 5812esac
5279 5813
5280fi 5814fi
5281 5815
5282pkg_use_nbcompat_vis=yes 5816pkg_use_nbcompat_vis=yes
5283for ac_header in vis.h 5817 for ac_header in vis.h
5284do : 5818do :
5285 ac_fn_c_check_header_mongrel "$LINENO" "vis.h" "ac_cv_header_vis_h" "$ac_includes_default" 5819 ac_fn_c_check_header_compile "$LINENO" "vis.h" "ac_cv_header_vis_h" "$ac_includes_default"
5286if test "x$ac_cv_header_vis_h" = xyes; then : 5820if test "x$ac_cv_header_vis_h" = xyes
5287 cat >>confdefs.h <<_ACEOF 5821then :
5288#define HAVE_VIS_H 1 5822 printf "%s\n" "#define HAVE_VIS_H 1" >>confdefs.h
5289_ACEOF 
5290 5823
5291 5824
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VIS_WHITE in vis.h" >&5 5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for VIS_WHITE in vis.h" >&5
5293$as_echo_n "checking for VIS_WHITE in vis.h... " >&6; } 5826printf %s "checking for VIS_WHITE in vis.h... " >&6; }
5294if ${pkg_cv_have_vis_white+:} false; then : 5827if test ${pkg_cv_have_vis_white+y}
5295 $as_echo_n "(cached) " >&6 5828then :
5296else 5829 printf %s "(cached) " >&6
 5830else $as_nop
5297 5831
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299/* end confdefs.h. */ 5833/* end confdefs.h. */
5300 5834
5301 #include <sys/types.h> 5835 #include <sys/types.h>
5302 #include <vis.h> 5836 #include <vis.h>
5303 5837
5304int 5838int
5305main () 5839main (void)
5306{ 5840{
5307 int X = VIS_WHITE; ; 5841 int X = VIS_WHITE; ;
5308 ; 5842 ;
5309 return 0; 5843 return 0;
5310} 5844}
5311_ACEOF 5845_ACEOF
5312if ac_fn_c_try_compile "$LINENO"; then : 5846if ac_fn_c_try_compile "$LINENO"
 5847then :
5313 pkg_cv_have_vis_white=yes 5848 pkg_cv_have_vis_white=yes
5314else 5849else $as_nop
5315 pkg_cv_have_vis_white=no 5850 pkg_cv_have_vis_white=no
5316fi 5851fi
5317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5318 5853
5319fi 5854fi
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_have_vis_white" >&5 5855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_have_vis_white" >&5
5321$as_echo "$pkg_cv_have_vis_white" >&6; } 5856printf "%s\n" "$pkg_cv_have_vis_white" >&6; }
5322 if test "x$pkg_cv_have_vis_white" = "xyes"; then 5857 if test "x$pkg_cv_have_vis_white" = "xyes"; then
5323 5858
5324 for ac_func in strunvis strvis strsvis svis unvis vis 5859 ac_fn_c_check_func "$LINENO" "strunvis" "ac_cv_func_strunvis"
5325do : 5860if test "x$ac_cv_func_strunvis" = xyes
5326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5861then :
5327ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5862 printf "%s\n" "#define HAVE_STRUNVIS 1" >>confdefs.h
5328if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 
5329 cat >>confdefs.h <<_ACEOF 
5330#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 
5331_ACEOF 
5332 5863
5333fi 5864fi
5334done 5865ac_fn_c_check_func "$LINENO" "strvis" "ac_cv_func_strvis"
 5866if test "x$ac_cv_func_strvis" = xyes
 5867then :
 5868 printf "%s\n" "#define HAVE_STRVIS 1" >>confdefs.h
 5869
 5870fi
 5871ac_fn_c_check_func "$LINENO" "strsvis" "ac_cv_func_strsvis"
 5872if test "x$ac_cv_func_strsvis" = xyes
 5873then :
 5874 printf "%s\n" "#define HAVE_STRSVIS 1" >>confdefs.h
 5875
 5876fi
 5877ac_fn_c_check_func "$LINENO" "svis" "ac_cv_func_svis"
 5878if test "x$ac_cv_func_svis" = xyes
 5879then :
 5880 printf "%s\n" "#define HAVE_SVIS 1" >>confdefs.h
 5881
 5882fi
 5883ac_fn_c_check_func "$LINENO" "unvis" "ac_cv_func_unvis"
 5884if test "x$ac_cv_func_unvis" = xyes
 5885then :
 5886 printf "%s\n" "#define HAVE_UNVIS 1" >>confdefs.h
 5887
 5888fi
 5889ac_fn_c_check_func "$LINENO" "vis" "ac_cv_func_vis"
 5890if test "x$ac_cv_func_vis" = xyes
 5891then :
 5892 printf "%s\n" "#define HAVE_VIS 1" >>confdefs.h
 5893
 5894fi
 5895
5335 5896
5336 for ac_func in strunvis strvis strsvis svis unvis vis 5897 for ac_func in strunvis strvis strsvis svis unvis vis
5337do : 5898do :
5338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5899 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
5339ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5900ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5340if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5901if eval test \"x\$"$as_ac_var"\" = x"yes"
 5902then :
5341 cat >>confdefs.h <<_ACEOF 5903 cat >>confdefs.h <<_ACEOF
5342#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5904#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
5343_ACEOF 5905_ACEOF
5344 pkg_use_nbcompat_vis=no 5906 pkg_use_nbcompat_vis=no
5345else 5907else $as_nop
5346 pkg_use_nbcompat_vis=yes; break 5908 pkg_use_nbcompat_vis=yes; break
5347fi 5909fi
5348done 
5349 5910
 5911done
5350 5912
5351 else 5913 else
5352 5914
5353 : 5915 :
5354 fi 5916 fi
5355 5917
5356 5918
5357fi 5919fi
5358 5920
5359done 5921done
5360 5922
5361 
5362if test $pkg_use_nbcompat_vis = yes; then 5923if test $pkg_use_nbcompat_vis = yes; then
5363 $as_echo "#define HAVE_NBCOMPAT_VIS 1" >>confdefs.h 5924 printf "%s\n" "#define HAVE_NBCOMPAT_VIS 1" >>confdefs.h
5364 5925
5365 5926
5366 case " $LIBOBJS " in 5927 case " $LIBOBJS " in
5367 *" vis.$ac_objext "* ) ;; 5928 *" vis.$ac_objext "* ) ;;
5368 *) LIBOBJS="$LIBOBJS vis.$ac_objext" 5929 *) LIBOBJS="$LIBOBJS vis.$ac_objext"
5369 ;; 5930 ;;
5370esac 5931esac
5371 5932
5372 case " $LIBOBJS " in 5933 case " $LIBOBJS " in
5373 *" unvis.$ac_objext "* ) ;; 5934 *" unvis.$ac_objext "* ) ;;
5374 *) LIBOBJS="$LIBOBJS unvis.$ac_objext" 5935 *) LIBOBJS="$LIBOBJS unvis.$ac_objext"
5375 ;; 5936 ;;
5376esac 5937esac
5377 5938
5378fi 5939fi
5379 5940
5380 5941
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 5942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
5382$as_echo_n "checking for __attribute__... " >&6; } 5943printf %s "checking for __attribute__... " >&6; }
5383if ${ac_cv___attribute__+:} false; then : 5944if test ${ac_cv___attribute__+y}
5384 $as_echo_n "(cached) " >&6 5945then :
5385else 5946 printf %s "(cached) " >&6
 5947else $as_nop
5386 5948
5387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388/* end confdefs.h. */ 5950/* end confdefs.h. */
5389#include <stdlib.h> 5951#include <stdlib.h>
5390static void foo(void) __attribute__ ((noreturn)); 5952static void foo(void) __attribute__ ((noreturn));
5391 5953
5392static void 5954static void
5393foo(void) 5955foo(void)
5394{ 5956{
5395 exit(1); 5957 exit(1);
5396} 5958}
5397 5959
5398_ACEOF 5960_ACEOF
5399if ac_fn_c_try_compile "$LINENO"; then : 5961if ac_fn_c_try_compile "$LINENO"
 5962then :
5400 ac_cv___attribute__=yes 5963 ac_cv___attribute__=yes
5401else 5964else $as_nop
5402 ac_cv___attribute__=no 5965 ac_cv___attribute__=no
5403fi 5966fi
5404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5405fi 5968fi
5406 5969
5407if test "$ac_cv___attribute__" = "yes"; then 5970if test "$ac_cv___attribute__" = "yes"; then
5408 5971
5409$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 5972printf "%s\n" "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
5410 5973
5411fi 5974fi
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 5975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
5413$as_echo "$ac_cv___attribute__" >&6; } 5976printf "%s\n" "$ac_cv___attribute__" >&6; }
5414 5977
5415ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 5978ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5416if test "x$ac_cv_type_size_t" = xyes; then : 5979if test "x$ac_cv_type_size_t" = xyes
 5980then :
5417 5981
5418else 5982else $as_nop
5419 5983
5420cat >>confdefs.h <<_ACEOF 5984printf "%s\n" "#define size_t unsigned int" >>confdefs.h
5421#define size_t unsigned int 
5422_ACEOF 
5423 5985
5424fi 5986fi
5425 5987
5426 5988
5427 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 5989 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5428if test "x$ac_cv_type_uintptr_t" = xyes; then : 5990if test "x$ac_cv_type_uintptr_t" = xyes
 5991then :
5429 5992
5430$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 5993printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
5431 5994
5432else 5995else $as_nop
5433 for ac_type in 'unsigned int' 'unsigned long int' \ 5996 for ac_type in 'unsigned int' 'unsigned long int' \
5434 'unsigned long long int'; do 5997 'unsigned long long int'; do
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h. */ 5999/* end confdefs.h. */
5437$ac_includes_default 6000$ac_includes_default
5438int 6001int
5439main () 6002main (void)
5440{ 6003{
5441static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 6004static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5442test_array [0] = 0; 6005test_array [0] = 0;
5443return test_array [0]; 6006return test_array [0];
5444 6007
5445 ; 6008 ;
5446 return 0; 6009 return 0;
5447} 6010}
5448_ACEOF 6011_ACEOF
5449if ac_fn_c_try_compile "$LINENO"; then : 6012if ac_fn_c_try_compile "$LINENO"
 6013then :
5450 6014
5451cat >>confdefs.h <<_ACEOF 6015printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
5452#define uintptr_t $ac_type 
5453_ACEOF 
5454 6016
5455 ac_type= 6017 ac_type=
5456fi 6018fi
5457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5458 test -z "$ac_type" && break 6020 test -z "$ac_type" && break
5459 done 6021 done
5460fi 6022fi
5461 6023
5462 6024
5463ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" 6025ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5464case $ac_cv_c_int8_t in #( 6026case $ac_cv_c_int8_t in #(
5465 no|yes) ;; #( 6027 no|yes) ;; #(
5466 *) 6028 *)
5467 6029
5468cat >>confdefs.h <<_ACEOF 6030printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
5469#define int8_t $ac_cv_c_int8_t 
5470_ACEOF 
5471;; 6031;;
5472esac 6032esac
5473 6033
5474ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 6034ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5475case $ac_cv_c_int16_t in #( 6035case $ac_cv_c_int16_t in #(
5476 no|yes) ;; #( 6036 no|yes) ;; #(
5477 *) 6037 *)
5478 6038
5479cat >>confdefs.h <<_ACEOF 6039printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
5480#define int16_t $ac_cv_c_int16_t 
5481_ACEOF 
5482;; 6040;;
5483esac 6041esac
5484 6042
5485ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 6043ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5486case $ac_cv_c_int32_t in #( 6044case $ac_cv_c_int32_t in #(
5487 no|yes) ;; #( 6045 no|yes) ;; #(
5488 *) 6046 *)
5489 6047
5490cat >>confdefs.h <<_ACEOF 6048printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
5491#define int32_t $ac_cv_c_int32_t 
5492_ACEOF 
5493;; 6049;;
5494esac 6050esac
5495 6051
5496ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 6052ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5497case $ac_cv_c_int64_t in #( 6053case $ac_cv_c_int64_t in #(
5498 no|yes) ;; #( 6054 no|yes) ;; #(
5499 *) 6055 *)
5500 6056
5501cat >>confdefs.h <<_ACEOF 6057printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
5502#define int64_t $ac_cv_c_int64_t 
5503_ACEOF 
5504;; 6058;;
5505esac 6059esac
5506 6060
5507ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 6061ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5508case $ac_cv_c_uint8_t in #( 6062case $ac_cv_c_uint8_t in #(
5509 no|yes) ;; #( 6063 no|yes) ;; #(
5510 *) 6064 *)
5511 6065
5512$as_echo "#define _UINT8_T 1" >>confdefs.h 6066printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
5513 6067
5514 6068
5515cat >>confdefs.h <<_ACEOF 6069printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
5516#define uint8_t $ac_cv_c_uint8_t 
5517_ACEOF 
5518;; 6070;;
5519 esac 6071 esac
5520 6072
5521ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 6073ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5522case $ac_cv_c_uint16_t in #( 6074case $ac_cv_c_uint16_t in #(
5523 no|yes) ;; #( 6075 no|yes) ;; #(
5524 *) 6076 *)
5525 6077
5526 6078
5527cat >>confdefs.h <<_ACEOF 6079printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
5528#define uint16_t $ac_cv_c_uint16_t 
5529_ACEOF 
5530;; 6080;;
5531 esac 6081 esac
5532 6082
5533ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 6083ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5534case $ac_cv_c_uint32_t in #( 6084case $ac_cv_c_uint32_t in #(
5535 no|yes) ;; #( 6085 no|yes) ;; #(
5536 *) 6086 *)
5537 6087
5538$as_echo "#define _UINT32_T 1" >>confdefs.h 6088printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
5539 6089
5540 6090
5541cat >>confdefs.h <<_ACEOF 6091printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
5542#define uint32_t $ac_cv_c_uint32_t 
5543_ACEOF 
5544;; 6092;;
5545 esac 6093 esac
5546 6094
5547ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 6095ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5548case $ac_cv_c_uint64_t in #( 6096case $ac_cv_c_uint64_t in #(
5549 no|yes) ;; #( 6097 no|yes) ;; #(
5550 *) 6098 *)
5551 6099
5552$as_echo "#define _UINT64_T 1" >>confdefs.h 6100printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
5553 6101
5554 6102
5555cat >>confdefs.h <<_ACEOF 6103printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
5556#define uint64_t $ac_cv_c_uint64_t 
5557_ACEOF 
5558;; 6104;;
5559 esac 6105 esac
5560 6106
5561ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "#if STDC_HEADERS 6107ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "#if STDC_HEADERS
5562#include <stdlib.h> 6108#include <stdlib.h>
5563#include <stddef.h> 6109#include <stddef.h>
5564#endif 6110#endif
5565#if HAVE_INTTYPES_H 6111#if HAVE_INTTYPES_H
5566#include <inttypes.h> 6112#include <inttypes.h>
5567#endif 6113#endif
5568#if HAVE_SYS_TYPES_H 6114#if HAVE_SYS_TYPES_H
5569#include <sys/types.h> 6115#include <sys/types.h>
5570#endif 6116#endif
5571#if HAVE_SYS_BITYPES_H 6117#if HAVE_SYS_BITYPES_H
5572#include <sys/bitypes.h> 6118#include <sys/bitypes.h>
5573#endif 6119#endif
5574" 6120"
5575if test "x$ac_cv_type_long_long" = xyes; then : 6121if test "x$ac_cv_type_long_long" = xyes
 6122then :
5576 6123
5577cat >>confdefs.h <<_ACEOF 6124printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
5578#define HAVE_LONG_LONG 1 
5579_ACEOF 
5580 6125
5581 6126
5582fi 6127fi
5583ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "#if STDC_HEADERS 6128ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "#if STDC_HEADERS
5584#include <stdlib.h> 6129#include <stdlib.h>
5585#include <stddef.h> 6130#include <stddef.h>
5586#endif 6131#endif
5587#if HAVE_INTTYPES_H 6132#if HAVE_INTTYPES_H
5588#include <inttypes.h> 6133#include <inttypes.h>
5589#endif 6134#endif
5590#if HAVE_SYS_TYPES_H 6135#if HAVE_SYS_TYPES_H
5591#include <sys/types.h> 6136#include <sys/types.h>
5592#endif 6137#endif
5593#if HAVE_SYS_BITYPES_H 6138#if HAVE_SYS_BITYPES_H
5594#include <sys/bitypes.h> 6139#include <sys/bitypes.h>
5595#endif 6140#endif
5596" 6141"
5597if test "x$ac_cv_type_long_double" = xyes; then : 6142if test "x$ac_cv_type_long_double" = xyes
 6143then :
5598 6144
5599cat >>confdefs.h <<_ACEOF 6145printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
5600#define HAVE_LONG_DOUBLE 1 
5601_ACEOF 
5602 6146
5603 6147
5604fi 6148fi
5605 6149
5606ac_fn_c_check_type "$LINENO" "fsid_t" "ac_cv_type_fsid_t" "#if HAVE_SYS_TYPES_H 6150ac_fn_c_check_type "$LINENO" "fsid_t" "ac_cv_type_fsid_t" "#if HAVE_SYS_TYPES_H
5607#include <sys/types.h> 6151#include <sys/types.h>
5608#endif 6152#endif
5609#if HAVE_SYS_PARAM_H 6153#if HAVE_SYS_PARAM_H
5610#include <sys/param.h> 6154#include <sys/param.h>
5611#endif 6155#endif
5612#if HAVE_SYS_MOUNT_H 6156#if HAVE_SYS_MOUNT_H
5613#include <sys/mount.h> 6157#include <sys/mount.h>
5614#endif 6158#endif
5615#if HAVE_SYS_VFS_H 6159#if HAVE_SYS_VFS_H
5616#include <sys/vfs.h> 6160#include <sys/vfs.h>
5617#endif 6161#endif
5618" 6162"
5619if test "x$ac_cv_type_fsid_t" = xyes; then : 6163if test "x$ac_cv_type_fsid_t" = xyes
 6164then :
5620 6165
5621cat >>confdefs.h <<_ACEOF 6166printf "%s\n" "#define HAVE_FSID_T 1" >>confdefs.h
5622#define HAVE_FSID_T 1 
5623_ACEOF 
5624 6167
5625 6168
5626fi 6169fi
5627 6170
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5629$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 6172printf %s "checking whether byte ordering is bigendian... " >&6; }
5630if ${ac_cv_c_bigendian+:} false; then : 6173if test ${ac_cv_c_bigendian+y}
5631 $as_echo_n "(cached) " >&6 6174then :
5632else 6175 printf %s "(cached) " >&6
 6176else $as_nop
5633 ac_cv_c_bigendian=unknown 6177 ac_cv_c_bigendian=unknown
5634 # See if we're dealing with a universal compiler. 6178 # See if we're dealing with a universal compiler.
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636/* end confdefs.h. */ 6180/* end confdefs.h. */
5637#ifndef __APPLE_CC__ 6181#ifndef __APPLE_CC__
5638 not a universal capable compiler 6182 not a universal capable compiler
5639 #endif 6183 #endif
5640 typedef int dummy; 6184 typedef int dummy;
5641 6185
5642_ACEOF 6186_ACEOF
5643if ac_fn_c_try_compile "$LINENO"; then : 6187if ac_fn_c_try_compile "$LINENO"
 6188then :
5644 6189
5645 # Check for potential -arch flags. It is not universal unless 6190 # Check for potential -arch flags. It is not universal unless
5646 # there are at least two -arch flags with different values. 6191 # there are at least two -arch flags with different values.
5647 ac_arch= 6192 ac_arch=
5648 ac_prev= 6193 ac_prev=
5649 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 6194 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5650 if test -n "$ac_prev"; then 6195 if test -n "$ac_prev"; then
5651 case $ac_word in 6196 case $ac_word in
5652 i?86 | x86_64 | ppc | ppc64) 6197 i?86 | x86_64 | ppc | ppc64)
5653 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 6198 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5654 ac_arch=$ac_word 6199 ac_arch=$ac_word
5655 else 6200 else
5656 ac_cv_c_bigendian=universal 6201 ac_cv_c_bigendian=universal
5657 break 6202 break
5658 fi 6203 fi
5659 ;; 6204 ;;
5660 esac 6205 esac
5661 ac_prev= 6206 ac_prev=
5662 elif test "x$ac_word" = "x-arch"; then 6207 elif test "x$ac_word" = "x-arch"; then
5663 ac_prev=arch 6208 ac_prev=arch
5664 fi 6209 fi
5665 done 6210 done
5666fi 6211fi
5667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5668 if test $ac_cv_c_bigendian = unknown; then 6213 if test $ac_cv_c_bigendian = unknown; then
5669 # See if sys/param.h defines the BYTE_ORDER macro. 6214 # See if sys/param.h defines the BYTE_ORDER macro.
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671/* end confdefs.h. */ 6216/* end confdefs.h. */
5672#include <sys/types.h> 6217#include <sys/types.h>
5673 #include <sys/param.h> 6218 #include <sys/param.h>
5674 6219
5675int 6220int
5676main () 6221main (void)
5677{ 6222{
5678#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 6223#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5679 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 6224 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5680 && LITTLE_ENDIAN) 6225 && LITTLE_ENDIAN)
5681 bogus endian macros 6226 bogus endian macros
5682 #endif 6227 #endif
5683 6228
5684 ; 6229 ;
5685 return 0; 6230 return 0;
5686} 6231}
5687_ACEOF 6232_ACEOF
5688if ac_fn_c_try_compile "$LINENO"; then : 6233if ac_fn_c_try_compile "$LINENO"
 6234then :
5689 # It does; now see whether it defined to BIG_ENDIAN or not. 6235 # It does; now see whether it defined to BIG_ENDIAN or not.
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691/* end confdefs.h. */ 6237/* end confdefs.h. */
5692#include <sys/types.h> 6238#include <sys/types.h>
5693 #include <sys/param.h> 6239 #include <sys/param.h>
5694 6240
5695int 6241int
5696main () 6242main (void)
5697{ 6243{
5698#if BYTE_ORDER != BIG_ENDIAN 6244#if BYTE_ORDER != BIG_ENDIAN
5699 not big endian 6245 not big endian
5700 #endif 6246 #endif
5701 6247
5702 ; 6248 ;
5703 return 0; 6249 return 0;
5704} 6250}
5705_ACEOF 6251_ACEOF
5706if ac_fn_c_try_compile "$LINENO"; then : 6252if ac_fn_c_try_compile "$LINENO"
 6253then :
5707 ac_cv_c_bigendian=yes 6254 ac_cv_c_bigendian=yes
5708else 6255else $as_nop
5709 ac_cv_c_bigendian=no 6256 ac_cv_c_bigendian=no
5710fi 6257fi
5711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5712fi 6259fi
5713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5714 fi 6261 fi
5715 if test $ac_cv_c_bigendian = unknown; then 6262 if test $ac_cv_c_bigendian = unknown; then
5716 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 6263 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718/* end confdefs.h. */ 6265/* end confdefs.h. */
5719#include <limits.h> 6266#include <limits.h>
5720 6267
5721int 6268int
5722main () 6269main (void)
5723{ 6270{
5724#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 6271#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5725 bogus endian macros 6272 bogus endian macros
5726 #endif 6273 #endif
5727 6274
5728 ; 6275 ;
5729 return 0; 6276 return 0;
5730} 6277}
5731_ACEOF 6278_ACEOF
5732if ac_fn_c_try_compile "$LINENO"; then : 6279if ac_fn_c_try_compile "$LINENO"
 6280then :
5733 # It does; now see whether it defined to _BIG_ENDIAN or not. 6281 # It does; now see whether it defined to _BIG_ENDIAN or not.
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735/* end confdefs.h. */ 6283/* end confdefs.h. */
5736#include <limits.h> 6284#include <limits.h>
5737 6285
5738int 6286int
5739main () 6287main (void)
5740{ 6288{
5741#ifndef _BIG_ENDIAN 6289#ifndef _BIG_ENDIAN
5742 not big endian 6290 not big endian
5743 #endif 6291 #endif
5744 6292
5745 ; 6293 ;
5746 return 0; 6294 return 0;
5747} 6295}
5748_ACEOF 6296_ACEOF
5749if ac_fn_c_try_compile "$LINENO"; then : 6297if ac_fn_c_try_compile "$LINENO"
 6298then :
5750 ac_cv_c_bigendian=yes 6299 ac_cv_c_bigendian=yes
5751else 6300else $as_nop
5752 ac_cv_c_bigendian=no 6301 ac_cv_c_bigendian=no
5753fi 6302fi
5754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5755fi 6304fi
5756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5757 fi 6306 fi
5758 if test $ac_cv_c_bigendian = unknown; then 6307 if test $ac_cv_c_bigendian = unknown; then
5759 # Compile a test program. 6308 # Compile a test program.
5760 if test "$cross_compiling" = yes; then : 6309 if test "$cross_compiling" = yes
 6310then :
5761 # Try to guess by grepping values from an object file. 6311 # Try to guess by grepping values from an object file.
5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763/* end confdefs.h. */ 6313/* end confdefs.h. */
5764short int ascii_mm[] = 6314unsigned short int ascii_mm[] =
5765 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 6315 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5766 short int ascii_ii[] = 6316 unsigned short int ascii_ii[] =
5767 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 6317 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5768 int use_ascii (int i) { 6318 int use_ascii (int i) {
5769 return ascii_mm[i] + ascii_ii[i]; 6319 return ascii_mm[i] + ascii_ii[i];
5770 } 6320 }
5771 short int ebcdic_ii[] = 6321 unsigned short int ebcdic_ii[] =
5772 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 6322 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5773 short int ebcdic_mm[] = 6323 unsigned short int ebcdic_mm[] =
5774 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 6324 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5775 int use_ebcdic (int i) { 6325 int use_ebcdic (int i) {
5776 return ebcdic_mm[i] + ebcdic_ii[i]; 6326 return ebcdic_mm[i] + ebcdic_ii[i];
5777 } 6327 }
5778 extern int foo; 6328 extern int foo;
5779 6329
5780int 6330int
5781main () 6331main (void)
5782{ 6332{
5783return use_ascii (foo) == use_ebcdic (foo); 6333return use_ascii (foo) == use_ebcdic (foo);
5784 ; 6334 ;
5785 return 0; 6335 return 0;
5786} 6336}
5787_ACEOF 6337_ACEOF
5788if ac_fn_c_try_compile "$LINENO"; then : 6338if ac_fn_c_try_compile "$LINENO"
 6339then :
5789 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 6340 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5790 ac_cv_c_bigendian=yes 6341 ac_cv_c_bigendian=yes
5791 fi 6342 fi
5792 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 6343 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5793 if test "$ac_cv_c_bigendian" = unknown; then 6344 if test "$ac_cv_c_bigendian" = unknown; then
5794 ac_cv_c_bigendian=no 6345 ac_cv_c_bigendian=no
5795 else 6346 else
5796 # finding both strings is unlikely to happen, but who knows? 6347 # finding both strings is unlikely to happen, but who knows?
5797 ac_cv_c_bigendian=unknown 6348 ac_cv_c_bigendian=unknown
5798 fi 6349 fi
5799 fi 6350 fi
5800fi 6351fi
5801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5802else 6353else $as_nop
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804/* end confdefs.h. */ 6355/* end confdefs.h. */
5805$ac_includes_default 6356$ac_includes_default
5806int 6357int
5807main () 6358main (void)
5808{ 6359{
5809 6360
5810 /* Are we little or big endian? From Harbison&Steele. */ 6361 /* Are we little or big endian? From Harbison&Steele. */
5811 union 6362 union
5812 { 6363 {
5813 long int l; 6364 long int l;
5814 char c[sizeof (long int)]; 6365 char c[sizeof (long int)];
5815 } u; 6366 } u;
5816 u.l = 1; 6367 u.l = 1;
5817 return u.c[sizeof (long int) - 1] == 1; 6368 return u.c[sizeof (long int) - 1] == 1;
5818 6369
5819 ; 6370 ;
5820 return 0; 6371 return 0;
5821} 6372}
5822_ACEOF 6373_ACEOF
5823if ac_fn_c_try_run "$LINENO"; then : 6374if ac_fn_c_try_run "$LINENO"
 6375then :
5824 ac_cv_c_bigendian=no 6376 ac_cv_c_bigendian=no
5825else 6377else $as_nop
5826 ac_cv_c_bigendian=yes 6378 ac_cv_c_bigendian=yes
5827fi 6379fi
5828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5829 conftest.$ac_objext conftest.beam conftest.$ac_ext 6381 conftest.$ac_objext conftest.beam conftest.$ac_ext
5830fi 6382fi
5831 6383
5832 fi 6384 fi
5833fi 6385fi
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 6386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5835$as_echo "$ac_cv_c_bigendian" >&6; } 6387printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5836 case $ac_cv_c_bigendian in #( 6388 case $ac_cv_c_bigendian in #(
5837 yes) 6389 yes)
5838 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 6390 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5839;; #( 6391;; #(
5840 no) 6392 no)
5841 ;; #( 6393 ;; #(
5842 universal) 6394 universal)
5843 6395
5844$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 6396printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5845 6397
5846 ;; #( 6398 ;; #(
5847 *) 6399 *)
5848 as_fn_error $? "unknown endianness 6400 as_fn_error $? "unknown endianness
5849 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 6401 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5850 esac 6402 esac
5851 6403
5852# The cast to long int works around a bug in the HP C Compiler 6404# The cast to long int works around a bug in the HP C Compiler
5853# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6405# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5854# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6406# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5855# This bug is HP SR number 8606223364. 6407# This bug is HP SR number 8606223364.
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 6408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
5857$as_echo_n "checking size of off_t... " >&6; } 6409printf %s "checking size of off_t... " >&6; }
5858if ${ac_cv_sizeof_off_t+:} false; then : 6410if test ${ac_cv_sizeof_off_t+y}
5859 $as_echo_n "(cached) " >&6 6411then :
5860else 6412 printf %s "(cached) " >&6
5861 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 6413else $as_nop
 6414 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
 6415then :
5862 6416
5863else 6417else $as_nop
5864 if test "$ac_cv_type_off_t" = yes; then 6418 if test "$ac_cv_type_off_t" = yes; then
5865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6419 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6420printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5867as_fn_error 77 "cannot compute sizeof (off_t) 6421as_fn_error 77 "cannot compute sizeof (off_t)
5868See \`config.log' for more details" "$LINENO" 5; } 6422See \`config.log' for more details" "$LINENO" 5; }
5869 else 6423 else
5870 ac_cv_sizeof_off_t=0 6424 ac_cv_sizeof_off_t=0
5871 fi 6425 fi
5872fi 6426fi
5873 6427
5874fi 6428fi
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 6429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
5876$as_echo "$ac_cv_sizeof_off_t" >&6; } 6430printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
5877 6431
5878 6432
5879 6433
5880cat >>confdefs.h <<_ACEOF 6434printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
5881#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 
5882_ACEOF 
5883 6435
5884 6436
5885 6437
5886# Checks for library functions. 6438# Checks for library functions.
5887ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 6439ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5888if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 6440if test "x$ac_cv_have_decl_strerror_r" = xyes
 6441then :
5889 ac_have_decl=1 6442 ac_have_decl=1
5890else 6443else $as_nop
5891 ac_have_decl=0 6444 ac_have_decl=0
5892fi 6445fi
 6446printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
5893 6447
5894cat >>confdefs.h <<_ACEOF 
5895#define HAVE_DECL_STRERROR_R $ac_have_decl 
5896_ACEOF 
5897 6448
5898for ac_func in strerror_r 6449if test $ac_cv_have_decl_strerror_r = yes; then
5899do : 6450 # For backward compatibility's sake, define HAVE_STRERROR_R.
5900 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 6451 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
5901if test "x$ac_cv_func_strerror_r" = xyes; then : 6452 # as AC_CHECK_DECLS_ONCE.)
5902 cat >>confdefs.h <<_ACEOF 6453
5903#define HAVE_STRERROR_R 1 6454printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
5904_ACEOF 
5905 6455
5906fi 6456fi
5907done 
5908 6457
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 6458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
5910$as_echo_n "checking whether strerror_r returns char *... " >&6; } 6459printf %s "checking whether strerror_r returns char *... " >&6; }
5911if ${ac_cv_func_strerror_r_char_p+:} false; then : 6460if test ${ac_cv_func_strerror_r_char_p+y}
5912 $as_echo_n "(cached) " >&6 6461then :
5913else 6462 printf %s "(cached) " >&6
 6463else $as_nop
5914 6464
5915 ac_cv_func_strerror_r_char_p=no 6465 ac_cv_func_strerror_r_char_p=no
5916 if test $ac_cv_have_decl_strerror_r = yes; then 6466 if test $ac_cv_have_decl_strerror_r = yes; then
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918/* end confdefs.h. */ 6468/* end confdefs.h. */
5919$ac_includes_default 6469#include <string.h>
5920int 6470int
5921main () 6471main (void)
5922{ 6472{
5923 6473
5924 char buf[100]; 6474 char buf[100];
5925 char x = *strerror_r (0, buf, sizeof buf); 6475 char x = *strerror_r (0, buf, sizeof buf);
5926 char *p = strerror_r (0, buf, sizeof buf); 6476 char *p = strerror_r (0, buf, sizeof buf);
5927 return !p || x; 6477 return !p || x;
5928 6478
5929 ; 6479 ;
5930 return 0; 6480 return 0;
5931} 6481}
5932_ACEOF 6482_ACEOF
5933if ac_fn_c_try_compile "$LINENO"; then : 6483if ac_fn_c_try_compile "$LINENO"
5934 ac_cv_func_strerror_r_char_p=yes 6484then :
5935fi 
5936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
5937 else 
5938 # strerror_r is not declared. Choose between 
5939 # systems that have relatively inaccessible declarations for the 
5940 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 
5941 # former has a strerror_r that returns char*, while the latter 
5942 # has a strerror_r that returns `int'. 
5943 # This test should segfault on the DEC system. 
5944 if test "$cross_compiling" = yes; then : 
5945 : 
5946else 
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
5948/* end confdefs.h. */ 
5949$ac_includes_default 
5950 extern char *strerror_r (); 
5951int 
5952main () 
5953{ 
5954char buf[100]; 
5955 char x = *strerror_r (0, buf, sizeof buf); 
5956 return ! isalpha (x); 
5957 ; 
5958 return 0; 
5959} 
5960_ACEOF 
5961if ac_fn_c_try_run "$LINENO"; then : 
5962 ac_cv_func_strerror_r_char_p=yes 6485 ac_cv_func_strerror_r_char_p=yes
5963fi 6486fi
5964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5965 conftest.$ac_objext conftest.beam conftest.$ac_ext 
5966fi 
5967 6488
5968 fi 6489 fi
5969 6490
5970fi 6491fi
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 6492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
5972$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 6493printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
5973if test $ac_cv_func_strerror_r_char_p = yes; then 6494if test $ac_cv_func_strerror_r_char_p = yes; then
5974 6495
5975$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 6496printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
5976 6497
5977fi 6498fi
5978 6499
5979ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 
5980if test "x$ac_cv_type_pid_t" = xyes; then : 
5981 6500
5982else 6501 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
 6502"
 6503if test "x$ac_cv_type_pid_t" = xyes
 6504then :
5983 6505
5984cat >>confdefs.h <<_ACEOF 6506else $as_nop
5985#define pid_t int 6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986_ACEOF 6508/* end confdefs.h. */
5987 6509
5988fi 6510 #if defined _WIN64 && !defined __CYGWIN__
 6511 LLP64
 6512 #endif
5989 6513
5990for ac_header in vfork.h 6514int
5991do : 6515main (void)
5992 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 6516{
5993if test "x$ac_cv_header_vfork_h" = xyes; then : 6517
5994 cat >>confdefs.h <<_ACEOF 6518 ;
5995#define HAVE_VFORK_H 1 6519 return 0;
5996_ACEOF 6520}
5997 6521
 6522_ACEOF
 6523if ac_fn_c_try_compile "$LINENO"
 6524then :
 6525 ac_pid_type='int'
 6526else $as_nop
 6527 ac_pid_type='__int64'
5998fi 6528fi
 6529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5999 6530
6000done 6531printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
6001 6532
6002for ac_func in fork vfork 
6003do : 
6004 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 
6005ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 
6006if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 
6007 cat >>confdefs.h <<_ACEOF 
6008#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 
6009_ACEOF 
6010 6533
6011fi 6534fi
 6535
 6536
 6537
 6538ac_func=
 6539for ac_item in $ac_func_c_list
 6540do
 6541 if test $ac_func; then
 6542 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
 6543 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
 6544 echo "#define $ac_item 1" >> confdefs.h
 6545 fi
 6546 ac_func=
 6547 else
 6548 ac_func=$ac_item
 6549 fi
6012done 6550done
6013 6551
 6552
 6553
6014if test "x$ac_cv_func_fork" = xyes; then 6554if test "x$ac_cv_func_fork" = xyes; then
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6016$as_echo_n "checking for working fork... " >&6; } 6556printf %s "checking for working fork... " >&6; }
6017if ${ac_cv_func_fork_works+:} false; then : 6557if test ${ac_cv_func_fork_works+y}
6018 $as_echo_n "(cached) " >&6 6558then :
6019else 6559 printf %s "(cached) " >&6
6020 if test "$cross_compiling" = yes; then : 6560else $as_nop
 6561 if test "$cross_compiling" = yes
 6562then :
6021 ac_cv_func_fork_works=cross 6563 ac_cv_func_fork_works=cross
6022else 6564else $as_nop
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024/* end confdefs.h. */ 6566/* end confdefs.h. */
6025$ac_includes_default 6567$ac_includes_default
6026int 6568int
6027main () 6569main (void)
6028{ 6570{
6029 6571
6030 /* By Ruediger Kuhlmann. */ 6572 /* By Ruediger Kuhlmann. */
6031 return fork () < 0; 6573 return fork () < 0;
6032 6574
6033 ; 6575 ;
6034 return 0; 6576 return 0;
6035} 6577}
6036_ACEOF 6578_ACEOF
6037if ac_fn_c_try_run "$LINENO"; then : 6579if ac_fn_c_try_run "$LINENO"
 6580then :
6038 ac_cv_func_fork_works=yes 6581 ac_cv_func_fork_works=yes
6039else 6582else $as_nop
6040 ac_cv_func_fork_works=no 6583 ac_cv_func_fork_works=no
6041fi 6584fi
6042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6043 conftest.$ac_objext conftest.beam conftest.$ac_ext 6586 conftest.$ac_objext conftest.beam conftest.$ac_ext
6044fi 6587fi
6045 6588
6046fi 6589fi
6047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 6590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6048$as_echo "$ac_cv_func_fork_works" >&6; } 6591printf "%s\n" "$ac_cv_func_fork_works" >&6; }
6049 6592
6050else 6593else
6051 ac_cv_func_fork_works=$ac_cv_func_fork 6594 ac_cv_func_fork_works=$ac_cv_func_fork
6052fi 6595fi
6053if test "x$ac_cv_func_fork_works" = xcross; then 6596if test "x$ac_cv_func_fork_works" = xcross; then
6054 case $host in 6597 case $host in
6055 *-*-amigaos* | *-*-msdosdjgpp*) 6598 *-*-amigaos* | *-*-msdosdjgpp*)
6056 # Override, as these systems have only a dummy fork() stub 6599 # Override, as these systems have only a dummy fork() stub
6057 ac_cv_func_fork_works=no 6600 ac_cv_func_fork_works=no
6058 ;; 6601 ;;
6059 *) 6602 *)
6060 ac_cv_func_fork_works=yes 6603 ac_cv_func_fork_works=yes
6061 ;; 6604 ;;
6062 esac 6605 esac
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6064$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 6607printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6065fi 6608fi
6066ac_cv_func_vfork_works=$ac_cv_func_vfork 6609ac_cv_func_vfork_works=$ac_cv_func_vfork
6067if test "x$ac_cv_func_vfork" = xyes; then 6610if test "x$ac_cv_func_vfork" = xyes; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6069$as_echo_n "checking for working vfork... " >&6; } 6612printf %s "checking for working vfork... " >&6; }
6070if ${ac_cv_func_vfork_works+:} false; then : 6613if test ${ac_cv_func_vfork_works+y}
6071 $as_echo_n "(cached) " >&6 6614then :
6072else 6615 printf %s "(cached) " >&6
6073 if test "$cross_compiling" = yes; then : 6616else $as_nop
 6617 if test "$cross_compiling" = yes
 6618then :
6074 ac_cv_func_vfork_works=cross 6619 ac_cv_func_vfork_works=cross
6075else 6620else $as_nop
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077/* end confdefs.h. */ 6622/* end confdefs.h. */
6078/* Thanks to Paul Eggert for this test. */ 6623/* Thanks to Paul Eggert for this test. */
6079$ac_includes_default 6624$ac_includes_default
 6625#include <signal.h>
6080#include <sys/wait.h> 6626#include <sys/wait.h>
6081#ifdef HAVE_VFORK_H 6627#ifdef HAVE_VFORK_H
6082# include <vfork.h> 6628# include <vfork.h>
6083#endif 6629#endif
 6630
 6631static void
 6632do_nothing (int sig)
 6633{
 6634 (void) sig;
 6635}
 6636
6084/* On some sparc systems, changes by the child to local and incoming 6637/* On some sparc systems, changes by the child to local and incoming
6085 argument registers are propagated back to the parent. The compiler 6638 argument registers are propagated back to the parent. The compiler
6086 is told about this with #include <vfork.h>, but some compilers 6639 is told about this with #include <vfork.h>, but some compilers
6087 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 6640 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6088 static variable whose address is put into a register that is 6641 static variable whose address is put into a register that is
6089 clobbered by the vfork. */ 6642 clobbered by the vfork. */
6090static void 6643static void
6091#ifdef __cplusplus 
6092sparc_address_test (int arg) 6644sparc_address_test (int arg)
6093# else 
6094sparc_address_test (arg) int arg; 
6095#endif 
6096{ 6645{
6097 static pid_t child; 6646 static pid_t child;
6098 if (!child) { 6647 if (!child) {
6099 child = vfork (); 6648 child = vfork ();
6100 if (child < 0) { 6649 if (child < 0) {
6101 perror ("vfork"); 6650 perror ("vfork");
6102 _exit(2); 6651 _exit(2);
6103 } 6652 }
6104 if (!child) { 6653 if (!child) {
6105 arg = getpid(); 6654 arg = getpid();
6106 write(-1, "", 0); 6655 write(-1, "", 0);
6107 _exit (arg); 6656 _exit (arg);
6108 } 6657 }
6109 } 6658 }
6110} 6659}
6111 6660
6112int 6661int
6113main () 6662main (void)
6114{ 6663{
6115 pid_t parent = getpid (); 6664 pid_t parent = getpid ();
6116 pid_t child; 6665 pid_t child;
6117 6666
6118 sparc_address_test (0); 6667 sparc_address_test (0);
6119 6668
 6669 /* On Solaris 2.4, changes by the child to the signal handler
 6670 also munge signal handlers in the parent. To detect this,
 6671 start by putting the parent's handler in a known state. */
 6672 signal (SIGTERM, SIG_DFL);
 6673
6120 child = vfork (); 6674 child = vfork ();
6121 6675
6122 if (child == 0) { 6676 if (child == 0) {
6123 /* Here is another test for sparc vfork register problems. This 6677 /* Here is another test for sparc vfork register problems. This
6124 test uses lots of local variables, at least as many local 6678 test uses lots of local variables, at least as many local
6125 variables as main has allocated so far including compiler 6679 variables as main has allocated so far including compiler
6126 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 6680 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6127 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 6681 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6128 reuse the register of parent for one of the local variables, 6682 reuse the register of parent for one of the local variables,
6129 since it will think that parent can't possibly be used any more 6683 since it will think that parent can't possibly be used any more
6130 in this routine. Assigning to the local variable will thus 6684 in this routine. Assigning to the local variable will thus
6131 munge parent in the parent process. */ 6685 munge parent in the parent process. */
6132 pid_t 6686 pid_t
6133 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 6687 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6134 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 6688 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6135 /* Convince the compiler that p..p7 are live; otherwise, it might 6689 /* Convince the compiler that p..p7 are live; otherwise, it might
6136 use the same hardware register for all 8 local variables. */ 6690 use the same hardware register for all 8 local variables. */
6137 if (p != p1 || p != p2 || p != p3 || p != p4 6691 if (p != p1 || p != p2 || p != p3 || p != p4
6138 || p != p5 || p != p6 || p != p7) 6692 || p != p5 || p != p6 || p != p7)
6139 _exit(1); 6693 _exit(1);
6140 6694
 6695 /* Alter the child's signal handler. */
 6696 if (signal (SIGTERM, do_nothing) != SIG_DFL)
 6697 _exit(1);
 6698
6141 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 6699 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6142 from child file descriptors. If the child closes a descriptor 6700 from child file descriptors. If the child closes a descriptor
6143 before it execs or exits, this munges the parent's descriptor 6701 before it execs or exits, this munges the parent's descriptor
6144 as well. Test for this by closing stdout in the child. */ 6702 as well. Test for this by closing stdout in the child. */
6145 _exit(close(fileno(stdout)) != 0); 6703 _exit(close(fileno(stdout)) != 0);
6146 } else { 6704 } else {
6147 int status; 6705 int status;
6148 struct stat st; 6706 struct stat st;
6149 6707
6150 while (wait(&status) != child) 6708 while (wait(&status) != child)
6151 ; 6709 ;
6152 return ( 6710 return (
6153 /* Was there some problem with vforking? */ 6711 /* Was there some problem with vforking? */
6154 child < 0 6712 child < 0
6155 6713
 6714 /* Did the child munge the parent's signal handler? */
 6715 || signal (SIGTERM, SIG_DFL) != SIG_DFL
 6716
6156 /* Did the child fail? (This shouldn't happen.) */ 6717 /* Did the child fail? (This shouldn't happen.) */
6157 || status 6718 || status
6158 6719
6159 /* Did the vfork/compiler bug occur? */ 6720 /* Did the vfork/compiler bug occur? */
6160 || parent != getpid() 6721 || parent != getpid()
6161 6722
6162 /* Did the file descriptor bug occur? */ 6723 /* Did the file descriptor bug occur? */
6163 || fstat(fileno(stdout), &st) != 0 6724 || fstat(fileno(stdout), &st) != 0
6164 ); 6725 );
6165 } 6726 }
6166} 6727}
6167_ACEOF 6728_ACEOF
6168if ac_fn_c_try_run "$LINENO"; then : 6729if ac_fn_c_try_run "$LINENO"
 6730then :
6169 ac_cv_func_vfork_works=yes 6731 ac_cv_func_vfork_works=yes
6170else 6732else $as_nop
6171 ac_cv_func_vfork_works=no 6733 ac_cv_func_vfork_works=no
6172fi 6734fi
6173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6174 conftest.$ac_objext conftest.beam conftest.$ac_ext 6736 conftest.$ac_objext conftest.beam conftest.$ac_ext
6175fi 6737fi
6176 6738
6177fi 6739fi
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 6740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6179$as_echo "$ac_cv_func_vfork_works" >&6; } 6741printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
6180 6742
6181fi; 6743fi;
6182if test "x$ac_cv_func_fork_works" = xcross; then 6744if test "x$ac_cv_func_fork_works" = xcross; then
6183 ac_cv_func_vfork_works=$ac_cv_func_vfork 6745 ac_cv_func_vfork_works=$ac_cv_func_vfork
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6185$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 6747printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6186fi 6748fi
6187 6749
6188if test "x$ac_cv_func_vfork_works" = xyes; then 6750if test "x$ac_cv_func_vfork_works" = xyes; then
6189 6751
6190$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 6752printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6191 6753
6192else 6754else
6193 6755
6194$as_echo "#define vfork fork" >>confdefs.h 6756printf "%s\n" "#define vfork fork" >>confdefs.h
6195 6757
6196fi 6758fi
6197if test "x$ac_cv_func_fork_works" = xyes; then 6759if test "x$ac_cv_func_fork_works" = xyes; then
6198 6760
6199$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 6761printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
6200 6762
6201fi 6763fi
6202 6764
6203 6765
6204as_ac_Symbol=`$as_echo "ac_cv_have_decl_snprintf(char *, size_t, const char *, ...)" | $as_tr_sh` 6766as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_snprintf(char *, size_t, const char *, ...)" | $as_tr_sh`
6205ac_fn_c_check_decl "$LINENO" "snprintf(char *, size_t, const char *, ...)" "$as_ac_Symbol" "#include <stdio.h> 6767ac_fn_check_decl "$LINENO" "snprintf(char *, size_t, const char *, ...)" "$as_ac_Symbol" "#include <stdio.h>
6206" 6768" "$ac_c_undeclared_builtin_options" "CFLAGS"
6207if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 6769if eval test \"x\$"$as_ac_Symbol"\" = x"yes"
 6770then :
6208 ac_have_decl=1 6771 ac_have_decl=1
6209else 6772else $as_nop
6210 ac_have_decl=0 6773 ac_have_decl=0
6211fi 6774fi
 6775printf "%s\n" "#define HAVE_DECL_SNPRINTF $ac_have_decl" >>confdefs.h
 6776if test $ac_have_decl = 1
 6777then :
6212 6778
6213cat >>confdefs.h <<_ACEOF 6779else $as_nop
6214#define HAVE_DECL_SNPRINTF $ac_have_decl 
6215_ACEOF 
6216if test $ac_have_decl = 1; then : 
6217 
6218else 
6219 case " $LIBOBJS " in 6780 case " $LIBOBJS " in
6220 *" snprintf.$ac_objext "* ) ;; 6781 *" snprintf.$ac_objext "* ) ;;
6221 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 6782 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6222 ;; 6783 ;;
6223esac 6784esac
6224 6785
6225fi 6786fi
6226 6787
6227as_ac_Symbol=`$as_echo "ac_cv_have_decl_asprintf(char **, const char *, ...)" | $as_tr_sh` 6788as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_asprintf(char **, const char *, ...)" | $as_tr_sh`
6228ac_fn_c_check_decl "$LINENO" "asprintf(char **, const char *, ...)" "$as_ac_Symbol" "#define _GNU_SOURCE 6789ac_fn_check_decl "$LINENO" "asprintf(char **, const char *, ...)" "$as_ac_Symbol" "#define _GNU_SOURCE
6229 #include <stdio.h> 6790 #include <stdio.h>
6230" 6791" "$ac_c_undeclared_builtin_options" "CFLAGS"
6231if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 6792if eval test \"x\$"$as_ac_Symbol"\" = x"yes"
 6793then :
6232 ac_have_decl=1 6794 ac_have_decl=1
6233else 6795else $as_nop
6234 ac_have_decl=0 6796 ac_have_decl=0
6235fi 6797fi
 6798printf "%s\n" "#define HAVE_DECL_ASPRINTF $ac_have_decl" >>confdefs.h
 6799if test $ac_have_decl = 1
 6800then :
6236 6801
6237cat >>confdefs.h <<_ACEOF 6802else $as_nop
6238#define HAVE_DECL_ASPRINTF $ac_have_decl 
6239_ACEOF 
6240if test $ac_have_decl = 1; then : 
6241 
6242else 
6243 case " $LIBOBJS " in 6803 case " $LIBOBJS " in
6244 *" asprintf.$ac_objext "* ) ;; 6804 *" asprintf.$ac_objext "* ) ;;
6245 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 6805 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
6246 ;; 6806 ;;
6247esac 6807esac
6248 6808
6249fi 6809fi
6250 6810
6251as_ac_Symbol=`$as_echo "ac_cv_have_decl_strdup(const char *)" | $as_tr_sh` 6811as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_strdup(const char *)" | $as_tr_sh`
6252ac_fn_c_check_decl "$LINENO" "strdup(const char *)" "$as_ac_Symbol" "#include <string.h> 6812ac_fn_check_decl "$LINENO" "strdup(const char *)" "$as_ac_Symbol" "#include <string.h>
6253" 6813" "$ac_c_undeclared_builtin_options" "CFLAGS"
6254if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 6814if eval test \"x\$"$as_ac_Symbol"\" = x"yes"
 6815then :
6255 ac_have_decl=1 6816 ac_have_decl=1
6256else 6817else $as_nop
6257 ac_have_decl=0 6818 ac_have_decl=0
6258fi 6819fi
 6820printf "%s\n" "#define HAVE_DECL_STRDUP $ac_have_decl" >>confdefs.h
 6821if test $ac_have_decl = 1
 6822then :
6259 6823
6260cat >>confdefs.h <<_ACEOF 6824else $as_nop
6261#define HAVE_DECL_STRDUP $ac_have_decl 
6262_ACEOF 
6263if test $ac_have_decl = 1; then : 
6264 
6265else 
6266 case " $LIBOBJS " in 6825 case " $LIBOBJS " in
6267 *" strdup.$ac_objext "* ) ;; 6826 *" strdup.$ac_objext "* ) ;;
6268 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 6827 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
6269 ;; 6828 ;;
6270esac 6829esac
6271 6830
6272fi 6831fi
6273 6832
6274 6833
6275case $host_os in 6834case $host_os in
6276darwin*) 6835darwin*)
6277 # NetBSD PR 38488: warnx(3) escapes certain characters like \n 6836 # NetBSD PR 38488: warnx(3) escapes certain characters like \n
6278 ac_cv_func_warn=no 6837 ac_cv_func_warn=no
6279 ;; 6838 ;;
6280esac 6839esac
6281 6840
6282as_ac_Symbol=`$as_echo "ac_cv_have_decl_isblank(int)" | $as_tr_sh` 6841as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_isblank(int)" | $as_tr_sh`
6283ac_fn_c_check_decl "$LINENO" "isblank(int)" "$as_ac_Symbol" "#include <ctype.h> 6842ac_fn_check_decl "$LINENO" "isblank(int)" "$as_ac_Symbol" "#include <ctype.h>
6284" 6843" "$ac_c_undeclared_builtin_options" "CFLAGS"
6285if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 6844if eval test \"x\$"$as_ac_Symbol"\" = x"yes"
 6845then :
6286 ac_have_decl=1 6846 ac_have_decl=1
6287else 6847else $as_nop
6288 ac_have_decl=0 6848 ac_have_decl=0
6289fi 6849fi
 6850printf "%s\n" "#define HAVE_DECL_ISBLANK $ac_have_decl" >>confdefs.h
 6851if test $ac_have_decl = 1
 6852then :
6290 6853
6291cat >>confdefs.h <<_ACEOF 6854else $as_nop
6292#define HAVE_DECL_ISBLANK $ac_have_decl 
6293_ACEOF 
6294if test $ac_have_decl = 1; then : 
6295 
6296else 
6297 case " $LIBOBJS " in 6855 case " $LIBOBJS " in
6298 *" isblank.$ac_objext "* ) ;; 6856 *" isblank.$ac_objext "* ) ;;
6299 *) LIBOBJS="$LIBOBJS isblank.$ac_objext" 6857 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
6300 ;; 6858 ;;
6301esac 6859esac
6302 6860
6303fi 6861fi
6304 6862
6305 6863
6306ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err" 6864ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err"
6307if test "x$ac_cv_func_err" = xyes; then : 6865if test "x$ac_cv_func_err" = xyes
6308 $as_echo "#define HAVE_ERR 1" >>confdefs.h 6866then :
 6867 printf "%s\n" "#define HAVE_ERR 1" >>confdefs.h
6309 6868
6310else 6869else $as_nop
6311 case " $LIBOBJS " in 6870 case " $LIBOBJS " in
6312 *" err.$ac_objext "* ) ;; 6871 *" err.$ac_objext "* ) ;;
6313 *) LIBOBJS="$LIBOBJS err.$ac_objext" 6872 *) LIBOBJS="$LIBOBJS err.$ac_objext"
6314 ;; 6873 ;;
6315esac 6874esac
6316 6875
6317fi 6876fi
6318 
6319ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln" 6877ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
6320if test "x$ac_cv_func_fgetln" = xyes; then : 6878if test "x$ac_cv_func_fgetln" = xyes
6321 $as_echo "#define HAVE_FGETLN 1" >>confdefs.h 6879then :
 6880 printf "%s\n" "#define HAVE_FGETLN 1" >>confdefs.h
6322 6881
6323else 6882else $as_nop
6324 case " $LIBOBJS " in 6883 case " $LIBOBJS " in
6325 *" fgetln.$ac_objext "* ) ;; 6884 *" fgetln.$ac_objext "* ) ;;
6326 *) LIBOBJS="$LIBOBJS fgetln.$ac_objext" 6885 *) LIBOBJS="$LIBOBJS fgetln.$ac_objext"
6327 ;; 6886 ;;
6328esac 6887esac
6329 6888
6330fi 6889fi
6331 
6332ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch" 6890ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
6333if test "x$ac_cv_func_fnmatch" = xyes; then : 6891if test "x$ac_cv_func_fnmatch" = xyes
6334 $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h 6892then :
 6893 printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h
6335 6894
6336else 6895else $as_nop
6337 case " $LIBOBJS " in 6896 case " $LIBOBJS " in
6338 *" fnmatch.$ac_objext "* ) ;; 6897 *" fnmatch.$ac_objext "* ) ;;
6339 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" 6898 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
6340 ;; 6899 ;;
6341esac 6900esac
6342 6901
6343fi 6902fi
6344 
6345ac_fn_c_check_func "$LINENO" "fparseln" "ac_cv_func_fparseln" 6903ac_fn_c_check_func "$LINENO" "fparseln" "ac_cv_func_fparseln"
6346if test "x$ac_cv_func_fparseln" = xyes; then : 6904if test "x$ac_cv_func_fparseln" = xyes
6347 $as_echo "#define HAVE_FPARSELN 1" >>confdefs.h 6905then :
 6906 printf "%s\n" "#define HAVE_FPARSELN 1" >>confdefs.h
6348 6907
6349else 6908else $as_nop
6350 case " $LIBOBJS " in 6909 case " $LIBOBJS " in
6351 *" fparseln.$ac_objext "* ) ;; 6910 *" fparseln.$ac_objext "* ) ;;
6352 *) LIBOBJS="$LIBOBJS fparseln.$ac_objext" 6911 *) LIBOBJS="$LIBOBJS fparseln.$ac_objext"
6353 ;; 6912 ;;
6354esac 6913esac
6355 6914
6356fi 6915fi
6357 
6358ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim" 6916ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim"
6359if test "x$ac_cv_func_getdelim" = xyes; then : 6917if test "x$ac_cv_func_getdelim" = xyes
6360 $as_echo "#define HAVE_GETDELIM 1" >>confdefs.h 6918then :
 6919 printf "%s\n" "#define HAVE_GETDELIM 1" >>confdefs.h
6361 6920
6362else 6921else $as_nop
6363 case " $LIBOBJS " in 6922 case " $LIBOBJS " in
6364 *" getdelim.$ac_objext "* ) ;; 6923 *" getdelim.$ac_objext "* ) ;;
6365 *) LIBOBJS="$LIBOBJS getdelim.$ac_objext" 6924 *) LIBOBJS="$LIBOBJS getdelim.$ac_objext"
6366 ;; 6925 ;;
6367esac 6926esac
6368 6927
6369fi 6928fi
6370 
6371ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv" 6929ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
6372if test "x$ac_cv_func_getenv" = xyes; then : 6930if test "x$ac_cv_func_getenv" = xyes
6373 $as_echo "#define HAVE_GETENV 1" >>confdefs.h 6931then :
 6932 printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
6374 6933
6375else 6934else $as_nop
6376 case " $LIBOBJS " in 6935 case " $LIBOBJS " in
6377 *" getenv.$ac_objext "* ) ;; 6936 *" getenv.$ac_objext "* ) ;;
6378 *) LIBOBJS="$LIBOBJS getenv.$ac_objext" 6937 *) LIBOBJS="$LIBOBJS getenv.$ac_objext"
6379 ;; 6938 ;;
6380esac 6939esac
6381 6940
6382fi 6941fi
6383 
6384ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 6942ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
6385if test "x$ac_cv_func_getline" = xyes; then : 6943if test "x$ac_cv_func_getline" = xyes
6386 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h 6944then :
 6945 printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
6387 6946
6388else 6947else $as_nop
6389 case " $LIBOBJS " in 6948 case " $LIBOBJS " in
6390 *" getline.$ac_objext "* ) ;; 6949 *" getline.$ac_objext "* ) ;;
6391 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 6950 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
6392 ;; 6951 ;;
6393esac 6952esac
6394 6953
6395fi 6954fi
6396 
6397ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" 6955ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
6398if test "x$ac_cv_func_lchflags" = xyes; then : 6956if test "x$ac_cv_func_lchflags" = xyes
6399 $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h 6957then :
 6958 printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h
6400 6959
6401else 6960else $as_nop
6402 case " $LIBOBJS " in 6961 case " $LIBOBJS " in
6403 *" lchflags.$ac_objext "* ) ;; 6962 *" lchflags.$ac_objext "* ) ;;
6404 *) LIBOBJS="$LIBOBJS lchflags.$ac_objext" 6963 *) LIBOBJS="$LIBOBJS lchflags.$ac_objext"
6405 ;; 6964 ;;
6406esac 6965esac
6407 6966
6408fi 6967fi
6409 
6410ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" 6968ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
6411if test "x$ac_cv_func_lchmod" = xyes; then : 6969if test "x$ac_cv_func_lchmod" = xyes
6412 $as_echo "#define HAVE_LCHMOD 1" >>confdefs.h 6970then :
 6971 printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h
6413 6972
6414else 6973else $as_nop
6415 case " $LIBOBJS " in 6974 case " $LIBOBJS " in
6416 *" lchmod.$ac_objext "* ) ;; 6975 *" lchmod.$ac_objext "* ) ;;
6417 *) LIBOBJS="$LIBOBJS lchmod.$ac_objext" 6976 *) LIBOBJS="$LIBOBJS lchmod.$ac_objext"
6418 ;; 6977 ;;
6419esac 6978esac
6420 6979
6421fi 6980fi
6422 
6423ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown" 6981ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
6424if test "x$ac_cv_func_lchown" = xyes; then : 6982if test "x$ac_cv_func_lchown" = xyes
6425 $as_echo "#define HAVE_LCHOWN 1" >>confdefs.h 6983then :
 6984 printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
6426 6985
6427else 6986else $as_nop
6428 case " $LIBOBJS " in 6987 case " $LIBOBJS " in
6429 *" lchown.$ac_objext "* ) ;; 6988 *" lchown.$ac_objext "* ) ;;
6430 *) LIBOBJS="$LIBOBJS lchown.$ac_objext" 6989 *) LIBOBJS="$LIBOBJS lchown.$ac_objext"
6431 ;; 6990 ;;
6432esac 6991esac
6433 6992
6434fi 6993fi
6435 
6436ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes" 6994ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes"
6437if test "x$ac_cv_func_lutimes" = xyes; then : 6995if test "x$ac_cv_func_lutimes" = xyes
6438 $as_echo "#define HAVE_LUTIMES 1" >>confdefs.h 6996then :
 6997 printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h
6439 6998
6440else 6999else $as_nop
6441 case " $LIBOBJS " in 7000 case " $LIBOBJS " in
6442 *" lutimes.$ac_objext "* ) ;; 7001 *" lutimes.$ac_objext "* ) ;;
6443 *) LIBOBJS="$LIBOBJS lutimes.$ac_objext" 7002 *) LIBOBJS="$LIBOBJS lutimes.$ac_objext"
6444 ;; 7003 ;;
6445esac 7004esac
6446 7005
6447fi 7006fi
6448 
6449ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp" 7007ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
6450if test "x$ac_cv_func_mkdtemp" = xyes; then : 7008if test "x$ac_cv_func_mkdtemp" = xyes
6451 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h 7009then :
 7010 printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h
6452 7011
6453else 7012else $as_nop
6454 case " $LIBOBJS " in 7013 case " $LIBOBJS " in
6455 *" mkdtemp.$ac_objext "* ) ;; 7014 *" mkdtemp.$ac_objext "* ) ;;
6456 *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext" 7015 *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext"
6457 ;; 7016 ;;
6458esac 7017esac
6459 7018
6460fi 7019fi
6461 
6462ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 7020ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
6463if test "x$ac_cv_func_mkstemp" = xyes; then : 7021if test "x$ac_cv_func_mkstemp" = xyes
6464 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h 7022then :
 7023 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
6465 7024
6466else 7025else $as_nop
6467 case " $LIBOBJS " in 7026 case " $LIBOBJS " in
6468 *" mkstemp.$ac_objext "* ) ;; 7027 *" mkstemp.$ac_objext "* ) ;;
6469 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" 7028 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
6470 ;; 7029 ;;
6471esac 7030esac
6472 7031
6473fi 7032fi
6474 
6475ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" 7033ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
6476if test "x$ac_cv_func_setenv" = xyes; then : 7034if test "x$ac_cv_func_setenv" = xyes
6477 $as_echo "#define HAVE_SETENV 1" >>confdefs.h 7035then :
 7036 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
6478 7037
6479else 7038else $as_nop
6480 case " $LIBOBJS " in 7039 case " $LIBOBJS " in
6481 *" setenv.$ac_objext "* ) ;; 7040 *" setenv.$ac_objext "* ) ;;
6482 *) LIBOBJS="$LIBOBJS setenv.$ac_objext" 7041 *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
6483 ;; 7042 ;;
6484esac 7043esac
6485 7044
6486fi 7045fi
6487 
6488ac_fn_c_check_func "$LINENO" "setgroupent" "ac_cv_func_setgroupent" 7046ac_fn_c_check_func "$LINENO" "setgroupent" "ac_cv_func_setgroupent"
6489if test "x$ac_cv_func_setgroupent" = xyes; then : 7047if test "x$ac_cv_func_setgroupent" = xyes
6490 $as_echo "#define HAVE_SETGROUPENT 1" >>confdefs.h 7048then :
 7049 printf "%s\n" "#define HAVE_SETGROUPENT 1" >>confdefs.h
6491 7050
6492else 7051else $as_nop
6493 case " $LIBOBJS " in 7052 case " $LIBOBJS " in
6494 *" setgroupent.$ac_objext "* ) ;; 7053 *" setgroupent.$ac_objext "* ) ;;
6495 *) LIBOBJS="$LIBOBJS setgroupent.$ac_objext" 7054 *) LIBOBJS="$LIBOBJS setgroupent.$ac_objext"
6496 ;; 7055 ;;
6497esac 7056esac
6498 7057
6499fi 7058fi
6500 
6501ac_fn_c_check_func "$LINENO" "setpassent" "ac_cv_func_setpassent" 7059ac_fn_c_check_func "$LINENO" "setpassent" "ac_cv_func_setpassent"
6502if test "x$ac_cv_func_setpassent" = xyes; then : 7060if test "x$ac_cv_func_setpassent" = xyes
6503 $as_echo "#define HAVE_SETPASSENT 1" >>confdefs.h 7061then :
 7062 printf "%s\n" "#define HAVE_SETPASSENT 1" >>confdefs.h
6504 7063
6505else 7064else $as_nop
6506 case " $LIBOBJS " in 7065 case " $LIBOBJS " in
6507 *" setpassent.$ac_objext "* ) ;; 7066 *" setpassent.$ac_objext "* ) ;;
6508 *) LIBOBJS="$LIBOBJS setpassent.$ac_objext" 7067 *) LIBOBJS="$LIBOBJS setpassent.$ac_objext"
6509 ;; 7068 ;;
6510esac 7069esac
6511 7070
6512fi 7071fi
6513 
6514ac_fn_c_check_func "$LINENO" "setprogname" "ac_cv_func_setprogname" 7072ac_fn_c_check_func "$LINENO" "setprogname" "ac_cv_func_setprogname"
6515if test "x$ac_cv_func_setprogname" = xyes; then : 7073if test "x$ac_cv_func_setprogname" = xyes
6516 $as_echo "#define HAVE_SETPROGNAME 1" >>confdefs.h 7074then :
 7075 printf "%s\n" "#define HAVE_SETPROGNAME 1" >>confdefs.h
6517 7076
6518else 7077else $as_nop
6519 case " $LIBOBJS " in 7078 case " $LIBOBJS " in
6520 *" setprogname.$ac_objext "* ) ;; 7079 *" setprogname.$ac_objext "* ) ;;
6521 *) LIBOBJS="$LIBOBJS setprogname.$ac_objext" 7080 *) LIBOBJS="$LIBOBJS setprogname.$ac_objext"
6522 ;; 7081 ;;
6523esac 7082esac
6524 7083
6525fi 7084fi
6526 
6527ac_fn_c_check_func "$LINENO" "shquote" "ac_cv_func_shquote" 7085ac_fn_c_check_func "$LINENO" "shquote" "ac_cv_func_shquote"
6528if test "x$ac_cv_func_shquote" = xyes; then : 7086if test "x$ac_cv_func_shquote" = xyes
6529 $as_echo "#define HAVE_SHQUOTE 1" >>confdefs.h 7087then :
 7088 printf "%s\n" "#define HAVE_SHQUOTE 1" >>confdefs.h
6530 7089
6531else 7090else $as_nop
6532 case " $LIBOBJS " in 7091 case " $LIBOBJS " in
6533 *" shquote.$ac_objext "* ) ;; 7092 *" shquote.$ac_objext "* ) ;;
6534 *) LIBOBJS="$LIBOBJS shquote.$ac_objext" 7093 *) LIBOBJS="$LIBOBJS shquote.$ac_objext"
6535 ;; 7094 ;;
6536esac 7095esac
6537 7096
6538fi 7097fi
6539 
6540ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs" 7098ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
6541if test "x$ac_cv_func_statvfs" = xyes; then : 7099if test "x$ac_cv_func_statvfs" = xyes
6542 $as_echo "#define HAVE_STATVFS 1" >>confdefs.h 7100then :
 7101 printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h
6543 7102
6544else 7103else $as_nop
6545 case " $LIBOBJS " in 7104 case " $LIBOBJS " in
6546 *" statvfs.$ac_objext "* ) ;; 7105 *" statvfs.$ac_objext "* ) ;;
6547 *) LIBOBJS="$LIBOBJS statvfs.$ac_objext" 7106 *) LIBOBJS="$LIBOBJS statvfs.$ac_objext"
6548 ;; 7107 ;;
6549esac 7108esac
6550 7109
6551fi 7110fi
6552 
6553ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 7111ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
6554if test "x$ac_cv_func_strerror" = xyes; then : 7112if test "x$ac_cv_func_strerror" = xyes
6555 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 7113then :
 7114 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
6556 7115
6557else 7116else $as_nop
6558 case " $LIBOBJS " in 7117 case " $LIBOBJS " in
6559 *" strerror.$ac_objext "* ) ;; 7118 *" strerror.$ac_objext "* ) ;;
6560 *) LIBOBJS="$LIBOBJS strerror.$ac_objext" 7119 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
6561 ;; 7120 ;;
6562esac 7121esac
6563 7122
6564fi 7123fi
6565 
6566ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 7124ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
6567if test "x$ac_cv_func_strlcat" = xyes; then : 7125if test "x$ac_cv_func_strlcat" = xyes
6568 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 7126then :
 7127 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
6569 7128
6570else 7129else $as_nop
6571 case " $LIBOBJS " in 7130 case " $LIBOBJS " in
6572 *" strlcat.$ac_objext "* ) ;; 7131 *" strlcat.$ac_objext "* ) ;;
6573 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 7132 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
6574 ;; 7133 ;;
6575esac 7134esac
6576 7135
6577fi 7136fi
6578 
6579ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 7137ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
6580if test "x$ac_cv_func_strlcpy" = xyes; then : 7138if test "x$ac_cv_func_strlcpy" = xyes
6581 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 7139then :
 7140 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
6582 7141
6583else 7142else $as_nop
6584 case " $LIBOBJS " in 7143 case " $LIBOBJS " in
6585 *" strlcpy.$ac_objext "* ) ;; 7144 *" strlcpy.$ac_objext "* ) ;;
6586 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 7145 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
6587 ;; 7146 ;;
6588esac 7147esac
6589 7148
6590fi 7149fi
6591 
6592ac_fn_c_check_func "$LINENO" "strmode" "ac_cv_func_strmode" 7150ac_fn_c_check_func "$LINENO" "strmode" "ac_cv_func_strmode"
6593if test "x$ac_cv_func_strmode" = xyes; then : 7151if test "x$ac_cv_func_strmode" = xyes
6594 $as_echo "#define HAVE_STRMODE 1" >>confdefs.h 7152then :
 7153 printf "%s\n" "#define HAVE_STRMODE 1" >>confdefs.h
6595 7154
6596else 7155else $as_nop
6597 case " $LIBOBJS " in 7156 case " $LIBOBJS " in
6598 *" strmode.$ac_objext "* ) ;; 7157 *" strmode.$ac_objext "* ) ;;
6599 *) LIBOBJS="$LIBOBJS strmode.$ac_objext" 7158 *) LIBOBJS="$LIBOBJS strmode.$ac_objext"
6600 ;; 7159 ;;
6601esac 7160esac
6602 7161
6603fi 7162fi
6604 
6605ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 7163ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
6606if test "x$ac_cv_func_strsep" = xyes; then : 7164if test "x$ac_cv_func_strsep" = xyes
6607 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h 7165then :
 7166 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
6608 7167
6609else 7168else $as_nop
6610 case " $LIBOBJS " in 7169 case " $LIBOBJS " in
6611 *" strsep.$ac_objext "* ) ;; 7170 *" strsep.$ac_objext "* ) ;;
6612 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 7171 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
6613 ;; 7172 ;;
6614esac 7173esac
6615 7174
6616fi 7175fi
6617 
6618ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 7176ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
6619if test "x$ac_cv_func_strtoll" = xyes; then : 7177if test "x$ac_cv_func_strtoll" = xyes
6620 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h 7178then :
 7179 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
6621 7180
6622else 7181else $as_nop
6623 case " $LIBOBJS " in 7182 case " $LIBOBJS " in
6624 *" strtoll.$ac_objext "* ) ;; 7183 *" strtoll.$ac_objext "* ) ;;
6625 *) LIBOBJS="$LIBOBJS strtoll.$ac_objext" 7184 *) LIBOBJS="$LIBOBJS strtoll.$ac_objext"
6626 ;; 7185 ;;
6627esac 7186esac
6628 7187
6629fi 7188fi
6630 
6631ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 7189ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6632if test "x$ac_cv_func_unsetenv" = xyes; then : 7190if test "x$ac_cv_func_unsetenv" = xyes
6633 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h 7191then :
 7192 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
6634 7193
6635else 7194else $as_nop
6636 case " $LIBOBJS " in 7195 case " $LIBOBJS " in
6637 *" unsetenv.$ac_objext "* ) ;; 7196 *" unsetenv.$ac_objext "* ) ;;
6638 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext" 7197 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
6639 ;; 7198 ;;
6640esac 7199esac
6641 7200
6642fi 7201fi
6643 
6644ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" 7202ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
6645if test "x$ac_cv_func_usleep" = xyes; then : 7203if test "x$ac_cv_func_usleep" = xyes
6646 $as_echo "#define HAVE_USLEEP 1" >>confdefs.h 7204then :
 7205 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
6647 7206
6648else 7207else $as_nop
6649 case " $LIBOBJS " in 7208 case " $LIBOBJS " in
6650 *" usleep.$ac_objext "* ) ;; 7209 *" usleep.$ac_objext "* ) ;;
6651 *) LIBOBJS="$LIBOBJS usleep.$ac_objext" 7210 *) LIBOBJS="$LIBOBJS usleep.$ac_objext"
6652 ;; 7211 ;;
6653esac 7212esac
6654 7213
6655fi 7214fi
6656 
6657ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" 7215ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
6658if test "x$ac_cv_func_utimes" = xyes; then : 7216if test "x$ac_cv_func_utimes" = xyes
6659 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h 7217then :
 7218 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
6660 7219
6661else 7220else $as_nop
6662 case " $LIBOBJS " in 7221 case " $LIBOBJS " in
6663 *" utimes.$ac_objext "* ) ;; 7222 *" utimes.$ac_objext "* ) ;;
6664 *) LIBOBJS="$LIBOBJS utimes.$ac_objext" 7223 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
6665 ;; 7224 ;;
6666esac 7225esac
6667 7226
6668fi 7227fi
6669 
6670ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn" 7228ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn"
6671if test "x$ac_cv_func_warn" = xyes; then : 7229if test "x$ac_cv_func_warn" = xyes
6672 $as_echo "#define HAVE_WARN 1" >>confdefs.h 7230then :
 7231 printf "%s\n" "#define HAVE_WARN 1" >>confdefs.h
6673 7232
6674else 7233else $as_nop
6675 case " $LIBOBJS " in 7234 case " $LIBOBJS " in
6676 *" warn.$ac_objext "* ) ;; 7235 *" warn.$ac_objext "* ) ;;
6677 *) LIBOBJS="$LIBOBJS warn.$ac_objext" 7236 *) LIBOBJS="$LIBOBJS warn.$ac_objext"
6678 ;; 7237 ;;
6679esac 7238esac
6680 7239
6681fi 7240fi
6682 7241
6683 7242
6684 7243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 7244printf %s "checking for library containing socket... " >&6; }
6686$as_echo_n "checking for library containing socket... " >&6; } 7245if test ${ac_cv_search_socket+y}
6687if ${ac_cv_search_socket+:} false; then : 7246then :
6688 $as_echo_n "(cached) " >&6 7247 printf %s "(cached) " >&6
6689else 7248else $as_nop
6690 ac_func_search_save_LIBS=$LIBS 7249 ac_func_search_save_LIBS=$LIBS
6691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692/* end confdefs.h. */ 7251/* end confdefs.h. */
6693 7252
6694/* Override any GCC internal prototype to avoid an error. 7253/* Override any GCC internal prototype to avoid an error.
6695 Use char because int might match the return type of a GCC 7254 Use char because int might match the return type of a GCC
6696 builtin and then its argument prototype would still apply. */ 7255 builtin and then its argument prototype would still apply. */
6697#ifdef __cplusplus 
6698extern "C" 
6699#endif 
6700char socket (); 7256char socket ();
6701int 7257int
6702main () 7258main (void)
6703{ 7259{
6704return socket (); 7260return socket ();
6705 ; 7261 ;
6706 return 0; 7262 return 0;
6707} 7263}
6708_ACEOF 7264_ACEOF
6709for ac_lib in '' socket network; do 7265for ac_lib in '' socket network
 7266do
6710 if test -z "$ac_lib"; then 7267 if test -z "$ac_lib"; then
6711 ac_res="none required" 7268 ac_res="none required"
6712 else 7269 else
6713 ac_res=-l$ac_lib 7270 ac_res=-l$ac_lib
6714 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6715 fi 7272 fi
6716 if ac_fn_c_try_link "$LINENO"; then : 7273 if ac_fn_c_try_link "$LINENO"
 7274then :
6717 ac_cv_search_socket=$ac_res 7275 ac_cv_search_socket=$ac_res
6718fi 7276fi
6719rm -f core conftest.err conftest.$ac_objext \ 7277rm -f core conftest.err conftest.$ac_objext conftest.beam \
6720 conftest$ac_exeext 7278 conftest$ac_exeext
6721 if ${ac_cv_search_socket+:} false; then : 7279 if test ${ac_cv_search_socket+y}
 7280then :
6722 break 7281 break
6723fi 7282fi
6724done 7283done
6725if ${ac_cv_search_socket+:} false; then : 7284if test ${ac_cv_search_socket+y}
 7285then :
6726 7286
6727else 7287else $as_nop
6728 ac_cv_search_socket=no 7288 ac_cv_search_socket=no
6729fi 7289fi
6730rm conftest.$ac_ext 7290rm conftest.$ac_ext
6731LIBS=$ac_func_search_save_LIBS 7291LIBS=$ac_func_search_save_LIBS
6732fi 7292fi
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 7293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6734$as_echo "$ac_cv_search_socket" >&6; } 7294printf "%s\n" "$ac_cv_search_socket" >&6; }
6735ac_res=$ac_cv_search_socket 7295ac_res=$ac_cv_search_socket
6736if test "$ac_res" != no; then : 7296if test "$ac_res" != no
 7297then :
6737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6738 7299
6739fi 7300fi
6740 7301
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6742$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7303printf %s "checking for gethostbyname in -lnsl... " >&6; }
6743if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7304if test ${ac_cv_lib_nsl_gethostbyname+y}
6744 $as_echo_n "(cached) " >&6 7305then :
6745else 7306 printf %s "(cached) " >&6
 7307else $as_nop
6746 ac_check_lib_save_LIBS=$LIBS 7308 ac_check_lib_save_LIBS=$LIBS
6747LIBS="-lnsl $LIBS" 7309LIBS="-lnsl $LIBS"
6748cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749/* end confdefs.h. */ 7311/* end confdefs.h. */
6750 7312
6751/* Override any GCC internal prototype to avoid an error. 7313/* Override any GCC internal prototype to avoid an error.
6752 Use char because int might match the return type of a GCC 7314 Use char because int might match the return type of a GCC
6753 builtin and then its argument prototype would still apply. */ 7315 builtin and then its argument prototype would still apply. */
6754#ifdef __cplusplus 
6755extern "C" 
6756#endif 
6757char gethostbyname (); 7316char gethostbyname ();
6758int 7317int
6759main () 7318main (void)
6760{ 7319{
6761return gethostbyname (); 7320return gethostbyname ();
6762 ; 7321 ;
6763 return 0; 7322 return 0;
6764} 7323}
6765_ACEOF 7324_ACEOF
6766if ac_fn_c_try_link "$LINENO"; then : 7325if ac_fn_c_try_link "$LINENO"
 7326then :
6767 ac_cv_lib_nsl_gethostbyname=yes 7327 ac_cv_lib_nsl_gethostbyname=yes
6768else 7328else $as_nop
6769 ac_cv_lib_nsl_gethostbyname=no 7329 ac_cv_lib_nsl_gethostbyname=no
6770fi 7330fi
6771rm -f core conftest.err conftest.$ac_objext \ 7331rm -f core conftest.err conftest.$ac_objext conftest.beam \
6772 conftest$ac_exeext conftest.$ac_ext 7332 conftest$ac_exeext conftest.$ac_ext
6773LIBS=$ac_check_lib_save_LIBS 7333LIBS=$ac_check_lib_save_LIBS
6774fi 7334fi
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6776$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7336printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
6777if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7337if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
6778 cat >>confdefs.h <<_ACEOF 7338then :
6779#define HAVE_LIBNSL 1 7339 printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
6780_ACEOF 
6781 7340
6782 LIBS="-lnsl $LIBS" 7341 LIBS="-lnsl $LIBS"
6783 7342
6784fi 7343fi
6785 7344
6786 7345
6787need_getaddrinfo=no 7346need_getaddrinfo=no
6788ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#ifdef HAVE_SYS_TYPES_H 7347ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#ifdef HAVE_SYS_TYPES_H
6789# include <sys/types.h> 7348# include <sys/types.h>
6790#endif 7349#endif
6791 7350
6792#include <sys/socket.h> 7351#include <sys/socket.h>
6793 7352
6794" 7353"
6795if test "x$ac_cv_type_socklen_t" = xyes; then : 7354if test "x$ac_cv_type_socklen_t" = xyes
 7355then :
6796 7356
6797cat >>confdefs.h <<_ACEOF 7357printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6798#define HAVE_SOCKLEN_T 1 
6799_ACEOF 
6800 7358
6801 7359
6802fi 7360fi
6803 7361
6804ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <netdb.h> 7362ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <netdb.h>
6805" 7363"
6806if test "x$ac_cv_type_struct_addrinfo" = xyes; then : 7364if test "x$ac_cv_type_struct_addrinfo" = xyes
 7365then :
6807 7366
6808cat >>confdefs.h <<_ACEOF 7367printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
6809#define HAVE_STRUCT_ADDRINFO 1 
6810_ACEOF 
6811 7368
6812 7369
6813fi 7370fi
6814 7371
6815ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#ifdef HAVE_SYS_TYPES_H 7372ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#ifdef HAVE_SYS_TYPES_H
6816# include <sys/types.h> 7373# include <sys/types.h>
6817#endif 7374#endif
6818#include <netinet/in.h> 7375#include <netinet/in.h>
6819 7376
6820" 7377"
6821if test "x$ac_cv_type_struct_in6_addr" = xyes; then : 7378if test "x$ac_cv_type_struct_in6_addr" = xyes
 7379then :
6822 7380
6823cat >>confdefs.h <<_ACEOF 7381printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
6824#define HAVE_STRUCT_IN6_ADDR 1 
6825_ACEOF 
6826 7382
6827 7383
6828fi 7384fi
6829 7385
6830ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#ifdef HAVE_SYS_TYPES_H 7386ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#ifdef HAVE_SYS_TYPES_H
6831# include <sys/types.h> 7387# include <sys/types.h>
6832#endif 7388#endif
6833#include <netinet/in.h> 7389#include <netinet/in.h>
6834 7390
6835" 7391"
6836if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : 7392if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
 7393then :
6837 7394
6838cat >>confdefs.h <<_ACEOF 7395printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
6839#define HAVE_STRUCT_SOCKADDR_IN6 1 
6840_ACEOF 
6841 7396
6842 7397
6843fi 7398fi
6844 7399
6845ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#ifdef HAVE_SYS_TYPES_H 7400ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#ifdef HAVE_SYS_TYPES_H
6846# include <sys/types.h> 7401# include <sys/types.h>
6847#endif 7402#endif
6848#include <sys/socket.h> 7403#include <sys/socket.h>
6849 7404
6850" 7405"
6851if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 7406if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
 7407then :
6852 7408
6853cat >>confdefs.h <<_ACEOF 7409printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
6854#define HAVE_STRUCT_SOCKADDR_STORAGE 1 
6855_ACEOF 
6856 7410
6857 7411
6858fi 7412fi
6859 7413
6860for ac_func in getnameinfo gai_strerror getaddrinfo 7414
 7415 for ac_func in getnameinfo gai_strerror getaddrinfo
6861do : 7416do :
6862 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7417 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
6863ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7418ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6864if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7419if eval test \"x\$"$as_ac_var"\" = x"yes"
 7420then :
6865 cat >>confdefs.h <<_ACEOF 7421 cat >>confdefs.h <<_ACEOF
6866#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7422#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
6867_ACEOF 7423_ACEOF
6868 : 7424 :
6869else 7425else $as_nop
6870 need_getaddrinfo=yes 7426 need_getaddrinfo=yes
6871fi 7427fi
6872done 
6873 7428
 7429done
6874if test $need_getaddrinfo = yes; then 7430if test $need_getaddrinfo = yes; then
6875 case " $LIBOBJS " in 7431 case " $LIBOBJS " in
6876 *" getaddrinfo.$ac_objext "* ) ;; 7432 *" getaddrinfo.$ac_objext "* ) ;;
6877 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 7433 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
6878 ;; 7434 ;;
6879esac 7435esac
6880 7436
6881fi 7437fi
6882 7438
6883need_findenv=no 7439need_findenv=no
6884for ac_func in getenv setenv unsetenv 7440
 7441 for ac_func in getenv setenv unsetenv
6885do : 7442do :
6886 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7443 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
6887ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7444ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6888if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7445if eval test \"x\$"$as_ac_var"\" = x"yes"
 7446then :
6889 cat >>confdefs.h <<_ACEOF 7447 cat >>confdefs.h <<_ACEOF
6890#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7448#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
6891_ACEOF 7449_ACEOF
6892 : 7450 :
6893else 7451else $as_nop
6894 need_findenv=yes 7452 need_findenv=yes
6895fi 7453fi
6896done 
6897 7454
 7455done
6898if test $need_findenv = yes; then 7456if test $need_findenv = yes; then
6899 case " $LIBOBJS " in 7457 case " $LIBOBJS " in
6900 *" findenv.$ac_objext "* ) ;; 7458 *" findenv.$ac_objext "* ) ;;
6901 *) LIBOBJS="$LIBOBJS findenv.$ac_objext" 7459 *) LIBOBJS="$LIBOBJS findenv.$ac_objext"
6902 ;; 7460 ;;
6903esac 7461esac
6904 7462
6905fi 7463fi
6906 7464
6907need_gettemp=no 7465need_gettemp=no
6908for ac_func in mkdtemp mkstemp 7466
 7467 for ac_func in mkdtemp mkstemp
6909do : 7468do :
6910 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7469 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
6911ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7470ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6912if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7471if eval test \"x\$"$as_ac_var"\" = x"yes"
 7472then :
6913 cat >>confdefs.h <<_ACEOF 7473 cat >>confdefs.h <<_ACEOF
6914#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7474#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
6915_ACEOF 7475_ACEOF
6916 : 7476 :
6917else 7477else $as_nop
6918 need_gettemp=yes 7478 need_gettemp=yes
6919fi 7479fi
6920done 
6921 7480
 7481done
6922if test $need_gettemp = yes; then 7482if test $need_gettemp = yes; then
6923 case " $LIBOBJS " in 7483 case " $LIBOBJS " in
6924 *" gettemp.$ac_objext "* ) ;; 7484 *" gettemp.$ac_objext "* ) ;;
6925 *) LIBOBJS="$LIBOBJS gettemp.$ac_objext" 7485 *) LIBOBJS="$LIBOBJS gettemp.$ac_objext"
6926 ;; 7486 ;;
6927esac 7487esac
6928 7488
6929fi 7489fi
6930 7490
6931for ac_func in setlocale 7491ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
6932do : 7492if test "x$ac_cv_func_setlocale" = xyes
6933 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 7493then :
6934if test "x$ac_cv_func_setlocale" = xyes; then : 7494 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
6935 cat >>confdefs.h <<_ACEOF 
6936#define HAVE_SETLOCALE 1 
6937_ACEOF 
6938 7495
6939fi 7496fi
6940done 
6941 7497
6942 7498
6943need_setmode=no 7499need_setmode=no
6944for ac_func in getmode setmode 7500
 7501 for ac_func in getmode setmode
6945do : 7502do :
6946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7503 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
6947ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7504ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6948if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7505if eval test \"x\$"$as_ac_var"\" = x"yes"
 7506then :
6949 cat >>confdefs.h <<_ACEOF 7507 cat >>confdefs.h <<_ACEOF
6950#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7508#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
6951_ACEOF 7509_ACEOF
6952 : 7510 :
6953else 7511else $as_nop
6954 need_setmode=yes 7512 need_setmode=yes
6955fi 7513fi
6956done 
6957 7514
 7515done
6958 7516
6959if test $need_setmode = yes; then 7517if test $need_setmode = yes; then
6960 case " $LIBOBJS " in 7518 case " $LIBOBJS " in
6961 *" setmode.$ac_objext "* ) ;; 7519 *" setmode.$ac_objext "* ) ;;
6962 *) LIBOBJS="$LIBOBJS setmode.$ac_objext" 7520 *) LIBOBJS="$LIBOBJS setmode.$ac_objext"
6963 ;; 7521 ;;
6964esac 7522esac
6965 7523
6966fi 7524fi
6967 7525
6968need_strnlen=no 7526need_strnlen=no
6969for ac_func in strnlen 7527
 7528 for ac_func in strnlen
6970do : 7529do :
6971 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" 7530 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
6972if test "x$ac_cv_func_strnlen" = xyes; then : 7531if test "x$ac_cv_func_strnlen" = xyes
6973 cat >>confdefs.h <<_ACEOF 7532then :
6974#define HAVE_STRNLEN 1 7533 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
6975_ACEOF 
6976 : 7534 :
6977else 7535else $as_nop
6978 need_strnlen=yes 7536 need_strnlen=yes
6979fi 7537fi
6980done 
6981 7538
 7539done
6982 7540
6983if test $need_strnlen = yes; then 7541if test $need_strnlen = yes; then
6984 case " $LIBOBJS " in 7542 case " $LIBOBJS " in
6985 *" strnlen.$ac_objext "* ) ;; 7543 *" strnlen.$ac_objext "* ) ;;
6986 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" 7544 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
6987 ;; 7545 ;;
6988esac 7546esac
6989 7547
6990fi 7548fi
6991 7549
6992ac_fn_c_check_decl "$LINENO" "endgrent" "ac_cv_have_decl_endgrent" "$ac_includes_default" 7550ac_fn_check_decl "$LINENO" "endgrent" "ac_cv_have_decl_endgrent" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
6993if test "x$ac_cv_have_decl_endgrent" = xyes; then : 7551if test "x$ac_cv_have_decl_endgrent" = xyes
 7552then :
6994 ac_have_decl=1 7553 ac_have_decl=1
6995else 7554else $as_nop
6996 ac_have_decl=0 7555 ac_have_decl=0
6997fi 7556fi
6998 7557printf "%s\n" "#define HAVE_DECL_ENDGRENT $ac_have_decl" >>confdefs.h
6999cat >>confdefs.h <<_ACEOF 7558ac_fn_check_decl "$LINENO" "endpwent" "ac_cv_have_decl_endpwent" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
7000#define HAVE_DECL_ENDGRENT $ac_have_decl 7559if test "x$ac_cv_have_decl_endpwent" = xyes
7001_ACEOF 7560then :
7002ac_fn_c_check_decl "$LINENO" "endpwent" "ac_cv_have_decl_endpwent" "$ac_includes_default" 
7003if test "x$ac_cv_have_decl_endpwent" = xyes; then : 
7004 ac_have_decl=1 7561 ac_have_decl=1
7005else 7562else $as_nop
7006 ac_have_decl=0 7563 ac_have_decl=0
7007fi 7564fi
7008 7565printf "%s\n" "#define HAVE_DECL_ENDPWENT $ac_have_decl" >>confdefs.h
7009cat >>confdefs.h <<_ACEOF 7566ac_fn_check_decl "$LINENO" "setpassent" "ac_cv_have_decl_setpassent" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
7010#define HAVE_DECL_ENDPWENT $ac_have_decl 7567if test "x$ac_cv_have_decl_setpassent" = xyes
7011_ACEOF 7568then :
7012ac_fn_c_check_decl "$LINENO" "setpassent" "ac_cv_have_decl_setpassent" "$ac_includes_default" 
7013if test "x$ac_cv_have_decl_setpassent" = xyes; then : 
7014 ac_have_decl=1 7569 ac_have_decl=1
7015else 7570else $as_nop
7016 ac_have_decl=0 7571 ac_have_decl=0
7017fi 7572fi
7018 7573printf "%s\n" "#define HAVE_DECL_SETPASSENT $ac_have_decl" >>confdefs.h
7019cat >>confdefs.h <<_ACEOF 
7020#define HAVE_DECL_SETPASSENT $ac_have_decl 
7021_ACEOF 
7022 7574
7023 7575
7024need_pwcache=no 7576need_pwcache=no
7025for ac_func in gid_from_group group_from_gid pwcache_groupdb \ 
7026 pwcache_userdb uid_from_user user_from_uid \ 
7027 7577
 7578 for ac_func in gid_from_group group_from_gid pwcache_groupdb pwcache_userdb uid_from_user user_from_uid
7028do : 7579do :
7029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7580 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
7030ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7581ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7031if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7582if eval test \"x\$"$as_ac_var"\" = x"yes"
 7583then :
7032 cat >>confdefs.h <<_ACEOF 7584 cat >>confdefs.h <<_ACEOF
7033#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7585#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
7034_ACEOF 7586_ACEOF
7035 : 7587 :
7036else 7588else $as_nop
7037 need_pwcache=yes 7589 need_pwcache=yes
7038fi 7590fi
7039done 
7040 7591
 7592done
7041 7593
7042if test $need_pwcache = yes; then 7594if test $need_pwcache = yes; then
7043 case " $LIBOBJS " in 7595 case " $LIBOBJS " in
7044 *" pwcache.$ac_objext "* ) ;; 7596 *" pwcache.$ac_objext "* ) ;;
7045 *) LIBOBJS="$LIBOBJS pwcache.$ac_objext" 7597 *) LIBOBJS="$LIBOBJS pwcache.$ac_objext"
7046 ;; 7598 ;;
7047esac 7599esac
7048 7600
7049fi 7601fi
7050 7602
7051ac_fn_c_check_func "$LINENO" "fts_open" "ac_cv_func_fts_open" 7603ac_fn_c_check_func "$LINENO" "fts_open" "ac_cv_func_fts_open"
7052if test "x$ac_cv_func_fts_open" = xyes; then : 7604if test "x$ac_cv_func_fts_open" = xyes
 7605then :
7053 : 7606 :
7054else 7607else $as_nop
7055 7608
7056 $as_echo "#define HAVE_NBCOMPAT_FTS 1" >>confdefs.h 7609 printf "%s\n" "#define HAVE_NBCOMPAT_FTS 1" >>confdefs.h
7057 7610
7058 7611
7059 case " $LIBOBJS " in 7612 case " $LIBOBJS " in
7060 *" fts.$ac_objext "* ) ;; 7613 *" fts.$ac_objext "* ) ;;
7061 *) LIBOBJS="$LIBOBJS fts.$ac_objext" 7614 *) LIBOBJS="$LIBOBJS fts.$ac_objext"
7062 ;; 7615 ;;
7063esac 7616esac
7064 7617
7065 7618
7066fi 7619fi
7067 7620
7068 7621
7069ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" 7622ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
7070if test "x$ac_cv_func_timegm" = xyes; then : 7623if test "x$ac_cv_func_timegm" = xyes
 7624then :
7071 : 7625 :
7072else 7626else $as_nop
7073 case " $LIBOBJS " in 7627 case " $LIBOBJS " in
7074 *" timegm.$ac_objext "* ) ;; 7628 *" timegm.$ac_objext "* ) ;;
7075 *) LIBOBJS="$LIBOBJS timegm.$ac_objext" 7629 *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
7076 ;; 7630 ;;
7077esac 7631esac
7078 7632
7079fi 7633fi
7080 7634
7081 7635
7082# Handle Darwin 7 having a poll() compatibility function. Be 7636# Handle Darwin 7 having a poll() compatibility function. Be
7083# conservative -- if we don't find one of <poll.h> or <sys/poll.h>, then 7637# conservative -- if we don't find one of <poll.h> or <sys/poll.h>, then
7084# use our own poll() implementation. 7638# use our own poll() implementation.
7085# 7639#
7086pkg_cv_have_poll_h=no 7640pkg_cv_have_poll_h=no
7087for ac_header in poll.h sys/poll.h 7641ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
7088do : 7642if test "x$ac_cv_header_poll_h" = xyes
7089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7643then :
7090ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7644 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
7091if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 
7092 cat >>confdefs.h <<_ACEOF 
7093#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 
7094_ACEOF 
7095 7645
7096fi 7646fi
 7647ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
 7648if test "x$ac_cv_header_sys_poll_h" = xyes
 7649then :
 7650 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
7097 7651
7098done 7652fi
7099 7653
7100for ac_header in poll.h sys/poll.h 7654 for ac_header in poll.h sys/poll.h
7101do : 7655do :
7102 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7656 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
7103ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7657ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7104if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7658if eval test \"x\$"$as_ac_Header"\" = x"yes"
 7659then :
7105 cat >>confdefs.h <<_ACEOF 7660 cat >>confdefs.h <<_ACEOF
7106#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7661#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
7107_ACEOF 7662_ACEOF
7108 pkg_cv_have_poll_h=yes 7663 pkg_cv_have_poll_h=yes
7109fi 7664fi
7110 7665
7111done 7666done
7112 7667
7113 
7114pkg_use_nbcompat_poll=yes 7668pkg_use_nbcompat_poll=yes
7115if test $pkg_cv_have_poll_h = yes; then 7669if test $pkg_cv_have_poll_h = yes; then
7116 pkg_use_nbcompat_poll=no 7670 pkg_use_nbcompat_poll=no
7117fi 7671fi
7118 7672
7119if test $pkg_cv_have_poll_h = yes -o test $pkg_cv_have_sys_poll_h = yes; then 7673if test $pkg_cv_have_poll_h = yes -o test $pkg_cv_have_sys_poll_h = yes; then
7120 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 7674 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7121if test "x$ac_cv_func_poll" = xyes; then : 7675if test "x$ac_cv_func_poll" = xyes
 7676then :
7122 7677
7123 7678
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll() is implemented natively" >&5 7679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll() is implemented natively" >&5
7125$as_echo_n "checking if poll() is implemented natively... " >&6; } 7680printf %s "checking if poll() is implemented natively... " >&6; }
7126if ${pkg_cv_native_poll+:} false; then : 7681if test ${pkg_cv_native_poll+y}
7127 $as_echo_n "(cached) " >&6 7682then :
7128else 7683 printf %s "(cached) " >&6
 7684else $as_nop
7129 7685
7130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131/* end confdefs.h. */ 7687/* end confdefs.h. */
7132 #if HAVE_POLL_H 7688 #if HAVE_POLL_H
7133 #include <poll.h> 7689 #include <poll.h>
7134 #endif 7690 #endif
7135 #if HAVE_SYS_POLL_H 7691 #if HAVE_SYS_POLL_H
7136 #include <sys/poll.h> 7692 #include <sys/poll.h>
7137 #endif 7693 #endif
7138 7694
7139int 7695int
7140main () 7696main (void)
7141{ 7697{
7142 #ifdef _POLL_EMUL_H_ 7698 #ifdef _POLL_EMUL_H_
7143 #error "poll() is emulated" 7699 #error "poll() is emulated"
7144 #endif 7700 #endif
7145 ; 7701 ;
7146 ; 7702 ;
7147 return 0; 7703 return 0;
7148} 7704}
7149_ACEOF 7705_ACEOF
7150if ac_fn_c_try_compile "$LINENO"; then : 7706if ac_fn_c_try_compile "$LINENO"
 7707then :
7151 pkg_cv_native_poll=yes 7708 pkg_cv_native_poll=yes
7152else 7709else $as_nop
7153 pkg_cv_native_poll=no 7710 pkg_cv_native_poll=no
7154fi 7711fi
7155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7156 7713
7157fi 7714fi
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_native_poll" >&5 7715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_native_poll" >&5
7159$as_echo "$pkg_cv_native_poll" >&6; } 7716printf "%s\n" "$pkg_cv_native_poll" >&6; }
7160 if test "x$pkg_cv_native_poll" = "xyes"; then 7717 if test "x$pkg_cv_native_poll" = "xyes"; then
7161 pkg_use_nbcompat_poll=no 7718 pkg_use_nbcompat_poll=no
7162 else 7719 else
7163 pkg_use_nbcompat_poll=yes 7720 pkg_use_nbcompat_poll=yes
7164 : 7721 :
7165 fi 7722 fi
7166 7723
7167 7724
7168fi 7725fi
7169 7726
7170fi 7727fi
7171 7728
7172if test $pkg_use_nbcompat_poll = yes; then 7729if test $pkg_use_nbcompat_poll = yes; then
7173 $as_echo "#define HAVE_NBCOMPAT_POLL 1" >>confdefs.h 7730 printf "%s\n" "#define HAVE_NBCOMPAT_POLL 1" >>confdefs.h
7174 7731
7175 7732
7176 case " $LIBOBJS " in 7733 case " $LIBOBJS " in
7177 *" poll.$ac_objext "* ) ;; 7734 *" poll.$ac_objext "* ) ;;
7178 *) LIBOBJS="$LIBOBJS poll.$ac_objext" 7735 *) LIBOBJS="$LIBOBJS poll.$ac_objext"
7179 ;; 7736 ;;
7180esac 7737esac
7181 7738
7182fi 7739fi
7183 7740
7184for ac_func in getpassphrase getpgrp select 7741ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
7185do : 7742if test "x$ac_cv_func_getpassphrase" = xyes
7186 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7743then :
7187ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7744 printf "%s\n" "#define HAVE_GETPASSPHRASE 1" >>confdefs.h
7188if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7745
7189 cat >>confdefs.h <<_ACEOF 7746fi
7190#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7747ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
7191_ACEOF 7748if test "x$ac_cv_func_getpgrp" = xyes
 7749then :
 7750 printf "%s\n" "#define HAVE_GETPGRP 1" >>confdefs.h
 7751
 7752fi
 7753ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
 7754if test "x$ac_cv_func_select" = xyes
 7755then :
 7756 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
7192 7757
7193fi 7758fi
7194done 
7195 7759
7196 7760
7197ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" 7761ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
7198if test "x$ac_cv_func_getpgrp" = xyes; then : 7762if test "x$ac_cv_func_getpgrp" = xyes
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 7763then :
7200$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } 7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
7201if ${ac_cv_func_getpgrp_void+:} false; then : 7765printf %s "checking whether getpgrp requires zero arguments... " >&6; }
7202 $as_echo_n "(cached) " >&6 7766if test ${ac_cv_func_getpgrp_void+y}
7203else 7767then :
 7768 printf %s "(cached) " >&6
 7769else $as_nop
7204 # Use it with a single arg. 7770 # Use it with a single arg.
7205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206/* end confdefs.h. */ 7772/* end confdefs.h. */
7207$ac_includes_default 7773$ac_includes_default
7208int 7774int
7209main () 7775main (void)
7210{ 7776{
7211getpgrp (0); 7777getpgrp (0);
7212 ; 7778 ;
7213 return 0; 7779 return 0;
7214} 7780}
7215_ACEOF 7781_ACEOF
7216if ac_fn_c_try_compile "$LINENO"; then : 7782if ac_fn_c_try_compile "$LINENO"
 7783then :
7217 ac_cv_func_getpgrp_void=no 7784 ac_cv_func_getpgrp_void=no
7218else 7785else $as_nop
7219 ac_cv_func_getpgrp_void=yes 7786 ac_cv_func_getpgrp_void=yes
7220fi 7787fi
7221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7222 7789
7223fi 7790fi
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 7791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
7225$as_echo "$ac_cv_func_getpgrp_void" >&6; } 7792printf "%s\n" "$ac_cv_func_getpgrp_void" >&6; }
7226if test $ac_cv_func_getpgrp_void = yes; then 7793if test $ac_cv_func_getpgrp_void = yes; then
7227 7794
7228$as_echo "#define GETPGRP_VOID 1" >>confdefs.h 7795printf "%s\n" "#define GETPGRP_VOID 1" >>confdefs.h
7229 7796
7230fi 7797fi
7231 7798
7232fi 7799fi
7233 7800
7234 7801
7235ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" " #include <sys/statfs.h> 7802ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" " #include <sys/statfs.h>
7236" 7803"
7237if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then : 7804if test "x$ac_cv_member_struct_statfs_f_flags" = xyes
 7805then :
7238 7806
7239cat >>confdefs.h <<_ACEOF 7807printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FLAGS 1" >>confdefs.h
7240#define HAVE_STRUCT_STATFS_F_FLAGS 1 
7241_ACEOF 
7242 7808
7243: 7809:
7244else 7810else $as_nop
7245 : 7811 :
7246fi 7812fi
7247 7813
7248ac_fn_c_check_member "$LINENO" "struct statfs" "f_fsize" "ac_cv_member_struct_statfs_f_fsize" " #include <sys/statfs.h> 7814ac_fn_c_check_member "$LINENO" "struct statfs" "f_fsize" "ac_cv_member_struct_statfs_f_fsize" " #include <sys/statfs.h>
7249" 7815"
7250if test "x$ac_cv_member_struct_statfs_f_fsize" = xyes; then : 7816if test "x$ac_cv_member_struct_statfs_f_fsize" = xyes
 7817then :
7251 7818
7252cat >>confdefs.h <<_ACEOF 7819printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FSIZE 1" >>confdefs.h
7253#define HAVE_STRUCT_STATFS_F_FSIZE 1 
7254_ACEOF 
7255 7820
7256: 7821:
7257else 7822else $as_nop
7258 : 7823 :
7259fi 7824fi
7260 7825
7261ac_fn_c_check_member "$LINENO" "struct statfs" "f_iosize" "ac_cv_member_struct_statfs_f_iosize" " #include <sys/statfs.h> 7826ac_fn_c_check_member "$LINENO" "struct statfs" "f_iosize" "ac_cv_member_struct_statfs_f_iosize" " #include <sys/statfs.h>
7262" 7827"
7263if test "x$ac_cv_member_struct_statfs_f_iosize" = xyes; then : 7828if test "x$ac_cv_member_struct_statfs_f_iosize" = xyes
 7829then :
7264 7830
7265cat >>confdefs.h <<_ACEOF 7831printf "%s\n" "#define HAVE_STRUCT_STATFS_F_IOSIZE 1" >>confdefs.h
7266#define HAVE_STRUCT_STATFS_F_IOSIZE 1 
7267_ACEOF 
7268 7832
7269: 7833:
7270else 7834else $as_nop
7271 : 7835 :
7272fi 7836fi
7273 7837
7274ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" " #include <sys/types.h> 7838ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" " #include <sys/types.h>
7275 #if HAVE_DIRENT_H 7839 #if HAVE_DIRENT_H
7276 # include <dirent.h> 7840 # include <dirent.h>
7277 #else 7841 #else
7278 # define dirent direct 7842 # define dirent direct
7279 # if HAVE_SYS_NDIR_H 7843 # if HAVE_SYS_NDIR_H
7280 # include <sys/ndir.h> 7844 # include <sys/ndir.h>
7281 # endif 7845 # endif
7282 # if HAVE_SYS_DIR_H 7846 # if HAVE_SYS_DIR_H
7283 # include <sys/dir.h> 7847 # include <sys/dir.h>
7284 # endif 7848 # endif
7285 # if HAVE_NDIR_H 7849 # if HAVE_NDIR_H
7286 # include <ndir.h> 7850 # include <ndir.h>
7287 # endif 7851 # endif
7288 #endif 7852 #endif
7289" 7853"
7290if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes; then : 7854if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes
 7855then :
7291 7856
7292cat >>confdefs.h <<_ACEOF 7857printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
7293#define HAVE_STRUCT_DIRENT_D_NAMLEN 1 
7294_ACEOF 
7295 7858
7296: 7859:
7297else 7860else $as_nop
7298 : 7861 :
7299fi 7862fi
7300ac_fn_c_check_member "$LINENO" "DIR" "dd_fd" "ac_cv_member_DIR_dd_fd" " #include <sys/types.h> 7863ac_fn_c_check_member "$LINENO" "DIR" "dd_fd" "ac_cv_member_DIR_dd_fd" " #include <sys/types.h>
7301 #if HAVE_DIRENT_H 7864 #if HAVE_DIRENT_H
7302 # include <dirent.h> 7865 # include <dirent.h>
7303 #else 7866 #else
7304 # define dirent direct 7867 # define dirent direct
7305 # if HAVE_SYS_NDIR_H 7868 # if HAVE_SYS_NDIR_H
7306 # include <sys/ndir.h> 7869 # include <sys/ndir.h>
7307 # endif 7870 # endif
7308 # if HAVE_SYS_DIR_H 7871 # if HAVE_SYS_DIR_H
7309 # include <sys/dir.h> 7872 # include <sys/dir.h>
7310 # endif 7873 # endif
7311 # if HAVE_NDIR_H 7874 # if HAVE_NDIR_H
7312 # include <ndir.h> 7875 # include <ndir.h>
7313 # endif 7876 # endif
7314 #endif 7877 #endif
7315" 7878"
7316if test "x$ac_cv_member_DIR_dd_fd" = xyes; then : 7879if test "x$ac_cv_member_DIR_dd_fd" = xyes
 7880then :
7317 7881
7318cat >>confdefs.h <<_ACEOF 7882printf "%s\n" "#define HAVE_DIR_DD_FD 1" >>confdefs.h
7319#define HAVE_DIR_DD_FD 1 
7320_ACEOF 
7321 7883
7322: 7884:
7323else 7885else $as_nop
7324 : 7886 :
7325fi 7887fi
7326 7888
7327 7889
7328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5 7890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5
7329$as_echo_n "checking for dirfd... " >&6; } 7891printf %s "checking for dirfd... " >&6; }
7330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7892if test ${nb_cv_dirfd+y}
 7893then :
 7894 printf %s "(cached) " >&6
 7895else $as_nop
 7896
 7897 nb_cv_dirfd=no
 7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331/* end confdefs.h. */ 7899/* end confdefs.h. */
7332 #include <sys/types.h> 7900 #include <sys/types.h>
7333 #if HAVE_DIRENT_H 7901 #if HAVE_DIRENT_H
7334 # include <dirent.h> 7902 # include <dirent.h>
7335 #else 7903 #else
7336 # define dirent direct 7904 # define dirent direct
7337 # if HAVE_SYS_NDIR_H 7905 # if HAVE_SYS_NDIR_H
7338 # include <sys/ndir.h> 7906 # include <sys/ndir.h>
7339 # endif 7907 # endif
7340 # if HAVE_SYS_DIR_H 7908 # if HAVE_SYS_DIR_H
7341 # include <sys/dir.h> 7909 # include <sys/dir.h>
7342 # endif 7910 # endif
7343 # if HAVE_NDIR_H 7911 # if HAVE_NDIR_H
7344 # include <ndir.h> 7912 # include <ndir.h>
7345 # endif 7913 # endif
7346 #endif 7914 #endif
7347 int dummy_var; 7915 int dummy_var;
7348 7916
7349int 7917int
7350main () 7918main (void)
7351{ 7919{
7352 dummy_var = dirfd((DIR *)0) 7920 dummy_var = dirfd((DIR *)0)
7353 ; 7921 ;
7354 return 0; 7922 return 0;
7355} 7923}
7356_ACEOF 7924_ACEOF
7357if ac_fn_c_try_link "$LINENO"; then : 7925if ac_fn_c_try_link "$LINENO"
7358 7926then :
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7927 nb_cv_dirfd=yes
7360$as_echo "yes" >&6; } 7928fi
7361 7929rm -f core conftest.err conftest.$ac_objext conftest.beam \
7362$as_echo "#define HAVE_DIRFD 1" >>confdefs.h 7930 conftest$ac_exeext conftest.$ac_ext
7363 
7364 7931
7365else 7932fi
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nb_cv_dirfd" >&5
7367$as_echo "no" >&6; } 7934printf "%s\n" "$nb_cv_dirfd" >&6; }
 7935if test $nb_cv_dirfd = yes; then
7368 7936
 7937printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
7369 7938
7370fi 7939fi
7371rm -f core conftest.err conftest.$ac_objext \ 
7372 conftest$ac_exeext conftest.$ac_ext 
7373 7940
7374if test $ac_cv_type_long_long = yes; then 7941if test $ac_cv_type_long_long = yes; then
7375 7942
7376 7943
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking *printf() support for %lld" >&5 
7378$as_echo_n "checking *printf() support for %lld... " >&6; } 
7379 can_printf_longlong=no 7944 can_printf_longlong=no
7380 if test "$cross_compiling" = yes; then : 7945
7381 : 7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for *printf() support for %lld" >&5
7382else 7947printf %s "checking for *printf() support for %lld... " >&6; }
 7948if test ${nb_cv_printf_lld+y}
 7949then :
 7950 printf %s "(cached) " >&6
 7951else $as_nop
 7952
 7953 nb_cv_printf_lld=no
 7954 if test "$cross_compiling" = yes
 7955then :
 7956 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 7957printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 7958as_fn_error $? "cannot run test program while cross compiling
 7959See \`config.log' for more details" "$LINENO" 5; }
 7960else $as_nop
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384/* end confdefs.h. */ 7962/* end confdefs.h. */
7385 7963
7386 #include <stdio.h> 7964 #include <stdio.h>
7387 int main() { 7965 int main() {
7388 char buf[100]; 7966 char buf[100];
7389 sprintf(buf, "%lld", 4294967300LL); 7967 sprintf(buf, "%lld", 4294967300LL);
7390 return (strcmp(buf, "4294967300")); 7968 return (strcmp(buf, "4294967300"));
7391 } 7969 }
7392 7970
7393_ACEOF 7971_ACEOF
7394if ac_fn_c_try_run "$LINENO"; then : 7972if ac_fn_c_try_run "$LINENO"
7395 7973then :
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7974 nb_cv_printf_lld=yes
7397$as_echo "yes" >&6; } 
7398 can_printf_longlong=yes 
7399 
7400else 
7401 
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 
7403$as_echo "no" >&6; } 
7404 
7405fi 7975fi
7406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7407 conftest.$ac_objext conftest.beam conftest.$ac_ext 7977 conftest.$ac_objext conftest.beam conftest.$ac_ext
7408fi 7978fi
7409 7979
7410 7980
 7981fi
 7982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nb_cv_printf_lld" >&5
 7983printf "%s\n" "$nb_cv_printf_lld" >&6; }
 7984 if test $nb_cv_printf_lld = yes; then
 7985 can_printf_longlong=yes
 7986 fi
 7987
7411 if test $can_printf_longlong != yes; then 7988 if test $can_printf_longlong != yes; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking *printf() support for %qd" >&5 7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for *printf() support for %qd" >&5
7413$as_echo_n "checking *printf() support for %qd... " >&6; } 7990printf %s "checking for *printf() support for %qd... " >&6; }
7414 if test "$cross_compiling" = yes; then : 7991if test ${nb_cv_printf_qd+y}
7415 : 7992then :
7416else 7993 printf %s "(cached) " >&6
 7994else $as_nop
 7995
 7996 nb_cv_printf_qd=no
 7997 if test "$cross_compiling" = yes
 7998then :
 7999 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 8000printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 8001as_fn_error $? "cannot run test program while cross compiling
 8002See \`config.log' for more details" "$LINENO" 5; }
 8003else $as_nop
7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418/* end confdefs.h. */ 8005/* end confdefs.h. */
7419 8006
7420 #include <stdio.h> 8007 #include <stdio.h>
7421 int main() { 8008 int main() {
7422 char buf[100]; 8009 char buf[100];
7423 sprintf(buf, "%qd", 4294967300LL); 8010 sprintf(buf, "%qd", 4294967300LL);
7424 return (strcmp(buf, "4294967300")); 8011 return (strcmp(buf, "4294967300"));
7425 } 8012 }
7426 8013
7427_ACEOF 8014_ACEOF
7428if ac_fn_c_try_run "$LINENO"; then : 8015if ac_fn_c_try_run "$LINENO"
7429 8016then :
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8017 nb_cv_printf_qd=yes
7431$as_echo "yes" >&6; } 
7432 can_printf_longlong=yes 
7433 $as_echo "#define HAVE_PRINTF_QD 1" >>confdefs.h 
7434 
7435 
7436 
7437else 
7438 
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 
7440$as_echo "no" >&6; } 
7441 
7442fi 8018fi
7443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7444 conftest.$ac_objext conftest.beam conftest.$ac_ext 8020 conftest.$ac_objext conftest.beam conftest.$ac_ext
7445fi 8021fi
7446 8022
 8023
 8024fi
 8025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nb_cv_printf_qd" >&5
 8026printf "%s\n" "$nb_cv_printf_qd" >&6; }
 8027 if test $nb_cv_printf_qd = yes; then
 8028 printf "%s\n" "#define HAVE_PRINTF_QD 1" >>confdefs.h
 8029
 8030
 8031 can_printf_longlong=yes
 8032 fi
7447 fi 8033 fi
7448 8034
7449 if test $can_printf_longlong = yes; then 8035 if test $can_printf_longlong = yes; then
7450 $as_echo "#define HAVE_WORKING_LONG_LONG 1" >>confdefs.h 8036 printf "%s\n" "#define HAVE_WORKING_LONG_LONG 1" >>confdefs.h
7451 8037
7452 8038
7453 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 8039 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
7454if test "x$ac_cv_func_strtoll" = xyes; then : 8040if test "x$ac_cv_func_strtoll" = xyes
7455 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h 8041then :
 8042 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
7456 8043
7457else 8044else $as_nop
7458 case " $LIBOBJS " in 8045 case " $LIBOBJS " in
7459 *" strtoll.$ac_objext "* ) ;; 8046 *" strtoll.$ac_objext "* ) ;;
7460 *) LIBOBJS="$LIBOBJS strtoll.$ac_objext" 8047 *) LIBOBJS="$LIBOBJS strtoll.$ac_objext"
7461 ;; 8048 ;;
7462esac 8049esac
7463 8050
7464fi 8051fi
7465 8052
7466 
7467 fi 8053 fi
7468 8054
7469fi 8055fi
7470 8056
7471 8057
7472 8058
7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf is standards compliant" >&5 8059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if vsnprintf is standards compliant" >&5
7474$as_echo_n "checking if vsnprintf is standards compliant... " >&6; } 8060printf %s "checking if vsnprintf is standards compliant... " >&6; }
7475have_std_vsnprintf=no 8061if test ${nb_cv_std_vsnprintf+y}
7476if test "$cross_compiling" = yes; then : 8062then :
7477 : 8063 printf %s "(cached) " >&6
7478else 8064else $as_nop
 8065
 8066 nb_cv_std_vsnprintf=no
 8067 if test "$cross_compiling" = yes
 8068then :
 8069 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 8070printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 8071as_fn_error $? "cannot run test program while cross compiling
 8072See \`config.log' for more details" "$LINENO" 5; }
 8073else $as_nop
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480/* end confdefs.h. */ 8075/* end confdefs.h. */
7481 8076
7482#include <stdio.h> 8077 #include <stdio.h>
7483#include <stdlib.h> 8078 #include <stdlib.h>
7484#include <stdarg.h> 8079 #include <stdarg.h>
7485void dotest(char *fmt, ...) { 8080 void dotest(char *fmt, ...) {
7486 char buf[3]; 8081 char buf[3];
7487 va_list ap; 8082 va_list ap;
7488 va_start(ap, fmt); 8083 va_start(ap, fmt);
7489 exit(snprintf(buf, 3, fmt, ap) == 4 ? 0 : 1); 8084 exit(snprintf(buf, 3, fmt, ap) == 4 ? 0 : 1);
7490} 8085 }
7491int main() { 8086 int main() {
7492 dotest("test"); 8087 dotest("test");
7493} 8088 }
7494 8089
7495_ACEOF 8090_ACEOF
7496if ac_fn_c_try_run "$LINENO"; then : 8091if ac_fn_c_try_run "$LINENO"
7497 8092then :
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8093 nb_cv_std_vsnprintf=yes
7499$as_echo "yes" >&6; } 
7500 have_std_vsnprintf=yes 
7501 
7502else 
7503 
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 
7505$as_echo "no" >&6; } 
7506 
7507fi 8094fi
7508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7509 conftest.$ac_objext conftest.beam conftest.$ac_ext 8096 conftest.$ac_objext conftest.beam conftest.$ac_ext
7510fi 8097fi
7511 8098
7512 8099
7513if test $have_std_vsnprintf = no; then 8100fi
 8101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nb_cv_std_vsnprintf" >&5
 8102printf "%s\n" "$nb_cv_std_vsnprintf" >&6; }
 8103
 8104if test nb_cv_std_vsnprintf = no; then
7514 case " $LIBOBJS " in 8105 case " $LIBOBJS " in
7515 *" snprintf.$ac_objext "* ) ;; 8106 *" snprintf.$ac_objext "* ) ;;
7516 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 8107 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7517 ;; 8108 ;;
7518esac 8109esac
7519 8110
7520fi 8111fi
7521 8112
7522 8113
7523 8114
7524ac_config_files="$ac_config_files Makefile" 8115ac_config_files="$ac_config_files Makefile"
7525 8116
7526cat >confcache <<\_ACEOF 8117cat >confcache <<\_ACEOF
@@ -7540,28 +8131,28 @@ cat >confcache <<\_ACEOF @@ -7540,28 +8131,28 @@ cat >confcache <<\_ACEOF
7540_ACEOF 8131_ACEOF
7541 8132
7542# The following way of writing the cache mishandles newlines in values, 8133# The following way of writing the cache mishandles newlines in values,
7543# but we know of no workaround that is simple, portable, and efficient. 8134# but we know of no workaround that is simple, portable, and efficient.
7544# So, we kill variables containing newlines. 8135# So, we kill variables containing newlines.
7545# Ultrix sh set writes to stderr and can't be redirected directly, 8136# Ultrix sh set writes to stderr and can't be redirected directly,
7546# and sets the high bit in the cache file unless we assign to the vars. 8137# and sets the high bit in the cache file unless we assign to the vars.
7547( 8138(
7548 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8139 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7549 eval ac_val=\$$ac_var 8140 eval ac_val=\$$ac_var
7550 case $ac_val in #( 8141 case $ac_val in #(
7551 *${as_nl}*) 8142 *${as_nl}*)
7552 case $ac_var in #( 8143 case $ac_var in #(
7553 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8144 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7554$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8145printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7555 esac 8146 esac
7556 case $ac_var in #( 8147 case $ac_var in #(
7557 _ | IFS | as_nl) ;; #( 8148 _ | IFS | as_nl) ;; #(
7558 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8149 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7559 *) { eval $ac_var=; unset $ac_var;} ;; 8150 *) { eval $ac_var=; unset $ac_var;} ;;
7560 esac ;; 8151 esac ;;
7561 esac 8152 esac
7562 done 8153 done
7563 8154
7564 (set) 2>&1 | 8155 (set) 2>&1 |
7565 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8156 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7566 *${as_nl}ac_space=\ *) 8157 *${as_nl}ac_space=\ *)
7567 # `set' does not quote correctly, so add quotes: double-quote 8158 # `set' does not quote correctly, so add quotes: double-quote
@@ -7571,298 +8162,281 @@ $as_echo "$as_me: WARNING: cache variabl @@ -7571,298 +8162,281 @@ $as_echo "$as_me: WARNING: cache variabl
7571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8162 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7572 ;; #( 8163 ;; #(
7573 *) 8164 *)
7574 # `set' quotes correctly as required by POSIX, so do not add quotes. 8165 # `set' quotes correctly as required by POSIX, so do not add quotes.
7575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7576 ;; 8167 ;;
7577 esac | 8168 esac |
7578 sort 8169 sort
7579) | 8170) |
7580 sed ' 8171 sed '
7581 /^ac_cv_env_/b end 8172 /^ac_cv_env_/b end
7582 t clear 8173 t clear
7583 :clear 8174 :clear
7584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8175 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
7585 t end 8176 t end
7586 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8177 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7587 :end' >>confcache 8178 :end' >>confcache
7588if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8179if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7589 if test -w "$cache_file"; then 8180 if test -w "$cache_file"; then
7590 if test "x$cache_file" != "x/dev/null"; then 8181 if test "x$cache_file" != "x/dev/null"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7592$as_echo "$as_me: updating cache $cache_file" >&6;} 8183printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
7593 if test ! -f "$cache_file" || test -h "$cache_file"; then 8184 if test ! -f "$cache_file" || test -h "$cache_file"; then
7594 cat confcache >"$cache_file" 8185 cat confcache >"$cache_file"
7595 else 8186 else
7596 case $cache_file in #( 8187 case $cache_file in #(
7597 */* | ?:*) 8188 */* | ?:*)
7598 mv -f confcache "$cache_file"$$ && 8189 mv -f confcache "$cache_file"$$ &&
7599 mv -f "$cache_file"$$ "$cache_file" ;; #( 8190 mv -f "$cache_file"$$ "$cache_file" ;; #(
7600 *) 8191 *)
7601 mv -f confcache "$cache_file" ;; 8192 mv -f confcache "$cache_file" ;;
7602 esac 8193 esac
7603 fi 8194 fi
7604 fi 8195 fi
7605 else 8196 else
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7607$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8198printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
7608 fi 8199 fi
7609fi 8200fi
7610rm -f confcache 8201rm -f confcache
7611 8202
7612test "x$prefix" = xNONE && prefix=$ac_default_prefix 8203test "x$prefix" = xNONE && prefix=$ac_default_prefix
7613# Let make expand exec_prefix. 8204# Let make expand exec_prefix.
7614test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8205test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7615 8206
7616DEFS=-DHAVE_CONFIG_H 8207DEFS=-DHAVE_CONFIG_H
7617 8208
7618ac_libobjs= 8209ac_libobjs=
7619ac_ltlibobjs= 8210ac_ltlibobjs=
7620U= 8211U=
7621for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8212for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7622 # 1. Remove the extension, and $U if already installed. 8213 # 1. Remove the extension, and $U if already installed.
7623 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8214 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7624 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 8215 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
7625 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8216 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7626 # will be set to the directory where LIBOBJS objects are built. 8217 # will be set to the directory where LIBOBJS objects are built.
7627 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8218 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7628 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 8219 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7629done 8220done
7630LIBOBJS=$ac_libobjs 8221LIBOBJS=$ac_libobjs
7631 8222
7632LTLIBOBJS=$ac_ltlibobjs 8223LTLIBOBJS=$ac_ltlibobjs
7633 8224
7634 8225
7635 8226
7636 8227
7637: "${CONFIG_STATUS=./config.status}" 8228: "${CONFIG_STATUS=./config.status}"
7638ac_write_fail=0 8229ac_write_fail=0
7639ac_clean_files_save=$ac_clean_files 8230ac_clean_files_save=$ac_clean_files
7640ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8231ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7641{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7642$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8233printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
7643as_write_fail=0 8234as_write_fail=0
7644cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 8235cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7645#! $SHELL 8236#! $SHELL
7646# Generated by $as_me. 8237# Generated by $as_me.
7647# Run this file to recreate the current configuration. 8238# Run this file to recreate the current configuration.
7648# Compiler output produced by configure, useful for debugging 8239# Compiler output produced by configure, useful for debugging
7649# configure, is in config.log if it exists. 8240# configure, is in config.log if it exists.
7650 8241
7651debug=false 8242debug=false
7652ac_cs_recheck=false 8243ac_cs_recheck=false
7653ac_cs_silent=false 8244ac_cs_silent=false
7654 8245
7655SHELL=\${CONFIG_SHELL-$SHELL} 8246SHELL=\${CONFIG_SHELL-$SHELL}
7656export SHELL 8247export SHELL
7657_ASEOF 8248_ASEOF
7658cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 8249cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7659## -------------------- ## 8250## -------------------- ##
7660## M4sh Initialization. ## 8251## M4sh Initialization. ##
7661## -------------------- ## 8252## -------------------- ##
7662 8253
7663# Be more Bourne compatible 8254# Be more Bourne compatible
7664DUALCASE=1; export DUALCASE # for MKS sh 8255DUALCASE=1; export DUALCASE # for MKS sh
7665if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 8256as_nop=:
 8257if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
 8258then :
7666 emulate sh 8259 emulate sh
7667 NULLCMD=: 8260 NULLCMD=:
7668 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 8261 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7669 # is contrary to our usage. Disable this feature. 8262 # is contrary to our usage. Disable this feature.
7670 alias -g '${1+"$@"}'='"$@"' 8263 alias -g '${1+"$@"}'='"$@"'
7671 setopt NO_GLOB_SUBST 8264 setopt NO_GLOB_SUBST
7672else 8265else $as_nop
7673 case `(set -o) 2>/dev/null` in #( 8266 case `(set -o) 2>/dev/null` in #(
7674 *posix*) : 8267 *posix*) :
7675 set -o posix ;; #( 8268 set -o posix ;; #(
7676 *) : 8269 *) :
7677 ;; 8270 ;;
7678esac 8271esac
7679fi 8272fi
7680 8273
7681 8274
 8275
 8276# Reset variables that may have inherited troublesome values from
 8277# the environment.
 8278
 8279# IFS needs to be set, to space, tab, and newline, in precisely that order.
 8280# (If _AS_PATH_WALK were called with IFS unset, it would have the
 8281# side effect of setting IFS to empty, thus disabling word splitting.)
 8282# Quoting is to prevent editors from complaining about space-tab.
7682as_nl=' 8283as_nl='
7683' 8284'
7684export as_nl 8285export as_nl
7685# Printing a long string crashes Solaris 7 /usr/bin/printf. 8286IFS=" "" $as_nl"
7686as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8287
7687as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 8288PS1='$ '
7688as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 8289PS2='> '
7689# Prefer a ksh shell builtin over an external printf program on Solaris, 8290PS4='+ '
7690# but without wasting forks for bash or zsh. 8291
7691if test -z "$BASH_VERSION$ZSH_VERSION" \ 8292# Ensure predictable behavior from utilities with locale-dependent output.
7692 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 8293LC_ALL=C
7693 as_echo='print -r --' 8294export LC_ALL
7694 as_echo_n='print -rn --' 8295LANGUAGE=C
7695elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 8296export LANGUAGE
7696 as_echo='printf %s\n' 8297
7697 as_echo_n='printf %s' 8298# We cannot yet rely on "unset" to work, but we need these variables
7698else 8299# to be unset--not just set to an empty or harmless value--now, to
7699 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 8300# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
7700 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 8301# also avoids known problems related to "unset" and subshell syntax
7701 as_echo_n='/usr/ucb/echo -n' 8302# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
7702 else 8303for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
7703 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 8304do eval test \${$as_var+y} \
7704 as_echo_n_body='eval 8305 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7705 arg=$1; 8306done
7706 case $arg in #( 8307
7707 *"$as_nl"*) 8308# Ensure that fds 0, 1, and 2 are open.
7708 expr "X$arg" : "X\\(.*\\)$as_nl"; 8309if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
7709 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 8310if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
7710 esac; 8311if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7711 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 
7712 ' 
7713 export as_echo_n_body 
7714 as_echo_n='sh -c $as_echo_n_body as_echo' 
7715 fi 
7716 export as_echo_body 
7717 as_echo='sh -c $as_echo_body as_echo' 
7718fi 
7719 8312
7720# The user is always right. 8313# The user is always right.
7721if test "${PATH_SEPARATOR+set}" != set; then 8314if ${PATH_SEPARATOR+false} :; then
7722 PATH_SEPARATOR=: 8315 PATH_SEPARATOR=:
7723 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8316 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7724 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8317 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7725 PATH_SEPARATOR=';' 8318 PATH_SEPARATOR=';'
7726 } 8319 }
7727fi 8320fi
7728 8321
7729 8322
7730# IFS 
7731# We need space, tab and new line, in precisely that order. Quoting is 
7732# there to prevent editors from complaining about space-tab. 
7733# (If _AS_PATH_WALK were called with IFS unset, it would disable word 
7734# splitting by setting IFS to empty value.) 
7735IFS=" "" $as_nl" 
7736 
7737# Find who we are. Look in the path if we contain no directory separator. 8323# Find who we are. Look in the path if we contain no directory separator.
7738as_myself= 8324as_myself=
7739case $0 in #(( 8325case $0 in #((
7740 *[\\/]* ) as_myself=$0 ;; 8326 *[\\/]* ) as_myself=$0 ;;
7741 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8327 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742for as_dir in $PATH 8328for as_dir in $PATH
7743do 8329do
7744 IFS=$as_save_IFS 8330 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=. 8331 case $as_dir in #(((
7746 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8332 '') as_dir=./ ;;
 8333 */) ;;
 8334 *) as_dir=$as_dir/ ;;
 8335 esac
 8336 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
7747 done 8337 done
7748IFS=$as_save_IFS 8338IFS=$as_save_IFS
7749 8339
7750 ;; 8340 ;;
7751esac 8341esac
7752# We did not find ourselves, most probably we were run as `sh COMMAND' 8342# We did not find ourselves, most probably we were run as `sh COMMAND'
7753# in which case we are not to be found in the path. 8343# in which case we are not to be found in the path.
7754if test "x$as_myself" = x; then 8344if test "x$as_myself" = x; then
7755 as_myself=$0 8345 as_myself=$0
7756fi 8346fi
7757if test ! -f "$as_myself"; then 8347if test ! -f "$as_myself"; then
7758 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8348 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7759 exit 1 8349 exit 1
7760fi 8350fi
7761 8351
7762# Unset variables that we do not need and which cause bugs (e.g. in 
7763# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 
7764# suppresses any "Segmentation fault" message there. '((' could 
7765# trigger a bug in pdksh 5.2.14. 
7766for as_var in BASH_ENV ENV MAIL MAILPATH 
7767do eval test x\${$as_var+set} = xset \ 
7768 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 
7769done 
7770PS1='$ ' 
7771PS2='> ' 
7772PS4='+ ' 
7773 
7774# NLS nuisances. 
7775LC_ALL=C 
7776export LC_ALL 
7777LANGUAGE=C 
7778export LANGUAGE 
7779 
7780# CDPATH. 
7781(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 
7782 8352
7783 8353
7784# as_fn_error STATUS ERROR [LINENO LOG_FD] 8354# as_fn_error STATUS ERROR [LINENO LOG_FD]
7785# ---------------------------------------- 8355# ----------------------------------------
7786# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 8356# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7787# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 8357# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7788# script with STATUS, using 1 if that was 0. 8358# script with STATUS, using 1 if that was 0.
7789as_fn_error () 8359as_fn_error ()
7790{ 8360{
7791 as_status=$1; test $as_status -eq 0 && as_status=1 8361 as_status=$1; test $as_status -eq 0 && as_status=1
7792 if test "$4"; then 8362 if test "$4"; then
7793 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 8363 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7794 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 8364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7795 fi 8365 fi
7796 $as_echo "$as_me: error: $2" >&2 8366 printf "%s\n" "$as_me: error: $2" >&2
7797 as_fn_exit $as_status 8367 as_fn_exit $as_status
7798} # as_fn_error 8368} # as_fn_error
7799 8369
7800 8370
 8371
7801# as_fn_set_status STATUS 8372# as_fn_set_status STATUS
7802# ----------------------- 8373# -----------------------
7803# Set $? to STATUS, without forking. 8374# Set $? to STATUS, without forking.
7804as_fn_set_status () 8375as_fn_set_status ()
7805{ 8376{
7806 return $1 8377 return $1
7807} # as_fn_set_status 8378} # as_fn_set_status
7808 8379
7809# as_fn_exit STATUS 8380# as_fn_exit STATUS
7810# ----------------- 8381# -----------------
7811# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 8382# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7812as_fn_exit () 8383as_fn_exit ()
7813{ 8384{
7814 set +e 8385 set +e
7815 as_fn_set_status $1 8386 as_fn_set_status $1
7816 exit $1 8387 exit $1
7817} # as_fn_exit 8388} # as_fn_exit
7818 8389
7819# as_fn_unset VAR 8390# as_fn_unset VAR
7820# --------------- 8391# ---------------
7821# Portably unset VAR. 8392# Portably unset VAR.
7822as_fn_unset () 8393as_fn_unset ()
7823{ 8394{
7824 { eval $1=; unset $1;} 8395 { eval $1=; unset $1;}
7825} 8396}
7826as_unset=as_fn_unset 8397as_unset=as_fn_unset
 8398
7827# as_fn_append VAR VALUE 8399# as_fn_append VAR VALUE
7828# ---------------------- 8400# ----------------------
7829# Append the text in VALUE to the end of the definition contained in VAR. Take 8401# Append the text in VALUE to the end of the definition contained in VAR. Take
7830# advantage of any shell optimizations that allow amortized linear growth over 8402# advantage of any shell optimizations that allow amortized linear growth over
7831# repeated appends, instead of the typical quadratic growth present in naive 8403# repeated appends, instead of the typical quadratic growth present in naive
7832# implementations. 8404# implementations.
7833if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 8405if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
 8406then :
7834 eval 'as_fn_append () 8407 eval 'as_fn_append ()
7835 { 8408 {
7836 eval $1+=\$2 8409 eval $1+=\$2
7837 }' 8410 }'
7838else 8411else $as_nop
7839 as_fn_append () 8412 as_fn_append ()
7840 { 8413 {
7841 eval $1=\$$1\$2 8414 eval $1=\$$1\$2
7842 } 8415 }
7843fi # as_fn_append 8416fi # as_fn_append
7844 8417
7845# as_fn_arith ARG... 8418# as_fn_arith ARG...
7846# ------------------ 8419# ------------------
7847# Perform arithmetic evaluation on the ARGs, and store the result in the 8420# Perform arithmetic evaluation on the ARGs, and store the result in the
7848# global $as_val. Take advantage of shells that can avoid forks. The arguments 8421# global $as_val. Take advantage of shells that can avoid forks. The arguments
7849# must be portable across $(()) and expr. 8422# must be portable across $(()) and expr.
7850if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 8423if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
 8424then :
7851 eval 'as_fn_arith () 8425 eval 'as_fn_arith ()
7852 { 8426 {
7853 as_val=$(( $* )) 8427 as_val=$(( $* ))
7854 }' 8428 }'
7855else 8429else $as_nop
7856 as_fn_arith () 8430 as_fn_arith ()
7857 { 8431 {
7858 as_val=`expr "$@" || test $? -eq 1` 8432 as_val=`expr "$@" || test $? -eq 1`
7859 } 8433 }
7860fi # as_fn_arith 8434fi # as_fn_arith
7861 8435
7862 8436
7863if expr a : '\(a\)' >/dev/null 2>&1 && 8437if expr a : '\(a\)' >/dev/null 2>&1 &&
7864 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7865 as_expr=expr 8439 as_expr=expr
7866else 8440else
7867 as_expr=false 8441 as_expr=false
7868fi 8442fi
@@ -7873,61 +8447,71 @@ else @@ -7873,61 +8447,71 @@ else
7873 as_basename=false 8447 as_basename=false
7874fi 8448fi
7875 8449
7876if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 8450if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7877 as_dirname=dirname 8451 as_dirname=dirname
7878else 8452else
7879 as_dirname=false 8453 as_dirname=false
7880fi 8454fi
7881 8455
7882as_me=`$as_basename -- "$0" || 8456as_me=`$as_basename -- "$0" ||
7883$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8457$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7884 X"$0" : 'X\(//\)$' \| \ 8458 X"$0" : 'X\(//\)$' \| \
7885 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7886$as_echo X/"$0" | 8460printf "%s\n" X/"$0" |
7887 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8461 sed '/^.*\/\([^/][^/]*\)\/*$/{
7888 s//\1/ 8462 s//\1/
7889 q 8463 q
7890 } 8464 }
7891 /^X\/\(\/\/\)$/{ 8465 /^X\/\(\/\/\)$/{
7892 s//\1/ 8466 s//\1/
7893 q 8467 q
7894 } 8468 }
7895 /^X\/\(\/\).*/{ 8469 /^X\/\(\/\).*/{
7896 s//\1/ 8470 s//\1/
7897 q 8471 q
7898 } 8472 }
7899 s/.*/./; q'` 8473 s/.*/./; q'`
7900 8474
7901# Avoid depending upon Character Ranges. 8475# Avoid depending upon Character Ranges.
7902as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8476as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7903as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8477as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7904as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8478as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7905as_cr_digits='0123456789' 8479as_cr_digits='0123456789'
7906as_cr_alnum=$as_cr_Letters$as_cr_digits 8480as_cr_alnum=$as_cr_Letters$as_cr_digits
7907 8481
 8482
 8483# Determine whether it's possible to make 'echo' print without a newline.
 8484# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
 8485# for compatibility with existing Makefiles.
7908ECHO_C= ECHO_N= ECHO_T= 8486ECHO_C= ECHO_N= ECHO_T=
7909case `echo -n x` in #((((( 8487case `echo -n x` in #(((((
7910-n*) 8488-n*)
7911 case `echo 'xy\c'` in 8489 case `echo 'xy\c'` in
7912 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8490 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7913 xy) ECHO_C='\c';; 8491 xy) ECHO_C='\c';;
7914 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 8492 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7915 ECHO_T=' ';; 8493 ECHO_T=' ';;
7916 esac;; 8494 esac;;
7917*) 8495*)
7918 ECHO_N='-n';; 8496 ECHO_N='-n';;
7919esac 8497esac
7920 8498
 8499# For backward compatibility with old third-party macros, we provide
 8500# the shell variables $as_echo and $as_echo_n. New code should use
 8501# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
 8502as_echo='printf %s\n'
 8503as_echo_n='printf %s'
 8504
7921rm -f conf$$ conf$$.exe conf$$.file 8505rm -f conf$$ conf$$.exe conf$$.file
7922if test -d conf$$.dir; then 8506if test -d conf$$.dir; then
7923 rm -f conf$$.dir/conf$$.file 8507 rm -f conf$$.dir/conf$$.file
7924else 8508else
7925 rm -f conf$$.dir 8509 rm -f conf$$.dir
7926 mkdir conf$$.dir 2>/dev/null 8510 mkdir conf$$.dir 2>/dev/null
7927fi 8511fi
7928if (echo >conf$$.file) 2>/dev/null; then 8512if (echo >conf$$.file) 2>/dev/null; then
7929 if ln -s conf$$.file conf$$ 2>/dev/null; then 8513 if ln -s conf$$.file conf$$ 2>/dev/null; then
7930 as_ln_s='ln -s' 8514 as_ln_s='ln -s'
7931 # ... but there are two gotchas: 8515 # ... but there are two gotchas:
7932 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8516 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7933 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8517 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
@@ -7949,36 +8533,36 @@ rmdir conf$$.dir 2>/dev/null @@ -7949,36 +8533,36 @@ rmdir conf$$.dir 2>/dev/null
7949# as_fn_mkdir_p 8533# as_fn_mkdir_p
7950# ------------- 8534# -------------
7951# Create "$as_dir" as a directory, including parents if necessary. 8535# Create "$as_dir" as a directory, including parents if necessary.
7952as_fn_mkdir_p () 8536as_fn_mkdir_p ()
7953{ 8537{
7954 8538
7955 case $as_dir in #( 8539 case $as_dir in #(
7956 -*) as_dir=./$as_dir;; 8540 -*) as_dir=./$as_dir;;
7957 esac 8541 esac
7958 test -d "$as_dir" || eval $as_mkdir_p || { 8542 test -d "$as_dir" || eval $as_mkdir_p || {
7959 as_dirs= 8543 as_dirs=
7960 while :; do 8544 while :; do
7961 case $as_dir in #( 8545 case $as_dir in #(
7962 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 8546 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7963 *) as_qdir=$as_dir;; 8547 *) as_qdir=$as_dir;;
7964 esac 8548 esac
7965 as_dirs="'$as_qdir' $as_dirs" 8549 as_dirs="'$as_qdir' $as_dirs"
7966 as_dir=`$as_dirname -- "$as_dir" || 8550 as_dir=`$as_dirname -- "$as_dir" ||
7967$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8551$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7968 X"$as_dir" : 'X\(//\)[^/]' \| \ 8552 X"$as_dir" : 'X\(//\)[^/]' \| \
7969 X"$as_dir" : 'X\(//\)$' \| \ 8553 X"$as_dir" : 'X\(//\)$' \| \
7970 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8554 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7971$as_echo X"$as_dir" | 8555printf "%s\n" X"$as_dir" |
7972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7973 s//\1/ 8557 s//\1/
7974 q 8558 q
7975 } 8559 }
7976 /^X\(\/\/\)[^/].*/{ 8560 /^X\(\/\/\)[^/].*/{
7977 s//\1/ 8561 s//\1/
7978 q 8562 q
7979 } 8563 }
7980 /^X\(\/\/\)$/{ 8564 /^X\(\/\/\)$/{
7981 s//\1/ 8565 s//\1/
7982 q 8566 q
7983 } 8567 }
7984 /^X\(\/\).*/{ 8568 /^X\(\/\).*/{
@@ -8021,27 +8605,27 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr @@ -8021,27 +8605,27 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr
8021exec 6>&1 8605exec 6>&1
8022## ----------------------------------- ## 8606## ----------------------------------- ##
8023## Main body of $CONFIG_STATUS script. ## 8607## Main body of $CONFIG_STATUS script. ##
8024## ----------------------------------- ## 8608## ----------------------------------- ##
8025_ASEOF 8609_ASEOF
8026test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 8610test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8027 8611
8028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8029# Save the log message, to keep $0 and so on meaningful, and to 8613# Save the log message, to keep $0 and so on meaningful, and to
8030# report actual input values of CONFIG_FILES etc. instead of their 8614# report actual input values of CONFIG_FILES etc. instead of their
8031# values after options handling. 8615# values after options handling.
8032ac_log=" 8616ac_log="
8033This file was extended by libnbcompat $as_me 20190708, which was 8617This file was extended by libnbcompat $as_me 20190708, which was
8034generated by GNU Autoconf 2.69. Invocation command line was 8618generated by GNU Autoconf 2.71. Invocation command line was
8035 8619
8036 CONFIG_FILES = $CONFIG_FILES 8620 CONFIG_FILES = $CONFIG_FILES
8037 CONFIG_HEADERS = $CONFIG_HEADERS 8621 CONFIG_HEADERS = $CONFIG_HEADERS
8038 CONFIG_LINKS = $CONFIG_LINKS 8622 CONFIG_LINKS = $CONFIG_LINKS
8039 CONFIG_COMMANDS = $CONFIG_COMMANDS 8623 CONFIG_COMMANDS = $CONFIG_COMMANDS
8040 $ $0 $@ 8624 $ $0 $@
8041 8625
8042on `(hostname || uname -n) 2>/dev/null | sed 1q` 8626on `(hostname || uname -n) 2>/dev/null | sed 1q`
8043" 8627"
8044 8628
8045_ACEOF 8629_ACEOF
8046 8630
8047case $ac_config_files in *" 8631case $ac_config_files in *"
@@ -8079,34 +8663,36 @@ Usage: $0 [OPTION]... [TAG]... @@ -8079,34 +8663,36 @@ Usage: $0 [OPTION]... [TAG]...
8079 instantiate the configuration file FILE 8663 instantiate the configuration file FILE
8080 --header=FILE[:TEMPLATE] 8664 --header=FILE[:TEMPLATE]
8081 instantiate the configuration header FILE 8665 instantiate the configuration header FILE
8082 8666
8083Configuration files: 8667Configuration files:
8084$config_files 8668$config_files
8085 8669
8086Configuration headers: 8670Configuration headers:
8087$config_headers 8671$config_headers
8088 8672
8089Report bugs to <joerg@NetBSD.org>." 8673Report bugs to <joerg@NetBSD.org>."
8090 8674
8091_ACEOF 8675_ACEOF
 8676ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
 8677ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
8092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8093ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8679ac_cs_config='$ac_cs_config_escaped'
8094ac_cs_version="\\ 8680ac_cs_version="\\
8095libnbcompat config.status 20190708 8681libnbcompat config.status 20190708
8096configured by $0, generated by GNU Autoconf 2.69, 8682configured by $0, generated by GNU Autoconf 2.71,
8097 with options \\"\$ac_cs_config\\" 8683 with options \\"\$ac_cs_config\\"
8098 8684
8099Copyright (C) 2012 Free Software Foundation, Inc. 8685Copyright (C) 2021 Free Software Foundation, Inc.
8100This config.status script is free software; the Free Software Foundation 8686This config.status script is free software; the Free Software Foundation
8101gives unlimited permission to copy, distribute and modify it." 8687gives unlimited permission to copy, distribute and modify it."
8102 8688
8103ac_pwd='$ac_pwd' 8689ac_pwd='$ac_pwd'
8104srcdir='$srcdir' 8690srcdir='$srcdir'
8105INSTALL='$INSTALL' 8691INSTALL='$INSTALL'
8106AWK='$AWK' 8692AWK='$AWK'
8107test -n "\$AWK" || AWK=awk 8693test -n "\$AWK" || AWK=awk
8108_ACEOF 8694_ACEOF
8109 8695
8110cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8111# The default lists apply if the user does not specify any file. 8697# The default lists apply if the user does not specify any file.
8112ac_need_defaults=: 8698ac_need_defaults=:
@@ -8125,52 +8711,52 @@ do @@ -8125,52 +8711,52 @@ do
8125 ;; 8711 ;;
8126 *) 8712 *)
8127 ac_option=$1 8713 ac_option=$1
8128 ac_optarg=$2 8714 ac_optarg=$2
8129 ac_shift=shift 8715 ac_shift=shift
8130 ;; 8716 ;;
8131 esac 8717 esac
8132 8718
8133 case $ac_option in 8719 case $ac_option in
8134 # Handling of the options. 8720 # Handling of the options.
8135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8721 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8136 ac_cs_recheck=: ;; 8722 ac_cs_recheck=: ;;
8137 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 8723 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8138 $as_echo "$ac_cs_version"; exit ;; 8724 printf "%s\n" "$ac_cs_version"; exit ;;
8139 --config | --confi | --conf | --con | --co | --c ) 8725 --config | --confi | --conf | --con | --co | --c )
8140 $as_echo "$ac_cs_config"; exit ;; 8726 printf "%s\n" "$ac_cs_config"; exit ;;
8141 --debug | --debu | --deb | --de | --d | -d ) 8727 --debug | --debu | --deb | --de | --d | -d )
8142 debug=: ;; 8728 debug=: ;;
8143 --file | --fil | --fi | --f ) 8729 --file | --fil | --fi | --f )
8144 $ac_shift 8730 $ac_shift
8145 case $ac_optarg in 8731 case $ac_optarg in
8146 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8732 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8147 '') as_fn_error $? "missing file argument" ;; 8733 '') as_fn_error $? "missing file argument" ;;
8148 esac 8734 esac
8149 as_fn_append CONFIG_FILES " '$ac_optarg'" 8735 as_fn_append CONFIG_FILES " '$ac_optarg'"
8150 ac_need_defaults=false;; 8736 ac_need_defaults=false;;
8151 --header | --heade | --head | --hea ) 8737 --header | --heade | --head | --hea )
8152 $ac_shift 8738 $ac_shift
8153 case $ac_optarg in 8739 case $ac_optarg in
8154 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8740 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8155 esac 8741 esac
8156 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 8742 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8157 ac_need_defaults=false;; 8743 ac_need_defaults=false;;
8158 --he | --h) 8744 --he | --h)
8159 # Conflict between --help and --header 8745 # Conflict between --help and --header
8160 as_fn_error $? "ambiguous option: \`$1' 8746 as_fn_error $? "ambiguous option: \`$1'
8161Try \`$0 --help' for more information.";; 8747Try \`$0 --help' for more information.";;
8162 --help | --hel | -h ) 8748 --help | --hel | -h )
8163 $as_echo "$ac_cs_usage"; exit ;; 8749 printf "%s\n" "$ac_cs_usage"; exit ;;
8164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8165 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8751 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8166 ac_cs_silent=: ;; 8752 ac_cs_silent=: ;;
8167 8753
8168 # This is an error. 8754 # This is an error.
8169 -*) as_fn_error $? "unrecognized option: \`$1' 8755 -*) as_fn_error $? "unrecognized option: \`$1'
8170Try \`$0 --help' for more information." ;; 8756Try \`$0 --help' for more information." ;;
8171 8757
8172 *) as_fn_append ac_config_targets " $1" 8758 *) as_fn_append ac_config_targets " $1"
8173 ac_need_defaults=false ;; 8759 ac_need_defaults=false ;;
8174 8760
8175 esac 8761 esac
8176 shift 8762 shift
@@ -8178,68 +8764,68 @@ done @@ -8178,68 +8764,68 @@ done
8178 8764
8179ac_configure_extra_args= 8765ac_configure_extra_args=
8180 8766
8181if $ac_cs_silent; then 8767if $ac_cs_silent; then
8182 exec 6>/dev/null 8768 exec 6>/dev/null
8183 ac_configure_extra_args="$ac_configure_extra_args --silent" 8769 ac_configure_extra_args="$ac_configure_extra_args --silent"
8184fi 8770fi
8185 8771
8186_ACEOF 8772_ACEOF
8187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8188if \$ac_cs_recheck; then 8774if \$ac_cs_recheck; then
8189 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8775 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8190 shift 8776 shift
8191 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 8777 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
8192 CONFIG_SHELL='$SHELL' 8778 CONFIG_SHELL='$SHELL'
8193 export CONFIG_SHELL 8779 export CONFIG_SHELL
8194 exec "\$@" 8780 exec "\$@"
8195fi 8781fi
8196 8782
8197_ACEOF 8783_ACEOF
8198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8199exec 5>>config.log 8785exec 5>>config.log
8200{ 8786{
8201 echo 8787 echo
8202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8788 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8203## Running $as_me. ## 8789## Running $as_me. ##
8204_ASBOX 8790_ASBOX
8205 $as_echo "$ac_log" 8791 printf "%s\n" "$ac_log"
8206} >&5 8792} >&5
8207 8793
8208_ACEOF 8794_ACEOF
8209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8210_ACEOF 8796_ACEOF
8211 8797
8212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8213 8799
8214# Handling of arguments. 8800# Handling of arguments.
8215for ac_config_target in $ac_config_targets 8801for ac_config_target in $ac_config_targets
8216do 8802do
8217 case $ac_config_target in 8803 case $ac_config_target in
8218 "nbcompat/config.h") CONFIG_HEADERS="$CONFIG_HEADERS nbcompat/config.h" ;; 8804 "nbcompat/config.h") CONFIG_HEADERS="$CONFIG_HEADERS nbcompat/config.h" ;;
8219 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8805 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8220 8806
8221 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 8807 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8222 esac 8808 esac
8223done 8809done
8224 8810
8225 8811
8226# If the user did not use the arguments to specify the items to instantiate, 8812# If the user did not use the arguments to specify the items to instantiate,
8227# then the envvar interface is used. Set only those that are not. 8813# then the envvar interface is used. Set only those that are not.
8228# We use the long form for the default assignment because of an extremely 8814# We use the long form for the default assignment because of an extremely
8229# bizarre bug on SunOS 4.1.3. 8815# bizarre bug on SunOS 4.1.3.
8230if $ac_need_defaults; then 8816if $ac_need_defaults; then
8231 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8817 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
8232 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8818 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
8233fi 8819fi
8234 8820
8235# Have a temporary directory for convenience. Make it in the build tree 8821# Have a temporary directory for convenience. Make it in the build tree
8236# simply because there is no reason against having it here, and in addition, 8822# simply because there is no reason against having it here, and in addition,
8237# creating and moving files from /tmp can sometimes cause problems. 8823# creating and moving files from /tmp can sometimes cause problems.
8238# Hook for its removal unless debugging. 8824# Hook for its removal unless debugging.
8239# Note that there is a small window in which the directory will not be cleaned: 8825# Note that there is a small window in which the directory will not be cleaned:
8240# after its creation but before its name has been assigned to `$tmp'. 8826# after its creation but before its name has been assigned to `$tmp'.
8241$debug || 8827$debug ||
8242{ 8828{
8243 tmp= ac_tmp= 8829 tmp= ac_tmp=
8244 trap 'exit_status=$? 8830 trap 'exit_status=$?
8245 : "${ac_tmp:=$tmp}" 8831 : "${ac_tmp:=$tmp}"
@@ -8555,88 +9141,88 @@ do @@ -8555,88 +9141,88 @@ do
8555 do 9141 do
8556 case $ac_f in 9142 case $ac_f in
8557 -) ac_f="$ac_tmp/stdin";; 9143 -) ac_f="$ac_tmp/stdin";;
8558 *) # Look for the file first in the build tree, then in the source tree 9144 *) # Look for the file first in the build tree, then in the source tree
8559 # (if the path is not absolute). The absolute path cannot be DOS-style, 9145 # (if the path is not absolute). The absolute path cannot be DOS-style,
8560 # because $ac_f cannot contain `:'. 9146 # because $ac_f cannot contain `:'.
8561 test -f "$ac_f" || 9147 test -f "$ac_f" ||
8562 case $ac_f in 9148 case $ac_f in
8563 [\\/$]*) false;; 9149 [\\/$]*) false;;
8564 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9150 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8565 esac || 9151 esac ||
8566 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 9152 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8567 esac 9153 esac
8568 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9154 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8569 as_fn_append ac_file_inputs " '$ac_f'" 9155 as_fn_append ac_file_inputs " '$ac_f'"
8570 done 9156 done
8571 9157
8572 # Let's still pretend it is `configure' which instantiates (i.e., don't 9158 # Let's still pretend it is `configure' which instantiates (i.e., don't
8573 # use $as_me), people would be surprised to read: 9159 # use $as_me), people would be surprised to read:
8574 # /* config.h. Generated by config.status. */ 9160 # /* config.h. Generated by config.status. */
8575 configure_input='Generated from '` 9161 configure_input='Generated from '`
8576 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 9162 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8577 `' by configure.' 9163 `' by configure.'
8578 if test x"$ac_file" != x-; then 9164 if test x"$ac_file" != x-; then
8579 configure_input="$ac_file. $configure_input" 9165 configure_input="$ac_file. $configure_input"
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 9166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8581$as_echo "$as_me: creating $ac_file" >&6;} 9167printf "%s\n" "$as_me: creating $ac_file" >&6;}
8582 fi 9168 fi
8583 # Neutralize special characters interpreted by sed in replacement strings. 9169 # Neutralize special characters interpreted by sed in replacement strings.
8584 case $configure_input in #( 9170 case $configure_input in #(
8585 *\&* | *\|* | *\\* ) 9171 *\&* | *\|* | *\\* )
8586 ac_sed_conf_input=`$as_echo "$configure_input" | 9172 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
8587 sed 's/[\\\\&|]/\\\\&/g'`;; #( 9173 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8588 *) ac_sed_conf_input=$configure_input;; 9174 *) ac_sed_conf_input=$configure_input;;
8589 esac 9175 esac
8590 9176
8591 case $ac_tag in 9177 case $ac_tag in
8592 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 9178 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8593 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 9179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8594 esac 9180 esac
8595 ;; 9181 ;;
8596 esac 9182 esac
8597 9183
8598 ac_dir=`$as_dirname -- "$ac_file" || 9184 ac_dir=`$as_dirname -- "$ac_file" ||
8599$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9185$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8600 X"$ac_file" : 'X\(//\)[^/]' \| \ 9186 X"$ac_file" : 'X\(//\)[^/]' \| \
8601 X"$ac_file" : 'X\(//\)$' \| \ 9187 X"$ac_file" : 'X\(//\)$' \| \
8602 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9188 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8603$as_echo X"$ac_file" | 9189printf "%s\n" X"$ac_file" |
8604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8605 s//\1/ 9191 s//\1/
8606 q 9192 q
8607 } 9193 }
8608 /^X\(\/\/\)[^/].*/{ 9194 /^X\(\/\/\)[^/].*/{
8609 s//\1/ 9195 s//\1/
8610 q 9196 q
8611 } 9197 }
8612 /^X\(\/\/\)$/{ 9198 /^X\(\/\/\)$/{
8613 s//\1/ 9199 s//\1/
8614 q 9200 q
8615 } 9201 }
8616 /^X\(\/\).*/{ 9202 /^X\(\/\).*/{
8617 s//\1/ 9203 s//\1/
8618 q 9204 q
8619 } 9205 }
8620 s/.*/./; q'` 9206 s/.*/./; q'`
8621 as_dir="$ac_dir"; as_fn_mkdir_p 9207 as_dir="$ac_dir"; as_fn_mkdir_p
8622 ac_builddir=. 9208 ac_builddir=.
8623 9209
8624case "$ac_dir" in 9210case "$ac_dir" in
8625.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9211.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8626*) 9212*)
8627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 9213 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
8628 # A ".." for each directory in $ac_dir_suffix. 9214 # A ".." for each directory in $ac_dir_suffix.
8629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 9215 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8630 case $ac_top_builddir_sub in 9216 case $ac_top_builddir_sub in
8631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9217 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9218 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8633 esac ;; 9219 esac ;;
8634esac 9220esac
8635ac_abs_top_builddir=$ac_pwd 9221ac_abs_top_builddir=$ac_pwd
8636ac_abs_builddir=$ac_pwd$ac_dir_suffix 9222ac_abs_builddir=$ac_pwd$ac_dir_suffix
8637# for backward compatibility: 9223# for backward compatibility:
8638ac_top_builddir=$ac_top_build_prefix 9224ac_top_builddir=$ac_top_build_prefix
8639 9225
8640case $srcdir in 9226case $srcdir in
8641 .) # We are building in place. 9227 .) # We are building in place.
8642 ac_srcdir=. 9228 ac_srcdir=.
@@ -8673,28 +9259,28 @@ ac_datarootdir_hack=; ac_datarootdir_see @@ -8673,28 +9259,28 @@ ac_datarootdir_hack=; ac_datarootdir_see
8673ac_sed_dataroot=' 9259ac_sed_dataroot='
8674/datarootdir/ { 9260/datarootdir/ {
8675 p 9261 p
8676 q 9262 q
8677} 9263}
8678/@datadir@/p 9264/@datadir@/p
8679/@docdir@/p 9265/@docdir@/p
8680/@infodir@/p 9266/@infodir@/p
8681/@localedir@/p 9267/@localedir@/p
8682/@mandir@/p' 9268/@mandir@/p'
8683case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 9269case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8684*datarootdir*) ac_datarootdir_seen=yes;; 9270*datarootdir*) ac_datarootdir_seen=yes;;
8685*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9271*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8687$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9273printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8688_ACEOF 9274_ACEOF
8689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8690 ac_datarootdir_hack=' 9276 ac_datarootdir_hack='
8691 s&@datadir@&$datadir&g 9277 s&@datadir@&$datadir&g
8692 s&@docdir@&$docdir&g 9278 s&@docdir@&$docdir&g
8693 s&@infodir@&$infodir&g 9279 s&@infodir@&$infodir&g
8694 s&@localedir@&$localedir&g 9280 s&@localedir@&$localedir&g
8695 s&@mandir@&$mandir&g 9281 s&@mandir@&$mandir&g
8696 s&\\\${datarootdir}&$datarootdir&g' ;; 9282 s&\\\${datarootdir}&$datarootdir&g' ;;
8697esac 9283esac
8698_ACEOF 9284_ACEOF
8699 9285
8700# Neutralize VPATH when `$srcdir' = `.'. 9286# Neutralize VPATH when `$srcdir' = `.'.
@@ -8717,58 +9303,58 @@ s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t @@ -8717,58 +9303,58 @@ s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t
8717s&@builddir@&$ac_builddir&;t t 9303s&@builddir@&$ac_builddir&;t t
8718s&@abs_builddir@&$ac_abs_builddir&;t t 9304s&@abs_builddir@&$ac_abs_builddir&;t t
8719s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9305s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8720s&@INSTALL@&$ac_INSTALL&;t t 9306s&@INSTALL@&$ac_INSTALL&;t t
8721$ac_datarootdir_hack 9307$ac_datarootdir_hack
8722" 9308"
8723eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 9309eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8724 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9310 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8725 9311
8726test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9312test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8727 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 9313 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8728 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 9314 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8729 "$ac_tmp/out"`; test -z "$ac_out"; } && 9315 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8731which seems to be undefined. Please make sure it is defined" >&5 9317which seems to be undefined. Please make sure it is defined" >&5
8732$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9318printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8733which seems to be undefined. Please make sure it is defined" >&2;} 9319which seems to be undefined. Please make sure it is defined" >&2;}
8734 9320
8735 rm -f "$ac_tmp/stdin" 9321 rm -f "$ac_tmp/stdin"
8736 case $ac_file in 9322 case $ac_file in
8737 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 9323 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8738 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 9324 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8739 esac \ 9325 esac \
8740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9326 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8741 ;; 9327 ;;
8742 :H) 9328 :H)
8743 # 9329 #
8744 # CONFIG_HEADER 9330 # CONFIG_HEADER
8745 # 9331 #
8746 if test x"$ac_file" != x-; then 9332 if test x"$ac_file" != x-; then
8747 { 9333 {
8748 $as_echo "/* $configure_input */" \ 9334 printf "%s\n" "/* $configure_input */" >&1 \
8749 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 9335 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8750 } >"$ac_tmp/config.h" \ 9336 } >"$ac_tmp/config.h" \
8751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8752 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 9338 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8754$as_echo "$as_me: $ac_file is unchanged" >&6;} 9340printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
8755 else 9341 else
8756 rm -f "$ac_file" 9342 rm -f "$ac_file"
8757 mv "$ac_tmp/config.h" "$ac_file" \ 9343 mv "$ac_tmp/config.h" "$ac_file" \
8758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9344 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8759 fi 9345 fi
8760 else 9346 else
8761 $as_echo "/* $configure_input */" \ 9347 printf "%s\n" "/* $configure_input */" >&1 \
8762 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 9348 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8763 || as_fn_error $? "could not create -" "$LINENO" 5 9349 || as_fn_error $? "could not create -" "$LINENO" 5
8764 fi 9350 fi
8765 ;; 9351 ;;
8766 9352
8767 9353
8768 esac 9354 esac
8769 9355
8770done # for ac_tag 9356done # for ac_tag
8771 9357
8772 9358
8773as_fn_exit 0 9359as_fn_exit 0
8774_ACEOF 9360_ACEOF
@@ -8789,17 +9375,18 @@ test $ac_write_fail = 0 || @@ -8789,17 +9375,18 @@ test $ac_write_fail = 0 ||
8789if test "$no_create" != yes; then 9375if test "$no_create" != yes; then
8790 ac_cs_success=: 9376 ac_cs_success=:
8791 ac_config_status_args= 9377 ac_config_status_args=
8792 test "$silent" = yes && 9378 test "$silent" = yes &&
8793 ac_config_status_args="$ac_config_status_args --quiet" 9379 ac_config_status_args="$ac_config_status_args --quiet"
8794 exec 5>/dev/null 9380 exec 5>/dev/null
8795 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9381 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8796 exec 5>>config.log 9382 exec 5>>config.log
8797 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9383 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8798 # would make configure fail if this is the last instruction. 9384 # would make configure fail if this is the last instruction.
8799 $ac_cs_success || as_fn_exit 1 9385 $ac_cs_success || as_fn_exit 1
8800fi 9386fi
8801if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 9387if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 9388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8803$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 9389printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8804fi 9390fi
8805 9391
 9392