configure revision 1.112 1 1.1 tv #! /bin/sh
2 1.1 tv # Guess values for system-dependent variables and create Makefiles.
3 1.108 christos # Generated by GNU Autoconf 2.72 for libnbcompat noversion.
4 1.1 tv #
5 1.41 salo # Report bugs to <lib-bug-people (at] NetBSD.org>.
6 1.1 tv #
7 1.84 christos #
8 1.108 christos # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 1.108 christos # Inc.
10 1.84 christos #
11 1.84 christos #
12 1.1 tv # This configure script is free software; the Free Software Foundation
13 1.1 tv # gives unlimited permission to copy, distribute and modify it.
14 1.84 christos ## -------------------- ##
15 1.84 christos ## M4sh Initialization. ##
16 1.84 christos ## -------------------- ##
17 1.84 christos
18 1.84 christos # Be more Bourne compatible
19 1.84 christos DUALCASE=1; export DUALCASE # for MKS sh
20 1.108 christos if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 1.108 christos then :
22 1.84 christos emulate sh
23 1.84 christos NULLCMD=:
24 1.84 christos # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 1.84 christos # is contrary to our usage. Disable this feature.
26 1.84 christos alias -g '${1+"$@"}'='"$@"'
27 1.84 christos setopt NO_GLOB_SUBST
28 1.108 christos else case e in #(
29 1.108 christos e) case `(set -o) 2>/dev/null` in #(
30 1.84 christos *posix*) :
31 1.84 christos set -o posix ;; #(
32 1.84 christos *) :
33 1.84 christos ;;
34 1.108 christos esac ;;
35 1.84 christos esac
36 1.84 christos fi
37 1.84 christos
38 1.84 christos
39 1.108 christos
40 1.108 christos # Reset variables that may have inherited troublesome values from
41 1.108 christos # the environment.
42 1.108 christos
43 1.108 christos # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 1.108 christos # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 1.108 christos # side effect of setting IFS to empty, thus disabling word splitting.)
46 1.108 christos # Quoting is to prevent editors from complaining about space-tab.
47 1.84 christos as_nl='
48 1.84 christos '
49 1.84 christos export as_nl
50 1.108 christos IFS=" "" $as_nl"
51 1.108 christos
52 1.108 christos PS1='$ '
53 1.108 christos PS2='> '
54 1.108 christos PS4='+ '
55 1.108 christos
56 1.108 christos # Ensure predictable behavior from utilities with locale-dependent output.
57 1.108 christos LC_ALL=C
58 1.108 christos export LC_ALL
59 1.108 christos LANGUAGE=C
60 1.108 christos export LANGUAGE
61 1.108 christos
62 1.108 christos # We cannot yet rely on "unset" to work, but we need these variables
63 1.108 christos # to be unset--not just set to an empty or harmless value--now, to
64 1.108 christos # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 1.108 christos # also avoids known problems related to "unset" and subshell syntax
66 1.108 christos # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 1.108 christos for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 1.108 christos do eval test \${$as_var+y} \
69 1.108 christos && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 1.108 christos done
71 1.108 christos
72 1.108 christos # Ensure that fds 0, 1, and 2 are open.
73 1.108 christos if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 1.108 christos if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 1.108 christos if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76 1.84 christos
77 1.84 christos # The user is always right.
78 1.108 christos if ${PATH_SEPARATOR+false} :; then
79 1.84 christos PATH_SEPARATOR=:
80 1.84 christos (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 1.84 christos (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 1.84 christos PATH_SEPARATOR=';'
83 1.84 christos }
84 1.84 christos fi
85 1.74 christos
86 1.74 christos
87 1.84 christos # Find who we are. Look in the path if we contain no directory separator.
88 1.84 christos as_myself=
89 1.84 christos case $0 in #((
90 1.84 christos *[\\/]* ) as_myself=$0 ;;
91 1.84 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 1.84 christos for as_dir in $PATH
93 1.84 christos do
94 1.84 christos IFS=$as_save_IFS
95 1.108 christos case $as_dir in #(((
96 1.108 christos '') as_dir=./ ;;
97 1.108 christos */) ;;
98 1.108 christos *) as_dir=$as_dir/ ;;
99 1.108 christos esac
100 1.108 christos test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 1.84 christos done
102 1.84 christos IFS=$as_save_IFS
103 1.84 christos
104 1.84 christos ;;
105 1.84 christos esac
106 1.108 christos # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 1.84 christos # in which case we are not to be found in the path.
108 1.84 christos if test "x$as_myself" = x; then
109 1.84 christos as_myself=$0
110 1.84 christos fi
111 1.84 christos if test ! -f "$as_myself"; then
112 1.108 christos printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 1.84 christos exit 1
114 1.84 christos fi
115 1.84 christos
116 1.65 christos
117 1.84 christos # Use a proper internal environment variable to ensure we don't fall
118 1.84 christos # into an infinite loop, continuously re-executing ourselves.
119 1.84 christos if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 1.84 christos _as_can_reexec=no; export _as_can_reexec;
121 1.84 christos # We cannot yet assume a decent shell, so we have to provide a
122 1.84 christos # neutralization value for shells without unset; and this also
123 1.84 christos # works around shells that cannot unset nonexistent variables.
124 1.84 christos # Preserve -v and -x to the replacement shell.
125 1.84 christos BASH_ENV=/dev/null
126 1.84 christos ENV=/dev/null
127 1.84 christos (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 1.84 christos case $- in # ((((
129 1.84 christos *v*x* | *x*v* ) as_opts=-vx ;;
130 1.84 christos *v* ) as_opts=-v ;;
131 1.84 christos *x* ) as_opts=-x ;;
132 1.84 christos * ) as_opts= ;;
133 1.84 christos esac
134 1.84 christos exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 1.84 christos # Admittedly, this is quite paranoid, since all the known shells bail
136 1.108 christos # out after a failed 'exec'.
137 1.108 christos printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 1.108 christos exit 255
139 1.84 christos fi
140 1.84 christos # We don't want this to propagate to other subprocesses.
141 1.84 christos { _as_can_reexec=; unset _as_can_reexec;}
142 1.84 christos if test "x$CONFIG_SHELL" = x; then
143 1.108 christos as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 1.108 christos then :
145 1.65 christos emulate sh
146 1.65 christos NULLCMD=:
147 1.84 christos # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 1.84 christos # is contrary to our usage. Disable this feature.
149 1.84 christos alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 1.84 christos setopt NO_GLOB_SUBST
151 1.108 christos else case e in #(
152 1.108 christos e) case \`(set -o) 2>/dev/null\` in #(
153 1.84 christos *posix*) :
154 1.84 christos set -o posix ;; #(
155 1.84 christos *) :
156 1.84 christos ;;
157 1.108 christos esac ;;
158 1.84 christos esac
159 1.84 christos fi
160 1.84 christos "
161 1.84 christos as_required="as_fn_return () { (exit \$1); }
162 1.84 christos as_fn_success () { as_fn_return 0; }
163 1.84 christos as_fn_failure () { as_fn_return 1; }
164 1.84 christos as_fn_ret_success () { return 0; }
165 1.84 christos as_fn_ret_failure () { return 1; }
166 1.84 christos
167 1.84 christos exitcode=0
168 1.84 christos as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 1.84 christos as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 1.84 christos as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 1.84 christos as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 1.108 christos if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 1.108 christos then :
174 1.84 christos
175 1.108 christos else case e in #(
176 1.108 christos e) exitcode=1; echo positional parameters were not saved. ;;
177 1.108 christos esac
178 1.84 christos fi
179 1.84 christos test x\$exitcode = x0 || exit 1
180 1.108 christos blah=\$(echo \$(echo blah))
181 1.108 christos test x\"\$blah\" = xblah || exit 1
182 1.84 christos test -x / || exit 1"
183 1.84 christos as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 1.84 christos as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 1.84 christos eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 1.84 christos test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 1.84 christos test \$(( 1 + 1 )) = 2 || exit 1"
188 1.108 christos if (eval "$as_required") 2>/dev/null
189 1.108 christos then :
190 1.84 christos as_have_required=yes
191 1.108 christos else case e in #(
192 1.108 christos e) as_have_required=no ;;
193 1.108 christos esac
194 1.84 christos fi
195 1.108 christos if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 1.108 christos then :
197 1.84 christos
198 1.108 christos else case e in #(
199 1.108 christos e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 1.84 christos as_found=false
201 1.84 christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 1.84 christos do
203 1.84 christos IFS=$as_save_IFS
204 1.108 christos case $as_dir in #(((
205 1.108 christos '') as_dir=./ ;;
206 1.108 christos */) ;;
207 1.108 christos *) as_dir=$as_dir/ ;;
208 1.108 christos esac
209 1.84 christos as_found=:
210 1.84 christos case $as_dir in #(
211 1.84 christos /*)
212 1.84 christos for as_base in sh bash ksh sh5; do
213 1.84 christos # Try only shells that exist, to save several forks.
214 1.108 christos as_shell=$as_dir$as_base
215 1.84 christos if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 1.108 christos as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 1.108 christos then :
218 1.84 christos CONFIG_SHELL=$as_shell as_have_required=yes
219 1.108 christos if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 1.108 christos then :
221 1.84 christos break 2
222 1.84 christos fi
223 1.84 christos fi
224 1.84 christos done;;
225 1.84 christos esac
226 1.84 christos as_found=false
227 1.84 christos done
228 1.108 christos IFS=$as_save_IFS
229 1.108 christos if $as_found
230 1.108 christos then :
231 1.108 christos
232 1.108 christos else case e in #(
233 1.108 christos e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 1.108 christos as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 1.108 christos then :
236 1.84 christos CONFIG_SHELL=$SHELL as_have_required=yes
237 1.108 christos fi ;;
238 1.108 christos esac
239 1.108 christos fi
240 1.84 christos
241 1.84 christos
242 1.108 christos if test "x$CONFIG_SHELL" != x
243 1.108 christos then :
244 1.84 christos export CONFIG_SHELL
245 1.84 christos # We cannot yet assume a decent shell, so we have to provide a
246 1.84 christos # neutralization value for shells without unset; and this also
247 1.84 christos # works around shells that cannot unset nonexistent variables.
248 1.84 christos # Preserve -v and -x to the replacement shell.
249 1.84 christos BASH_ENV=/dev/null
250 1.84 christos ENV=/dev/null
251 1.84 christos (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 1.84 christos case $- in # ((((
253 1.84 christos *v*x* | *x*v* ) as_opts=-vx ;;
254 1.84 christos *v* ) as_opts=-v ;;
255 1.84 christos *x* ) as_opts=-x ;;
256 1.84 christos * ) as_opts= ;;
257 1.84 christos esac
258 1.84 christos exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 1.84 christos # Admittedly, this is quite paranoid, since all the known shells bail
260 1.108 christos # out after a failed 'exec'.
261 1.108 christos printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 1.84 christos exit 255
263 1.65 christos fi
264 1.61 christos
265 1.108 christos if test x$as_have_required = xno
266 1.108 christos then :
267 1.108 christos printf "%s\n" "$0: This script requires a shell more modern than all"
268 1.108 christos printf "%s\n" "$0: the shells that I found on your system."
269 1.108 christos if test ${ZSH_VERSION+y} ; then
270 1.108 christos printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 1.108 christos printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 1.84 christos else
273 1.108 christos printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
274 1.84 christos $0: lib-bug-people (at] NetBSD.org about your system, including
275 1.84 christos $0: any error possibly output before this message. Then
276 1.84 christos $0: install a modern shell, or manually run the script
277 1.84 christos $0: under such a shell if you do have one."
278 1.84 christos fi
279 1.84 christos exit 1
280 1.108 christos fi ;;
281 1.108 christos esac
282 1.84 christos fi
283 1.84 christos fi
284 1.84 christos SHELL=${CONFIG_SHELL-/bin/sh}
285 1.84 christos export SHELL
286 1.84 christos # Unset more variables known to interfere with behavior of common tools.
287 1.84 christos CLICOLOR_FORCE= GREP_OPTIONS=
288 1.84 christos unset CLICOLOR_FORCE GREP_OPTIONS
289 1.84 christos
290 1.84 christos ## --------------------- ##
291 1.84 christos ## M4sh Shell Functions. ##
292 1.84 christos ## --------------------- ##
293 1.84 christos # as_fn_unset VAR
294 1.84 christos # ---------------
295 1.84 christos # Portably unset VAR.
296 1.84 christos as_fn_unset ()
297 1.84 christos {
298 1.84 christos { eval $1=; unset $1;}
299 1.84 christos }
300 1.84 christos as_unset=as_fn_unset
301 1.84 christos
302 1.108 christos
303 1.84 christos # as_fn_set_status STATUS
304 1.84 christos # -----------------------
305 1.84 christos # Set $? to STATUS, without forking.
306 1.84 christos as_fn_set_status ()
307 1.84 christos {
308 1.84 christos return $1
309 1.84 christos } # as_fn_set_status
310 1.84 christos
311 1.84 christos # as_fn_exit STATUS
312 1.84 christos # -----------------
313 1.84 christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 1.84 christos as_fn_exit ()
315 1.84 christos {
316 1.84 christos set +e
317 1.84 christos as_fn_set_status $1
318 1.84 christos exit $1
319 1.84 christos } # as_fn_exit
320 1.84 christos
321 1.84 christos # as_fn_mkdir_p
322 1.84 christos # -------------
323 1.84 christos # Create "$as_dir" as a directory, including parents if necessary.
324 1.84 christos as_fn_mkdir_p ()
325 1.84 christos {
326 1.84 christos
327 1.84 christos case $as_dir in #(
328 1.84 christos -*) as_dir=./$as_dir;;
329 1.84 christos esac
330 1.84 christos test -d "$as_dir" || eval $as_mkdir_p || {
331 1.84 christos as_dirs=
332 1.84 christos while :; do
333 1.84 christos case $as_dir in #(
334 1.108 christos *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 1.84 christos *) as_qdir=$as_dir;;
336 1.84 christos esac
337 1.84 christos as_dirs="'$as_qdir' $as_dirs"
338 1.84 christos as_dir=`$as_dirname -- "$as_dir" ||
339 1.84 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 1.84 christos X"$as_dir" : 'X\(//\)[^/]' \| \
341 1.84 christos X"$as_dir" : 'X\(//\)$' \| \
342 1.84 christos X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 1.108 christos printf "%s\n" X"$as_dir" |
344 1.84 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 1.84 christos s//\1/
346 1.84 christos q
347 1.84 christos }
348 1.84 christos /^X\(\/\/\)[^/].*/{
349 1.84 christos s//\1/
350 1.84 christos q
351 1.84 christos }
352 1.84 christos /^X\(\/\/\)$/{
353 1.84 christos s//\1/
354 1.84 christos q
355 1.84 christos }
356 1.84 christos /^X\(\/\).*/{
357 1.84 christos s//\1/
358 1.84 christos q
359 1.84 christos }
360 1.84 christos s/.*/./; q'`
361 1.84 christos test -d "$as_dir" && break
362 1.84 christos done
363 1.84 christos test -z "$as_dirs" || eval "mkdir $as_dirs"
364 1.84 christos } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365 1.84 christos
366 1.84 christos
367 1.84 christos } # as_fn_mkdir_p
368 1.84 christos
369 1.84 christos # as_fn_executable_p FILE
370 1.84 christos # -----------------------
371 1.84 christos # Test if FILE is an executable regular file.
372 1.84 christos as_fn_executable_p ()
373 1.84 christos {
374 1.84 christos test -f "$1" && test -x "$1"
375 1.84 christos } # as_fn_executable_p
376 1.84 christos # as_fn_append VAR VALUE
377 1.84 christos # ----------------------
378 1.84 christos # Append the text in VALUE to the end of the definition contained in VAR. Take
379 1.84 christos # advantage of any shell optimizations that allow amortized linear growth over
380 1.84 christos # repeated appends, instead of the typical quadratic growth present in naive
381 1.84 christos # implementations.
382 1.108 christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 1.108 christos then :
384 1.84 christos eval 'as_fn_append ()
385 1.84 christos {
386 1.84 christos eval $1+=\$2
387 1.84 christos }'
388 1.108 christos else case e in #(
389 1.108 christos e) as_fn_append ()
390 1.84 christos {
391 1.84 christos eval $1=\$$1\$2
392 1.108 christos } ;;
393 1.108 christos esac
394 1.84 christos fi # as_fn_append
395 1.84 christos
396 1.84 christos # as_fn_arith ARG...
397 1.84 christos # ------------------
398 1.84 christos # Perform arithmetic evaluation on the ARGs, and store the result in the
399 1.84 christos # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 1.84 christos # must be portable across $(()) and expr.
401 1.108 christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 1.108 christos then :
403 1.84 christos eval 'as_fn_arith ()
404 1.84 christos {
405 1.84 christos as_val=$(( $* ))
406 1.84 christos }'
407 1.108 christos else case e in #(
408 1.108 christos e) as_fn_arith ()
409 1.84 christos {
410 1.84 christos as_val=`expr "$@" || test $? -eq 1`
411 1.108 christos } ;;
412 1.108 christos esac
413 1.84 christos fi # as_fn_arith
414 1.84 christos
415 1.84 christos
416 1.84 christos # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 1.84 christos # ----------------------------------------
418 1.84 christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 1.84 christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 1.84 christos # script with STATUS, using 1 if that was 0.
421 1.84 christos as_fn_error ()
422 1.84 christos {
423 1.84 christos as_status=$1; test $as_status -eq 0 && as_status=1
424 1.84 christos if test "$4"; then
425 1.84 christos as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 1.84 christos fi
428 1.108 christos printf "%s\n" "$as_me: error: $2" >&2
429 1.84 christos as_fn_exit $as_status
430 1.84 christos } # as_fn_error
431 1.61 christos
432 1.84 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
433 1.84 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 1.1 tv as_expr=expr
435 1.1 tv else
436 1.1 tv as_expr=false
437 1.1 tv fi
438 1.1 tv
439 1.84 christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 1.84 christos as_basename=basename
441 1.84 christos else
442 1.84 christos as_basename=false
443 1.84 christos fi
444 1.84 christos
445 1.84 christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 1.84 christos as_dirname=dirname
447 1.84 christos else
448 1.84 christos as_dirname=false
449 1.84 christos fi
450 1.84 christos
451 1.84 christos as_me=`$as_basename -- "$0" ||
452 1.84 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 1.84 christos X"$0" : 'X\(//\)$' \| \
454 1.84 christos X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 1.108 christos printf "%s\n" X/"$0" |
456 1.84 christos sed '/^.*\/\([^/][^/]*\)\/*$/{
457 1.84 christos s//\1/
458 1.84 christos q
459 1.84 christos }
460 1.84 christos /^X\/\(\/\/\)$/{
461 1.84 christos s//\1/
462 1.84 christos q
463 1.84 christos }
464 1.84 christos /^X\/\(\/\).*/{
465 1.84 christos s//\1/
466 1.84 christos q
467 1.84 christos }
468 1.84 christos s/.*/./; q'`
469 1.84 christos
470 1.84 christos # Avoid depending upon Character Ranges.
471 1.84 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 1.84 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 1.84 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 1.84 christos as_cr_digits='0123456789'
475 1.84 christos as_cr_alnum=$as_cr_Letters$as_cr_digits
476 1.84 christos
477 1.84 christos
478 1.84 christos as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 1.84 christos as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 1.84 christos eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 1.84 christos test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 1.84 christos # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 1.84 christos sed -n '
484 1.84 christos p
485 1.84 christos /[$]LINENO/=
486 1.84 christos ' <$as_myself |
487 1.84 christos sed '
488 1.108 christos t clear
489 1.108 christos :clear
490 1.84 christos s/[$]LINENO.*/&-/
491 1.84 christos t lineno
492 1.84 christos b
493 1.84 christos :lineno
494 1.84 christos N
495 1.84 christos :loop
496 1.84 christos s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 1.84 christos t loop
498 1.84 christos s/-\n.*//
499 1.84 christos ' >$as_me.lineno &&
500 1.84 christos chmod +x "$as_me.lineno" ||
501 1.108 christos { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
502 1.84 christos
503 1.84 christos # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
504 1.84 christos # already done that, so ensure we don't try to do so again and fall
505 1.84 christos # in an infinite loop. This has already happened in practice.
506 1.84 christos _as_can_reexec=no; export _as_can_reexec
507 1.84 christos # Don't try to exec as it changes $[0], causing all sort of problems
508 1.84 christos # (the dirname of $[0] is not the place where we might find the
509 1.84 christos # original and so on. Autoconf is especially sensitive to this).
510 1.84 christos . "./$as_me.lineno"
511 1.84 christos # Exit status is that of the last command.
512 1.84 christos exit
513 1.84 christos }
514 1.84 christos
515 1.108 christos
516 1.108 christos # Determine whether it's possible to make 'echo' print without a newline.
517 1.108 christos # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
518 1.108 christos # for compatibility with existing Makefiles.
519 1.84 christos ECHO_C= ECHO_N= ECHO_T=
520 1.84 christos case `echo -n x` in #(((((
521 1.84 christos -n*)
522 1.84 christos case `echo 'xy\c'` in
523 1.84 christos *c*) ECHO_T=' ';; # ECHO_T is single tab character.
524 1.84 christos xy) ECHO_C='\c';;
525 1.84 christos *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
526 1.84 christos ECHO_T=' ';;
527 1.84 christos esac;;
528 1.84 christos *)
529 1.84 christos ECHO_N='-n';;
530 1.84 christos esac
531 1.84 christos
532 1.108 christos # For backward compatibility with old third-party macros, we provide
533 1.108 christos # the shell variables $as_echo and $as_echo_n. New code should use
534 1.108 christos # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
535 1.108 christos as_echo='printf %s\n'
536 1.108 christos as_echo_n='printf %s'
537 1.108 christos
538 1.1 tv rm -f conf$$ conf$$.exe conf$$.file
539 1.84 christos if test -d conf$$.dir; then
540 1.84 christos rm -f conf$$.dir/conf$$.file
541 1.84 christos else
542 1.84 christos rm -f conf$$.dir
543 1.84 christos mkdir conf$$.dir 2>/dev/null
544 1.84 christos fi
545 1.84 christos if (echo >conf$$.file) 2>/dev/null; then
546 1.84 christos if ln -s conf$$.file conf$$ 2>/dev/null; then
547 1.84 christos as_ln_s='ln -s'
548 1.84 christos # ... but there are two gotchas:
549 1.108 christos # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
550 1.108 christos # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
551 1.108 christos # In both cases, we have to default to 'cp -pR'.
552 1.84 christos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
553 1.84 christos as_ln_s='cp -pR'
554 1.84 christos elif ln conf$$.file conf$$ 2>/dev/null; then
555 1.84 christos as_ln_s=ln
556 1.76 pooka else
557 1.84 christos as_ln_s='cp -pR'
558 1.66 tsutsui fi
559 1.1 tv else
560 1.84 christos as_ln_s='cp -pR'
561 1.1 tv fi
562 1.84 christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
563 1.84 christos rmdir conf$$.dir 2>/dev/null
564 1.63 apb
565 1.84 christos if mkdir -p . 2>/dev/null; then
566 1.84 christos as_mkdir_p='mkdir -p "$as_dir"'
567 1.61 christos else
568 1.84 christos test -d ./-p && rmdir ./-p
569 1.84 christos as_mkdir_p=false
570 1.61 christos fi
571 1.65 christos
572 1.84 christos as_test_x='test -x'
573 1.84 christos as_executable_p=as_fn_executable_p
574 1.84 christos
575 1.84 christos # Sed expression to map a string onto a valid CPP name.
576 1.108 christos as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
577 1.108 christos as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
578 1.84 christos
579 1.84 christos # Sed expression to map a string onto a valid variable name.
580 1.108 christos as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
581 1.108 christos as_tr_sh="eval sed '$as_sed_sh'" # deprecated
582 1.74 christos
583 1.74 christos
584 1.84 christos test -n "$DJDIR" || exec 7<&0 </dev/null
585 1.84 christos exec 6>&1
586 1.1 tv
587 1.1 tv # Name of the host.
588 1.84 christos # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
589 1.1 tv # so uname gets run too.
590 1.1 tv ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
591 1.1 tv
592 1.1 tv #
593 1.1 tv # Initializations.
594 1.1 tv #
595 1.1 tv ac_default_prefix=/usr/local
596 1.84 christos ac_clean_files=
597 1.84 christos ac_config_libobj_dir=.
598 1.84 christos LIBOBJS=
599 1.1 tv cross_compiling=no
600 1.1 tv subdirs=
601 1.84 christos MFLAGS=
602 1.84 christos MAKEFLAGS=
603 1.1 tv
604 1.84 christos # Identity of this package.
605 1.84 christos PACKAGE_NAME='libnbcompat'
606 1.84 christos PACKAGE_TARNAME='libnbcompat'
607 1.84 christos PACKAGE_VERSION='noversion'
608 1.84 christos PACKAGE_STRING='libnbcompat noversion'
609 1.84 christos PACKAGE_BUGREPORT='lib-bug-people (at] NetBSD.org'
610 1.84 christos PACKAGE_URL=''
611 1.1 tv
612 1.1 tv # Factoring default headers for most tests.
613 1.1 tv ac_includes_default="\
614 1.108 christos #include <stddef.h>
615 1.108 christos #ifdef HAVE_STDIO_H
616 1.108 christos # include <stdio.h>
617 1.1 tv #endif
618 1.108 christos #ifdef HAVE_STDLIB_H
619 1.1 tv # include <stdlib.h>
620 1.1 tv #endif
621 1.84 christos #ifdef HAVE_STRING_H
622 1.1 tv # include <string.h>
623 1.1 tv #endif
624 1.84 christos #ifdef HAVE_INTTYPES_H
625 1.1 tv # include <inttypes.h>
626 1.1 tv #endif
627 1.84 christos #ifdef HAVE_STDINT_H
628 1.84 christos # include <stdint.h>
629 1.84 christos #endif
630 1.108 christos #ifdef HAVE_STRINGS_H
631 1.108 christos # include <strings.h>
632 1.108 christos #endif
633 1.108 christos #ifdef HAVE_SYS_TYPES_H
634 1.108 christos # include <sys/types.h>
635 1.108 christos #endif
636 1.108 christos #ifdef HAVE_SYS_STAT_H
637 1.108 christos # include <sys/stat.h>
638 1.108 christos #endif
639 1.84 christos #ifdef HAVE_UNISTD_H
640 1.1 tv # include <unistd.h>
641 1.1 tv #endif"
642 1.1 tv
643 1.108 christos ac_header_c_list=
644 1.84 christos ac_subst_vars='LTLIBOBJS
645 1.84 christos LIBOBJS
646 1.102 lukem CC_WNO_STRINGOP_TRUNCATION
647 1.102 lukem CC_WNO_STRINGOP_OVERFLOW
648 1.103 lukem CC_WNO_RETURN_LOCAL_ADDR
649 1.102 lukem CC_WNO_MAYBE_UNINITIALIZED
650 1.103 lukem CC_WNO_IMPLICIT_FALLTHROUGH
651 1.102 lukem CC_WNO_FORMAT_TRUNCATION
652 1.103 lukem CC_WNO_FORMAT_OVERFLOW
653 1.103 lukem CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER
654 1.103 lukem CC_WNO_CAST_FUNCTION_TYPE
655 1.103 lukem CC_WNO_ADDRESS_OF_PACKED_MEMBER
656 1.102 lukem CC_NO_CPP_PRECOMP
657 1.84 christos ALLOCA
658 1.84 christos EGREP
659 1.84 christos GREP
660 1.108 christos BSHELL
661 1.84 christos CPP
662 1.84 christos OBJEXT
663 1.84 christos EXEEXT
664 1.84 christos ac_ct_CC
665 1.84 christos CPPFLAGS
666 1.84 christos LDFLAGS
667 1.84 christos CFLAGS
668 1.84 christos CC
669 1.84 christos target_alias
670 1.84 christos host_alias
671 1.84 christos build_alias
672 1.84 christos LIBS
673 1.84 christos ECHO_T
674 1.84 christos ECHO_N
675 1.84 christos ECHO_C
676 1.84 christos DEFS
677 1.84 christos mandir
678 1.84 christos localedir
679 1.84 christos libdir
680 1.84 christos psdir
681 1.84 christos pdfdir
682 1.84 christos dvidir
683 1.84 christos htmldir
684 1.84 christos infodir
685 1.84 christos docdir
686 1.84 christos oldincludedir
687 1.84 christos includedir
688 1.108 christos runstatedir
689 1.84 christos localstatedir
690 1.84 christos sharedstatedir
691 1.84 christos sysconfdir
692 1.84 christos datadir
693 1.84 christos datarootdir
694 1.84 christos libexecdir
695 1.84 christos sbindir
696 1.84 christos bindir
697 1.84 christos program_transform_name
698 1.84 christos prefix
699 1.84 christos exec_prefix
700 1.84 christos PACKAGE_URL
701 1.84 christos PACKAGE_BUGREPORT
702 1.84 christos PACKAGE_STRING
703 1.84 christos PACKAGE_VERSION
704 1.84 christos PACKAGE_TARNAME
705 1.84 christos PACKAGE_NAME
706 1.84 christos PATH_SEPARATOR
707 1.84 christos SHELL'
708 1.84 christos ac_subst_files=''
709 1.84 christos ac_user_opts='
710 1.84 christos enable_option_checking
711 1.84 christos '
712 1.84 christos ac_precious_vars='build_alias
713 1.84 christos host_alias
714 1.84 christos target_alias
715 1.84 christos CC
716 1.84 christos CFLAGS
717 1.84 christos LDFLAGS
718 1.84 christos LIBS
719 1.84 christos CPPFLAGS
720 1.84 christos CPP'
721 1.84 christos
722 1.84 christos
723 1.1 tv # Initialize some variables set by options.
724 1.1 tv ac_init_help=
725 1.1 tv ac_init_version=false
726 1.84 christos ac_unrecognized_opts=
727 1.84 christos ac_unrecognized_sep=
728 1.1 tv # The variables have the same names as the options, with
729 1.1 tv # dashes changed to underlines.
730 1.1 tv cache_file=/dev/null
731 1.1 tv exec_prefix=NONE
732 1.1 tv no_create=
733 1.1 tv no_recursion=
734 1.1 tv prefix=NONE
735 1.1 tv program_prefix=NONE
736 1.1 tv program_suffix=NONE
737 1.1 tv program_transform_name=s,x,x,
738 1.1 tv silent=
739 1.1 tv site=
740 1.1 tv srcdir=
741 1.1 tv verbose=
742 1.1 tv x_includes=NONE
743 1.1 tv x_libraries=NONE
744 1.1 tv
745 1.1 tv # Installation directory options.
746 1.1 tv # These are left unexpanded so users can "make install exec_prefix=/foo"
747 1.1 tv # and all the variables that are supposed to be based on exec_prefix
748 1.1 tv # by default will actually change.
749 1.1 tv # Use braces instead of parens because sh, perl, etc. also accept them.
750 1.84 christos # (The list follows the same order as the GNU Coding Standards.)
751 1.1 tv bindir='${exec_prefix}/bin'
752 1.1 tv sbindir='${exec_prefix}/sbin'
753 1.1 tv libexecdir='${exec_prefix}/libexec'
754 1.84 christos datarootdir='${prefix}/share'
755 1.84 christos datadir='${datarootdir}'
756 1.1 tv sysconfdir='${prefix}/etc'
757 1.1 tv sharedstatedir='${prefix}/com'
758 1.1 tv localstatedir='${prefix}/var'
759 1.108 christos runstatedir='${localstatedir}/run'
760 1.1 tv includedir='${prefix}/include'
761 1.1 tv oldincludedir='/usr/include'
762 1.84 christos docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
763 1.84 christos infodir='${datarootdir}/info'
764 1.84 christos htmldir='${docdir}'
765 1.84 christos dvidir='${docdir}'
766 1.84 christos pdfdir='${docdir}'
767 1.84 christos psdir='${docdir}'
768 1.84 christos libdir='${exec_prefix}/lib'
769 1.84 christos localedir='${datarootdir}/locale'
770 1.84 christos mandir='${datarootdir}/man'
771 1.63 apb
772 1.1 tv ac_prev=
773 1.84 christos ac_dashdash=
774 1.1 tv for ac_option
775 1.1 tv do
776 1.1 tv # If the previous option needs an argument, assign it.
777 1.1 tv if test -n "$ac_prev"; then
778 1.84 christos eval $ac_prev=\$ac_option
779 1.1 tv ac_prev=
780 1.1 tv continue
781 1.1 tv fi
782 1.1 tv
783 1.84 christos case $ac_option in
784 1.84 christos *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
785 1.84 christos *=) ac_optarg= ;;
786 1.84 christos *) ac_optarg=yes ;;
787 1.84 christos esac
788 1.1 tv
789 1.84 christos case $ac_dashdash$ac_option in
790 1.84 christos --)
791 1.84 christos ac_dashdash=yes ;;
792 1.1 tv
793 1.1 tv -bindir | --bindir | --bindi | --bind | --bin | --bi)
794 1.1 tv ac_prev=bindir ;;
795 1.1 tv -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
796 1.1 tv bindir=$ac_optarg ;;
797 1.1 tv
798 1.1 tv -build | --build | --buil | --bui | --bu)
799 1.1 tv ac_prev=build_alias ;;
800 1.1 tv -build=* | --build=* | --buil=* | --bui=* | --bu=*)
801 1.1 tv build_alias=$ac_optarg ;;
802 1.1 tv
803 1.1 tv -cache-file | --cache-file | --cache-fil | --cache-fi \
804 1.1 tv | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
805 1.1 tv ac_prev=cache_file ;;
806 1.1 tv -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
807 1.1 tv | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
808 1.1 tv cache_file=$ac_optarg ;;
809 1.1 tv
810 1.1 tv --config-cache | -C)
811 1.1 tv cache_file=config.cache ;;
812 1.1 tv
813 1.84 christos -datadir | --datadir | --datadi | --datad)
814 1.1 tv ac_prev=datadir ;;
815 1.84 christos -datadir=* | --datadir=* | --datadi=* | --datad=*)
816 1.1 tv datadir=$ac_optarg ;;
817 1.1 tv
818 1.84 christos -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
819 1.84 christos | --dataroo | --dataro | --datar)
820 1.84 christos ac_prev=datarootdir ;;
821 1.84 christos -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
822 1.84 christos | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
823 1.84 christos datarootdir=$ac_optarg ;;
824 1.84 christos
825 1.1 tv -disable-* | --disable-*)
826 1.84 christos ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
827 1.1 tv # Reject names that are not valid shell variable names.
828 1.84 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
829 1.108 christos as_fn_error $? "invalid feature name: '$ac_useropt'"
830 1.84 christos ac_useropt_orig=$ac_useropt
831 1.108 christos ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
832 1.84 christos case $ac_user_opts in
833 1.84 christos *"
834 1.84 christos "enable_$ac_useropt"
835 1.84 christos "*) ;;
836 1.84 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
837 1.84 christos ac_unrecognized_sep=', ';;
838 1.84 christos esac
839 1.84 christos eval enable_$ac_useropt=no ;;
840 1.84 christos
841 1.84 christos -docdir | --docdir | --docdi | --doc | --do)
842 1.84 christos ac_prev=docdir ;;
843 1.84 christos -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
844 1.84 christos docdir=$ac_optarg ;;
845 1.84 christos
846 1.84 christos -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
847 1.84 christos ac_prev=dvidir ;;
848 1.84 christos -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
849 1.84 christos dvidir=$ac_optarg ;;
850 1.1 tv
851 1.1 tv -enable-* | --enable-*)
852 1.84 christos ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
853 1.1 tv # Reject names that are not valid shell variable names.
854 1.84 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
855 1.108 christos as_fn_error $? "invalid feature name: '$ac_useropt'"
856 1.84 christos ac_useropt_orig=$ac_useropt
857 1.108 christos ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
858 1.84 christos case $ac_user_opts in
859 1.84 christos *"
860 1.84 christos "enable_$ac_useropt"
861 1.84 christos "*) ;;
862 1.84 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
863 1.84 christos ac_unrecognized_sep=', ';;
864 1.66 tsutsui esac
865 1.84 christos eval enable_$ac_useropt=\$ac_optarg ;;
866 1.1 tv
867 1.1 tv -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
868 1.1 tv | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
869 1.1 tv | --exec | --exe | --ex)
870 1.1 tv ac_prev=exec_prefix ;;
871 1.1 tv -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
872 1.1 tv | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
873 1.1 tv | --exec=* | --exe=* | --ex=*)
874 1.1 tv exec_prefix=$ac_optarg ;;
875 1.1 tv
876 1.1 tv -gas | --gas | --ga | --g)
877 1.1 tv # Obsolete; use --with-gas.
878 1.1 tv with_gas=yes ;;
879 1.1 tv
880 1.1 tv -help | --help | --hel | --he | -h)
881 1.1 tv ac_init_help=long ;;
882 1.1 tv -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
883 1.1 tv ac_init_help=recursive ;;
884 1.1 tv -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
885 1.1 tv ac_init_help=short ;;
886 1.1 tv
887 1.1 tv -host | --host | --hos | --ho)
888 1.1 tv ac_prev=host_alias ;;
889 1.1 tv -host=* | --host=* | --hos=* | --ho=*)
890 1.1 tv host_alias=$ac_optarg ;;
891 1.1 tv
892 1.84 christos -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
893 1.84 christos ac_prev=htmldir ;;
894 1.84 christos -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
895 1.84 christos | --ht=*)
896 1.84 christos htmldir=$ac_optarg ;;
897 1.84 christos
898 1.1 tv -includedir | --includedir | --includedi | --included | --include \
899 1.1 tv | --includ | --inclu | --incl | --inc)
900 1.1 tv ac_prev=includedir ;;
901 1.1 tv -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
902 1.1 tv | --includ=* | --inclu=* | --incl=* | --inc=*)
903 1.1 tv includedir=$ac_optarg ;;
904 1.1 tv
905 1.1 tv -infodir | --infodir | --infodi | --infod | --info | --inf)
906 1.1 tv ac_prev=infodir ;;
907 1.1 tv -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
908 1.1 tv infodir=$ac_optarg ;;
909 1.1 tv
910 1.1 tv -libdir | --libdir | --libdi | --libd)
911 1.1 tv ac_prev=libdir ;;
912 1.1 tv -libdir=* | --libdir=* | --libdi=* | --libd=*)
913 1.1 tv libdir=$ac_optarg ;;
914 1.1 tv
915 1.1 tv -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
916 1.1 tv | --libexe | --libex | --libe)
917 1.1 tv ac_prev=libexecdir ;;
918 1.1 tv -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
919 1.1 tv | --libexe=* | --libex=* | --libe=*)
920 1.1 tv libexecdir=$ac_optarg ;;
921 1.1 tv
922 1.84 christos -localedir | --localedir | --localedi | --localed | --locale)
923 1.84 christos ac_prev=localedir ;;
924 1.84 christos -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
925 1.84 christos localedir=$ac_optarg ;;
926 1.84 christos
927 1.1 tv -localstatedir | --localstatedir | --localstatedi | --localstated \
928 1.84 christos | --localstate | --localstat | --localsta | --localst | --locals)
929 1.1 tv ac_prev=localstatedir ;;
930 1.1 tv -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
931 1.84 christos | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
932 1.1 tv localstatedir=$ac_optarg ;;
933 1.1 tv
934 1.1 tv -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
935 1.1 tv ac_prev=mandir ;;
936 1.1 tv -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
937 1.1 tv mandir=$ac_optarg ;;
938 1.1 tv
939 1.1 tv -nfp | --nfp | --nf)
940 1.1 tv # Obsolete; use --without-fp.
941 1.1 tv with_fp=no ;;
942 1.1 tv
943 1.1 tv -no-create | --no-create | --no-creat | --no-crea | --no-cre \
944 1.84 christos | --no-cr | --no-c | -n)
945 1.1 tv no_create=yes ;;
946 1.1 tv
947 1.1 tv -no-recursion | --no-recursion | --no-recursio | --no-recursi \
948 1.1 tv | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
949 1.1 tv no_recursion=yes ;;
950 1.1 tv
951 1.1 tv -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
952 1.1 tv | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
953 1.1 tv | --oldin | --oldi | --old | --ol | --o)
954 1.1 tv ac_prev=oldincludedir ;;
955 1.1 tv -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
956 1.1 tv | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
957 1.1 tv | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
958 1.1 tv oldincludedir=$ac_optarg ;;
959 1.1 tv
960 1.1 tv -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
961 1.1 tv ac_prev=prefix ;;
962 1.1 tv -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
963 1.1 tv prefix=$ac_optarg ;;
964 1.1 tv
965 1.1 tv -program-prefix | --program-prefix | --program-prefi | --program-pref \
966 1.1 tv | --program-pre | --program-pr | --program-p)
967 1.1 tv ac_prev=program_prefix ;;
968 1.1 tv -program-prefix=* | --program-prefix=* | --program-prefi=* \
969 1.1 tv | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
970 1.1 tv program_prefix=$ac_optarg ;;
971 1.1 tv
972 1.1 tv -program-suffix | --program-suffix | --program-suffi | --program-suff \
973 1.1 tv | --program-suf | --program-su | --program-s)
974 1.1 tv ac_prev=program_suffix ;;
975 1.1 tv -program-suffix=* | --program-suffix=* | --program-suffi=* \
976 1.1 tv | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
977 1.1 tv program_suffix=$ac_optarg ;;
978 1.1 tv
979 1.1 tv -program-transform-name | --program-transform-name \
980 1.1 tv | --program-transform-nam | --program-transform-na \
981 1.1 tv | --program-transform-n | --program-transform- \
982 1.1 tv | --program-transform | --program-transfor \
983 1.1 tv | --program-transfo | --program-transf \
984 1.1 tv | --program-trans | --program-tran \
985 1.1 tv | --progr-tra | --program-tr | --program-t)
986 1.1 tv ac_prev=program_transform_name ;;
987 1.1 tv -program-transform-name=* | --program-transform-name=* \
988 1.1 tv | --program-transform-nam=* | --program-transform-na=* \
989 1.1 tv | --program-transform-n=* | --program-transform-=* \
990 1.1 tv | --program-transform=* | --program-transfor=* \
991 1.1 tv | --program-transfo=* | --program-transf=* \
992 1.1 tv | --program-trans=* | --program-tran=* \
993 1.1 tv | --progr-tra=* | --program-tr=* | --program-t=*)
994 1.1 tv program_transform_name=$ac_optarg ;;
995 1.1 tv
996 1.84 christos -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
997 1.84 christos ac_prev=pdfdir ;;
998 1.84 christos -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
999 1.84 christos pdfdir=$ac_optarg ;;
1000 1.84 christos
1001 1.84 christos -psdir | --psdir | --psdi | --psd | --ps)
1002 1.84 christos ac_prev=psdir ;;
1003 1.84 christos -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1004 1.84 christos psdir=$ac_optarg ;;
1005 1.84 christos
1006 1.1 tv -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1007 1.1 tv | -silent | --silent | --silen | --sile | --sil)
1008 1.1 tv silent=yes ;;
1009 1.1 tv
1010 1.108 christos -runstatedir | --runstatedir | --runstatedi | --runstated \
1011 1.108 christos | --runstate | --runstat | --runsta | --runst | --runs \
1012 1.108 christos | --run | --ru | --r)
1013 1.108 christos ac_prev=runstatedir ;;
1014 1.108 christos -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1015 1.108 christos | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1016 1.108 christos | --run=* | --ru=* | --r=*)
1017 1.108 christos runstatedir=$ac_optarg ;;
1018 1.108 christos
1019 1.1 tv -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1020 1.1 tv ac_prev=sbindir ;;
1021 1.1 tv -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1022 1.1 tv | --sbi=* | --sb=*)
1023 1.1 tv sbindir=$ac_optarg ;;
1024 1.1 tv
1025 1.1 tv -sharedstatedir | --sharedstatedir | --sharedstatedi \
1026 1.1 tv | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1027 1.1 tv | --sharedst | --shareds | --shared | --share | --shar \
1028 1.1 tv | --sha | --sh)
1029 1.1 tv ac_prev=sharedstatedir ;;
1030 1.1 tv -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1031 1.1 tv | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1032 1.1 tv | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1033 1.1 tv | --sha=* | --sh=*)
1034 1.1 tv sharedstatedir=$ac_optarg ;;
1035 1.1 tv
1036 1.1 tv -site | --site | --sit)
1037 1.1 tv ac_prev=site ;;
1038 1.1 tv -site=* | --site=* | --sit=*)
1039 1.1 tv site=$ac_optarg ;;
1040 1.1 tv
1041 1.1 tv -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1042 1.1 tv ac_prev=srcdir ;;
1043 1.1 tv -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1044 1.1 tv srcdir=$ac_optarg ;;
1045 1.1 tv
1046 1.1 tv -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1047 1.1 tv | --syscon | --sysco | --sysc | --sys | --sy)
1048 1.1 tv ac_prev=sysconfdir ;;
1049 1.1 tv -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1050 1.1 tv | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1051 1.1 tv sysconfdir=$ac_optarg ;;
1052 1.1 tv
1053 1.1 tv -target | --target | --targe | --targ | --tar | --ta | --t)
1054 1.1 tv ac_prev=target_alias ;;
1055 1.1 tv -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1056 1.1 tv target_alias=$ac_optarg ;;
1057 1.1 tv
1058 1.1 tv -v | -verbose | --verbose | --verbos | --verbo | --verb)
1059 1.1 tv verbose=yes ;;
1060 1.1 tv
1061 1.1 tv -version | --version | --versio | --versi | --vers | -V)
1062 1.1 tv ac_init_version=: ;;
1063 1.1 tv
1064 1.1 tv -with-* | --with-*)
1065 1.84 christos ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1066 1.1 tv # Reject names that are not valid shell variable names.
1067 1.84 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 1.108 christos as_fn_error $? "invalid package name: '$ac_useropt'"
1069 1.84 christos ac_useropt_orig=$ac_useropt
1070 1.108 christos ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 1.84 christos case $ac_user_opts in
1072 1.84 christos *"
1073 1.84 christos "with_$ac_useropt"
1074 1.84 christos "*) ;;
1075 1.84 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1076 1.84 christos ac_unrecognized_sep=', ';;
1077 1.66 tsutsui esac
1078 1.84 christos eval with_$ac_useropt=\$ac_optarg ;;
1079 1.1 tv
1080 1.1 tv -without-* | --without-*)
1081 1.84 christos ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1082 1.1 tv # Reject names that are not valid shell variable names.
1083 1.84 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 1.108 christos as_fn_error $? "invalid package name: '$ac_useropt'"
1085 1.84 christos ac_useropt_orig=$ac_useropt
1086 1.108 christos ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 1.84 christos case $ac_user_opts in
1088 1.84 christos *"
1089 1.84 christos "with_$ac_useropt"
1090 1.84 christos "*) ;;
1091 1.84 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1092 1.84 christos ac_unrecognized_sep=', ';;
1093 1.84 christos esac
1094 1.84 christos eval with_$ac_useropt=no ;;
1095 1.1 tv
1096 1.1 tv --x)
1097 1.1 tv # Obsolete; use --with-x.
1098 1.1 tv with_x=yes ;;
1099 1.1 tv
1100 1.1 tv -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1101 1.1 tv | --x-incl | --x-inc | --x-in | --x-i)
1102 1.1 tv ac_prev=x_includes ;;
1103 1.1 tv -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1104 1.1 tv | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1105 1.1 tv x_includes=$ac_optarg ;;
1106 1.1 tv
1107 1.1 tv -x-libraries | --x-libraries | --x-librarie | --x-librari \
1108 1.1 tv | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1109 1.1 tv ac_prev=x_libraries ;;
1110 1.1 tv -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1111 1.1 tv | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1112 1.1 tv x_libraries=$ac_optarg ;;
1113 1.1 tv
1114 1.108 christos -*) as_fn_error $? "unrecognized option: '$ac_option'
1115 1.108 christos Try '$0 --help' for more information"
1116 1.1 tv ;;
1117 1.1 tv
1118 1.1 tv *=*)
1119 1.1 tv ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1120 1.1 tv # Reject names that are not valid shell variable names.
1121 1.84 christos case $ac_envvar in #(
1122 1.84 christos '' | [0-9]* | *[!_$as_cr_alnum]* )
1123 1.108 christos as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1124 1.84 christos esac
1125 1.84 christos eval $ac_envvar=\$ac_optarg
1126 1.1 tv export $ac_envvar ;;
1127 1.1 tv
1128 1.1 tv *)
1129 1.1 tv # FIXME: should be removed in autoconf 3.0.
1130 1.108 christos printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1131 1.1 tv expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1132 1.108 christos printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1133 1.84 christos : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1134 1.1 tv ;;
1135 1.1 tv
1136 1.1 tv esac
1137 1.1 tv done
1138 1.1 tv
1139 1.1 tv if test -n "$ac_prev"; then
1140 1.1 tv ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1141 1.84 christos as_fn_error $? "missing argument to $ac_option"
1142 1.84 christos fi
1143 1.84 christos
1144 1.84 christos if test -n "$ac_unrecognized_opts"; then
1145 1.84 christos case $enable_option_checking in
1146 1.84 christos no) ;;
1147 1.84 christos fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1148 1.108 christos *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1149 1.84 christos esac
1150 1.74 christos fi
1151 1.74 christos
1152 1.84 christos # Check all directory arguments for consistency.
1153 1.84 christos for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1154 1.84 christos datadir sysconfdir sharedstatedir localstatedir includedir \
1155 1.84 christos oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1156 1.108 christos libdir localedir mandir runstatedir
1157 1.76 pooka do
1158 1.84 christos eval ac_val=\$$ac_var
1159 1.84 christos # Remove trailing slashes.
1160 1.76 pooka case $ac_val in
1161 1.84 christos */ )
1162 1.84 christos ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1163 1.84 christos eval $ac_var=\$ac_val;;
1164 1.74 christos esac
1165 1.84 christos # Be sure to have absolute directory names.
1166 1.1 tv case $ac_val in
1167 1.84 christos [\\/$]* | ?:[\\/]* ) continue;;
1168 1.84 christos NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1169 1.1 tv esac
1170 1.84 christos as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1171 1.1 tv done
1172 1.1 tv
1173 1.108 christos # There might be people who depend on the old broken behavior: '$host'
1174 1.1 tv # used to hold the argument of --host etc.
1175 1.84 christos # FIXME: To remove some day.
1176 1.1 tv build=$build_alias
1177 1.1 tv host=$host_alias
1178 1.1 tv target=$target_alias
1179 1.1 tv
1180 1.84 christos # FIXME: To remove some day.
1181 1.1 tv if test "x$host_alias" != x; then
1182 1.1 tv if test "x$build_alias" = x; then
1183 1.1 tv cross_compiling=maybe
1184 1.1 tv elif test "x$build_alias" != "x$host_alias"; then
1185 1.1 tv cross_compiling=yes
1186 1.1 tv fi
1187 1.1 tv fi
1188 1.1 tv
1189 1.1 tv ac_tool_prefix=
1190 1.1 tv test -n "$host_alias" && ac_tool_prefix=$host_alias-
1191 1.1 tv
1192 1.1 tv test "$silent" = yes && exec 6>/dev/null
1193 1.1 tv
1194 1.84 christos
1195 1.84 christos ac_pwd=`pwd` && test -n "$ac_pwd" &&
1196 1.84 christos ac_ls_di=`ls -di .` &&
1197 1.84 christos ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1198 1.84 christos as_fn_error $? "working directory cannot be determined"
1199 1.84 christos test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1200 1.84 christos as_fn_error $? "pwd does not report name of working directory"
1201 1.84 christos
1202 1.84 christos
1203 1.1 tv # Find the source files, if location was not specified.
1204 1.1 tv if test -z "$srcdir"; then
1205 1.1 tv ac_srcdir_defaulted=yes
1206 1.84 christos # Try the directory containing this script, then the parent directory.
1207 1.84 christos ac_confdir=`$as_dirname -- "$as_myself" ||
1208 1.84 christos $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1209 1.84 christos X"$as_myself" : 'X\(//\)[^/]' \| \
1210 1.84 christos X"$as_myself" : 'X\(//\)$' \| \
1211 1.84 christos X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1212 1.108 christos printf "%s\n" X"$as_myself" |
1213 1.84 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1214 1.84 christos s//\1/
1215 1.84 christos q
1216 1.84 christos }
1217 1.84 christos /^X\(\/\/\)[^/].*/{
1218 1.84 christos s//\1/
1219 1.84 christos q
1220 1.84 christos }
1221 1.84 christos /^X\(\/\/\)$/{
1222 1.84 christos s//\1/
1223 1.84 christos q
1224 1.84 christos }
1225 1.84 christos /^X\(\/\).*/{
1226 1.84 christos s//\1/
1227 1.84 christos q
1228 1.84 christos }
1229 1.84 christos s/.*/./; q'`
1230 1.1 tv srcdir=$ac_confdir
1231 1.84 christos if test ! -r "$srcdir/$ac_unique_file"; then
1232 1.1 tv srcdir=..
1233 1.1 tv fi
1234 1.1 tv else
1235 1.1 tv ac_srcdir_defaulted=no
1236 1.1 tv fi
1237 1.84 christos if test ! -r "$srcdir/$ac_unique_file"; then
1238 1.84 christos test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1239 1.84 christos as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1240 1.84 christos fi
1241 1.108 christos ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1242 1.84 christos ac_abs_confdir=`(
1243 1.84 christos cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1244 1.84 christos pwd)`
1245 1.84 christos # When building in place, set srcdir=.
1246 1.84 christos if test "$ac_abs_confdir" = "$ac_pwd"; then
1247 1.84 christos srcdir=.
1248 1.84 christos fi
1249 1.84 christos # Remove unnecessary trailing slashes from srcdir.
1250 1.84 christos # Double slashes in file names in object file debugging info
1251 1.84 christos # mess up M-x gdb in Emacs.
1252 1.84 christos case $srcdir in
1253 1.84 christos */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1254 1.84 christos esac
1255 1.84 christos for ac_var in $ac_precious_vars; do
1256 1.84 christos eval ac_env_${ac_var}_set=\${${ac_var}+set}
1257 1.84 christos eval ac_env_${ac_var}_value=\$${ac_var}
1258 1.84 christos eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1259 1.84 christos eval ac_cv_env_${ac_var}_value=\$${ac_var}
1260 1.84 christos done
1261 1.1 tv
1262 1.1 tv #
1263 1.1 tv # Report the --help message.
1264 1.1 tv #
1265 1.1 tv if test "$ac_init_help" = "long"; then
1266 1.1 tv # Omit some internal or obsolete options to make the list less imposing.
1267 1.1 tv # This message is too long to be a string in the A/UX 3.1 sh.
1268 1.84 christos cat <<_ACEOF
1269 1.108 christos 'configure' configures libnbcompat noversion to adapt to many kinds of systems.
1270 1.1 tv
1271 1.1 tv Usage: $0 [OPTION]... [VAR=VALUE]...
1272 1.1 tv
1273 1.1 tv To assign environment variables (e.g., CC, CFLAGS...), specify them as
1274 1.1 tv VAR=VALUE. See below for descriptions of some of the useful variables.
1275 1.1 tv
1276 1.1 tv Defaults for the options are specified in brackets.
1277 1.1 tv
1278 1.1 tv Configuration:
1279 1.1 tv -h, --help display this help and exit
1280 1.1 tv --help=short display options specific to this package
1281 1.1 tv --help=recursive display the short help of all the included packages
1282 1.1 tv -V, --version display version information and exit
1283 1.108 christos -q, --quiet, --silent do not print 'checking ...' messages
1284 1.1 tv --cache-file=FILE cache test results in FILE [disabled]
1285 1.108 christos -C, --config-cache alias for '--cache-file=config.cache'
1286 1.1 tv -n, --no-create do not create output files
1287 1.108 christos --srcdir=DIR find the sources in DIR [configure dir or '..']
1288 1.1 tv
1289 1.1 tv Installation directories:
1290 1.1 tv --prefix=PREFIX install architecture-independent files in PREFIX
1291 1.66 tsutsui [$ac_default_prefix]
1292 1.1 tv --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1293 1.66 tsutsui [PREFIX]
1294 1.1 tv
1295 1.108 christos By default, 'make install' will install all the files in
1296 1.108 christos '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1297 1.108 christos an installation prefix other than '$ac_default_prefix' using '--prefix',
1298 1.108 christos for instance '--prefix=\$HOME'.
1299 1.1 tv
1300 1.1 tv For better control, use the options below.
1301 1.1 tv
1302 1.1 tv Fine tuning of the installation directories:
1303 1.84 christos --bindir=DIR user executables [EPREFIX/bin]
1304 1.84 christos --sbindir=DIR system admin executables [EPREFIX/sbin]
1305 1.84 christos --libexecdir=DIR program executables [EPREFIX/libexec]
1306 1.84 christos --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1307 1.84 christos --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1308 1.84 christos --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1309 1.108 christos --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1310 1.84 christos --libdir=DIR object code libraries [EPREFIX/lib]
1311 1.84 christos --includedir=DIR C header files [PREFIX/include]
1312 1.84 christos --oldincludedir=DIR C header files for non-gcc [/usr/include]
1313 1.84 christos --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1314 1.84 christos --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1315 1.84 christos --infodir=DIR info documentation [DATAROOTDIR/info]
1316 1.84 christos --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1317 1.84 christos --mandir=DIR man documentation [DATAROOTDIR/man]
1318 1.84 christos --docdir=DIR documentation root [DATAROOTDIR/doc/libnbcompat]
1319 1.84 christos --htmldir=DIR html documentation [DOCDIR]
1320 1.84 christos --dvidir=DIR dvi documentation [DOCDIR]
1321 1.84 christos --pdfdir=DIR pdf documentation [DOCDIR]
1322 1.84 christos --psdir=DIR ps documentation [DOCDIR]
1323 1.84 christos _ACEOF
1324 1.1 tv
1325 1.84 christos cat <<\_ACEOF
1326 1.84 christos _ACEOF
1327 1.1 tv fi
1328 1.1 tv
1329 1.1 tv if test -n "$ac_init_help"; then
1330 1.1 tv case $ac_init_help in
1331 1.1 tv short | recursive ) echo "Configuration of libnbcompat noversion:";;
1332 1.1 tv esac
1333 1.84 christos cat <<\_ACEOF
1334 1.1 tv
1335 1.1 tv Some influential environment variables:
1336 1.1 tv CC C compiler command
1337 1.1 tv CFLAGS C compiler flags
1338 1.1 tv LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1339 1.1 tv nonstandard directory <lib dir>
1340 1.84 christos LIBS libraries to pass to the linker, e.g. -l<library>
1341 1.84 christos CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1342 1.84 christos you have headers in a nonstandard directory <include dir>
1343 1.1 tv CPP C preprocessor
1344 1.1 tv
1345 1.108 christos Use these variables to override the choices made by 'configure' or to help
1346 1.1 tv it to find libraries and programs with nonstandard names/locations.
1347 1.1 tv
1348 1.41 salo Report bugs to <lib-bug-people@NetBSD.org>.
1349 1.84 christos _ACEOF
1350 1.84 christos ac_status=$?
1351 1.1 tv fi
1352 1.1 tv
1353 1.1 tv if test "$ac_init_help" = "recursive"; then
1354 1.1 tv # If there are subdirs, report their specific --help.
1355 1.84 christos for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1356 1.84 christos test -d "$ac_dir" ||
1357 1.84 christos { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1358 1.84 christos continue
1359 1.84 christos ac_builddir=.
1360 1.84 christos
1361 1.84 christos case "$ac_dir" in
1362 1.84 christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1363 1.84 christos *)
1364 1.108 christos ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1365 1.84 christos # A ".." for each directory in $ac_dir_suffix.
1366 1.108 christos ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1367 1.84 christos case $ac_top_builddir_sub in
1368 1.84 christos "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1369 1.84 christos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1370 1.84 christos esac ;;
1371 1.84 christos esac
1372 1.84 christos ac_abs_top_builddir=$ac_pwd
1373 1.84 christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
1374 1.84 christos # for backward compatibility:
1375 1.84 christos ac_top_builddir=$ac_top_build_prefix
1376 1.84 christos
1377 1.84 christos case $srcdir in
1378 1.84 christos .) # We are building in place.
1379 1.84 christos ac_srcdir=.
1380 1.84 christos ac_top_srcdir=$ac_top_builddir_sub
1381 1.84 christos ac_abs_top_srcdir=$ac_pwd ;;
1382 1.84 christos [\\/]* | ?:[\\/]* ) # Absolute name.
1383 1.84 christos ac_srcdir=$srcdir$ac_dir_suffix;
1384 1.84 christos ac_top_srcdir=$srcdir
1385 1.84 christos ac_abs_top_srcdir=$srcdir ;;
1386 1.84 christos *) # Relative name.
1387 1.84 christos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1388 1.84 christos ac_top_srcdir=$ac_top_build_prefix$srcdir
1389 1.84 christos ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1390 1.84 christos esac
1391 1.84 christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1392 1.1 tv
1393 1.84 christos cd "$ac_dir" || { ac_status=$?; continue; }
1394 1.108 christos # Check for configure.gnu first; this name is used for a wrapper for
1395 1.108 christos # Metaconfig's "Configure" on case-insensitive file systems.
1396 1.84 christos if test -f "$ac_srcdir/configure.gnu"; then
1397 1.84 christos echo &&
1398 1.84 christos $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1399 1.84 christos elif test -f "$ac_srcdir/configure"; then
1400 1.84 christos echo &&
1401 1.84 christos $SHELL "$ac_srcdir/configure" --help=recursive
1402 1.65 christos else
1403 1.108 christos printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1404 1.84 christos fi || ac_status=$?
1405 1.84 christos cd "$ac_pwd" || { ac_status=$?; break; }
1406 1.65 christos done
1407 1.1 tv fi
1408 1.1 tv
1409 1.84 christos test -n "$ac_init_help" && exit $ac_status
1410 1.1 tv if $ac_init_version; then
1411 1.84 christos cat <<\_ACEOF
1412 1.1 tv libnbcompat configure noversion
1413 1.108 christos generated by GNU Autoconf 2.72
1414 1.1 tv
1415 1.108 christos Copyright (C) 2023 Free Software Foundation, Inc.
1416 1.1 tv This configure script is free software; the Free Software Foundation
1417 1.1 tv gives unlimited permission to copy, distribute and modify it.
1418 1.84 christos _ACEOF
1419 1.84 christos exit
1420 1.1 tv fi
1421 1.1 tv
1422 1.84 christos ## ------------------------ ##
1423 1.84 christos ## Autoconf initialization. ##
1424 1.84 christos ## ------------------------ ##
1425 1.84 christos
1426 1.84 christos # ac_fn_c_try_compile LINENO
1427 1.84 christos # --------------------------
1428 1.84 christos # Try to compile conftest.$ac_ext, and return whether this succeeded.
1429 1.84 christos ac_fn_c_try_compile ()
1430 1.84 christos {
1431 1.84 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1432 1.108 christos rm -f conftest.$ac_objext conftest.beam
1433 1.84 christos if { { ac_try="$ac_compile"
1434 1.84 christos case "(($ac_try" in
1435 1.84 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1436 1.84 christos *) ac_try_echo=$ac_try;;
1437 1.84 christos esac
1438 1.84 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1439 1.108 christos printf "%s\n" "$ac_try_echo"; } >&5
1440 1.84 christos (eval "$ac_compile") 2>conftest.err
1441 1.84 christos ac_status=$?
1442 1.84 christos if test -s conftest.err; then
1443 1.84 christos grep -v '^ *+' conftest.err >conftest.er1
1444 1.84 christos cat conftest.er1 >&5
1445 1.84 christos mv -f conftest.er1 conftest.err
1446 1.84 christos fi
1447 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1448 1.84 christos test $ac_status = 0; } && {
1449 1.84 christos test -z "$ac_c_werror_flag" ||
1450 1.84 christos test ! -s conftest.err
1451 1.108 christos } && test -s conftest.$ac_objext
1452 1.108 christos then :
1453 1.84 christos ac_retval=0
1454 1.108 christos else case e in #(
1455 1.108 christos e) printf "%s\n" "$as_me: failed program was:" >&5
1456 1.84 christos sed 's/^/| /' conftest.$ac_ext >&5
1457 1.84 christos
1458 1.108 christos ac_retval=1 ;;
1459 1.108 christos esac
1460 1.84 christos fi
1461 1.84 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1462 1.84 christos as_fn_set_status $ac_retval
1463 1.84 christos
1464 1.84 christos } # ac_fn_c_try_compile
1465 1.84 christos
1466 1.84 christos # ac_fn_c_try_cpp LINENO
1467 1.84 christos # ----------------------
1468 1.84 christos # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1469 1.84 christos ac_fn_c_try_cpp ()
1470 1.84 christos {
1471 1.84 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1472 1.84 christos if { { ac_try="$ac_cpp conftest.$ac_ext"
1473 1.84 christos case "(($ac_try" in
1474 1.84 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1475 1.84 christos *) ac_try_echo=$ac_try;;
1476 1.84 christos esac
1477 1.84 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1478 1.108 christos printf "%s\n" "$ac_try_echo"; } >&5
1479 1.84 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1480 1.84 christos ac_status=$?
1481 1.84 christos if test -s conftest.err; then
1482 1.84 christos grep -v '^ *+' conftest.err >conftest.er1
1483 1.84 christos cat conftest.er1 >&5
1484 1.84 christos mv -f conftest.er1 conftest.err
1485 1.84 christos fi
1486 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1487 1.84 christos test $ac_status = 0; } > conftest.i && {
1488 1.84 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1489 1.84 christos test ! -s conftest.err
1490 1.108 christos }
1491 1.108 christos then :
1492 1.84 christos ac_retval=0
1493 1.108 christos else case e in #(
1494 1.108 christos e) printf "%s\n" "$as_me: failed program was:" >&5
1495 1.84 christos sed 's/^/| /' conftest.$ac_ext >&5
1496 1.84 christos
1497 1.108 christos ac_retval=1 ;;
1498 1.108 christos esac
1499 1.84 christos fi
1500 1.84 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1501 1.84 christos as_fn_set_status $ac_retval
1502 1.84 christos
1503 1.84 christos } # ac_fn_c_try_cpp
1504 1.84 christos
1505 1.108 christos # ac_fn_c_try_link LINENO
1506 1.108 christos # -----------------------
1507 1.108 christos # Try to link conftest.$ac_ext, and return whether this succeeded.
1508 1.108 christos ac_fn_c_try_link ()
1509 1.108 christos {
1510 1.108 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 1.108 christos rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1512 1.108 christos if { { ac_try="$ac_link"
1513 1.108 christos case "(($ac_try" in
1514 1.108 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 1.108 christos *) ac_try_echo=$ac_try;;
1516 1.108 christos esac
1517 1.108 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 1.108 christos printf "%s\n" "$ac_try_echo"; } >&5
1519 1.108 christos (eval "$ac_link") 2>conftest.err
1520 1.108 christos ac_status=$?
1521 1.108 christos if test -s conftest.err; then
1522 1.108 christos grep -v '^ *+' conftest.err >conftest.er1
1523 1.108 christos cat conftest.er1 >&5
1524 1.108 christos mv -f conftest.er1 conftest.err
1525 1.108 christos fi
1526 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 1.108 christos test $ac_status = 0; } && {
1528 1.108 christos test -z "$ac_c_werror_flag" ||
1529 1.108 christos test ! -s conftest.err
1530 1.108 christos } && test -s conftest$ac_exeext && {
1531 1.108 christos test "$cross_compiling" = yes ||
1532 1.108 christos test -x conftest$ac_exeext
1533 1.108 christos }
1534 1.108 christos then :
1535 1.108 christos ac_retval=0
1536 1.108 christos else case e in #(
1537 1.108 christos e) printf "%s\n" "$as_me: failed program was:" >&5
1538 1.108 christos sed 's/^/| /' conftest.$ac_ext >&5
1539 1.108 christos
1540 1.108 christos ac_retval=1 ;;
1541 1.108 christos esac
1542 1.108 christos fi
1543 1.108 christos # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1544 1.108 christos # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1545 1.108 christos # interfere with the next link command; also delete a directory that is
1546 1.108 christos # left behind by Apple's compiler. We do this before executing the actions.
1547 1.108 christos rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1548 1.108 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 1.108 christos as_fn_set_status $ac_retval
1550 1.108 christos
1551 1.108 christos } # ac_fn_c_try_link
1552 1.108 christos
1553 1.84 christos # ac_fn_c_try_run LINENO
1554 1.84 christos # ----------------------
1555 1.108 christos # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1556 1.108 christos # executables *can* be run.
1557 1.84 christos ac_fn_c_try_run ()
1558 1.84 christos {
1559 1.84 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 1.84 christos if { { ac_try="$ac_link"
1561 1.84 christos case "(($ac_try" in
1562 1.84 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 1.84 christos *) ac_try_echo=$ac_try;;
1564 1.84 christos esac
1565 1.84 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 1.108 christos printf "%s\n" "$ac_try_echo"; } >&5
1567 1.84 christos (eval "$ac_link") 2>&5
1568 1.84 christos ac_status=$?
1569 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 1.84 christos test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1571 1.84 christos { { case "(($ac_try" in
1572 1.84 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 1.84 christos *) ac_try_echo=$ac_try;;
1574 1.84 christos esac
1575 1.84 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 1.108 christos printf "%s\n" "$ac_try_echo"; } >&5
1577 1.84 christos (eval "$ac_try") 2>&5
1578 1.84 christos ac_status=$?
1579 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 1.108 christos test $ac_status = 0; }; }
1581 1.108 christos then :
1582 1.84 christos ac_retval=0
1583 1.108 christos else case e in #(
1584 1.108 christos e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1585 1.108 christos printf "%s\n" "$as_me: failed program was:" >&5
1586 1.84 christos sed 's/^/| /' conftest.$ac_ext >&5
1587 1.84 christos
1588 1.108 christos ac_retval=$ac_status ;;
1589 1.108 christos esac
1590 1.84 christos fi
1591 1.84 christos rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1592 1.84 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 1.84 christos as_fn_set_status $ac_retval
1594 1.84 christos
1595 1.84 christos } # ac_fn_c_try_run
1596 1.84 christos
1597 1.84 christos # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1598 1.84 christos # -------------------------------------------------------
1599 1.84 christos # Tests whether HEADER exists and can be compiled using the include files in
1600 1.84 christos # INCLUDES, setting the cache variable VAR accordingly.
1601 1.84 christos ac_fn_c_check_header_compile ()
1602 1.84 christos {
1603 1.84 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605 1.108 christos printf %s "checking for $2... " >&6; }
1606 1.108 christos if eval test \${$3+y}
1607 1.108 christos then :
1608 1.108 christos printf %s "(cached) " >&6
1609 1.108 christos else case e in #(
1610 1.108 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 1.84 christos /* end confdefs.h. */
1612 1.84 christos $4
1613 1.84 christos #include <$2>
1614 1.84 christos _ACEOF
1615 1.108 christos if ac_fn_c_try_compile "$LINENO"
1616 1.108 christos then :
1617 1.84 christos eval "$3=yes"
1618 1.108 christos else case e in #(
1619 1.108 christos e) eval "$3=no" ;;
1620 1.108 christos esac
1621 1.84 christos fi
1622 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1623 1.108 christos esac
1624 1.84 christos fi
1625 1.84 christos eval ac_res=\$$3
1626 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1627 1.108 christos printf "%s\n" "$ac_res" >&6; }
1628 1.84 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 1.84 christos
1630 1.84 christos } # ac_fn_c_check_header_compile
1631 1.84 christos
1632 1.84 christos # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1633 1.84 christos # -------------------------------------------
1634 1.84 christos # Tests whether TYPE exists after having included INCLUDES, setting cache
1635 1.84 christos # variable VAR accordingly.
1636 1.84 christos ac_fn_c_check_type ()
1637 1.84 christos {
1638 1.84 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 1.108 christos printf %s "checking for $2... " >&6; }
1641 1.108 christos if eval test \${$3+y}
1642 1.108 christos then :
1643 1.108 christos printf %s "(cached) " >&6
1644 1.108 christos else case e in #(
1645 1.108 christos e) eval "$3=no"
1646 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647 1.84 christos /* end confdefs.h. */
1648 1.84 christos $4
1649 1.84 christos int
1650 1.108 christos main (void)
1651 1.84 christos {
1652 1.84 christos if (sizeof ($2))
1653 1.84 christos return 0;
1654 1.84 christos ;
1655 1.84 christos return 0;
1656 1.84 christos }
1657 1.84 christos _ACEOF
1658 1.108 christos if ac_fn_c_try_compile "$LINENO"
1659 1.108 christos then :
1660 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 1.84 christos /* end confdefs.h. */
1662 1.84 christos $4
1663 1.84 christos int
1664 1.108 christos main (void)
1665 1.74 christos {
1666 1.84 christos if (sizeof (($2)))
1667 1.84 christos return 0;
1668 1.84 christos ;
1669 1.84 christos return 0;
1670 1.84 christos }
1671 1.84 christos _ACEOF
1672 1.108 christos if ac_fn_c_try_compile "$LINENO"
1673 1.108 christos then :
1674 1.84 christos
1675 1.108 christos else case e in #(
1676 1.108 christos e) eval "$3=yes" ;;
1677 1.108 christos esac
1678 1.84 christos fi
1679 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1680 1.84 christos fi
1681 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1682 1.108 christos esac
1683 1.84 christos fi
1684 1.84 christos eval ac_res=\$$3
1685 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 1.108 christos printf "%s\n" "$ac_res" >&6; }
1687 1.84 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 1.84 christos
1689 1.84 christos } # ac_fn_c_check_type
1690 1.74 christos
1691 1.84 christos # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1692 1.84 christos # ----------------------------------------------------
1693 1.84 christos # Tries to find if the field MEMBER exists in type AGGR, after including
1694 1.84 christos # INCLUDES, setting cache variable VAR accordingly.
1695 1.84 christos ac_fn_c_check_member ()
1696 1.84 christos {
1697 1.84 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1699 1.108 christos printf %s "checking for $2.$3... " >&6; }
1700 1.108 christos if eval test \${$4+y}
1701 1.108 christos then :
1702 1.108 christos printf %s "(cached) " >&6
1703 1.108 christos else case e in #(
1704 1.108 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 1.84 christos /* end confdefs.h. */
1706 1.84 christos $5
1707 1.84 christos int
1708 1.108 christos main (void)
1709 1.84 christos {
1710 1.84 christos static $2 ac_aggr;
1711 1.84 christos if (ac_aggr.$3)
1712 1.84 christos return 0;
1713 1.84 christos ;
1714 1.84 christos return 0;
1715 1.84 christos }
1716 1.84 christos _ACEOF
1717 1.108 christos if ac_fn_c_try_compile "$LINENO"
1718 1.108 christos then :
1719 1.84 christos eval "$4=yes"
1720 1.108 christos else case e in #(
1721 1.108 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 1.84 christos /* end confdefs.h. */
1723 1.84 christos $5
1724 1.84 christos int
1725 1.108 christos main (void)
1726 1.84 christos {
1727 1.84 christos static $2 ac_aggr;
1728 1.84 christos if (sizeof ac_aggr.$3)
1729 1.84 christos return 0;
1730 1.84 christos ;
1731 1.84 christos return 0;
1732 1.84 christos }
1733 1.84 christos _ACEOF
1734 1.108 christos if ac_fn_c_try_compile "$LINENO"
1735 1.108 christos then :
1736 1.84 christos eval "$4=yes"
1737 1.108 christos else case e in #(
1738 1.108 christos e) eval "$4=no" ;;
1739 1.108 christos esac
1740 1.84 christos fi
1741 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1742 1.108 christos esac
1743 1.84 christos fi
1744 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1745 1.108 christos esac
1746 1.84 christos fi
1747 1.84 christos eval ac_res=\$$4
1748 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 1.108 christos printf "%s\n" "$ac_res" >&6; }
1750 1.84 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 1.74 christos
1752 1.84 christos } # ac_fn_c_check_member
1753 1.1 tv
1754 1.108 christos # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1755 1.108 christos # ------------------------------------------------------------------
1756 1.84 christos # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1757 1.108 christos # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1758 1.108 christos ac_fn_check_decl ()
1759 1.84 christos {
1760 1.84 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 1.84 christos as_decl_name=`echo $2|sed 's/ *(.*//'`
1762 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1763 1.108 christos printf %s "checking whether $as_decl_name is declared... " >&6; }
1764 1.108 christos if eval test \${$3+y}
1765 1.108 christos then :
1766 1.108 christos printf %s "(cached) " >&6
1767 1.108 christos else case e in #(
1768 1.108 christos e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1769 1.108 christos eval ac_save_FLAGS=\$$6
1770 1.108 christos as_fn_append $6 " $5"
1771 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 1.84 christos /* end confdefs.h. */
1773 1.84 christos $4
1774 1.84 christos int
1775 1.108 christos main (void)
1776 1.84 christos {
1777 1.84 christos #ifndef $as_decl_name
1778 1.84 christos #ifdef __cplusplus
1779 1.84 christos (void) $as_decl_use;
1780 1.84 christos #else
1781 1.84 christos (void) $as_decl_name;
1782 1.84 christos #endif
1783 1.84 christos #endif
1784 1.1 tv
1785 1.84 christos ;
1786 1.84 christos return 0;
1787 1.84 christos }
1788 1.84 christos _ACEOF
1789 1.108 christos if ac_fn_c_try_compile "$LINENO"
1790 1.108 christos then :
1791 1.84 christos eval "$3=yes"
1792 1.108 christos else case e in #(
1793 1.108 christos e) eval "$3=no" ;;
1794 1.108 christos esac
1795 1.84 christos fi
1796 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1797 1.108 christos eval $6=\$ac_save_FLAGS
1798 1.108 christos ;;
1799 1.108 christos esac
1800 1.84 christos fi
1801 1.84 christos eval ac_res=\$$3
1802 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 1.108 christos printf "%s\n" "$ac_res" >&6; }
1804 1.84 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 1.1 tv
1806 1.108 christos } # ac_fn_check_decl
1807 1.1 tv
1808 1.84 christos # ac_fn_c_check_func LINENO FUNC VAR
1809 1.84 christos # ----------------------------------
1810 1.84 christos # Tests whether FUNC exists, setting the cache variable VAR accordingly
1811 1.84 christos ac_fn_c_check_func ()
1812 1.84 christos {
1813 1.84 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 1.108 christos printf %s "checking for $2... " >&6; }
1816 1.108 christos if eval test \${$3+y}
1817 1.108 christos then :
1818 1.108 christos printf %s "(cached) " >&6
1819 1.108 christos else case e in #(
1820 1.108 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 1.84 christos /* end confdefs.h. */
1822 1.84 christos /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1823 1.84 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
1824 1.84 christos #define $2 innocuous_$2
1825 1.84 christos
1826 1.84 christos /* System header to define __stub macros and hopefully few prototypes,
1827 1.108 christos which can conflict with char $2 (void); below. */
1828 1.84 christos
1829 1.108 christos #include <limits.h>
1830 1.84 christos #undef $2
1831 1.84 christos
1832 1.84 christos /* Override any GCC internal prototype to avoid an error.
1833 1.84 christos Use char because int might match the return type of a GCC
1834 1.84 christos builtin and then its argument prototype would still apply. */
1835 1.84 christos #ifdef __cplusplus
1836 1.84 christos extern "C"
1837 1.84 christos #endif
1838 1.108 christos char $2 (void);
1839 1.84 christos /* The GNU C library defines this for functions which it implements
1840 1.84 christos to always fail with ENOSYS. Some functions are actually named
1841 1.84 christos something starting with __ and the normal name is an alias. */
1842 1.84 christos #if defined __stub_$2 || defined __stub___$2
1843 1.84 christos choke me
1844 1.84 christos #endif
1845 1.84 christos
1846 1.84 christos int
1847 1.108 christos main (void)
1848 1.84 christos {
1849 1.84 christos return $2 ();
1850 1.84 christos ;
1851 1.84 christos return 0;
1852 1.84 christos }
1853 1.84 christos _ACEOF
1854 1.108 christos if ac_fn_c_try_link "$LINENO"
1855 1.108 christos then :
1856 1.84 christos eval "$3=yes"
1857 1.108 christos else case e in #(
1858 1.108 christos e) eval "$3=no" ;;
1859 1.108 christos esac
1860 1.84 christos fi
1861 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
1862 1.108 christos conftest$ac_exeext conftest.$ac_ext ;;
1863 1.108 christos esac
1864 1.84 christos fi
1865 1.84 christos eval ac_res=\$$3
1866 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 1.108 christos printf "%s\n" "$ac_res" >&6; }
1868 1.84 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 1.84 christos
1870 1.84 christos } # ac_fn_c_check_func
1871 1.108 christos ac_configure_args_raw=
1872 1.108 christos for ac_arg
1873 1.108 christos do
1874 1.108 christos case $ac_arg in
1875 1.108 christos *\'*)
1876 1.108 christos ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1877 1.108 christos esac
1878 1.108 christos as_fn_append ac_configure_args_raw " '$ac_arg'"
1879 1.108 christos done
1880 1.108 christos
1881 1.108 christos case $ac_configure_args_raw in
1882 1.108 christos *$as_nl*)
1883 1.108 christos ac_safe_unquote= ;;
1884 1.108 christos *)
1885 1.108 christos ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1886 1.108 christos ac_unsafe_a="$ac_unsafe_z#~"
1887 1.108 christos ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1888 1.108 christos ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1889 1.108 christos esac
1890 1.108 christos
1891 1.84 christos cat >config.log <<_ACEOF
1892 1.84 christos This file contains any messages produced by compilers while
1893 1.84 christos running configure, to aid debugging if configure makes a mistake.
1894 1.84 christos
1895 1.84 christos It was created by libnbcompat $as_me noversion, which was
1896 1.108 christos generated by GNU Autoconf 2.72. Invocation command line was
1897 1.84 christos
1898 1.108 christos $ $0$ac_configure_args_raw
1899 1.84 christos
1900 1.84 christos _ACEOF
1901 1.84 christos exec 5>>config.log
1902 1.84 christos {
1903 1.84 christos cat <<_ASUNAME
1904 1.84 christos ## --------- ##
1905 1.84 christos ## Platform. ##
1906 1.84 christos ## --------- ##
1907 1.84 christos
1908 1.84 christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1909 1.84 christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
1910 1.84 christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
1911 1.84 christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
1912 1.84 christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
1913 1.84 christos
1914 1.84 christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1915 1.84 christos /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1916 1.84 christos
1917 1.84 christos /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1918 1.84 christos /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1919 1.84 christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1920 1.84 christos /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1921 1.84 christos /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1922 1.84 christos /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1923 1.84 christos /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1924 1.84 christos
1925 1.84 christos _ASUNAME
1926 1.84 christos
1927 1.84 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 1.84 christos for as_dir in $PATH
1929 1.84 christos do
1930 1.84 christos IFS=$as_save_IFS
1931 1.108 christos case $as_dir in #(((
1932 1.108 christos '') as_dir=./ ;;
1933 1.108 christos */) ;;
1934 1.108 christos *) as_dir=$as_dir/ ;;
1935 1.108 christos esac
1936 1.108 christos printf "%s\n" "PATH: $as_dir"
1937 1.84 christos done
1938 1.84 christos IFS=$as_save_IFS
1939 1.84 christos
1940 1.84 christos } >&5
1941 1.84 christos
1942 1.84 christos cat >&5 <<_ACEOF
1943 1.84 christos
1944 1.84 christos
1945 1.84 christos ## ----------- ##
1946 1.84 christos ## Core tests. ##
1947 1.84 christos ## ----------- ##
1948 1.84 christos
1949 1.84 christos _ACEOF
1950 1.66 tsutsui
1951 1.1 tv
1952 1.76 pooka # Keep a trace of the command line.
1953 1.76 pooka # Strip out --no-create and --no-recursion so they do not pile up.
1954 1.84 christos # Strip out --silent because we don't want to record it for future runs.
1955 1.76 pooka # Also quote any args containing shell meta-characters.
1956 1.84 christos # Make two passes to allow for proper duplicate-argument suppression.
1957 1.76 pooka ac_configure_args=
1958 1.84 christos ac_configure_args0=
1959 1.84 christos ac_configure_args1=
1960 1.84 christos ac_must_keep_next=false
1961 1.84 christos for ac_pass in 1 2
1962 1.76 pooka do
1963 1.84 christos for ac_arg
1964 1.84 christos do
1965 1.84 christos case $ac_arg in
1966 1.84 christos -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1967 1.84 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1968 1.84 christos | -silent | --silent | --silen | --sile | --sil)
1969 1.84 christos continue ;;
1970 1.84 christos *\'*)
1971 1.108 christos ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1972 1.84 christos esac
1973 1.84 christos case $ac_pass in
1974 1.84 christos 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1975 1.84 christos 2)
1976 1.84 christos as_fn_append ac_configure_args1 " '$ac_arg'"
1977 1.84 christos if test $ac_must_keep_next = true; then
1978 1.84 christos ac_must_keep_next=false # Got value, back to normal.
1979 1.84 christos else
1980 1.84 christos case $ac_arg in
1981 1.84 christos *=* | --config-cache | -C | -disable-* | --disable-* \
1982 1.84 christos | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1983 1.84 christos | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1984 1.84 christos | -with-* | --with-* | -without-* | --without-* | --x)
1985 1.84 christos case "$ac_configure_args0 " in
1986 1.84 christos "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1987 1.84 christos esac
1988 1.84 christos ;;
1989 1.84 christos -* ) ac_must_keep_next=true ;;
1990 1.84 christos esac
1991 1.84 christos fi
1992 1.84 christos as_fn_append ac_configure_args " '$ac_arg'"
1993 1.84 christos ;;
1994 1.84 christos esac
1995 1.84 christos done
1996 1.1 tv done
1997 1.84 christos { ac_configure_args0=; unset ac_configure_args0;}
1998 1.84 christos { ac_configure_args1=; unset ac_configure_args1;}
1999 1.1 tv
2000 1.1 tv # When interrupted or exit'd, cleanup temporary files, and complete
2001 1.1 tv # config.log. We remove comments because anyway the quotes in there
2002 1.1 tv # would cause problems or look ugly.
2003 1.84 christos # WARNING: Use '\'' to represent an apostrophe within the trap.
2004 1.84 christos # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2005 1.1 tv trap 'exit_status=$?
2006 1.108 christos # Sanitize IFS.
2007 1.108 christos IFS=" "" $as_nl"
2008 1.1 tv # Save into config.log some information that might help in debugging.
2009 1.84 christos {
2010 1.84 christos echo
2011 1.84 christos
2012 1.108 christos printf "%s\n" "## ---------------- ##
2013 1.84 christos ## Cache variables. ##
2014 1.84 christos ## ---------------- ##"
2015 1.84 christos echo
2016 1.84 christos # The following way of writing the cache mishandles newlines in values,
2017 1.84 christos (
2018 1.84 christos for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2019 1.84 christos eval ac_val=\$$ac_var
2020 1.84 christos case $ac_val in #(
2021 1.84 christos *${as_nl}*)
2022 1.84 christos case $ac_var in #(
2023 1.108 christos *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2024 1.108 christos printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2025 1.84 christos esac
2026 1.84 christos case $ac_var in #(
2027 1.84 christos _ | IFS | as_nl) ;; #(
2028 1.84 christos BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2029 1.84 christos *) { eval $ac_var=; unset $ac_var;} ;;
2030 1.84 christos esac ;;
2031 1.84 christos esac
2032 1.84 christos done
2033 1.1 tv (set) 2>&1 |
2034 1.84 christos case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2035 1.84 christos *${as_nl}ac_space=\ *)
2036 1.1 tv sed -n \
2037 1.84 christos "s/'\''/'\''\\\\'\'''\''/g;
2038 1.84 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2039 1.84 christos ;; #(
2040 1.1 tv *)
2041 1.84 christos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2042 1.1 tv ;;
2043 1.84 christos esac |
2044 1.84 christos sort
2045 1.84 christos )
2046 1.84 christos echo
2047 1.84 christos
2048 1.108 christos printf "%s\n" "## ----------------- ##
2049 1.84 christos ## Output variables. ##
2050 1.84 christos ## ----------------- ##"
2051 1.84 christos echo
2052 1.84 christos for ac_var in $ac_subst_vars
2053 1.84 christos do
2054 1.84 christos eval ac_val=\$$ac_var
2055 1.84 christos case $ac_val in
2056 1.108 christos *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057 1.84 christos esac
2058 1.108 christos printf "%s\n" "$ac_var='\''$ac_val'\''"
2059 1.84 christos done | sort
2060 1.84 christos echo
2061 1.84 christos
2062 1.84 christos if test -n "$ac_subst_files"; then
2063 1.108 christos printf "%s\n" "## ------------------- ##
2064 1.84 christos ## File substitutions. ##
2065 1.84 christos ## ------------------- ##"
2066 1.84 christos echo
2067 1.84 christos for ac_var in $ac_subst_files
2068 1.84 christos do
2069 1.84 christos eval ac_val=\$$ac_var
2070 1.84 christos case $ac_val in
2071 1.108 christos *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 1.84 christos esac
2073 1.108 christos printf "%s\n" "$ac_var='\''$ac_val'\''"
2074 1.84 christos done | sort
2075 1.84 christos echo
2076 1.84 christos fi
2077 1.84 christos
2078 1.84 christos if test -s confdefs.h; then
2079 1.108 christos printf "%s\n" "## ----------- ##
2080 1.84 christos ## confdefs.h. ##
2081 1.84 christos ## ----------- ##"
2082 1.84 christos echo
2083 1.84 christos cat confdefs.h
2084 1.84 christos echo
2085 1.84 christos fi
2086 1.84 christos test "$ac_signal" != 0 &&
2087 1.108 christos printf "%s\n" "$as_me: caught signal $ac_signal"
2088 1.108 christos printf "%s\n" "$as_me: exit $exit_status"
2089 1.84 christos } >&5
2090 1.84 christos rm -f core *.core core.conftest.* &&
2091 1.84 christos rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2092 1.1 tv exit $exit_status
2093 1.84 christos ' 0
2094 1.1 tv for ac_signal in 1 2 13 15; do
2095 1.84 christos trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2096 1.1 tv done
2097 1.1 tv ac_signal=0
2098 1.1 tv
2099 1.1 tv # confdefs.h avoids OS command line length limits that DEFS can exceed.
2100 1.84 christos rm -f -r conftest* confdefs.h
2101 1.84 christos
2102 1.108 christos printf "%s\n" "/* confdefs.h */" > confdefs.h
2103 1.84 christos
2104 1.84 christos # Predefined preprocessor variables.
2105 1.84 christos
2106 1.108 christos printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2107 1.84 christos
2108 1.108 christos printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2109 1.84 christos
2110 1.108 christos printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2111 1.84 christos
2112 1.108 christos printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2113 1.84 christos
2114 1.108 christos printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2115 1.84 christos
2116 1.108 christos printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2117 1.84 christos
2118 1.1 tv
2119 1.1 tv # Let the site file select an alternate cache file if it wants to.
2120 1.84 christos # Prefer an explicitly selected file to automatically selected ones.
2121 1.84 christos if test -n "$CONFIG_SITE"; then
2122 1.108 christos ac_site_files="$CONFIG_SITE"
2123 1.84 christos elif test "x$prefix" != xNONE; then
2124 1.108 christos ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2125 1.84 christos else
2126 1.108 christos ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2127 1.1 tv fi
2128 1.108 christos
2129 1.108 christos for ac_site_file in $ac_site_files
2130 1.84 christos do
2131 1.108 christos case $ac_site_file in #(
2132 1.108 christos */*) :
2133 1.108 christos ;; #(
2134 1.108 christos *) :
2135 1.108 christos ac_site_file=./$ac_site_file ;;
2136 1.108 christos esac
2137 1.108 christos if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2138 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139 1.108 christos printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2140 1.84 christos sed 's/^/| /' "$ac_site_file" >&5
2141 1.84 christos . "$ac_site_file" \
2142 1.108 christos || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2143 1.108 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2144 1.84 christos as_fn_error $? "failed to load site script $ac_site_file
2145 1.108 christos See 'config.log' for more details" "$LINENO" 5; }
2146 1.1 tv fi
2147 1.1 tv done
2148 1.1 tv
2149 1.1 tv if test -r "$cache_file"; then
2150 1.84 christos # Some versions of bash will fail to source /dev/null (special files
2151 1.84 christos # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2152 1.84 christos if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2153 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154 1.108 christos printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2155 1.1 tv case $cache_file in
2156 1.84 christos [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157 1.84 christos *) . "./$cache_file";;
2158 1.1 tv esac
2159 1.1 tv fi
2160 1.1 tv else
2161 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162 1.108 christos printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2163 1.1 tv >$cache_file
2164 1.1 tv fi
2165 1.1 tv
2166 1.108 christos # Test code for whether the C compiler supports C89 (global declarations)
2167 1.108 christos ac_c_conftest_c89_globals='
2168 1.108 christos /* Does the compiler advertise C89 conformance?
2169 1.108 christos Do not test the value of __STDC__, because some compilers set it to 0
2170 1.108 christos while being otherwise adequately conformant. */
2171 1.108 christos #if !defined __STDC__
2172 1.108 christos # error "Compiler does not advertise C89 conformance"
2173 1.108 christos #endif
2174 1.108 christos
2175 1.108 christos #include <stddef.h>
2176 1.108 christos #include <stdarg.h>
2177 1.108 christos struct stat;
2178 1.108 christos /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2179 1.108 christos struct buf { int x; };
2180 1.108 christos struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2181 1.108 christos static char *e (char **p, int i)
2182 1.108 christos {
2183 1.108 christos return p[i];
2184 1.108 christos }
2185 1.108 christos static char *f (char * (*g) (char **, int), char **p, ...)
2186 1.108 christos {
2187 1.108 christos char *s;
2188 1.108 christos va_list v;
2189 1.108 christos va_start (v,p);
2190 1.108 christos s = g (p, va_arg (v,int));
2191 1.108 christos va_end (v);
2192 1.108 christos return s;
2193 1.108 christos }
2194 1.108 christos
2195 1.108 christos /* C89 style stringification. */
2196 1.108 christos #define noexpand_stringify(a) #a
2197 1.108 christos const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2198 1.108 christos
2199 1.108 christos /* C89 style token pasting. Exercises some of the corner cases that
2200 1.108 christos e.g. old MSVC gets wrong, but not very hard. */
2201 1.108 christos #define noexpand_concat(a,b) a##b
2202 1.108 christos #define expand_concat(a,b) noexpand_concat(a,b)
2203 1.108 christos extern int vA;
2204 1.108 christos extern int vbee;
2205 1.108 christos #define aye A
2206 1.108 christos #define bee B
2207 1.108 christos int *pvA = &expand_concat(v,aye);
2208 1.108 christos int *pvbee = &noexpand_concat(v,bee);
2209 1.108 christos
2210 1.108 christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2211 1.108 christos function prototypes and stuff, but not \xHH hex character constants.
2212 1.108 christos These do not provoke an error unfortunately, instead are silently treated
2213 1.108 christos as an "x". The following induces an error, until -std is added to get
2214 1.108 christos proper ANSI mode. Curiously \x00 != x always comes out true, for an
2215 1.108 christos array size at least. It is necessary to write \x00 == 0 to get something
2216 1.108 christos that is true only with -std. */
2217 1.108 christos int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2218 1.108 christos
2219 1.108 christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2220 1.108 christos inside strings and character constants. */
2221 1.108 christos #define FOO(x) '\''x'\''
2222 1.108 christos int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2223 1.108 christos
2224 1.108 christos int test (int i, double x);
2225 1.108 christos struct s1 {int (*f) (int a);};
2226 1.108 christos struct s2 {int (*f) (double a);};
2227 1.108 christos int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2228 1.108 christos int, int);'
2229 1.108 christos
2230 1.108 christos # Test code for whether the C compiler supports C89 (body of main).
2231 1.108 christos ac_c_conftest_c89_main='
2232 1.108 christos ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2233 1.108 christos '
2234 1.108 christos
2235 1.108 christos # Test code for whether the C compiler supports C99 (global declarations)
2236 1.108 christos ac_c_conftest_c99_globals='
2237 1.108 christos /* Does the compiler advertise C99 conformance? */
2238 1.108 christos #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2239 1.108 christos # error "Compiler does not advertise C99 conformance"
2240 1.108 christos #endif
2241 1.108 christos
2242 1.108 christos // See if C++-style comments work.
2243 1.108 christos
2244 1.108 christos #include <stdbool.h>
2245 1.108 christos extern int puts (const char *);
2246 1.108 christos extern int printf (const char *, ...);
2247 1.108 christos extern int dprintf (int, const char *, ...);
2248 1.108 christos extern void *malloc (size_t);
2249 1.108 christos extern void free (void *);
2250 1.108 christos
2251 1.108 christos // Check varargs macros. These examples are taken from C99 6.10.3.5.
2252 1.108 christos // dprintf is used instead of fprintf to avoid needing to declare
2253 1.108 christos // FILE and stderr.
2254 1.108 christos #define debug(...) dprintf (2, __VA_ARGS__)
2255 1.108 christos #define showlist(...) puts (#__VA_ARGS__)
2256 1.108 christos #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2257 1.108 christos static void
2258 1.108 christos test_varargs_macros (void)
2259 1.108 christos {
2260 1.108 christos int x = 1234;
2261 1.108 christos int y = 5678;
2262 1.108 christos debug ("Flag");
2263 1.108 christos debug ("X = %d\n", x);
2264 1.108 christos showlist (The first, second, and third items.);
2265 1.108 christos report (x>y, "x is %d but y is %d", x, y);
2266 1.108 christos }
2267 1.108 christos
2268 1.108 christos // Check long long types.
2269 1.108 christos #define BIG64 18446744073709551615ull
2270 1.108 christos #define BIG32 4294967295ul
2271 1.108 christos #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2272 1.108 christos #if !BIG_OK
2273 1.108 christos #error "your preprocessor is broken"
2274 1.108 christos #endif
2275 1.108 christos #if BIG_OK
2276 1.108 christos #else
2277 1.108 christos #error "your preprocessor is broken"
2278 1.108 christos #endif
2279 1.108 christos static long long int bignum = -9223372036854775807LL;
2280 1.108 christos static unsigned long long int ubignum = BIG64;
2281 1.108 christos
2282 1.108 christos struct incomplete_array
2283 1.108 christos {
2284 1.108 christos int datasize;
2285 1.108 christos double data[];
2286 1.108 christos };
2287 1.108 christos
2288 1.108 christos struct named_init {
2289 1.108 christos int number;
2290 1.108 christos const wchar_t *name;
2291 1.108 christos double average;
2292 1.108 christos };
2293 1.108 christos
2294 1.108 christos typedef const char *ccp;
2295 1.108 christos
2296 1.108 christos static inline int
2297 1.108 christos test_restrict (ccp restrict text)
2298 1.108 christos {
2299 1.108 christos // Iterate through items via the restricted pointer.
2300 1.108 christos // Also check for declarations in for loops.
2301 1.108 christos for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2302 1.108 christos continue;
2303 1.108 christos return 0;
2304 1.108 christos }
2305 1.108 christos
2306 1.108 christos // Check varargs and va_copy.
2307 1.108 christos static bool
2308 1.108 christos test_varargs (const char *format, ...)
2309 1.108 christos {
2310 1.108 christos va_list args;
2311 1.108 christos va_start (args, format);
2312 1.108 christos va_list args_copy;
2313 1.108 christos va_copy (args_copy, args);
2314 1.108 christos
2315 1.108 christos const char *str = "";
2316 1.108 christos int number = 0;
2317 1.108 christos float fnumber = 0;
2318 1.108 christos
2319 1.108 christos while (*format)
2320 1.108 christos {
2321 1.108 christos switch (*format++)
2322 1.108 christos {
2323 1.108 christos case '\''s'\'': // string
2324 1.108 christos str = va_arg (args_copy, const char *);
2325 1.108 christos break;
2326 1.108 christos case '\''d'\'': // int
2327 1.108 christos number = va_arg (args_copy, int);
2328 1.108 christos break;
2329 1.108 christos case '\''f'\'': // float
2330 1.108 christos fnumber = va_arg (args_copy, double);
2331 1.108 christos break;
2332 1.108 christos default:
2333 1.108 christos break;
2334 1.108 christos }
2335 1.108 christos }
2336 1.108 christos va_end (args_copy);
2337 1.108 christos va_end (args);
2338 1.108 christos
2339 1.108 christos return *str && number && fnumber;
2340 1.108 christos }
2341 1.108 christos '
2342 1.108 christos
2343 1.108 christos # Test code for whether the C compiler supports C99 (body of main).
2344 1.108 christos ac_c_conftest_c99_main='
2345 1.108 christos // Check bool.
2346 1.108 christos _Bool success = false;
2347 1.108 christos success |= (argc != 0);
2348 1.108 christos
2349 1.108 christos // Check restrict.
2350 1.108 christos if (test_restrict ("String literal") == 0)
2351 1.108 christos success = true;
2352 1.108 christos char *restrict newvar = "Another string";
2353 1.108 christos
2354 1.108 christos // Check varargs.
2355 1.108 christos success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2356 1.108 christos test_varargs_macros ();
2357 1.108 christos
2358 1.108 christos // Check flexible array members.
2359 1.108 christos struct incomplete_array *ia =
2360 1.108 christos malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2361 1.108 christos ia->datasize = 10;
2362 1.108 christos for (int i = 0; i < ia->datasize; ++i)
2363 1.108 christos ia->data[i] = i * 1.234;
2364 1.108 christos // Work around memory leak warnings.
2365 1.108 christos free (ia);
2366 1.108 christos
2367 1.108 christos // Check named initializers.
2368 1.108 christos struct named_init ni = {
2369 1.108 christos .number = 34,
2370 1.108 christos .name = L"Test wide string",
2371 1.108 christos .average = 543.34343,
2372 1.108 christos };
2373 1.108 christos
2374 1.108 christos ni.number = 58;
2375 1.108 christos
2376 1.108 christos int dynamic_array[ni.number];
2377 1.108 christos dynamic_array[0] = argv[0][0];
2378 1.108 christos dynamic_array[ni.number - 1] = 543;
2379 1.108 christos
2380 1.108 christos // work around unused variable warnings
2381 1.108 christos ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2382 1.108 christos || dynamic_array[ni.number - 1] != 543);
2383 1.108 christos '
2384 1.108 christos
2385 1.108 christos # Test code for whether the C compiler supports C11 (global declarations)
2386 1.108 christos ac_c_conftest_c11_globals='
2387 1.108 christos /* Does the compiler advertise C11 conformance? */
2388 1.108 christos #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2389 1.108 christos # error "Compiler does not advertise C11 conformance"
2390 1.108 christos #endif
2391 1.108 christos
2392 1.108 christos // Check _Alignas.
2393 1.108 christos char _Alignas (double) aligned_as_double;
2394 1.108 christos char _Alignas (0) no_special_alignment;
2395 1.108 christos extern char aligned_as_int;
2396 1.108 christos char _Alignas (0) _Alignas (int) aligned_as_int;
2397 1.108 christos
2398 1.108 christos // Check _Alignof.
2399 1.108 christos enum
2400 1.108 christos {
2401 1.108 christos int_alignment = _Alignof (int),
2402 1.108 christos int_array_alignment = _Alignof (int[100]),
2403 1.108 christos char_alignment = _Alignof (char)
2404 1.108 christos };
2405 1.108 christos _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2406 1.108 christos
2407 1.108 christos // Check _Noreturn.
2408 1.108 christos int _Noreturn does_not_return (void) { for (;;) continue; }
2409 1.108 christos
2410 1.108 christos // Check _Static_assert.
2411 1.108 christos struct test_static_assert
2412 1.108 christos {
2413 1.108 christos int x;
2414 1.108 christos _Static_assert (sizeof (int) <= sizeof (long int),
2415 1.108 christos "_Static_assert does not work in struct");
2416 1.108 christos long int y;
2417 1.108 christos };
2418 1.108 christos
2419 1.108 christos // Check UTF-8 literals.
2420 1.108 christos #define u8 syntax error!
2421 1.108 christos char const utf8_literal[] = u8"happens to be ASCII" "another string";
2422 1.108 christos
2423 1.108 christos // Check duplicate typedefs.
2424 1.108 christos typedef long *long_ptr;
2425 1.108 christos typedef long int *long_ptr;
2426 1.108 christos typedef long_ptr long_ptr;
2427 1.108 christos
2428 1.108 christos // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2429 1.108 christos struct anonymous
2430 1.108 christos {
2431 1.108 christos union {
2432 1.108 christos struct { int i; int j; };
2433 1.108 christos struct { int k; long int l; } w;
2434 1.108 christos };
2435 1.108 christos int m;
2436 1.108 christos } v1;
2437 1.108 christos '
2438 1.108 christos
2439 1.108 christos # Test code for whether the C compiler supports C11 (body of main).
2440 1.108 christos ac_c_conftest_c11_main='
2441 1.108 christos _Static_assert ((offsetof (struct anonymous, i)
2442 1.108 christos == offsetof (struct anonymous, w.k)),
2443 1.108 christos "Anonymous union alignment botch");
2444 1.108 christos v1.i = 2;
2445 1.108 christos v1.w.k = 5;
2446 1.108 christos ok |= v1.i != 5;
2447 1.108 christos '
2448 1.108 christos
2449 1.108 christos # Test code for whether the C compiler supports C11 (complete).
2450 1.108 christos ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2451 1.108 christos ${ac_c_conftest_c99_globals}
2452 1.108 christos ${ac_c_conftest_c11_globals}
2453 1.108 christos
2454 1.108 christos int
2455 1.108 christos main (int argc, char **argv)
2456 1.108 christos {
2457 1.108 christos int ok = 0;
2458 1.108 christos ${ac_c_conftest_c89_main}
2459 1.108 christos ${ac_c_conftest_c99_main}
2460 1.108 christos ${ac_c_conftest_c11_main}
2461 1.108 christos return ok;
2462 1.108 christos }
2463 1.108 christos "
2464 1.108 christos
2465 1.108 christos # Test code for whether the C compiler supports C99 (complete).
2466 1.108 christos ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2467 1.108 christos ${ac_c_conftest_c99_globals}
2468 1.108 christos
2469 1.108 christos int
2470 1.108 christos main (int argc, char **argv)
2471 1.108 christos {
2472 1.108 christos int ok = 0;
2473 1.108 christos ${ac_c_conftest_c89_main}
2474 1.108 christos ${ac_c_conftest_c99_main}
2475 1.108 christos return ok;
2476 1.108 christos }
2477 1.108 christos "
2478 1.108 christos
2479 1.108 christos # Test code for whether the C compiler supports C89 (complete).
2480 1.108 christos ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2481 1.108 christos
2482 1.108 christos int
2483 1.108 christos main (int argc, char **argv)
2484 1.108 christos {
2485 1.108 christos int ok = 0;
2486 1.108 christos ${ac_c_conftest_c89_main}
2487 1.108 christos return ok;
2488 1.108 christos }
2489 1.108 christos "
2490 1.108 christos
2491 1.108 christos as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2492 1.108 christos as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2493 1.108 christos as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2494 1.108 christos as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2495 1.108 christos as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2496 1.108 christos as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2497 1.108 christos as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2498 1.108 christos as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2499 1.108 christos as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2500 1.1 tv # Check that the precious variables saved in the cache have kept the same
2501 1.1 tv # value.
2502 1.1 tv ac_cache_corrupted=false
2503 1.84 christos for ac_var in $ac_precious_vars; do
2504 1.1 tv eval ac_old_set=\$ac_cv_env_${ac_var}_set
2505 1.1 tv eval ac_new_set=\$ac_env_${ac_var}_set
2506 1.84 christos eval ac_old_val=\$ac_cv_env_${ac_var}_value
2507 1.84 christos eval ac_new_val=\$ac_env_${ac_var}_value
2508 1.1 tv case $ac_old_set,$ac_new_set in
2509 1.1 tv set,)
2510 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2511 1.108 christos printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2512 1.1 tv ac_cache_corrupted=: ;;
2513 1.1 tv ,set)
2514 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2515 1.108 christos printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2516 1.1 tv ac_cache_corrupted=: ;;
2517 1.1 tv ,);;
2518 1.1 tv *)
2519 1.1 tv if test "x$ac_old_val" != "x$ac_new_val"; then
2520 1.84 christos # differences in whitespace do not lead to failure.
2521 1.84 christos ac_old_val_w=`echo x $ac_old_val`
2522 1.84 christos ac_new_val_w=`echo x $ac_new_val`
2523 1.84 christos if test "$ac_old_val_w" != "$ac_new_val_w"; then
2524 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2525 1.108 christos printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2526 1.84 christos ac_cache_corrupted=:
2527 1.84 christos else
2528 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2529 1.108 christos printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2530 1.84 christos eval $ac_var=\$ac_old_val
2531 1.84 christos fi
2532 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2533 1.108 christos printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2534 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2535 1.108 christos printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2536 1.1 tv fi;;
2537 1.1 tv esac
2538 1.84 christos # Pass precious variables to config.status.
2539 1.1 tv if test "$ac_new_set" = set; then
2540 1.1 tv case $ac_new_val in
2541 1.108 christos *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2542 1.84 christos *) ac_arg=$ac_var=$ac_new_val ;;
2543 1.84 christos esac
2544 1.84 christos case " $ac_configure_args " in
2545 1.84 christos *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2546 1.84 christos *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2547 1.1 tv esac
2548 1.1 tv fi
2549 1.1 tv done
2550 1.1 tv if $ac_cache_corrupted; then
2551 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2552 1.108 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2553 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2554 1.108 christos printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2555 1.108 christos as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2556 1.108 christos and start over" "$LINENO" 5
2557 1.84 christos fi
2558 1.84 christos ## -------------------- ##
2559 1.84 christos ## Main body of script. ##
2560 1.84 christos ## -------------------- ##
2561 1.1 tv
2562 1.1 tv ac_ext=c
2563 1.1 tv ac_cpp='$CPP $CPPFLAGS'
2564 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
2567 1.1 tv
2568 1.1 tv
2569 1.63 apb ac_config_headers="$ac_config_headers nbtool_config.h"
2570 1.1 tv
2571 1.63 apb ac_config_files="$ac_config_files defs.mk"
2572 1.1 tv
2573 1.84 christos
2574 1.101 lukem
2575 1.101 lukem
2576 1.102 lukem
2577 1.102 lukem
2578 1.57 wiz # Autoheader header and footer
2579 1.57 wiz
2580 1.84 christos
2581 1.84 christos
2582 1.84 christos
2583 1.20 bjh21
2584 1.108 christos
2585 1.108 christos
2586 1.108 christos
2587 1.108 christos
2588 1.108 christos
2589 1.108 christos
2590 1.108 christos
2591 1.108 christos
2592 1.108 christos
2593 1.1 tv ac_ext=c
2594 1.1 tv ac_cpp='$CPP $CPPFLAGS'
2595 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598 1.1 tv if test -n "$ac_tool_prefix"; then
2599 1.1 tv # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2600 1.1 tv set dummy ${ac_tool_prefix}gcc; ac_word=$2
2601 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602 1.108 christos printf %s "checking for $ac_word... " >&6; }
2603 1.108 christos if test ${ac_cv_prog_CC+y}
2604 1.108 christos then :
2605 1.108 christos printf %s "(cached) " >&6
2606 1.108 christos else case e in #(
2607 1.108 christos e) if test -n "$CC"; then
2608 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
2609 1.1 tv else
2610 1.84 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 1.84 christos for as_dir in $PATH
2612 1.84 christos do
2613 1.84 christos IFS=$as_save_IFS
2614 1.108 christos case $as_dir in #(((
2615 1.108 christos '') as_dir=./ ;;
2616 1.108 christos */) ;;
2617 1.108 christos *) as_dir=$as_dir/ ;;
2618 1.108 christos esac
2619 1.84 christos for ac_exec_ext in '' $ac_executable_extensions; do
2620 1.108 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2621 1.84 christos ac_cv_prog_CC="${ac_tool_prefix}gcc"
2622 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2623 1.84 christos break 2
2624 1.84 christos fi
2625 1.1 tv done
2626 1.84 christos done
2627 1.84 christos IFS=$as_save_IFS
2628 1.1 tv
2629 1.108 christos fi ;;
2630 1.108 christos esac
2631 1.1 tv fi
2632 1.1 tv CC=$ac_cv_prog_CC
2633 1.1 tv if test -n "$CC"; then
2634 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2635 1.108 christos printf "%s\n" "$CC" >&6; }
2636 1.1 tv else
2637 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638 1.108 christos printf "%s\n" "no" >&6; }
2639 1.1 tv fi
2640 1.1 tv
2641 1.84 christos
2642 1.1 tv fi
2643 1.1 tv if test -z "$ac_cv_prog_CC"; then
2644 1.1 tv ac_ct_CC=$CC
2645 1.1 tv # Extract the first word of "gcc", so it can be a program name with args.
2646 1.1 tv set dummy gcc; ac_word=$2
2647 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 1.108 christos printf %s "checking for $ac_word... " >&6; }
2649 1.108 christos if test ${ac_cv_prog_ac_ct_CC+y}
2650 1.108 christos then :
2651 1.108 christos printf %s "(cached) " >&6
2652 1.108 christos else case e in #(
2653 1.108 christos e) if test -n "$ac_ct_CC"; then
2654 1.1 tv ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2655 1.1 tv else
2656 1.84 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 1.84 christos for as_dir in $PATH
2658 1.84 christos do
2659 1.84 christos IFS=$as_save_IFS
2660 1.108 christos case $as_dir in #(((
2661 1.108 christos '') as_dir=./ ;;
2662 1.108 christos */) ;;
2663 1.108 christos *) as_dir=$as_dir/ ;;
2664 1.108 christos esac
2665 1.84 christos for ac_exec_ext in '' $ac_executable_extensions; do
2666 1.108 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2667 1.84 christos ac_cv_prog_ac_ct_CC="gcc"
2668 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2669 1.84 christos break 2
2670 1.84 christos fi
2671 1.1 tv done
2672 1.84 christos done
2673 1.84 christos IFS=$as_save_IFS
2674 1.1 tv
2675 1.108 christos fi ;;
2676 1.108 christos esac
2677 1.1 tv fi
2678 1.1 tv ac_ct_CC=$ac_cv_prog_ac_ct_CC
2679 1.1 tv if test -n "$ac_ct_CC"; then
2680 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2681 1.108 christos printf "%s\n" "$ac_ct_CC" >&6; }
2682 1.1 tv else
2683 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 1.108 christos printf "%s\n" "no" >&6; }
2685 1.1 tv fi
2686 1.1 tv
2687 1.84 christos if test "x$ac_ct_CC" = x; then
2688 1.84 christos CC=""
2689 1.84 christos else
2690 1.84 christos case $cross_compiling:$ac_tool_warned in
2691 1.84 christos yes:)
2692 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2693 1.108 christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2694 1.84 christos ac_tool_warned=yes ;;
2695 1.84 christos esac
2696 1.84 christos CC=$ac_ct_CC
2697 1.84 christos fi
2698 1.1 tv else
2699 1.1 tv CC="$ac_cv_prog_CC"
2700 1.1 tv fi
2701 1.1 tv
2702 1.1 tv if test -z "$CC"; then
2703 1.84 christos if test -n "$ac_tool_prefix"; then
2704 1.84 christos # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2705 1.1 tv set dummy ${ac_tool_prefix}cc; ac_word=$2
2706 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 1.108 christos printf %s "checking for $ac_word... " >&6; }
2708 1.108 christos if test ${ac_cv_prog_CC+y}
2709 1.108 christos then :
2710 1.108 christos printf %s "(cached) " >&6
2711 1.108 christos else case e in #(
2712 1.108 christos e) if test -n "$CC"; then
2713 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
2714 1.1 tv else
2715 1.84 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 1.84 christos for as_dir in $PATH
2717 1.84 christos do
2718 1.84 christos IFS=$as_save_IFS
2719 1.108 christos case $as_dir in #(((
2720 1.108 christos '') as_dir=./ ;;
2721 1.108 christos */) ;;
2722 1.108 christos *) as_dir=$as_dir/ ;;
2723 1.108 christos esac
2724 1.84 christos for ac_exec_ext in '' $ac_executable_extensions; do
2725 1.108 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2726 1.84 christos ac_cv_prog_CC="${ac_tool_prefix}cc"
2727 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2728 1.84 christos break 2
2729 1.84 christos fi
2730 1.65 christos done
2731 1.84 christos done
2732 1.84 christos IFS=$as_save_IFS
2733 1.1 tv
2734 1.108 christos fi ;;
2735 1.108 christos esac
2736 1.1 tv fi
2737 1.1 tv CC=$ac_cv_prog_CC
2738 1.1 tv if test -n "$CC"; then
2739 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2740 1.108 christos printf "%s\n" "$CC" >&6; }
2741 1.76 pooka else
2742 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 1.108 christos printf "%s\n" "no" >&6; }
2744 1.76 pooka fi
2745 1.76 pooka
2746 1.1 tv
2747 1.84 christos fi
2748 1.1 tv fi
2749 1.1 tv if test -z "$CC"; then
2750 1.1 tv # Extract the first word of "cc", so it can be a program name with args.
2751 1.1 tv set dummy cc; ac_word=$2
2752 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 1.108 christos printf %s "checking for $ac_word... " >&6; }
2754 1.108 christos if test ${ac_cv_prog_CC+y}
2755 1.108 christos then :
2756 1.108 christos printf %s "(cached) " >&6
2757 1.108 christos else case e in #(
2758 1.108 christos e) if test -n "$CC"; then
2759 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
2760 1.1 tv else
2761 1.1 tv ac_prog_rejected=no
2762 1.84 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 1.84 christos for as_dir in $PATH
2764 1.84 christos do
2765 1.84 christos IFS=$as_save_IFS
2766 1.108 christos case $as_dir in #(((
2767 1.108 christos '') as_dir=./ ;;
2768 1.108 christos */) ;;
2769 1.108 christos *) as_dir=$as_dir/ ;;
2770 1.108 christos esac
2771 1.84 christos for ac_exec_ext in '' $ac_executable_extensions; do
2772 1.108 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2773 1.108 christos if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2774 1.84 christos ac_prog_rejected=yes
2775 1.84 christos continue
2776 1.84 christos fi
2777 1.84 christos ac_cv_prog_CC="cc"
2778 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2779 1.84 christos break 2
2780 1.84 christos fi
2781 1.65 christos done
2782 1.84 christos done
2783 1.84 christos IFS=$as_save_IFS
2784 1.1 tv
2785 1.1 tv if test $ac_prog_rejected = yes; then
2786 1.1 tv # We found a bogon in the path, so make sure we never use it.
2787 1.1 tv set dummy $ac_cv_prog_CC
2788 1.1 tv shift
2789 1.1 tv if test $# != 0; then
2790 1.1 tv # We chose a different compiler from the bogus one.
2791 1.1 tv # However, it has the same basename, so the bogon will be chosen
2792 1.1 tv # first if we set CC to just the basename; use the full file name.
2793 1.1 tv shift
2794 1.108 christos ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2795 1.1 tv fi
2796 1.1 tv fi
2797 1.108 christos fi ;;
2798 1.108 christos esac
2799 1.1 tv fi
2800 1.1 tv CC=$ac_cv_prog_CC
2801 1.1 tv if test -n "$CC"; then
2802 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803 1.108 christos printf "%s\n" "$CC" >&6; }
2804 1.1 tv else
2805 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 1.108 christos printf "%s\n" "no" >&6; }
2807 1.1 tv fi
2808 1.1 tv
2809 1.84 christos
2810 1.1 tv fi
2811 1.1 tv if test -z "$CC"; then
2812 1.1 tv if test -n "$ac_tool_prefix"; then
2813 1.84 christos for ac_prog in cl.exe
2814 1.1 tv do
2815 1.1 tv # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2816 1.1 tv set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2817 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 1.108 christos printf %s "checking for $ac_word... " >&6; }
2819 1.108 christos if test ${ac_cv_prog_CC+y}
2820 1.108 christos then :
2821 1.108 christos printf %s "(cached) " >&6
2822 1.108 christos else case e in #(
2823 1.108 christos e) if test -n "$CC"; then
2824 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
2825 1.1 tv else
2826 1.84 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 1.84 christos for as_dir in $PATH
2828 1.84 christos do
2829 1.84 christos IFS=$as_save_IFS
2830 1.108 christos case $as_dir in #(((
2831 1.108 christos '') as_dir=./ ;;
2832 1.108 christos */) ;;
2833 1.108 christos *) as_dir=$as_dir/ ;;
2834 1.108 christos esac
2835 1.84 christos for ac_exec_ext in '' $ac_executable_extensions; do
2836 1.108 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2837 1.84 christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2838 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2839 1.84 christos break 2
2840 1.84 christos fi
2841 1.1 tv done
2842 1.84 christos done
2843 1.84 christos IFS=$as_save_IFS
2844 1.1 tv
2845 1.108 christos fi ;;
2846 1.108 christos esac
2847 1.1 tv fi
2848 1.1 tv CC=$ac_cv_prog_CC
2849 1.1 tv if test -n "$CC"; then
2850 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2851 1.108 christos printf "%s\n" "$CC" >&6; }
2852 1.1 tv else
2853 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 1.108 christos printf "%s\n" "no" >&6; }
2855 1.1 tv fi
2856 1.1 tv
2857 1.84 christos
2858 1.1 tv test -n "$CC" && break
2859 1.1 tv done
2860 1.1 tv fi
2861 1.1 tv if test -z "$CC"; then
2862 1.1 tv ac_ct_CC=$CC
2863 1.84 christos for ac_prog in cl.exe
2864 1.1 tv do
2865 1.1 tv # Extract the first word of "$ac_prog", so it can be a program name with args.
2866 1.1 tv set dummy $ac_prog; ac_word=$2
2867 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 1.108 christos printf %s "checking for $ac_word... " >&6; }
2869 1.108 christos if test ${ac_cv_prog_ac_ct_CC+y}
2870 1.108 christos then :
2871 1.108 christos printf %s "(cached) " >&6
2872 1.108 christos else case e in #(
2873 1.108 christos e) if test -n "$ac_ct_CC"; then
2874 1.1 tv ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2875 1.1 tv else
2876 1.84 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 1.84 christos for as_dir in $PATH
2878 1.84 christos do
2879 1.84 christos IFS=$as_save_IFS
2880 1.108 christos case $as_dir in #(((
2881 1.108 christos '') as_dir=./ ;;
2882 1.108 christos */) ;;
2883 1.108 christos *) as_dir=$as_dir/ ;;
2884 1.108 christos esac
2885 1.84 christos for ac_exec_ext in '' $ac_executable_extensions; do
2886 1.108 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2887 1.84 christos ac_cv_prog_ac_ct_CC="$ac_prog"
2888 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2889 1.84 christos break 2
2890 1.84 christos fi
2891 1.1 tv done
2892 1.84 christos done
2893 1.84 christos IFS=$as_save_IFS
2894 1.1 tv
2895 1.108 christos fi ;;
2896 1.108 christos esac
2897 1.1 tv fi
2898 1.1 tv ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899 1.1 tv if test -n "$ac_ct_CC"; then
2900 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2901 1.108 christos printf "%s\n" "$ac_ct_CC" >&6; }
2902 1.1 tv else
2903 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 1.108 christos printf "%s\n" "no" >&6; }
2905 1.1 tv fi
2906 1.1 tv
2907 1.84 christos
2908 1.1 tv test -n "$ac_ct_CC" && break
2909 1.1 tv done
2910 1.1 tv
2911 1.84 christos if test "x$ac_ct_CC" = x; then
2912 1.84 christos CC=""
2913 1.84 christos else
2914 1.84 christos case $cross_compiling:$ac_tool_warned in
2915 1.84 christos yes:)
2916 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917 1.108 christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918 1.108 christos ac_tool_warned=yes ;;
2919 1.108 christos esac
2920 1.108 christos CC=$ac_ct_CC
2921 1.108 christos fi
2922 1.108 christos fi
2923 1.108 christos
2924 1.108 christos fi
2925 1.108 christos if test -z "$CC"; then
2926 1.108 christos if test -n "$ac_tool_prefix"; then
2927 1.108 christos # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2928 1.108 christos set dummy ${ac_tool_prefix}clang; ac_word=$2
2929 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 1.108 christos printf %s "checking for $ac_word... " >&6; }
2931 1.108 christos if test ${ac_cv_prog_CC+y}
2932 1.108 christos then :
2933 1.108 christos printf %s "(cached) " >&6
2934 1.108 christos else case e in #(
2935 1.108 christos e) if test -n "$CC"; then
2936 1.108 christos ac_cv_prog_CC="$CC" # Let the user override the test.
2937 1.108 christos else
2938 1.108 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 1.108 christos for as_dir in $PATH
2940 1.108 christos do
2941 1.108 christos IFS=$as_save_IFS
2942 1.108 christos case $as_dir in #(((
2943 1.108 christos '') as_dir=./ ;;
2944 1.108 christos */) ;;
2945 1.108 christos *) as_dir=$as_dir/ ;;
2946 1.108 christos esac
2947 1.108 christos for ac_exec_ext in '' $ac_executable_extensions; do
2948 1.108 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2949 1.108 christos ac_cv_prog_CC="${ac_tool_prefix}clang"
2950 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2951 1.108 christos break 2
2952 1.108 christos fi
2953 1.108 christos done
2954 1.108 christos done
2955 1.108 christos IFS=$as_save_IFS
2956 1.108 christos
2957 1.108 christos fi ;;
2958 1.108 christos esac
2959 1.108 christos fi
2960 1.108 christos CC=$ac_cv_prog_CC
2961 1.108 christos if test -n "$CC"; then
2962 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2963 1.108 christos printf "%s\n" "$CC" >&6; }
2964 1.108 christos else
2965 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 1.108 christos printf "%s\n" "no" >&6; }
2967 1.108 christos fi
2968 1.108 christos
2969 1.108 christos
2970 1.108 christos fi
2971 1.108 christos if test -z "$ac_cv_prog_CC"; then
2972 1.108 christos ac_ct_CC=$CC
2973 1.108 christos # Extract the first word of "clang", so it can be a program name with args.
2974 1.108 christos set dummy clang; ac_word=$2
2975 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 1.108 christos printf %s "checking for $ac_word... " >&6; }
2977 1.108 christos if test ${ac_cv_prog_ac_ct_CC+y}
2978 1.108 christos then :
2979 1.108 christos printf %s "(cached) " >&6
2980 1.108 christos else case e in #(
2981 1.108 christos e) if test -n "$ac_ct_CC"; then
2982 1.108 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2983 1.108 christos else
2984 1.108 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 1.108 christos for as_dir in $PATH
2986 1.108 christos do
2987 1.108 christos IFS=$as_save_IFS
2988 1.108 christos case $as_dir in #(((
2989 1.108 christos '') as_dir=./ ;;
2990 1.108 christos */) ;;
2991 1.108 christos *) as_dir=$as_dir/ ;;
2992 1.108 christos esac
2993 1.108 christos for ac_exec_ext in '' $ac_executable_extensions; do
2994 1.108 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2995 1.108 christos ac_cv_prog_ac_ct_CC="clang"
2996 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2997 1.108 christos break 2
2998 1.108 christos fi
2999 1.108 christos done
3000 1.108 christos done
3001 1.108 christos IFS=$as_save_IFS
3002 1.108 christos
3003 1.108 christos fi ;;
3004 1.108 christos esac
3005 1.108 christos fi
3006 1.108 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007 1.108 christos if test -n "$ac_ct_CC"; then
3008 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3009 1.108 christos printf "%s\n" "$ac_ct_CC" >&6; }
3010 1.108 christos else
3011 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 1.108 christos printf "%s\n" "no" >&6; }
3013 1.108 christos fi
3014 1.108 christos
3015 1.108 christos if test "x$ac_ct_CC" = x; then
3016 1.108 christos CC=""
3017 1.108 christos else
3018 1.108 christos case $cross_compiling:$ac_tool_warned in
3019 1.108 christos yes:)
3020 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021 1.108 christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022 1.84 christos ac_tool_warned=yes ;;
3023 1.84 christos esac
3024 1.84 christos CC=$ac_ct_CC
3025 1.84 christos fi
3026 1.108 christos else
3027 1.108 christos CC="$ac_cv_prog_CC"
3028 1.1 tv fi
3029 1.1 tv
3030 1.1 tv fi
3031 1.1 tv
3032 1.84 christos
3033 1.108 christos test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3034 1.108 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3035 1.84 christos as_fn_error $? "no acceptable C compiler found in \$PATH
3036 1.108 christos See 'config.log' for more details" "$LINENO" 5; }
3037 1.1 tv
3038 1.1 tv # Provide some information about the compiler.
3039 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3040 1.84 christos set X $ac_compile
3041 1.84 christos ac_compiler=$2
3042 1.108 christos for ac_option in --version -v -V -qversion -version; do
3043 1.84 christos { { ac_try="$ac_compiler $ac_option >&5"
3044 1.84 christos case "(($ac_try" in
3045 1.84 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 1.84 christos *) ac_try_echo=$ac_try;;
3047 1.84 christos esac
3048 1.84 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3049 1.108 christos printf "%s\n" "$ac_try_echo"; } >&5
3050 1.84 christos (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3051 1.76 pooka ac_status=$?
3052 1.84 christos if test -s conftest.err; then
3053 1.84 christos sed '10a\
3054 1.84 christos ... rest of stderr output deleted ...
3055 1.84 christos 10q' conftest.err >conftest.er1
3056 1.84 christos cat conftest.er1 >&5
3057 1.84 christos fi
3058 1.84 christos rm -f conftest.er1 conftest.err
3059 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3060 1.84 christos test $ac_status = 0; }
3061 1.84 christos done
3062 1.1 tv
3063 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064 1.84 christos /* end confdefs.h. */
3065 1.1 tv
3066 1.1 tv int
3067 1.108 christos main (void)
3068 1.1 tv {
3069 1.1 tv
3070 1.1 tv ;
3071 1.1 tv return 0;
3072 1.1 tv }
3073 1.1 tv _ACEOF
3074 1.1 tv ac_clean_files_save=$ac_clean_files
3075 1.84 christos ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3076 1.1 tv # Try to create an executable without -o first, disregard a.out.
3077 1.1 tv # It will help us diagnose broken compilers, and finding out an intuition
3078 1.1 tv # of exeext.
3079 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3080 1.108 christos printf %s "checking whether the C compiler works... " >&6; }
3081 1.108 christos ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3082 1.84 christos
3083 1.84 christos # The possible output files:
3084 1.84 christos ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3085 1.84 christos
3086 1.84 christos ac_rmfiles=
3087 1.84 christos for ac_file in $ac_files
3088 1.84 christos do
3089 1.84 christos case $ac_file in
3090 1.84 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3091 1.84 christos * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3092 1.84 christos esac
3093 1.84 christos done
3094 1.84 christos rm -f $ac_rmfiles
3095 1.84 christos
3096 1.84 christos if { { ac_try="$ac_link_default"
3097 1.84 christos case "(($ac_try" in
3098 1.84 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 1.84 christos *) ac_try_echo=$ac_try;;
3100 1.84 christos esac
3101 1.84 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102 1.108 christos printf "%s\n" "$ac_try_echo"; } >&5
3103 1.84 christos (eval "$ac_link_default") 2>&5
3104 1.84 christos ac_status=$?
3105 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 1.108 christos test $ac_status = 0; }
3107 1.108 christos then :
3108 1.108 christos # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3109 1.108 christos # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3110 1.84 christos # in a Makefile. We should not override ac_cv_exeext if it was cached,
3111 1.84 christos # so that the user can short-circuit this test for compilers unknown to
3112 1.84 christos # Autoconf.
3113 1.84 christos for ac_file in $ac_files ''
3114 1.84 christos do
3115 1.84 christos test -f "$ac_file" || continue
3116 1.74 christos case $ac_file in
3117 1.84 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3118 1.84 christos ;;
3119 1.84 christos [ab].out )
3120 1.84 christos # We found the default executable, but exeext='' is most
3121 1.84 christos # certainly right.
3122 1.84 christos break;;
3123 1.84 christos *.* )
3124 1.108 christos if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3125 1.84 christos then :; else
3126 1.84 christos ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127 1.84 christos fi
3128 1.84 christos # We set ac_cv_exeext here because the later test for it is not
3129 1.108 christos # safe: cross compilers may not add the suffix if given an '-o'
3130 1.84 christos # argument, so we may need to know it at that point already.
3131 1.84 christos # Even if this section looks crufty: it has the advantage of
3132 1.84 christos # actually working.
3133 1.84 christos break;;
3134 1.84 christos * )
3135 1.84 christos break;;
3136 1.1 tv esac
3137 1.1 tv done
3138 1.84 christos test "$ac_cv_exeext" = no && ac_cv_exeext=
3139 1.84 christos
3140 1.108 christos else case e in #(
3141 1.108 christos e) ac_file='' ;;
3142 1.108 christos esac
3143 1.1 tv fi
3144 1.108 christos if test -z "$ac_file"
3145 1.108 christos then :
3146 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 1.108 christos printf "%s\n" "no" >&6; }
3148 1.108 christos printf "%s\n" "$as_me: failed program was:" >&5
3149 1.84 christos sed 's/^/| /' conftest.$ac_ext >&5
3150 1.1 tv
3151 1.108 christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3152 1.108 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3153 1.84 christos as_fn_error 77 "C compiler cannot create executables
3154 1.108 christos See 'config.log' for more details" "$LINENO" 5; }
3155 1.108 christos else case e in #(
3156 1.108 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3157 1.108 christos printf "%s\n" "yes" >&6; } ;;
3158 1.108 christos esac
3159 1.84 christos fi
3160 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3161 1.108 christos printf %s "checking for C compiler default output file name... " >&6; }
3162 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3163 1.108 christos printf "%s\n" "$ac_file" >&6; }
3164 1.76 pooka ac_exeext=$ac_cv_exeext
3165 1.1 tv
3166 1.84 christos rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3167 1.1 tv ac_clean_files=$ac_clean_files_save
3168 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3169 1.108 christos printf %s "checking for suffix of executables... " >&6; }
3170 1.84 christos if { { ac_try="$ac_link"
3171 1.84 christos case "(($ac_try" in
3172 1.84 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 1.84 christos *) ac_try_echo=$ac_try;;
3174 1.84 christos esac
3175 1.84 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176 1.108 christos printf "%s\n" "$ac_try_echo"; } >&5
3177 1.84 christos (eval "$ac_link") 2>&5
3178 1.1 tv ac_status=$?
3179 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180 1.108 christos test $ac_status = 0; }
3181 1.108 christos then :
3182 1.108 christos # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3183 1.108 christos # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3184 1.108 christos # work properly (i.e., refer to 'conftest.exe'), while it won't with
3185 1.108 christos # 'rm'.
3186 1.84 christos for ac_file in conftest.exe conftest conftest.*; do
3187 1.84 christos test -f "$ac_file" || continue
3188 1.1 tv case $ac_file in
3189 1.84 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3190 1.1 tv *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3191 1.84 christos break;;
3192 1.1 tv * ) break;;
3193 1.1 tv esac
3194 1.1 tv done
3195 1.108 christos else case e in #(
3196 1.108 christos e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3197 1.108 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3198 1.84 christos as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3199 1.108 christos See 'config.log' for more details" "$LINENO" 5; } ;;
3200 1.108 christos esac
3201 1.84 christos fi
3202 1.84 christos rm -f conftest conftest$ac_cv_exeext
3203 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3204 1.108 christos printf "%s\n" "$ac_cv_exeext" >&6; }
3205 1.1 tv
3206 1.1 tv rm -f conftest.$ac_ext
3207 1.1 tv EXEEXT=$ac_cv_exeext
3208 1.1 tv ac_exeext=$EXEEXT
3209 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210 1.84 christos /* end confdefs.h. */
3211 1.84 christos #include <stdio.h>
3212 1.1 tv int
3213 1.108 christos main (void)
3214 1.1 tv {
3215 1.84 christos FILE *f = fopen ("conftest.out", "w");
3216 1.108 christos if (!f)
3217 1.108 christos return 1;
3218 1.84 christos return ferror (f) || fclose (f) != 0;
3219 1.1 tv
3220 1.1 tv ;
3221 1.1 tv return 0;
3222 1.1 tv }
3223 1.1 tv _ACEOF
3224 1.84 christos ac_clean_files="$ac_clean_files conftest.out"
3225 1.84 christos # Check that the compiler produces executables we can run. If not, either
3226 1.84 christos # the compiler is broken, or we cross compile.
3227 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3228 1.108 christos printf %s "checking whether we are cross compiling... " >&6; }
3229 1.84 christos if test "$cross_compiling" != yes; then
3230 1.84 christos { { ac_try="$ac_link"
3231 1.84 christos case "(($ac_try" in
3232 1.84 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 1.84 christos *) ac_try_echo=$ac_try;;
3234 1.84 christos esac
3235 1.84 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 1.108 christos printf "%s\n" "$ac_try_echo"; } >&5
3237 1.84 christos (eval "$ac_link") 2>&5
3238 1.84 christos ac_status=$?
3239 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 1.84 christos test $ac_status = 0; }
3241 1.84 christos if { ac_try='./conftest$ac_cv_exeext'
3242 1.84 christos { { case "(($ac_try" in
3243 1.84 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 1.84 christos *) ac_try_echo=$ac_try;;
3245 1.84 christos esac
3246 1.84 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 1.108 christos printf "%s\n" "$ac_try_echo"; } >&5
3248 1.84 christos (eval "$ac_try") 2>&5
3249 1.1 tv ac_status=$?
3250 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251 1.84 christos test $ac_status = 0; }; }; then
3252 1.84 christos cross_compiling=no
3253 1.84 christos else
3254 1.84 christos if test "$cross_compiling" = maybe; then
3255 1.84 christos cross_compiling=yes
3256 1.84 christos else
3257 1.108 christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3258 1.108 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3259 1.108 christos as_fn_error 77 "cannot run C compiled programs.
3260 1.108 christos If you meant to cross compile, use '--host'.
3261 1.108 christos See 'config.log' for more details" "$LINENO" 5; }
3262 1.84 christos fi
3263 1.84 christos fi
3264 1.84 christos fi
3265 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3266 1.108 christos printf "%s\n" "$cross_compiling" >&6; }
3267 1.84 christos
3268 1.108 christos rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3269 1.108 christos conftest.o conftest.obj conftest.out
3270 1.84 christos ac_clean_files=$ac_clean_files_save
3271 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3272 1.108 christos printf %s "checking for suffix of object files... " >&6; }
3273 1.108 christos if test ${ac_cv_objext+y}
3274 1.108 christos then :
3275 1.108 christos printf %s "(cached) " >&6
3276 1.108 christos else case e in #(
3277 1.108 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 1.84 christos /* end confdefs.h. */
3279 1.74 christos
3280 1.84 christos int
3281 1.108 christos main (void)
3282 1.84 christos {
3283 1.84 christos
3284 1.84 christos ;
3285 1.84 christos return 0;
3286 1.84 christos }
3287 1.84 christos _ACEOF
3288 1.84 christos rm -f conftest.o conftest.obj
3289 1.84 christos if { { ac_try="$ac_compile"
3290 1.84 christos case "(($ac_try" in
3291 1.84 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 1.84 christos *) ac_try_echo=$ac_try;;
3293 1.84 christos esac
3294 1.84 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295 1.108 christos printf "%s\n" "$ac_try_echo"; } >&5
3296 1.84 christos (eval "$ac_compile") 2>&5
3297 1.84 christos ac_status=$?
3298 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299 1.108 christos test $ac_status = 0; }
3300 1.108 christos then :
3301 1.84 christos for ac_file in conftest.o conftest.obj conftest.*; do
3302 1.84 christos test -f "$ac_file" || continue;
3303 1.84 christos case $ac_file in
3304 1.84 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3305 1.84 christos *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3306 1.84 christos break;;
3307 1.84 christos esac
3308 1.84 christos done
3309 1.108 christos else case e in #(
3310 1.108 christos e) printf "%s\n" "$as_me: failed program was:" >&5
3311 1.84 christos sed 's/^/| /' conftest.$ac_ext >&5
3312 1.84 christos
3313 1.108 christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3314 1.108 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3315 1.84 christos as_fn_error $? "cannot compute suffix of object files: cannot compile
3316 1.108 christos See 'config.log' for more details" "$LINENO" 5; } ;;
3317 1.108 christos esac
3318 1.84 christos fi
3319 1.108 christos rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3320 1.108 christos esac
3321 1.1 tv fi
3322 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3323 1.108 christos printf "%s\n" "$ac_cv_objext" >&6; }
3324 1.1 tv OBJEXT=$ac_cv_objext
3325 1.1 tv ac_objext=$OBJEXT
3326 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3327 1.108 christos printf %s "checking whether the compiler supports GNU C... " >&6; }
3328 1.108 christos if test ${ac_cv_c_compiler_gnu+y}
3329 1.108 christos then :
3330 1.108 christos printf %s "(cached) " >&6
3331 1.108 christos else case e in #(
3332 1.108 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 1.84 christos /* end confdefs.h. */
3334 1.1 tv
3335 1.1 tv int
3336 1.108 christos main (void)
3337 1.1 tv {
3338 1.1 tv #ifndef __GNUC__
3339 1.1 tv choke me
3340 1.1 tv #endif
3341 1.1 tv
3342 1.1 tv ;
3343 1.1 tv return 0;
3344 1.1 tv }
3345 1.1 tv _ACEOF
3346 1.108 christos if ac_fn_c_try_compile "$LINENO"
3347 1.108 christos then :
3348 1.1 tv ac_compiler_gnu=yes
3349 1.108 christos else case e in #(
3350 1.108 christos e) ac_compiler_gnu=no ;;
3351 1.108 christos esac
3352 1.1 tv fi
3353 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3354 1.1 tv ac_cv_c_compiler_gnu=$ac_compiler_gnu
3355 1.108 christos ;;
3356 1.108 christos esac
3357 1.108 christos fi
3358 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3359 1.108 christos printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3360 1.108 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361 1.1 tv
3362 1.84 christos if test $ac_compiler_gnu = yes; then
3363 1.84 christos GCC=yes
3364 1.84 christos else
3365 1.84 christos GCC=
3366 1.84 christos fi
3367 1.108 christos ac_test_CFLAGS=${CFLAGS+y}
3368 1.1 tv ac_save_CFLAGS=$CFLAGS
3369 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3370 1.108 christos printf %s "checking whether $CC accepts -g... " >&6; }
3371 1.108 christos if test ${ac_cv_prog_cc_g+y}
3372 1.108 christos then :
3373 1.108 christos printf %s "(cached) " >&6
3374 1.108 christos else case e in #(
3375 1.108 christos e) ac_save_c_werror_flag=$ac_c_werror_flag
3376 1.84 christos ac_c_werror_flag=yes
3377 1.84 christos ac_cv_prog_cc_g=no
3378 1.84 christos CFLAGS="-g"
3379 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 1.84 christos /* end confdefs.h. */
3381 1.1 tv
3382 1.1 tv int
3383 1.108 christos main (void)
3384 1.1 tv {
3385 1.1 tv
3386 1.1 tv ;
3387 1.1 tv return 0;
3388 1.1 tv }
3389 1.1 tv _ACEOF
3390 1.108 christos if ac_fn_c_try_compile "$LINENO"
3391 1.108 christos then :
3392 1.1 tv ac_cv_prog_cc_g=yes
3393 1.108 christos else case e in #(
3394 1.108 christos e) CFLAGS=""
3395 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 1.84 christos /* end confdefs.h. */
3397 1.84 christos
3398 1.84 christos int
3399 1.108 christos main (void)
3400 1.84 christos {
3401 1.84 christos
3402 1.84 christos ;
3403 1.84 christos return 0;
3404 1.84 christos }
3405 1.84 christos _ACEOF
3406 1.108 christos if ac_fn_c_try_compile "$LINENO"
3407 1.108 christos then :
3408 1.84 christos
3409 1.108 christos else case e in #(
3410 1.108 christos e) ac_c_werror_flag=$ac_save_c_werror_flag
3411 1.84 christos CFLAGS="-g"
3412 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 1.84 christos /* end confdefs.h. */
3414 1.84 christos
3415 1.84 christos int
3416 1.108 christos main (void)
3417 1.84 christos {
3418 1.84 christos
3419 1.84 christos ;
3420 1.84 christos return 0;
3421 1.84 christos }
3422 1.84 christos _ACEOF
3423 1.108 christos if ac_fn_c_try_compile "$LINENO"
3424 1.108 christos then :
3425 1.84 christos ac_cv_prog_cc_g=yes
3426 1.84 christos fi
3427 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3428 1.108 christos esac
3429 1.66 tsutsui fi
3430 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3431 1.108 christos esac
3432 1.66 tsutsui fi
3433 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3434 1.108 christos ac_c_werror_flag=$ac_save_c_werror_flag ;;
3435 1.108 christos esac
3436 1.84 christos fi
3437 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3438 1.108 christos printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3439 1.108 christos if test $ac_test_CFLAGS; then
3440 1.66 tsutsui CFLAGS=$ac_save_CFLAGS
3441 1.66 tsutsui elif test $ac_cv_prog_cc_g = yes; then
3442 1.66 tsutsui if test "$GCC" = yes; then
3443 1.66 tsutsui CFLAGS="-g -O2"
3444 1.66 tsutsui else
3445 1.66 tsutsui CFLAGS="-g"
3446 1.66 tsutsui fi
3447 1.66 tsutsui else
3448 1.66 tsutsui if test "$GCC" = yes; then
3449 1.66 tsutsui CFLAGS="-O2"
3450 1.66 tsutsui else
3451 1.66 tsutsui CFLAGS=
3452 1.66 tsutsui fi
3453 1.66 tsutsui fi
3454 1.108 christos ac_prog_cc_stdc=no
3455 1.108 christos if test x$ac_prog_cc_stdc = xno
3456 1.108 christos then :
3457 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3458 1.108 christos printf %s "checking for $CC option to enable C11 features... " >&6; }
3459 1.108 christos if test ${ac_cv_prog_cc_c11+y}
3460 1.108 christos then :
3461 1.108 christos printf %s "(cached) " >&6
3462 1.108 christos else case e in #(
3463 1.108 christos e) ac_cv_prog_cc_c11=no
3464 1.84 christos ac_save_CC=$CC
3465 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 1.84 christos /* end confdefs.h. */
3467 1.108 christos $ac_c_conftest_c11_program
3468 1.1 tv _ACEOF
3469 1.108 christos for ac_arg in '' -std=gnu11
3470 1.84 christos do
3471 1.84 christos CC="$ac_save_CC $ac_arg"
3472 1.108 christos if ac_fn_c_try_compile "$LINENO"
3473 1.108 christos then :
3474 1.108 christos ac_cv_prog_cc_c11=$ac_arg
3475 1.65 christos fi
3476 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam
3477 1.108 christos test "x$ac_cv_prog_cc_c11" != "xno" && break
3478 1.66 tsutsui done
3479 1.84 christos rm -f conftest.$ac_ext
3480 1.108 christos CC=$ac_save_CC ;;
3481 1.108 christos esac
3482 1.108 christos fi
3483 1.84 christos
3484 1.108 christos if test "x$ac_cv_prog_cc_c11" = xno
3485 1.108 christos then :
3486 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3487 1.108 christos printf "%s\n" "unsupported" >&6; }
3488 1.108 christos else case e in #(
3489 1.108 christos e) if test "x$ac_cv_prog_cc_c11" = x
3490 1.108 christos then :
3491 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3492 1.108 christos printf "%s\n" "none needed" >&6; }
3493 1.108 christos else case e in #(
3494 1.108 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3495 1.108 christos printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3496 1.108 christos CC="$CC $ac_cv_prog_cc_c11" ;;
3497 1.108 christos esac
3498 1.108 christos fi
3499 1.108 christos ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3500 1.108 christos ac_prog_cc_stdc=c11 ;;
3501 1.108 christos esac
3502 1.108 christos fi
3503 1.108 christos fi
3504 1.108 christos if test x$ac_prog_cc_stdc = xno
3505 1.108 christos then :
3506 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3507 1.108 christos printf %s "checking for $CC option to enable C99 features... " >&6; }
3508 1.108 christos if test ${ac_cv_prog_cc_c99+y}
3509 1.108 christos then :
3510 1.108 christos printf %s "(cached) " >&6
3511 1.108 christos else case e in #(
3512 1.108 christos e) ac_cv_prog_cc_c99=no
3513 1.108 christos ac_save_CC=$CC
3514 1.108 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 1.108 christos /* end confdefs.h. */
3516 1.108 christos $ac_c_conftest_c99_program
3517 1.108 christos _ACEOF
3518 1.108 christos for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3519 1.108 christos do
3520 1.108 christos CC="$ac_save_CC $ac_arg"
3521 1.108 christos if ac_fn_c_try_compile "$LINENO"
3522 1.108 christos then :
3523 1.108 christos ac_cv_prog_cc_c99=$ac_arg
3524 1.1 tv fi
3525 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam
3526 1.108 christos test "x$ac_cv_prog_cc_c99" != "xno" && break
3527 1.108 christos done
3528 1.108 christos rm -f conftest.$ac_ext
3529 1.108 christos CC=$ac_save_CC ;;
3530 1.84 christos esac
3531 1.108 christos fi
3532 1.108 christos
3533 1.108 christos if test "x$ac_cv_prog_cc_c99" = xno
3534 1.108 christos then :
3535 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3536 1.108 christos printf "%s\n" "unsupported" >&6; }
3537 1.108 christos else case e in #(
3538 1.108 christos e) if test "x$ac_cv_prog_cc_c99" = x
3539 1.108 christos then :
3540 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3541 1.108 christos printf "%s\n" "none needed" >&6; }
3542 1.108 christos else case e in #(
3543 1.108 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3544 1.108 christos printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3545 1.108 christos CC="$CC $ac_cv_prog_cc_c99" ;;
3546 1.108 christos esac
3547 1.108 christos fi
3548 1.108 christos ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3549 1.108 christos ac_prog_cc_stdc=c99 ;;
3550 1.108 christos esac
3551 1.108 christos fi
3552 1.108 christos fi
3553 1.108 christos if test x$ac_prog_cc_stdc = xno
3554 1.108 christos then :
3555 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3556 1.108 christos printf %s "checking for $CC option to enable C89 features... " >&6; }
3557 1.108 christos if test ${ac_cv_prog_cc_c89+y}
3558 1.108 christos then :
3559 1.108 christos printf %s "(cached) " >&6
3560 1.108 christos else case e in #(
3561 1.108 christos e) ac_cv_prog_cc_c89=no
3562 1.108 christos ac_save_CC=$CC
3563 1.108 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 1.108 christos /* end confdefs.h. */
3565 1.108 christos $ac_c_conftest_c89_program
3566 1.108 christos _ACEOF
3567 1.108 christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3568 1.108 christos do
3569 1.108 christos CC="$ac_save_CC $ac_arg"
3570 1.108 christos if ac_fn_c_try_compile "$LINENO"
3571 1.108 christos then :
3572 1.108 christos ac_cv_prog_cc_c89=$ac_arg
3573 1.108 christos fi
3574 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam
3575 1.108 christos test "x$ac_cv_prog_cc_c89" != "xno" && break
3576 1.108 christos done
3577 1.108 christos rm -f conftest.$ac_ext
3578 1.108 christos CC=$ac_save_CC ;;
3579 1.108 christos esac
3580 1.108 christos fi
3581 1.108 christos
3582 1.108 christos if test "x$ac_cv_prog_cc_c89" = xno
3583 1.108 christos then :
3584 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3585 1.108 christos printf "%s\n" "unsupported" >&6; }
3586 1.108 christos else case e in #(
3587 1.108 christos e) if test "x$ac_cv_prog_cc_c89" = x
3588 1.108 christos then :
3589 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3590 1.108 christos printf "%s\n" "none needed" >&6; }
3591 1.108 christos else case e in #(
3592 1.108 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3593 1.108 christos printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3594 1.108 christos CC="$CC $ac_cv_prog_cc_c89" ;;
3595 1.108 christos esac
3596 1.108 christos fi
3597 1.108 christos ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3598 1.108 christos ac_prog_cc_stdc=c89 ;;
3599 1.108 christos esac
3600 1.108 christos fi
3601 1.65 christos fi
3602 1.84 christos
3603 1.1 tv ac_ext=c
3604 1.1 tv ac_cpp='$CPP $CPPFLAGS'
3605 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
3608 1.1 tv
3609 1.84 christos
3610 1.1 tv ac_ext=c
3611 1.1 tv ac_cpp='$CPP $CPPFLAGS'
3612 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3616 1.108 christos printf %s "checking how to run the C preprocessor... " >&6; }
3617 1.1 tv # On Suns, sometimes $CPP names a directory.
3618 1.1 tv if test -n "$CPP" && test -d "$CPP"; then
3619 1.1 tv CPP=
3620 1.1 tv fi
3621 1.1 tv if test -z "$CPP"; then
3622 1.108 christos if test ${ac_cv_prog_CPP+y}
3623 1.108 christos then :
3624 1.108 christos printf %s "(cached) " >&6
3625 1.108 christos else case e in #(
3626 1.108 christos e) # Double quotes because $CC needs to be expanded
3627 1.108 christos for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
3628 1.1 tv do
3629 1.1 tv ac_preproc_ok=false
3630 1.1 tv for ac_c_preproc_warn_flag in '' yes
3631 1.1 tv do
3632 1.1 tv # Use a header file that comes with gcc, so configuring glibc
3633 1.1 tv # with a fresh cross-compiler works.
3634 1.1 tv # On the NeXT, cc -E runs the code through the compiler's parser,
3635 1.1 tv # not just through cpp. "Syntax error" is here to catch this case.
3636 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 1.84 christos /* end confdefs.h. */
3638 1.108 christos #include <limits.h>
3639 1.84 christos Syntax error
3640 1.48 jmc _ACEOF
3641 1.108 christos if ac_fn_c_try_cpp "$LINENO"
3642 1.108 christos then :
3643 1.84 christos
3644 1.108 christos else case e in #(
3645 1.108 christos e) # Broken: fails on valid input.
3646 1.108 christos continue ;;
3647 1.108 christos esac
3648 1.1 tv fi
3649 1.84 christos rm -f conftest.err conftest.i conftest.$ac_ext
3650 1.1 tv
3651 1.84 christos # OK, works on sane cases. Now check whether nonexistent headers
3652 1.1 tv # can be detected and how.
3653 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 1.84 christos /* end confdefs.h. */
3655 1.1 tv #include <ac_nonexistent.h>
3656 1.1 tv _ACEOF
3657 1.108 christos if ac_fn_c_try_cpp "$LINENO"
3658 1.108 christos then :
3659 1.1 tv # Broken: success on invalid input.
3660 1.1 tv continue
3661 1.108 christos else case e in #(
3662 1.108 christos e) # Passes both tests.
3663 1.1 tv ac_preproc_ok=:
3664 1.108 christos break ;;
3665 1.108 christos esac
3666 1.1 tv fi
3667 1.84 christos rm -f conftest.err conftest.i conftest.$ac_ext
3668 1.1 tv
3669 1.1 tv done
3670 1.108 christos # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3671 1.84 christos rm -f conftest.i conftest.err conftest.$ac_ext
3672 1.108 christos if $ac_preproc_ok
3673 1.108 christos then :
3674 1.1 tv break
3675 1.1 tv fi
3676 1.1 tv
3677 1.1 tv done
3678 1.1 tv ac_cv_prog_CPP=$CPP
3679 1.108 christos ;;
3680 1.108 christos esac
3681 1.1 tv fi
3682 1.1 tv CPP=$ac_cv_prog_CPP
3683 1.1 tv else
3684 1.1 tv ac_cv_prog_CPP=$CPP
3685 1.1 tv fi
3686 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3687 1.108 christos printf "%s\n" "$CPP" >&6; }
3688 1.1 tv ac_preproc_ok=false
3689 1.1 tv for ac_c_preproc_warn_flag in '' yes
3690 1.1 tv do
3691 1.1 tv # Use a header file that comes with gcc, so configuring glibc
3692 1.1 tv # with a fresh cross-compiler works.
3693 1.1 tv # On the NeXT, cc -E runs the code through the compiler's parser,
3694 1.1 tv # not just through cpp. "Syntax error" is here to catch this case.
3695 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 1.84 christos /* end confdefs.h. */
3697 1.108 christos #include <limits.h>
3698 1.84 christos Syntax error
3699 1.53 dogcow _ACEOF
3700 1.108 christos if ac_fn_c_try_cpp "$LINENO"
3701 1.108 christos then :
3702 1.84 christos
3703 1.108 christos else case e in #(
3704 1.108 christos e) # Broken: fails on valid input.
3705 1.108 christos continue ;;
3706 1.108 christos esac
3707 1.1 tv fi
3708 1.84 christos rm -f conftest.err conftest.i conftest.$ac_ext
3709 1.1 tv
3710 1.84 christos # OK, works on sane cases. Now check whether nonexistent headers
3711 1.1 tv # can be detected and how.
3712 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 1.84 christos /* end confdefs.h. */
3714 1.1 tv #include <ac_nonexistent.h>
3715 1.1 tv _ACEOF
3716 1.108 christos if ac_fn_c_try_cpp "$LINENO"
3717 1.108 christos then :
3718 1.45 jmc # Broken: success on invalid input.
3719 1.45 jmc continue
3720 1.108 christos else case e in #(
3721 1.108 christos e) # Passes both tests.
3722 1.45 jmc ac_preproc_ok=:
3723 1.108 christos break ;;
3724 1.108 christos esac
3725 1.45 jmc fi
3726 1.84 christos rm -f conftest.err conftest.i conftest.$ac_ext
3727 1.45 jmc
3728 1.45 jmc done
3729 1.108 christos # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3730 1.84 christos rm -f conftest.i conftest.err conftest.$ac_ext
3731 1.108 christos if $ac_preproc_ok
3732 1.108 christos then :
3733 1.84 christos
3734 1.108 christos else case e in #(
3735 1.108 christos e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3736 1.108 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3737 1.84 christos as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3738 1.108 christos See 'config.log' for more details" "$LINENO" 5; } ;;
3739 1.108 christos esac
3740 1.45 jmc fi
3741 1.45 jmc
3742 1.45 jmc ac_ext=c
3743 1.45 jmc ac_cpp='$CPP $CPPFLAGS'
3744 1.45 jmc ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 1.45 jmc ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 1.45 jmc ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747 1.45 jmc
3748 1.84 christos
3749 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
3750 1.108 christos printf %s "checking for egrep -e... " >&6; }
3751 1.108 christos if test ${ac_cv_path_EGREP_TRADITIONAL+y}
3752 1.108 christos then :
3753 1.108 christos printf %s "(cached) " >&6
3754 1.108 christos else case e in #(
3755 1.108 christos e) if test -z "$EGREP_TRADITIONAL"; then
3756 1.108 christos ac_path_EGREP_TRADITIONAL_found=false
3757 1.84 christos # Loop through the user's path and test for each of PROGNAME-LIST
3758 1.84 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 1.84 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3760 1.84 christos do
3761 1.84 christos IFS=$as_save_IFS
3762 1.108 christos case $as_dir in #(((
3763 1.108 christos '') as_dir=./ ;;
3764 1.108 christos */) ;;
3765 1.108 christos *) as_dir=$as_dir/ ;;
3766 1.108 christos esac
3767 1.108 christos for ac_prog in grep ggrep
3768 1.108 christos do
3769 1.84 christos for ac_exec_ext in '' $ac_executable_extensions; do
3770 1.108 christos ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
3771 1.108 christos as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
3772 1.108 christos # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
3773 1.108 christos # Check for GNU $ac_path_EGREP_TRADITIONAL
3774 1.108 christos case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
3775 1.84 christos *GNU*)
3776 1.108 christos ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
3777 1.108 christos #(
3778 1.84 christos *)
3779 1.84 christos ac_count=0
3780 1.108 christos printf %s 0123456789 >"conftest.in"
3781 1.84 christos while :
3782 1.84 christos do
3783 1.84 christos cat "conftest.in" "conftest.in" >"conftest.tmp"
3784 1.84 christos mv "conftest.tmp" "conftest.in"
3785 1.84 christos cp "conftest.in" "conftest.nl"
3786 1.108 christos printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
3787 1.108 christos "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3788 1.84 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3789 1.84 christos as_fn_arith $ac_count + 1 && ac_count=$as_val
3790 1.108 christos if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
3791 1.84 christos # Best one so far, save it but keep looking for a better one
3792 1.108 christos ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
3793 1.108 christos ac_path_EGREP_TRADITIONAL_max=$ac_count
3794 1.84 christos fi
3795 1.84 christos # 10*(2^10) chars as input seems more than enough
3796 1.84 christos test $ac_count -gt 10 && break
3797 1.84 christos done
3798 1.84 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3799 1.84 christos esac
3800 1.84 christos
3801 1.108 christos $ac_path_EGREP_TRADITIONAL_found && break 3
3802 1.84 christos done
3803 1.84 christos done
3804 1.84 christos done
3805 1.84 christos IFS=$as_save_IFS
3806 1.108 christos if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
3807 1.108 christos :
3808 1.84 christos fi
3809 1.84 christos else
3810 1.108 christos ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
3811 1.84 christos fi
3812 1.84 christos
3813 1.108 christos if test "$ac_cv_path_EGREP_TRADITIONAL"
3814 1.108 christos then :
3815 1.108 christos ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
3816 1.108 christos else case e in #(
3817 1.108 christos e) if test -z "$EGREP_TRADITIONAL"; then
3818 1.108 christos ac_path_EGREP_TRADITIONAL_found=false
3819 1.84 christos # Loop through the user's path and test for each of PROGNAME-LIST
3820 1.84 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 1.84 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3822 1.84 christos do
3823 1.84 christos IFS=$as_save_IFS
3824 1.108 christos case $as_dir in #(((
3825 1.108 christos '') as_dir=./ ;;
3826 1.108 christos */) ;;
3827 1.108 christos *) as_dir=$as_dir/ ;;
3828 1.108 christos esac
3829 1.108 christos for ac_prog in egrep
3830 1.108 christos do
3831 1.84 christos for ac_exec_ext in '' $ac_executable_extensions; do
3832 1.108 christos ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
3833 1.108 christos as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
3834 1.108 christos # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
3835 1.108 christos # Check for GNU $ac_path_EGREP_TRADITIONAL
3836 1.108 christos case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
3837 1.84 christos *GNU*)
3838 1.108 christos ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
3839 1.108 christos #(
3840 1.84 christos *)
3841 1.84 christos ac_count=0
3842 1.108 christos printf %s 0123456789 >"conftest.in"
3843 1.84 christos while :
3844 1.84 christos do
3845 1.84 christos cat "conftest.in" "conftest.in" >"conftest.tmp"
3846 1.84 christos mv "conftest.tmp" "conftest.in"
3847 1.84 christos cp "conftest.in" "conftest.nl"
3848 1.108 christos printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
3849 1.108 christos "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3850 1.84 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3851 1.84 christos as_fn_arith $ac_count + 1 && ac_count=$as_val
3852 1.108 christos if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
3853 1.84 christos # Best one so far, save it but keep looking for a better one
3854 1.108 christos ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
3855 1.108 christos ac_path_EGREP_TRADITIONAL_max=$ac_count
3856 1.84 christos fi
3857 1.84 christos # 10*(2^10) chars as input seems more than enough
3858 1.84 christos test $ac_count -gt 10 && break
3859 1.84 christos done
3860 1.84 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3861 1.84 christos esac
3862 1.84 christos
3863 1.108 christos $ac_path_EGREP_TRADITIONAL_found && break 3
3864 1.84 christos done
3865 1.84 christos done
3866 1.84 christos done
3867 1.84 christos IFS=$as_save_IFS
3868 1.108 christos if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
3869 1.84 christos as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3870 1.84 christos fi
3871 1.84 christos else
3872 1.108 christos ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
3873 1.84 christos fi
3874 1.108 christos ;;
3875 1.108 christos esac
3876 1.108 christos fi ;;
3877 1.108 christos esac
3878 1.84 christos fi
3879 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
3880 1.108 christos printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
3881 1.108 christos EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
3882 1.84 christos
3883 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NetBSD" >&5
3884 1.108 christos printf %s "checking for NetBSD... " >&6; }
3885 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 1.84 christos /* end confdefs.h. */
3887 1.45 jmc #ifdef __NetBSD__
3888 1.45 jmc yes
3889 1.45 jmc #endif
3890 1.45 jmc
3891 1.45 jmc _ACEOF
3892 1.45 jmc if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893 1.108 christos $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
3894 1.108 christos then :
3895 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3896 1.108 christos printf "%s\n" "yes" >&6; }
3897 1.84 christos
3898 1.108 christos printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3899 1.84 christos
3900 1.74 christos
3901 1.108 christos printf "%s\n" "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
3902 1.74 christos
3903 1.54 wiz
3904 1.108 christos printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
3905 1.45 jmc
3906 1.108 christos else case e in #(
3907 1.108 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 1.108 christos printf "%s\n" "no" >&6; } ;;
3909 1.108 christos esac
3910 1.45 jmc fi
3911 1.108 christos rm -rf conftest*
3912 1.45 jmc
3913 1.84 christos
3914 1.45 jmc # Extract the first word of "sh", so it can be a program name with args.
3915 1.45 jmc set dummy sh; ac_word=$2
3916 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917 1.108 christos printf %s "checking for $ac_word... " >&6; }
3918 1.108 christos if test ${ac_cv_path_BSHELL+y}
3919 1.108 christos then :
3920 1.108 christos printf %s "(cached) " >&6
3921 1.108 christos else case e in #(
3922 1.108 christos e) case $BSHELL in
3923 1.45 jmc [\\/]* | ?:[\\/]*)
3924 1.45 jmc ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
3925 1.45 jmc ;;
3926 1.45 jmc *)
3927 1.84 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 1.84 christos for as_dir in $PATH
3929 1.84 christos do
3930 1.84 christos IFS=$as_save_IFS
3931 1.108 christos case $as_dir in #(((
3932 1.108 christos '') as_dir=./ ;;
3933 1.108 christos */) ;;
3934 1.108 christos *) as_dir=$as_dir/ ;;
3935 1.108 christos esac
3936 1.84 christos for ac_exec_ext in '' $ac_executable_extensions; do
3937 1.108 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3938 1.108 christos ac_cv_path_BSHELL="$as_dir$ac_word$ac_exec_ext"
3939 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3940 1.84 christos break 2
3941 1.84 christos fi
3942 1.65 christos done
3943 1.84 christos done
3944 1.84 christos IFS=$as_save_IFS
3945 1.45 jmc
3946 1.45 jmc ;;
3947 1.108 christos esac ;;
3948 1.45 jmc esac
3949 1.45 jmc fi
3950 1.45 jmc BSHELL=$ac_cv_path_BSHELL
3951 1.45 jmc if test -n "$BSHELL"; then
3952 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BSHELL" >&5
3953 1.108 christos printf "%s\n" "$BSHELL" >&6; }
3954 1.45 jmc else
3955 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 1.108 christos printf "%s\n" "no" >&6; }
3957 1.45 jmc fi
3958 1.45 jmc
3959 1.84 christos
3960 1.45 jmc if test x"$BSHELL" = x; then
3961 1.84 christos as_fn_error $? "sh must be somewhere on \$PATH" "$LINENO" 5
3962 1.45 jmc fi
3963 1.54 wiz
3964 1.108 christos printf "%s\n" "#define PATH_BSHELL \"$BSHELL\"" >>confdefs.h
3965 1.84 christos
3966 1.76 pooka
3967 1.108 christos ac_header= ac_cache=
3968 1.108 christos for ac_item in $ac_header_c_list
3969 1.108 christos do
3970 1.108 christos if test $ac_cache; then
3971 1.108 christos ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3972 1.108 christos if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3973 1.108 christos printf "%s\n" "#define $ac_item 1" >> confdefs.h
3974 1.108 christos fi
3975 1.108 christos ac_header= ac_cache=
3976 1.108 christos elif test $ac_header; then
3977 1.108 christos ac_cache=$ac_item
3978 1.108 christos else
3979 1.108 christos ac_header=$ac_item
3980 1.108 christos fi
3981 1.108 christos done
3982 1.84 christos
3983 1.6 tv
3984 1.6 tv
3985 1.6 tv
3986 1.84 christos
3987 1.84 christos
3988 1.6 tv
3989 1.6 tv
3990 1.108 christos if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3991 1.108 christos then :
3992 1.6 tv
3993 1.108 christos printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3994 1.84 christos
3995 1.74 christos fi
3996 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3997 1.108 christos printf %s "checking whether byte ordering is bigendian... " >&6; }
3998 1.108 christos if test ${ac_cv_c_bigendian+y}
3999 1.108 christos then :
4000 1.108 christos printf %s "(cached) " >&6
4001 1.108 christos else case e in #(
4002 1.108 christos e) ac_cv_c_bigendian=unknown
4003 1.84 christos # See if we're dealing with a universal compiler.
4004 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 1.84 christos /* end confdefs.h. */
4006 1.84 christos #ifndef __APPLE_CC__
4007 1.84 christos not a universal capable compiler
4008 1.84 christos #endif
4009 1.84 christos typedef int dummy;
4010 1.84 christos
4011 1.84 christos _ACEOF
4012 1.108 christos if ac_fn_c_try_compile "$LINENO"
4013 1.108 christos then :
4014 1.84 christos
4015 1.84 christos # Check for potential -arch flags. It is not universal unless
4016 1.84 christos # there are at least two -arch flags with different values.
4017 1.84 christos ac_arch=
4018 1.84 christos ac_prev=
4019 1.84 christos for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4020 1.84 christos if test -n "$ac_prev"; then
4021 1.84 christos case $ac_word in
4022 1.84 christos i?86 | x86_64 | ppc | ppc64)
4023 1.84 christos if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4024 1.84 christos ac_arch=$ac_word
4025 1.84 christos else
4026 1.84 christos ac_cv_c_bigendian=universal
4027 1.84 christos break
4028 1.84 christos fi
4029 1.84 christos ;;
4030 1.84 christos esac
4031 1.84 christos ac_prev=
4032 1.84 christos elif test "x$ac_word" = "x-arch"; then
4033 1.84 christos ac_prev=arch
4034 1.84 christos fi
4035 1.84 christos done
4036 1.84 christos fi
4037 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4038 1.84 christos if test $ac_cv_c_bigendian = unknown; then
4039 1.84 christos # See if sys/param.h defines the BYTE_ORDER macro.
4040 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 1.84 christos /* end confdefs.h. */
4042 1.76 pooka #include <sys/types.h>
4043 1.84 christos #include <sys/param.h>
4044 1.76 pooka
4045 1.76 pooka int
4046 1.108 christos main (void)
4047 1.76 pooka {
4048 1.108 christos #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
4049 1.108 christos && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
4050 1.84 christos && LITTLE_ENDIAN)
4051 1.84 christos bogus endian macros
4052 1.84 christos #endif
4053 1.76 pooka
4054 1.76 pooka ;
4055 1.76 pooka return 0;
4056 1.76 pooka }
4057 1.76 pooka _ACEOF
4058 1.108 christos if ac_fn_c_try_compile "$LINENO"
4059 1.108 christos then :
4060 1.84 christos # It does; now see whether it defined to BIG_ENDIAN or not.
4061 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 1.84 christos /* end confdefs.h. */
4063 1.84 christos #include <sys/types.h>
4064 1.84 christos #include <sys/param.h>
4065 1.76 pooka
4066 1.76 pooka int
4067 1.108 christos main (void)
4068 1.76 pooka {
4069 1.84 christos #if BYTE_ORDER != BIG_ENDIAN
4070 1.84 christos not big endian
4071 1.84 christos #endif
4072 1.76 pooka
4073 1.76 pooka ;
4074 1.76 pooka return 0;
4075 1.76 pooka }
4076 1.76 pooka _ACEOF
4077 1.108 christos if ac_fn_c_try_compile "$LINENO"
4078 1.108 christos then :
4079 1.84 christos ac_cv_c_bigendian=yes
4080 1.108 christos else case e in #(
4081 1.108 christos e) ac_cv_c_bigendian=no ;;
4082 1.108 christos esac
4083 1.76 pooka fi
4084 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4085 1.76 pooka fi
4086 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4087 1.84 christos fi
4088 1.84 christos if test $ac_cv_c_bigendian = unknown; then
4089 1.84 christos # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4090 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 1.84 christos /* end confdefs.h. */
4092 1.84 christos #include <limits.h>
4093 1.76 pooka
4094 1.76 pooka int
4095 1.108 christos main (void)
4096 1.76 pooka {
4097 1.84 christos #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4098 1.84 christos bogus endian macros
4099 1.84 christos #endif
4100 1.76 pooka
4101 1.76 pooka ;
4102 1.76 pooka return 0;
4103 1.76 pooka }
4104 1.76 pooka _ACEOF
4105 1.108 christos if ac_fn_c_try_compile "$LINENO"
4106 1.108 christos then :
4107 1.84 christos # It does; now see whether it defined to _BIG_ENDIAN or not.
4108 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 1.84 christos /* end confdefs.h. */
4110 1.84 christos #include <limits.h>
4111 1.76 pooka
4112 1.76 pooka int
4113 1.108 christos main (void)
4114 1.76 pooka {
4115 1.84 christos #ifndef _BIG_ENDIAN
4116 1.84 christos not big endian
4117 1.84 christos #endif
4118 1.84 christos
4119 1.76 pooka ;
4120 1.76 pooka return 0;
4121 1.76 pooka }
4122 1.76 pooka _ACEOF
4123 1.108 christos if ac_fn_c_try_compile "$LINENO"
4124 1.108 christos then :
4125 1.84 christos ac_cv_c_bigendian=yes
4126 1.108 christos else case e in #(
4127 1.108 christos e) ac_cv_c_bigendian=no ;;
4128 1.108 christos esac
4129 1.76 pooka fi
4130 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4131 1.76 pooka fi
4132 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4133 1.84 christos fi
4134 1.84 christos if test $ac_cv_c_bigendian = unknown; then
4135 1.84 christos # Compile a test program.
4136 1.108 christos if test "$cross_compiling" = yes
4137 1.108 christos then :
4138 1.84 christos # Try to guess by grepping values from an object file.
4139 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 1.84 christos /* end confdefs.h. */
4141 1.108 christos unsigned short int ascii_mm[] =
4142 1.84 christos { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4143 1.108 christos unsigned short int ascii_ii[] =
4144 1.84 christos { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4145 1.84 christos int use_ascii (int i) {
4146 1.84 christos return ascii_mm[i] + ascii_ii[i];
4147 1.84 christos }
4148 1.108 christos unsigned short int ebcdic_ii[] =
4149 1.84 christos { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4150 1.108 christos unsigned short int ebcdic_mm[] =
4151 1.84 christos { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4152 1.84 christos int use_ebcdic (int i) {
4153 1.84 christos return ebcdic_mm[i] + ebcdic_ii[i];
4154 1.84 christos }
4155 1.108 christos int
4156 1.108 christos main (int argc, char **argv)
4157 1.108 christos {
4158 1.108 christos /* Intimidate the compiler so that it does not
4159 1.108 christos optimize the arrays away. */
4160 1.108 christos char *p = argv[0];
4161 1.108 christos ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
4162 1.108 christos ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
4163 1.108 christos return use_ascii (argc) == use_ebcdic (*p);
4164 1.108 christos }
4165 1.76 pooka _ACEOF
4166 1.108 christos if ac_fn_c_try_link "$LINENO"
4167 1.108 christos then :
4168 1.108 christos if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
4169 1.84 christos ac_cv_c_bigendian=yes
4170 1.84 christos fi
4171 1.108 christos if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
4172 1.84 christos if test "$ac_cv_c_bigendian" = unknown; then
4173 1.84 christos ac_cv_c_bigendian=no
4174 1.84 christos else
4175 1.84 christos # finding both strings is unlikely to happen, but who knows?
4176 1.84 christos ac_cv_c_bigendian=unknown
4177 1.84 christos fi
4178 1.84 christos fi
4179 1.76 pooka fi
4180 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
4181 1.108 christos conftest$ac_exeext conftest.$ac_ext
4182 1.108 christos else case e in #(
4183 1.108 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 1.84 christos /* end confdefs.h. */
4185 1.84 christos $ac_includes_default
4186 1.76 pooka int
4187 1.108 christos main (void)
4188 1.76 pooka {
4189 1.84 christos
4190 1.84 christos /* Are we little or big endian? From Harbison&Steele. */
4191 1.84 christos union
4192 1.84 christos {
4193 1.84 christos long int l;
4194 1.84 christos char c[sizeof (long int)];
4195 1.84 christos } u;
4196 1.84 christos u.l = 1;
4197 1.84 christos return u.c[sizeof (long int) - 1] == 1;
4198 1.76 pooka
4199 1.76 pooka ;
4200 1.76 pooka return 0;
4201 1.76 pooka }
4202 1.76 pooka _ACEOF
4203 1.108 christos if ac_fn_c_try_run "$LINENO"
4204 1.108 christos then :
4205 1.84 christos ac_cv_c_bigendian=no
4206 1.108 christos else case e in #(
4207 1.108 christos e) ac_cv_c_bigendian=yes ;;
4208 1.108 christos esac
4209 1.76 pooka fi
4210 1.84 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4211 1.108 christos conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4212 1.108 christos esac
4213 1.76 pooka fi
4214 1.76 pooka
4215 1.108 christos fi ;;
4216 1.108 christos esac
4217 1.76 pooka fi
4218 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4219 1.108 christos printf "%s\n" "$ac_cv_c_bigendian" >&6; }
4220 1.84 christos case $ac_cv_c_bigendian in #(
4221 1.84 christos yes)
4222 1.108 christos printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
4223 1.84 christos ;; #(
4224 1.84 christos no)
4225 1.84 christos ;; #(
4226 1.84 christos universal)
4227 1.84 christos
4228 1.108 christos printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4229 1.84 christos
4230 1.84 christos ;; #(
4231 1.84 christos *)
4232 1.84 christos as_fn_error $? "unknown endianness
4233 1.84 christos presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4234 1.84 christos esac
4235 1.84 christos
4236 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4237 1.108 christos printf %s "checking for grep that handles long lines and -e... " >&6; }
4238 1.108 christos if test ${ac_cv_path_GREP+y}
4239 1.108 christos then :
4240 1.108 christos printf %s "(cached) " >&6
4241 1.108 christos else case e in #(
4242 1.108 christos e) if test -z "$GREP"; then
4243 1.108 christos ac_path_GREP_found=false
4244 1.108 christos # Loop through the user's path and test for each of PROGNAME-LIST
4245 1.108 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 1.108 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247 1.108 christos do
4248 1.108 christos IFS=$as_save_IFS
4249 1.108 christos case $as_dir in #(((
4250 1.108 christos '') as_dir=./ ;;
4251 1.108 christos */) ;;
4252 1.108 christos *) as_dir=$as_dir/ ;;
4253 1.108 christos esac
4254 1.108 christos for ac_prog in grep ggrep
4255 1.108 christos do
4256 1.108 christos for ac_exec_ext in '' $ac_executable_extensions; do
4257 1.108 christos ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4258 1.108 christos as_fn_executable_p "$ac_path_GREP" || continue
4259 1.108 christos # Check for GNU ac_path_GREP and select it if it is found.
4260 1.108 christos # Check for GNU $ac_path_GREP
4261 1.108 christos case `"$ac_path_GREP" --version 2>&1` in #(
4262 1.108 christos *GNU*)
4263 1.108 christos ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4264 1.108 christos #(
4265 1.108 christos *)
4266 1.108 christos ac_count=0
4267 1.108 christos printf %s 0123456789 >"conftest.in"
4268 1.108 christos while :
4269 1.108 christos do
4270 1.108 christos cat "conftest.in" "conftest.in" >"conftest.tmp"
4271 1.108 christos mv "conftest.tmp" "conftest.in"
4272 1.108 christos cp "conftest.in" "conftest.nl"
4273 1.108 christos printf "%s\n" 'GREP' >> "conftest.nl"
4274 1.108 christos "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275 1.108 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4276 1.108 christos as_fn_arith $ac_count + 1 && ac_count=$as_val
4277 1.108 christos if test $ac_count -gt ${ac_path_GREP_max-0}; then
4278 1.108 christos # Best one so far, save it but keep looking for a better one
4279 1.108 christos ac_cv_path_GREP="$ac_path_GREP"
4280 1.108 christos ac_path_GREP_max=$ac_count
4281 1.108 christos fi
4282 1.108 christos # 10*(2^10) chars as input seems more than enough
4283 1.108 christos test $ac_count -gt 10 && break
4284 1.108 christos done
4285 1.108 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4286 1.108 christos esac
4287 1.76 pooka
4288 1.108 christos $ac_path_GREP_found && break 3
4289 1.108 christos done
4290 1.108 christos done
4291 1.108 christos done
4292 1.108 christos IFS=$as_save_IFS
4293 1.108 christos if test -z "$ac_cv_path_GREP"; then
4294 1.108 christos as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4295 1.108 christos fi
4296 1.76 pooka else
4297 1.108 christos ac_cv_path_GREP=$GREP
4298 1.108 christos fi
4299 1.108 christos ;;
4300 1.108 christos esac
4301 1.76 pooka fi
4302 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4303 1.108 christos printf "%s\n" "$ac_cv_path_GREP" >&6; }
4304 1.108 christos GREP="$ac_cv_path_GREP"
4305 1.76 pooka
4306 1.76 pooka
4307 1.108 christos # Autoupdate added the next two lines to ensure that your configure
4308 1.108 christos # script's behavior did not change. They are probably safe to remove.
4309 1.76 pooka
4310 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4311 1.108 christos printf %s "checking for egrep... " >&6; }
4312 1.108 christos if test ${ac_cv_path_EGREP+y}
4313 1.108 christos then :
4314 1.108 christos printf %s "(cached) " >&6
4315 1.108 christos else case e in #(
4316 1.108 christos e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4317 1.108 christos then ac_cv_path_EGREP="$GREP -E"
4318 1.108 christos else
4319 1.108 christos if test -z "$EGREP"; then
4320 1.108 christos ac_path_EGREP_found=false
4321 1.108 christos # Loop through the user's path and test for each of PROGNAME-LIST
4322 1.108 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 1.108 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4324 1.108 christos do
4325 1.108 christos IFS=$as_save_IFS
4326 1.108 christos case $as_dir in #(((
4327 1.108 christos '') as_dir=./ ;;
4328 1.108 christos */) ;;
4329 1.108 christos *) as_dir=$as_dir/ ;;
4330 1.108 christos esac
4331 1.108 christos for ac_prog in egrep
4332 1.108 christos do
4333 1.108 christos for ac_exec_ext in '' $ac_executable_extensions; do
4334 1.108 christos ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4335 1.108 christos as_fn_executable_p "$ac_path_EGREP" || continue
4336 1.108 christos # Check for GNU ac_path_EGREP and select it if it is found.
4337 1.108 christos # Check for GNU $ac_path_EGREP
4338 1.108 christos case `"$ac_path_EGREP" --version 2>&1` in #(
4339 1.108 christos *GNU*)
4340 1.108 christos ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4341 1.108 christos #(
4342 1.108 christos *)
4343 1.108 christos ac_count=0
4344 1.108 christos printf %s 0123456789 >"conftest.in"
4345 1.108 christos while :
4346 1.108 christos do
4347 1.108 christos cat "conftest.in" "conftest.in" >"conftest.tmp"
4348 1.108 christos mv "conftest.tmp" "conftest.in"
4349 1.108 christos cp "conftest.in" "conftest.nl"
4350 1.108 christos printf "%s\n" 'EGREP' >> "conftest.nl"
4351 1.108 christos "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4352 1.108 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4353 1.108 christos as_fn_arith $ac_count + 1 && ac_count=$as_val
4354 1.108 christos if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4355 1.108 christos # Best one so far, save it but keep looking for a better one
4356 1.108 christos ac_cv_path_EGREP="$ac_path_EGREP"
4357 1.108 christos ac_path_EGREP_max=$ac_count
4358 1.108 christos fi
4359 1.108 christos # 10*(2^10) chars as input seems more than enough
4360 1.108 christos test $ac_count -gt 10 && break
4361 1.108 christos done
4362 1.108 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4363 1.108 christos esac
4364 1.76 pooka
4365 1.108 christos $ac_path_EGREP_found && break 3
4366 1.108 christos done
4367 1.108 christos done
4368 1.108 christos done
4369 1.108 christos IFS=$as_save_IFS
4370 1.108 christos if test -z "$ac_cv_path_EGREP"; then
4371 1.108 christos as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4372 1.108 christos fi
4373 1.76 pooka else
4374 1.108 christos ac_cv_path_EGREP=$EGREP
4375 1.76 pooka fi
4376 1.84 christos
4377 1.108 christos fi ;;
4378 1.108 christos esac
4379 1.76 pooka fi
4380 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4381 1.108 christos printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4382 1.108 christos EGREP="$ac_cv_path_EGREP"
4383 1.76 pooka
4384 1.108 christos EGREP_TRADITIONAL=$EGREP
4385 1.108 christos ac_cv_path_EGREP_TRADITIONAL=$EGREP
4386 1.76 pooka
4387 1.76 pooka
4388 1.76 pooka
4389 1.84 christos # Confirm existence of zlib. (This is available as a default install
4390 1.84 christos # option on many OS's; this could be added as a reachover build in the
4391 1.84 christos # future.)
4392 1.108 christos ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4393 1.108 christos if test "x$ac_cv_header_zlib_h" = xyes
4394 1.108 christos then :
4395 1.76 pooka
4396 1.108 christos else case e in #(
4397 1.108 christos e) as_fn_error $? "zlib must be installed in a compiler-visible path" "$LINENO" 5 ;;
4398 1.108 christos esac
4399 1.76 pooka fi
4400 1.76 pooka
4401 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
4402 1.108 christos printf %s "checking for gzdopen in -lz... " >&6; }
4403 1.108 christos if test ${ac_cv_lib_z_gzdopen+y}
4404 1.108 christos then :
4405 1.108 christos printf %s "(cached) " >&6
4406 1.108 christos else case e in #(
4407 1.108 christos e) ac_check_lib_save_LIBS=$LIBS
4408 1.84 christos LIBS="-lz $LIBS"
4409 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 1.84 christos /* end confdefs.h. */
4411 1.76 pooka
4412 1.84 christos /* Override any GCC internal prototype to avoid an error.
4413 1.84 christos Use char because int might match the return type of a GCC
4414 1.108 christos builtin and then its argument prototype would still apply.
4415 1.108 christos The 'extern "C"' is for builds by C++ compilers;
4416 1.108 christos although this is not generally supported in C code supporting it here
4417 1.108 christos has little cost and some practical benefit (sr 110532). */
4418 1.84 christos #ifdef __cplusplus
4419 1.84 christos extern "C"
4420 1.84 christos #endif
4421 1.108 christos char gzdopen (void);
4422 1.76 pooka int
4423 1.108 christos main (void)
4424 1.76 pooka {
4425 1.84 christos return gzdopen ();
4426 1.76 pooka ;
4427 1.76 pooka return 0;
4428 1.76 pooka }
4429 1.76 pooka _ACEOF
4430 1.108 christos if ac_fn_c_try_link "$LINENO"
4431 1.108 christos then :
4432 1.84 christos ac_cv_lib_z_gzdopen=yes
4433 1.108 christos else case e in #(
4434 1.108 christos e) ac_cv_lib_z_gzdopen=no ;;
4435 1.108 christos esac
4436 1.76 pooka fi
4437 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
4438 1.84 christos conftest$ac_exeext conftest.$ac_ext
4439 1.108 christos LIBS=$ac_check_lib_save_LIBS ;;
4440 1.108 christos esac
4441 1.76 pooka fi
4442 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
4443 1.108 christos printf "%s\n" "$ac_cv_lib_z_gzdopen" >&6; }
4444 1.108 christos if test "x$ac_cv_lib_z_gzdopen" = xyes
4445 1.108 christos then :
4446 1.108 christos printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
4447 1.76 pooka
4448 1.84 christos LIBS="-lz $LIBS"
4449 1.76 pooka
4450 1.108 christos else case e in #(
4451 1.108 christos e) as_fn_error $? "zlib must be installed in a compiler-visible path" "$LINENO" 5 ;;
4452 1.108 christos esac
4453 1.76 pooka fi
4454 1.76 pooka
4455 1.76 pooka
4456 1.84 christos # Make sure certain required headers are available.
4457 1.84 christos # These are not necessarily required by the code, but they are not
4458 1.84 christos # currently conditionalized.
4459 1.108 christos for ac_header in sys/ioctl.h sys/mman.h sys/param.h sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h termios.h unistd.h
4460 1.84 christos do :
4461 1.108 christos as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
4462 1.108 christos ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4463 1.108 christos if eval test \"x\$"$as_ac_Header"\" = x"yes"
4464 1.108 christos then :
4465 1.84 christos cat >>confdefs.h <<_ACEOF
4466 1.108 christos #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
4467 1.84 christos _ACEOF
4468 1.76 pooka
4469 1.108 christos else case e in #(
4470 1.108 christos e) as_fn_error $? "standard system header file not found" "$LINENO" 5 ;;
4471 1.108 christos esac
4472 1.76 pooka fi
4473 1.76 pooka
4474 1.84 christos done
4475 1.76 pooka
4476 1.84 christos # Find headers that may not be available.
4477 1.84 christos ac_header_dirent=no
4478 1.84 christos for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4479 1.108 christos as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
4480 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4481 1.108 christos printf %s "checking for $ac_hdr that defines DIR... " >&6; }
4482 1.108 christos if eval test \${$as_ac_Header+y}
4483 1.108 christos then :
4484 1.108 christos printf %s "(cached) " >&6
4485 1.108 christos else case e in #(
4486 1.108 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 1.84 christos /* end confdefs.h. */
4488 1.84 christos #include <sys/types.h>
4489 1.84 christos #include <$ac_hdr>
4490 1.76 pooka
4491 1.76 pooka int
4492 1.108 christos main (void)
4493 1.76 pooka {
4494 1.84 christos if ((DIR *) 0)
4495 1.84 christos return 0;
4496 1.76 pooka ;
4497 1.76 pooka return 0;
4498 1.76 pooka }
4499 1.76 pooka _ACEOF
4500 1.108 christos if ac_fn_c_try_compile "$LINENO"
4501 1.108 christos then :
4502 1.84 christos eval "$as_ac_Header=yes"
4503 1.108 christos else case e in #(
4504 1.108 christos e) eval "$as_ac_Header=no" ;;
4505 1.108 christos esac
4506 1.76 pooka fi
4507 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4508 1.108 christos esac
4509 1.76 pooka fi
4510 1.84 christos eval ac_res=\$$as_ac_Header
4511 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4512 1.108 christos printf "%s\n" "$ac_res" >&6; }
4513 1.108 christos if eval test \"x\$"$as_ac_Header"\" = x"yes"
4514 1.108 christos then :
4515 1.84 christos cat >>confdefs.h <<_ACEOF
4516 1.108 christos #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
4517 1.84 christos _ACEOF
4518 1.74 christos
4519 1.84 christos ac_header_dirent=$ac_hdr; break
4520 1.76 pooka fi
4521 1.66 tsutsui
4522 1.84 christos done
4523 1.84 christos # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4524 1.84 christos if test $ac_header_dirent = dirent.h; then
4525 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4526 1.108 christos printf %s "checking for library containing opendir... " >&6; }
4527 1.108 christos if test ${ac_cv_search_opendir+y}
4528 1.108 christos then :
4529 1.108 christos printf %s "(cached) " >&6
4530 1.108 christos else case e in #(
4531 1.108 christos e) ac_func_search_save_LIBS=$LIBS
4532 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 1.84 christos /* end confdefs.h. */
4534 1.76 pooka
4535 1.84 christos /* Override any GCC internal prototype to avoid an error.
4536 1.84 christos Use char because int might match the return type of a GCC
4537 1.108 christos builtin and then its argument prototype would still apply.
4538 1.108 christos The 'extern "C"' is for builds by C++ compilers;
4539 1.108 christos although this is not generally supported in C code supporting it here
4540 1.108 christos has little cost and some practical benefit (sr 110532). */
4541 1.84 christos #ifdef __cplusplus
4542 1.84 christos extern "C"
4543 1.84 christos #endif
4544 1.108 christos char opendir (void);
4545 1.76 pooka int
4546 1.108 christos main (void)
4547 1.76 pooka {
4548 1.84 christos return opendir ();
4549 1.76 pooka ;
4550 1.76 pooka return 0;
4551 1.76 pooka }
4552 1.6 tv _ACEOF
4553 1.108 christos for ac_lib in '' dir
4554 1.108 christos do
4555 1.84 christos if test -z "$ac_lib"; then
4556 1.84 christos ac_res="none required"
4557 1.84 christos else
4558 1.84 christos ac_res=-l$ac_lib
4559 1.84 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4560 1.84 christos fi
4561 1.108 christos if ac_fn_c_try_link "$LINENO"
4562 1.108 christos then :
4563 1.84 christos ac_cv_search_opendir=$ac_res
4564 1.84 christos fi
4565 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
4566 1.84 christos conftest$ac_exeext
4567 1.108 christos if test ${ac_cv_search_opendir+y}
4568 1.108 christos then :
4569 1.84 christos break
4570 1.84 christos fi
4571 1.84 christos done
4572 1.108 christos if test ${ac_cv_search_opendir+y}
4573 1.108 christos then :
4574 1.84 christos
4575 1.108 christos else case e in #(
4576 1.108 christos e) ac_cv_search_opendir=no ;;
4577 1.108 christos esac
4578 1.76 pooka fi
4579 1.84 christos rm conftest.$ac_ext
4580 1.108 christos LIBS=$ac_func_search_save_LIBS ;;
4581 1.108 christos esac
4582 1.6 tv fi
4583 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4584 1.108 christos printf "%s\n" "$ac_cv_search_opendir" >&6; }
4585 1.84 christos ac_res=$ac_cv_search_opendir
4586 1.108 christos if test "$ac_res" != no
4587 1.108 christos then :
4588 1.84 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4589 1.6 tv
4590 1.84 christos fi
4591 1.38 fredb
4592 1.76 pooka else
4593 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4594 1.108 christos printf %s "checking for library containing opendir... " >&6; }
4595 1.108 christos if test ${ac_cv_search_opendir+y}
4596 1.108 christos then :
4597 1.108 christos printf %s "(cached) " >&6
4598 1.108 christos else case e in #(
4599 1.108 christos e) ac_func_search_save_LIBS=$LIBS
4600 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 1.84 christos /* end confdefs.h. */
4602 1.80 apb
4603 1.84 christos /* Override any GCC internal prototype to avoid an error.
4604 1.84 christos Use char because int might match the return type of a GCC
4605 1.108 christos builtin and then its argument prototype would still apply.
4606 1.108 christos The 'extern "C"' is for builds by C++ compilers;
4607 1.108 christos although this is not generally supported in C code supporting it here
4608 1.108 christos has little cost and some practical benefit (sr 110532). */
4609 1.84 christos #ifdef __cplusplus
4610 1.84 christos extern "C"
4611 1.84 christos #endif
4612 1.108 christos char opendir (void);
4613 1.80 apb int
4614 1.108 christos main (void)
4615 1.80 apb {
4616 1.84 christos return opendir ();
4617 1.80 apb ;
4618 1.80 apb return 0;
4619 1.80 apb }
4620 1.80 apb _ACEOF
4621 1.108 christos for ac_lib in '' x
4622 1.108 christos do
4623 1.84 christos if test -z "$ac_lib"; then
4624 1.84 christos ac_res="none required"
4625 1.84 christos else
4626 1.84 christos ac_res=-l$ac_lib
4627 1.84 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4628 1.84 christos fi
4629 1.108 christos if ac_fn_c_try_link "$LINENO"
4630 1.108 christos then :
4631 1.84 christos ac_cv_search_opendir=$ac_res
4632 1.84 christos fi
4633 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
4634 1.84 christos conftest$ac_exeext
4635 1.108 christos if test ${ac_cv_search_opendir+y}
4636 1.108 christos then :
4637 1.84 christos break
4638 1.84 christos fi
4639 1.84 christos done
4640 1.108 christos if test ${ac_cv_search_opendir+y}
4641 1.108 christos then :
4642 1.84 christos
4643 1.108 christos else case e in #(
4644 1.108 christos e) ac_cv_search_opendir=no ;;
4645 1.108 christos esac
4646 1.80 apb fi
4647 1.84 christos rm conftest.$ac_ext
4648 1.108 christos LIBS=$ac_func_search_save_LIBS ;;
4649 1.108 christos esac
4650 1.84 christos fi
4651 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4652 1.108 christos printf "%s\n" "$ac_cv_search_opendir" >&6; }
4653 1.84 christos ac_res=$ac_cv_search_opendir
4654 1.108 christos if test "$ac_res" != no
4655 1.108 christos then :
4656 1.84 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4657 1.84 christos
4658 1.80 apb fi
4659 1.80 apb
4660 1.84 christos fi
4661 1.80 apb
4662 1.108 christos ac_fn_c_check_header_compile "$LINENO" "sys/mtio.h" "ac_cv_header_sys_mtio_h" "$ac_includes_default"
4663 1.108 christos if test "x$ac_cv_header_sys_mtio_h" = xyes
4664 1.108 christos then :
4665 1.108 christos printf "%s\n" "#define HAVE_SYS_MTIO_H 1" >>confdefs.h
4666 1.108 christos
4667 1.108 christos fi
4668 1.108 christos ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4669 1.108 christos if test "x$ac_cv_header_sys_sysmacros_h" = xyes
4670 1.108 christos then :
4671 1.108 christos printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
4672 1.108 christos
4673 1.108 christos fi
4674 1.108 christos ac_fn_c_check_header_compile "$LINENO" "sys/syslimits.h" "ac_cv_header_sys_syslimits_h" "$ac_includes_default"
4675 1.108 christos if test "x$ac_cv_header_sys_syslimits_h" = xyes
4676 1.108 christos then :
4677 1.108 christos printf "%s\n" "#define HAVE_SYS_SYSLIMITS_H 1" >>confdefs.h
4678 1.108 christos
4679 1.108 christos fi
4680 1.108 christos ac_fn_c_check_header_compile "$LINENO" "stdio_ext.h" "ac_cv_header_stdio_ext_h" "$ac_includes_default"
4681 1.108 christos if test "x$ac_cv_header_stdio_ext_h" = xyes
4682 1.108 christos then :
4683 1.108 christos printf "%s\n" "#define HAVE_STDIO_EXT_H 1" >>confdefs.h
4684 1.108 christos
4685 1.108 christos fi
4686 1.108 christos ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
4687 1.108 christos if test "x$ac_cv_header_getopt_h" = xyes
4688 1.108 christos then :
4689 1.108 christos printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
4690 1.108 christos
4691 1.108 christos fi
4692 1.108 christos ac_fn_c_check_header_compile "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
4693 1.108 christos if test "x$ac_cv_header_features_h" = xyes
4694 1.108 christos then :
4695 1.108 christos printf "%s\n" "#define HAVE_FEATURES_H 1" >>confdefs.h
4696 1.108 christos
4697 1.108 christos fi
4698 1.108 christos ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4699 1.108 christos if test "x$ac_cv_header_malloc_h" = xyes
4700 1.108 christos then :
4701 1.108 christos printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
4702 1.108 christos
4703 1.108 christos fi
4704 1.108 christos ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
4705 1.108 christos if test "x$ac_cv_header_sys_poll_h" = xyes
4706 1.108 christos then :
4707 1.108 christos printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
4708 1.108 christos
4709 1.108 christos fi
4710 1.108 christos ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
4711 1.108 christos if test "x$ac_cv_header_pthread_h" = xyes
4712 1.108 christos then :
4713 1.108 christos printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
4714 1.108 christos
4715 1.108 christos fi
4716 1.108 christos ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
4717 1.108 christos if test "x$ac_cv_header_stddef_h" = xyes
4718 1.108 christos then :
4719 1.108 christos printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
4720 1.80 apb
4721 1.80 apb fi
4722 1.108 christos ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4723 1.108 christos if test "x$ac_cv_header_sys_uio_h" = xyes
4724 1.108 christos then :
4725 1.108 christos printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
4726 1.45 jmc
4727 1.108 christos fi
4728 1.112 nia ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
4729 1.112 nia if test "x$ac_cv_header_endian_h" = xyes
4730 1.112 nia then :
4731 1.112 nia printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
4732 1.112 nia
4733 1.112 nia fi
4734 1.84 christos
4735 1.108 christos for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h sys/endian.h sys/featuretest.h err.h inttypes.h libgen.h paths.h libgen.h stdint.h util.h resolv.h arpa/nameser.h
4736 1.84 christos do :
4737 1.108 christos as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
4738 1.108 christos ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4739 1.108 christos if eval test \"x\$"$as_ac_Header"\" = x"yes"
4740 1.108 christos then :
4741 1.84 christos cat >>confdefs.h <<_ACEOF
4742 1.108 christos #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
4743 1.84 christos _ACEOF
4744 1.84 christos
4745 1.108 christos else case e in #(
4746 1.108 christos e) test -f include/$ac_header || touch include/$ac_header ;;
4747 1.108 christos esac
4748 1.84 christos fi
4749 1.7 tv
4750 1.84 christos done
4751 1.108 christos for ac_header in rpc/types.h
4752 1.84 christos do :
4753 1.108 christos ac_fn_c_check_header_compile "$LINENO" "rpc/types.h" "ac_cv_header_rpc_types_h" "$ac_includes_default"
4754 1.108 christos if test "x$ac_cv_header_rpc_types_h" = xyes
4755 1.108 christos then :
4756 1.108 christos printf "%s\n" "#define HAVE_RPC_TYPES_H 1" >>confdefs.h
4757 1.96 hannken
4758 1.108 christos else case e in #(
4759 1.108 christos e) echo '#include "nbtool_config.h"' >include/$ac_header.new
4760 1.96 hannken echo '#include "'$srcdir/../../common/include/$ac_header'"' \
4761 1.96 hannken >>include/$ac_header.new
4762 1.96 hannken if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
4763 1.96 hannken rm -f include/$ac_header.new
4764 1.96 hannken else
4765 1.96 hannken mv -f include/$ac_header.new include/$ac_header
4766 1.108 christos fi ;;
4767 1.108 christos esac
4768 1.96 hannken fi
4769 1.96 hannken
4770 1.96 hannken done
4771 1.108 christos for ac_header in netconfig.h
4772 1.96 hannken do :
4773 1.108 christos ac_fn_c_check_header_compile "$LINENO" "netconfig.h" "ac_cv_header_netconfig_h" "$ac_includes_default"
4774 1.108 christos if test "x$ac_cv_header_netconfig_h" = xyes
4775 1.108 christos then :
4776 1.108 christos printf "%s\n" "#define HAVE_NETCONFIG_H 1" >>confdefs.h
4777 1.84 christos
4778 1.108 christos else case e in #(
4779 1.108 christos e) echo '#include "nbtool_config.h"' >include/$ac_header.new
4780 1.84 christos echo '#include "'$srcdir/../../include/$ac_header'"' \
4781 1.84 christos >>include/$ac_header.new
4782 1.84 christos if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
4783 1.84 christos rm -f include/$ac_header.new
4784 1.84 christos else
4785 1.84 christos mv -f include/$ac_header.new include/$ac_header
4786 1.108 christos fi ;;
4787 1.108 christos esac
4788 1.76 pooka fi
4789 1.35 thorpej
4790 1.84 christos done
4791 1.84 christos
4792 1.84 christos # Typedefs.
4793 1.84 christos ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4794 1.108 christos if test "x$ac_cv_type_size_t" = xyes
4795 1.108 christos then :
4796 1.9 tv
4797 1.108 christos else case e in #(
4798 1.108 christos e)
4799 1.108 christos printf "%s\n" "#define size_t unsigned int" >>confdefs.h
4800 1.108 christos ;;
4801 1.108 christos esac
4802 1.63 apb fi
4803 1.65 christos
4804 1.84 christos ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
4805 1.108 christos if test "x$ac_cv_type_id_t" = xyes
4806 1.108 christos then :
4807 1.84 christos
4808 1.108 christos printf "%s\n" "#define HAVE_ID_T 1" >>confdefs.h
4809 1.76 pooka
4810 1.63 apb
4811 1.84 christos fi
4812 1.112 nia ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
4813 1.112 nia if test "x$ac_cv_type_daddr_t" = xyes
4814 1.112 nia then :
4815 1.112 nia
4816 1.112 nia printf "%s\n" "#define HAVE_DADDR_T 1" >>confdefs.h
4817 1.112 nia
4818 1.112 nia
4819 1.112 nia fi
4820 1.84 christos ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
4821 1.108 christos if test "x$ac_cv_type_long_long" = xyes
4822 1.108 christos then :
4823 1.63 apb
4824 1.108 christos printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
4825 1.84 christos
4826 1.84 christos
4827 1.63 apb fi
4828 1.84 christos ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
4829 1.108 christos if test "x$ac_cv_type_u_long" = xyes
4830 1.108 christos then :
4831 1.84 christos
4832 1.108 christos printf "%s\n" "#define HAVE_U_LONG 1" >>confdefs.h
4833 1.84 christos
4834 1.84 christos
4835 1.76 pooka fi
4836 1.84 christos ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
4837 1.108 christos if test "x$ac_cv_type_u_char" = xyes
4838 1.108 christos then :
4839 1.74 christos
4840 1.108 christos printf "%s\n" "#define HAVE_U_CHAR 1" >>confdefs.h
4841 1.65 christos
4842 1.65 christos
4843 1.74 christos fi
4844 1.84 christos ac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "$ac_includes_default"
4845 1.108 christos if test "x$ac_cv_type_u_short" = xyes
4846 1.108 christos then :
4847 1.84 christos
4848 1.108 christos printf "%s\n" "#define HAVE_U_SHORT 1" >>confdefs.h
4849 1.63 apb
4850 1.74 christos
4851 1.84 christos fi
4852 1.84 christos ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
4853 1.108 christos if test "x$ac_cv_type_u_int" = xyes
4854 1.108 christos then :
4855 1.74 christos
4856 1.108 christos printf "%s\n" "#define HAVE_U_INT 1" >>confdefs.h
4857 1.84 christos
4858 1.84 christos
4859 1.76 pooka fi
4860 1.84 christos ac_fn_c_check_type "$LINENO" "u_quad_t" "ac_cv_type_u_quad_t" "$ac_includes_default"
4861 1.108 christos if test "x$ac_cv_type_u_quad_t" = xyes
4862 1.108 christos then :
4863 1.65 christos
4864 1.108 christos printf "%s\n" "#define HAVE_U_QUAD_T 1" >>confdefs.h
4865 1.53 dogcow
4866 1.40 atatat
4867 1.40 atatat fi
4868 1.63 apb
4869 1.95 kamil ac_fn_c_check_type "$LINENO" "uchar_t" "ac_cv_type_uchar_t" "$ac_includes_default"
4870 1.108 christos if test "x$ac_cv_type_uchar_t" = xyes
4871 1.108 christos then :
4872 1.95 kamil
4873 1.108 christos printf "%s\n" "#define HAVE_UCHAR_T 1" >>confdefs.h
4874 1.95 kamil
4875 1.95 kamil
4876 1.95 kamil fi
4877 1.95 kamil ac_fn_c_check_type "$LINENO" "ushort_t" "ac_cv_type_ushort_t" "$ac_includes_default"
4878 1.108 christos if test "x$ac_cv_type_ushort_t" = xyes
4879 1.108 christos then :
4880 1.95 kamil
4881 1.108 christos printf "%s\n" "#define HAVE_USHORT_T 1" >>confdefs.h
4882 1.95 kamil
4883 1.95 kamil
4884 1.95 kamil fi
4885 1.95 kamil ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
4886 1.108 christos if test "x$ac_cv_type_uint_t" = xyes
4887 1.108 christos then :
4888 1.95 kamil
4889 1.108 christos printf "%s\n" "#define HAVE_UINT_T 1" >>confdefs.h
4890 1.95 kamil
4891 1.95 kamil
4892 1.95 kamil fi
4893 1.95 kamil ac_fn_c_check_type "$LINENO" "ulong_t" "ac_cv_type_ulong_t" "$ac_includes_default"
4894 1.108 christos if test "x$ac_cv_type_ulong_t" = xyes
4895 1.108 christos then :
4896 1.95 kamil
4897 1.108 christos printf "%s\n" "#define HAVE_ULONG_T 1" >>confdefs.h
4898 1.95 kamil
4899 1.95 kamil
4900 1.95 kamil fi
4901 1.95 kamil
4902 1.84 christos ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
4903 1.84 christos #ifdef HAVE_RPC_TYPES_H
4904 1.84 christos #include <rpc/types.h>
4905 1.84 christos #endif
4906 1.84 christos #include <sys/socket.h>
4907 1.84 christos "
4908 1.108 christos if test "x$ac_cv_type_socklen_t" = xyes
4909 1.108 christos then :
4910 1.65 christos
4911 1.108 christos printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
4912 1.65 christos
4913 1.63 apb fi
4914 1.65 christos
4915 1.65 christos
4916 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for enum uio_rw" >&5
4917 1.108 christos printf %s "checking for enum uio_rw... " >&6; }
4918 1.94 kamil cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919 1.94 kamil /* end confdefs.h. */
4920 1.94 kamil
4921 1.94 kamil #include <sys/types.h>
4922 1.94 kamil #ifdef HAVE_SYS_UIO_H
4923 1.94 kamil #include <sys/uio.h>
4924 1.94 kamil #endif
4925 1.94 kamil int
4926 1.108 christos main (void)
4927 1.94 kamil {
4928 1.94 kamil enum uio_rw rw;
4929 1.94 kamil ;
4930 1.94 kamil return 0;
4931 1.94 kamil }
4932 1.94 kamil _ACEOF
4933 1.108 christos if ac_fn_c_try_compile "$LINENO"
4934 1.108 christos then :
4935 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4936 1.108 christos printf "%s\n" "yes" >&6; }
4937 1.108 christos
4938 1.108 christos printf "%s\n" "#define HAVE_ENUM_UIO_RW 1" >>confdefs.h
4939 1.108 christos
4940 1.108 christos else case e in #(
4941 1.108 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 1.108 christos printf "%s\n" "no" >&6; } ;;
4943 1.108 christos esac
4944 1.94 kamil fi
4945 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4946 1.94 kamil
4947 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for enum uio_seg" >&5
4948 1.108 christos printf %s "checking for enum uio_seg... " >&6; }
4949 1.94 kamil cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 1.94 kamil /* end confdefs.h. */
4951 1.94 kamil
4952 1.94 kamil #include <sys/types.h>
4953 1.94 kamil #ifdef HAVE_SYS_UIO_H
4954 1.94 kamil #include <sys/uio.h>
4955 1.94 kamil #endif
4956 1.94 kamil int
4957 1.108 christos main (void)
4958 1.94 kamil {
4959 1.94 kamil enum uio_seg seg;
4960 1.94 kamil ;
4961 1.94 kamil return 0;
4962 1.94 kamil }
4963 1.94 kamil _ACEOF
4964 1.108 christos if ac_fn_c_try_compile "$LINENO"
4965 1.108 christos then :
4966 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4967 1.108 christos printf "%s\n" "yes" >&6; }
4968 1.108 christos
4969 1.108 christos printf "%s\n" "#define HAVE_ENUM_UIO_SEG 1" >>confdefs.h
4970 1.108 christos
4971 1.108 christos else case e in #(
4972 1.108 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 1.108 christos printf "%s\n" "no" >&6; } ;;
4974 1.108 christos esac
4975 1.94 kamil fi
4976 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4977 1.94 kamil
4978 1.60 apb
4979 1.84 christos ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4980 1.108 christos if test "x$ac_cv_type_uint8_t" = xyes
4981 1.108 christos then :
4982 1.81 christos
4983 1.108 christos else case e in #(
4984 1.108 christos e)
4985 1.84 christos ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
4986 1.108 christos if test "x$ac_cv_type_u_int8_t" = xyes
4987 1.108 christos then :
4988 1.81 christos
4989 1.108 christos printf "%s\n" "#define uint8_t u_int8_t" >>confdefs.h
4990 1.81 christos
4991 1.108 christos else case e in #(
4992 1.108 christos e) as_fn_error $? "cannot find a suitable type for uint8_t" "$LINENO" 5 ;;
4993 1.108 christos esac
4994 1.81 christos fi
4995 1.84 christos
4996 1.108 christos ;;
4997 1.108 christos esac
4998 1.81 christos fi
4999 1.81 christos
5000 1.84 christos ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
5001 1.108 christos if test "x$ac_cv_type_u_int8_t" = xyes
5002 1.108 christos then :
5003 1.81 christos
5004 1.108 christos else case e in #(
5005 1.108 christos e)
5006 1.84 christos ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5007 1.108 christos if test "x$ac_cv_type_uint8_t" = xyes
5008 1.108 christos then :
5009 1.81 christos
5010 1.108 christos printf "%s\n" "#define u_int8_t uint8_t" >>confdefs.h
5011 1.81 christos
5012 1.108 christos else case e in #(
5013 1.108 christos e) as_fn_error $? "cannot find a suitable type for u_int8_t" "$LINENO" 5 ;;
5014 1.108 christos esac
5015 1.81 christos fi
5016 1.84 christos
5017 1.108 christos ;;
5018 1.108 christos esac
5019 1.81 christos fi
5020 1.81 christos
5021 1.107 hans ac_fn_c_check_type "$LINENO" "__uint8_t" "ac_cv_type___uint8_t" "$ac_includes_default"
5022 1.108 christos if test "x$ac_cv_type___uint8_t" = xyes
5023 1.108 christos then :
5024 1.107 hans
5025 1.108 christos else case e in #(
5026 1.108 christos e)
5027 1.107 hans ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5028 1.108 christos if test "x$ac_cv_type_uint8_t" = xyes
5029 1.108 christos then :
5030 1.107 hans
5031 1.108 christos printf "%s\n" "#define __uint8_t uint8_t" >>confdefs.h
5032 1.107 hans
5033 1.108 christos else case e in #(
5034 1.108 christos e) ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
5035 1.108 christos if test "x$ac_cv_type_u_int8_t" = xyes
5036 1.108 christos then :
5037 1.107 hans
5038 1.108 christos printf "%s\n" "#define uint8_t u_int8_t" >>confdefs.h
5039 1.107 hans
5040 1.108 christos else case e in #(
5041 1.108 christos e) as_fn_error $? "cannot find a suitable type for __uint8_t" "$LINENO" 5 ;;
5042 1.108 christos esac
5043 1.107 hans fi
5044 1.108 christos ;;
5045 1.108 christos esac
5046 1.107 hans fi
5047 1.107 hans
5048 1.108 christos ;;
5049 1.108 christos esac
5050 1.107 hans fi
5051 1.107 hans
5052 1.107 hans ac_fn_c_check_type "$LINENO" "__int8_t" "ac_cv_type___int8_t" "$ac_includes_default"
5053 1.108 christos if test "x$ac_cv_type___int8_t" = xyes
5054 1.108 christos then :
5055 1.107 hans
5056 1.108 christos else case e in #(
5057 1.108 christos e)
5058 1.107 hans ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
5059 1.108 christos if test "x$ac_cv_type_int8_t" = xyes
5060 1.108 christos then :
5061 1.107 hans
5062 1.108 christos printf "%s\n" "#define __int8_t int8_t" >>confdefs.h
5063 1.107 hans
5064 1.108 christos else case e in #(
5065 1.108 christos e) as_fn_error $? "cannot find a suitable type for __int8_t" "$LINENO" 5 ;;
5066 1.108 christos esac
5067 1.107 hans fi
5068 1.107 hans
5069 1.108 christos ;;
5070 1.108 christos esac
5071 1.107 hans fi
5072 1.107 hans
5073 1.81 christos
5074 1.84 christos ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5075 1.108 christos if test "x$ac_cv_type_uint16_t" = xyes
5076 1.108 christos then :
5077 1.81 christos
5078 1.108 christos else case e in #(
5079 1.108 christos e)
5080 1.84 christos ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
5081 1.108 christos if test "x$ac_cv_type_u_int16_t" = xyes
5082 1.108 christos then :
5083 1.81 christos
5084 1.108 christos printf "%s\n" "#define uint16_t u_int16_t" >>confdefs.h
5085 1.81 christos
5086 1.108 christos else case e in #(
5087 1.108 christos e) as_fn_error $? "cannot find a suitable type for uint16_t" "$LINENO" 5 ;;
5088 1.108 christos esac
5089 1.81 christos fi
5090 1.84 christos
5091 1.108 christos ;;
5092 1.108 christos esac
5093 1.81 christos fi
5094 1.81 christos
5095 1.84 christos ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
5096 1.108 christos if test "x$ac_cv_type_u_int16_t" = xyes
5097 1.108 christos then :
5098 1.81 christos
5099 1.108 christos else case e in #(
5100 1.108 christos e)
5101 1.84 christos ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5102 1.108 christos if test "x$ac_cv_type_uint16_t" = xyes
5103 1.108 christos then :
5104 1.81 christos
5105 1.108 christos printf "%s\n" "#define u_int16_t uint16_t" >>confdefs.h
5106 1.81 christos
5107 1.108 christos else case e in #(
5108 1.108 christos e) as_fn_error $? "cannot find a suitable type for u_int16_t" "$LINENO" 5 ;;
5109 1.108 christos esac
5110 1.81 christos fi
5111 1.84 christos
5112 1.108 christos ;;
5113 1.108 christos esac
5114 1.81 christos fi
5115 1.81 christos
5116 1.107 hans ac_fn_c_check_type "$LINENO" "__uint16_t" "ac_cv_type___uint16_t" "$ac_includes_default"
5117 1.108 christos if test "x$ac_cv_type___uint16_t" = xyes
5118 1.108 christos then :
5119 1.107 hans
5120 1.108 christos else case e in #(
5121 1.108 christos e)
5122 1.107 hans ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5123 1.108 christos if test "x$ac_cv_type_uint16_t" = xyes
5124 1.108 christos then :
5125 1.107 hans
5126 1.108 christos printf "%s\n" "#define __uint16_t uint16_t" >>confdefs.h
5127 1.107 hans
5128 1.108 christos else case e in #(
5129 1.108 christos e) ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
5130 1.108 christos if test "x$ac_cv_type_u_int16_t" = xyes
5131 1.108 christos then :
5132 1.107 hans
5133 1.108 christos printf "%s\n" "#define uint16_t u_int16_t" >>confdefs.h
5134 1.107 hans
5135 1.108 christos else case e in #(
5136 1.108 christos e) as_fn_error $? "cannot find a suitable type for __uint16_t" "$LINENO" 5 ;;
5137 1.108 christos esac
5138 1.107 hans fi
5139 1.108 christos ;;
5140 1.108 christos esac
5141 1.107 hans fi
5142 1.107 hans
5143 1.108 christos ;;
5144 1.108 christos esac
5145 1.107 hans fi
5146 1.107 hans
5147 1.107 hans ac_fn_c_check_type "$LINENO" "__int16_t" "ac_cv_type___int16_t" "$ac_includes_default"
5148 1.108 christos if test "x$ac_cv_type___int16_t" = xyes
5149 1.108 christos then :
5150 1.107 hans
5151 1.108 christos else case e in #(
5152 1.108 christos e)
5153 1.107 hans ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5154 1.108 christos if test "x$ac_cv_type_int16_t" = xyes
5155 1.108 christos then :
5156 1.107 hans
5157 1.108 christos printf "%s\n" "#define __int16_t int16_t" >>confdefs.h
5158 1.107 hans
5159 1.108 christos else case e in #(
5160 1.108 christos e) as_fn_error $? "cannot find a suitable type for __int16_t" "$LINENO" 5 ;;
5161 1.108 christos esac
5162 1.107 hans fi
5163 1.107 hans
5164 1.108 christos ;;
5165 1.108 christos esac
5166 1.107 hans fi
5167 1.107 hans
5168 1.81 christos
5169 1.84 christos ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5170 1.108 christos if test "x$ac_cv_type_uint32_t" = xyes
5171 1.108 christos then :
5172 1.53 dogcow
5173 1.108 christos else case e in #(
5174 1.108 christos e)
5175 1.84 christos ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
5176 1.108 christos if test "x$ac_cv_type_u_int32_t" = xyes
5177 1.108 christos then :
5178 1.84 christos
5179 1.108 christos printf "%s\n" "#define uint32_t u_int32_t" >>confdefs.h
5180 1.65 christos
5181 1.108 christos else case e in #(
5182 1.108 christos e) as_fn_error $? "cannot find a suitable type for uint32_t" "$LINENO" 5 ;;
5183 1.108 christos esac
5184 1.40 atatat fi
5185 1.84 christos
5186 1.108 christos ;;
5187 1.108 christos esac
5188 1.74 christos fi
5189 1.61 christos
5190 1.84 christos ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
5191 1.108 christos if test "x$ac_cv_type_u_int32_t" = xyes
5192 1.108 christos then :
5193 1.7 tv
5194 1.108 christos else case e in #(
5195 1.108 christos e)
5196 1.84 christos ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5197 1.108 christos if test "x$ac_cv_type_uint32_t" = xyes
5198 1.108 christos then :
5199 1.60 apb
5200 1.108 christos printf "%s\n" "#define u_int32_t uint32_t" >>confdefs.h
5201 1.63 apb
5202 1.108 christos else case e in #(
5203 1.108 christos e) as_fn_error $? "cannot find a suitable type for u_int32_t" "$LINENO" 5 ;;
5204 1.108 christos esac
5205 1.7 tv fi
5206 1.84 christos
5207 1.108 christos ;;
5208 1.108 christos esac
5209 1.7 tv fi
5210 1.7 tv
5211 1.107 hans ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
5212 1.108 christos if test "x$ac_cv_type___uint32_t" = xyes
5213 1.108 christos then :
5214 1.107 hans
5215 1.108 christos else case e in #(
5216 1.108 christos e)
5217 1.107 hans ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5218 1.108 christos if test "x$ac_cv_type_uint32_t" = xyes
5219 1.108 christos then :
5220 1.107 hans
5221 1.108 christos printf "%s\n" "#define __uint32_t uint32_t" >>confdefs.h
5222 1.107 hans
5223 1.108 christos else case e in #(
5224 1.108 christos e) ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
5225 1.108 christos if test "x$ac_cv_type_u_int32_t" = xyes
5226 1.108 christos then :
5227 1.107 hans
5228 1.108 christos printf "%s\n" "#define uint32_t u_int32_t" >>confdefs.h
5229 1.107 hans
5230 1.108 christos else case e in #(
5231 1.108 christos e) as_fn_error $? "cannot find a suitable type for __uint32_t" "$LINENO" 5 ;;
5232 1.108 christos esac
5233 1.107 hans fi
5234 1.108 christos ;;
5235 1.108 christos esac
5236 1.107 hans fi
5237 1.107 hans
5238 1.108 christos ;;
5239 1.108 christos esac
5240 1.107 hans fi
5241 1.107 hans
5242 1.107 hans ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
5243 1.108 christos if test "x$ac_cv_type___int32_t" = xyes
5244 1.108 christos then :
5245 1.107 hans
5246 1.108 christos else case e in #(
5247 1.108 christos e)
5248 1.107 hans ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5249 1.108 christos if test "x$ac_cv_type_int32_t" = xyes
5250 1.108 christos then :
5251 1.107 hans
5252 1.108 christos printf "%s\n" "#define __int32_t int32_t" >>confdefs.h
5253 1.107 hans
5254 1.108 christos else case e in #(
5255 1.108 christos e) as_fn_error $? "cannot find a suitable type for __int32_t" "$LINENO" 5 ;;
5256 1.108 christos esac
5257 1.107 hans fi
5258 1.107 hans
5259 1.108 christos ;;
5260 1.108 christos esac
5261 1.107 hans fi
5262 1.107 hans
5263 1.84 christos
5264 1.84 christos ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5265 1.108 christos if test "x$ac_cv_type_uint64_t" = xyes
5266 1.108 christos then :
5267 1.63 apb
5268 1.108 christos else case e in #(
5269 1.108 christos e)
5270 1.84 christos ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
5271 1.108 christos if test "x$ac_cv_type_u_int64_t" = xyes
5272 1.108 christos then :
5273 1.65 christos
5274 1.108 christos printf "%s\n" "#define uint64_t u_int64_t" >>confdefs.h
5275 1.63 apb
5276 1.108 christos else case e in #(
5277 1.108 christos e) as_fn_error $? "cannot find a suitable type for uint64_t" "$LINENO" 5 ;;
5278 1.108 christos esac
5279 1.53 dogcow fi
5280 1.84 christos
5281 1.108 christos ;;
5282 1.108 christos esac
5283 1.61 christos fi
5284 1.65 christos
5285 1.84 christos ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
5286 1.108 christos if test "x$ac_cv_type_u_int64_t" = xyes
5287 1.108 christos then :
5288 1.53 dogcow
5289 1.108 christos else case e in #(
5290 1.108 christos e)
5291 1.84 christos ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5292 1.108 christos if test "x$ac_cv_type_uint64_t" = xyes
5293 1.108 christos then :
5294 1.65 christos
5295 1.108 christos printf "%s\n" "#define u_int64_t uint64_t" >>confdefs.h
5296 1.53 dogcow
5297 1.108 christos else case e in #(
5298 1.108 christos e) as_fn_error $? "cannot find a suitable type for u_int64_t" "$LINENO" 5 ;;
5299 1.108 christos esac
5300 1.7 tv fi
5301 1.84 christos
5302 1.108 christos ;;
5303 1.108 christos esac
5304 1.7 tv fi
5305 1.65 christos
5306 1.107 hans ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
5307 1.108 christos if test "x$ac_cv_type___uint64_t" = xyes
5308 1.108 christos then :
5309 1.107 hans
5310 1.108 christos else case e in #(
5311 1.108 christos e)
5312 1.107 hans ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5313 1.108 christos if test "x$ac_cv_type_uint64_t" = xyes
5314 1.108 christos then :
5315 1.107 hans
5316 1.108 christos printf "%s\n" "#define __uint64_t uint64_t" >>confdefs.h
5317 1.107 hans
5318 1.108 christos else case e in #(
5319 1.108 christos e) ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
5320 1.108 christos if test "x$ac_cv_type_u_int64_t" = xyes
5321 1.108 christos then :
5322 1.107 hans
5323 1.108 christos printf "%s\n" "#define uint64_t u_int64_t" >>confdefs.h
5324 1.107 hans
5325 1.108 christos else case e in #(
5326 1.108 christos e) as_fn_error $? "cannot find a suitable type for __uint64_t" "$LINENO" 5 ;;
5327 1.108 christos esac
5328 1.107 hans fi
5329 1.108 christos ;;
5330 1.108 christos esac
5331 1.107 hans fi
5332 1.107 hans
5333 1.108 christos ;;
5334 1.108 christos esac
5335 1.107 hans fi
5336 1.107 hans
5337 1.107 hans ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
5338 1.108 christos if test "x$ac_cv_type___int64_t" = xyes
5339 1.108 christos then :
5340 1.107 hans
5341 1.108 christos else case e in #(
5342 1.108 christos e)
5343 1.107 hans ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
5344 1.108 christos if test "x$ac_cv_type_int64_t" = xyes
5345 1.108 christos then :
5346 1.107 hans
5347 1.108 christos printf "%s\n" "#define __int64_t int64_t" >>confdefs.h
5348 1.107 hans
5349 1.108 christos else case e in #(
5350 1.108 christos e) as_fn_error $? "cannot find a suitable type for __int64_t" "$LINENO" 5 ;;
5351 1.108 christos esac
5352 1.107 hans fi
5353 1.107 hans
5354 1.108 christos ;;
5355 1.108 christos esac
5356 1.107 hans fi
5357 1.107 hans
5358 1.7 tv
5359 1.84 christos
5360 1.84 christos # Struct members.
5361 1.84 christos ac_fn_c_check_member "$LINENO" "DIR" "dd_fd" "ac_cv_member_DIR_dd_fd" "#include <sys/types.h>
5362 1.84 christos #include <dirent.h>
5363 1.84 christos "
5364 1.108 christos if test "x$ac_cv_member_DIR_dd_fd" = xyes
5365 1.108 christos then :
5366 1.84 christos
5367 1.108 christos printf "%s\n" "#define HAVE_DIR_DD_FD 1" >>confdefs.h
5368 1.84 christos
5369 1.61 christos
5370 1.76 pooka fi
5371 1.84 christos ac_fn_c_check_member "$LINENO" "DIR" "__dd_fd" "ac_cv_member_DIR___dd_fd" "#include <sys/types.h>
5372 1.84 christos #include <dirent.h>
5373 1.84 christos "
5374 1.108 christos if test "x$ac_cv_member_DIR___dd_fd" = xyes
5375 1.108 christos then :
5376 1.84 christos
5377 1.108 christos printf "%s\n" "#define HAVE_DIR___DD_FD 1" >>confdefs.h
5378 1.61 christos
5379 1.7 tv
5380 1.7 tv fi
5381 1.84 christos ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#include <sys/types.h>
5382 1.84 christos #include <dirent.h>
5383 1.84 christos "
5384 1.108 christos if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes
5385 1.108 christos then :
5386 1.61 christos
5387 1.108 christos printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
5388 1.7 tv
5389 1.7 tv
5390 1.76 pooka fi
5391 1.4 tv
5392 1.84 christos ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "#include <sys/stat.h>
5393 1.84 christos "
5394 1.108 christos if test "x$ac_cv_member_struct_stat_st_flags" = xyes
5395 1.108 christos then :
5396 1.4 tv
5397 1.108 christos printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h
5398 1.84 christos
5399 1.84 christos
5400 1.4 tv fi
5401 1.84 christos ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "#include <sys/stat.h>
5402 1.84 christos "
5403 1.108 christos if test "x$ac_cv_member_struct_stat_st_gen" = xyes
5404 1.108 christos then :
5405 1.84 christos
5406 1.108 christos printf "%s\n" "#define HAVE_STRUCT_STAT_ST_GEN 1" >>confdefs.h
5407 1.84 christos
5408 1.84 christos
5409 1.4 tv fi
5410 1.84 christos ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "#include <sys/stat.h>
5411 1.84 christos "
5412 1.108 christos if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes
5413 1.108 christos then :
5414 1.61 christos
5415 1.108 christos printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h
5416 1.74 christos
5417 1.74 christos
5418 1.76 pooka fi
5419 1.84 christos ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/stat.h>
5420 1.84 christos "
5421 1.108 christos if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
5422 1.108 christos then :
5423 1.84 christos
5424 1.108 christos printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h
5425 1.84 christos
5426 1.4 tv
5427 1.84 christos fi
5428 1.84 christos ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "#include <sys/stat.h>
5429 1.84 christos "
5430 1.108 christos if test "x$ac_cv_member_struct_stat_st_atim" = xyes
5431 1.108 christos then :
5432 1.63 apb
5433 1.108 christos printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
5434 1.84 christos
5435 1.84 christos
5436 1.19 bjh21 fi
5437 1.84 christos ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/stat.h>
5438 1.84 christos "
5439 1.108 christos if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes
5440 1.108 christos then :
5441 1.84 christos
5442 1.108 christos printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1" >>confdefs.h
5443 1.84 christos
5444 1.84 christos
5445 1.19 bjh21 fi
5446 1.63 apb
5447 1.84 christos ac_fn_c_check_member "$LINENO" "struct statvfs" "f_iosize" "ac_cv_member_struct_statvfs_f_iosize" "#include <sys/statvfs.h>
5448 1.84 christos "
5449 1.108 christos if test "x$ac_cv_member_struct_statvfs_f_iosize" = xyes
5450 1.108 christos then :
5451 1.84 christos
5452 1.108 christos printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_IOSIZE 1" >>confdefs.h
5453 1.19 bjh21
5454 1.19 bjh21
5455 1.76 pooka fi
5456 1.63 apb
5457 1.84 christos ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
5458 1.84 christos "
5459 1.108 christos if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
5460 1.108 christos then :
5461 1.19 bjh21
5462 1.108 christos printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
5463 1.84 christos
5464 1.84 christos
5465 1.19 bjh21 fi
5466 1.76 pooka
5467 1.74 christos
5468 1.84 christos # Global variable decls.
5469 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
5470 1.108 christos printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
5471 1.108 christos if test ${ac_cv_c_undeclared_builtin_options+y}
5472 1.108 christos then :
5473 1.108 christos printf %s "(cached) " >&6
5474 1.108 christos else case e in #(
5475 1.108 christos e) ac_save_CFLAGS=$CFLAGS
5476 1.108 christos ac_cv_c_undeclared_builtin_options='cannot detect'
5477 1.108 christos for ac_arg in '' -fno-builtin; do
5478 1.108 christos CFLAGS="$ac_save_CFLAGS $ac_arg"
5479 1.108 christos # This test program should *not* compile successfully.
5480 1.108 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 1.108 christos /* end confdefs.h. */
5482 1.108 christos
5483 1.108 christos int
5484 1.108 christos main (void)
5485 1.108 christos {
5486 1.108 christos (void) strchr;
5487 1.108 christos ;
5488 1.108 christos return 0;
5489 1.108 christos }
5490 1.108 christos _ACEOF
5491 1.108 christos if ac_fn_c_try_compile "$LINENO"
5492 1.108 christos then :
5493 1.108 christos
5494 1.108 christos else case e in #(
5495 1.108 christos e) # This test program should compile successfully.
5496 1.108 christos # No library function is consistently available on
5497 1.108 christos # freestanding implementations, so test against a dummy
5498 1.108 christos # declaration. Include always-available headers on the
5499 1.108 christos # off chance that they somehow elicit warnings.
5500 1.108 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 1.108 christos /* end confdefs.h. */
5502 1.108 christos #include <float.h>
5503 1.108 christos #include <limits.h>
5504 1.108 christos #include <stdarg.h>
5505 1.108 christos #include <stddef.h>
5506 1.108 christos extern void ac_decl (int, char *);
5507 1.108 christos
5508 1.108 christos int
5509 1.108 christos main (void)
5510 1.108 christos {
5511 1.108 christos (void) ac_decl (0, (char *) 0);
5512 1.108 christos (void) ac_decl;
5513 1.108 christos
5514 1.108 christos ;
5515 1.108 christos return 0;
5516 1.108 christos }
5517 1.108 christos _ACEOF
5518 1.108 christos if ac_fn_c_try_compile "$LINENO"
5519 1.108 christos then :
5520 1.108 christos if test x"$ac_arg" = x
5521 1.108 christos then :
5522 1.108 christos ac_cv_c_undeclared_builtin_options='none needed'
5523 1.108 christos else case e in #(
5524 1.108 christos e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
5525 1.108 christos esac
5526 1.108 christos fi
5527 1.108 christos break
5528 1.108 christos fi
5529 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5530 1.108 christos esac
5531 1.108 christos fi
5532 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5533 1.108 christos done
5534 1.108 christos CFLAGS=$ac_save_CFLAGS
5535 1.108 christos ;;
5536 1.108 christos esac
5537 1.108 christos fi
5538 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5539 1.108 christos printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5540 1.108 christos case $ac_cv_c_undeclared_builtin_options in #(
5541 1.108 christos 'cannot detect') :
5542 1.108 christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5543 1.108 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5544 1.108 christos as_fn_error $? "cannot make $CC report undeclared builtins
5545 1.108 christos See 'config.log' for more details" "$LINENO" 5; } ;; #(
5546 1.108 christos 'none needed') :
5547 1.108 christos ac_c_undeclared_builtin_options='' ;; #(
5548 1.108 christos *) :
5549 1.108 christos ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5550 1.108 christos esac
5551 1.108 christos
5552 1.108 christos ac_fn_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "
5553 1.86 christos #include <stdio.h>
5554 1.86 christos
5555 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5556 1.108 christos if test "x$ac_cv_have_decl_asprintf" = xyes
5557 1.108 christos then :
5558 1.86 christos ac_have_decl=1
5559 1.108 christos else case e in #(
5560 1.108 christos e) ac_have_decl=0 ;;
5561 1.108 christos esac
5562 1.86 christos fi
5563 1.108 christos printf "%s\n" "#define HAVE_DECL_ASPRINTF $ac_have_decl" >>confdefs.h
5564 1.108 christos ac_fn_check_decl "$LINENO" "asnprintf" "ac_cv_have_decl_asnprintf" "
5565 1.88 sevan #include <stdio.h>
5566 1.88 sevan
5567 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5568 1.108 christos if test "x$ac_cv_have_decl_asnprintf" = xyes
5569 1.108 christos then :
5570 1.88 sevan ac_have_decl=1
5571 1.108 christos else case e in #(
5572 1.108 christos e) ac_have_decl=0 ;;
5573 1.108 christos esac
5574 1.88 sevan fi
5575 1.108 christos printf "%s\n" "#define HAVE_DECL_ASNPRINTF $ac_have_decl" >>confdefs.h
5576 1.108 christos ac_fn_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "
5577 1.86 christos #include <stdio.h>
5578 1.86 christos
5579 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5580 1.108 christos if test "x$ac_cv_have_decl_vasprintf" = xyes
5581 1.108 christos then :
5582 1.86 christos ac_have_decl=1
5583 1.108 christos else case e in #(
5584 1.108 christos e) ac_have_decl=0 ;;
5585 1.108 christos esac
5586 1.86 christos fi
5587 1.108 christos printf "%s\n" "#define HAVE_DECL_VASPRINTF $ac_have_decl" >>confdefs.h
5588 1.108 christos ac_fn_check_decl "$LINENO" "vasnprintf" "ac_cv_have_decl_vasnprintf" "
5589 1.86 christos #include <stdio.h>
5590 1.86 christos
5591 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5592 1.108 christos if test "x$ac_cv_have_decl_vasnprintf" = xyes
5593 1.108 christos then :
5594 1.86 christos ac_have_decl=1
5595 1.108 christos else case e in #(
5596 1.108 christos e) ac_have_decl=0 ;;
5597 1.108 christos esac
5598 1.86 christos fi
5599 1.108 christos printf "%s\n" "#define HAVE_DECL_VASNPRINTF $ac_have_decl" >>confdefs.h
5600 1.108 christos ac_fn_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
5601 1.86 christos #include <stdio.h>
5602 1.86 christos
5603 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5604 1.108 christos if test "x$ac_cv_have_decl_vsnprintf" = xyes
5605 1.108 christos then :
5606 1.86 christos ac_have_decl=1
5607 1.108 christos else case e in #(
5608 1.108 christos e) ac_have_decl=0 ;;
5609 1.108 christos esac
5610 1.86 christos fi
5611 1.108 christos printf "%s\n" "#define HAVE_DECL_VSNPRINTF $ac_have_decl" >>confdefs.h
5612 1.108 christos ac_fn_check_decl "$LINENO" "fgetln" "ac_cv_have_decl_fgetln" "
5613 1.86 christos #include <stdio.h>
5614 1.86 christos
5615 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5616 1.108 christos if test "x$ac_cv_have_decl_fgetln" = xyes
5617 1.108 christos then :
5618 1.86 christos ac_have_decl=1
5619 1.108 christos else case e in #(
5620 1.108 christos e) ac_have_decl=0 ;;
5621 1.108 christos esac
5622 1.86 christos fi
5623 1.108 christos printf "%s\n" "#define HAVE_DECL_FGETLN $ac_have_decl" >>confdefs.h
5624 1.108 christos ac_fn_check_decl "$LINENO" "fparseln" "ac_cv_have_decl_fparseln" "
5625 1.86 christos #include <stdio.h>
5626 1.86 christos
5627 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5628 1.108 christos if test "x$ac_cv_have_decl_fparseln" = xyes
5629 1.108 christos then :
5630 1.86 christos ac_have_decl=1
5631 1.108 christos else case e in #(
5632 1.108 christos e) ac_have_decl=0 ;;
5633 1.108 christos esac
5634 1.86 christos fi
5635 1.108 christos printf "%s\n" "#define HAVE_DECL_FPARSELN $ac_have_decl" >>confdefs.h
5636 1.108 christos ac_fn_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "
5637 1.87 christos #include <stdio.h>
5638 1.87 christos
5639 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5640 1.108 christos if test "x$ac_cv_have_decl_fpurge" = xyes
5641 1.108 christos then :
5642 1.87 christos ac_have_decl=1
5643 1.108 christos else case e in #(
5644 1.108 christos e) ac_have_decl=0 ;;
5645 1.108 christos esac
5646 1.87 christos fi
5647 1.108 christos printf "%s\n" "#define HAVE_DECL_FPURGE $ac_have_decl" >>confdefs.h
5648 1.108 christos ac_fn_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "
5649 1.87 christos #include <stdio.h>
5650 1.87 christos
5651 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5652 1.108 christos if test "x$ac_cv_have_decl_getdelim" = xyes
5653 1.108 christos then :
5654 1.87 christos ac_have_decl=1
5655 1.108 christos else case e in #(
5656 1.108 christos e) ac_have_decl=0 ;;
5657 1.108 christos esac
5658 1.87 christos fi
5659 1.108 christos printf "%s\n" "#define HAVE_DECL_GETDELIM $ac_have_decl" >>confdefs.h
5660 1.108 christos ac_fn_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "
5661 1.86 christos #include <stdio.h>
5662 1.86 christos
5663 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5664 1.108 christos if test "x$ac_cv_have_decl_getline" = xyes
5665 1.108 christos then :
5666 1.86 christos ac_have_decl=1
5667 1.108 christos else case e in #(
5668 1.108 christos e) ac_have_decl=0 ;;
5669 1.108 christos esac
5670 1.86 christos fi
5671 1.108 christos printf "%s\n" "#define HAVE_DECL_GETLINE $ac_have_decl" >>confdefs.h
5672 1.108 christos ac_fn_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "
5673 1.86 christos #include <stdio.h>
5674 1.86 christos
5675 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5676 1.108 christos if test "x$ac_cv_have_decl_snprintf" = xyes
5677 1.108 christos then :
5678 1.86 christos ac_have_decl=1
5679 1.108 christos else case e in #(
5680 1.108 christos e) ac_have_decl=0 ;;
5681 1.108 christos esac
5682 1.86 christos fi
5683 1.108 christos printf "%s\n" "#define HAVE_DECL_SNPRINTF $ac_have_decl" >>confdefs.h
5684 1.109 christos ac_fn_check_decl "$LINENO" "vsyslog" "ac_cv_have_decl_vsyslog" "
5685 1.109 christos #include <stdio.h>
5686 1.109 christos
5687 1.109 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5688 1.109 christos if test "x$ac_cv_have_decl_vsyslog" = xyes
5689 1.109 christos then :
5690 1.109 christos ac_have_decl=1
5691 1.109 christos else case e in #(
5692 1.109 christos e) ac_have_decl=0 ;;
5693 1.109 christos esac
5694 1.109 christos fi
5695 1.109 christos printf "%s\n" "#define HAVE_DECL_VSYSLOG $ac_have_decl" >>confdefs.h
5696 1.86 christos
5697 1.86 christos
5698 1.108 christos ac_fn_check_decl "$LINENO" "atoll" "ac_cv_have_decl_atoll" "
5699 1.108 christos #include <stdlib.h>
5700 1.86 christos
5701 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5702 1.108 christos if test "x$ac_cv_have_decl_atoll" = xyes
5703 1.108 christos then :
5704 1.108 christos ac_have_decl=1
5705 1.108 christos else case e in #(
5706 1.108 christos e) ac_have_decl=0 ;;
5707 1.108 christos esac
5708 1.108 christos fi
5709 1.108 christos printf "%s\n" "#define HAVE_DECL_ATOLL $ac_have_decl" >>confdefs.h
5710 1.108 christos ac_fn_check_decl "$LINENO" "getsubopt" "ac_cv_have_decl_getsubopt" "
5711 1.86 christos #include <stdlib.h>
5712 1.86 christos
5713 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5714 1.108 christos if test "x$ac_cv_have_decl_getsubopt" = xyes
5715 1.108 christos then :
5716 1.86 christos ac_have_decl=1
5717 1.108 christos else case e in #(
5718 1.108 christos e) ac_have_decl=0 ;;
5719 1.108 christos esac
5720 1.86 christos fi
5721 1.108 christos printf "%s\n" "#define HAVE_DECL_GETSUBOPT $ac_have_decl" >>confdefs.h
5722 1.108 christos ac_fn_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" "
5723 1.108 christos #include <stdlib.h>
5724 1.86 christos
5725 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5726 1.108 christos if test "x$ac_cv_have_decl_getprogname" = xyes
5727 1.108 christos then :
5728 1.108 christos ac_have_decl=1
5729 1.108 christos else case e in #(
5730 1.108 christos e) ac_have_decl=0 ;;
5731 1.108 christos esac
5732 1.108 christos fi
5733 1.108 christos printf "%s\n" "#define HAVE_DECL_GETPROGNAME $ac_have_decl" >>confdefs.h
5734 1.108 christos ac_fn_check_decl "$LINENO" "heapsort" "ac_cv_have_decl_heapsort" "
5735 1.86 christos #include <stdlib.h>
5736 1.86 christos
5737 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5738 1.108 christos if test "x$ac_cv_have_decl_heapsort" = xyes
5739 1.108 christos then :
5740 1.86 christos ac_have_decl=1
5741 1.108 christos else case e in #(
5742 1.108 christos e) ac_have_decl=0 ;;
5743 1.108 christos esac
5744 1.86 christos fi
5745 1.108 christos printf "%s\n" "#define HAVE_DECL_HEAPSORT $ac_have_decl" >>confdefs.h
5746 1.108 christos ac_fn_check_decl "$LINENO" "mkdtemp" "ac_cv_have_decl_mkdtemp" "
5747 1.86 christos #include <stdlib.h>
5748 1.86 christos
5749 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5750 1.108 christos if test "x$ac_cv_have_decl_mkdtemp" = xyes
5751 1.108 christos then :
5752 1.86 christos ac_have_decl=1
5753 1.108 christos else case e in #(
5754 1.108 christos e) ac_have_decl=0 ;;
5755 1.108 christos esac
5756 1.86 christos fi
5757 1.108 christos printf "%s\n" "#define HAVE_DECL_MKDTEMP $ac_have_decl" >>confdefs.h
5758 1.108 christos ac_fn_check_decl "$LINENO" "mkstemp" "ac_cv_have_decl_mkstemp" "
5759 1.86 christos #include <stdlib.h>
5760 1.86 christos
5761 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5762 1.108 christos if test "x$ac_cv_have_decl_mkstemp" = xyes
5763 1.108 christos then :
5764 1.86 christos ac_have_decl=1
5765 1.108 christos else case e in #(
5766 1.108 christos e) ac_have_decl=0 ;;
5767 1.108 christos esac
5768 1.86 christos fi
5769 1.108 christos printf "%s\n" "#define HAVE_DECL_MKSTEMP $ac_have_decl" >>confdefs.h
5770 1.108 christos ac_fn_check_decl "$LINENO" "mkstemps" "ac_cv_have_decl_mkstemps" "
5771 1.86 christos #include <stdlib.h>
5772 1.86 christos
5773 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5774 1.108 christos if test "x$ac_cv_have_decl_mkstemps" = xyes
5775 1.108 christos then :
5776 1.86 christos ac_have_decl=1
5777 1.108 christos else case e in #(
5778 1.108 christos e) ac_have_decl=0 ;;
5779 1.108 christos esac
5780 1.86 christos fi
5781 1.108 christos printf "%s\n" "#define HAVE_DECL_MKSTEMPS $ac_have_decl" >>confdefs.h
5782 1.108 christos ac_fn_check_decl "$LINENO" "reallocarr" "ac_cv_have_decl_reallocarr" "
5783 1.99 christos #include <stdlib.h>
5784 1.99 christos
5785 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5786 1.108 christos if test "x$ac_cv_have_decl_reallocarr" = xyes
5787 1.108 christos then :
5788 1.99 christos ac_have_decl=1
5789 1.108 christos else case e in #(
5790 1.108 christos e) ac_have_decl=0 ;;
5791 1.108 christos esac
5792 1.99 christos fi
5793 1.108 christos printf "%s\n" "#define HAVE_DECL_REALLOCARR $ac_have_decl" >>confdefs.h
5794 1.108 christos ac_fn_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "
5795 1.93 christos #include <stdlib.h>
5796 1.93 christos
5797 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5798 1.108 christos if test "x$ac_cv_have_decl_reallocarray" = xyes
5799 1.108 christos then :
5800 1.93 christos ac_have_decl=1
5801 1.108 christos else case e in #(
5802 1.108 christos e) ac_have_decl=0 ;;
5803 1.108 christos esac
5804 1.93 christos fi
5805 1.108 christos printf "%s\n" "#define HAVE_DECL_REALLOCARRAY $ac_have_decl" >>confdefs.h
5806 1.108 christos ac_fn_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "
5807 1.86 christos #include <stdlib.h>
5808 1.86 christos
5809 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5810 1.108 christos if test "x$ac_cv_have_decl_setenv" = xyes
5811 1.108 christos then :
5812 1.86 christos ac_have_decl=1
5813 1.108 christos else case e in #(
5814 1.108 christos e) ac_have_decl=0 ;;
5815 1.108 christos esac
5816 1.86 christos fi
5817 1.108 christos printf "%s\n" "#define HAVE_DECL_SETENV $ac_have_decl" >>confdefs.h
5818 1.108 christos ac_fn_check_decl "$LINENO" "strtonum" "ac_cv_have_decl_strtonum" "
5819 1.86 christos #include <stdlib.h>
5820 1.86 christos
5821 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5822 1.108 christos if test "x$ac_cv_have_decl_strtonum" = xyes
5823 1.108 christos then :
5824 1.86 christos ac_have_decl=1
5825 1.108 christos else case e in #(
5826 1.108 christos e) ac_have_decl=0 ;;
5827 1.108 christos esac
5828 1.86 christos fi
5829 1.108 christos printf "%s\n" "#define HAVE_DECL_STRTONUM $ac_have_decl" >>confdefs.h
5830 1.108 christos ac_fn_check_decl "$LINENO" "strtoi" "ac_cv_have_decl_strtoi" "
5831 1.86 christos #include <stdlib.h>
5832 1.86 christos
5833 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5834 1.108 christos if test "x$ac_cv_have_decl_strtoi" = xyes
5835 1.108 christos then :
5836 1.86 christos ac_have_decl=1
5837 1.108 christos else case e in #(
5838 1.108 christos e) ac_have_decl=0 ;;
5839 1.108 christos esac
5840 1.86 christos fi
5841 1.108 christos printf "%s\n" "#define HAVE_DECL_STRTOI $ac_have_decl" >>confdefs.h
5842 1.108 christos ac_fn_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "
5843 1.86 christos #include <stdlib.h>
5844 1.86 christos
5845 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5846 1.108 christos if test "x$ac_cv_have_decl_strtoll" = xyes
5847 1.108 christos then :
5848 1.86 christos ac_have_decl=1
5849 1.108 christos else case e in #(
5850 1.108 christos e) ac_have_decl=0 ;;
5851 1.108 christos esac
5852 1.86 christos fi
5853 1.108 christos printf "%s\n" "#define HAVE_DECL_STRTOLL $ac_have_decl" >>confdefs.h
5854 1.108 christos ac_fn_check_decl "$LINENO" "strtou" "ac_cv_have_decl_strtou" "
5855 1.86 christos #include <stdlib.h>
5856 1.86 christos
5857 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5858 1.108 christos if test "x$ac_cv_have_decl_strtou" = xyes
5859 1.108 christos then :
5860 1.86 christos ac_have_decl=1
5861 1.108 christos else case e in #(
5862 1.108 christos e) ac_have_decl=0 ;;
5863 1.108 christos esac
5864 1.86 christos fi
5865 1.108 christos printf "%s\n" "#define HAVE_DECL_STRTOU $ac_have_decl" >>confdefs.h
5866 1.108 christos ac_fn_check_decl "$LINENO" "setprogname" "ac_cv_have_decl_setprogname" "
5867 1.106 kre #include <stdlib.h>
5868 1.106 kre
5869 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5870 1.108 christos if test "x$ac_cv_have_decl_setprogname" = xyes
5871 1.108 christos then :
5872 1.106 kre ac_have_decl=1
5873 1.108 christos else case e in #(
5874 1.108 christos e) ac_have_decl=0 ;;
5875 1.108 christos esac
5876 1.106 kre fi
5877 1.108 christos printf "%s\n" "#define HAVE_DECL_SETPROGNAME $ac_have_decl" >>confdefs.h
5878 1.108 christos ac_fn_check_decl "$LINENO" "shquote" "ac_cv_have_decl_shquote" "
5879 1.86 christos #include <stdlib.h>
5880 1.86 christos
5881 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5882 1.108 christos if test "x$ac_cv_have_decl_shquote" = xyes
5883 1.108 christos then :
5884 1.86 christos ac_have_decl=1
5885 1.108 christos else case e in #(
5886 1.108 christos e) ac_have_decl=0 ;;
5887 1.108 christos esac
5888 1.86 christos fi
5889 1.108 christos printf "%s\n" "#define HAVE_DECL_SHQUOTE $ac_have_decl" >>confdefs.h
5890 1.86 christos
5891 1.86 christos
5892 1.108 christos ac_fn_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "
5893 1.86 christos #include <libgen.h>
5894 1.86 christos
5895 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5896 1.108 christos if test "x$ac_cv_have_decl_basename" = xyes
5897 1.108 christos then :
5898 1.86 christos ac_have_decl=1
5899 1.108 christos else case e in #(
5900 1.108 christos e) ac_have_decl=0 ;;
5901 1.108 christos esac
5902 1.86 christos fi
5903 1.108 christos printf "%s\n" "#define HAVE_DECL_BASENAME $ac_have_decl" >>confdefs.h
5904 1.108 christos ac_fn_check_decl "$LINENO" "dirname" "ac_cv_have_decl_dirname" "
5905 1.86 christos #include <libgen.h>
5906 1.86 christos
5907 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5908 1.108 christos if test "x$ac_cv_have_decl_dirname" = xyes
5909 1.108 christos then :
5910 1.86 christos ac_have_decl=1
5911 1.108 christos else case e in #(
5912 1.108 christos e) ac_have_decl=0 ;;
5913 1.108 christos esac
5914 1.86 christos fi
5915 1.108 christos printf "%s\n" "#define HAVE_DECL_DIRNAME $ac_have_decl" >>confdefs.h
5916 1.86 christos
5917 1.86 christos
5918 1.108 christos ac_fn_check_decl "$LINENO" "raise_default_signal" "ac_cv_have_decl_raise_default_signal" "
5919 1.86 christos #include <util.h>
5920 1.86 christos
5921 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5922 1.108 christos if test "x$ac_cv_have_decl_raise_default_signal" = xyes
5923 1.108 christos then :
5924 1.86 christos ac_have_decl=1
5925 1.108 christos else case e in #(
5926 1.108 christos e) ac_have_decl=0 ;;
5927 1.108 christos esac
5928 1.86 christos fi
5929 1.108 christos printf "%s\n" "#define HAVE_DECL_RAISE_DEFAULT_SIGNAL $ac_have_decl" >>confdefs.h
5930 1.86 christos
5931 1.86 christos
5932 1.108 christos ac_fn_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "
5933 1.86 christos #include <unistd.h>
5934 1.86 christos
5935 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5936 1.108 christos if test "x$ac_cv_have_decl_issetugid" = xyes
5937 1.108 christos then :
5938 1.86 christos ac_have_decl=1
5939 1.108 christos else case e in #(
5940 1.108 christos e) ac_have_decl=0 ;;
5941 1.108 christos esac
5942 1.86 christos fi
5943 1.108 christos printf "%s\n" "#define HAVE_DECL_ISSETUGID $ac_have_decl" >>confdefs.h
5944 1.108 christos ac_fn_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
5945 1.86 christos #include <unistd.h>
5946 1.86 christos
5947 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5948 1.108 christos if test "x$ac_cv_have_decl_pread" = xyes
5949 1.108 christos then :
5950 1.86 christos ac_have_decl=1
5951 1.108 christos else case e in #(
5952 1.108 christos e) ac_have_decl=0 ;;
5953 1.108 christos esac
5954 1.86 christos fi
5955 1.108 christos printf "%s\n" "#define HAVE_DECL_PREAD $ac_have_decl" >>confdefs.h
5956 1.108 christos ac_fn_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
5957 1.86 christos #include <unistd.h>
5958 1.86 christos
5959 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5960 1.108 christos if test "x$ac_cv_have_decl_pwrite" = xyes
5961 1.108 christos then :
5962 1.86 christos ac_have_decl=1
5963 1.108 christos else case e in #(
5964 1.108 christos e) ac_have_decl=0 ;;
5965 1.108 christos esac
5966 1.86 christos fi
5967 1.108 christos printf "%s\n" "#define HAVE_DECL_PWRITE $ac_have_decl" >>confdefs.h
5968 1.86 christos
5969 1.86 christos
5970 1.108 christos ac_fn_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "
5971 1.86 christos #include <unistd.h>
5972 1.86 christos #include <string.h>
5973 1.86 christos
5974 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5975 1.108 christos if test "x$ac_cv_have_decl_strmode" = xyes
5976 1.108 christos then :
5977 1.86 christos ac_have_decl=1
5978 1.108 christos else case e in #(
5979 1.108 christos e) ac_have_decl=0 ;;
5980 1.108 christos esac
5981 1.86 christos fi
5982 1.108 christos printf "%s\n" "#define HAVE_DECL_STRMODE $ac_have_decl" >>confdefs.h
5983 1.86 christos
5984 1.86 christos
5985 1.108 christos ac_fn_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "
5986 1.86 christos #include <ctype.h>
5987 1.86 christos
5988 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
5989 1.108 christos if test "x$ac_cv_have_decl_isblank" = xyes
5990 1.108 christos then :
5991 1.86 christos ac_have_decl=1
5992 1.108 christos else case e in #(
5993 1.108 christos e) ac_have_decl=0 ;;
5994 1.108 christos esac
5995 1.86 christos fi
5996 1.108 christos printf "%s\n" "#define HAVE_DECL_ISBLANK $ac_have_decl" >>confdefs.h
5997 1.86 christos
5998 1.86 christos
5999 1.86 christos
6000 1.108 christos ac_fn_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" "
6001 1.84 christos #include <stdio.h>
6002 1.84 christos #include <stdlib.h>
6003 1.84 christos #include <unistd.h>
6004 1.84 christos #ifdef HAVE_GETOPT_H
6005 1.84 christos #include <getopt.h>
6006 1.84 christos #endif
6007 1.84 christos
6008 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6009 1.108 christos if test "x$ac_cv_have_decl_optind" = xyes
6010 1.108 christos then :
6011 1.84 christos ac_have_decl=1
6012 1.108 christos else case e in #(
6013 1.108 christos e) ac_have_decl=0 ;;
6014 1.108 christos esac
6015 1.19 bjh21 fi
6016 1.108 christos printf "%s\n" "#define HAVE_DECL_OPTIND $ac_have_decl" >>confdefs.h
6017 1.108 christos ac_fn_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "
6018 1.84 christos #include <stdio.h>
6019 1.84 christos #include <stdlib.h>
6020 1.84 christos #include <unistd.h>
6021 1.84 christos #ifdef HAVE_GETOPT_H
6022 1.84 christos #include <getopt.h>
6023 1.76 pooka #endif
6024 1.19 bjh21
6025 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6026 1.108 christos if test "x$ac_cv_have_decl_optreset" = xyes
6027 1.108 christos then :
6028 1.84 christos ac_have_decl=1
6029 1.108 christos else case e in #(
6030 1.108 christos e) ac_have_decl=0 ;;
6031 1.108 christos esac
6032 1.84 christos fi
6033 1.108 christos printf "%s\n" "#define HAVE_DECL_OPTRESET $ac_have_decl" >>confdefs.h
6034 1.84 christos
6035 1.108 christos ac_fn_check_decl "$LINENO" "sys_signame" "ac_cv_have_decl_sys_signame" "#include <signal.h>
6036 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6037 1.108 christos if test "x$ac_cv_have_decl_sys_signame" = xyes
6038 1.108 christos then :
6039 1.84 christos ac_have_decl=1
6040 1.108 christos else case e in #(
6041 1.108 christos e) ac_have_decl=0 ;;
6042 1.108 christos esac
6043 1.63 apb fi
6044 1.108 christos printf "%s\n" "#define HAVE_DECL_SYS_SIGNAME $ac_have_decl" >>confdefs.h
6045 1.63 apb
6046 1.61 christos
6047 1.84 christos # Library functions (where a .h check isn't enough).
6048 1.84 christos # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6049 1.84 christos # for constant arguments. Useless!
6050 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6051 1.108 christos printf %s "checking for working alloca.h... " >&6; }
6052 1.108 christos if test ${ac_cv_working_alloca_h+y}
6053 1.108 christos then :
6054 1.108 christos printf %s "(cached) " >&6
6055 1.108 christos else case e in #(
6056 1.108 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 1.84 christos /* end confdefs.h. */
6058 1.84 christos #include <alloca.h>
6059 1.76 pooka int
6060 1.108 christos main (void)
6061 1.76 pooka {
6062 1.84 christos char *p = (char *) alloca (2 * sizeof (int));
6063 1.84 christos if (p) return 0;
6064 1.76 pooka ;
6065 1.76 pooka return 0;
6066 1.76 pooka }
6067 1.19 bjh21 _ACEOF
6068 1.108 christos if ac_fn_c_try_link "$LINENO"
6069 1.108 christos then :
6070 1.84 christos ac_cv_working_alloca_h=yes
6071 1.108 christos else case e in #(
6072 1.108 christos e) ac_cv_working_alloca_h=no ;;
6073 1.108 christos esac
6074 1.76 pooka fi
6075 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
6076 1.108 christos conftest$ac_exeext conftest.$ac_ext ;;
6077 1.108 christos esac
6078 1.19 bjh21 fi
6079 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6080 1.108 christos printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
6081 1.84 christos if test $ac_cv_working_alloca_h = yes; then
6082 1.63 apb
6083 1.108 christos printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
6084 1.63 apb
6085 1.84 christos fi
6086 1.19 bjh21
6087 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6088 1.108 christos printf %s "checking for alloca... " >&6; }
6089 1.108 christos if test ${ac_cv_func_alloca_works+y}
6090 1.108 christos then :
6091 1.108 christos printf %s "(cached) " >&6
6092 1.108 christos else case e in #(
6093 1.108 christos e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
6094 1.108 christos if test "$ac_cv_func_alloca_works" != yes
6095 1.108 christos then :
6096 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 1.84 christos /* end confdefs.h. */
6098 1.108 christos #include <stdlib.h>
6099 1.108 christos #include <stddef.h>
6100 1.108 christos #ifndef alloca
6101 1.108 christos # ifdef __GNUC__
6102 1.108 christos # define alloca __builtin_alloca
6103 1.108 christos # elif defined _MSC_VER
6104 1.84 christos # include <malloc.h>
6105 1.84 christos # define alloca _alloca
6106 1.84 christos # else
6107 1.108 christos # ifdef __cplusplus
6108 1.108 christos extern "C"
6109 1.108 christos # endif
6110 1.84 christos void *alloca (size_t);
6111 1.84 christos # endif
6112 1.84 christos #endif
6113 1.76 pooka
6114 1.76 pooka int
6115 1.108 christos main (void)
6116 1.76 pooka {
6117 1.84 christos char *p = (char *) alloca (1);
6118 1.84 christos if (p) return 0;
6119 1.76 pooka ;
6120 1.76 pooka return 0;
6121 1.76 pooka }
6122 1.74 christos _ACEOF
6123 1.108 christos if ac_fn_c_try_link "$LINENO"
6124 1.108 christos then :
6125 1.84 christos ac_cv_func_alloca_works=yes
6126 1.76 pooka fi
6127 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
6128 1.84 christos conftest$ac_exeext conftest.$ac_ext
6129 1.108 christos fi ;;
6130 1.108 christos esac
6131 1.19 bjh21 fi
6132 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6133 1.108 christos printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
6134 1.19 bjh21
6135 1.84 christos if test $ac_cv_func_alloca_works = yes; then
6136 1.84 christos
6137 1.108 christos printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
6138 1.19 bjh21
6139 1.76 pooka else
6140 1.84 christos # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6141 1.84 christos # that cause trouble. Some versions do not even contain alloca or
6142 1.84 christos # contain a buggy version. If you still want to use their alloca,
6143 1.84 christos # use ar to extract alloca.o from them instead of compiling alloca.c.
6144 1.84 christos
6145 1.84 christos ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6146 1.84 christos
6147 1.108 christos printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
6148 1.19 bjh21
6149 1.84 christos
6150 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6151 1.108 christos printf %s "checking stack direction for C alloca... " >&6; }
6152 1.108 christos if test ${ac_cv_c_stack_direction+y}
6153 1.108 christos then :
6154 1.108 christos printf %s "(cached) " >&6
6155 1.108 christos else case e in #(
6156 1.108 christos e) if test "$cross_compiling" = yes
6157 1.108 christos then :
6158 1.84 christos ac_cv_c_stack_direction=0
6159 1.108 christos else case e in #(
6160 1.108 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 1.84 christos /* end confdefs.h. */
6162 1.84 christos $ac_includes_default
6163 1.84 christos int
6164 1.84 christos find_stack_direction (int *addr, int depth)
6165 1.84 christos {
6166 1.84 christos int dir, dummy = 0;
6167 1.84 christos if (! addr)
6168 1.84 christos addr = &dummy;
6169 1.84 christos *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6170 1.84 christos dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6171 1.84 christos return dir + dummy;
6172 1.84 christos }
6173 1.61 christos
6174 1.76 pooka int
6175 1.84 christos main (int argc, char **argv)
6176 1.76 pooka {
6177 1.84 christos return find_stack_direction (0, argc + !argv + 20) < 0;
6178 1.76 pooka }
6179 1.76 pooka _ACEOF
6180 1.108 christos if ac_fn_c_try_run "$LINENO"
6181 1.108 christos then :
6182 1.84 christos ac_cv_c_stack_direction=1
6183 1.108 christos else case e in #(
6184 1.108 christos e) ac_cv_c_stack_direction=-1 ;;
6185 1.108 christos esac
6186 1.76 pooka fi
6187 1.84 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6188 1.108 christos conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6189 1.108 christos esac
6190 1.108 christos fi
6191 1.108 christos ;;
6192 1.108 christos esac
6193 1.108 christos fi
6194 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6195 1.108 christos printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
6196 1.108 christos printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
6197 1.108 christos
6198 1.108 christos
6199 1.108 christos fi
6200 1.108 christos
6201 1.108 christos ac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll"
6202 1.108 christos if test "x$ac_cv_func_atoll" = xyes
6203 1.108 christos then :
6204 1.108 christos printf "%s\n" "#define HAVE_ATOLL 1" >>confdefs.h
6205 1.108 christos
6206 1.108 christos fi
6207 1.108 christos ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
6208 1.108 christos if test "x$ac_cv_func_asprintf" = xyes
6209 1.108 christos then :
6210 1.108 christos printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
6211 1.108 christos
6212 1.108 christos fi
6213 1.108 christos ac_fn_c_check_func "$LINENO" "asnprintf" "ac_cv_func_asnprintf"
6214 1.108 christos if test "x$ac_cv_func_asnprintf" = xyes
6215 1.108 christos then :
6216 1.108 christos printf "%s\n" "#define HAVE_ASNPRINTF 1" >>confdefs.h
6217 1.108 christos
6218 1.108 christos fi
6219 1.108 christos ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
6220 1.108 christos if test "x$ac_cv_func_basename" = xyes
6221 1.108 christos then :
6222 1.108 christos printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
6223 1.108 christos
6224 1.108 christos fi
6225 1.108 christos ac_fn_c_check_func "$LINENO" "devname" "ac_cv_func_devname"
6226 1.108 christos if test "x$ac_cv_func_devname" = xyes
6227 1.108 christos then :
6228 1.108 christos printf "%s\n" "#define HAVE_DEVNAME 1" >>confdefs.h
6229 1.108 christos
6230 1.108 christos fi
6231 1.108 christos ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
6232 1.108 christos if test "x$ac_cv_func_dirfd" = xyes
6233 1.108 christos then :
6234 1.108 christos printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
6235 1.108 christos
6236 1.108 christos fi
6237 1.108 christos ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
6238 1.108 christos if test "x$ac_cv_func_dirname" = xyes
6239 1.108 christos then :
6240 1.108 christos printf "%s\n" "#define HAVE_DIRNAME 1" >>confdefs.h
6241 1.108 christos
6242 1.108 christos fi
6243 1.108 christos ac_fn_c_check_func "$LINENO" "dispatch_semaphore_create" "ac_cv_func_dispatch_semaphore_create"
6244 1.108 christos if test "x$ac_cv_func_dispatch_semaphore_create" = xyes
6245 1.108 christos then :
6246 1.108 christos printf "%s\n" "#define HAVE_DISPATCH_SEMAPHORE_CREATE 1" >>confdefs.h
6247 1.108 christos
6248 1.108 christos fi
6249 1.108 christos ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
6250 1.108 christos if test "x$ac_cv_func_dprintf" = xyes
6251 1.108 christos then :
6252 1.108 christos printf "%s\n" "#define HAVE_DPRINTF 1" >>confdefs.h
6253 1.108 christos
6254 1.108 christos fi
6255 1.108 christos ac_fn_c_check_func "$LINENO" "esetfunc" "ac_cv_func_esetfunc"
6256 1.108 christos if test "x$ac_cv_func_esetfunc" = xyes
6257 1.108 christos then :
6258 1.108 christos printf "%s\n" "#define HAVE_ESETFUNC 1" >>confdefs.h
6259 1.108 christos
6260 1.108 christos fi
6261 1.108 christos ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
6262 1.108 christos if test "x$ac_cv_func_fgetln" = xyes
6263 1.108 christos then :
6264 1.108 christos printf "%s\n" "#define HAVE_FGETLN 1" >>confdefs.h
6265 1.108 christos
6266 1.108 christos fi
6267 1.108 christos ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
6268 1.108 christos if test "x$ac_cv_func_flock" = xyes
6269 1.108 christos then :
6270 1.108 christos printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h
6271 1.108 christos
6272 1.108 christos fi
6273 1.108 christos ac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge"
6274 1.108 christos if test "x$ac_cv_func_fpurge" = xyes
6275 1.108 christos then :
6276 1.108 christos printf "%s\n" "#define HAVE_FPURGE 1" >>confdefs.h
6277 1.108 christos
6278 1.108 christos fi
6279 1.108 christos ac_fn_c_check_func "$LINENO" "__fpurge" "ac_cv_func___fpurge"
6280 1.108 christos if test "x$ac_cv_func___fpurge" = xyes
6281 1.108 christos then :
6282 1.108 christos printf "%s\n" "#define HAVE___FPURGE 1" >>confdefs.h
6283 1.108 christos
6284 1.108 christos fi
6285 1.108 christos ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
6286 1.108 christos if test "x$ac_cv_func_futimes" = xyes
6287 1.108 christos then :
6288 1.108 christos printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
6289 1.108 christos
6290 1.108 christos fi
6291 1.108 christos ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
6292 1.108 christos if test "x$ac_cv_func_getline" = xyes
6293 1.108 christos then :
6294 1.108 christos printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
6295 1.108 christos
6296 1.108 christos fi
6297 1.108 christos ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6298 1.108 christos if test "x$ac_cv_func_getopt" = xyes
6299 1.108 christos then :
6300 1.108 christos printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
6301 1.108 christos
6302 1.108 christos fi
6303 1.108 christos ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
6304 1.108 christos if test "x$ac_cv_func_getopt_long" = xyes
6305 1.108 christos then :
6306 1.108 christos printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
6307 1.108 christos
6308 1.108 christos fi
6309 1.108 christos ac_fn_c_check_func "$LINENO" "group_from_gid" "ac_cv_func_group_from_gid"
6310 1.108 christos if test "x$ac_cv_func_group_from_gid" = xyes
6311 1.108 christos then :
6312 1.108 christos printf "%s\n" "#define HAVE_GROUP_FROM_GID 1" >>confdefs.h
6313 1.108 christos
6314 1.108 christos fi
6315 1.108 christos ac_fn_c_check_func "$LINENO" "gid_from_group" "ac_cv_func_gid_from_group"
6316 1.108 christos if test "x$ac_cv_func_gid_from_group" = xyes
6317 1.108 christos then :
6318 1.108 christos printf "%s\n" "#define HAVE_GID_FROM_GROUP 1" >>confdefs.h
6319 1.108 christos
6320 1.108 christos fi
6321 1.108 christos ac_fn_c_check_func "$LINENO" "heapsort" "ac_cv_func_heapsort"
6322 1.108 christos if test "x$ac_cv_func_heapsort" = xyes
6323 1.108 christos then :
6324 1.108 christos printf "%s\n" "#define HAVE_HEAPSORT 1" >>confdefs.h
6325 1.108 christos
6326 1.108 christos fi
6327 1.108 christos ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
6328 1.108 christos if test "x$ac_cv_func_isblank" = xyes
6329 1.108 christos then :
6330 1.108 christos printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h
6331 1.108 christos
6332 1.108 christos fi
6333 1.108 christos ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
6334 1.108 christos if test "x$ac_cv_func_issetugid" = xyes
6335 1.108 christos then :
6336 1.108 christos printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h
6337 1.108 christos
6338 1.108 christos fi
6339 1.108 christos ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
6340 1.108 christos if test "x$ac_cv_func_lchflags" = xyes
6341 1.108 christos then :
6342 1.108 christos printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h
6343 1.108 christos
6344 1.108 christos fi
6345 1.108 christos ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
6346 1.108 christos if test "x$ac_cv_func_lchmod" = xyes
6347 1.108 christos then :
6348 1.108 christos printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h
6349 1.108 christos
6350 1.108 christos fi
6351 1.108 christos ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
6352 1.108 christos if test "x$ac_cv_func_lchown" = xyes
6353 1.108 christos then :
6354 1.108 christos printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
6355 1.108 christos
6356 1.108 christos fi
6357 1.108 christos ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes"
6358 1.108 christos if test "x$ac_cv_func_lutimes" = xyes
6359 1.108 christos then :
6360 1.108 christos printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h
6361 1.108 christos
6362 1.108 christos fi
6363 1.110 christos ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
6364 1.110 christos if test "x$ac_cv_func_mempcpy" = xyes
6365 1.110 christos then :
6366 1.110 christos printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
6367 1.110 christos
6368 1.110 christos fi
6369 1.108 christos ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
6370 1.108 christos if test "x$ac_cv_func_mkstemp" = xyes
6371 1.108 christos then :
6372 1.108 christos printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
6373 1.108 christos
6374 1.108 christos fi
6375 1.108 christos ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
6376 1.108 christos if test "x$ac_cv_func_mkstemps" = xyes
6377 1.108 christos then :
6378 1.108 christos printf "%s\n" "#define HAVE_MKSTEMPS 1" >>confdefs.h
6379 1.108 christos
6380 1.108 christos fi
6381 1.108 christos ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
6382 1.108 christos if test "x$ac_cv_func_mkdtemp" = xyes
6383 1.108 christos then :
6384 1.108 christos printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h
6385 1.108 christos
6386 1.108 christos fi
6387 1.108 christos ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
6388 1.108 christos if test "x$ac_cv_func_poll" = xyes
6389 1.108 christos then :
6390 1.108 christos printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
6391 1.108 christos
6392 1.108 christos fi
6393 1.108 christos ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
6394 1.108 christos if test "x$ac_cv_func_posix_spawn" = xyes
6395 1.108 christos then :
6396 1.108 christos printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h
6397 1.108 christos
6398 1.108 christos fi
6399 1.108 christos ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
6400 1.108 christos if test "x$ac_cv_func_pread" = xyes
6401 1.108 christos then :
6402 1.108 christos printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
6403 1.108 christos
6404 1.108 christos fi
6405 1.108 christos ac_fn_c_check_func "$LINENO" "putc_unlocked" "ac_cv_func_putc_unlocked"
6406 1.108 christos if test "x$ac_cv_func_putc_unlocked" = xyes
6407 1.108 christos then :
6408 1.108 christos printf "%s\n" "#define HAVE_PUTC_UNLOCKED 1" >>confdefs.h
6409 1.108 christos
6410 1.108 christos fi
6411 1.108 christos ac_fn_c_check_func "$LINENO" "pwcache_userdb" "ac_cv_func_pwcache_userdb"
6412 1.108 christos if test "x$ac_cv_func_pwcache_userdb" = xyes
6413 1.108 christos then :
6414 1.108 christos printf "%s\n" "#define HAVE_PWCACHE_USERDB 1" >>confdefs.h
6415 1.108 christos
6416 1.108 christos fi
6417 1.108 christos ac_fn_c_check_func "$LINENO" "pwcache_groupdb" "ac_cv_func_pwcache_groupdb"
6418 1.108 christos if test "x$ac_cv_func_pwcache_groupdb" = xyes
6419 1.108 christos then :
6420 1.108 christos printf "%s\n" "#define HAVE_PWCACHE_GROUPDB 1" >>confdefs.h
6421 1.108 christos
6422 1.108 christos fi
6423 1.108 christos ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
6424 1.108 christos if test "x$ac_cv_func_pwrite" = xyes
6425 1.108 christos then :
6426 1.108 christos printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
6427 1.108 christos
6428 1.108 christos fi
6429 1.108 christos ac_fn_c_check_func "$LINENO" "raise_default_signal" "ac_cv_func_raise_default_signal"
6430 1.108 christos if test "x$ac_cv_func_raise_default_signal" = xyes
6431 1.108 christos then :
6432 1.108 christos printf "%s\n" "#define HAVE_RAISE_DEFAULT_SIGNAL 1" >>confdefs.h
6433 1.108 christos
6434 1.108 christos fi
6435 1.108 christos ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
6436 1.108 christos if test "x$ac_cv_func_random" = xyes
6437 1.108 christos then :
6438 1.108 christos printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
6439 1.108 christos
6440 1.108 christos fi
6441 1.108 christos ac_fn_c_check_func "$LINENO" "reallocarr" "ac_cv_func_reallocarr"
6442 1.108 christos if test "x$ac_cv_func_reallocarr" = xyes
6443 1.108 christos then :
6444 1.108 christos printf "%s\n" "#define HAVE_REALLOCARR 1" >>confdefs.h
6445 1.108 christos
6446 1.108 christos fi
6447 1.108 christos ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
6448 1.108 christos if test "x$ac_cv_func_reallocarray" = xyes
6449 1.108 christos then :
6450 1.108 christos printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
6451 1.108 christos
6452 1.108 christos fi
6453 1.108 christos ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
6454 1.108 christos if test "x$ac_cv_func_setenv" = xyes
6455 1.108 christos then :
6456 1.108 christos printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
6457 1.108 christos
6458 1.108 christos fi
6459 1.108 christos ac_fn_c_check_func "$LINENO" "setgroupent" "ac_cv_func_setgroupent"
6460 1.108 christos if test "x$ac_cv_func_setgroupent" = xyes
6461 1.108 christos then :
6462 1.108 christos printf "%s\n" "#define HAVE_SETGROUPENT 1" >>confdefs.h
6463 1.108 christos
6464 1.108 christos fi
6465 1.108 christos ac_fn_c_check_func "$LINENO" "setprogname" "ac_cv_func_setprogname"
6466 1.108 christos if test "x$ac_cv_func_setprogname" = xyes
6467 1.108 christos then :
6468 1.108 christos printf "%s\n" "#define HAVE_SETPROGNAME 1" >>confdefs.h
6469 1.108 christos
6470 1.108 christos fi
6471 1.108 christos ac_fn_c_check_func "$LINENO" "setpassent" "ac_cv_func_setpassent"
6472 1.108 christos if test "x$ac_cv_func_setpassent" = xyes
6473 1.108 christos then :
6474 1.108 christos printf "%s\n" "#define HAVE_SETPASSENT 1" >>confdefs.h
6475 1.108 christos
6476 1.108 christos fi
6477 1.108 christos ac_fn_c_check_func "$LINENO" "snprintb_m" "ac_cv_func_snprintb_m"
6478 1.108 christos if test "x$ac_cv_func_snprintb_m" = xyes
6479 1.108 christos then :
6480 1.108 christos printf "%s\n" "#define HAVE_SNPRINTB_M 1" >>confdefs.h
6481 1.108 christos
6482 1.63 apb fi
6483 1.108 christos ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
6484 1.108 christos if test "x$ac_cv_func_snprintf" = xyes
6485 1.108 christos then :
6486 1.108 christos printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
6487 1.61 christos
6488 1.84 christos fi
6489 1.108 christos ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
6490 1.108 christos if test "x$ac_cv_func_strlcat" = xyes
6491 1.108 christos then :
6492 1.108 christos printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
6493 1.108 christos
6494 1.108 christos fi
6495 1.108 christos ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
6496 1.108 christos if test "x$ac_cv_func_strlcpy" = xyes
6497 1.108 christos then :
6498 1.108 christos printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
6499 1.108 christos
6500 1.108 christos fi
6501 1.108 christos ac_fn_c_check_func "$LINENO" "strmode" "ac_cv_func_strmode"
6502 1.108 christos if test "x$ac_cv_func_strmode" = xyes
6503 1.108 christos then :
6504 1.108 christos printf "%s\n" "#define HAVE_STRMODE 1" >>confdefs.h
6505 1.108 christos
6506 1.108 christos fi
6507 1.108 christos ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
6508 1.108 christos if test "x$ac_cv_func_strcasecmp" = xyes
6509 1.108 christos then :
6510 1.108 christos printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
6511 1.108 christos
6512 1.108 christos fi
6513 1.108 christos ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
6514 1.108 christos if test "x$ac_cv_func_strncasecmp" = xyes
6515 1.108 christos then :
6516 1.108 christos printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
6517 1.108 christos
6518 1.108 christos fi
6519 1.108 christos ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
6520 1.108 christos if test "x$ac_cv_func_strcasestr" = xyes
6521 1.108 christos then :
6522 1.108 christos printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
6523 1.108 christos
6524 1.108 christos fi
6525 1.108 christos ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
6526 1.108 christos if test "x$ac_cv_func_strndup" = xyes
6527 1.108 christos then :
6528 1.108 christos printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
6529 1.108 christos
6530 1.108 christos fi
6531 1.108 christos ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
6532 1.108 christos if test "x$ac_cv_func_strnlen" = xyes
6533 1.108 christos then :
6534 1.108 christos printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
6535 1.108 christos
6536 1.108 christos fi
6537 1.108 christos ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
6538 1.108 christos if test "x$ac_cv_func_strsep" = xyes
6539 1.108 christos then :
6540 1.108 christos printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
6541 1.108 christos
6542 1.108 christos fi
6543 1.108 christos ac_fn_c_check_func "$LINENO" "strsuftoll" "ac_cv_func_strsuftoll"
6544 1.108 christos if test "x$ac_cv_func_strsuftoll" = xyes
6545 1.108 christos then :
6546 1.108 christos printf "%s\n" "#define HAVE_STRSUFTOLL 1" >>confdefs.h
6547 1.108 christos
6548 1.108 christos fi
6549 1.108 christos ac_fn_c_check_func "$LINENO" "strtoi" "ac_cv_func_strtoi"
6550 1.108 christos if test "x$ac_cv_func_strtoi" = xyes
6551 1.108 christos then :
6552 1.108 christos printf "%s\n" "#define HAVE_STRTOI 1" >>confdefs.h
6553 1.108 christos
6554 1.108 christos fi
6555 1.108 christos ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
6556 1.108 christos if test "x$ac_cv_func_strtoll" = xyes
6557 1.108 christos then :
6558 1.108 christos printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
6559 1.108 christos
6560 1.108 christos fi
6561 1.108 christos ac_fn_c_check_func "$LINENO" "strtou" "ac_cv_func_strtou"
6562 1.108 christos if test "x$ac_cv_func_strtou" = xyes
6563 1.108 christos then :
6564 1.108 christos printf "%s\n" "#define HAVE_STRTOU 1" >>confdefs.h
6565 1.108 christos
6566 1.108 christos fi
6567 1.108 christos ac_fn_c_check_func "$LINENO" "strtonum" "ac_cv_func_strtonum"
6568 1.108 christos if test "x$ac_cv_func_strtonum" = xyes
6569 1.108 christos then :
6570 1.108 christos printf "%s\n" "#define HAVE_STRTONUM 1" >>confdefs.h
6571 1.108 christos
6572 1.108 christos fi
6573 1.108 christos ac_fn_c_check_func "$LINENO" "user_from_uid" "ac_cv_func_user_from_uid"
6574 1.108 christos if test "x$ac_cv_func_user_from_uid" = xyes
6575 1.108 christos then :
6576 1.108 christos printf "%s\n" "#define HAVE_USER_FROM_UID 1" >>confdefs.h
6577 1.108 christos
6578 1.108 christos fi
6579 1.108 christos ac_fn_c_check_func "$LINENO" "uid_from_user" "ac_cv_func_uid_from_user"
6580 1.108 christos if test "x$ac_cv_func_uid_from_user" = xyes
6581 1.108 christos then :
6582 1.108 christos printf "%s\n" "#define HAVE_UID_FROM_USER 1" >>confdefs.h
6583 1.61 christos
6584 1.108 christos fi
6585 1.108 christos ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
6586 1.108 christos if test "x$ac_cv_func_vasprintf" = xyes
6587 1.108 christos then :
6588 1.108 christos printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
6589 1.76 pooka
6590 1.63 apb fi
6591 1.108 christos ac_fn_c_check_func "$LINENO" "vasnprintf" "ac_cv_func_vasnprintf"
6592 1.108 christos if test "x$ac_cv_func_vasnprintf" = xyes
6593 1.108 christos then :
6594 1.108 christos printf "%s\n" "#define HAVE_VASNPRINTF 1" >>confdefs.h
6595 1.76 pooka
6596 1.108 christos fi
6597 1.108 christos ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
6598 1.108 christos if test "x$ac_cv_func_vsnprintf" = xyes
6599 1.108 christos then :
6600 1.108 christos printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
6601 1.61 christos
6602 1.76 pooka fi
6603 1.84 christos
6604 1.45 jmc
6605 1.108 christos ac_fn_check_decl "$LINENO" "user_from_uid" "ac_cv_have_decl_user_from_uid" "
6606 1.84 christos #include <pwd.h>
6607 1.45 jmc
6608 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6609 1.108 christos if test "x$ac_cv_have_decl_user_from_uid" = xyes
6610 1.108 christos then :
6611 1.84 christos ac_have_decl=1
6612 1.108 christos else case e in #(
6613 1.108 christos e) ac_have_decl=0 ;;
6614 1.108 christos esac
6615 1.76 pooka fi
6616 1.108 christos printf "%s\n" "#define HAVE_DECL_USER_FROM_UID $ac_have_decl" >>confdefs.h
6617 1.108 christos ac_fn_check_decl "$LINENO" "uid_from_user" "ac_cv_have_decl_uid_from_user" "
6618 1.84 christos #include <pwd.h>
6619 1.76 pooka
6620 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6621 1.108 christos if test "x$ac_cv_have_decl_uid_from_user" = xyes
6622 1.108 christos then :
6623 1.84 christos ac_have_decl=1
6624 1.108 christos else case e in #(
6625 1.108 christos e) ac_have_decl=0 ;;
6626 1.108 christos esac
6627 1.55 wiz fi
6628 1.108 christos printf "%s\n" "#define HAVE_DECL_UID_FROM_USER $ac_have_decl" >>confdefs.h
6629 1.108 christos ac_fn_check_decl "$LINENO" "pwcache_userdb" "ac_cv_have_decl_pwcache_userdb" "
6630 1.84 christos #include <pwd.h>
6631 1.55 wiz
6632 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6633 1.108 christos if test "x$ac_cv_have_decl_pwcache_userdb" = xyes
6634 1.108 christos then :
6635 1.84 christos ac_have_decl=1
6636 1.108 christos else case e in #(
6637 1.108 christos e) ac_have_decl=0 ;;
6638 1.108 christos esac
6639 1.55 wiz fi
6640 1.108 christos printf "%s\n" "#define HAVE_DECL_PWCACHE_USERDB $ac_have_decl" >>confdefs.h
6641 1.55 wiz
6642 1.108 christos ac_fn_check_decl "$LINENO" "group_from_gid" "ac_cv_have_decl_group_from_gid" "
6643 1.84 christos #include <grp.h>
6644 1.76 pooka
6645 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6646 1.108 christos if test "x$ac_cv_have_decl_group_from_gid" = xyes
6647 1.108 christos then :
6648 1.84 christos ac_have_decl=1
6649 1.108 christos else case e in #(
6650 1.108 christos e) ac_have_decl=0 ;;
6651 1.108 christos esac
6652 1.48 jmc fi
6653 1.108 christos printf "%s\n" "#define HAVE_DECL_GROUP_FROM_GID $ac_have_decl" >>confdefs.h
6654 1.108 christos ac_fn_check_decl "$LINENO" "gid_from_group" "ac_cv_have_decl_gid_from_group" "
6655 1.84 christos #include <grp.h>
6656 1.53 dogcow
6657 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6658 1.108 christos if test "x$ac_cv_have_decl_gid_from_group" = xyes
6659 1.108 christos then :
6660 1.84 christos ac_have_decl=1
6661 1.108 christos else case e in #(
6662 1.108 christos e) ac_have_decl=0 ;;
6663 1.108 christos esac
6664 1.76 pooka fi
6665 1.108 christos printf "%s\n" "#define HAVE_DECL_GID_FROM_GROUP $ac_have_decl" >>confdefs.h
6666 1.108 christos ac_fn_check_decl "$LINENO" "pwcache_groupdb" "ac_cv_have_decl_pwcache_groupdb" "
6667 1.84 christos #include <grp.h>
6668 1.53 dogcow
6669 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6670 1.108 christos if test "x$ac_cv_have_decl_pwcache_groupdb" = xyes
6671 1.108 christos then :
6672 1.84 christos ac_have_decl=1
6673 1.108 christos else case e in #(
6674 1.108 christos e) ac_have_decl=0 ;;
6675 1.108 christos esac
6676 1.53 dogcow fi
6677 1.108 christos printf "%s\n" "#define HAVE_DECL_PWCACHE_GROUPDB $ac_have_decl" >>confdefs.h
6678 1.61 christos
6679 1.108 christos ac_fn_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "
6680 1.108 christos #include <string.h>
6681 1.53 dogcow
6682 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6683 1.108 christos if test "x$ac_cv_have_decl_strcasecmp" = xyes
6684 1.108 christos then :
6685 1.108 christos ac_have_decl=1
6686 1.108 christos else case e in #(
6687 1.108 christos e) ac_have_decl=0 ;;
6688 1.108 christos esac
6689 1.108 christos fi
6690 1.108 christos printf "%s\n" "#define HAVE_DECL_STRCASECMP $ac_have_decl" >>confdefs.h
6691 1.108 christos ac_fn_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "
6692 1.91 christos #include <string.h>
6693 1.91 christos
6694 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6695 1.108 christos if test "x$ac_cv_have_decl_strncasecmp" = xyes
6696 1.108 christos then :
6697 1.91 christos ac_have_decl=1
6698 1.108 christos else case e in #(
6699 1.108 christos e) ac_have_decl=0 ;;
6700 1.108 christos esac
6701 1.91 christos fi
6702 1.108 christos printf "%s\n" "#define HAVE_DECL_STRNCASECMP $ac_have_decl" >>confdefs.h
6703 1.108 christos ac_fn_check_decl "$LINENO" "strcasestr" "ac_cv_have_decl_strcasestr" "
6704 1.92 christos #include <string.h>
6705 1.92 christos
6706 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6707 1.108 christos if test "x$ac_cv_have_decl_strcasestr" = xyes
6708 1.108 christos then :
6709 1.92 christos ac_have_decl=1
6710 1.108 christos else case e in #(
6711 1.108 christos e) ac_have_decl=0 ;;
6712 1.108 christos esac
6713 1.92 christos fi
6714 1.108 christos printf "%s\n" "#define HAVE_DECL_STRCASESTR $ac_have_decl" >>confdefs.h
6715 1.108 christos ac_fn_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
6716 1.85 christos #include <string.h>
6717 1.85 christos
6718 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6719 1.108 christos if test "x$ac_cv_have_decl_strlcpy" = xyes
6720 1.108 christos then :
6721 1.85 christos ac_have_decl=1
6722 1.108 christos else case e in #(
6723 1.108 christos e) ac_have_decl=0 ;;
6724 1.108 christos esac
6725 1.85 christos fi
6726 1.108 christos printf "%s\n" "#define HAVE_DECL_STRLCPY $ac_have_decl" >>confdefs.h
6727 1.108 christos ac_fn_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "
6728 1.85 christos #include <string.h>
6729 1.85 christos
6730 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6731 1.108 christos if test "x$ac_cv_have_decl_strlcat" = xyes
6732 1.108 christos then :
6733 1.85 christos ac_have_decl=1
6734 1.108 christos else case e in #(
6735 1.108 christos e) ac_have_decl=0 ;;
6736 1.108 christos esac
6737 1.85 christos fi
6738 1.108 christos printf "%s\n" "#define HAVE_DECL_STRLCAT $ac_have_decl" >>confdefs.h
6739 1.108 christos ac_fn_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "
6740 1.85 christos #include <string.h>
6741 1.85 christos
6742 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6743 1.108 christos if test "x$ac_cv_have_decl_strndup" = xyes
6744 1.108 christos then :
6745 1.84 christos ac_have_decl=1
6746 1.108 christos else case e in #(
6747 1.108 christos e) ac_have_decl=0 ;;
6748 1.108 christos esac
6749 1.63 apb fi
6750 1.108 christos printf "%s\n" "#define HAVE_DECL_STRNDUP $ac_have_decl" >>confdefs.h
6751 1.108 christos ac_fn_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "
6752 1.85 christos #include <string.h>
6753 1.85 christos
6754 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6755 1.108 christos if test "x$ac_cv_have_decl_strnlen" = xyes
6756 1.108 christos then :
6757 1.84 christos ac_have_decl=1
6758 1.108 christos else case e in #(
6759 1.108 christos e) ac_have_decl=0 ;;
6760 1.108 christos esac
6761 1.74 christos fi
6762 1.108 christos printf "%s\n" "#define HAVE_DECL_STRNLEN $ac_have_decl" >>confdefs.h
6763 1.108 christos ac_fn_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
6764 1.86 christos #include <string.h>
6765 1.86 christos
6766 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6767 1.108 christos if test "x$ac_cv_have_decl_strsep" = xyes
6768 1.108 christos then :
6769 1.86 christos ac_have_decl=1
6770 1.108 christos else case e in #(
6771 1.108 christos e) ac_have_decl=0 ;;
6772 1.108 christos esac
6773 1.86 christos fi
6774 1.108 christos printf "%s\n" "#define HAVE_DECL_STRSEP $ac_have_decl" >>confdefs.h
6775 1.110 christos ac_fn_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "
6776 1.110 christos #include <string.h>
6777 1.110 christos
6778 1.110 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6779 1.110 christos if test "x$ac_cv_have_decl_mempcpy" = xyes
6780 1.110 christos then :
6781 1.110 christos ac_have_decl=1
6782 1.110 christos else case e in #(
6783 1.110 christos e) ac_have_decl=0 ;;
6784 1.110 christos esac
6785 1.110 christos fi
6786 1.110 christos printf "%s\n" "#define HAVE_DECL_MEMPCPY $ac_have_decl" >>confdefs.h
6787 1.86 christos
6788 1.108 christos ac_fn_check_decl "$LINENO" "strsuftoll" "ac_cv_have_decl_strsuftoll" "#include <stdlib.h>
6789 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6790 1.108 christos if test "x$ac_cv_have_decl_strsuftoll" = xyes
6791 1.108 christos then :
6792 1.84 christos ac_have_decl=1
6793 1.108 christos else case e in #(
6794 1.108 christos e) ac_have_decl=0 ;;
6795 1.108 christos esac
6796 1.84 christos fi
6797 1.108 christos printf "%s\n" "#define HAVE_DECL_STRSUFTOLL $ac_have_decl" >>confdefs.h
6798 1.108 christos ac_fn_check_decl "$LINENO" "mi_vector_hash" "ac_cv_have_decl_mi_vector_hash" "#include <stdlib.h>
6799 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6800 1.108 christos if test "x$ac_cv_have_decl_mi_vector_hash" = xyes
6801 1.108 christos then :
6802 1.85 christos ac_have_decl=1
6803 1.108 christos else case e in #(
6804 1.108 christos e) ac_have_decl=0 ;;
6805 1.108 christos esac
6806 1.85 christos fi
6807 1.108 christos printf "%s\n" "#define HAVE_DECL_MI_VECTOR_HASH $ac_have_decl" >>confdefs.h
6808 1.85 christos
6809 1.108 christos ac_fn_check_decl "$LINENO" "lchflags" "ac_cv_have_decl_lchflags" "
6810 1.84 christos #include <sys/stat.h>
6811 1.84 christos #include <unistd.h>
6812 1.61 christos
6813 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6814 1.108 christos if test "x$ac_cv_have_decl_lchflags" = xyes
6815 1.108 christos then :
6816 1.84 christos ac_have_decl=1
6817 1.108 christos else case e in #(
6818 1.108 christos e) ac_have_decl=0 ;;
6819 1.108 christos esac
6820 1.76 pooka fi
6821 1.108 christos printf "%s\n" "#define HAVE_DECL_LCHFLAGS $ac_have_decl" >>confdefs.h
6822 1.108 christos ac_fn_check_decl "$LINENO" "lchmod" "ac_cv_have_decl_lchmod" "
6823 1.84 christos #include <sys/stat.h>
6824 1.84 christos #include <unistd.h>
6825 1.53 dogcow
6826 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6827 1.108 christos if test "x$ac_cv_have_decl_lchmod" = xyes
6828 1.108 christos then :
6829 1.84 christos ac_have_decl=1
6830 1.108 christos else case e in #(
6831 1.108 christos e) ac_have_decl=0 ;;
6832 1.108 christos esac
6833 1.53 dogcow fi
6834 1.108 christos printf "%s\n" "#define HAVE_DECL_LCHMOD $ac_have_decl" >>confdefs.h
6835 1.108 christos ac_fn_check_decl "$LINENO" "lchown" "ac_cv_have_decl_lchown" "
6836 1.84 christos #include <sys/stat.h>
6837 1.84 christos #include <unistd.h>
6838 1.61 christos
6839 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6840 1.108 christos if test "x$ac_cv_have_decl_lchown" = xyes
6841 1.108 christos then :
6842 1.84 christos ac_have_decl=1
6843 1.108 christos else case e in #(
6844 1.108 christos e) ac_have_decl=0 ;;
6845 1.108 christos esac
6846 1.76 pooka fi
6847 1.108 christos printf "%s\n" "#define HAVE_DECL_LCHOWN $ac_have_decl" >>confdefs.h
6848 1.84 christos
6849 1.84 christos
6850 1.108 christos ac_fn_check_decl "$LINENO" "err" "ac_cv_have_decl_err" "
6851 1.85 christos #ifdef HAVE_ERR_H
6852 1.85 christos #include <err.h>
6853 1.85 christos #endif
6854 1.85 christos
6855 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6856 1.108 christos if test "x$ac_cv_have_decl_err" = xyes
6857 1.108 christos then :
6858 1.85 christos ac_have_decl=1
6859 1.108 christos else case e in #(
6860 1.108 christos e) ac_have_decl=0 ;;
6861 1.108 christos esac
6862 1.85 christos fi
6863 1.108 christos printf "%s\n" "#define HAVE_DECL_ERR $ac_have_decl" >>confdefs.h
6864 1.108 christos ac_fn_check_decl "$LINENO" "errc" "ac_cv_have_decl_errc" "
6865 1.84 christos #ifdef HAVE_ERR_H
6866 1.84 christos #include <err.h>
6867 1.84 christos #endif
6868 1.61 christos
6869 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6870 1.108 christos if test "x$ac_cv_have_decl_errc" = xyes
6871 1.108 christos then :
6872 1.84 christos ac_have_decl=1
6873 1.108 christos else case e in #(
6874 1.108 christos e) ac_have_decl=0 ;;
6875 1.108 christos esac
6876 1.76 pooka fi
6877 1.108 christos printf "%s\n" "#define HAVE_DECL_ERRC $ac_have_decl" >>confdefs.h
6878 1.108 christos ac_fn_check_decl "$LINENO" "errx" "ac_cv_have_decl_errx" "
6879 1.85 christos #ifdef HAVE_ERR_H
6880 1.85 christos #include <err.h>
6881 1.85 christos #endif
6882 1.85 christos
6883 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6884 1.108 christos if test "x$ac_cv_have_decl_errx" = xyes
6885 1.108 christos then :
6886 1.85 christos ac_have_decl=1
6887 1.108 christos else case e in #(
6888 1.108 christos e) ac_have_decl=0 ;;
6889 1.108 christos esac
6890 1.85 christos fi
6891 1.108 christos printf "%s\n" "#define HAVE_DECL_ERRX $ac_have_decl" >>confdefs.h
6892 1.108 christos ac_fn_check_decl "$LINENO" "verrc" "ac_cv_have_decl_verrc" "
6893 1.84 christos #ifdef HAVE_ERR_H
6894 1.84 christos #include <err.h>
6895 1.76 pooka #endif
6896 1.53 dogcow
6897 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6898 1.108 christos if test "x$ac_cv_have_decl_verrc" = xyes
6899 1.108 christos then :
6900 1.84 christos ac_have_decl=1
6901 1.108 christos else case e in #(
6902 1.108 christos e) ac_have_decl=0 ;;
6903 1.108 christos esac
6904 1.53 dogcow fi
6905 1.108 christos printf "%s\n" "#define HAVE_DECL_VERRC $ac_have_decl" >>confdefs.h
6906 1.108 christos ac_fn_check_decl "$LINENO" "verrx" "ac_cv_have_decl_verrx" "
6907 1.85 christos #ifdef HAVE_ERR_H
6908 1.85 christos #include <err.h>
6909 1.85 christos #endif
6910 1.85 christos
6911 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6912 1.108 christos if test "x$ac_cv_have_decl_verrx" = xyes
6913 1.108 christos then :
6914 1.85 christos ac_have_decl=1
6915 1.108 christos else case e in #(
6916 1.108 christos e) ac_have_decl=0 ;;
6917 1.108 christos esac
6918 1.85 christos fi
6919 1.108 christos printf "%s\n" "#define HAVE_DECL_VERRX $ac_have_decl" >>confdefs.h
6920 1.108 christos ac_fn_check_decl "$LINENO" "warn" "ac_cv_have_decl_warn" "
6921 1.85 christos #ifdef HAVE_ERR_H
6922 1.85 christos #include <err.h>
6923 1.85 christos #endif
6924 1.85 christos
6925 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6926 1.108 christos if test "x$ac_cv_have_decl_warn" = xyes
6927 1.108 christos then :
6928 1.85 christos ac_have_decl=1
6929 1.108 christos else case e in #(
6930 1.108 christos e) ac_have_decl=0 ;;
6931 1.108 christos esac
6932 1.85 christos fi
6933 1.108 christos printf "%s\n" "#define HAVE_DECL_WARN $ac_have_decl" >>confdefs.h
6934 1.108 christos ac_fn_check_decl "$LINENO" "warnc" "ac_cv_have_decl_warnc" "
6935 1.84 christos #ifdef HAVE_ERR_H
6936 1.84 christos #include <err.h>
6937 1.84 christos #endif
6938 1.53 dogcow
6939 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6940 1.108 christos if test "x$ac_cv_have_decl_warnc" = xyes
6941 1.108 christos then :
6942 1.84 christos ac_have_decl=1
6943 1.108 christos else case e in #(
6944 1.108 christos e) ac_have_decl=0 ;;
6945 1.108 christos esac
6946 1.53 dogcow fi
6947 1.108 christos printf "%s\n" "#define HAVE_DECL_WARNC $ac_have_decl" >>confdefs.h
6948 1.108 christos ac_fn_check_decl "$LINENO" "warnx" "ac_cv_have_decl_warnx" "
6949 1.85 christos #ifdef HAVE_ERR_H
6950 1.85 christos #include <err.h>
6951 1.85 christos #endif
6952 1.85 christos
6953 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6954 1.108 christos if test "x$ac_cv_have_decl_warnx" = xyes
6955 1.108 christos then :
6956 1.85 christos ac_have_decl=1
6957 1.108 christos else case e in #(
6958 1.108 christos e) ac_have_decl=0 ;;
6959 1.108 christos esac
6960 1.85 christos fi
6961 1.108 christos printf "%s\n" "#define HAVE_DECL_WARNX $ac_have_decl" >>confdefs.h
6962 1.108 christos ac_fn_check_decl "$LINENO" "vwarnc" "ac_cv_have_decl_vwarnc" "
6963 1.84 christos #ifdef HAVE_ERR_H
6964 1.84 christos #include <err.h>
6965 1.76 pooka #endif
6966 1.53 dogcow
6967 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6968 1.108 christos if test "x$ac_cv_have_decl_vwarnc" = xyes
6969 1.108 christos then :
6970 1.84 christos ac_have_decl=1
6971 1.108 christos else case e in #(
6972 1.108 christos e) ac_have_decl=0 ;;
6973 1.108 christos esac
6974 1.76 pooka fi
6975 1.108 christos printf "%s\n" "#define HAVE_DECL_VWARNC $ac_have_decl" >>confdefs.h
6976 1.108 christos ac_fn_check_decl "$LINENO" "vwarnx" "ac_cv_have_decl_vwarnx" "
6977 1.85 christos #ifdef HAVE_ERR_H
6978 1.85 christos #include <err.h>
6979 1.85 christos #endif
6980 1.85 christos
6981 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6982 1.108 christos if test "x$ac_cv_have_decl_vwarnx" = xyes
6983 1.108 christos then :
6984 1.85 christos ac_have_decl=1
6985 1.108 christos else case e in #(
6986 1.108 christos e) ac_have_decl=0 ;;
6987 1.108 christos esac
6988 1.85 christos fi
6989 1.108 christos printf "%s\n" "#define HAVE_DECL_VWARNX $ac_have_decl" >>confdefs.h
6990 1.84 christos
6991 1.53 dogcow
6992 1.111 nia ac_fn_check_decl "$LINENO" "htobe16" "ac_cv_have_decl_htobe16" "#include <sys/endian.h>
6993 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
6994 1.108 christos if test "x$ac_cv_have_decl_htobe16" = xyes
6995 1.108 christos then :
6996 1.84 christos ac_have_decl=1
6997 1.108 christos else case e in #(
6998 1.108 christos e) ac_have_decl=0 ;;
6999 1.108 christos esac
7000 1.84 christos fi
7001 1.108 christos printf "%s\n" "#define HAVE_DECL_HTOBE16 $ac_have_decl" >>confdefs.h
7002 1.111 nia ac_fn_check_decl "$LINENO" "htobe32" "ac_cv_have_decl_htobe32" "#include <sys/endian.h>
7003 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7004 1.108 christos if test "x$ac_cv_have_decl_htobe32" = xyes
7005 1.108 christos then :
7006 1.84 christos ac_have_decl=1
7007 1.108 christos else case e in #(
7008 1.108 christos e) ac_have_decl=0 ;;
7009 1.108 christos esac
7010 1.74 christos fi
7011 1.108 christos printf "%s\n" "#define HAVE_DECL_HTOBE32 $ac_have_decl" >>confdefs.h
7012 1.111 nia ac_fn_check_decl "$LINENO" "htobe64" "ac_cv_have_decl_htobe64" "#include <sys/endian.h>
7013 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7014 1.108 christos if test "x$ac_cv_have_decl_htobe64" = xyes
7015 1.108 christos then :
7016 1.84 christos ac_have_decl=1
7017 1.108 christos else case e in #(
7018 1.108 christos e) ac_have_decl=0 ;;
7019 1.108 christos esac
7020 1.84 christos fi
7021 1.108 christos printf "%s\n" "#define HAVE_DECL_HTOBE64 $ac_have_decl" >>confdefs.h
7022 1.111 nia ac_fn_check_decl "$LINENO" "htole16" "ac_cv_have_decl_htole16" "#include <sys/endian.h>
7023 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7024 1.108 christos if test "x$ac_cv_have_decl_htole16" = xyes
7025 1.108 christos then :
7026 1.84 christos ac_have_decl=1
7027 1.108 christos else case e in #(
7028 1.108 christos e) ac_have_decl=0 ;;
7029 1.108 christos esac
7030 1.84 christos fi
7031 1.108 christos printf "%s\n" "#define HAVE_DECL_HTOLE16 $ac_have_decl" >>confdefs.h
7032 1.111 nia ac_fn_check_decl "$LINENO" "htole32" "ac_cv_have_decl_htole32" "#include <sys/endian.h>
7033 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7034 1.108 christos if test "x$ac_cv_have_decl_htole32" = xyes
7035 1.108 christos then :
7036 1.84 christos ac_have_decl=1
7037 1.108 christos else case e in #(
7038 1.108 christos e) ac_have_decl=0 ;;
7039 1.108 christos esac
7040 1.76 pooka fi
7041 1.108 christos printf "%s\n" "#define HAVE_DECL_HTOLE32 $ac_have_decl" >>confdefs.h
7042 1.111 nia ac_fn_check_decl "$LINENO" "htole64" "ac_cv_have_decl_htole64" "#include <sys/endian.h>
7043 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7044 1.108 christos if test "x$ac_cv_have_decl_htole64" = xyes
7045 1.108 christos then :
7046 1.84 christos ac_have_decl=1
7047 1.108 christos else case e in #(
7048 1.108 christos e) ac_have_decl=0 ;;
7049 1.108 christos esac
7050 1.53 dogcow fi
7051 1.108 christos printf "%s\n" "#define HAVE_DECL_HTOLE64 $ac_have_decl" >>confdefs.h
7052 1.111 nia ac_fn_check_decl "$LINENO" "be16toh" "ac_cv_have_decl_be16toh" "#include <sys/endian.h>
7053 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7054 1.108 christos if test "x$ac_cv_have_decl_be16toh" = xyes
7055 1.108 christos then :
7056 1.84 christos ac_have_decl=1
7057 1.108 christos else case e in #(
7058 1.108 christos e) ac_have_decl=0 ;;
7059 1.108 christos esac
7060 1.84 christos fi
7061 1.108 christos printf "%s\n" "#define HAVE_DECL_BE16TOH $ac_have_decl" >>confdefs.h
7062 1.111 nia ac_fn_check_decl "$LINENO" "be32toh" "ac_cv_have_decl_be32toh" "#include <sys/endian.h>
7063 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7064 1.108 christos if test "x$ac_cv_have_decl_be32toh" = xyes
7065 1.108 christos then :
7066 1.84 christos ac_have_decl=1
7067 1.108 christos else case e in #(
7068 1.108 christos e) ac_have_decl=0 ;;
7069 1.108 christos esac
7070 1.84 christos fi
7071 1.108 christos printf "%s\n" "#define HAVE_DECL_BE32TOH $ac_have_decl" >>confdefs.h
7072 1.111 nia ac_fn_check_decl "$LINENO" "be64toh" "ac_cv_have_decl_be64toh" "#include <sys/endian.h>
7073 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7074 1.108 christos if test "x$ac_cv_have_decl_be64toh" = xyes
7075 1.108 christos then :
7076 1.84 christos ac_have_decl=1
7077 1.108 christos else case e in #(
7078 1.108 christos e) ac_have_decl=0 ;;
7079 1.108 christos esac
7080 1.53 dogcow fi
7081 1.108 christos printf "%s\n" "#define HAVE_DECL_BE64TOH $ac_have_decl" >>confdefs.h
7082 1.111 nia ac_fn_check_decl "$LINENO" "le16toh" "ac_cv_have_decl_le16toh" "#include <sys/endian.h>
7083 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7084 1.108 christos if test "x$ac_cv_have_decl_le16toh" = xyes
7085 1.108 christos then :
7086 1.84 christos ac_have_decl=1
7087 1.108 christos else case e in #(
7088 1.108 christos e) ac_have_decl=0 ;;
7089 1.108 christos esac
7090 1.84 christos fi
7091 1.108 christos printf "%s\n" "#define HAVE_DECL_LE16TOH $ac_have_decl" >>confdefs.h
7092 1.111 nia ac_fn_check_decl "$LINENO" "le32toh" "ac_cv_have_decl_le32toh" "#include <sys/endian.h>
7093 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7094 1.108 christos if test "x$ac_cv_have_decl_le32toh" = xyes
7095 1.108 christos then :
7096 1.84 christos ac_have_decl=1
7097 1.108 christos else case e in #(
7098 1.108 christos e) ac_have_decl=0 ;;
7099 1.108 christos esac
7100 1.84 christos fi
7101 1.108 christos printf "%s\n" "#define HAVE_DECL_LE32TOH $ac_have_decl" >>confdefs.h
7102 1.111 nia ac_fn_check_decl "$LINENO" "le64toh" "ac_cv_have_decl_le64toh" "#include <sys/endian.h>
7103 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7104 1.108 christos if test "x$ac_cv_have_decl_le64toh" = xyes
7105 1.108 christos then :
7106 1.84 christos ac_have_decl=1
7107 1.108 christos else case e in #(
7108 1.108 christos e) ac_have_decl=0 ;;
7109 1.108 christos esac
7110 1.53 dogcow fi
7111 1.108 christos printf "%s\n" "#define HAVE_DECL_LE64TOH $ac_have_decl" >>confdefs.h
7112 1.84 christos
7113 1.53 dogcow
7114 1.108 christos ac_fn_check_decl "$LINENO" "bswap16" "ac_cv_have_decl_bswap16" "#include <machine/bswap.h>
7115 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7116 1.108 christos if test "x$ac_cv_have_decl_bswap16" = xyes
7117 1.108 christos then :
7118 1.84 christos ac_have_decl=1
7119 1.108 christos else case e in #(
7120 1.108 christos e) ac_have_decl=0 ;;
7121 1.108 christos esac
7122 1.84 christos fi
7123 1.108 christos printf "%s\n" "#define HAVE_DECL_BSWAP16 $ac_have_decl" >>confdefs.h
7124 1.108 christos ac_fn_check_decl "$LINENO" "bswap32" "ac_cv_have_decl_bswap32" "#include <machine/bswap.h>
7125 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7126 1.108 christos if test "x$ac_cv_have_decl_bswap32" = xyes
7127 1.108 christos then :
7128 1.84 christos ac_have_decl=1
7129 1.108 christos else case e in #(
7130 1.108 christos e) ac_have_decl=0 ;;
7131 1.108 christos esac
7132 1.74 christos fi
7133 1.108 christos printf "%s\n" "#define HAVE_DECL_BSWAP32 $ac_have_decl" >>confdefs.h
7134 1.108 christos ac_fn_check_decl "$LINENO" "bswap64" "ac_cv_have_decl_bswap64" "#include <machine/bswap.h>
7135 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7136 1.108 christos if test "x$ac_cv_have_decl_bswap64" = xyes
7137 1.108 christos then :
7138 1.84 christos ac_have_decl=1
7139 1.108 christos else case e in #(
7140 1.108 christos e) ac_have_decl=0 ;;
7141 1.108 christos esac
7142 1.74 christos fi
7143 1.108 christos printf "%s\n" "#define HAVE_DECL_BSWAP64 $ac_have_decl" >>confdefs.h
7144 1.84 christos
7145 1.61 christos
7146 1.108 christos ac_fn_check_decl "$LINENO" "be16enc" "ac_cv_have_decl_be16enc" "#include <sys/endian.h>
7147 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7148 1.108 christos if test "x$ac_cv_have_decl_be16enc" = xyes
7149 1.108 christos then :
7150 1.84 christos ac_have_decl=1
7151 1.108 christos else case e in #(
7152 1.108 christos e) ac_have_decl=0 ;;
7153 1.108 christos esac
7154 1.84 christos fi
7155 1.108 christos printf "%s\n" "#define HAVE_DECL_BE16ENC $ac_have_decl" >>confdefs.h
7156 1.108 christos ac_fn_check_decl "$LINENO" "le16enc" "ac_cv_have_decl_le16enc" "#include <sys/endian.h>
7157 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7158 1.108 christos if test "x$ac_cv_have_decl_le16enc" = xyes
7159 1.108 christos then :
7160 1.84 christos ac_have_decl=1
7161 1.108 christos else case e in #(
7162 1.108 christos e) ac_have_decl=0 ;;
7163 1.108 christos esac
7164 1.74 christos fi
7165 1.108 christos printf "%s\n" "#define HAVE_DECL_LE16ENC $ac_have_decl" >>confdefs.h
7166 1.108 christos ac_fn_check_decl "$LINENO" "be16dec" "ac_cv_have_decl_be16dec" "#include <sys/endian.h>
7167 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7168 1.108 christos if test "x$ac_cv_have_decl_be16dec" = xyes
7169 1.108 christos then :
7170 1.84 christos ac_have_decl=1
7171 1.108 christos else case e in #(
7172 1.108 christos e) ac_have_decl=0 ;;
7173 1.108 christos esac
7174 1.84 christos fi
7175 1.108 christos printf "%s\n" "#define HAVE_DECL_BE16DEC $ac_have_decl" >>confdefs.h
7176 1.108 christos ac_fn_check_decl "$LINENO" "le16dec" "ac_cv_have_decl_le16dec" "#include <sys/endian.h>
7177 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7178 1.108 christos if test "x$ac_cv_have_decl_le16dec" = xyes
7179 1.108 christos then :
7180 1.84 christos ac_have_decl=1
7181 1.108 christos else case e in #(
7182 1.108 christos e) ac_have_decl=0 ;;
7183 1.108 christos esac
7184 1.84 christos fi
7185 1.108 christos printf "%s\n" "#define HAVE_DECL_LE16DEC $ac_have_decl" >>confdefs.h
7186 1.108 christos ac_fn_check_decl "$LINENO" "be32enc" "ac_cv_have_decl_be32enc" "#include <sys/endian.h>
7187 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7188 1.108 christos if test "x$ac_cv_have_decl_be32enc" = xyes
7189 1.108 christos then :
7190 1.84 christos ac_have_decl=1
7191 1.108 christos else case e in #(
7192 1.108 christos e) ac_have_decl=0 ;;
7193 1.108 christos esac
7194 1.74 christos fi
7195 1.108 christos printf "%s\n" "#define HAVE_DECL_BE32ENC $ac_have_decl" >>confdefs.h
7196 1.108 christos ac_fn_check_decl "$LINENO" "le32enc" "ac_cv_have_decl_le32enc" "#include <sys/endian.h>
7197 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7198 1.108 christos if test "x$ac_cv_have_decl_le32enc" = xyes
7199 1.108 christos then :
7200 1.84 christos ac_have_decl=1
7201 1.108 christos else case e in #(
7202 1.108 christos e) ac_have_decl=0 ;;
7203 1.108 christos esac
7204 1.54 wiz fi
7205 1.108 christos printf "%s\n" "#define HAVE_DECL_LE32ENC $ac_have_decl" >>confdefs.h
7206 1.108 christos ac_fn_check_decl "$LINENO" "be32dec" "ac_cv_have_decl_be32dec" "#include <sys/endian.h>
7207 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7208 1.108 christos if test "x$ac_cv_have_decl_be32dec" = xyes
7209 1.108 christos then :
7210 1.84 christos ac_have_decl=1
7211 1.108 christos else case e in #(
7212 1.108 christos e) ac_have_decl=0 ;;
7213 1.108 christos esac
7214 1.84 christos fi
7215 1.108 christos printf "%s\n" "#define HAVE_DECL_BE32DEC $ac_have_decl" >>confdefs.h
7216 1.108 christos ac_fn_check_decl "$LINENO" "le32dec" "ac_cv_have_decl_le32dec" "#include <sys/endian.h>
7217 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7218 1.108 christos if test "x$ac_cv_have_decl_le32dec" = xyes
7219 1.108 christos then :
7220 1.84 christos ac_have_decl=1
7221 1.108 christos else case e in #(
7222 1.108 christos e) ac_have_decl=0 ;;
7223 1.108 christos esac
7224 1.76 pooka fi
7225 1.108 christos printf "%s\n" "#define HAVE_DECL_LE32DEC $ac_have_decl" >>confdefs.h
7226 1.108 christos ac_fn_check_decl "$LINENO" "be64enc" "ac_cv_have_decl_be64enc" "#include <sys/endian.h>
7227 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7228 1.108 christos if test "x$ac_cv_have_decl_be64enc" = xyes
7229 1.108 christos then :
7230 1.84 christos ac_have_decl=1
7231 1.108 christos else case e in #(
7232 1.108 christos e) ac_have_decl=0 ;;
7233 1.108 christos esac
7234 1.54 wiz fi
7235 1.108 christos printf "%s\n" "#define HAVE_DECL_BE64ENC $ac_have_decl" >>confdefs.h
7236 1.108 christos ac_fn_check_decl "$LINENO" "le64enc" "ac_cv_have_decl_le64enc" "#include <sys/endian.h>
7237 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7238 1.108 christos if test "x$ac_cv_have_decl_le64enc" = xyes
7239 1.108 christos then :
7240 1.84 christos ac_have_decl=1
7241 1.108 christos else case e in #(
7242 1.108 christos e) ac_have_decl=0 ;;
7243 1.108 christos esac
7244 1.74 christos fi
7245 1.108 christos printf "%s\n" "#define HAVE_DECL_LE64ENC $ac_have_decl" >>confdefs.h
7246 1.108 christos ac_fn_check_decl "$LINENO" "be64dec" "ac_cv_have_decl_be64dec" "#include <sys/endian.h>
7247 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7248 1.108 christos if test "x$ac_cv_have_decl_be64dec" = xyes
7249 1.108 christos then :
7250 1.84 christos ac_have_decl=1
7251 1.108 christos else case e in #(
7252 1.108 christos e) ac_have_decl=0 ;;
7253 1.108 christos esac
7254 1.84 christos fi
7255 1.108 christos printf "%s\n" "#define HAVE_DECL_BE64DEC $ac_have_decl" >>confdefs.h
7256 1.108 christos ac_fn_check_decl "$LINENO" "le64dec" "ac_cv_have_decl_le64dec" "#include <sys/endian.h>
7257 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7258 1.108 christos if test "x$ac_cv_have_decl_le64dec" = xyes
7259 1.108 christos then :
7260 1.84 christos ac_have_decl=1
7261 1.108 christos else case e in #(
7262 1.108 christos e) ac_have_decl=0 ;;
7263 1.108 christos esac
7264 1.74 christos fi
7265 1.108 christos printf "%s\n" "#define HAVE_DECL_LE64DEC $ac_have_decl" >>confdefs.h
7266 1.84 christos
7267 1.74 christos
7268 1.108 christos ac_fn_check_decl "$LINENO" "fstatvfs" "ac_cv_have_decl_fstatvfs" "#include <sys/statvfs.h>
7269 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7270 1.108 christos if test "x$ac_cv_have_decl_fstatvfs" = xyes
7271 1.108 christos then :
7272 1.84 christos ac_have_decl=1
7273 1.108 christos else case e in #(
7274 1.108 christos e) ac_have_decl=0 ;;
7275 1.108 christos esac
7276 1.84 christos fi
7277 1.108 christos printf "%s\n" "#define HAVE_DECL_FSTATVFS $ac_have_decl" >>confdefs.h
7278 1.54 wiz
7279 1.54 wiz
7280 1.108 christos ac_fn_check_decl "$LINENO" "setgroupent" "ac_cv_have_decl_setgroupent" "
7281 1.76 pooka #include <sys/types.h>
7282 1.76 pooka #include <grp.h>
7283 1.76 pooka #include <pwd.h>
7284 1.45 jmc
7285 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7286 1.108 christos if test "x$ac_cv_have_decl_setgroupent" = xyes
7287 1.108 christos then :
7288 1.84 christos ac_have_decl=1
7289 1.108 christos else case e in #(
7290 1.108 christos e) ac_have_decl=0 ;;
7291 1.108 christos esac
7292 1.1 tv fi
7293 1.108 christos printf "%s\n" "#define HAVE_DECL_SETGROUPENT $ac_have_decl" >>confdefs.h
7294 1.108 christos ac_fn_check_decl "$LINENO" "setpassent" "ac_cv_have_decl_setpassent" "
7295 1.33 thorpej #include <sys/types.h>
7296 1.8 tv #include <grp.h>
7297 1.8 tv #include <pwd.h>
7298 1.8 tv
7299 1.108 christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
7300 1.108 christos if test "x$ac_cv_have_decl_setpassent" = xyes
7301 1.108 christos then :
7302 1.84 christos ac_have_decl=1
7303 1.108 christos else case e in #(
7304 1.108 christos e) ac_have_decl=0 ;;
7305 1.108 christos esac
7306 1.8 tv fi
7307 1.108 christos printf "%s\n" "#define HAVE_DECL_SETPASSENT $ac_have_decl" >>confdefs.h
7308 1.76 pooka
7309 1.8 tv
7310 1.4 tv # regcomp() and regexec() are also names of functions in the old V8
7311 1.4 tv # regexp package. To avoid them, we need to find out who has regfree().
7312 1.4 tv
7313 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regfree in -lregex" >&5
7314 1.108 christos printf %s "checking for regfree in -lregex... " >&6; }
7315 1.108 christos if test ${ac_cv_lib_regex_regfree+y}
7316 1.108 christos then :
7317 1.108 christos printf %s "(cached) " >&6
7318 1.108 christos else case e in #(
7319 1.108 christos e) ac_check_lib_save_LIBS=$LIBS
7320 1.4 tv LIBS="-lregex $LIBS"
7321 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 1.84 christos /* end confdefs.h. */
7323 1.4 tv
7324 1.84 christos /* Override any GCC internal prototype to avoid an error.
7325 1.84 christos Use char because int might match the return type of a GCC
7326 1.108 christos builtin and then its argument prototype would still apply.
7327 1.108 christos The 'extern "C"' is for builds by C++ compilers;
7328 1.108 christos although this is not generally supported in C code supporting it here
7329 1.108 christos has little cost and some practical benefit (sr 110532). */
7330 1.4 tv #ifdef __cplusplus
7331 1.4 tv extern "C"
7332 1.4 tv #endif
7333 1.108 christos char regfree (void);
7334 1.4 tv int
7335 1.108 christos main (void)
7336 1.4 tv {
7337 1.84 christos return regfree ();
7338 1.4 tv ;
7339 1.4 tv return 0;
7340 1.4 tv }
7341 1.4 tv _ACEOF
7342 1.108 christos if ac_fn_c_try_link "$LINENO"
7343 1.108 christos then :
7344 1.4 tv ac_cv_lib_regex_regfree=yes
7345 1.108 christos else case e in #(
7346 1.108 christos e) ac_cv_lib_regex_regfree=no ;;
7347 1.108 christos esac
7348 1.4 tv fi
7349 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
7350 1.84 christos conftest$ac_exeext conftest.$ac_ext
7351 1.108 christos LIBS=$ac_check_lib_save_LIBS ;;
7352 1.108 christos esac
7353 1.4 tv fi
7354 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regfree" >&5
7355 1.108 christos printf "%s\n" "$ac_cv_lib_regex_regfree" >&6; }
7356 1.108 christos if test "x$ac_cv_lib_regex_regfree" = xyes
7357 1.108 christos then :
7358 1.108 christos printf "%s\n" "#define HAVE_LIBREGEX 1" >>confdefs.h
7359 1.4 tv
7360 1.4 tv LIBS="-lregex $LIBS"
7361 1.4 tv
7362 1.4 tv fi
7363 1.4 tv
7364 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
7365 1.108 christos printf %s "checking for library containing regfree... " >&6; }
7366 1.108 christos if test ${ac_cv_search_regfree+y}
7367 1.108 christos then :
7368 1.108 christos printf %s "(cached) " >&6
7369 1.108 christos else case e in #(
7370 1.108 christos e) ac_func_search_save_LIBS=$LIBS
7371 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 1.84 christos /* end confdefs.h. */
7373 1.1 tv
7374 1.84 christos /* Override any GCC internal prototype to avoid an error.
7375 1.84 christos Use char because int might match the return type of a GCC
7376 1.108 christos builtin and then its argument prototype would still apply.
7377 1.108 christos The 'extern "C"' is for builds by C++ compilers;
7378 1.108 christos although this is not generally supported in C code supporting it here
7379 1.108 christos has little cost and some practical benefit (sr 110532). */
7380 1.1 tv #ifdef __cplusplus
7381 1.1 tv extern "C"
7382 1.1 tv #endif
7383 1.108 christos char regfree (void);
7384 1.1 tv int
7385 1.108 christos main (void)
7386 1.1 tv {
7387 1.84 christos return regfree ();
7388 1.1 tv ;
7389 1.1 tv return 0;
7390 1.1 tv }
7391 1.1 tv _ACEOF
7392 1.108 christos for ac_lib in '' rx posix
7393 1.108 christos do
7394 1.84 christos if test -z "$ac_lib"; then
7395 1.84 christos ac_res="none required"
7396 1.84 christos else
7397 1.84 christos ac_res=-l$ac_lib
7398 1.66 tsutsui LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7399 1.84 christos fi
7400 1.108 christos if ac_fn_c_try_link "$LINENO"
7401 1.108 christos then :
7402 1.84 christos ac_cv_search_regfree=$ac_res
7403 1.84 christos fi
7404 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
7405 1.84 christos conftest$ac_exeext
7406 1.108 christos if test ${ac_cv_search_regfree+y}
7407 1.108 christos then :
7408 1.84 christos break
7409 1.84 christos fi
7410 1.84 christos done
7411 1.108 christos if test ${ac_cv_search_regfree+y}
7412 1.108 christos then :
7413 1.1 tv
7414 1.108 christos else case e in #(
7415 1.108 christos e) ac_cv_search_regfree=no ;;
7416 1.108 christos esac
7417 1.1 tv fi
7418 1.84 christos rm conftest.$ac_ext
7419 1.108 christos LIBS=$ac_func_search_save_LIBS ;;
7420 1.108 christos esac
7421 1.1 tv fi
7422 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
7423 1.108 christos printf "%s\n" "$ac_cv_search_regfree" >&6; }
7424 1.84 christos ac_res=$ac_cv_search_regfree
7425 1.108 christos if test "$ac_res" != no
7426 1.108 christos then :
7427 1.84 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7428 1.1 tv
7429 1.1 tv fi
7430 1.1 tv
7431 1.84 christos
7432 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
7433 1.108 christos printf %s "checking for clock_gettime in -lrt... " >&6; }
7434 1.108 christos if test ${ac_cv_lib_rt_clock_gettime+y}
7435 1.108 christos then :
7436 1.108 christos printf %s "(cached) " >&6
7437 1.108 christos else case e in #(
7438 1.108 christos e) ac_check_lib_save_LIBS=$LIBS
7439 1.78 jmcneill LIBS="-lrt $LIBS"
7440 1.84 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 1.84 christos /* end confdefs.h. */
7442 1.78 jmcneill
7443 1.84 christos /* Override any GCC internal prototype to avoid an error.
7444 1.84 christos Use char because int might match the return type of a GCC
7445 1.108 christos builtin and then its argument prototype would still apply.
7446 1.108 christos The 'extern "C"' is for builds by C++ compilers;
7447 1.108 christos although this is not generally supported in C code supporting it here
7448 1.108 christos has little cost and some practical benefit (sr 110532). */
7449 1.78 jmcneill #ifdef __cplusplus
7450 1.78 jmcneill extern "C"
7451 1.78 jmcneill #endif
7452 1.108 christos char clock_gettime (void);
7453 1.78 jmcneill int
7454 1.108 christos main (void)
7455 1.78 jmcneill {
7456 1.84 christos return clock_gettime ();
7457 1.78 jmcneill ;
7458 1.78 jmcneill return 0;
7459 1.78 jmcneill }
7460 1.78 jmcneill _ACEOF
7461 1.108 christos if ac_fn_c_try_link "$LINENO"
7462 1.108 christos then :
7463 1.78 jmcneill ac_cv_lib_rt_clock_gettime=yes
7464 1.108 christos else case e in #(
7465 1.108 christos e) ac_cv_lib_rt_clock_gettime=no ;;
7466 1.108 christos esac
7467 1.78 jmcneill fi
7468 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
7469 1.84 christos conftest$ac_exeext conftest.$ac_ext
7470 1.108 christos LIBS=$ac_check_lib_save_LIBS ;;
7471 1.108 christos esac
7472 1.78 jmcneill fi
7473 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
7474 1.108 christos printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
7475 1.108 christos if test "x$ac_cv_lib_rt_clock_gettime" = xyes
7476 1.108 christos then :
7477 1.108 christos printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
7478 1.78 jmcneill
7479 1.78 jmcneill LIBS="-lrt $LIBS"
7480 1.78 jmcneill
7481 1.78 jmcneill fi
7482 1.78 jmcneill
7483 1.84 christos
7484 1.108 christos
7485 1.108 christos for ac_func in fparseln
7486 1.84 christos do :
7487 1.84 christos ac_fn_c_check_func "$LINENO" "fparseln" "ac_cv_func_fparseln"
7488 1.108 christos if test "x$ac_cv_func_fparseln" = xyes
7489 1.108 christos then :
7490 1.108 christos printf "%s\n" "#define HAVE_FPARSELN 1" >>confdefs.h
7491 1.108 christos
7492 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fparseln seems to work" >&5
7493 1.108 christos printf %s "checking if fparseln seems to work... " >&6; }
7494 1.108 christos if test "$cross_compiling" = yes
7495 1.108 christos then :
7496 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking farseln" >&5
7497 1.108 christos printf "%s\n" "$as_me: WARNING: cross compiling: not checking farseln" >&2;}
7498 1.84 christos
7499 1.108 christos else case e in #(
7500 1.108 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 1.84 christos /* end confdefs.h. */
7502 1.68 tnozaki
7503 1.68 tnozaki #define _NETBSD_SOURCE
7504 1.68 tnozaki #include <stdio.h>
7505 1.68 tnozaki #include <stdlib.h>
7506 1.68 tnozaki #define CONFTEST "conftest.fparseln"
7507 1.68 tnozaki #define COMMENT '#'
7508 1.68 tnozaki int
7509 1.68 tnozaki main(void)
7510 1.68 tnozaki {
7511 1.68 tnozaki static const char delim[3] = { '\0', '\0', COMMENT };
7512 1.68 tnozaki FILE *fp;
7513 1.68 tnozaki char *ptr;
7514 1.68 tnozaki fp = fopen(CONFTEST, "w+");
7515 1.68 tnozaki if (fp != NULL) {
7516 1.68 tnozaki unlink(CONFTEST);
7517 1.68 tnozaki ungetc(COMMENT, fp);
7518 1.68 tnozaki ptr = fparseln(fp, NULL, NULL, delim,
7519 1.68 tnozaki FPARSELN_UNESCALL);
7520 1.68 tnozaki fclose(fp);
7521 1.68 tnozaki if (ptr == NULL)
7522 1.68 tnozaki exit(0);
7523 1.68 tnozaki }
7524 1.68 tnozaki exit(1);
7525 1.68 tnozaki }
7526 1.68 tnozaki
7527 1.68 tnozaki _ACEOF
7528 1.108 christos if ac_fn_c_try_run "$LINENO"
7529 1.108 christos then :
7530 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7531 1.108 christos printf "%s\n" "yes" >&6; }
7532 1.108 christos else case e in #(
7533 1.108 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 1.108 christos printf "%s\n" "no" >&6; }
7535 1.68 tnozaki
7536 1.108 christos printf "%s\n" "#define BROKEN_FPARSELN 1" >>confdefs.h
7537 1.108 christos ;;
7538 1.108 christos esac
7539 1.68 tnozaki fi
7540 1.84 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7541 1.108 christos conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7542 1.108 christos esac
7543 1.68 tnozaki fi
7544 1.68 tnozaki
7545 1.84 christos
7546 1.68 tnozaki fi
7547 1.108 christos
7548 1.68 tnozaki done
7549 1.68 tnozaki
7550 1.84 christos
7551 1.104 lukem nb_cv_check_cc_flags=
7552 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
7553 1.108 christos printf %s "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
7554 1.108 christos if test ${ax_cv_check_cflags___Werror_unknown_warning_option+y}
7555 1.108 christos then :
7556 1.108 christos printf %s "(cached) " >&6
7557 1.108 christos else case e in #(
7558 1.108 christos e)
7559 1.102 lukem ax_check_save_flags=$CFLAGS
7560 1.102 lukem CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7561 1.102 lukem cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 1.102 lukem /* end confdefs.h. */
7563 1.102 lukem
7564 1.102 lukem int
7565 1.108 christos main (void)
7566 1.102 lukem {
7567 1.102 lukem
7568 1.102 lukem ;
7569 1.102 lukem return 0;
7570 1.102 lukem }
7571 1.102 lukem _ACEOF
7572 1.108 christos if ac_fn_c_try_compile "$LINENO"
7573 1.108 christos then :
7574 1.102 lukem ax_cv_check_cflags___Werror_unknown_warning_option=yes
7575 1.108 christos else case e in #(
7576 1.108 christos e) ax_cv_check_cflags___Werror_unknown_warning_option=no ;;
7577 1.108 christos esac
7578 1.102 lukem fi
7579 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7580 1.108 christos CFLAGS=$ax_check_save_flags ;;
7581 1.108 christos esac
7582 1.102 lukem fi
7583 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
7584 1.108 christos printf "%s\n" "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
7585 1.108 christos if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes
7586 1.108 christos then :
7587 1.104 lukem nb_cv_check_cc_flags=-Werror=unknown-warning-option
7588 1.108 christos else case e in #(
7589 1.108 christos e) : ;;
7590 1.108 christos esac
7591 1.102 lukem fi
7592 1.102 lukem
7593 1.102 lukem
7594 1.108 christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-no-cpp-precomp" | sed "$as_sed_sh"`
7595 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-cpp-precomp" >&5
7596 1.108 christos printf %s "checking whether C compiler accepts -no-cpp-precomp... " >&6; }
7597 1.108 christos if eval test \${$as_CACHEVAR+y}
7598 1.108 christos then :
7599 1.108 christos printf %s "(cached) " >&6
7600 1.108 christos else case e in #(
7601 1.108 christos e)
7602 1.102 lukem ax_check_save_flags=$CFLAGS
7603 1.104 lukem CFLAGS="$CFLAGS $nb_cv_check_cc_flags -no-cpp-precomp"
7604 1.102 lukem cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 1.102 lukem /* end confdefs.h. */
7606 1.102 lukem
7607 1.102 lukem int
7608 1.108 christos main (void)
7609 1.102 lukem {
7610 1.102 lukem
7611 1.102 lukem ;
7612 1.102 lukem return 0;
7613 1.102 lukem }
7614 1.102 lukem _ACEOF
7615 1.108 christos if ac_fn_c_try_compile "$LINENO"
7616 1.108 christos then :
7617 1.102 lukem eval "$as_CACHEVAR=yes"
7618 1.108 christos else case e in #(
7619 1.108 christos e) eval "$as_CACHEVAR=no" ;;
7620 1.108 christos esac
7621 1.102 lukem fi
7622 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7623 1.108 christos CFLAGS=$ax_check_save_flags ;;
7624 1.108 christos esac
7625 1.102 lukem fi
7626 1.102 lukem eval ac_res=\$$as_CACHEVAR
7627 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7628 1.108 christos printf "%s\n" "$ac_res" >&6; }
7629 1.108 christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
7630 1.108 christos then :
7631 1.102 lukem CC_NO_CPP_PRECOMP=-no-cpp-precomp
7632 1.108 christos else case e in #(
7633 1.108 christos e) : ;;
7634 1.108 christos esac
7635 1.102 lukem fi
7636 1.102 lukem
7637 1.102 lukem
7638 1.102 lukem
7639 1.102 lukem
7640 1.108 christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Waddress-of-packed-member" | sed "$as_sed_sh"`
7641 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waddress-of-packed-member" >&5
7642 1.108 christos printf %s "checking whether C compiler accepts -Waddress-of-packed-member... " >&6; }
7643 1.108 christos if eval test \${$as_CACHEVAR+y}
7644 1.108 christos then :
7645 1.108 christos printf %s "(cached) " >&6
7646 1.108 christos else case e in #(
7647 1.108 christos e)
7648 1.103 lukem ax_check_save_flags=$CFLAGS
7649 1.104 lukem CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Waddress-of-packed-member"
7650 1.103 lukem cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 1.103 lukem /* end confdefs.h. */
7652 1.103 lukem
7653 1.103 lukem int
7654 1.108 christos main (void)
7655 1.103 lukem {
7656 1.103 lukem
7657 1.103 lukem ;
7658 1.103 lukem return 0;
7659 1.103 lukem }
7660 1.103 lukem _ACEOF
7661 1.108 christos if ac_fn_c_try_compile "$LINENO"
7662 1.108 christos then :
7663 1.103 lukem eval "$as_CACHEVAR=yes"
7664 1.108 christos else case e in #(
7665 1.108 christos e) eval "$as_CACHEVAR=no" ;;
7666 1.108 christos esac
7667 1.103 lukem fi
7668 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7669 1.108 christos CFLAGS=$ax_check_save_flags ;;
7670 1.108 christos esac
7671 1.103 lukem fi
7672 1.103 lukem eval ac_res=\$$as_CACHEVAR
7673 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7674 1.108 christos printf "%s\n" "$ac_res" >&6; }
7675 1.108 christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
7676 1.108 christos then :
7677 1.103 lukem CC_WNO_ADDRESS_OF_PACKED_MEMBER=-Wno-address-of-packed-member
7678 1.108 christos else case e in #(
7679 1.108 christos e) : ;;
7680 1.108 christos esac
7681 1.103 lukem fi
7682 1.103 lukem
7683 1.103 lukem
7684 1.103 lukem
7685 1.108 christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wcast-function-type" | sed "$as_sed_sh"`
7686 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-function-type" >&5
7687 1.108 christos printf %s "checking whether C compiler accepts -Wcast-function-type... " >&6; }
7688 1.108 christos if eval test \${$as_CACHEVAR+y}
7689 1.108 christos then :
7690 1.108 christos printf %s "(cached) " >&6
7691 1.108 christos else case e in #(
7692 1.108 christos e)
7693 1.103 lukem ax_check_save_flags=$CFLAGS
7694 1.104 lukem CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wcast-function-type"
7695 1.103 lukem cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 1.103 lukem /* end confdefs.h. */
7697 1.103 lukem
7698 1.103 lukem int
7699 1.108 christos main (void)
7700 1.103 lukem {
7701 1.103 lukem
7702 1.103 lukem ;
7703 1.103 lukem return 0;
7704 1.103 lukem }
7705 1.103 lukem _ACEOF
7706 1.108 christos if ac_fn_c_try_compile "$LINENO"
7707 1.108 christos then :
7708 1.103 lukem eval "$as_CACHEVAR=yes"
7709 1.108 christos else case e in #(
7710 1.108 christos e) eval "$as_CACHEVAR=no" ;;
7711 1.108 christos esac
7712 1.103 lukem fi
7713 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7714 1.108 christos CFLAGS=$ax_check_save_flags ;;
7715 1.108 christos esac
7716 1.103 lukem fi
7717 1.103 lukem eval ac_res=\$$as_CACHEVAR
7718 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7719 1.108 christos printf "%s\n" "$ac_res" >&6; }
7720 1.108 christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
7721 1.108 christos then :
7722 1.103 lukem CC_WNO_CAST_FUNCTION_TYPE=-Wno-cast-function-type
7723 1.108 christos else case e in #(
7724 1.108 christos e) : ;;
7725 1.108 christos esac
7726 1.103 lukem fi
7727 1.103 lukem
7728 1.103 lukem
7729 1.103 lukem
7730 1.108 christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Werror=address-of-packed-member" | sed "$as_sed_sh"`
7731 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=address-of-packed-member" >&5
7732 1.108 christos printf %s "checking whether C compiler accepts -Werror=address-of-packed-member... " >&6; }
7733 1.108 christos if eval test \${$as_CACHEVAR+y}
7734 1.108 christos then :
7735 1.108 christos printf %s "(cached) " >&6
7736 1.108 christos else case e in #(
7737 1.108 christos e)
7738 1.103 lukem ax_check_save_flags=$CFLAGS
7739 1.104 lukem CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Werror=address-of-packed-member"
7740 1.103 lukem cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741 1.103 lukem /* end confdefs.h. */
7742 1.103 lukem
7743 1.103 lukem int
7744 1.108 christos main (void)
7745 1.103 lukem {
7746 1.103 lukem
7747 1.103 lukem ;
7748 1.103 lukem return 0;
7749 1.103 lukem }
7750 1.103 lukem _ACEOF
7751 1.108 christos if ac_fn_c_try_compile "$LINENO"
7752 1.108 christos then :
7753 1.103 lukem eval "$as_CACHEVAR=yes"
7754 1.108 christos else case e in #(
7755 1.108 christos e) eval "$as_CACHEVAR=no" ;;
7756 1.108 christos esac
7757 1.103 lukem fi
7758 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7759 1.108 christos CFLAGS=$ax_check_save_flags ;;
7760 1.108 christos esac
7761 1.103 lukem fi
7762 1.103 lukem eval ac_res=\$$as_CACHEVAR
7763 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7764 1.108 christos printf "%s\n" "$ac_res" >&6; }
7765 1.108 christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
7766 1.108 christos then :
7767 1.103 lukem CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER=-Wno-error=address-of-packed-member
7768 1.108 christos else case e in #(
7769 1.108 christos e) : ;;
7770 1.108 christos esac
7771 1.103 lukem fi
7772 1.103 lukem
7773 1.103 lukem
7774 1.103 lukem
7775 1.108 christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wformat-overflow" | sed "$as_sed_sh"`
7776 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-overflow" >&5
7777 1.108 christos printf %s "checking whether C compiler accepts -Wformat-overflow... " >&6; }
7778 1.108 christos if eval test \${$as_CACHEVAR+y}
7779 1.108 christos then :
7780 1.108 christos printf %s "(cached) " >&6
7781 1.108 christos else case e in #(
7782 1.108 christos e)
7783 1.103 lukem ax_check_save_flags=$CFLAGS
7784 1.104 lukem CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wformat-overflow"
7785 1.103 lukem cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 1.103 lukem /* end confdefs.h. */
7787 1.103 lukem
7788 1.103 lukem int
7789 1.108 christos main (void)
7790 1.103 lukem {
7791 1.103 lukem
7792 1.103 lukem ;
7793 1.103 lukem return 0;
7794 1.103 lukem }
7795 1.103 lukem _ACEOF
7796 1.108 christos if ac_fn_c_try_compile "$LINENO"
7797 1.108 christos then :
7798 1.103 lukem eval "$as_CACHEVAR=yes"
7799 1.108 christos else case e in #(
7800 1.108 christos e) eval "$as_CACHEVAR=no" ;;
7801 1.108 christos esac
7802 1.103 lukem fi
7803 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7804 1.108 christos CFLAGS=$ax_check_save_flags ;;
7805 1.108 christos esac
7806 1.103 lukem fi
7807 1.103 lukem eval ac_res=\$$as_CACHEVAR
7808 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7809 1.108 christos printf "%s\n" "$ac_res" >&6; }
7810 1.108 christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
7811 1.108 christos then :
7812 1.103 lukem CC_WNO_FORMAT_OVERFLOW=-Wno-format-overflow
7813 1.108 christos else case e in #(
7814 1.108 christos e) : ;;
7815 1.108 christos esac
7816 1.103 lukem fi
7817 1.103 lukem
7818 1.103 lukem
7819 1.103 lukem
7820 1.108 christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wformat-truncation" | sed "$as_sed_sh"`
7821 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-truncation" >&5
7822 1.108 christos printf %s "checking whether C compiler accepts -Wformat-truncation... " >&6; }
7823 1.108 christos if eval test \${$as_CACHEVAR+y}
7824 1.108 christos then :
7825 1.108 christos printf %s "(cached) " >&6
7826 1.108 christos else case e in #(
7827 1.108 christos e)
7828 1.102 lukem ax_check_save_flags=$CFLAGS
7829 1.104 lukem CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wformat-truncation"
7830 1.102 lukem cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 1.102 lukem /* end confdefs.h. */
7832 1.102 lukem
7833 1.102 lukem int
7834 1.108 christos main (void)
7835 1.102 lukem {
7836 1.102 lukem
7837 1.102 lukem ;
7838 1.102 lukem return 0;
7839 1.102 lukem }
7840 1.102 lukem _ACEOF
7841 1.108 christos if ac_fn_c_try_compile "$LINENO"
7842 1.108 christos then :
7843 1.102 lukem eval "$as_CACHEVAR=yes"
7844 1.108 christos else case e in #(
7845 1.108 christos e) eval "$as_CACHEVAR=no" ;;
7846 1.108 christos esac
7847 1.102 lukem fi
7848 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7849 1.108 christos CFLAGS=$ax_check_save_flags ;;
7850 1.108 christos esac
7851 1.102 lukem fi
7852 1.102 lukem eval ac_res=\$$as_CACHEVAR
7853 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7854 1.108 christos printf "%s\n" "$ac_res" >&6; }
7855 1.108 christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
7856 1.108 christos then :
7857 1.102 lukem CC_WNO_FORMAT_TRUNCATION=-Wno-format-truncation
7858 1.108 christos else case e in #(
7859 1.108 christos e) : ;;
7860 1.108 christos esac
7861 1.102 lukem fi
7862 1.102 lukem
7863 1.102 lukem
7864 1.102 lukem
7865 1.108 christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wimplicit-fallthrough" | sed "$as_sed_sh"`
7866 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wimplicit-fallthrough" >&5
7867 1.108 christos printf %s "checking whether C compiler accepts -Wimplicit-fallthrough... " >&6; }
7868 1.108 christos if eval test \${$as_CACHEVAR+y}
7869 1.108 christos then :
7870 1.108 christos printf %s "(cached) " >&6
7871 1.108 christos else case e in #(
7872 1.108 christos e)
7873 1.103 lukem ax_check_save_flags=$CFLAGS
7874 1.104 lukem CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wimplicit-fallthrough"
7875 1.103 lukem cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 1.103 lukem /* end confdefs.h. */
7877 1.103 lukem
7878 1.103 lukem int
7879 1.108 christos main (void)
7880 1.103 lukem {
7881 1.103 lukem
7882 1.103 lukem ;
7883 1.103 lukem return 0;
7884 1.103 lukem }
7885 1.103 lukem _ACEOF
7886 1.108 christos if ac_fn_c_try_compile "$LINENO"
7887 1.108 christos then :
7888 1.103 lukem eval "$as_CACHEVAR=yes"
7889 1.108 christos else case e in #(
7890 1.108 christos e) eval "$as_CACHEVAR=no" ;;
7891 1.108 christos esac
7892 1.103 lukem fi
7893 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7894 1.108 christos CFLAGS=$ax_check_save_flags ;;
7895 1.108 christos esac
7896 1.103 lukem fi
7897 1.103 lukem eval ac_res=\$$as_CACHEVAR
7898 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7899 1.108 christos printf "%s\n" "$ac_res" >&6; }
7900 1.108 christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
7901 1.108 christos then :
7902 1.103 lukem CC_WNO_IMPLICIT_FALLTHROUGH=-Wno-implicit-fallthrough
7903 1.108 christos else case e in #(
7904 1.108 christos e) : ;;
7905 1.108 christos esac
7906 1.103 lukem fi
7907 1.103 lukem
7908 1.103 lukem
7909 1.103 lukem
7910 1.108 christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wmaybe-uninitialized" | sed "$as_sed_sh"`
7911 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmaybe-uninitialized" >&5
7912 1.108 christos printf %s "checking whether C compiler accepts -Wmaybe-uninitialized... " >&6; }
7913 1.108 christos if eval test \${$as_CACHEVAR+y}
7914 1.108 christos then :
7915 1.108 christos printf %s "(cached) " >&6
7916 1.108 christos else case e in #(
7917 1.108 christos e)
7918 1.102 lukem ax_check_save_flags=$CFLAGS
7919 1.104 lukem CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wmaybe-uninitialized"
7920 1.102 lukem cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 1.102 lukem /* end confdefs.h. */
7922 1.102 lukem
7923 1.102 lukem int
7924 1.108 christos main (void)
7925 1.102 lukem {
7926 1.102 lukem
7927 1.102 lukem ;
7928 1.102 lukem return 0;
7929 1.102 lukem }
7930 1.102 lukem _ACEOF
7931 1.108 christos if ac_fn_c_try_compile "$LINENO"
7932 1.108 christos then :
7933 1.102 lukem eval "$as_CACHEVAR=yes"
7934 1.108 christos else case e in #(
7935 1.108 christos e) eval "$as_CACHEVAR=no" ;;
7936 1.108 christos esac
7937 1.102 lukem fi
7938 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7939 1.108 christos CFLAGS=$ax_check_save_flags ;;
7940 1.108 christos esac
7941 1.102 lukem fi
7942 1.102 lukem eval ac_res=\$$as_CACHEVAR
7943 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7944 1.108 christos printf "%s\n" "$ac_res" >&6; }
7945 1.108 christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
7946 1.108 christos then :
7947 1.102 lukem CC_WNO_MAYBE_UNINITIALIZED=-Wno-maybe-uninitialized
7948 1.108 christos else case e in #(
7949 1.108 christos e) : ;;
7950 1.108 christos esac
7951 1.102 lukem fi
7952 1.102 lukem
7953 1.102 lukem
7954 1.102 lukem
7955 1.108 christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wreturn-local-addr" | sed "$as_sed_sh"`
7956 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wreturn-local-addr" >&5
7957 1.108 christos printf %s "checking whether C compiler accepts -Wreturn-local-addr... " >&6; }
7958 1.108 christos if eval test \${$as_CACHEVAR+y}
7959 1.108 christos then :
7960 1.108 christos printf %s "(cached) " >&6
7961 1.108 christos else case e in #(
7962 1.108 christos e)
7963 1.103 lukem ax_check_save_flags=$CFLAGS
7964 1.104 lukem CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wreturn-local-addr"
7965 1.103 lukem cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 1.103 lukem /* end confdefs.h. */
7967 1.103 lukem
7968 1.103 lukem int
7969 1.108 christos main (void)
7970 1.103 lukem {
7971 1.103 lukem
7972 1.103 lukem ;
7973 1.103 lukem return 0;
7974 1.103 lukem }
7975 1.103 lukem _ACEOF
7976 1.108 christos if ac_fn_c_try_compile "$LINENO"
7977 1.108 christos then :
7978 1.103 lukem eval "$as_CACHEVAR=yes"
7979 1.108 christos else case e in #(
7980 1.108 christos e) eval "$as_CACHEVAR=no" ;;
7981 1.108 christos esac
7982 1.103 lukem fi
7983 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7984 1.108 christos CFLAGS=$ax_check_save_flags ;;
7985 1.108 christos esac
7986 1.103 lukem fi
7987 1.103 lukem eval ac_res=\$$as_CACHEVAR
7988 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7989 1.108 christos printf "%s\n" "$ac_res" >&6; }
7990 1.108 christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
7991 1.108 christos then :
7992 1.103 lukem CC_WNO_RETURN_LOCAL_ADDR=-Wno-return-local-addr
7993 1.108 christos else case e in #(
7994 1.108 christos e) : ;;
7995 1.108 christos esac
7996 1.103 lukem fi
7997 1.103 lukem
7998 1.103 lukem
7999 1.103 lukem
8000 1.108 christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wstringop-overflow" | sed "$as_sed_sh"`
8001 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-overflow" >&5
8002 1.108 christos printf %s "checking whether C compiler accepts -Wstringop-overflow... " >&6; }
8003 1.108 christos if eval test \${$as_CACHEVAR+y}
8004 1.108 christos then :
8005 1.108 christos printf %s "(cached) " >&6
8006 1.108 christos else case e in #(
8007 1.108 christos e)
8008 1.102 lukem ax_check_save_flags=$CFLAGS
8009 1.104 lukem CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wstringop-overflow"
8010 1.102 lukem cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 1.102 lukem /* end confdefs.h. */
8012 1.102 lukem
8013 1.102 lukem int
8014 1.108 christos main (void)
8015 1.102 lukem {
8016 1.102 lukem
8017 1.102 lukem ;
8018 1.102 lukem return 0;
8019 1.102 lukem }
8020 1.102 lukem _ACEOF
8021 1.108 christos if ac_fn_c_try_compile "$LINENO"
8022 1.108 christos then :
8023 1.102 lukem eval "$as_CACHEVAR=yes"
8024 1.108 christos else case e in #(
8025 1.108 christos e) eval "$as_CACHEVAR=no" ;;
8026 1.108 christos esac
8027 1.102 lukem fi
8028 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8029 1.108 christos CFLAGS=$ax_check_save_flags ;;
8030 1.108 christos esac
8031 1.102 lukem fi
8032 1.102 lukem eval ac_res=\$$as_CACHEVAR
8033 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8034 1.108 christos printf "%s\n" "$ac_res" >&6; }
8035 1.108 christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
8036 1.108 christos then :
8037 1.102 lukem CC_WNO_STRINGOP_OVERFLOW=-Wno-stringop-overflow
8038 1.108 christos else case e in #(
8039 1.108 christos e) : ;;
8040 1.108 christos esac
8041 1.102 lukem fi
8042 1.102 lukem
8043 1.102 lukem
8044 1.102 lukem
8045 1.108 christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wstringop-truncation" | sed "$as_sed_sh"`
8046 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-truncation" >&5
8047 1.108 christos printf %s "checking whether C compiler accepts -Wstringop-truncation... " >&6; }
8048 1.108 christos if eval test \${$as_CACHEVAR+y}
8049 1.108 christos then :
8050 1.108 christos printf %s "(cached) " >&6
8051 1.108 christos else case e in #(
8052 1.108 christos e)
8053 1.102 lukem ax_check_save_flags=$CFLAGS
8054 1.104 lukem CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wstringop-truncation"
8055 1.102 lukem cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 1.102 lukem /* end confdefs.h. */
8057 1.102 lukem
8058 1.102 lukem int
8059 1.108 christos main (void)
8060 1.102 lukem {
8061 1.102 lukem
8062 1.102 lukem ;
8063 1.102 lukem return 0;
8064 1.102 lukem }
8065 1.102 lukem _ACEOF
8066 1.108 christos if ac_fn_c_try_compile "$LINENO"
8067 1.108 christos then :
8068 1.102 lukem eval "$as_CACHEVAR=yes"
8069 1.108 christos else case e in #(
8070 1.108 christos e) eval "$as_CACHEVAR=no" ;;
8071 1.108 christos esac
8072 1.102 lukem fi
8073 1.108 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8074 1.108 christos CFLAGS=$ax_check_save_flags ;;
8075 1.108 christos esac
8076 1.102 lukem fi
8077 1.102 lukem eval ac_res=\$$as_CACHEVAR
8078 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8079 1.108 christos printf "%s\n" "$ac_res" >&6; }
8080 1.108 christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
8081 1.108 christos then :
8082 1.102 lukem CC_WNO_STRINGOP_TRUNCATION=-Wno-stringop-truncation
8083 1.108 christos else case e in #(
8084 1.108 christos e) : ;;
8085 1.108 christos esac
8086 1.102 lukem fi
8087 1.102 lukem
8088 1.102 lukem
8089 1.102 lukem
8090 1.102 lukem
8091 1.1 tv cat >confcache <<\_ACEOF
8092 1.1 tv # This file is a shell script that caches the results of configure
8093 1.1 tv # tests run on this system so they can be shared between configure
8094 1.1 tv # scripts and configure runs, see configure's option --config-cache.
8095 1.1 tv # It is not useful on other systems. If it contains results you don't
8096 1.1 tv # want to keep, you may remove or edit it.
8097 1.1 tv #
8098 1.1 tv # config.status only pays attention to the cache file if you give it
8099 1.1 tv # the --recheck option to rerun configure.
8100 1.1 tv #
8101 1.108 christos # 'ac_cv_env_foo' variables (set or unset) will be overridden when
8102 1.108 christos # loading this file, other *unset* 'ac_cv_foo' will be assigned the
8103 1.1 tv # following values.
8104 1.1 tv
8105 1.1 tv _ACEOF
8106 1.1 tv
8107 1.1 tv # The following way of writing the cache mishandles newlines in values,
8108 1.1 tv # but we know of no workaround that is simple, portable, and efficient.
8109 1.84 christos # So, we kill variables containing newlines.
8110 1.84 christos # Ultrix sh set writes to stderr and can't be redirected directly,
8111 1.84 christos # and sets the high bit in the cache file unless we assign to the vars.
8112 1.84 christos (
8113 1.84 christos for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8114 1.84 christos eval ac_val=\$$ac_var
8115 1.84 christos case $ac_val in #(
8116 1.84 christos *${as_nl}*)
8117 1.84 christos case $ac_var in #(
8118 1.108 christos *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8119 1.108 christos printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8120 1.84 christos esac
8121 1.84 christos case $ac_var in #(
8122 1.84 christos _ | IFS | as_nl) ;; #(
8123 1.84 christos BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8124 1.84 christos *) { eval $ac_var=; unset $ac_var;} ;;
8125 1.84 christos esac ;;
8126 1.84 christos esac
8127 1.84 christos done
8128 1.84 christos
8129 1.65 christos (set) 2>&1 |
8130 1.84 christos case $as_nl`(ac_space=' '; set) 2>&1` in #(
8131 1.84 christos *${as_nl}ac_space=\ *)
8132 1.108 christos # 'set' does not quote correctly, so add quotes: double-quote
8133 1.84 christos # substitution turns \\\\ into \\, and sed turns \\ into \.
8134 1.65 christos sed -n \
8135 1.84 christos "s/'/'\\\\''/g;
8136 1.84 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8137 1.84 christos ;; #(
8138 1.65 christos *)
8139 1.108 christos # 'set' quotes correctly as required by POSIX, so do not add quotes.
8140 1.84 christos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8141 1.65 christos ;;
8142 1.84 christos esac |
8143 1.84 christos sort
8144 1.84 christos ) |
8145 1.65 christos sed '
8146 1.84 christos /^ac_cv_env_/b end
8147 1.65 christos t clear
8148 1.84 christos :clear
8149 1.108 christos s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8150 1.65 christos t end
8151 1.84 christos s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8152 1.84 christos :end' >>confcache
8153 1.84 christos if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8154 1.84 christos if test -w "$cache_file"; then
8155 1.84 christos if test "x$cache_file" != "x/dev/null"; then
8156 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8157 1.108 christos printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
8158 1.84 christos if test ! -f "$cache_file" || test -h "$cache_file"; then
8159 1.84 christos cat confcache >"$cache_file"
8160 1.84 christos else
8161 1.84 christos case $cache_file in #(
8162 1.84 christos */* | ?:*)
8163 1.84 christos mv -f confcache "$cache_file"$$ &&
8164 1.84 christos mv -f "$cache_file"$$ "$cache_file" ;; #(
8165 1.84 christos *)
8166 1.84 christos mv -f confcache "$cache_file" ;;
8167 1.84 christos esac
8168 1.84 christos fi
8169 1.84 christos fi
8170 1.65 christos else
8171 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8172 1.108 christos printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8173 1.65 christos fi
8174 1.65 christos fi
8175 1.66 tsutsui rm -f confcache
8176 1.65 christos
8177 1.66 tsutsui test "x$prefix" = xNONE && prefix=$ac_default_prefix
8178 1.66 tsutsui # Let make expand exec_prefix.
8179 1.66 tsutsui test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8180 1.65 christos
8181 1.84 christos DEFS=-DHAVE_CONFIG_H
8182 1.84 christos
8183 1.84 christos ac_libobjs=
8184 1.84 christos ac_ltlibobjs=
8185 1.84 christos U=
8186 1.84 christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8187 1.84 christos # 1. Remove the extension, and $U if already installed.
8188 1.84 christos ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8189 1.108 christos ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8190 1.84 christos # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8191 1.84 christos # will be set to the directory where LIBOBJS objects are built.
8192 1.84 christos as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8193 1.84 christos as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8194 1.84 christos done
8195 1.84 christos LIBOBJS=$ac_libobjs
8196 1.84 christos
8197 1.84 christos LTLIBOBJS=$ac_ltlibobjs
8198 1.84 christos
8199 1.84 christos
8200 1.76 pooka
8201 1.74 christos
8202 1.84 christos : "${CONFIG_STATUS=./config.status}"
8203 1.84 christos ac_write_fail=0
8204 1.66 tsutsui ac_clean_files_save=$ac_clean_files
8205 1.66 tsutsui ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8206 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8207 1.108 christos printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8208 1.84 christos as_write_fail=0
8209 1.84 christos cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8210 1.66 tsutsui #! $SHELL
8211 1.84 christos # Generated by $as_me.
8212 1.66 tsutsui # Run this file to recreate the current configuration.
8213 1.66 tsutsui # Compiler output produced by configure, useful for debugging
8214 1.66 tsutsui # configure, is in config.log if it exists.
8215 1.65 christos
8216 1.66 tsutsui debug=false
8217 1.84 christos ac_cs_recheck=false
8218 1.84 christos ac_cs_silent=false
8219 1.84 christos
8220 1.76 pooka SHELL=\${CONFIG_SHELL-$SHELL}
8221 1.84 christos export SHELL
8222 1.84 christos _ASEOF
8223 1.84 christos cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8224 1.84 christos ## -------------------- ##
8225 1.84 christos ## M4sh Initialization. ##
8226 1.84 christos ## -------------------- ##
8227 1.84 christos
8228 1.84 christos # Be more Bourne compatible
8229 1.84 christos DUALCASE=1; export DUALCASE # for MKS sh
8230 1.108 christos if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
8231 1.108 christos then :
8232 1.84 christos emulate sh
8233 1.84 christos NULLCMD=:
8234 1.84 christos # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8235 1.84 christos # is contrary to our usage. Disable this feature.
8236 1.84 christos alias -g '${1+"$@"}'='"$@"'
8237 1.84 christos setopt NO_GLOB_SUBST
8238 1.108 christos else case e in #(
8239 1.108 christos e) case `(set -o) 2>/dev/null` in #(
8240 1.84 christos *posix*) :
8241 1.84 christos set -o posix ;; #(
8242 1.84 christos *) :
8243 1.84 christos ;;
8244 1.108 christos esac ;;
8245 1.84 christos esac
8246 1.84 christos fi
8247 1.84 christos
8248 1.76 pooka
8249 1.108 christos
8250 1.108 christos # Reset variables that may have inherited troublesome values from
8251 1.108 christos # the environment.
8252 1.108 christos
8253 1.108 christos # IFS needs to be set, to space, tab, and newline, in precisely that order.
8254 1.108 christos # (If _AS_PATH_WALK were called with IFS unset, it would have the
8255 1.108 christos # side effect of setting IFS to empty, thus disabling word splitting.)
8256 1.108 christos # Quoting is to prevent editors from complaining about space-tab.
8257 1.84 christos as_nl='
8258 1.84 christos '
8259 1.84 christos export as_nl
8260 1.108 christos IFS=" "" $as_nl"
8261 1.108 christos
8262 1.108 christos PS1='$ '
8263 1.108 christos PS2='> '
8264 1.108 christos PS4='+ '
8265 1.108 christos
8266 1.108 christos # Ensure predictable behavior from utilities with locale-dependent output.
8267 1.108 christos LC_ALL=C
8268 1.108 christos export LC_ALL
8269 1.108 christos LANGUAGE=C
8270 1.108 christos export LANGUAGE
8271 1.108 christos
8272 1.108 christos # We cannot yet rely on "unset" to work, but we need these variables
8273 1.108 christos # to be unset--not just set to an empty or harmless value--now, to
8274 1.108 christos # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8275 1.108 christos # also avoids known problems related to "unset" and subshell syntax
8276 1.108 christos # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8277 1.108 christos for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
8278 1.108 christos do eval test \${$as_var+y} \
8279 1.108 christos && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8280 1.108 christos done
8281 1.108 christos
8282 1.108 christos # Ensure that fds 0, 1, and 2 are open.
8283 1.108 christos if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
8284 1.108 christos if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
8285 1.108 christos if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
8286 1.74 christos
8287 1.84 christos # The user is always right.
8288 1.108 christos if ${PATH_SEPARATOR+false} :; then
8289 1.84 christos PATH_SEPARATOR=:
8290 1.84 christos (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8291 1.84 christos (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8292 1.84 christos PATH_SEPARATOR=';'
8293 1.84 christos }
8294 1.74 christos fi
8295 1.65 christos
8296 1.74 christos
8297 1.84 christos # Find who we are. Look in the path if we contain no directory separator.
8298 1.84 christos as_myself=
8299 1.84 christos case $0 in #((
8300 1.84 christos *[\\/]* ) as_myself=$0 ;;
8301 1.84 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 1.84 christos for as_dir in $PATH
8303 1.84 christos do
8304 1.84 christos IFS=$as_save_IFS
8305 1.108 christos case $as_dir in #(((
8306 1.108 christos '') as_dir=./ ;;
8307 1.108 christos */) ;;
8308 1.108 christos *) as_dir=$as_dir/ ;;
8309 1.108 christos esac
8310 1.108 christos test -r "$as_dir$0" && as_myself=$as_dir$0 && break
8311 1.84 christos done
8312 1.84 christos IFS=$as_save_IFS
8313 1.84 christos
8314 1.84 christos ;;
8315 1.84 christos esac
8316 1.108 christos # We did not find ourselves, most probably we were run as 'sh COMMAND'
8317 1.84 christos # in which case we are not to be found in the path.
8318 1.84 christos if test "x$as_myself" = x; then
8319 1.84 christos as_myself=$0
8320 1.84 christos fi
8321 1.84 christos if test ! -f "$as_myself"; then
8322 1.108 christos printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8323 1.84 christos exit 1
8324 1.84 christos fi
8325 1.84 christos
8326 1.84 christos
8327 1.84 christos
8328 1.84 christos # as_fn_error STATUS ERROR [LINENO LOG_FD]
8329 1.84 christos # ----------------------------------------
8330 1.84 christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8331 1.84 christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8332 1.84 christos # script with STATUS, using 1 if that was 0.
8333 1.84 christos as_fn_error ()
8334 1.84 christos {
8335 1.84 christos as_status=$1; test $as_status -eq 0 && as_status=1
8336 1.84 christos if test "$4"; then
8337 1.84 christos as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8338 1.108 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8339 1.84 christos fi
8340 1.108 christos printf "%s\n" "$as_me: error: $2" >&2
8341 1.84 christos as_fn_exit $as_status
8342 1.84 christos } # as_fn_error
8343 1.84 christos
8344 1.84 christos
8345 1.84 christos # as_fn_set_status STATUS
8346 1.84 christos # -----------------------
8347 1.84 christos # Set $? to STATUS, without forking.
8348 1.84 christos as_fn_set_status ()
8349 1.84 christos {
8350 1.84 christos return $1
8351 1.84 christos } # as_fn_set_status
8352 1.84 christos
8353 1.84 christos # as_fn_exit STATUS
8354 1.84 christos # -----------------
8355 1.84 christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8356 1.84 christos as_fn_exit ()
8357 1.84 christos {
8358 1.84 christos set +e
8359 1.84 christos as_fn_set_status $1
8360 1.84 christos exit $1
8361 1.84 christos } # as_fn_exit
8362 1.84 christos
8363 1.84 christos # as_fn_unset VAR
8364 1.84 christos # ---------------
8365 1.84 christos # Portably unset VAR.
8366 1.84 christos as_fn_unset ()
8367 1.84 christos {
8368 1.84 christos { eval $1=; unset $1;}
8369 1.84 christos }
8370 1.84 christos as_unset=as_fn_unset
8371 1.108 christos
8372 1.84 christos # as_fn_append VAR VALUE
8373 1.84 christos # ----------------------
8374 1.84 christos # Append the text in VALUE to the end of the definition contained in VAR. Take
8375 1.84 christos # advantage of any shell optimizations that allow amortized linear growth over
8376 1.84 christos # repeated appends, instead of the typical quadratic growth present in naive
8377 1.84 christos # implementations.
8378 1.108 christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
8379 1.108 christos then :
8380 1.84 christos eval 'as_fn_append ()
8381 1.84 christos {
8382 1.84 christos eval $1+=\$2
8383 1.84 christos }'
8384 1.108 christos else case e in #(
8385 1.108 christos e) as_fn_append ()
8386 1.84 christos {
8387 1.84 christos eval $1=\$$1\$2
8388 1.108 christos } ;;
8389 1.108 christos esac
8390 1.84 christos fi # as_fn_append
8391 1.84 christos
8392 1.84 christos # as_fn_arith ARG...
8393 1.84 christos # ------------------
8394 1.84 christos # Perform arithmetic evaluation on the ARGs, and store the result in the
8395 1.84 christos # global $as_val. Take advantage of shells that can avoid forks. The arguments
8396 1.84 christos # must be portable across $(()) and expr.
8397 1.108 christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
8398 1.108 christos then :
8399 1.84 christos eval 'as_fn_arith ()
8400 1.84 christos {
8401 1.84 christos as_val=$(( $* ))
8402 1.84 christos }'
8403 1.108 christos else case e in #(
8404 1.108 christos e) as_fn_arith ()
8405 1.84 christos {
8406 1.84 christos as_val=`expr "$@" || test $? -eq 1`
8407 1.108 christos } ;;
8408 1.108 christos esac
8409 1.84 christos fi # as_fn_arith
8410 1.84 christos
8411 1.84 christos
8412 1.84 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
8413 1.84 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
8414 1.1 tv as_expr=expr
8415 1.1 tv else
8416 1.1 tv as_expr=false
8417 1.1 tv fi
8418 1.1 tv
8419 1.84 christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8420 1.84 christos as_basename=basename
8421 1.84 christos else
8422 1.84 christos as_basename=false
8423 1.84 christos fi
8424 1.84 christos
8425 1.84 christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8426 1.84 christos as_dirname=dirname
8427 1.84 christos else
8428 1.84 christos as_dirname=false
8429 1.84 christos fi
8430 1.84 christos
8431 1.84 christos as_me=`$as_basename -- "$0" ||
8432 1.84 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8433 1.84 christos X"$0" : 'X\(//\)$' \| \
8434 1.84 christos X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8435 1.108 christos printf "%s\n" X/"$0" |
8436 1.84 christos sed '/^.*\/\([^/][^/]*\)\/*$/{
8437 1.84 christos s//\1/
8438 1.84 christos q
8439 1.84 christos }
8440 1.84 christos /^X\/\(\/\/\)$/{
8441 1.84 christos s//\1/
8442 1.84 christos q
8443 1.84 christos }
8444 1.84 christos /^X\/\(\/\).*/{
8445 1.84 christos s//\1/
8446 1.84 christos q
8447 1.84 christos }
8448 1.84 christos s/.*/./; q'`
8449 1.84 christos
8450 1.84 christos # Avoid depending upon Character Ranges.
8451 1.84 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8452 1.84 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8453 1.84 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8454 1.84 christos as_cr_digits='0123456789'
8455 1.84 christos as_cr_alnum=$as_cr_Letters$as_cr_digits
8456 1.84 christos
8457 1.108 christos
8458 1.108 christos # Determine whether it's possible to make 'echo' print without a newline.
8459 1.108 christos # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
8460 1.108 christos # for compatibility with existing Makefiles.
8461 1.84 christos ECHO_C= ECHO_N= ECHO_T=
8462 1.84 christos case `echo -n x` in #(((((
8463 1.84 christos -n*)
8464 1.84 christos case `echo 'xy\c'` in
8465 1.84 christos *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8466 1.84 christos xy) ECHO_C='\c';;
8467 1.84 christos *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8468 1.84 christos ECHO_T=' ';;
8469 1.84 christos esac;;
8470 1.84 christos *)
8471 1.84 christos ECHO_N='-n';;
8472 1.84 christos esac
8473 1.84 christos
8474 1.108 christos # For backward compatibility with old third-party macros, we provide
8475 1.108 christos # the shell variables $as_echo and $as_echo_n. New code should use
8476 1.108 christos # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
8477 1.108 christos as_echo='printf %s\n'
8478 1.108 christos as_echo_n='printf %s'
8479 1.108 christos
8480 1.1 tv rm -f conf$$ conf$$.exe conf$$.file
8481 1.84 christos if test -d conf$$.dir; then
8482 1.84 christos rm -f conf$$.dir/conf$$.file
8483 1.84 christos else
8484 1.84 christos rm -f conf$$.dir
8485 1.84 christos mkdir conf$$.dir 2>/dev/null
8486 1.84 christos fi
8487 1.84 christos if (echo >conf$$.file) 2>/dev/null; then
8488 1.84 christos if ln -s conf$$.file conf$$ 2>/dev/null; then
8489 1.84 christos as_ln_s='ln -s'
8490 1.84 christos # ... but there are two gotchas:
8491 1.108 christos # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
8492 1.108 christos # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
8493 1.108 christos # In both cases, we have to default to 'cp -pR'.
8494 1.84 christos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8495 1.84 christos as_ln_s='cp -pR'
8496 1.84 christos elif ln conf$$.file conf$$ 2>/dev/null; then
8497 1.84 christos as_ln_s=ln
8498 1.76 pooka else
8499 1.84 christos as_ln_s='cp -pR'
8500 1.66 tsutsui fi
8501 1.1 tv else
8502 1.84 christos as_ln_s='cp -pR'
8503 1.1 tv fi
8504 1.84 christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8505 1.84 christos rmdir conf$$.dir 2>/dev/null
8506 1.84 christos
8507 1.84 christos
8508 1.84 christos # as_fn_mkdir_p
8509 1.84 christos # -------------
8510 1.84 christos # Create "$as_dir" as a directory, including parents if necessary.
8511 1.84 christos as_fn_mkdir_p ()
8512 1.84 christos {
8513 1.84 christos
8514 1.84 christos case $as_dir in #(
8515 1.84 christos -*) as_dir=./$as_dir;;
8516 1.84 christos esac
8517 1.84 christos test -d "$as_dir" || eval $as_mkdir_p || {
8518 1.84 christos as_dirs=
8519 1.84 christos while :; do
8520 1.84 christos case $as_dir in #(
8521 1.108 christos *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8522 1.84 christos *) as_qdir=$as_dir;;
8523 1.84 christos esac
8524 1.84 christos as_dirs="'$as_qdir' $as_dirs"
8525 1.84 christos as_dir=`$as_dirname -- "$as_dir" ||
8526 1.84 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8527 1.84 christos X"$as_dir" : 'X\(//\)[^/]' \| \
8528 1.84 christos X"$as_dir" : 'X\(//\)$' \| \
8529 1.84 christos X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8530 1.108 christos printf "%s\n" X"$as_dir" |
8531 1.84 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8532 1.84 christos s//\1/
8533 1.84 christos q
8534 1.84 christos }
8535 1.84 christos /^X\(\/\/\)[^/].*/{
8536 1.84 christos s//\1/
8537 1.84 christos q
8538 1.84 christos }
8539 1.84 christos /^X\(\/\/\)$/{
8540 1.84 christos s//\1/
8541 1.84 christos q
8542 1.84 christos }
8543 1.84 christos /^X\(\/\).*/{
8544 1.84 christos s//\1/
8545 1.84 christos q
8546 1.84 christos }
8547 1.84 christos s/.*/./; q'`
8548 1.84 christos test -d "$as_dir" && break
8549 1.84 christos done
8550 1.84 christos test -z "$as_dirs" || eval "mkdir $as_dirs"
8551 1.84 christos } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8552 1.1 tv
8553 1.63 apb
8554 1.84 christos } # as_fn_mkdir_p
8555 1.84 christos if mkdir -p . 2>/dev/null; then
8556 1.84 christos as_mkdir_p='mkdir -p "$as_dir"'
8557 1.61 christos else
8558 1.84 christos test -d ./-p && rmdir ./-p
8559 1.84 christos as_mkdir_p=false
8560 1.61 christos fi
8561 1.61 christos
8562 1.1 tv
8563 1.84 christos # as_fn_executable_p FILE
8564 1.84 christos # -----------------------
8565 1.84 christos # Test if FILE is an executable regular file.
8566 1.84 christos as_fn_executable_p ()
8567 1.84 christos {
8568 1.84 christos test -f "$1" && test -x "$1"
8569 1.84 christos } # as_fn_executable_p
8570 1.84 christos as_test_x='test -x'
8571 1.84 christos as_executable_p=as_fn_executable_p
8572 1.84 christos
8573 1.84 christos # Sed expression to map a string onto a valid CPP name.
8574 1.108 christos as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8575 1.108 christos as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
8576 1.84 christos
8577 1.84 christos # Sed expression to map a string onto a valid variable name.
8578 1.108 christos as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8579 1.108 christos as_tr_sh="eval sed '$as_sed_sh'" # deprecated
8580 1.1 tv
8581 1.1 tv
8582 1.1 tv exec 6>&1
8583 1.84 christos ## ----------------------------------- ##
8584 1.84 christos ## Main body of $CONFIG_STATUS script. ##
8585 1.84 christos ## ----------------------------------- ##
8586 1.84 christos _ASEOF
8587 1.84 christos test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8588 1.84 christos
8589 1.84 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8590 1.84 christos # Save the log message, to keep $0 and so on meaningful, and to
8591 1.84 christos # report actual input values of CONFIG_FILES etc. instead of their
8592 1.84 christos # values after options handling.
8593 1.84 christos ac_log="
8594 1.84 christos This file was extended by libnbcompat $as_me noversion, which was
8595 1.108 christos generated by GNU Autoconf 2.72. Invocation command line was
8596 1.84 christos
8597 1.84 christos CONFIG_FILES = $CONFIG_FILES
8598 1.84 christos CONFIG_HEADERS = $CONFIG_HEADERS
8599 1.84 christos CONFIG_LINKS = $CONFIG_LINKS
8600 1.84 christos CONFIG_COMMANDS = $CONFIG_COMMANDS
8601 1.84 christos $ $0 $@
8602 1.84 christos
8603 1.84 christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
8604 1.84 christos "
8605 1.1 tv
8606 1.66 tsutsui _ACEOF
8607 1.1 tv
8608 1.84 christos case $ac_config_files in *"
8609 1.84 christos "*) set x $ac_config_files; shift; ac_config_files=$*;;
8610 1.84 christos esac
8611 1.1 tv
8612 1.84 christos case $ac_config_headers in *"
8613 1.84 christos "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8614 1.84 christos esac
8615 1.1 tv
8616 1.1 tv
8617 1.84 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8618 1.84 christos # Files that config.status was made for.
8619 1.84 christos config_files="$ac_config_files"
8620 1.84 christos config_headers="$ac_config_headers"
8621 1.1 tv
8622 1.84 christos _ACEOF
8623 1.1 tv
8624 1.84 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8625 1.1 tv ac_cs_usage="\
8626 1.108 christos '$as_me' instantiates files and other configuration actions
8627 1.84 christos from templates according to the current configuration. Unless the files
8628 1.84 christos and actions are specified as TAGs, all are instantiated by default.
8629 1.1 tv
8630 1.84 christos Usage: $0 [OPTION]... [TAG]...
8631 1.1 tv
8632 1.1 tv -h, --help print this help, then exit
8633 1.84 christos -V, --version print version number and configuration settings, then exit
8634 1.84 christos --config print configuration, then exit
8635 1.84 christos -q, --quiet, --silent
8636 1.84 christos do not print progress messages
8637 1.1 tv -d, --debug don't remove temporary files
8638 1.1 tv --recheck update $as_me by reconfiguring in the same conditions
8639 1.84 christos --file=FILE[:TEMPLATE]
8640 1.66 tsutsui instantiate the configuration file FILE
8641 1.84 christos --header=FILE[:TEMPLATE]
8642 1.66 tsutsui instantiate the configuration header FILE
8643 1.1 tv
8644 1.1 tv Configuration files:
8645 1.1 tv $config_files
8646 1.1 tv
8647 1.1 tv Configuration headers:
8648 1.1 tv $config_headers
8649 1.1 tv
8650 1.84 christos Report bugs to <lib-bug-people (at] NetBSD.org>."
8651 1.1 tv
8652 1.84 christos _ACEOF
8653 1.108 christos ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
8654 1.108 christos ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
8655 1.84 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8656 1.108 christos ac_cs_config='$ac_cs_config_escaped'
8657 1.1 tv ac_cs_version="\\
8658 1.1 tv libnbcompat config.status noversion
8659 1.108 christos configured by $0, generated by GNU Autoconf 2.72,
8660 1.84 christos with options \\"\$ac_cs_config\\"
8661 1.1 tv
8662 1.108 christos Copyright (C) 2023 Free Software Foundation, Inc.
8663 1.1 tv This config.status script is free software; the Free Software Foundation
8664 1.1 tv gives unlimited permission to copy, distribute and modify it."
8665 1.1 tv
8666 1.84 christos ac_pwd='$ac_pwd'
8667 1.84 christos srcdir='$srcdir'
8668 1.84 christos test -n "\$AWK" || AWK=awk
8669 1.84 christos _ACEOF
8670 1.84 christos
8671 1.84 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8672 1.84 christos # The default lists apply if the user does not specify any file.
8673 1.1 tv ac_need_defaults=:
8674 1.1 tv while test $# != 0
8675 1.1 tv do
8676 1.1 tv case $1 in
8677 1.84 christos --*=?*)
8678 1.84 christos ac_option=`expr "X$1" : 'X\([^=]*\)='`
8679 1.84 christos ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8680 1.84 christos ac_shift=:
8681 1.84 christos ;;
8682 1.84 christos --*=)
8683 1.84 christos ac_option=`expr "X$1" : 'X\([^=]*\)='`
8684 1.84 christos ac_optarg=
8685 1.84 christos ac_shift=:
8686 1.84 christos ;;
8687 1.84 christos *)
8688 1.84 christos ac_option=$1
8689 1.84 christos ac_optarg=$2
8690 1.84 christos ac_shift=shift
8691 1.1 tv ;;
8692 1.1 tv esac
8693 1.1 tv
8694 1.84 christos case $ac_option in
8695 1.1 tv # Handling of the options.
8696 1.1 tv -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8697 1.84 christos ac_cs_recheck=: ;;
8698 1.84 christos --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8699 1.108 christos printf "%s\n" "$ac_cs_version"; exit ;;
8700 1.84 christos --config | --confi | --conf | --con | --co | --c )
8701 1.108 christos printf "%s\n" "$ac_cs_config"; exit ;;
8702 1.84 christos --debug | --debu | --deb | --de | --d | -d )
8703 1.1 tv debug=: ;;
8704 1.1 tv --file | --fil | --fi | --f )
8705 1.84 christos $ac_shift
8706 1.84 christos case $ac_optarg in
8707 1.108 christos *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8708 1.84 christos '') as_fn_error $? "missing file argument" ;;
8709 1.84 christos esac
8710 1.84 christos as_fn_append CONFIG_FILES " '$ac_optarg'"
8711 1.1 tv ac_need_defaults=false;;
8712 1.1 tv --header | --heade | --head | --hea )
8713 1.84 christos $ac_shift
8714 1.84 christos case $ac_optarg in
8715 1.108 christos *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8716 1.84 christos esac
8717 1.84 christos as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8718 1.1 tv ac_need_defaults=false;;
8719 1.84 christos --he | --h)
8720 1.84 christos # Conflict between --help and --header
8721 1.108 christos as_fn_error $? "ambiguous option: '$1'
8722 1.108 christos Try '$0 --help' for more information.";;
8723 1.84 christos --help | --hel | -h )
8724 1.108 christos printf "%s\n" "$ac_cs_usage"; exit ;;
8725 1.84 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8726 1.84 christos | -silent | --silent | --silen | --sile | --sil | --si | --s)
8727 1.84 christos ac_cs_silent=: ;;
8728 1.1 tv
8729 1.1 tv # This is an error.
8730 1.108 christos -*) as_fn_error $? "unrecognized option: '$1'
8731 1.108 christos Try '$0 --help' for more information." ;;
8732 1.1 tv
8733 1.84 christos *) as_fn_append ac_config_targets " $1"
8734 1.84 christos ac_need_defaults=false ;;
8735 1.1 tv
8736 1.1 tv esac
8737 1.1 tv shift
8738 1.1 tv done
8739 1.1 tv
8740 1.84 christos ac_configure_extra_args=
8741 1.84 christos
8742 1.84 christos if $ac_cs_silent; then
8743 1.84 christos exec 6>/dev/null
8744 1.84 christos ac_configure_extra_args="$ac_configure_extra_args --silent"
8745 1.84 christos fi
8746 1.74 christos
8747 1.84 christos _ACEOF
8748 1.84 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8749 1.84 christos if \$ac_cs_recheck; then
8750 1.84 christos set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8751 1.84 christos shift
8752 1.108 christos \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
8753 1.84 christos CONFIG_SHELL='$SHELL'
8754 1.84 christos export CONFIG_SHELL
8755 1.84 christos exec "\$@"
8756 1.84 christos fi
8757 1.1 tv
8758 1.84 christos _ACEOF
8759 1.84 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8760 1.84 christos exec 5>>config.log
8761 1.84 christos {
8762 1.84 christos echo
8763 1.84 christos sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8764 1.84 christos ## Running $as_me. ##
8765 1.84 christos _ASBOX
8766 1.108 christos printf "%s\n" "$ac_log"
8767 1.84 christos } >&5
8768 1.1 tv
8769 1.1 tv _ACEOF
8770 1.84 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8771 1.84 christos _ACEOF
8772 1.84 christos
8773 1.84 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8774 1.1 tv
8775 1.84 christos # Handling of arguments.
8776 1.1 tv for ac_config_target in $ac_config_targets
8777 1.1 tv do
8778 1.84 christos case $ac_config_target in
8779 1.84 christos "nbtool_config.h") CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
8780 1.84 christos "defs.mk") CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
8781 1.84 christos
8782 1.108 christos *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
8783 1.1 tv esac
8784 1.1 tv done
8785 1.1 tv
8786 1.84 christos
8787 1.1 tv # If the user did not use the arguments to specify the items to instantiate,
8788 1.1 tv # then the envvar interface is used. Set only those that are not.
8789 1.1 tv # We use the long form for the default assignment because of an extremely
8790 1.1 tv # bizarre bug on SunOS 4.1.3.
8791 1.1 tv if $ac_need_defaults; then
8792 1.108 christos test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
8793 1.108 christos test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
8794 1.1 tv fi
8795 1.1 tv
8796 1.84 christos # Have a temporary directory for convenience. Make it in the build tree
8797 1.84 christos # simply because there is no reason against having it here, and in addition,
8798 1.84 christos # creating and moving files from /tmp can sometimes cause problems.
8799 1.84 christos # Hook for its removal unless debugging.
8800 1.84 christos # Note that there is a small window in which the directory will not be cleaned:
8801 1.108 christos # after its creation but before its name has been assigned to '$tmp'.
8802 1.1 tv $debug ||
8803 1.1 tv {
8804 1.84 christos tmp= ac_tmp=
8805 1.84 christos trap 'exit_status=$?
8806 1.84 christos : "${ac_tmp:=$tmp}"
8807 1.84 christos { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8808 1.84 christos ' 0
8809 1.84 christos trap 'as_fn_exit 1' 1 2 13 15
8810 1.1 tv }
8811 1.84 christos # Create a (secure) tmp directory for tmp files.
8812 1.76 pooka
8813 1.1 tv {
8814 1.84 christos tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8815 1.84 christos test -d "$tmp"
8816 1.1 tv } ||
8817 1.1 tv {
8818 1.84 christos tmp=./conf$$-$RANDOM
8819 1.84 christos (umask 077 && mkdir "$tmp")
8820 1.84 christos } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8821 1.84 christos ac_tmp=$tmp
8822 1.1 tv
8823 1.84 christos # Set up the scripts for CONFIG_FILES section.
8824 1.84 christos # No need to generate them if there are no CONFIG_FILES.
8825 1.108 christos # This happens for instance with './config.status config.h'.
8826 1.84 christos if test -n "$CONFIG_FILES"; then
8827 1.66 tsutsui
8828 1.66 tsutsui
8829 1.84 christos ac_cr=`echo X | tr X '\015'`
8830 1.84 christos # On cygwin, bash can eat \r inside `` if the user requested igncr.
8831 1.84 christos # But we know of no other shell where ac_cr would be empty at this
8832 1.84 christos # point, so we can use a bashism as a fallback.
8833 1.84 christos if test "x$ac_cr" = x; then
8834 1.84 christos eval ac_cr=\$\'\\r\'
8835 1.84 christos fi
8836 1.84 christos ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8837 1.84 christos if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8838 1.84 christos ac_cs_awk_cr='\\r'
8839 1.84 christos else
8840 1.84 christos ac_cs_awk_cr=$ac_cr
8841 1.84 christos fi
8842 1.1 tv
8843 1.84 christos echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8844 1.84 christos _ACEOF
8845 1.65 christos
8846 1.65 christos
8847 1.84 christos {
8848 1.84 christos echo "cat >conf$$subs.awk <<_ACEOF" &&
8849 1.84 christos echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8850 1.84 christos echo "_ACEOF"
8851 1.84 christos } >conf$$subs.sh ||
8852 1.84 christos as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8853 1.84 christos ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8854 1.84 christos ac_delim='%!_!# '
8855 1.84 christos for ac_last_try in false false false false false :; do
8856 1.84 christos . ./conf$$subs.sh ||
8857 1.84 christos as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8858 1.65 christos
8859 1.84 christos ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8860 1.84 christos if test $ac_delim_n = $ac_delim_num; then
8861 1.84 christos break
8862 1.84 christos elif $ac_last_try; then
8863 1.84 christos as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8864 1.65 christos else
8865 1.84 christos ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8866 1.1 tv fi
8867 1.84 christos done
8868 1.84 christos rm -f conf$$subs.sh
8869 1.65 christos
8870 1.84 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8871 1.84 christos cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8872 1.84 christos _ACEOF
8873 1.84 christos sed -n '
8874 1.84 christos h
8875 1.84 christos s/^/S["/; s/!.*/"]=/
8876 1.84 christos p
8877 1.84 christos g
8878 1.84 christos s/^[^!]*!//
8879 1.84 christos :repl
8880 1.84 christos t repl
8881 1.84 christos s/'"$ac_delim"'$//
8882 1.84 christos t delim
8883 1.84 christos :nl
8884 1.84 christos h
8885 1.84 christos s/\(.\{148\}\)..*/\1/
8886 1.84 christos t more1
8887 1.84 christos s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8888 1.84 christos p
8889 1.84 christos n
8890 1.84 christos b repl
8891 1.84 christos :more1
8892 1.84 christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8893 1.84 christos p
8894 1.84 christos g
8895 1.84 christos s/.\{148\}//
8896 1.84 christos t nl
8897 1.84 christos :delim
8898 1.84 christos h
8899 1.84 christos s/\(.\{148\}\)..*/\1/
8900 1.84 christos t more2
8901 1.84 christos s/["\\]/\\&/g; s/^/"/; s/$/"/
8902 1.84 christos p
8903 1.84 christos b
8904 1.84 christos :more2
8905 1.84 christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8906 1.84 christos p
8907 1.84 christos g
8908 1.84 christos s/.\{148\}//
8909 1.84 christos t delim
8910 1.84 christos ' <conf$$subs.awk | sed '
8911 1.84 christos /^[^""]/{
8912 1.84 christos N
8913 1.84 christos s/\n//
8914 1.84 christos }
8915 1.84 christos ' >>$CONFIG_STATUS || ac_write_fail=1
8916 1.84 christos rm -f conf$$subs.awk
8917 1.84 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8918 1.84 christos _ACAWK
8919 1.84 christos cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8920 1.84 christos for (key in S) S_is_set[key] = 1
8921 1.84 christos FS = ""
8922 1.84 christos
8923 1.84 christos }
8924 1.84 christos {
8925 1.84 christos line = $ 0
8926 1.84 christos nfields = split(line, field, "@")
8927 1.84 christos substed = 0
8928 1.84 christos len = length(field[1])
8929 1.84 christos for (i = 2; i < nfields; i++) {
8930 1.84 christos key = field[i]
8931 1.84 christos keylen = length(key)
8932 1.84 christos if (S_is_set[key]) {
8933 1.84 christos value = S[key]
8934 1.84 christos line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8935 1.84 christos len += length(value) + length(field[++i])
8936 1.84 christos substed = 1
8937 1.84 christos } else
8938 1.84 christos len += 1 + keylen
8939 1.84 christos }
8940 1.84 christos
8941 1.84 christos print line
8942 1.84 christos }
8943 1.84 christos
8944 1.84 christos _ACAWK
8945 1.84 christos _ACEOF
8946 1.84 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8947 1.84 christos if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8948 1.84 christos sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8949 1.84 christos else
8950 1.84 christos cat
8951 1.84 christos fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8952 1.84 christos || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8953 1.84 christos _ACEOF
8954 1.84 christos
8955 1.84 christos # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8956 1.84 christos # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8957 1.84 christos # trailing colons and then remove the whole line if VPATH becomes empty
8958 1.84 christos # (actually we leave an empty line to preserve line numbers).
8959 1.84 christos if test "x$srcdir" = x.; then
8960 1.84 christos ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8961 1.84 christos h
8962 1.84 christos s///
8963 1.84 christos s/^/:/
8964 1.84 christos s/[ ]*$/:/
8965 1.84 christos s/:\$(srcdir):/:/g
8966 1.84 christos s/:\${srcdir}:/:/g
8967 1.84 christos s/:@srcdir@:/:/g
8968 1.84 christos s/^:*//
8969 1.84 christos s/:*$//
8970 1.84 christos x
8971 1.84 christos s/\(=[ ]*\).*/\1/
8972 1.84 christos G
8973 1.84 christos s/\n//
8974 1.84 christos s/^[^=]*=[ ]*$//
8975 1.84 christos }'
8976 1.84 christos fi
8977 1.84 christos
8978 1.84 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8979 1.84 christos fi # test -n "$CONFIG_FILES"
8980 1.74 christos
8981 1.84 christos # Set up the scripts for CONFIG_HEADERS section.
8982 1.84 christos # No need to generate them if there are no CONFIG_HEADERS.
8983 1.108 christos # This happens for instance with './config.status Makefile'.
8984 1.84 christos if test -n "$CONFIG_HEADERS"; then
8985 1.84 christos cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8986 1.84 christos BEGIN {
8987 1.84 christos _ACEOF
8988 1.84 christos
8989 1.108 christos # Transform confdefs.h into an awk script 'defines.awk', embedded as
8990 1.84 christos # here-document in config.status, that substitutes the proper values into
8991 1.84 christos # config.h.in to produce config.h.
8992 1.84 christos
8993 1.84 christos # Create a delimiter string that does not exist in confdefs.h, to ease
8994 1.84 christos # handling of long lines.
8995 1.84 christos ac_delim='%!_!# '
8996 1.84 christos for ac_last_try in false false :; do
8997 1.84 christos ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8998 1.84 christos if test -z "$ac_tt"; then
8999 1.84 christos break
9000 1.84 christos elif $ac_last_try; then
9001 1.84 christos as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9002 1.66 tsutsui else
9003 1.84 christos ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9004 1.66 tsutsui fi
9005 1.66 tsutsui done
9006 1.66 tsutsui
9007 1.84 christos # For the awk script, D is an array of macro values keyed by name,
9008 1.84 christos # likewise P contains macro parameters if any. Preserve backslash
9009 1.84 christos # newline sequences.
9010 1.84 christos
9011 1.84 christos ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9012 1.84 christos sed -n '
9013 1.84 christos s/.\{148\}/&'"$ac_delim"'/g
9014 1.84 christos t rset
9015 1.84 christos :rset
9016 1.84 christos s/^[ ]*#[ ]*define[ ][ ]*/ /
9017 1.84 christos t def
9018 1.84 christos d
9019 1.84 christos :def
9020 1.84 christos s/\\$//
9021 1.84 christos t bsnl
9022 1.84 christos s/["\\]/\\&/g
9023 1.84 christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9024 1.84 christos D["\1"]=" \3"/p
9025 1.84 christos s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9026 1.84 christos d
9027 1.84 christos :bsnl
9028 1.84 christos s/["\\]/\\&/g
9029 1.84 christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9030 1.84 christos D["\1"]=" \3\\\\\\n"\\/p
9031 1.84 christos t cont
9032 1.84 christos s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9033 1.84 christos t cont
9034 1.84 christos d
9035 1.84 christos :cont
9036 1.84 christos n
9037 1.84 christos s/.\{148\}/&'"$ac_delim"'/g
9038 1.84 christos t clear
9039 1.84 christos :clear
9040 1.84 christos s/\\$//
9041 1.84 christos t bsnlc
9042 1.84 christos s/["\\]/\\&/g; s/^/"/; s/$/"/p
9043 1.84 christos d
9044 1.84 christos :bsnlc
9045 1.84 christos s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9046 1.84 christos b cont
9047 1.84 christos ' <confdefs.h | sed '
9048 1.84 christos s/'"$ac_delim"'/"\\\
9049 1.84 christos "/g' >>$CONFIG_STATUS || ac_write_fail=1
9050 1.84 christos
9051 1.84 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9052 1.84 christos for (key in D) D_is_set[key] = 1
9053 1.84 christos FS = ""
9054 1.84 christos }
9055 1.84 christos /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9056 1.84 christos line = \$ 0
9057 1.84 christos split(line, arg, " ")
9058 1.84 christos if (arg[1] == "#") {
9059 1.84 christos defundef = arg[2]
9060 1.84 christos mac1 = arg[3]
9061 1.84 christos } else {
9062 1.84 christos defundef = substr(arg[1], 2)
9063 1.84 christos mac1 = arg[2]
9064 1.84 christos }
9065 1.84 christos split(mac1, mac2, "(") #)
9066 1.84 christos macro = mac2[1]
9067 1.84 christos prefix = substr(line, 1, index(line, defundef) - 1)
9068 1.84 christos if (D_is_set[macro]) {
9069 1.84 christos # Preserve the white space surrounding the "#".
9070 1.84 christos print prefix "define", macro P[macro] D[macro]
9071 1.84 christos next
9072 1.84 christos } else {
9073 1.84 christos # Replace #undef with comments. This is necessary, for example,
9074 1.84 christos # in the case of _POSIX_SOURCE, which is predefined and required
9075 1.84 christos # on some systems where configure will not decide to define it.
9076 1.84 christos if (defundef == "undef") {
9077 1.84 christos print "/*", prefix defundef, macro, "*/"
9078 1.84 christos next
9079 1.84 christos }
9080 1.84 christos }
9081 1.84 christos }
9082 1.84 christos { print }
9083 1.84 christos _ACAWK
9084 1.84 christos _ACEOF
9085 1.84 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9086 1.84 christos as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9087 1.84 christos fi # test -n "$CONFIG_HEADERS"
9088 1.66 tsutsui
9089 1.1 tv
9090 1.84 christos eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
9091 1.84 christos shift
9092 1.84 christos for ac_tag
9093 1.84 christos do
9094 1.84 christos case $ac_tag in
9095 1.84 christos :[FHLC]) ac_mode=$ac_tag; continue;;
9096 1.84 christos esac
9097 1.84 christos case $ac_mode$ac_tag in
9098 1.84 christos :[FHL]*:*);;
9099 1.108 christos :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
9100 1.84 christos :[FH]-) ac_tag=-:-;;
9101 1.84 christos :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9102 1.74 christos esac
9103 1.84 christos ac_save_IFS=$IFS
9104 1.84 christos IFS=:
9105 1.84 christos set x $ac_tag
9106 1.84 christos IFS=$ac_save_IFS
9107 1.84 christos shift
9108 1.84 christos ac_file=$1
9109 1.84 christos shift
9110 1.84 christos
9111 1.84 christos case $ac_mode in
9112 1.84 christos :L) ac_source=$1;;
9113 1.84 christos :[FH])
9114 1.84 christos ac_file_inputs=
9115 1.84 christos for ac_f
9116 1.84 christos do
9117 1.84 christos case $ac_f in
9118 1.84 christos -) ac_f="$ac_tmp/stdin";;
9119 1.84 christos *) # Look for the file first in the build tree, then in the source tree
9120 1.84 christos # (if the path is not absolute). The absolute path cannot be DOS-style,
9121 1.108 christos # because $ac_f cannot contain ':'.
9122 1.84 christos test -f "$ac_f" ||
9123 1.84 christos case $ac_f in
9124 1.84 christos [\\/$]*) false;;
9125 1.84 christos *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9126 1.84 christos esac ||
9127 1.108 christos as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
9128 1.84 christos esac
9129 1.108 christos case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9130 1.84 christos as_fn_append ac_file_inputs " '$ac_f'"
9131 1.84 christos done
9132 1.74 christos
9133 1.108 christos # Let's still pretend it is 'configure' which instantiates (i.e., don't
9134 1.84 christos # use $as_me), people would be surprised to read:
9135 1.84 christos # /* config.h. Generated by config.status. */
9136 1.84 christos configure_input='Generated from '`
9137 1.108 christos printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9138 1.84 christos `' by configure.'
9139 1.84 christos if test x"$ac_file" != x-; then
9140 1.84 christos configure_input="$ac_file. $configure_input"
9141 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9142 1.108 christos printf "%s\n" "$as_me: creating $ac_file" >&6;}
9143 1.84 christos fi
9144 1.84 christos # Neutralize special characters interpreted by sed in replacement strings.
9145 1.84 christos case $configure_input in #(
9146 1.84 christos *\&* | *\|* | *\\* )
9147 1.108 christos ac_sed_conf_input=`printf "%s\n" "$configure_input" |
9148 1.84 christos sed 's/[\\\\&|]/\\\\&/g'`;; #(
9149 1.84 christos *) ac_sed_conf_input=$configure_input;;
9150 1.84 christos esac
9151 1.76 pooka
9152 1.84 christos case $ac_tag in
9153 1.84 christos *:-:* | *:-) cat >"$ac_tmp/stdin" \
9154 1.84 christos || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9155 1.84 christos esac
9156 1.66 tsutsui ;;
9157 1.66 tsutsui esac
9158 1.66 tsutsui
9159 1.84 christos ac_dir=`$as_dirname -- "$ac_file" ||
9160 1.84 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9161 1.84 christos X"$ac_file" : 'X\(//\)[^/]' \| \
9162 1.84 christos X"$ac_file" : 'X\(//\)$' \| \
9163 1.84 christos X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9164 1.108 christos printf "%s\n" X"$ac_file" |
9165 1.84 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9166 1.84 christos s//\1/
9167 1.84 christos q
9168 1.84 christos }
9169 1.84 christos /^X\(\/\/\)[^/].*/{
9170 1.84 christos s//\1/
9171 1.84 christos q
9172 1.84 christos }
9173 1.84 christos /^X\(\/\/\)$/{
9174 1.84 christos s//\1/
9175 1.84 christos q
9176 1.84 christos }
9177 1.84 christos /^X\(\/\).*/{
9178 1.84 christos s//\1/
9179 1.84 christos q
9180 1.84 christos }
9181 1.84 christos s/.*/./; q'`
9182 1.84 christos as_dir="$ac_dir"; as_fn_mkdir_p
9183 1.84 christos ac_builddir=.
9184 1.84 christos
9185 1.84 christos case "$ac_dir" in
9186 1.84 christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9187 1.84 christos *)
9188 1.108 christos ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9189 1.84 christos # A ".." for each directory in $ac_dir_suffix.
9190 1.108 christos ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9191 1.84 christos case $ac_top_builddir_sub in
9192 1.84 christos "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9193 1.84 christos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9194 1.84 christos esac ;;
9195 1.84 christos esac
9196 1.84 christos ac_abs_top_builddir=$ac_pwd
9197 1.84 christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
9198 1.84 christos # for backward compatibility:
9199 1.84 christos ac_top_builddir=$ac_top_build_prefix
9200 1.84 christos
9201 1.84 christos case $srcdir in
9202 1.84 christos .) # We are building in place.
9203 1.84 christos ac_srcdir=.
9204 1.84 christos ac_top_srcdir=$ac_top_builddir_sub
9205 1.84 christos ac_abs_top_srcdir=$ac_pwd ;;
9206 1.84 christos [\\/]* | ?:[\\/]* ) # Absolute name.
9207 1.84 christos ac_srcdir=$srcdir$ac_dir_suffix;
9208 1.84 christos ac_top_srcdir=$srcdir
9209 1.84 christos ac_abs_top_srcdir=$srcdir ;;
9210 1.84 christos *) # Relative name.
9211 1.84 christos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9212 1.84 christos ac_top_srcdir=$ac_top_build_prefix$srcdir
9213 1.84 christos ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9214 1.84 christos esac
9215 1.84 christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9216 1.84 christos
9217 1.84 christos
9218 1.84 christos case $ac_mode in
9219 1.84 christos :F)
9220 1.84 christos #
9221 1.84 christos # CONFIG_FILE
9222 1.84 christos #
9223 1.84 christos
9224 1.84 christos _ACEOF
9225 1.84 christos
9226 1.84 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9227 1.84 christos # If the template does not know about datarootdir, expand it.
9228 1.84 christos # FIXME: This hack should be removed a few years after 2.60.
9229 1.84 christos ac_datarootdir_hack=; ac_datarootdir_seen=
9230 1.84 christos ac_sed_dataroot='
9231 1.84 christos /datarootdir/ {
9232 1.84 christos p
9233 1.84 christos q
9234 1.84 christos }
9235 1.84 christos /@datadir@/p
9236 1.84 christos /@docdir@/p
9237 1.84 christos /@infodir@/p
9238 1.84 christos /@localedir@/p
9239 1.84 christos /@mandir@/p'
9240 1.84 christos case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9241 1.84 christos *datarootdir*) ac_datarootdir_seen=yes;;
9242 1.84 christos *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9243 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9244 1.108 christos printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9245 1.84 christos _ACEOF
9246 1.84 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9247 1.84 christos ac_datarootdir_hack='
9248 1.84 christos s&@datadir@&$datadir&g
9249 1.84 christos s&@docdir@&$docdir&g
9250 1.84 christos s&@infodir@&$infodir&g
9251 1.84 christos s&@localedir@&$localedir&g
9252 1.84 christos s&@mandir@&$mandir&g
9253 1.84 christos s&\\\${datarootdir}&$datarootdir&g' ;;
9254 1.84 christos esac
9255 1.84 christos _ACEOF
9256 1.84 christos
9257 1.108 christos # Neutralize VPATH when '$srcdir' = '.'.
9258 1.84 christos # Shell code in configure.ac might set extrasub.
9259 1.84 christos # FIXME: do we really want to maintain this feature?
9260 1.84 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9261 1.84 christos ac_sed_extra="$ac_vpsub
9262 1.84 christos $extrasub
9263 1.84 christos _ACEOF
9264 1.84 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9265 1.84 christos :t
9266 1.84 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9267 1.84 christos s|@configure_input@|$ac_sed_conf_input|;t t
9268 1.84 christos s&@top_builddir@&$ac_top_builddir_sub&;t t
9269 1.84 christos s&@top_build_prefix@&$ac_top_build_prefix&;t t
9270 1.84 christos s&@srcdir@&$ac_srcdir&;t t
9271 1.84 christos s&@abs_srcdir@&$ac_abs_srcdir&;t t
9272 1.84 christos s&@top_srcdir@&$ac_top_srcdir&;t t
9273 1.84 christos s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9274 1.84 christos s&@builddir@&$ac_builddir&;t t
9275 1.84 christos s&@abs_builddir@&$ac_abs_builddir&;t t
9276 1.84 christos s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9277 1.84 christos $ac_datarootdir_hack
9278 1.84 christos "
9279 1.84 christos eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9280 1.84 christos >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9281 1.84 christos
9282 1.84 christos test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9283 1.84 christos { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9284 1.84 christos { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9285 1.84 christos "$ac_tmp/out"`; test -z "$ac_out"; } &&
9286 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
9287 1.84 christos which seems to be undefined. Please make sure it is defined" >&5
9288 1.108 christos printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
9289 1.84 christos which seems to be undefined. Please make sure it is defined" >&2;}
9290 1.84 christos
9291 1.84 christos rm -f "$ac_tmp/stdin"
9292 1.84 christos case $ac_file in
9293 1.84 christos -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9294 1.84 christos *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9295 1.84 christos esac \
9296 1.84 christos || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9297 1.84 christos ;;
9298 1.84 christos :H)
9299 1.84 christos #
9300 1.84 christos # CONFIG_HEADER
9301 1.84 christos #
9302 1.84 christos if test x"$ac_file" != x-; then
9303 1.84 christos {
9304 1.108 christos printf "%s\n" "/* $configure_input */" >&1 \
9305 1.84 christos && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9306 1.84 christos } >"$ac_tmp/config.h" \
9307 1.84 christos || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9308 1.84 christos if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9309 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9310 1.108 christos printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
9311 1.84 christos else
9312 1.84 christos rm -f "$ac_file"
9313 1.84 christos mv "$ac_tmp/config.h" "$ac_file" \
9314 1.84 christos || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9315 1.1 tv fi
9316 1.1 tv else
9317 1.108 christos printf "%s\n" "/* $configure_input */" >&1 \
9318 1.84 christos && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9319 1.84 christos || as_fn_error $? "could not create -" "$LINENO" 5
9320 1.1 tv fi
9321 1.84 christos ;;
9322 1.84 christos
9323 1.84 christos
9324 1.84 christos esac
9325 1.84 christos
9326 1.84 christos done # for ac_tag
9327 1.74 christos
9328 1.74 christos
9329 1.84 christos as_fn_exit 0
9330 1.84 christos _ACEOF
9331 1.1 tv ac_clean_files=$ac_clean_files_save
9332 1.1 tv
9333 1.84 christos test $ac_write_fail = 0 ||
9334 1.84 christos as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9335 1.84 christos
9336 1.84 christos
9337 1.1 tv # configure is writing to config.log, and then calls config.status.
9338 1.1 tv # config.status does its own redirection, appending to config.log.
9339 1.1 tv # Unfortunately, on DOS this fails, as config.log is still kept open
9340 1.1 tv # by configure, so config.status won't be able to write to it; its
9341 1.1 tv # output is simply discarded. So we exec the FD to /dev/null,
9342 1.1 tv # effectively closing config.log, so it can be properly (re)opened and
9343 1.1 tv # appended to by config.status. When coming back to configure, we
9344 1.1 tv # need to make the FD available again.
9345 1.1 tv if test "$no_create" != yes; then
9346 1.1 tv ac_cs_success=:
9347 1.84 christos ac_config_status_args=
9348 1.84 christos test "$silent" = yes &&
9349 1.84 christos ac_config_status_args="$ac_config_status_args --quiet"
9350 1.1 tv exec 5>/dev/null
9351 1.84 christos $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9352 1.1 tv exec 5>>config.log
9353 1.1 tv # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9354 1.1 tv # would make configure fail if this is the last instruction.
9355 1.84 christos $ac_cs_success || as_fn_exit 1
9356 1.84 christos fi
9357 1.84 christos if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9358 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9359 1.108 christos printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9360 1.1 tv fi
9361 1.96 hannken
9362 1.102 lukem
9363 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ========= configure results for compat ==========" >&5
9364 1.108 christos printf "%s\n" "$as_me: ========= configure results for compat ==========" >&6;}
9365 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC $CC" >&5
9366 1.108 christos printf "%s\n" "$as_me: CC $CC" >&6;}
9367 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS $LIBS" >&5
9368 1.108 christos printf "%s\n" "$as_me: LIBS $LIBS" >&6;}
9369 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_NO_CPP_PRECOMP $CC_NO_CPP_PRECOMP" >&5
9370 1.108 christos printf "%s\n" "$as_me: CC_NO_CPP_PRECOMP $CC_NO_CPP_PRECOMP" >&6;}
9371 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_ADDRESS_OF_PACKED_MEMBER $CC_WNO_ADDRESS_OF_PACKED_MEMBER" >&5
9372 1.108 christos printf "%s\n" "$as_me: CC_WNO_ADDRESS_OF_PACKED_MEMBER $CC_WNO_ADDRESS_OF_PACKED_MEMBER" >&6;}
9373 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_CAST_FUNCTION_TYPE $CC_WNO_CAST_FUNCTION_TYPE" >&5
9374 1.108 christos printf "%s\n" "$as_me: CC_WNO_CAST_FUNCTION_TYPE $CC_WNO_CAST_FUNCTION_TYPE" >&6;}
9375 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER $CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER" >&5
9376 1.108 christos printf "%s\n" "$as_me: CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER $CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER" >&6;}
9377 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_FORMAT_OVERFLOW $CC_WNO_FORMAT_OVERFLOW" >&5
9378 1.108 christos printf "%s\n" "$as_me: CC_WNO_FORMAT_OVERFLOW $CC_WNO_FORMAT_OVERFLOW" >&6;}
9379 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_FORMAT_TRUNCATION $CC_WNO_FORMAT_TRUNCATION" >&5
9380 1.108 christos printf "%s\n" "$as_me: CC_WNO_FORMAT_TRUNCATION $CC_WNO_FORMAT_TRUNCATION" >&6;}
9381 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_IMPLICIT_FALLTHROUGH $CC_WNO_IMPLICIT_FALLTHROUGH" >&5
9382 1.108 christos printf "%s\n" "$as_me: CC_WNO_IMPLICIT_FALLTHROUGH $CC_WNO_IMPLICIT_FALLTHROUGH" >&6;}
9383 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_MAYBE_UNINITIALIZED $CC_WNO_MAYBE_UNINITIALIZED" >&5
9384 1.108 christos printf "%s\n" "$as_me: CC_WNO_MAYBE_UNINITIALIZED $CC_WNO_MAYBE_UNINITIALIZED" >&6;}
9385 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_RETURN_LOCAL_ADDR $CC_WNO_RETURN_LOCAL_ADDR" >&5
9386 1.108 christos printf "%s\n" "$as_me: CC_WNO_RETURN_LOCAL_ADDR $CC_WNO_RETURN_LOCAL_ADDR" >&6;}
9387 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_STRINGOP_OVERFLOW $CC_WNO_STRINGOP_OVERFLOW" >&5
9388 1.108 christos printf "%s\n" "$as_me: CC_WNO_STRINGOP_OVERFLOW $CC_WNO_STRINGOP_OVERFLOW" >&6;}
9389 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_STRINGOP_TRUNCATION $CC_WNO_STRINGOP_TRUNCATION" >&5
9390 1.108 christos printf "%s\n" "$as_me: CC_WNO_STRINGOP_TRUNCATION $CC_WNO_STRINGOP_TRUNCATION" >&6;}
9391 1.108 christos
9392 1.108 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ================================================" >&5
9393 1.108 christos printf "%s\n" "$as_me: ================================================" >&6;}
9394 1.103 lukem
9395