Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libpipeline 1.5.8.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1
188
189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 PATH=/empty FPATH=/empty; export PATH FPATH
194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: [email protected] about your system, including any
283 $0: error possibly output before this message. Then install
284 $0: a modern shell, or manually run the script under such a
285 $0: shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='libpipeline'
616 PACKAGE_TARNAME='libpipeline'
617 PACKAGE_VERSION='1.5.8'
618 PACKAGE_STRING='libpipeline 1.5.8'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="lib/pipeline.c"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 gl_use_threads_default=
656 gl_use_winpthreads_default=no
657 ac_func_c_list=
658 enable_year2038=no
659 ac_subst_vars='gltests_LIBOBJDEPS
660 gltests_LTLIBOBJS
661 gltests_LIBOBJS
662 gl_LIBOBJDEPS
663 gl_LTLIBOBJS
664 gl_LIBOBJS
665 am__EXEEXT_FALSE
666 am__EXEEXT_TRUE
667 LTLIBOBJS
668 LIBOBJS
669 GL_CFLAG_GNULIB_WARNINGS
670 GL_CFLAG_ALLOW_WARNINGS
671 gltests_WITNESS
672 GL_COND_OBJ_WRITE_FALSE
673 GL_COND_OBJ_WRITE_TRUE
674 GL_COND_OBJ_WINDOWS_TLS_FALSE
675 GL_COND_OBJ_WINDOWS_TLS_TRUE
676 GL_COND_OBJ_WINDOWS_RWLOCK_FALSE
677 GL_COND_OBJ_WINDOWS_RWLOCK_TRUE
678 GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE
679 GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE
680 GL_COND_OBJ_WINDOWS_ONCE_FALSE
681 GL_COND_OBJ_WINDOWS_ONCE_TRUE
682 GL_COND_OBJ_WINDOWS_MUTEX_FALSE
683 GL_COND_OBJ_WINDOWS_MUTEX_TRUE
684 HAVE_CRTDEFS_H
685 HAVE_WINT_T
686 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
687 NEXT_WCHAR_H
688 GL_COND_OBJ_WAITPID_FALSE
689 GL_COND_OBJ_WAITPID_TRUE
690 HAVE_FEATURES_H
691 GL_COND_OBJ_UNSETENV_FALSE
692 GL_COND_OBJ_UNSETENV_TRUE
693 HAVE_UNISTD_H
694 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
695 NEXT_UNISTD_H
696 GL_GNULIB_MDA_TZSET
697 GL_GNULIB_TZSET
698 GL_GNULIB_TZNAME
699 GL_GNULIB_TIME_RZ
700 GL_GNULIB_TIME_R
701 GL_GNULIB_TIMESPEC_GETRES
702 GL_GNULIB_TIMESPEC_GET
703 GL_GNULIB_TIMEGM
704 GL_GNULIB_TIME
705 GL_GNULIB_STRPTIME
706 GL_GNULIB_STRFTIME
707 GL_GNULIB_NANOSLEEP
708 GL_GNULIB_LOCALTIME
709 GL_GNULIB_MKTIME
710 GL_GNULIB_CTIME
711 TIME_H_DEFINES_TIME_UTC
712 UNISTD_H_DEFINES_STRUCT_TIMESPEC
713 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
714 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
715 TIME_H_DEFINES_STRUCT_TIMESPEC
716 NEXT_AS_FIRST_DIRECTIVE_TIME_H
717 NEXT_TIME_H
718 REPLACE_TZSET
719 REPLACE_TIMESPEC_GETRES
720 REPLACE_TIMESPEC_GET
721 REPLACE_TIMEGM
722 REPLACE_TIME
723 REPLACE_STRFTIME
724 REPLACE_NANOSLEEP
725 REPLACE_MKTIME
726 REPLACE_LOCALTIME_R
727 REPLACE_LOCALTIME
728 REPLACE_GMTIME
729 REPLACE_CTIME
730 HAVE_TIMEZONE_T
731 HAVE_TIMESPEC_GETRES
732 HAVE_TIMESPEC_GET
733 HAVE_TIMEGM
734 HAVE_STRPTIME
735 HAVE_NANOSLEEP
736 HAVE_DECL_LOCALTIME_R
737 GL_GNULIB_WAITPID
738 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
739 NEXT_SYS_WAIT_H
740 WINDOWS_STAT_INODES
741 HAVE_OFF64_T
742 WINDOWS_64_BIT_OFF_T
743 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
744 NEXT_SYS_TYPES_H
745 GL_GNULIB_GETTIMEOFDAY
746 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
747 NEXT_SYS_TIME_H
748 REPLACE_STRUCT_TIMEVAL
749 REPLACE_GETTIMEOFDAY
750 HAVE_SYS_TIME_H
751 HAVE_STRUCT_TIMEVAL
752 HAVE_GETTIMEOFDAY
753 GL_GNULIB_SELECT
754 GL_GNULIB_PSELECT
755 HAVE_SYS_SELECT_H
756 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
757 NEXT_SYS_SELECT_H
758 REPLACE_SELECT
759 REPLACE_PSELECT
760 HAVE_PSELECT
761 HAVE_SYS_RANDOM_H
762 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H
763 NEXT_SYS_RANDOM_H
764 GL_COND_OBJ_STRSIGNAL_FALSE
765 GL_COND_OBJ_STRSIGNAL_TRUE
766 GL_COND_OBJ_STRNLEN_FALSE
767 GL_COND_OBJ_STRNLEN_TRUE
768 GL_COND_OBJ_STRNDUP_FALSE
769 GL_COND_OBJ_STRNDUP_TRUE
770 NEXT_AS_FIRST_DIRECTIVE_STRING_H
771 NEXT_STRING_H
772 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE
773 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE
774 GL_COND_OBJ_STRERROR_FALSE
775 GL_COND_OBJ_STRERROR_TRUE
776 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
777 NEXT_STDLIB_H
778 GL_COND_OBJ_STDIO_WRITE_FALSE
779 GL_COND_OBJ_STDIO_WRITE_TRUE
780 GL_COND_OBJ_STDIO_READ_FALSE
781 GL_COND_OBJ_STDIO_READ_TRUE
782 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
783 NEXT_STDIO_H
784 GL_GENERATE_STDINT_H_FALSE
785 GL_GENERATE_STDINT_H_TRUE
786 STDINT_H
787 GL_GENERATE_STDDEF_H_FALSE
788 GL_GENERATE_STDDEF_H_TRUE
789 STDDEF_H
790 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
791 NEXT_STDDEF_H
792 HAVE_MAX_ALIGN_T
793 REPLACE_NULL
794 STDDEF_NOT_IDEMPOTENT
795 NULLPTR_T_NEEDS_STDDEF
796 GL_GENERATE_STDCKDINT_H_FALSE
797 GL_GENERATE_STDCKDINT_H_TRUE
798 STDCKDINT_H
799 GL_GENERATE_STDARG_H_FALSE
800 GL_GENERATE_STDARG_H_TRUE
801 STDARG_H
802 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
803 NEXT_STDARG_H
804 GL_COND_OBJ_STAT_FALSE
805 GL_COND_OBJ_STAT_TRUE
806 GL_GNULIB_MDA_TEMPNAM
807 GL_GNULIB_MDA_PUTW
808 GL_GNULIB_MDA_GETW
809 GL_GNULIB_MDA_FILENO
810 GL_GNULIB_MDA_FDOPEN
811 GL_GNULIB_MDA_FCLOSEALL
812 GL_GNULIB_ZPRINTF
813 GL_GNULIB_VZPRINTF
814 GL_GNULIB_VSZPRINTF
815 GL_GNULIB_VSPRINTF_POSIX
816 GL_GNULIB_VSNZPRINTF
817 GL_GNULIB_VSNPRINTF
818 GL_GNULIB_VPRINTF_POSIX
819 GL_GNULIB_VPRINTF
820 GL_GNULIB_VFZPRINTF
821 GL_GNULIB_VFPRINTF_POSIX
822 GL_GNULIB_VFPRINTF
823 GL_GNULIB_VDZPRINTF
824 GL_GNULIB_VDPRINTF
825 GL_GNULIB_VSCANF
826 GL_GNULIB_VFSCANF
827 GL_GNULIB_VASZPRINTF
828 GL_GNULIB_VASPRINTF
829 GL_GNULIB_TMPFILE
830 GL_GNULIB_SZPRINTF
831 GL_GNULIB_STDIO_H_SIGPIPE
832 GL_GNULIB_STDIO_H_NONBLOCKING
833 GL_GNULIB_SPRINTF_POSIX
834 GL_GNULIB_SNZPRINTF
835 GL_GNULIB_SNPRINTF
836 GL_GNULIB_SCANF
837 GL_GNULIB_RENAMEAT
838 GL_GNULIB_RENAME
839 GL_GNULIB_REMOVE
840 GL_GNULIB_PUTS
841 GL_GNULIB_PUTCHAR
842 GL_GNULIB_PUTC
843 GL_GNULIB_PRINTF_POSIX
844 GL_GNULIB_PRINTF
845 GL_GNULIB_POPEN
846 GL_GNULIB_PERROR
847 GL_GNULIB_PCLOSE
848 GL_GNULIB_OBSTACK_ZPRINTF
849 GL_GNULIB_OBSTACK_PRINTF_POSIX
850 GL_GNULIB_OBSTACK_PRINTF
851 GL_GNULIB_GETLINE
852 GL_GNULIB_GETDELIM
853 GL_GNULIB_GETCHAR
854 GL_GNULIB_GETC
855 GL_GNULIB_FZPRINTF
856 GL_GNULIB_FWRITE
857 GL_GNULIB_FTELLO
858 GL_GNULIB_FTELL
859 GL_GNULIB_FSEEKO
860 GL_GNULIB_FSEEK
861 GL_GNULIB_FSCANF
862 GL_GNULIB_FREOPEN
863 GL_GNULIB_FREAD
864 GL_GNULIB_FPUTS
865 GL_GNULIB_FPUTC
866 GL_GNULIB_FPURGE
867 GL_GNULIB_FPRINTF_POSIX
868 GL_GNULIB_FPRINTF
869 GL_GNULIB_FOPEN_GNU
870 GL_GNULIB_FOPEN
871 GL_GNULIB_FGETS
872 GL_GNULIB_FGETC
873 GL_GNULIB_FFLUSH
874 GL_GNULIB_FDOPEN
875 GL_GNULIB_FCLOSE
876 GL_GNULIB_DZPRINTF
877 GL_GNULIB_DPRINTF
878 REPLACE_VSPRINTF
879 REPLACE_VSNPRINTF
880 REPLACE_VPRINTF
881 REPLACE_VFPRINTF
882 REPLACE_VDPRINTF
883 REPLACE_VASPRINTF
884 REPLACE_TMPFILE
885 REPLACE_STDIO_WRITE_FUNCS
886 REPLACE_STDIO_READ_FUNCS
887 REPLACE_SPRINTF
888 REPLACE_SNPRINTF
889 REPLACE_RENAMEAT
890 REPLACE_RENAME
891 REPLACE_REMOVE
892 REPLACE_PRINTF
893 REPLACE_POPEN
894 REPLACE_PERROR
895 REPLACE_OBSTACK_PRINTF
896 REPLACE_GETLINE
897 REPLACE_GETDELIM
898 REPLACE_FTELLO
899 REPLACE_FTELL
900 REPLACE_FSEEKO
901 REPLACE_FSEEK
902 REPLACE_FREOPEN
903 REPLACE_FPURGE
904 REPLACE_FPRINTF
905 REPLACE_FOPEN_FOR_FOPEN_GNU
906 REPLACE_FOPEN
907 REPLACE_FFLUSH
908 REPLACE_FDOPEN
909 REPLACE_FCLOSE
910 REPLACE_DPRINTF
911 HAVE_VDPRINTF
912 HAVE_VASPRINTF
913 HAVE_RENAMEAT
914 HAVE_POPEN
915 HAVE_PCLOSE
916 HAVE_FTELLO
917 HAVE_FSEEKO
918 HAVE_DPRINTF
919 HAVE_DECL_VSNPRINTF
920 HAVE_DECL_SNPRINTF
921 HAVE_DECL_PUTW
922 HAVE_DECL_OBSTACK_PRINTF
923 HAVE_DECL_GETW
924 HAVE_DECL_GETLINE
925 HAVE_DECL_GETDELIM
926 HAVE_DECL_FTELLO
927 HAVE_DECL_FSEEKO
928 HAVE_DECL_FPURGE
929 HAVE_DECL_FCLOSEALL
930 GL_COND_OBJ_SIGPROCMASK_FALSE
931 GL_COND_OBJ_SIGPROCMASK_TRUE
932 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
933 NEXT_SIGNAL_H
934 GL_COND_OBJ_SIGACTION_FALSE
935 GL_COND_OBJ_SIGACTION_TRUE
936 GL_COND_OBJ_SETENV_FALSE
937 GL_COND_OBJ_SETENV_TRUE
938 GL_GNULIB_SCHED_YIELD
939 HAVE_STRUCT_SCHED_PARAM
940 HAVE_SCHED_H
941 NEXT_AS_FIRST_DIRECTIVE_SCHED_H
942 NEXT_SCHED_H
943 HAVE_SYS_CDEFS_H
944 REPLACE_SCHED_YIELD
945 HAVE_SCHED_YIELD
946 GL_COND_OBJ_REALLOCARRAY_FALSE
947 GL_COND_OBJ_REALLOCARRAY_TRUE
948 GL_COND_OBJ_READ_FALSE
949 GL_COND_OBJ_READ_TRUE
950 GL_GNULIB_SIGACTION
951 GL_GNULIB_SIGPROCMASK
952 GL_GNULIB_SIGNAL_H_SIGPIPE
953 GL_GNULIB_RAISE
954 GL_GNULIB_PTHREAD_SIGMASK
955 GL_COND_OBJ_RAISE_FALSE
956 GL_COND_OBJ_RAISE_TRUE
957 REPLACE_RAISE
958 REPLACE_PTHREAD_SIGMASK
959 HAVE_SIGHANDLER_T
960 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
961 HAVE_STRUCT_SIGACTION_SA_SIGACTION
962 HAVE_SIGACTION
963 HAVE_SIGINFO_T
964 HAVE_SIGSET_T
965 HAVE_RAISE
966 HAVE_PTHREAD_SIGMASK
967 HAVE_POSIX_SIGNALBLOCKING
968 GL_COND_OBJ_PTHREAD_ONCE_FALSE
969 GL_COND_OBJ_PTHREAD_ONCE_TRUE
970 GL_GNULIB_PTHREAD_MUTEX_TIMEDLOCK
971 GL_GNULIB_PTHREAD_SPIN
972 GL_GNULIB_PTHREAD_TSS
973 GL_GNULIB_PTHREAD_COND
974 GL_GNULIB_PTHREAD_RWLOCK
975 GL_GNULIB_PTHREAD_MUTEX
976 GL_GNULIB_PTHREAD_ONCE
977 GL_GNULIB_PTHREAD_THREAD
978 LIB_PTHREAD
979 HAVE_PTHREAD_H
980 NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H
981 NEXT_PTHREAD_H
982 REPLACE_PTHREAD_SPIN_DESTROY
983 REPLACE_PTHREAD_SPIN_UNLOCK
984 REPLACE_PTHREAD_SPIN_TRYLOCK
985 REPLACE_PTHREAD_SPIN_LOCK
986 REPLACE_PTHREAD_SPIN_INIT
987 REPLACE_PTHREAD_KEY_DELETE
988 REPLACE_PTHREAD_GETSPECIFIC
989 REPLACE_PTHREAD_SETSPECIFIC
990 REPLACE_PTHREAD_KEY_CREATE
991 REPLACE_PTHREAD_COND_DESTROY
992 REPLACE_PTHREAD_COND_BROADCAST
993 REPLACE_PTHREAD_COND_SIGNAL
994 REPLACE_PTHREAD_COND_TIMEDWAIT
995 REPLACE_PTHREAD_COND_WAIT
996 REPLACE_PTHREAD_CONDATTR_DESTROY
997 REPLACE_PTHREAD_CONDATTR_INIT
998 REPLACE_PTHREAD_COND_INIT
999 REPLACE_PTHREAD_RWLOCK_DESTROY
1000 REPLACE_PTHREAD_RWLOCK_UNLOCK
1001 REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK
1002 REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK
1003 REPLACE_PTHREAD_RWLOCK_TRYWRLOCK
1004 REPLACE_PTHREAD_RWLOCK_TRYRDLOCK
1005 REPLACE_PTHREAD_RWLOCK_WRLOCK
1006 REPLACE_PTHREAD_RWLOCK_RDLOCK
1007 REPLACE_PTHREAD_RWLOCKATTR_DESTROY
1008 REPLACE_PTHREAD_RWLOCKATTR_INIT
1009 REPLACE_PTHREAD_RWLOCK_INIT
1010 REPLACE_PTHREAD_MUTEX_DESTROY
1011 REPLACE_PTHREAD_MUTEX_UNLOCK
1012 REPLACE_PTHREAD_MUTEX_TIMEDLOCK
1013 REPLACE_PTHREAD_MUTEX_TRYLOCK
1014 REPLACE_PTHREAD_MUTEX_LOCK
1015 REPLACE_PTHREAD_MUTEXATTR_DESTROY
1016 REPLACE_PTHREAD_MUTEXATTR_SETROBUST
1017 REPLACE_PTHREAD_MUTEXATTR_GETROBUST
1018 REPLACE_PTHREAD_MUTEXATTR_SETTYPE
1019 REPLACE_PTHREAD_MUTEXATTR_GETTYPE
1020 REPLACE_PTHREAD_MUTEXATTR_INIT
1021 REPLACE_PTHREAD_MUTEX_INIT
1022 REPLACE_PTHREAD_ONCE
1023 REPLACE_PTHREAD_EXIT
1024 REPLACE_PTHREAD_JOIN
1025 REPLACE_PTHREAD_DETACH
1026 REPLACE_PTHREAD_EQUAL
1027 REPLACE_PTHREAD_SELF
1028 REPLACE_PTHREAD_ATTR_DESTROY
1029 REPLACE_PTHREAD_ATTR_SETDETACHSTATE
1030 REPLACE_PTHREAD_ATTR_GETDETACHSTATE
1031 REPLACE_PTHREAD_ATTR_INIT
1032 REPLACE_PTHREAD_CREATE
1033 HAVE_PTHREAD_SPIN_DESTROY
1034 HAVE_PTHREAD_SPIN_UNLOCK
1035 HAVE_PTHREAD_SPIN_TRYLOCK
1036 HAVE_PTHREAD_SPIN_LOCK
1037 HAVE_PTHREAD_SPIN_INIT
1038 HAVE_PTHREAD_KEY_DELETE
1039 HAVE_PTHREAD_GETSPECIFIC
1040 HAVE_PTHREAD_SETSPECIFIC
1041 HAVE_PTHREAD_KEY_CREATE
1042 HAVE_PTHREAD_COND_DESTROY
1043 HAVE_PTHREAD_COND_BROADCAST
1044 HAVE_PTHREAD_COND_SIGNAL
1045 HAVE_PTHREAD_COND_TIMEDWAIT
1046 HAVE_PTHREAD_COND_WAIT
1047 HAVE_PTHREAD_CONDATTR_DESTROY
1048 HAVE_PTHREAD_CONDATTR_INIT
1049 HAVE_PTHREAD_COND_INIT
1050 HAVE_PTHREAD_RWLOCK_DESTROY
1051 HAVE_PTHREAD_RWLOCK_UNLOCK
1052 HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK
1053 HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK
1054 HAVE_PTHREAD_RWLOCK_TRYWRLOCK
1055 HAVE_PTHREAD_RWLOCK_TRYRDLOCK
1056 HAVE_PTHREAD_RWLOCK_WRLOCK
1057 HAVE_PTHREAD_RWLOCK_RDLOCK
1058 HAVE_PTHREAD_RWLOCKATTR_DESTROY
1059 HAVE_PTHREAD_RWLOCKATTR_INIT
1060 HAVE_PTHREAD_RWLOCK_INIT
1061 HAVE_PTHREAD_MUTEX_DESTROY
1062 HAVE_PTHREAD_MUTEX_UNLOCK
1063 HAVE_PTHREAD_MUTEX_TIMEDLOCK
1064 HAVE_PTHREAD_MUTEX_TRYLOCK
1065 HAVE_PTHREAD_MUTEX_LOCK
1066 HAVE_PTHREAD_MUTEXATTR_DESTROY
1067 HAVE_PTHREAD_MUTEXATTR_SETROBUST
1068 HAVE_PTHREAD_MUTEXATTR_GETROBUST
1069 HAVE_PTHREAD_MUTEXATTR_SETTYPE
1070 HAVE_PTHREAD_MUTEXATTR_GETTYPE
1071 HAVE_PTHREAD_MUTEXATTR_INIT
1072 HAVE_PTHREAD_MUTEX_INIT
1073 HAVE_PTHREAD_ONCE
1074 HAVE_PTHREAD_EXIT
1075 HAVE_PTHREAD_JOIN
1076 HAVE_PTHREAD_DETACH
1077 HAVE_PTHREAD_EQUAL
1078 HAVE_PTHREAD_SELF
1079 HAVE_PTHREAD_ATTR_DESTROY
1080 HAVE_PTHREAD_ATTR_SETDETACHSTATE
1081 HAVE_PTHREAD_ATTR_GETDETACHSTATE
1082 HAVE_PTHREAD_ATTR_INIT
1083 HAVE_PTHREAD_CREATE
1084 HAVE_PTHREAD_PROCESS_SHARED
1085 HAVE_PTHREAD_MUTEX_ROBUST
1086 HAVE_PTHREAD_MUTEX_RECURSIVE
1087 HAVE_PTHREAD_CREATE_DETACHED
1088 HAVE_PTHREAD_SPINLOCK_T
1089 HAVE_PTHREAD_T
1090 GL_COND_OBJ_OPEN_FALSE
1091 GL_COND_OBJ_OPEN_TRUE
1092 GL_COND_OBJ_MSVC_NOTHROW_FALSE
1093 GL_COND_OBJ_MSVC_NOTHROW_TRUE
1094 GL_COND_OBJ_MSVC_INVAL_FALSE
1095 GL_COND_OBJ_MSVC_INVAL_TRUE
1096 GL_COND_OBJ_MKDTEMP_FALSE
1097 GL_COND_OBJ_MKDTEMP_TRUE
1098 GL_COND_OBJ_MKDIR_FALSE
1099 GL_COND_OBJ_MKDIR_TRUE
1100 GL_GNULIB_MDA_STRDUP
1101 GL_GNULIB_MDA_MEMCCPY
1102 GL_GNULIB_STRVERSCMP
1103 GL_GNULIB_STRSIGNAL
1104 GL_GNULIB_SIGDESCR_NP
1105 GL_GNULIB_SIGABBREV_NP
1106 GL_GNULIB_STRERRORNAME_NP
1107 GL_GNULIB_STRERROR_R
1108 GL_GNULIB_STRERROR
1109 GL_GNULIB_MBSTOK_R
1110 GL_GNULIB_MBSSEP
1111 GL_GNULIB_MBSSPN
1112 GL_GNULIB_MBSPBRK
1113 GL_GNULIB_MBSCSPN
1114 GL_GNULIB_MBSCASESTR
1115 GL_GNULIB_MBSPCASECMP
1116 GL_GNULIB_MBSNCASECMP
1117 GL_GNULIB_MBSCASECMP
1118 GL_GNULIB_MBSSTR
1119 GL_GNULIB_MBSRCHR
1120 GL_GNULIB_MBSCHR
1121 GL_GNULIB_MBSNLEN
1122 GL_GNULIB_MBSLEN
1123 GL_GNULIB_STRTOK_R
1124 GL_GNULIB_STRCASESTR
1125 GL_GNULIB_STRSTR
1126 GL_GNULIB_STRSEP
1127 GL_GNULIB_STRPBRK
1128 GL_GNULIB_STRNLEN
1129 GL_GNULIB_STRNDUP
1130 GL_GNULIB_STRNCAT
1131 GL_GNULIB_STRDUP
1132 GL_GNULIB_STRCHRNUL
1133 GL_GNULIB_STPNCPY
1134 GL_GNULIB_STPCPY
1135 GL_GNULIB_RAWMEMCHR
1136 GL_GNULIB_MEMSET_EXPLICIT
1137 GL_GNULIB_MEMRCHR
1138 GL_GNULIB_MEMPCPY
1139 GL_GNULIB_MEMMEM
1140 GL_GNULIB_MEMCHR
1141 GL_GNULIB_FFSLL
1142 GL_GNULIB_FFSL
1143 GL_GNULIB_EXPLICIT_BZERO
1144 GL_COND_OBJ_MEMCHR_FALSE
1145 GL_COND_OBJ_MEMCHR_TRUE
1146 UNDEFINE_STRTOK_R
1147 REPLACE_STRVERSCMP
1148 REPLACE_STRSIGNAL
1149 REPLACE_STRERRORNAME_NP
1150 REPLACE_STRERROR_R
1151 REPLACE_STRERROR
1152 REPLACE_STRTOK_R
1153 REPLACE_STRCASESTR
1154 REPLACE_STRSTR
1155 REPLACE_STRNLEN
1156 REPLACE_STRNDUP
1157 REPLACE_STRNCAT
1158 REPLACE_STRDUP
1159 REPLACE_STRCHRNUL
1160 REPLACE_STPNCPY
1161 REPLACE_STPCPY
1162 REPLACE_MEMSET_EXPLICIT
1163 REPLACE_MEMPCPY
1164 REPLACE_MEMMEM
1165 REPLACE_MEMCHR
1166 REPLACE_FFSLL
1167 HAVE_STRVERSCMP
1168 HAVE_DECL_STRSIGNAL
1169 HAVE_SIGDESCR_NP
1170 HAVE_SIGABBREV_NP
1171 HAVE_STRERRORNAME_NP
1172 HAVE_DECL_STRERROR_R
1173 HAVE_DECL_STRTOK_R
1174 HAVE_STRCASESTR
1175 HAVE_STRSEP
1176 HAVE_STRPBRK
1177 HAVE_DECL_STRNLEN
1178 HAVE_DECL_STRNDUP
1179 HAVE_DECL_STRDUP
1180 HAVE_STRCHRNUL
1181 HAVE_STPNCPY
1182 HAVE_STPCPY
1183 HAVE_RAWMEMCHR
1184 HAVE_DECL_MEMRCHR
1185 HAVE_MEMSET_EXPLICIT
1186 HAVE_MEMPCPY
1187 HAVE_DECL_MEMMEM
1188 HAVE_FFSLL
1189 HAVE_FFSL
1190 HAVE_EXPLICIT_BZERO
1191 HAVE_MBSLEN
1192 GL_GNULIB_MDA_WCSDUP
1193 GL_GNULIB_WGETCWD
1194 GL_GNULIB_WCSFTIME
1195 GL_GNULIB_WCSWIDTH
1196 GL_GNULIB_WCSTOK
1197 GL_GNULIB_WCSSTR
1198 GL_GNULIB_WCSPBRK
1199 GL_GNULIB_WCSSPN
1200 GL_GNULIB_WCSCSPN
1201 GL_GNULIB_WCSRCHR
1202 GL_GNULIB_WCSCHR
1203 GL_GNULIB_WCSDUP
1204 GL_GNULIB_WCSXFRM
1205 GL_GNULIB_WCSCOLL
1206 GL_GNULIB_WCSNCASECMP
1207 GL_GNULIB_WCSCASECMP
1208 GL_GNULIB_WCSNCMP
1209 GL_GNULIB_WCSCMP
1210 GL_GNULIB_WCSNCAT
1211 GL_GNULIB_WCSCAT
1212 GL_GNULIB_WCPNCPY
1213 GL_GNULIB_WCSNCPY
1214 GL_GNULIB_WCPCPY
1215 GL_GNULIB_WCSCPY
1216 GL_GNULIB_WCSNLEN
1217 GL_GNULIB_WCSLEN
1218 GL_GNULIB_WMEMSET
1219 GL_GNULIB_WMEMPCPY
1220 GL_GNULIB_WMEMMOVE
1221 GL_GNULIB_WMEMCPY
1222 GL_GNULIB_WMEMCMP
1223 GL_GNULIB_WMEMCHR
1224 GL_GNULIB_WCWIDTH
1225 GL_GNULIB_WCSNRTOMBS
1226 GL_GNULIB_WCSRTOMBS
1227 GL_GNULIB_WCRTOMB
1228 GL_GNULIB_MBSNRTOWCS
1229 GL_GNULIB_MBSRTOWCS
1230 GL_GNULIB_MBRLEN
1231 GL_GNULIB_MBRTOWC
1232 GL_GNULIB_MBSZERO
1233 GL_GNULIB_MBSINIT
1234 GL_GNULIB_WCTOB
1235 GL_GNULIB_BTOWC
1236 LOCALE_ZH_CN
1237 LC_MONETARY_IMPLEMENTED
1238 LC_TIME_IMPLEMENTED
1239 LC_NUMERIC_IMPLEMENTED
1240 LC_COLLATE_IMPLEMENTED
1241 LOCALE_FR_UTF8
1242 LOCALE_JA
1243 REPLACE_WMEMPCPY
1244 REPLACE_WMEMCMP
1245 REPLACE_WCSTOK
1246 REPLACE_WCSSTR
1247 REPLACE_WCSNCMP
1248 REPLACE_WCSCMP
1249 REPLACE_WCSFTIME
1250 REPLACE_WCSWIDTH
1251 REPLACE_WCWIDTH
1252 REPLACE_WCSNRTOMBS
1253 REPLACE_WCSRTOMBS
1254 REPLACE_WCRTOMB
1255 REPLACE_MBSNRTOWCS
1256 REPLACE_MBSRTOWCS
1257 REPLACE_MBRLEN
1258 REPLACE_MBRTOWC
1259 REPLACE_MBSINIT
1260 REPLACE_WCTOB
1261 REPLACE_BTOWC
1262 REPLACE_MBSTATE_T
1263 HAVE_DECL_WCWIDTH
1264 HAVE_DECL_WCSDUP
1265 HAVE_DECL_WCTOB
1266 HAVE_WCSFTIME
1267 HAVE_WCSWIDTH
1268 HAVE_WCSTOK
1269 HAVE_WCSSTR
1270 HAVE_WCSPBRK
1271 HAVE_WCSSPN
1272 HAVE_WCSCSPN
1273 HAVE_WCSRCHR
1274 HAVE_WCSCHR
1275 HAVE_WCSDUP
1276 HAVE_WCSXFRM
1277 HAVE_WCSCOLL
1278 HAVE_WCSNCASECMP
1279 HAVE_WCSCASECMP
1280 HAVE_WCSNCMP
1281 HAVE_WCSCMP
1282 HAVE_WCSNCAT
1283 HAVE_WCSCAT
1284 HAVE_WCPNCPY
1285 HAVE_WCSNCPY
1286 HAVE_WCPCPY
1287 HAVE_WCSCPY
1288 HAVE_WCSNLEN
1289 HAVE_WCSLEN
1290 HAVE_WMEMSET
1291 HAVE_WMEMPCPY
1292 HAVE_WMEMMOVE
1293 HAVE_WMEMCPY
1294 HAVE_WMEMCMP
1295 HAVE_WMEMCHR
1296 HAVE_WCSNRTOMBS
1297 HAVE_WCSRTOMBS
1298 HAVE_WCRTOMB
1299 HAVE_MBSNRTOWCS
1300 HAVE_MBSRTOWCS
1301 HAVE_MBRLEN
1302 HAVE_MBRTOWC
1303 HAVE_MBSINIT
1304 HAVE_BTOWC
1305 GL_COND_OBJ_LSTAT_FALSE
1306 GL_COND_OBJ_LSTAT_TRUE
1307 LTLIBMULTITHREAD
1308 LIBMULTITHREAD
1309 LTLIBTHREAD
1310 LIBTHREAD
1311 LIBSTDTHREAD
1312 LIB_SCHED_YIELD
1313 SCHED_YIELD_LIB
1314 LIBPMULTITHREAD
1315 LIBPTHREAD
1316 GL_GENERATE_LIMITS_H_FALSE
1317 GL_GENERATE_LIMITS_H_TRUE
1318 LIMITS_H
1319 IGNORE_UNUSED_LIBRARIES_CFLAGS
1320 GL_GNULIB_STRTOUMAX
1321 GL_GNULIB_STRTOIMAX
1322 GL_GNULIB_IMAXDIV
1323 GL_GNULIB_IMAXABS
1324 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1325 NEXT_INTTYPES_H
1326 UINT64_MAX_EQ_ULONG_MAX
1327 UINT32_MAX_LT_UINTMAX_MAX
1328 PRIPTR_PREFIX
1329 INT64_MAX_EQ_LONG_MAX
1330 INT32_MAX_LT_INTMAX_MAX
1331 REPLACE_STRTOUMAX
1332 REPLACE_STRTOIMAX
1333 REPLACE_IMAXDIV
1334 REPLACE_IMAXABS
1335 HAVE_IMAXDIV
1336 HAVE_IMAXABS
1337 HAVE_IMAXDIV_T
1338 HAVE_DECL_STRTOUMAX
1339 HAVE_DECL_STRTOIMAX
1340 HAVE_DECL_IMAXDIV
1341 HAVE_DECL_IMAXABS
1342 HAVE_SYS_INTTYPES_H
1343 HAVE_SYS_BITYPES_H
1344 HAVE_C99_STDINT_H
1345 WINT_T_SUFFIX
1346 WCHAR_T_SUFFIX
1347 SIG_ATOMIC_T_SUFFIX
1348 SIZE_T_SUFFIX
1349 PTRDIFF_T_SUFFIX
1350 HAVE_SIGNED_WINT_T
1351 HAVE_SIGNED_WCHAR_T
1352 HAVE_SIGNED_SIG_ATOMIC_T
1353 BITSIZEOF_WINT_T
1354 BITSIZEOF_WCHAR_T
1355 BITSIZEOF_SIG_ATOMIC_T
1356 BITSIZEOF_SIZE_T
1357 BITSIZEOF_PTRDIFF_T
1358 APPLE_UNIVERSAL_BUILD
1359 HAVE_STDINT_H
1360 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1361 NEXT_STDINT_H
1362 HAVE_SYS_TYPES_H
1363 HAVE_INTTYPES_H
1364 HAVE_WCHAR_H
1365 GNULIBHEADERS_OVERRIDE_WINT_T
1366 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1367 NEXT_LIMITS_H
1368 LTLIBINTL
1369 LIBINTL
1370 GL_GNULIB_GETRANDOM
1371 GL_COND_OBJ_GETRANDOM_FALSE
1372 GL_COND_OBJ_GETRANDOM_TRUE
1373 LIB_GETRANDOM
1374 GETRANDOM_LIB
1375 REPLACE_GETRANDOM
1376 HAVE_GETRANDOM
1377 GL_COND_OBJ_GETPROGNAME_FALSE
1378 GL_COND_OBJ_GETPROGNAME_TRUE
1379 GL_COND_OBJ_GETDTABLESIZE_FALSE
1380 GL_COND_OBJ_GETDTABLESIZE_TRUE
1381 GL_GNULIB_MDA_UMASK
1382 GL_GNULIB_MDA_MKDIR
1383 GL_GNULIB_MDA_CHMOD
1384 GL_GNULIB_OVERRIDES_STRUCT_STAT
1385 GL_GNULIB_UTIMENSAT
1386 GL_GNULIB_STAT
1387 GL_GNULIB_MKNODAT
1388 GL_GNULIB_MKNOD
1389 GL_GNULIB_MKFIFOAT
1390 GL_GNULIB_MKFIFO
1391 GL_GNULIB_MKDIRAT
1392 GL_GNULIB_MKDIR
1393 GL_GNULIB_LSTAT
1394 GL_GNULIB_LCHMOD
1395 GL_GNULIB_GETUMASK
1396 GL_GNULIB_FUTIMENS
1397 GL_GNULIB_FSTATAT
1398 GL_GNULIB_FSTAT
1399 GL_GNULIB_FCHMODAT
1400 GL_GNULIB_CHMOD
1401 WINDOWS_64_BIT_ST_SIZE
1402 WINDOWS_STAT_TIMESPEC
1403 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1404 NEXT_SYS_STAT_H
1405 GL_COND_OBJ_FSTAT_FALSE
1406 GL_COND_OBJ_FSTAT_TRUE
1407 REPLACE_UTIMENSAT
1408 REPLACE_STAT
1409 REPLACE_MKNODAT
1410 REPLACE_MKNOD
1411 REPLACE_MKFIFOAT
1412 REPLACE_MKFIFO
1413 REPLACE_MKDIR
1414 REPLACE_LSTAT
1415 REPLACE_FUTIMENS
1416 REPLACE_FSTATAT
1417 REPLACE_FSTAT
1418 REPLACE_FCHMODAT
1419 REPLACE_CHMOD
1420 HAVE_UTIMENSAT
1421 HAVE_MKNODAT
1422 HAVE_MKNOD
1423 HAVE_MKFIFOAT
1424 HAVE_MKFIFO
1425 HAVE_MKDIRAT
1426 HAVE_LSTAT
1427 HAVE_LCHMOD
1428 HAVE_GETUMASK
1429 HAVE_FUTIMENS
1430 HAVE_FSTATAT
1431 HAVE_FCHMODAT
1432 GL_COND_OBJ_FREE_FALSE
1433 GL_COND_OBJ_FREE_TRUE
1434 GL_COND_OBJ_ITOLD_FALSE
1435 GL_COND_OBJ_ITOLD_TRUE
1436 GL_COND_OBJ_FLOAT_FALSE
1437 GL_COND_OBJ_FLOAT_TRUE
1438 GL_GENERATE_FLOAT_H_FALSE
1439 GL_GENERATE_FLOAT_H_TRUE
1440 FLOAT_H
1441 REPLACE_ITOLD
1442 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1443 NEXT_FLOAT_H
1444 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1445 NEXT_FCNTL_H
1446 GL_GNULIB_MDA_OPEN
1447 GL_GNULIB_MDA_CREAT
1448 GL_GNULIB_OPENAT
1449 GL_GNULIB_OPEN
1450 GL_GNULIB_NONBLOCKING
1451 GL_GNULIB_FCNTL
1452 GL_GNULIB_CREAT
1453 GL_COND_OBJ_FCNTL_FALSE
1454 GL_COND_OBJ_FCNTL_TRUE
1455 REPLACE_OPENAT
1456 REPLACE_OPEN
1457 REPLACE_FCNTL
1458 REPLACE_CREAT
1459 HAVE_OPENAT
1460 HAVE_FCNTL
1461 GL_COND_OBJ_ERROR_FALSE
1462 GL_COND_OBJ_ERROR_TRUE
1463 REPLACE_ERROR_AT_LINE
1464 REPLACE_ERROR
1465 HAVE_ERROR_AT_LINE
1466 HAVE_ERROR
1467 HAVE_ERROR_H
1468 NEXT_AS_FIRST_DIRECTIVE_ERROR_H
1469 NEXT_ERROR_H
1470 GL_GENERATE_ERRNO_H_FALSE
1471 GL_GENERATE_ERRNO_H_TRUE
1472 ERRNO_H
1473 EOVERFLOW_VALUE
1474 EOVERFLOW_HIDDEN
1475 ENOLINK_VALUE
1476 ENOLINK_HIDDEN
1477 EMULTIHOP_VALUE
1478 EMULTIHOP_HIDDEN
1479 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1480 NEXT_ERRNO_H
1481 GL_COND_OBJ_DUP2_FALSE
1482 GL_COND_OBJ_DUP2_TRUE
1483 GL_GNULIB_MDA_WRITE
1484 GL_GNULIB_MDA_UNLINK
1485 GL_GNULIB_MDA_SWAB
1486 GL_GNULIB_MDA_RMDIR
1487 GL_GNULIB_MDA_READ
1488 GL_GNULIB_MDA_LSEEK
1489 GL_GNULIB_MDA_ISATTY
1490 GL_GNULIB_MDA_GETPID
1491 GL_GNULIB_MDA_GETCWD
1492 GL_GNULIB_MDA_EXECVPE
1493 GL_GNULIB_MDA_EXECVP
1494 GL_GNULIB_MDA_EXECVE
1495 GL_GNULIB_MDA_EXECV
1496 GL_GNULIB_MDA_EXECLP
1497 GL_GNULIB_MDA_EXECLE
1498 GL_GNULIB_MDA_EXECL
1499 GL_GNULIB_MDA_DUP2
1500 GL_GNULIB_MDA_DUP
1501 GL_GNULIB_MDA_CLOSE
1502 GL_GNULIB_MDA_CHDIR
1503 GL_GNULIB_MDA_ACCESS
1504 GL_GNULIB_WRITE
1505 GL_GNULIB_USLEEP
1506 GL_GNULIB_UNLINKAT
1507 GL_GNULIB_UNLINK
1508 GL_GNULIB_UNISTD_H_SIGPIPE
1509 GL_GNULIB_UNISTD_H_NONBLOCKING
1510 GL_GNULIB_UNISTD_H_GETOPT
1511 GL_GNULIB_TTYNAME_R
1512 GL_GNULIB_TRUNCATE
1513 GL_GNULIB_SYMLINKAT
1514 GL_GNULIB_SYMLINK
1515 GL_GNULIB_SLEEP
1516 GL_GNULIB_SETHOSTNAME
1517 GL_GNULIB_RMDIR
1518 GL_GNULIB_READLINKAT
1519 GL_GNULIB_READLINK
1520 GL_GNULIB_READ
1521 GL_GNULIB_PWRITE
1522 GL_GNULIB_PREAD
1523 GL_GNULIB_PIPE2
1524 GL_GNULIB_PIPE
1525 GL_GNULIB_LSEEK
1526 GL_GNULIB_LINKAT
1527 GL_GNULIB_LINK
1528 GL_GNULIB_LCHOWN
1529 GL_GNULIB_ISATTY
1530 GL_GNULIB_GROUP_MEMBER
1531 GL_GNULIB_GETUSERSHELL
1532 GL_GNULIB_GETPASS_GNU
1533 GL_GNULIB_GETPASS
1534 GL_GNULIB_GETPAGESIZE
1535 GL_GNULIB_GETOPT_POSIX
1536 GL_GNULIB_GETLOGIN_R
1537 GL_GNULIB_GETLOGIN
1538 GL_GNULIB_GETHOSTNAME
1539 GL_GNULIB_GETGROUPS
1540 GL_GNULIB_GETENTROPY
1541 GL_GNULIB_GETDTABLESIZE
1542 GL_GNULIB_GETDOMAINNAME
1543 GL_GNULIB_GETCWD
1544 GL_GNULIB_FTRUNCATE
1545 GL_GNULIB_FSYNC
1546 GL_GNULIB_FDATASYNC
1547 GL_GNULIB_FCHOWNAT
1548 GL_GNULIB_FCHDIR
1549 GL_GNULIB_FACCESSAT
1550 GL_GNULIB_EXECVPE
1551 GL_GNULIB_EXECVP
1552 GL_GNULIB_EXECVE
1553 GL_GNULIB_EXECV
1554 GL_GNULIB_EXECLP
1555 GL_GNULIB_EXECLE
1556 GL_GNULIB_EXECL
1557 GL_GNULIB_EUIDACCESS
1558 GL_GNULIB_ENVIRON
1559 GL_GNULIB_DUP3
1560 GL_GNULIB_DUP2
1561 GL_GNULIB_DUP
1562 GL_GNULIB_COPY_FILE_RANGE
1563 GL_GNULIB_CLOSE
1564 GL_GNULIB_CHOWN
1565 GL_GNULIB_CHDIR
1566 GL_GNULIB_ACCESS
1567 GL_COND_OBJ_CLOSE_FALSE
1568 GL_COND_OBJ_CLOSE_TRUE
1569 HAVE_WINSOCK2_H
1570 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1571 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1572 UNISTD_H_HAVE_WINSOCK2_H
1573 UNISTD_H_HAVE_SYS_RANDOM_H
1574 REPLACE_WRITE
1575 REPLACE_USLEEP
1576 REPLACE_UNLINKAT
1577 REPLACE_UNLINK
1578 REPLACE_TTYNAME_R
1579 REPLACE_TRUNCATE
1580 REPLACE_SYMLINKAT
1581 REPLACE_SYMLINK
1582 REPLACE_SLEEP
1583 REPLACE_SETHOSTNAME
1584 REPLACE_RMDIR
1585 REPLACE_READLINKAT
1586 REPLACE_READLINK
1587 REPLACE_READ
1588 REPLACE_PWRITE
1589 REPLACE_PREAD
1590 REPLACE_PIPE2
1591 REPLACE_LSEEK
1592 REPLACE_LINKAT
1593 REPLACE_LINK
1594 REPLACE_LCHOWN
1595 REPLACE_ISATTY
1596 REPLACE_GETUSERSHELL
1597 REPLACE_GETPASS_FOR_GETPASS_GNU
1598 REPLACE_GETPASS
1599 REPLACE_GETPAGESIZE
1600 REPLACE_GETGROUPS
1601 REPLACE_GETLOGIN_R
1602 REPLACE_GETENTROPY
1603 REPLACE_GETDTABLESIZE
1604 REPLACE_GETDOMAINNAME
1605 REPLACE_GETCWD
1606 REPLACE_FTRUNCATE
1607 REPLACE_FDATASYNC
1608 REPLACE_FCHOWNAT
1609 REPLACE_FCHDIR
1610 REPLACE_FACCESSAT
1611 REPLACE_EXECVPE
1612 REPLACE_EXECVP
1613 REPLACE_EXECVE
1614 REPLACE_EXECV
1615 REPLACE_EXECLP
1616 REPLACE_EXECLE
1617 REPLACE_EXECL
1618 REPLACE_DUP3
1619 REPLACE_DUP2
1620 REPLACE_DUP
1621 REPLACE_COPY_FILE_RANGE
1622 REPLACE_CLOSE
1623 REPLACE_CHOWN
1624 REPLACE_ACCESS
1625 HAVE_SYS_PARAM_H
1626 HAVE_OS_H
1627 HAVE_DECL_TTYNAME_R
1628 HAVE_DECL_TRUNCATE
1629 HAVE_DECL_SETHOSTNAME
1630 HAVE_DECL_GETUSERSHELL
1631 HAVE_DECL_GETPAGESIZE
1632 HAVE_DECL_GETLOGIN_R
1633 HAVE_DECL_GETLOGIN
1634 HAVE_DECL_GETDOMAINNAME
1635 HAVE_DECL_FDATASYNC
1636 HAVE_DECL_FCHDIR
1637 HAVE_DECL_EXECVPE
1638 HAVE_DECL_ENVIRON
1639 HAVE_USLEEP
1640 HAVE_UNLINKAT
1641 HAVE_SYMLINKAT
1642 HAVE_SYMLINK
1643 HAVE_SLEEP
1644 HAVE_SETHOSTNAME
1645 HAVE_READLINKAT
1646 HAVE_READLINK
1647 HAVE_PWRITE
1648 HAVE_PREAD
1649 HAVE_PIPE2
1650 HAVE_PIPE
1651 HAVE_LINKAT
1652 HAVE_LINK
1653 HAVE_LCHOWN
1654 HAVE_GROUP_MEMBER
1655 HAVE_GETPASS
1656 HAVE_GETPAGESIZE
1657 HAVE_GETLOGIN
1658 HAVE_GETHOSTNAME
1659 HAVE_GETGROUPS
1660 HAVE_GETENTROPY
1661 HAVE_GETDTABLESIZE
1662 HAVE_FTRUNCATE
1663 HAVE_FSYNC
1664 HAVE_FDATASYNC
1665 HAVE_FCHOWNAT
1666 HAVE_FCHDIR
1667 HAVE_FACCESSAT
1668 HAVE_EXECVPE
1669 HAVE_EUIDACCESS
1670 HAVE_DUP3
1671 HAVE_COPY_FILE_RANGE
1672 HAVE_CHOWN
1673 LIB_CLOCK_GETTIME
1674 CLOCK_TIME_LIB
1675 GL_GNULIB_MDA_PUTENV
1676 GL_GNULIB_MDA_MKTEMP
1677 GL_GNULIB_MDA_GCVT
1678 GL_GNULIB_MDA_FCVT
1679 GL_GNULIB_MDA_ECVT
1680 GL_GNULIB_WCTOMB
1681 GL_GNULIB_UNSETENV
1682 GL_GNULIB_UNLOCKPT
1683 GL_GNULIB_SYSTEM_POSIX
1684 GL_GNULIB_STRTOULL
1685 GL_GNULIB_STRTOUL
1686 GL_GNULIB_STRTOLL
1687 GL_GNULIB_STRTOLD
1688 GL_GNULIB_STRTOL
1689 GL_GNULIB_STRTOF
1690 GL_GNULIB_STRTOD
1691 GL_GNULIB_SETENV
1692 GL_GNULIB_SECURE_GETENV
1693 GL_GNULIB_RPMATCH
1694 GL_GNULIB_REALPATH
1695 GL_GNULIB_REALLOC_POSIX
1696 GL_GNULIB_REALLOC_GNU
1697 GL_GNULIB_REALLOCARRAY
1698 GL_GNULIB_RANDOM_R
1699 GL_GNULIB_RANDOM
1700 GL_GNULIB_RAND
1701 GL_GNULIB_QSORT_R
1702 GL_GNULIB_PUTENV
1703 GL_GNULIB_PTSNAME_R
1704 GL_GNULIB_PTSNAME
1705 GL_GNULIB_POSIX_OPENPT
1706 GL_GNULIB_POSIX_MEMALIGN
1707 GL_GNULIB_MKSTEMPS
1708 GL_GNULIB_MKSTEMP
1709 GL_GNULIB_MKOSTEMPS
1710 GL_GNULIB_MKOSTEMP
1711 GL_GNULIB_MKDTEMP
1712 GL_GNULIB_MBTOWC
1713 GL_GNULIB_MBSTOWCS
1714 GL_GNULIB_MALLOC_POSIX
1715 GL_GNULIB_MALLOC_GNU
1716 GL_GNULIB_GRANTPT
1717 GL_GNULIB_GETSUBOPT
1718 GL_GNULIB_GETPROGNAME
1719 GL_GNULIB_GETLOADAVG
1720 GL_GNULIB_FREE_POSIX
1721 GL_GNULIB_CANONICALIZE_FILE_NAME
1722 GL_GNULIB_CALLOC_POSIX
1723 GL_GNULIB_CALLOC_GNU
1724 GL_GNULIB_ATOLL
1725 GL_GNULIB_ALIGNED_ALLOC
1726 GL_GNULIB_ABORT_DEBUG
1727 GL_GNULIB__EXIT
1728 REPLACE_WCTOMB
1729 REPLACE_UNSETENV
1730 REPLACE_STRTOULL
1731 REPLACE_STRTOUL
1732 REPLACE_STRTOLL
1733 REPLACE_STRTOLD
1734 REPLACE_STRTOL
1735 REPLACE_STRTOF
1736 REPLACE_STRTOD
1737 REPLACE_SETSTATE
1738 REPLACE_SETENV
1739 REPLACE_REALPATH
1740 REPLACE_REALLOCARRAY
1741 REPLACE_REALLOC_FOR_REALLOC_POSIX
1742 REPLACE_REALLOC_FOR_REALLOC_GNU
1743 REPLACE_RANDOM_R
1744 REPLACE_RANDOM
1745 REPLACE_RAND
1746 REPLACE_QSORT_R
1747 REPLACE_PUTENV
1748 REPLACE_PTSNAME_R
1749 REPLACE_PTSNAME
1750 REPLACE_POSIX_OPENPT
1751 REPLACE_POSIX_MEMALIGN
1752 REPLACE_MKSTEMP
1753 REPLACE_MKOSTEMPS
1754 REPLACE_MKOSTEMP
1755 REPLACE_MBTOWC
1756 REPLACE_MBSTOWCS
1757 REPLACE_MB_CUR_MAX
1758 REPLACE_MALLOC_FOR_MALLOC_POSIX
1759 REPLACE_MALLOC_FOR_MALLOC_GNU
1760 REPLACE_INITSTATE
1761 REPLACE_GETSUBOPT
1762 REPLACE_GETPROGNAME
1763 REPLACE_GETLOADAVG
1764 REPLACE_FREE
1765 REPLACE_CANONICALIZE_FILE_NAME
1766 REPLACE_CALLOC_FOR_CALLOC_POSIX
1767 REPLACE_CALLOC_FOR_CALLOC_GNU
1768 REPLACE_ALIGNED_ALLOC
1769 REPLACE_ABORT
1770 REPLACE__EXIT
1771 HAVE_DECL_UNSETENV
1772 HAVE_UNLOCKPT
1773 HAVE_SYS_LOADAVG_H
1774 HAVE_STRUCT_RANDOM_DATA
1775 HAVE_STRTOULL
1776 HAVE_STRTOUL
1777 HAVE_STRTOLL
1778 HAVE_STRTOLD
1779 HAVE_STRTOL
1780 HAVE_STRTOF
1781 HAVE_STRTOD
1782 HAVE_DECL_SETSTATE
1783 HAVE_SETSTATE
1784 HAVE_DECL_SETENV
1785 HAVE_SETENV
1786 HAVE_SECURE_GETENV
1787 HAVE_RPMATCH
1788 HAVE_REALPATH
1789 HAVE_REALLOCARRAY
1790 HAVE_RANDOM_R
1791 HAVE_RANDOM_H
1792 HAVE_RANDOM
1793 HAVE_QSORT_R
1794 HAVE_PTSNAME_R
1795 HAVE_PTSNAME
1796 HAVE_POSIX_OPENPT
1797 HAVE_POSIX_MEMALIGN
1798 HAVE_MKSTEMPS
1799 HAVE_MKSTEMP
1800 HAVE_MKOSTEMPS
1801 HAVE_MKOSTEMP
1802 HAVE_MKDTEMP
1803 HAVE_MBTOWC
1804 HAVE_DECL_INITSTATE
1805 HAVE_INITSTATE
1806 HAVE_GRANTPT
1807 HAVE_GETSUBOPT
1808 HAVE_GETPROGNAME
1809 HAVE_DECL_PROGRAM_INVOCATION_NAME
1810 HAVE_DECL_GETLOADAVG
1811 HAVE_DECL_GCVT
1812 HAVE_DECL_FCVT
1813 HAVE_DECL_ECVT
1814 HAVE_CANONICALIZE_FILE_NAME
1815 HAVE_ATOLL
1816 HAVE_ALIGNED_ALLOC
1817 HAVE__EXIT
1818 GL_GENERATE_ASSERT_H_FALSE
1819 GL_GENERATE_ASSERT_H_TRUE
1820 ASSERT_H
1821 NEXT_AS_FIRST_DIRECTIVE_ASSERT_H
1822 NEXT_ASSERT_H
1823 PRAGMA_COLUMNS
1824 PRAGMA_SYSTEM_HEADER
1825 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1826 INCLUDE_NEXT
1827 GL_GENERATE_ALLOCA_H_FALSE
1828 GL_GENERATE_ALLOCA_H_TRUE
1829 ALLOCA_H
1830 HAVE_ALLOCA_H
1831 ALLOCA
1832 GL_COND_LIBTOOL_FALSE
1833 GL_COND_LIBTOOL_TRUE
1834 RUN_TESTS_FALSE
1835 RUN_TESTS_TRUE
1836 CHECK_LIBS
1837 CHECK_CFLAGS
1838 PKG_CONFIG_LIBDIR
1839 PKG_CONFIG_PATH
1840 PKG_CONFIG
1841 LT_SYS_LIBRARY_PATH
1842 OTOOL64
1843 OTOOL
1844 LIPO
1845 NMEDIT
1846 DSYMUTIL
1847 MANIFEST_TOOL
1848 DLLTOOL
1849 OBJDUMP
1850 FILECMD
1851 NM
1852 ac_ct_DUMPBIN
1853 DUMPBIN
1854 LD
1855 FGREP
1856 EGREP
1857 GREP
1858 SED
1859 LIBTOOL
1860 LN_S
1861 WARN_CFLAGS
1862 RANLIB
1863 ARFLAGS
1864 ac_ct_AR
1865 AR
1866 CPP
1867 host_os
1868 host_vendor
1869 host_cpu
1870 host
1871 build_os
1872 build_vendor
1873 build_cpu
1874 build
1875 am__fastdepCC_FALSE
1876 am__fastdepCC_TRUE
1877 CCDEPMODE
1878 am__nodep
1879 AMDEPBACKSLASH
1880 AMDEP_FALSE
1881 AMDEP_TRUE
1882 am__include
1883 DEPDIR
1884 OBJEXT
1885 EXEEXT
1886 ac_ct_CC
1887 CPPFLAGS
1888 LDFLAGS
1889 CFLAGS
1890 CC
1891 MAINT
1892 MAINTAINER_MODE_FALSE
1893 MAINTAINER_MODE_TRUE
1894 AM_BACKSLASH
1895 AM_DEFAULT_VERBOSITY
1896 AM_DEFAULT_V
1897 AM_V
1898 CSCOPE
1899 ETAGS
1900 CTAGS
1901 am__untar
1902 am__tar
1903 AMTAR
1904 am__leading_dot
1905 SET_MAKE
1906 AWK
1907 mkdir_p
1908 MKDIR_P
1909 INSTALL_STRIP_PROGRAM
1910 STRIP
1911 install_sh
1912 MAKEINFO
1913 AUTOHEADER
1914 AUTOMAKE
1915 AUTOCONF
1916 ACLOCAL
1917 VERSION
1918 PACKAGE
1919 CYGPATH_W
1920 am__isrc
1921 INSTALL_DATA
1922 INSTALL_SCRIPT
1923 INSTALL_PROGRAM
1924 target_alias
1925 host_alias
1926 build_alias
1927 LIBS
1928 ECHO_T
1929 ECHO_N
1930 ECHO_C
1931 DEFS
1932 mandir
1933 localedir
1934 libdir
1935 psdir
1936 pdfdir
1937 dvidir
1938 htmldir
1939 infodir
1940 docdir
1941 oldincludedir
1942 includedir
1943 runstatedir
1944 localstatedir
1945 sharedstatedir
1946 sysconfdir
1947 datadir
1948 datarootdir
1949 libexecdir
1950 sbindir
1951 bindir
1952 program_transform_name
1953 prefix
1954 exec_prefix
1955 PACKAGE_URL
1956 PACKAGE_BUGREPORT
1957 PACKAGE_STRING
1958 PACKAGE_VERSION
1959 PACKAGE_TARNAME
1960 PACKAGE_NAME
1961 PATH_SEPARATOR
1962 SHELL
1963 am__quote'
1964 ac_subst_files=''
1965 ac_user_opts='
1966 enable_option_checking
1967 enable_silent_rules
1968 enable_maintainer_mode
1969 enable_dependency_tracking
1970 enable_largefile
1971 enable_threads
1972 enable_gcc_warnings
1973 enable_static
1974 enable_shared
1975 with_pic
1976 enable_fast_install
1977 with_aix_soname
1978 with_gnu_ld
1979 with_sysroot
1980 enable_libtool_lock
1981 enable_cross_guesses
1982 enable_socketpair_pipe
1983 enable_year2038
1984 '
1985 ac_precious_vars='build_alias
1986 host_alias
1987 target_alias
1988 CC
1989 CFLAGS
1990 LDFLAGS
1991 LIBS
1992 CPPFLAGS
1993 CPP
1994 LT_SYS_LIBRARY_PATH
1995 PKG_CONFIG
1996 PKG_CONFIG_PATH
1997 PKG_CONFIG_LIBDIR
1998 CHECK_CFLAGS
1999 CHECK_LIBS'
2000
2001
2002 # Initialize some variables set by options.
2003 ac_init_help=
2004 ac_init_version=false
2005 ac_unrecognized_opts=
2006 ac_unrecognized_sep=
2007 # The variables have the same names as the options, with
2008 # dashes changed to underlines.
2009 cache_file=/dev/null
2010 exec_prefix=NONE
2011 no_create=
2012 no_recursion=
2013 prefix=NONE
2014 program_prefix=NONE
2015 program_suffix=NONE
2016 program_transform_name=s,x,x,
2017 silent=
2018 site=
2019 srcdir=
2020 verbose=
2021 x_includes=NONE
2022 x_libraries=NONE
2023
2024 # Installation directory options.
2025 # These are left unexpanded so users can "make install exec_prefix=/foo"
2026 # and all the variables that are supposed to be based on exec_prefix
2027 # by default will actually change.
2028 # Use braces instead of parens because sh, perl, etc. also accept them.
2029 # (The list follows the same order as the GNU Coding Standards.)
2030 bindir='${exec_prefix}/bin'
2031 sbindir='${exec_prefix}/sbin'
2032 libexecdir='${exec_prefix}/libexec'
2033 datarootdir='${prefix}/share'
2034 datadir='${datarootdir}'
2035 sysconfdir='${prefix}/etc'
2036 sharedstatedir='${prefix}/com'
2037 localstatedir='${prefix}/var'
2038 runstatedir='${localstatedir}/run'
2039 includedir='${prefix}/include'
2040 oldincludedir='/usr/include'
2041 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
2042 infodir='${datarootdir}/info'
2043 htmldir='${docdir}'
2044 dvidir='${docdir}'
2045 pdfdir='${docdir}'
2046 psdir='${docdir}'
2047 libdir='${exec_prefix}/lib'
2048 localedir='${datarootdir}/locale'
2049 mandir='${datarootdir}/man'
2050
2051 ac_prev=
2052 ac_dashdash=
2053 for ac_option
2054 do
2055 # If the previous option needs an argument, assign it.
2056 if test -n "$ac_prev"; then
2057 eval $ac_prev=\$ac_option
2058 ac_prev=
2059 continue
2060 fi
2061
2062 case $ac_option in
2063 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
2064 *=) ac_optarg= ;;
2065 *) ac_optarg=yes ;;
2066 esac
2067
2068 case $ac_dashdash$ac_option in
2069 --)
2070 ac_dashdash=yes ;;
2071
2072 -bindir | --bindir | --bindi | --bind | --bin | --bi)
2073 ac_prev=bindir ;;
2074 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2075 bindir=$ac_optarg ;;
2076
2077 -build | --build | --buil | --bui | --bu)
2078 ac_prev=build_alias ;;
2079 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
2080 build_alias=$ac_optarg ;;
2081
2082 -cache-file | --cache-file | --cache-fil | --cache-fi \
2083 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2084 ac_prev=cache_file ;;
2085 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2086 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2087 cache_file=$ac_optarg ;;
2088
2089 --config-cache | -C)
2090 cache_file=config.cache ;;
2091
2092 -datadir | --datadir | --datadi | --datad)
2093 ac_prev=datadir ;;
2094 -datadir=* | --datadir=* | --datadi=* | --datad=*)
2095 datadir=$ac_optarg ;;
2096
2097 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
2098 | --dataroo | --dataro | --datar)
2099 ac_prev=datarootdir ;;
2100 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
2101 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
2102 datarootdir=$ac_optarg ;;
2103
2104 -disable-* | --disable-*)
2105 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2106 # Reject names that are not valid shell variable names.
2107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2108 as_fn_error $? "invalid feature name: '$ac_useropt'"
2109 ac_useropt_orig=$ac_useropt
2110 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2111 case $ac_user_opts in
2112 *"
2113 "enable_$ac_useropt"
2114 "*) ;;
2115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2116 ac_unrecognized_sep=', ';;
2117 esac
2118 eval enable_$ac_useropt=no ;;
2119
2120 -docdir | --docdir | --docdi | --doc | --do)
2121 ac_prev=docdir ;;
2122 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
2123 docdir=$ac_optarg ;;
2124
2125 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
2126 ac_prev=dvidir ;;
2127 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
2128 dvidir=$ac_optarg ;;
2129
2130 -enable-* | --enable-*)
2131 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2132 # Reject names that are not valid shell variable names.
2133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2134 as_fn_error $? "invalid feature name: '$ac_useropt'"
2135 ac_useropt_orig=$ac_useropt
2136 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2137 case $ac_user_opts in
2138 *"
2139 "enable_$ac_useropt"
2140 "*) ;;
2141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2142 ac_unrecognized_sep=', ';;
2143 esac
2144 eval enable_$ac_useropt=\$ac_optarg ;;
2145
2146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2148 | --exec | --exe | --ex)
2149 ac_prev=exec_prefix ;;
2150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2152 | --exec=* | --exe=* | --ex=*)
2153 exec_prefix=$ac_optarg ;;
2154
2155 -gas | --gas | --ga | --g)
2156 # Obsolete; use --with-gas.
2157 with_gas=yes ;;
2158
2159 -help | --help | --hel | --he | -h)
2160 ac_init_help=long ;;
2161 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2162 ac_init_help=recursive ;;
2163 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2164 ac_init_help=short ;;
2165
2166 -host | --host | --hos | --ho)
2167 ac_prev=host_alias ;;
2168 -host=* | --host=* | --hos=* | --ho=*)
2169 host_alias=$ac_optarg ;;
2170
2171 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
2172 ac_prev=htmldir ;;
2173 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
2174 | --ht=*)
2175 htmldir=$ac_optarg ;;
2176
2177 -includedir | --includedir | --includedi | --included | --include \
2178 | --includ | --inclu | --incl | --inc)
2179 ac_prev=includedir ;;
2180 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2181 | --includ=* | --inclu=* | --incl=* | --inc=*)
2182 includedir=$ac_optarg ;;
2183
2184 -infodir | --infodir | --infodi | --infod | --info | --inf)
2185 ac_prev=infodir ;;
2186 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2187 infodir=$ac_optarg ;;
2188
2189 -libdir | --libdir | --libdi | --libd)
2190 ac_prev=libdir ;;
2191 -libdir=* | --libdir=* | --libdi=* | --libd=*)
2192 libdir=$ac_optarg ;;
2193
2194 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2195 | --libexe | --libex | --libe)
2196 ac_prev=libexecdir ;;
2197 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2198 | --libexe=* | --libex=* | --libe=*)
2199 libexecdir=$ac_optarg ;;
2200
2201 -localedir | --localedir | --localedi | --localed | --locale)
2202 ac_prev=localedir ;;
2203 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2204 localedir=$ac_optarg ;;
2205
2206 -localstatedir | --localstatedir | --localstatedi | --localstated \
2207 | --localstate | --localstat | --localsta | --localst | --locals)
2208 ac_prev=localstatedir ;;
2209 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2210 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2211 localstatedir=$ac_optarg ;;
2212
2213 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2214 ac_prev=mandir ;;
2215 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2216 mandir=$ac_optarg ;;
2217
2218 -nfp | --nfp | --nf)
2219 # Obsolete; use --without-fp.
2220 with_fp=no ;;
2221
2222 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2223 | --no-cr | --no-c | -n)
2224 no_create=yes ;;
2225
2226 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2227 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2228 no_recursion=yes ;;
2229
2230 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2231 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2232 | --oldin | --oldi | --old | --ol | --o)
2233 ac_prev=oldincludedir ;;
2234 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2235 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2236 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2237 oldincludedir=$ac_optarg ;;
2238
2239 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2240 ac_prev=prefix ;;
2241 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2242 prefix=$ac_optarg ;;
2243
2244 -program-prefix | --program-prefix | --program-prefi | --program-pref \
2245 | --program-pre | --program-pr | --program-p)
2246 ac_prev=program_prefix ;;
2247 -program-prefix=* | --program-prefix=* | --program-prefi=* \
2248 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2249 program_prefix=$ac_optarg ;;
2250
2251 -program-suffix | --program-suffix | --program-suffi | --program-suff \
2252 | --program-suf | --program-su | --program-s)
2253 ac_prev=program_suffix ;;
2254 -program-suffix=* | --program-suffix=* | --program-suffi=* \
2255 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2256 program_suffix=$ac_optarg ;;
2257
2258 -program-transform-name | --program-transform-name \
2259 | --program-transform-nam | --program-transform-na \
2260 | --program-transform-n | --program-transform- \
2261 | --program-transform | --program-transfor \
2262 | --program-transfo | --program-transf \
2263 | --program-trans | --program-tran \
2264 | --progr-tra | --program-tr | --program-t)
2265 ac_prev=program_transform_name ;;
2266 -program-transform-name=* | --program-transform-name=* \
2267 | --program-transform-nam=* | --program-transform-na=* \
2268 | --program-transform-n=* | --program-transform-=* \
2269 | --program-transform=* | --program-transfor=* \
2270 | --program-transfo=* | --program-transf=* \
2271 | --program-trans=* | --program-tran=* \
2272 | --progr-tra=* | --program-tr=* | --program-t=*)
2273 program_transform_name=$ac_optarg ;;
2274
2275 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2276 ac_prev=pdfdir ;;
2277 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2278 pdfdir=$ac_optarg ;;
2279
2280 -psdir | --psdir | --psdi | --psd | --ps)
2281 ac_prev=psdir ;;
2282 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2283 psdir=$ac_optarg ;;
2284
2285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2286 | -silent | --silent | --silen | --sile | --sil)
2287 silent=yes ;;
2288
2289 -runstatedir | --runstatedir | --runstatedi | --runstated \
2290 | --runstate | --runstat | --runsta | --runst | --runs \
2291 | --run | --ru | --r)
2292 ac_prev=runstatedir ;;
2293 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2294 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2295 | --run=* | --ru=* | --r=*)
2296 runstatedir=$ac_optarg ;;
2297
2298 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2299 ac_prev=sbindir ;;
2300 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2301 | --sbi=* | --sb=*)
2302 sbindir=$ac_optarg ;;
2303
2304 -sharedstatedir | --sharedstatedir | --sharedstatedi \
2305 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2306 | --sharedst | --shareds | --shared | --share | --shar \
2307 | --sha | --sh)
2308 ac_prev=sharedstatedir ;;
2309 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2310 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2311 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2312 | --sha=* | --sh=*)
2313 sharedstatedir=$ac_optarg ;;
2314
2315 -site | --site | --sit)
2316 ac_prev=site ;;
2317 -site=* | --site=* | --sit=*)
2318 site=$ac_optarg ;;
2319
2320 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2321 ac_prev=srcdir ;;
2322 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2323 srcdir=$ac_optarg ;;
2324
2325 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2326 | --syscon | --sysco | --sysc | --sys | --sy)
2327 ac_prev=sysconfdir ;;
2328 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2329 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2330 sysconfdir=$ac_optarg ;;
2331
2332 -target | --target | --targe | --targ | --tar | --ta | --t)
2333 ac_prev=target_alias ;;
2334 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2335 target_alias=$ac_optarg ;;
2336
2337 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2338 verbose=yes ;;
2339
2340 -version | --version | --versio | --versi | --vers | -V)
2341 ac_init_version=: ;;
2342
2343 -with-* | --with-*)
2344 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2345 # Reject names that are not valid shell variable names.
2346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2347 as_fn_error $? "invalid package name: '$ac_useropt'"
2348 ac_useropt_orig=$ac_useropt
2349 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2350 case $ac_user_opts in
2351 *"
2352 "with_$ac_useropt"
2353 "*) ;;
2354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2355 ac_unrecognized_sep=', ';;
2356 esac
2357 eval with_$ac_useropt=\$ac_optarg ;;
2358
2359 -without-* | --without-*)
2360 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2361 # Reject names that are not valid shell variable names.
2362 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2363 as_fn_error $? "invalid package name: '$ac_useropt'"
2364 ac_useropt_orig=$ac_useropt
2365 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2366 case $ac_user_opts in
2367 *"
2368 "with_$ac_useropt"
2369 "*) ;;
2370 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2371 ac_unrecognized_sep=', ';;
2372 esac
2373 eval with_$ac_useropt=no ;;
2374
2375 --x)
2376 # Obsolete; use --with-x.
2377 with_x=yes ;;
2378
2379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2380 | --x-incl | --x-inc | --x-in | --x-i)
2381 ac_prev=x_includes ;;
2382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2384 x_includes=$ac_optarg ;;
2385
2386 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2388 ac_prev=x_libraries ;;
2389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2391 x_libraries=$ac_optarg ;;
2392
2393 -*) as_fn_error $? "unrecognized option: '$ac_option'
2394 Try '$0 --help' for more information"
2395 ;;
2396
2397 *=*)
2398 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2399 # Reject names that are not valid shell variable names.
2400 case $ac_envvar in #(
2401 '' | [0-9]* | *[!_$as_cr_alnum]* )
2402 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
2403 esac
2404 eval $ac_envvar=\$ac_optarg
2405 export $ac_envvar ;;
2406
2407 *)
2408 # FIXME: should be removed in autoconf 3.0.
2409 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
2410 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2411 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
2412 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2413 ;;
2414
2415 esac
2416 done
2417
2418 if test -n "$ac_prev"; then
2419 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2420 as_fn_error $? "missing argument to $ac_option"
2421 fi
2422
2423 if test -n "$ac_unrecognized_opts"; then
2424 case $enable_option_checking in
2425 no) ;;
2426 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2427 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2428 esac
2429 fi
2430
2431 # Check all directory arguments for consistency.
2432 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2433 datadir sysconfdir sharedstatedir localstatedir includedir \
2434 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2435 libdir localedir mandir runstatedir
2436 do
2437 eval ac_val=\$$ac_var
2438 # Remove trailing slashes.
2439 case $ac_val in
2440 */ )
2441 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2442 eval $ac_var=\$ac_val;;
2443 esac
2444 # Be sure to have absolute directory names.
2445 case $ac_val in
2446 [\\/$]* | ?:[\\/]* ) continue;;
2447 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2448 esac
2449 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2450 done
2451
2452 # There might be people who depend on the old broken behavior: '$host'
2453 # used to hold the argument of --host etc.
2454 # FIXME: To remove some day.
2455 build=$build_alias
2456 host=$host_alias
2457 target=$target_alias
2458
2459 # FIXME: To remove some day.
2460 if test "x$host_alias" != x; then
2461 if test "x$build_alias" = x; then
2462 cross_compiling=maybe
2463 elif test "x$build_alias" != "x$host_alias"; then
2464 cross_compiling=yes
2465 fi
2466 fi
2467
2468 ac_tool_prefix=
2469 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2470
2471 test "$silent" = yes && exec 6>/dev/null
2472
2473
2474 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2475 ac_ls_di=`ls -di .` &&
2476 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2477 as_fn_error $? "working directory cannot be determined"
2478 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2479 as_fn_error $? "pwd does not report name of working directory"
2480
2481
2482 # Find the source files, if location was not specified.
2483 if test -z "$srcdir"; then
2484 ac_srcdir_defaulted=yes
2485 # Try the directory containing this script, then the parent directory.
2486 ac_confdir=`$as_dirname -- "$as_myself" ||
2487 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2488 X"$as_myself" : 'X\(//\)[^/]' \| \
2489 X"$as_myself" : 'X\(//\)$' \| \
2490 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2491 printf "%s\n" X"$as_myself" |
2492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2493 s//\1/
2494 q
2495 }
2496 /^X\(\/\/\)[^/].*/{
2497 s//\1/
2498 q
2499 }
2500 /^X\(\/\/\)$/{
2501 s//\1/
2502 q
2503 }
2504 /^X\(\/\).*/{
2505 s//\1/
2506 q
2507 }
2508 s/.*/./; q'`
2509 srcdir=$ac_confdir
2510 if test ! -r "$srcdir/$ac_unique_file"; then
2511 srcdir=..
2512 fi
2513 else
2514 ac_srcdir_defaulted=no
2515 fi
2516 if test ! -r "$srcdir/$ac_unique_file"; then
2517 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2518 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2519 fi
2520 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
2521 ac_abs_confdir=`(
2522 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2523 pwd)`
2524 # When building in place, set srcdir=.
2525 if test "$ac_abs_confdir" = "$ac_pwd"; then
2526 srcdir=.
2527 fi
2528 # Remove unnecessary trailing slashes from srcdir.
2529 # Double slashes in file names in object file debugging info
2530 # mess up M-x gdb in Emacs.
2531 case $srcdir in
2532 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2533 esac
2534 for ac_var in $ac_precious_vars; do
2535 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2536 eval ac_env_${ac_var}_value=\$${ac_var}
2537 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2538 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2539 done
2540
2541 #
2542 # Report the --help message.
2543 #
2544 if test "$ac_init_help" = "long"; then
2545 # Omit some internal or obsolete options to make the list less imposing.
2546 # This message is too long to be a string in the A/UX 3.1 sh.
2547 cat <<_ACEOF
2548 'configure' configures libpipeline 1.5.8 to adapt to many kinds of systems.
2549
2550 Usage: $0 [OPTION]... [VAR=VALUE]...
2551
2552 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2553 VAR=VALUE. See below for descriptions of some of the useful variables.
2554
2555 Defaults for the options are specified in brackets.
2556
2557 Configuration:
2558 -h, --help display this help and exit
2559 --help=short display options specific to this package
2560 --help=recursive display the short help of all the included packages
2561 -V, --version display version information and exit
2562 -q, --quiet, --silent do not print 'checking ...' messages
2563 --cache-file=FILE cache test results in FILE [disabled]
2564 -C, --config-cache alias for '--cache-file=config.cache'
2565 -n, --no-create do not create output files
2566 --srcdir=DIR find the sources in DIR [configure dir or '..']
2567
2568 Installation directories:
2569 --prefix=PREFIX install architecture-independent files in PREFIX
2570 [$ac_default_prefix]
2571 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2572 [PREFIX]
2573
2574 By default, 'make install' will install all the files in
2575 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
2576 an installation prefix other than '$ac_default_prefix' using '--prefix',
2577 for instance '--prefix=\$HOME'.
2578
2579 For better control, use the options below.
2580
2581 Fine tuning of the installation directories:
2582 --bindir=DIR user executables [EPREFIX/bin]
2583 --sbindir=DIR system admin executables [EPREFIX/sbin]
2584 --libexecdir=DIR program executables [EPREFIX/libexec]
2585 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2586 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2587 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2588 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2589 --libdir=DIR object code libraries [EPREFIX/lib]
2590 --includedir=DIR C header files [PREFIX/include]
2591 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2592 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2593 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2594 --infodir=DIR info documentation [DATAROOTDIR/info]
2595 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2596 --mandir=DIR man documentation [DATAROOTDIR/man]
2597 --docdir=DIR documentation root [DATAROOTDIR/doc/libpipeline]
2598 --htmldir=DIR html documentation [DOCDIR]
2599 --dvidir=DIR dvi documentation [DOCDIR]
2600 --pdfdir=DIR pdf documentation [DOCDIR]
2601 --psdir=DIR ps documentation [DOCDIR]
2602 _ACEOF
2603
2604 cat <<\_ACEOF
2605
2606 Program names:
2607 --program-prefix=PREFIX prepend PREFIX to installed program names
2608 --program-suffix=SUFFIX append SUFFIX to installed program names
2609 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2610
2611 System types:
2612 --build=BUILD configure for building on BUILD [guessed]
2613 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2614 _ACEOF
2615 fi
2616
2617 if test -n "$ac_init_help"; then
2618 case $ac_init_help in
2619 short | recursive ) echo "Configuration of libpipeline 1.5.8:";;
2620 esac
2621 cat <<\_ACEOF
2622
2623 Optional Features:
2624 --disable-option-checking ignore unrecognized --enable/--with options
2625 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2626 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2627 --enable-silent-rules less verbose build output (undo: "make V=1")
2628 --disable-silent-rules verbose build output (undo: "make V=0")
2629 --enable-maintainer-mode
2630 enable make rules and dependencies not useful (and
2631 sometimes confusing) to the casual installer
2632 --enable-dependency-tracking
2633 do not reject slow dependency extractors
2634 --disable-dependency-tracking
2635 speeds up one-time build
2636 --disable-largefile omit support for large files
2637 --enable-threads={isoc|posix|isoc+posix|windows}
2638 specify multithreading API
2639 --disable-threads build without multithread safety
2640 --enable-gcc-warnings=TYPE
2641 control generation of GCC warnings. The TYPE 'no'
2642 disables warnings; 'yes' generates cheap warnings if
2643 available (default); 'expensive' in addition
2644 generates expensive-to-compute warnings if available
2645 --enable-static[=PKGS] build static libraries [default=no]
2646 --enable-shared[=PKGS] build shared libraries [default=yes]
2647 --enable-fast-install[=PKGS]
2648 optimize for fast installation [default=yes]
2649 --disable-libtool-lock avoid locking (might break parallel builds)
2650 --enable-cross-guesses={conservative|risky}
2651 specify policy for cross-compilation guesses
2652 --enable-socketpair-pipe
2653 Use socketpair(2) as fast replacement for pipe(2)
2654 --enable-year2038 support timestamps after 2038
2655
2656 Optional Packages:
2657 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2658 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2659 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2660 both]
2661 --with-aix-soname=aix|svr4|both
2662 shared library versioning (aka "SONAME") variant to
2663 provide on AIX, [default=aix].
2664 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2665 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
2666 compiler's sysroot if not specified).
2667
2668 Some influential environment variables:
2669 CC C compiler command
2670 CFLAGS C compiler flags
2671 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2672 nonstandard directory <lib dir>
2673 LIBS libraries to pass to the linker, e.g. -l<library>
2674 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2675 you have headers in a nonstandard directory <include dir>
2676 CPP C preprocessor
2677 LT_SYS_LIBRARY_PATH
2678 User-defined run-time library search path.
2679 PKG_CONFIG path to pkg-config utility
2680 PKG_CONFIG_PATH
2681 directories to add to pkg-config's search path
2682 PKG_CONFIG_LIBDIR
2683 path overriding pkg-config's built-in search path
2684 CHECK_CFLAGS
2685 C compiler flags for CHECK, overriding pkg-config
2686 CHECK_LIBS linker flags for CHECK, overriding pkg-config
2687
2688 Use these variables to override the choices made by 'configure' or to help
2689 it to find libraries and programs with nonstandard names/locations.
2690
2691 Report bugs to <[email protected]>.
2692 _ACEOF
2693 ac_status=$?
2694 fi
2695
2696 if test "$ac_init_help" = "recursive"; then
2697 # If there are subdirs, report their specific --help.
2698 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2699 test -d "$ac_dir" ||
2700 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2701 continue
2702 ac_builddir=.
2703
2704 case "$ac_dir" in
2705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2706 *)
2707 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2708 # A ".." for each directory in $ac_dir_suffix.
2709 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2710 case $ac_top_builddir_sub in
2711 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2712 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2713 esac ;;
2714 esac
2715 ac_abs_top_builddir=$ac_pwd
2716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2717 # for backward compatibility:
2718 ac_top_builddir=$ac_top_build_prefix
2719
2720 case $srcdir in
2721 .) # We are building in place.
2722 ac_srcdir=.
2723 ac_top_srcdir=$ac_top_builddir_sub
2724 ac_abs_top_srcdir=$ac_pwd ;;
2725 [\\/]* | ?:[\\/]* ) # Absolute name.
2726 ac_srcdir=$srcdir$ac_dir_suffix;
2727 ac_top_srcdir=$srcdir
2728 ac_abs_top_srcdir=$srcdir ;;
2729 *) # Relative name.
2730 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2731 ac_top_srcdir=$ac_top_build_prefix$srcdir
2732 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2733 esac
2734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2735
2736 cd "$ac_dir" || { ac_status=$?; continue; }
2737 # Check for configure.gnu first; this name is used for a wrapper for
2738 # Metaconfig's "Configure" on case-insensitive file systems.
2739 if test -f "$ac_srcdir/configure.gnu"; then
2740 echo &&
2741 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2742 elif test -f "$ac_srcdir/configure"; then
2743 echo &&
2744 $SHELL "$ac_srcdir/configure" --help=recursive
2745 else
2746 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2747 fi || ac_status=$?
2748 cd "$ac_pwd" || { ac_status=$?; break; }
2749 done
2750 fi
2751
2752 test -n "$ac_init_help" && exit $ac_status
2753 if $ac_init_version; then
2754 cat <<\_ACEOF
2755 libpipeline configure 1.5.8
2756 generated by GNU Autoconf 2.72
2757
2758 Copyright (C) 2023 Free Software Foundation, Inc.
2759 This configure script is free software; the Free Software Foundation
2760 gives unlimited permission to copy, distribute and modify it.
2761 _ACEOF
2762 exit
2763 fi
2764
2765 ## ------------------------ ##
2766 ## Autoconf initialization. ##
2767 ## ------------------------ ##
2768
2769 # ac_fn_c_try_compile LINENO
2770 # --------------------------
2771 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2772 ac_fn_c_try_compile ()
2773 {
2774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2775 rm -f conftest.$ac_objext conftest.beam
2776 if { { ac_try="$ac_compile"
2777 case "(($ac_try" in
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2780 esac
2781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2782 printf "%s\n" "$ac_try_echo"; } >&5
2783 (eval "$ac_compile") 2>conftest.err
2784 ac_status=$?
2785 if test -s conftest.err; then
2786 grep -v '^ *+' conftest.err >conftest.er1
2787 cat conftest.er1 >&5
2788 mv -f conftest.er1 conftest.err
2789 fi
2790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2791 test $ac_status = 0; } && {
2792 test -z "$ac_c_werror_flag" ||
2793 test ! -s conftest.err
2794 } && test -s conftest.$ac_objext
2795 then :
2796 ac_retval=0
2797 else case e in #(
2798 e) printf "%s\n" "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2800
2801 ac_retval=1 ;;
2802 esac
2803 fi
2804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2805 as_fn_set_status $ac_retval
2806
2807 } # ac_fn_c_try_compile
2808
2809 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2810 # -------------------------------------------------------
2811 # Tests whether HEADER exists and can be compiled using the include files in
2812 # INCLUDES, setting the cache variable VAR accordingly.
2813 ac_fn_c_check_header_compile ()
2814 {
2815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2817 printf %s "checking for $2... " >&6; }
2818 if eval test \${$3+y}
2819 then :
2820 printf %s "(cached) " >&6
2821 else case e in #(
2822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823 /* end confdefs.h. */
2824 $4
2825 #include <$2>
2826 _ACEOF
2827 if ac_fn_c_try_compile "$LINENO"
2828 then :
2829 eval "$3=yes"
2830 else case e in #(
2831 e) eval "$3=no" ;;
2832 esac
2833 fi
2834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2835 esac
2836 fi
2837 eval ac_res=\$$3
2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2839 printf "%s\n" "$ac_res" >&6; }
2840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2841
2842 } # ac_fn_c_check_header_compile
2843
2844 # ac_fn_c_try_cpp LINENO
2845 # ----------------------
2846 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2847 ac_fn_c_try_cpp ()
2848 {
2849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2850 if { { ac_try="$ac_cpp conftest.$ac_ext"
2851 case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854 esac
2855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2856 printf "%s\n" "$ac_try_echo"; } >&5
2857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2858 ac_status=$?
2859 if test -s conftest.err; then
2860 grep -v '^ *+' conftest.err >conftest.er1
2861 cat conftest.er1 >&5
2862 mv -f conftest.er1 conftest.err
2863 fi
2864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2865 test $ac_status = 0; } > conftest.i && {
2866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2867 test ! -s conftest.err
2868 }
2869 then :
2870 ac_retval=0
2871 else case e in #(
2872 e) printf "%s\n" "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2874
2875 ac_retval=1 ;;
2876 esac
2877 fi
2878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2879 as_fn_set_status $ac_retval
2880
2881 } # ac_fn_c_try_cpp
2882
2883 # ac_fn_c_try_link LINENO
2884 # -----------------------
2885 # Try to link conftest.$ac_ext, and return whether this succeeded.
2886 ac_fn_c_try_link ()
2887 {
2888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2889 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2890 if { { ac_try="$ac_link"
2891 case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894 esac
2895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2896 printf "%s\n" "$ac_try_echo"; } >&5
2897 (eval "$ac_link") 2>conftest.err
2898 ac_status=$?
2899 if test -s conftest.err; then
2900 grep -v '^ *+' conftest.err >conftest.er1
2901 cat conftest.er1 >&5
2902 mv -f conftest.er1 conftest.err
2903 fi
2904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2905 test $ac_status = 0; } && {
2906 test -z "$ac_c_werror_flag" ||
2907 test ! -s conftest.err
2908 } && test -s conftest$ac_exeext && {
2909 test "$cross_compiling" = yes ||
2910 test -x conftest$ac_exeext
2911 }
2912 then :
2913 ac_retval=0
2914 else case e in #(
2915 e) printf "%s\n" "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2917
2918 ac_retval=1 ;;
2919 esac
2920 fi
2921 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2922 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2923 # interfere with the next link command; also delete a directory that is
2924 # left behind by Apple's compiler. We do this before executing the actions.
2925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2927 as_fn_set_status $ac_retval
2928
2929 } # ac_fn_c_try_link
2930
2931 # ac_fn_c_check_func LINENO FUNC VAR
2932 # ----------------------------------
2933 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2934 ac_fn_c_check_func ()
2935 {
2936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2938 printf %s "checking for $2... " >&6; }
2939 if eval test \${$3+y}
2940 then :
2941 printf %s "(cached) " >&6
2942 else case e in #(
2943 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944 /* end confdefs.h. */
2945 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2947 #define $2 innocuous_$2
2948
2949 /* System header to define __stub macros and hopefully few prototypes,
2950 which can conflict with char $2 (void); below. */
2951
2952 #include <limits.h>
2953 #undef $2
2954
2955 /* Override any GCC internal prototype to avoid an error.
2956 Use char because int might match the return type of a GCC
2957 builtin and then its argument prototype would still apply. */
2958 #ifdef __cplusplus
2959 extern "C"
2960 #endif
2961 char $2 (void);
2962 /* The GNU C library defines this for functions which it implements
2963 to always fail with ENOSYS. Some functions are actually named
2964 something starting with __ and the normal name is an alias. */
2965 #if defined __stub_$2 || defined __stub___$2
2966 choke me
2967 #endif
2968
2969 int
2970 main (void)
2971 {
2972 return $2 ();
2973 ;
2974 return 0;
2975 }
2976 _ACEOF
2977 if ac_fn_c_try_link "$LINENO"
2978 then :
2979 eval "$3=yes"
2980 else case e in #(
2981 e) eval "$3=no" ;;
2982 esac
2983 fi
2984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2985 conftest$ac_exeext conftest.$ac_ext ;;
2986 esac
2987 fi
2988 eval ac_res=\$$3
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2990 printf "%s\n" "$ac_res" >&6; }
2991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2992
2993 } # ac_fn_c_check_func
2994
2995 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2996 # -------------------------------------------
2997 # Tests whether TYPE exists after having included INCLUDES, setting cache
2998 # variable VAR accordingly.
2999 ac_fn_c_check_type ()
3000 {
3001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3003 printf %s "checking for $2... " >&6; }
3004 if eval test \${$3+y}
3005 then :
3006 printf %s "(cached) " >&6
3007 else case e in #(
3008 e) eval "$3=no"
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3011 $4
3012 int
3013 main (void)
3014 {
3015 if (sizeof ($2))
3016 return 0;
3017 ;
3018 return 0;
3019 }
3020 _ACEOF
3021 if ac_fn_c_try_compile "$LINENO"
3022 then :
3023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024 /* end confdefs.h. */
3025 $4
3026 int
3027 main (void)
3028 {
3029 if (sizeof (($2)))
3030 return 0;
3031 ;
3032 return 0;
3033 }
3034 _ACEOF
3035 if ac_fn_c_try_compile "$LINENO"
3036 then :
3037
3038 else case e in #(
3039 e) eval "$3=yes" ;;
3040 esac
3041 fi
3042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3043 fi
3044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3045 esac
3046 fi
3047 eval ac_res=\$$3
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3049 printf "%s\n" "$ac_res" >&6; }
3050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3051
3052 } # ac_fn_c_check_type
3053
3054 # ac_fn_c_try_run LINENO
3055 # ----------------------
3056 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
3057 # executables *can* be run.
3058 ac_fn_c_try_run ()
3059 {
3060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3061 if { { ac_try="$ac_link"
3062 case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065 esac
3066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3067 printf "%s\n" "$ac_try_echo"; } >&5
3068 (eval "$ac_link") 2>&5
3069 ac_status=$?
3070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
3072 { { case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075 esac
3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 printf "%s\n" "$ac_try_echo"; } >&5
3078 (eval "$ac_try") 2>&5
3079 ac_status=$?
3080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081 test $ac_status = 0; }; }
3082 then :
3083 ac_retval=0
3084 else case e in #(
3085 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
3086 printf "%s\n" "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089 ac_retval=$ac_status ;;
3090 esac
3091 fi
3092 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3094 as_fn_set_status $ac_retval
3095
3096 } # ac_fn_c_try_run
3097
3098 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3099 # --------------------------------------------
3100 # Tries to find the compile-time value of EXPR in a program that includes
3101 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3102 # computed
3103 ac_fn_c_compute_int ()
3104 {
3105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3106 if test "$cross_compiling" = yes; then
3107 # Depending upon the size, compute the lo and hi bounds.
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3110 $4
3111 int
3112 main (void)
3113 {
3114 static int test_array [1 - 2 * !(($2) >= 0)];
3115 test_array [0] = 0;
3116 return test_array [0];
3117
3118 ;
3119 return 0;
3120 }
3121 _ACEOF
3122 if ac_fn_c_try_compile "$LINENO"
3123 then :
3124 ac_lo=0 ac_mid=0
3125 while :; do
3126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127 /* end confdefs.h. */
3128 $4
3129 int
3130 main (void)
3131 {
3132 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3133 test_array [0] = 0;
3134 return test_array [0];
3135
3136 ;
3137 return 0;
3138 }
3139 _ACEOF
3140 if ac_fn_c_try_compile "$LINENO"
3141 then :
3142 ac_hi=$ac_mid; break
3143 else case e in #(
3144 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3145 if test $ac_lo -le $ac_mid; then
3146 ac_lo= ac_hi=
3147 break
3148 fi
3149 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
3150 esac
3151 fi
3152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3153 done
3154 else case e in #(
3155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h. */
3157 $4
3158 int
3159 main (void)
3160 {
3161 static int test_array [1 - 2 * !(($2) < 0)];
3162 test_array [0] = 0;
3163 return test_array [0];
3164
3165 ;
3166 return 0;
3167 }
3168 _ACEOF
3169 if ac_fn_c_try_compile "$LINENO"
3170 then :
3171 ac_hi=-1 ac_mid=-1
3172 while :; do
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3175 $4
3176 int
3177 main (void)
3178 {
3179 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3180 test_array [0] = 0;
3181 return test_array [0];
3182
3183 ;
3184 return 0;
3185 }
3186 _ACEOF
3187 if ac_fn_c_try_compile "$LINENO"
3188 then :
3189 ac_lo=$ac_mid; break
3190 else case e in #(
3191 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3192 if test $ac_mid -le $ac_hi; then
3193 ac_lo= ac_hi=
3194 break
3195 fi
3196 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
3197 esac
3198 fi
3199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3200 done
3201 else case e in #(
3202 e) ac_lo= ac_hi= ;;
3203 esac
3204 fi
3205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3206 esac
3207 fi
3208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3209 # Binary search between lo and hi bounds.
3210 while test "x$ac_lo" != "x$ac_hi"; do
3211 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3214 $4
3215 int
3216 main (void)
3217 {
3218 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3219 test_array [0] = 0;
3220 return test_array [0];
3221
3222 ;
3223 return 0;
3224 }
3225 _ACEOF
3226 if ac_fn_c_try_compile "$LINENO"
3227 then :
3228 ac_hi=$ac_mid
3229 else case e in #(
3230 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
3231 esac
3232 fi
3233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3234 done
3235 case $ac_lo in #((
3236 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3237 '') ac_retval=1 ;;
3238 esac
3239 else
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3242 $4
3243 static long int longval (void) { return $2; }
3244 static unsigned long int ulongval (void) { return $2; }
3245 #include <stdio.h>
3246 #include <stdlib.h>
3247 int
3248 main (void)
3249 {
3250
3251 FILE *f = fopen ("conftest.val", "w");
3252 if (! f)
3253 return 1;
3254 if (($2) < 0)
3255 {
3256 long int i = longval ();
3257 if (i != ($2))
3258 return 1;
3259 fprintf (f, "%ld", i);
3260 }
3261 else
3262 {
3263 unsigned long int i = ulongval ();
3264 if (i != ($2))
3265 return 1;
3266 fprintf (f, "%lu", i);
3267 }
3268 /* Do not output a trailing newline, as this causes \r\n confusion
3269 on some platforms. */
3270 return ferror (f) || fclose (f) != 0;
3271
3272 ;
3273 return 0;
3274 }
3275 _ACEOF
3276 if ac_fn_c_try_run "$LINENO"
3277 then :
3278 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3279 else case e in #(
3280 e) ac_retval=1 ;;
3281 esac
3282 fi
3283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3284 conftest.$ac_objext conftest.beam conftest.$ac_ext
3285 rm -f conftest.val
3286
3287 fi
3288 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3289 as_fn_set_status $ac_retval
3290
3291 } # ac_fn_c_compute_int
3292
3293 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
3294 # ------------------------------------------------------------------
3295 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3296 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
3297 ac_fn_check_decl ()
3298 {
3299 ac_saved_ac_compile="$ac_compile"
3300 if test -n "$ac_compile_for_check_decl"; then
3301 ac_compile="$ac_compile_for_check_decl"
3302 fi
3303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3304 as_decl_name=`echo $2|sed 's/ *(.*//'`
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3306 printf %s "checking whether $as_decl_name is declared... " >&6; }
3307 if eval test \${$3+y}
3308 then :
3309 printf %s "(cached) " >&6
3310 else case e in #(
3311 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3312 eval ac_save_FLAGS=\$$6
3313 as_fn_append $6 " $5"
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3316 $4
3317 int
3318 main (void)
3319 {
3320 #ifndef $as_decl_name
3321 #ifdef __cplusplus
3322 (void) $as_decl_use;
3323 #else
3324 (void) $as_decl_name;
3325 #endif
3326 #endif
3327
3328 ;
3329 return 0;
3330 }
3331 _ACEOF
3332 if ac_fn_c_try_compile "$LINENO"
3333 then :
3334 eval "$3=yes"
3335 else case e in #(
3336 e) eval "$3=no" ;;
3337 esac
3338 fi
3339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3340 eval $6=\$ac_save_FLAGS
3341 ;;
3342 esac
3343 fi
3344 eval ac_res=\$$3
3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3346 printf "%s\n" "$ac_res" >&6; }
3347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3348 ac_compile="$ac_saved_ac_compile"
3349
3350 } # ac_fn_check_decl
3351
3352 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3353 # ----------------------------------------------------
3354 # Tries to find if the field MEMBER exists in type AGGR, after including
3355 # INCLUDES, setting cache variable VAR accordingly.
3356 ac_fn_c_check_member ()
3357 {
3358 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3360 printf %s "checking for $2.$3... " >&6; }
3361 if eval test \${$4+y}
3362 then :
3363 printf %s "(cached) " >&6
3364 else case e in #(
3365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367 $5
3368 int
3369 main (void)
3370 {
3371 static $2 ac_aggr;
3372 if (ac_aggr.$3)
3373 return 0;
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 if ac_fn_c_try_compile "$LINENO"
3379 then :
3380 eval "$4=yes"
3381 else case e in #(
3382 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h. */
3384 $5
3385 int
3386 main (void)
3387 {
3388 static $2 ac_aggr;
3389 if (sizeof ac_aggr.$3)
3390 return 0;
3391 ;
3392 return 0;
3393 }
3394 _ACEOF
3395 if ac_fn_c_try_compile "$LINENO"
3396 then :
3397 eval "$4=yes"
3398 else case e in #(
3399 e) eval "$4=no" ;;
3400 esac
3401 fi
3402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3403 esac
3404 fi
3405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3406 esac
3407 fi
3408 eval ac_res=\$$4
3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3410 printf "%s\n" "$ac_res" >&6; }
3411 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3412
3413 } # ac_fn_c_check_member
3414 ac_configure_args_raw=
3415 for ac_arg
3416 do
3417 case $ac_arg in
3418 *\'*)
3419 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3420 esac
3421 as_fn_append ac_configure_args_raw " '$ac_arg'"
3422 done
3423
3424 case $ac_configure_args_raw in
3425 *$as_nl*)
3426 ac_safe_unquote= ;;
3427 *)
3428 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
3429 ac_unsafe_a="$ac_unsafe_z#~"
3430 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3431 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3432 esac
3433
3434 cat >config.log <<_ACEOF
3435 This file contains any messages produced by compilers while
3436 running configure, to aid debugging if configure makes a mistake.
3437
3438 It was created by libpipeline $as_me 1.5.8, which was
3439 generated by GNU Autoconf 2.72. Invocation command line was
3440
3441 $ $0$ac_configure_args_raw
3442
3443 _ACEOF
3444 exec 5>>config.log
3445 {
3446 cat <<_ASUNAME
3447 ## --------- ##
3448 ## Platform. ##
3449 ## --------- ##
3450
3451 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3452 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3453 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3454 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3455 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3456
3457 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3458 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3459
3460 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3461 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3462 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3463 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3464 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3465 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3466 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3467
3468 _ASUNAME
3469
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473 IFS=$as_save_IFS
3474 case $as_dir in #(((
3475 '') as_dir=./ ;;
3476 */) ;;
3477 *) as_dir=$as_dir/ ;;
3478 esac
3479 printf "%s\n" "PATH: $as_dir"
3480 done
3481 IFS=$as_save_IFS
3482
3483 } >&5
3484
3485 cat >&5 <<_ACEOF
3486
3487
3488 ## ----------- ##
3489 ## Core tests. ##
3490 ## ----------- ##
3491
3492 _ACEOF
3493
3494
3495 # Keep a trace of the command line.
3496 # Strip out --no-create and --no-recursion so they do not pile up.
3497 # Strip out --silent because we don't want to record it for future runs.
3498 # Also quote any args containing shell meta-characters.
3499 # Make two passes to allow for proper duplicate-argument suppression.
3500 ac_configure_args=
3501 ac_configure_args0=
3502 ac_configure_args1=
3503 ac_must_keep_next=false
3504 for ac_pass in 1 2
3505 do
3506 for ac_arg
3507 do
3508 case $ac_arg in
3509 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3511 | -silent | --silent | --silen | --sile | --sil)
3512 continue ;;
3513 *\'*)
3514 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3515 esac
3516 case $ac_pass in
3517 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3518 2)
3519 as_fn_append ac_configure_args1 " '$ac_arg'"
3520 if test $ac_must_keep_next = true; then
3521 ac_must_keep_next=false # Got value, back to normal.
3522 else
3523 case $ac_arg in
3524 *=* | --config-cache | -C | -disable-* | --disable-* \
3525 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3526 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3527 | -with-* | --with-* | -without-* | --without-* | --x)
3528 case "$ac_configure_args0 " in
3529 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3530 esac
3531 ;;
3532 -* ) ac_must_keep_next=true ;;
3533 esac
3534 fi
3535 as_fn_append ac_configure_args " '$ac_arg'"
3536 ;;
3537 esac
3538 done
3539 done
3540 { ac_configure_args0=; unset ac_configure_args0;}
3541 { ac_configure_args1=; unset ac_configure_args1;}
3542
3543 # When interrupted or exit'd, cleanup temporary files, and complete
3544 # config.log. We remove comments because anyway the quotes in there
3545 # would cause problems or look ugly.
3546 # WARNING: Use '\'' to represent an apostrophe within the trap.
3547 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3548 trap 'exit_status=$?
3549 # Sanitize IFS.
3550 IFS=" "" $as_nl"
3551 # Save into config.log some information that might help in debugging.
3552 {
3553 echo
3554
3555 printf "%s\n" "## ---------------- ##
3556 ## Cache variables. ##
3557 ## ---------------- ##"
3558 echo
3559 # The following way of writing the cache mishandles newlines in values,
3560 (
3561 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3562 eval ac_val=\$$ac_var
3563 case $ac_val in #(
3564 *${as_nl}*)
3565 case $ac_var in #(
3566 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3567 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3568 esac
3569 case $ac_var in #(
3570 _ | IFS | as_nl) ;; #(
3571 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3572 *) { eval $ac_var=; unset $ac_var;} ;;
3573 esac ;;
3574 esac
3575 done
3576 (set) 2>&1 |
3577 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3578 *${as_nl}ac_space=\ *)
3579 sed -n \
3580 "s/'\''/'\''\\\\'\'''\''/g;
3581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3582 ;; #(
3583 *)
3584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3585 ;;
3586 esac |
3587 sort
3588 )
3589 echo
3590
3591 printf "%s\n" "## ----------------- ##
3592 ## Output variables. ##
3593 ## ----------------- ##"
3594 echo
3595 for ac_var in $ac_subst_vars
3596 do
3597 eval ac_val=\$$ac_var
3598 case $ac_val in
3599 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3600 esac
3601 printf "%s\n" "$ac_var='\''$ac_val'\''"
3602 done | sort
3603 echo
3604
3605 if test -n "$ac_subst_files"; then
3606 printf "%s\n" "## ------------------- ##
3607 ## File substitutions. ##
3608 ## ------------------- ##"
3609 echo
3610 for ac_var in $ac_subst_files
3611 do
3612 eval ac_val=\$$ac_var
3613 case $ac_val in
3614 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3615 esac
3616 printf "%s\n" "$ac_var='\''$ac_val'\''"
3617 done | sort
3618 echo
3619 fi
3620
3621 if test -s confdefs.h; then
3622 printf "%s\n" "## ----------- ##
3623 ## confdefs.h. ##
3624 ## ----------- ##"
3625 echo
3626 cat confdefs.h
3627 echo
3628 fi
3629 test "$ac_signal" != 0 &&
3630 printf "%s\n" "$as_me: caught signal $ac_signal"
3631 printf "%s\n" "$as_me: exit $exit_status"
3632 } >&5
3633 rm -f core *.core core.conftest.* &&
3634 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3635 exit $exit_status
3636 ' 0
3637 for ac_signal in 1 2 13 15; do
3638 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3639 done
3640 ac_signal=0
3641
3642 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3643 rm -f -r conftest* confdefs.h
3644
3645 printf "%s\n" "/* confdefs.h */" > confdefs.h
3646
3647 # Predefined preprocessor variables.
3648
3649 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3650
3651 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3652
3653 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3654
3655 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3656
3657 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3658
3659 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3660
3661
3662 # Let the site file select an alternate cache file if it wants to.
3663 # Prefer an explicitly selected file to automatically selected ones.
3664 if test -n "$CONFIG_SITE"; then
3665 ac_site_files="$CONFIG_SITE"
3666 elif test "x$prefix" != xNONE; then
3667 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3668 else
3669 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3670 fi
3671
3672 for ac_site_file in $ac_site_files
3673 do
3674 case $ac_site_file in #(
3675 */*) :
3676 ;; #(
3677 *) :
3678 ac_site_file=./$ac_site_file ;;
3679 esac
3680 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3682 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3683 sed 's/^/| /' "$ac_site_file" >&5
3684 . "$ac_site_file" \
3685 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3686 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3687 as_fn_error $? "failed to load site script $ac_site_file
3688 See 'config.log' for more details" "$LINENO" 5; }
3689 fi
3690 done
3691
3692 if test -r "$cache_file"; then
3693 # Some versions of bash will fail to source /dev/null (special files
3694 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3695 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3697 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3698 case $cache_file in
3699 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3700 *) . "./$cache_file";;
3701 esac
3702 fi
3703 else
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3705 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3706 >$cache_file
3707 fi
3708
3709 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3710 # Test code for whether the C compiler supports C89 (global declarations)
3711 ac_c_conftest_c89_globals='
3712 /* Does the compiler advertise C89 conformance?
3713 Do not test the value of __STDC__, because some compilers set it to 0
3714 while being otherwise adequately conformant. */
3715 #if !defined __STDC__
3716 # error "Compiler does not advertise C89 conformance"
3717 #endif
3718
3719 #include <stddef.h>
3720 #include <stdarg.h>
3721 struct stat;
3722 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3723 struct buf { int x; };
3724 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3725 static char *e (char **p, int i)
3726 {
3727 return p[i];
3728 }
3729 static char *f (char * (*g) (char **, int), char **p, ...)
3730 {
3731 char *s;
3732 va_list v;
3733 va_start (v,p);
3734 s = g (p, va_arg (v,int));
3735 va_end (v);
3736 return s;
3737 }
3738
3739 /* C89 style stringification. */
3740 #define noexpand_stringify(a) #a
3741 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
3742
3743 /* C89 style token pasting. Exercises some of the corner cases that
3744 e.g. old MSVC gets wrong, but not very hard. */
3745 #define noexpand_concat(a,b) a##b
3746 #define expand_concat(a,b) noexpand_concat(a,b)
3747 extern int vA;
3748 extern int vbee;
3749 #define aye A
3750 #define bee B
3751 int *pvA = &expand_concat(v,aye);
3752 int *pvbee = &noexpand_concat(v,bee);
3753
3754 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3755 function prototypes and stuff, but not \xHH hex character constants.
3756 These do not provoke an error unfortunately, instead are silently treated
3757 as an "x". The following induces an error, until -std is added to get
3758 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3759 array size at least. It is necessary to write \x00 == 0 to get something
3760 that is true only with -std. */
3761 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3762
3763 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3764 inside strings and character constants. */
3765 #define FOO(x) '\''x'\''
3766 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3767
3768 int test (int i, double x);
3769 struct s1 {int (*f) (int a);};
3770 struct s2 {int (*f) (double a);};
3771 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3772 int, int);'
3773
3774 # Test code for whether the C compiler supports C89 (body of main).
3775 ac_c_conftest_c89_main='
3776 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3777 '
3778
3779 # Test code for whether the C compiler supports C99 (global declarations)
3780 ac_c_conftest_c99_globals='
3781 /* Does the compiler advertise C99 conformance? */
3782 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3783 # error "Compiler does not advertise C99 conformance"
3784 #endif
3785
3786 // See if C++-style comments work.
3787
3788 #include <stdbool.h>
3789 extern int puts (const char *);
3790 extern int printf (const char *, ...);
3791 extern int dprintf (int, const char *, ...);
3792 extern void *malloc (size_t);
3793 extern void free (void *);
3794
3795 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3796 // dprintf is used instead of fprintf to avoid needing to declare
3797 // FILE and stderr.
3798 #define debug(...) dprintf (2, __VA_ARGS__)
3799 #define showlist(...) puts (#__VA_ARGS__)
3800 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3801 static void
3802 test_varargs_macros (void)
3803 {
3804 int x = 1234;
3805 int y = 5678;
3806 debug ("Flag");
3807 debug ("X = %d\n", x);
3808 showlist (The first, second, and third items.);
3809 report (x>y, "x is %d but y is %d", x, y);
3810 }
3811
3812 // Check long long types.
3813 #define BIG64 18446744073709551615ull
3814 #define BIG32 4294967295ul
3815 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3816 #if !BIG_OK
3817 #error "your preprocessor is broken"
3818 #endif
3819 #if BIG_OK
3820 #else
3821 #error "your preprocessor is broken"
3822 #endif
3823 static long long int bignum = -9223372036854775807LL;
3824 static unsigned long long int ubignum = BIG64;
3825
3826 struct incomplete_array
3827 {
3828 int datasize;
3829 double data[];
3830 };
3831
3832 struct named_init {
3833 int number;
3834 const wchar_t *name;
3835 double average;
3836 };
3837
3838 typedef const char *ccp;
3839
3840 static inline int
3841 test_restrict (ccp restrict text)
3842 {
3843 // Iterate through items via the restricted pointer.
3844 // Also check for declarations in for loops.
3845 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3846 continue;
3847 return 0;
3848 }
3849
3850 // Check varargs and va_copy.
3851 static bool
3852 test_varargs (const char *format, ...)
3853 {
3854 va_list args;
3855 va_start (args, format);
3856 va_list args_copy;
3857 va_copy (args_copy, args);
3858
3859 const char *str = "";
3860 int number = 0;
3861 float fnumber = 0;
3862
3863 while (*format)
3864 {
3865 switch (*format++)
3866 {
3867 case '\''s'\'': // string
3868 str = va_arg (args_copy, const char *);
3869 break;
3870 case '\''d'\'': // int
3871 number = va_arg (args_copy, int);
3872 break;
3873 case '\''f'\'': // float
3874 fnumber = va_arg (args_copy, double);
3875 break;
3876 default:
3877 break;
3878 }
3879 }
3880 va_end (args_copy);
3881 va_end (args);
3882
3883 return *str && number && fnumber;
3884 }
3885 '
3886
3887 # Test code for whether the C compiler supports C99 (body of main).
3888 ac_c_conftest_c99_main='
3889 // Check bool.
3890 _Bool success = false;
3891 success |= (argc != 0);
3892
3893 // Check restrict.
3894 if (test_restrict ("String literal") == 0)
3895 success = true;
3896 char *restrict newvar = "Another string";
3897
3898 // Check varargs.
3899 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3900 test_varargs_macros ();
3901
3902 // Check flexible array members.
3903 struct incomplete_array *ia =
3904 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3905 ia->datasize = 10;
3906 for (int i = 0; i < ia->datasize; ++i)
3907 ia->data[i] = i * 1.234;
3908 // Work around memory leak warnings.
3909 free (ia);
3910
3911 // Check named initializers.
3912 struct named_init ni = {
3913 .number = 34,
3914 .name = L"Test wide string",
3915 .average = 543.34343,
3916 };
3917
3918 ni.number = 58;
3919
3920 int dynamic_array[ni.number];
3921 dynamic_array[0] = argv[0][0];
3922 dynamic_array[ni.number - 1] = 543;
3923
3924 // work around unused variable warnings
3925 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3926 || dynamic_array[ni.number - 1] != 543);
3927 '
3928
3929 # Test code for whether the C compiler supports C11 (global declarations)
3930 ac_c_conftest_c11_globals='
3931 /* Does the compiler advertise C11 conformance? */
3932 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3933 # error "Compiler does not advertise C11 conformance"
3934 #endif
3935
3936 // Check _Alignas.
3937 char _Alignas (double) aligned_as_double;
3938 char _Alignas (0) no_special_alignment;
3939 extern char aligned_as_int;
3940 char _Alignas (0) _Alignas (int) aligned_as_int;
3941
3942 // Check _Alignof.
3943 enum
3944 {
3945 int_alignment = _Alignof (int),
3946 int_array_alignment = _Alignof (int[100]),
3947 char_alignment = _Alignof (char)
3948 };
3949 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3950
3951 // Check _Noreturn.
3952 int _Noreturn does_not_return (void) { for (;;) continue; }
3953
3954 // Check _Static_assert.
3955 struct test_static_assert
3956 {
3957 int x;
3958 _Static_assert (sizeof (int) <= sizeof (long int),
3959 "_Static_assert does not work in struct");
3960 long int y;
3961 };
3962
3963 // Check UTF-8 literals.
3964 #define u8 syntax error!
3965 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3966
3967 // Check duplicate typedefs.
3968 typedef long *long_ptr;
3969 typedef long int *long_ptr;
3970 typedef long_ptr long_ptr;
3971
3972 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3973 struct anonymous
3974 {
3975 union {
3976 struct { int i; int j; };
3977 struct { int k; long int l; } w;
3978 };
3979 int m;
3980 } v1;
3981 '
3982
3983 # Test code for whether the C compiler supports C11 (body of main).
3984 ac_c_conftest_c11_main='
3985 _Static_assert ((offsetof (struct anonymous, i)
3986 == offsetof (struct anonymous, w.k)),
3987 "Anonymous union alignment botch");
3988 v1.i = 2;
3989 v1.w.k = 5;
3990 ok |= v1.i != 5;
3991 '
3992
3993 # Test code for whether the C compiler supports C11 (complete).
3994 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3995 ${ac_c_conftest_c99_globals}
3996 ${ac_c_conftest_c11_globals}
3997
3998 int
3999 main (int argc, char **argv)
4000 {
4001 int ok = 0;
4002 ${ac_c_conftest_c89_main}
4003 ${ac_c_conftest_c99_main}
4004 ${ac_c_conftest_c11_main}
4005 return ok;
4006 }
4007 "
4008
4009 # Test code for whether the C compiler supports C99 (complete).
4010 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
4011 ${ac_c_conftest_c99_globals}
4012
4013 int
4014 main (int argc, char **argv)
4015 {
4016 int ok = 0;
4017 ${ac_c_conftest_c89_main}
4018 ${ac_c_conftest_c99_main}
4019 return ok;
4020 }
4021 "
4022
4023 # Test code for whether the C compiler supports C89 (complete).
4024 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
4025
4026 int
4027 main (int argc, char **argv)
4028 {
4029 int ok = 0;
4030 ${ac_c_conftest_c89_main}
4031 return ok;
4032 }
4033 "
4034
4035 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
4036 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
4037 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
4038 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
4039 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
4040 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
4041 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
4042 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
4043 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
4044 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
4045 as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER"
4046 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
4047 as_fn_append ac_header_c_list " error.h error_h HAVE_ERROR_H"
4048 as_fn_append ac_func_c_list " fcntl HAVE_FCNTL"
4049 as_fn_append ac_func_c_list " symlink HAVE_SYMLINK"
4050 as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE"
4051 as_fn_append ac_func_c_list " getexecname HAVE_GETEXECNAME"
4052 as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H"
4053 as_fn_append ac_header_c_list " threads.h threads_h HAVE_THREADS_H"
4054 as_fn_append ac_func_c_list " lstat HAVE_LSTAT"
4055 as_fn_append ac_func_c_list " mbsinit HAVE_MBSINIT"
4056 as_fn_append ac_func_c_list " mbrtowc HAVE_MBRTOWC"
4057 as_fn_append ac_header_c_list " sys/mman.h sys_mman_h HAVE_SYS_MMAN_H"
4058 as_fn_append ac_func_c_list " mprotect HAVE_MPROTECT"
4059 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
4060 as_fn_append ac_header_c_list " pthread.h pthread_h HAVE_PTHREAD_H"
4061 as_fn_append ac_func_c_list " setenv HAVE_SETENV"
4062 as_fn_append ac_func_c_list " sigaction HAVE_SIGACTION"
4063 as_fn_append ac_func_c_list " sigaltstack HAVE_SIGALTSTACK"
4064 as_fn_append ac_func_c_list " siginterrupt HAVE_SIGINTERRUPT"
4065 as_fn_append ac_func_c_list " snprintf HAVE_SNPRINTF"
4066 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
4067 as_fn_append ac_header_c_list " stdbool.h stdbool_h HAVE_STDBOOL_H"
4068 as_fn_append ac_header_c_list " stdckdint.h stdckdint_h HAVE_STDCKDINT_H"
4069 as_fn_append ac_func_c_list " strndup HAVE_STRNDUP"
4070 as_fn_append ac_header_c_list " sys/random.h sys_random_h HAVE_SYS_RANDOM_H"
4071 as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
4072 as_fn_append ac_header_c_list " sys/wait.h sys_wait_h HAVE_SYS_WAIT_H"
4073 as_fn_append ac_func_c_list " vasnprintf HAVE_VASNPRINTF"
4074 as_fn_append ac_header_c_list " features.h features_h HAVE_FEATURES_H"
4075 as_fn_append ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H"
4076 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
4077 as_fn_append ac_func_c_list " fork HAVE_FORK"
4078 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
4079
4080 # Auxiliary files required by this configure script.
4081 ac_aux_files="ltmain.sh ar-lib config.guess config.sub compile missing install-sh"
4082
4083 # Locations in which to look for auxiliary files.
4084 ac_aux_dir_candidates="${srcdir}/build-aux"
4085
4086 # Search for a directory containing all of the required auxiliary files,
4087 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
4088 # If we don't find one directory that contains all the files we need,
4089 # we report the set of missing files from the *first* directory in
4090 # $ac_aux_dir_candidates and give up.
4091 ac_missing_aux_files=""
4092 ac_first_candidate=:
4093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 as_found=false
4096 for as_dir in $ac_aux_dir_candidates
4097 do
4098 IFS=$as_save_IFS
4099 case $as_dir in #(((
4100 '') as_dir=./ ;;
4101 */) ;;
4102 *) as_dir=$as_dir/ ;;
4103 esac
4104 as_found=:
4105
4106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
4107 ac_aux_dir_found=yes
4108 ac_install_sh=
4109 for ac_aux in $ac_aux_files
4110 do
4111 # As a special case, if "install-sh" is required, that requirement
4112 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
4113 # and $ac_install_sh is set appropriately for whichever one is found.
4114 if test x"$ac_aux" = x"install-sh"
4115 then
4116 if test -f "${as_dir}install-sh"; then
4117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
4118 ac_install_sh="${as_dir}install-sh -c"
4119 elif test -f "${as_dir}install.sh"; then
4120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
4121 ac_install_sh="${as_dir}install.sh -c"
4122 elif test -f "${as_dir}shtool"; then
4123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
4124 ac_install_sh="${as_dir}shtool install -c"
4125 else
4126 ac_aux_dir_found=no
4127 if $ac_first_candidate; then
4128 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
4129 else
4130 break
4131 fi
4132 fi
4133 else
4134 if test -f "${as_dir}${ac_aux}"; then
4135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
4136 else
4137 ac_aux_dir_found=no
4138 if $ac_first_candidate; then
4139 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
4140 else
4141 break
4142 fi
4143 fi
4144 fi
4145 done
4146 if test "$ac_aux_dir_found" = yes; then
4147 ac_aux_dir="$as_dir"
4148 break
4149 fi
4150 ac_first_candidate=false
4151
4152 as_found=false
4153 done
4154 IFS=$as_save_IFS
4155 if $as_found
4156 then :
4157
4158 else case e in #(
4159 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
4160 esac
4161 fi
4162
4163
4164 # These three variables are undocumented and unsupported,
4165 # and are intended to be withdrawn in a future Autoconf release.
4166 # They can cause serious problems if a builder's source tree is in a directory
4167 # whose full name contains unusual characters.
4168 if test -f "${ac_aux_dir}config.guess"; then
4169 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
4170 fi
4171 if test -f "${ac_aux_dir}config.sub"; then
4172 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
4173 fi
4174 if test -f "$ac_aux_dir/configure"; then
4175 ac_configure="$SHELL ${ac_aux_dir}configure"
4176 fi
4177
4178 # Check that the precious variables saved in the cache have kept the same
4179 # value.
4180 ac_cache_corrupted=false
4181 for ac_var in $ac_precious_vars; do
4182 eval ac_old_set=\$ac_cv_env_${ac_var}_set
4183 eval ac_new_set=\$ac_env_${ac_var}_set
4184 eval ac_old_val=\$ac_cv_env_${ac_var}_value
4185 eval ac_new_val=\$ac_env_${ac_var}_value
4186 case $ac_old_set,$ac_new_set in
4187 set,)
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
4189 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
4190 ac_cache_corrupted=: ;;
4191 ,set)
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
4193 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
4194 ac_cache_corrupted=: ;;
4195 ,);;
4196 *)
4197 if test "x$ac_old_val" != "x$ac_new_val"; then
4198 # differences in whitespace do not lead to failure.
4199 ac_old_val_w=`echo x $ac_old_val`
4200 ac_new_val_w=`echo x $ac_new_val`
4201 if test "$ac_old_val_w" != "$ac_new_val_w"; then
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
4203 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
4204 ac_cache_corrupted=:
4205 else
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
4207 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
4208 eval $ac_var=\$ac_old_val
4209 fi
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
4211 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
4213 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
4214 fi;;
4215 esac
4216 # Pass precious variables to config.status.
4217 if test "$ac_new_set" = set; then
4218 case $ac_new_val in
4219 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4220 *) ac_arg=$ac_var=$ac_new_val ;;
4221 esac
4222 case " $ac_configure_args " in
4223 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
4224 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
4225 esac
4226 fi
4227 done
4228 if $ac_cache_corrupted; then
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4230 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
4232 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
4233 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
4234 and start over" "$LINENO" 5
4235 fi
4236 ## -------------------- ##
4237 ## Main body of script. ##
4238 ## -------------------- ##
4239
4240 ac_ext=c
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245
4246
4247
4248 am__api_version='1.16'
4249
4250
4251
4252 # Find a good install program. We prefer a C program (faster),
4253 # so one script is as good as another. But avoid the broken or
4254 # incompatible versions:
4255 # SysV /etc/install, /usr/sbin/install
4256 # SunOS /usr/etc/install
4257 # IRIX /sbin/install
4258 # AIX /bin/install
4259 # AmigaOS /C/install, which installs bootblocks on floppy discs
4260 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4261 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4262 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4263 # OS/2's system install, which has a completely different semantic
4264 # ./install, which can be erroneously created by make from ./install.sh.
4265 # Reject install programs that cannot install multiple files.
4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4267 printf %s "checking for a BSD-compatible install... " >&6; }
4268 if test -z "$INSTALL"; then
4269 if test ${ac_cv_path_install+y}
4270 then :
4271 printf %s "(cached) " >&6
4272 else case e in #(
4273 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276 IFS=$as_save_IFS
4277 case $as_dir in #(((
4278 '') as_dir=./ ;;
4279 */) ;;
4280 *) as_dir=$as_dir/ ;;
4281 esac
4282 # Account for fact that we put trailing slashes in our PATH walk.
4283 case $as_dir in #((
4284 ./ | /[cC]/* | \
4285 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4286 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4287 /usr/ucb/* ) ;;
4288 *)
4289 # OSF1 and SCO ODT 3.0 have their own names for install.
4290 # Don't use installbsd from OSF since it installs stuff as root
4291 # by default.
4292 for ac_prog in ginstall scoinst install; do
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4295 if test $ac_prog = install &&
4296 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4297 # AIX install. It has an incompatible calling convention.
4298 :
4299 elif test $ac_prog = install &&
4300 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4301 # program-specific install script used by HP pwplus--don't use.
4302 :
4303 else
4304 rm -rf conftest.one conftest.two conftest.dir
4305 echo one > conftest.one
4306 echo two > conftest.two
4307 mkdir conftest.dir
4308 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4309 test -s conftest.one && test -s conftest.two &&
4310 test -s conftest.dir/conftest.one &&
4311 test -s conftest.dir/conftest.two
4312 then
4313 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4314 break 3
4315 fi
4316 fi
4317 fi
4318 done
4319 done
4320 ;;
4321 esac
4322
4323 done
4324 IFS=$as_save_IFS
4325
4326 rm -rf conftest.one conftest.two conftest.dir
4327 ;;
4328 esac
4329 fi
4330 if test ${ac_cv_path_install+y}; then
4331 INSTALL=$ac_cv_path_install
4332 else
4333 # As a last resort, use the slow shell script. Don't cache a
4334 # value for INSTALL within a source directory, because that will
4335 # break other packages using the cache if that directory is
4336 # removed, or if the value is a relative name.
4337 INSTALL=$ac_install_sh
4338 fi
4339 fi
4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4341 printf "%s\n" "$INSTALL" >&6; }
4342
4343 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4344 # It thinks the first close brace ends the variable substitution.
4345 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4346
4347 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4348
4349 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4350
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4352 printf %s "checking whether build environment is sane... " >&6; }
4353 # Reject unsafe characters in $srcdir or the absolute working directory
4354 # name. Accept space and tab only in the latter.
4355 am_lf='
4356 '
4357 case `pwd` in
4358 *[\\\"\#\$\&\'\`$am_lf]*)
4359 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4360 esac
4361 case $srcdir in
4362 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4363 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4364 esac
4365
4366 # Do 'set' in a subshell so we don't clobber the current shell's
4367 # arguments. Must try -L first in case configure is actually a
4368 # symlink; some systems play weird games with the mod time of symlinks
4369 # (eg FreeBSD returns the mod time of the symlink's containing
4370 # directory).
4371 if (
4372 am_has_slept=no
4373 for am_try in 1 2; do
4374 echo "timestamp, slept: $am_has_slept" > conftest.file
4375 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4376 if test "$*" = "X"; then
4377 # -L didn't work.
4378 set X `ls -t "$srcdir/configure" conftest.file`
4379 fi
4380 if test "$*" != "X $srcdir/configure conftest.file" \
4381 && test "$*" != "X conftest.file $srcdir/configure"; then
4382
4383 # If neither matched, then we have a broken ls. This can happen
4384 # if, for instance, CONFIG_SHELL is bash and it inherits a
4385 # broken ls alias from the environment. This has actually
4386 # happened. Such a system could not be considered "sane".
4387 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4388 alias in your environment" "$LINENO" 5
4389 fi
4390 if test "$2" = conftest.file || test $am_try -eq 2; then
4391 break
4392 fi
4393 # Just in case.
4394 sleep 1
4395 am_has_slept=yes
4396 done
4397 test "$2" = conftest.file
4398 )
4399 then
4400 # Ok.
4401 :
4402 else
4403 as_fn_error $? "newly created file is older than distributed files!
4404 Check your system clock" "$LINENO" 5
4405 fi
4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4407 printf "%s\n" "yes" >&6; }
4408 # If we didn't sleep, we still need to ensure time stamps of config.status and
4409 # generated files are strictly newer.
4410 am_sleep_pid=
4411 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4412 ( sleep 1 ) &
4413 am_sleep_pid=$!
4414 fi
4415
4416 rm -f conftest.file
4417
4418 test "$program_prefix" != NONE &&
4419 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4420 # Use a double $ so make ignores it.
4421 test "$program_suffix" != NONE &&
4422 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4423 # Double any \ or $.
4424 # By default was 's,x,x', remove it if useless.
4425 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4426 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4427
4428
4429 # Expand $ac_aux_dir to an absolute path.
4430 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4431
4432
4433 if test x"${MISSING+set}" != xset; then
4434 MISSING="\${SHELL} '$am_aux_dir/missing'"
4435 fi
4436 # Use eval to expand $SHELL
4437 if eval "$MISSING --is-lightweight"; then
4438 am_missing_run="$MISSING "
4439 else
4440 am_missing_run=
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4442 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4443 fi
4444
4445 if test x"${install_sh+set}" != xset; then
4446 case $am_aux_dir in
4447 *\ * | *\ *)
4448 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4449 *)
4450 install_sh="\${SHELL} $am_aux_dir/install-sh"
4451 esac
4452 fi
4453
4454 # Installed binaries are usually stripped using 'strip' when the user
4455 # run "make install-strip". However 'strip' might not be the right
4456 # tool to use in cross-compilation environments, therefore Automake
4457 # will honor the 'STRIP' environment variable to overrule this program.
4458 if test "$cross_compiling" != no; then
4459 if test -n "$ac_tool_prefix"; then
4460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4461 set dummy ${ac_tool_prefix}strip; ac_word=$2
4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 printf %s "checking for $ac_word... " >&6; }
4464 if test ${ac_cv_prog_STRIP+y}
4465 then :
4466 printf %s "(cached) " >&6
4467 else case e in #(
4468 e) if test -n "$STRIP"; then
4469 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474 IFS=$as_save_IFS
4475 case $as_dir in #(((
4476 '') as_dir=./ ;;
4477 */) ;;
4478 *) as_dir=$as_dir/ ;;
4479 esac
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4482 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486 done
4487 done
4488 IFS=$as_save_IFS
4489
4490 fi ;;
4491 esac
4492 fi
4493 STRIP=$ac_cv_prog_STRIP
4494 if test -n "$STRIP"; then
4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4496 printf "%s\n" "$STRIP" >&6; }
4497 else
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499 printf "%s\n" "no" >&6; }
4500 fi
4501
4502
4503 fi
4504 if test -z "$ac_cv_prog_STRIP"; then
4505 ac_ct_STRIP=$STRIP
4506 # Extract the first word of "strip", so it can be a program name with args.
4507 set dummy strip; ac_word=$2
4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 printf %s "checking for $ac_word... " >&6; }
4510 if test ${ac_cv_prog_ac_ct_STRIP+y}
4511 then :
4512 printf %s "(cached) " >&6
4513 else case e in #(
4514 e) if test -n "$ac_ct_STRIP"; then
4515 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520 IFS=$as_save_IFS
4521 case $as_dir in #(((
4522 '') as_dir=./ ;;
4523 */) ;;
4524 *) as_dir=$as_dir/ ;;
4525 esac
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4528 ac_cv_prog_ac_ct_STRIP="strip"
4529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4530 break 2
4531 fi
4532 done
4533 done
4534 IFS=$as_save_IFS
4535
4536 fi ;;
4537 esac
4538 fi
4539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4540 if test -n "$ac_ct_STRIP"; then
4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4542 printf "%s\n" "$ac_ct_STRIP" >&6; }
4543 else
4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 printf "%s\n" "no" >&6; }
4546 fi
4547
4548 if test "x$ac_ct_STRIP" = x; then
4549 STRIP=":"
4550 else
4551 case $cross_compiling:$ac_tool_warned in
4552 yes:)
4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4554 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4555 ac_tool_warned=yes ;;
4556 esac
4557 STRIP=$ac_ct_STRIP
4558 fi
4559 else
4560 STRIP="$ac_cv_prog_STRIP"
4561 fi
4562
4563 fi
4564 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4565
4566
4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4568 printf %s "checking for a race-free mkdir -p... " >&6; }
4569 if test -z "$MKDIR_P"; then
4570 if test ${ac_cv_path_mkdir+y}
4571 then :
4572 printf %s "(cached) " >&6
4573 else case e in #(
4574 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4576 do
4577 IFS=$as_save_IFS
4578 case $as_dir in #(((
4579 '') as_dir=./ ;;
4580 */) ;;
4581 *) as_dir=$as_dir/ ;;
4582 esac
4583 for ac_prog in mkdir gmkdir; do
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4586 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4587 'mkdir ('*'coreutils) '* | \
4588 *'BusyBox '* | \
4589 'mkdir (fileutils) '4.1*)
4590 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4591 break 3;;
4592 esac
4593 done
4594 done
4595 done
4596 IFS=$as_save_IFS
4597 ;;
4598 esac
4599 fi
4600
4601 test -d ./--version && rmdir ./--version
4602 if test ${ac_cv_path_mkdir+y}; then
4603 MKDIR_P="$ac_cv_path_mkdir -p"
4604 else
4605 # As a last resort, use plain mkdir -p,
4606 # in the hope it doesn't have the bugs of ancient mkdir.
4607 MKDIR_P='mkdir -p'
4608 fi
4609 fi
4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4611 printf "%s\n" "$MKDIR_P" >&6; }
4612
4613 for ac_prog in gawk mawk nawk awk
4614 do
4615 # Extract the first word of "$ac_prog", so it can be a program name with args.
4616 set dummy $ac_prog; ac_word=$2
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 printf %s "checking for $ac_word... " >&6; }
4619 if test ${ac_cv_prog_AWK+y}
4620 then :
4621 printf %s "(cached) " >&6
4622 else case e in #(
4623 e) if test -n "$AWK"; then
4624 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629 IFS=$as_save_IFS
4630 case $as_dir in #(((
4631 '') as_dir=./ ;;
4632 */) ;;
4633 *) as_dir=$as_dir/ ;;
4634 esac
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4637 ac_cv_prog_AWK="$ac_prog"
4638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4639 break 2
4640 fi
4641 done
4642 done
4643 IFS=$as_save_IFS
4644
4645 fi ;;
4646 esac
4647 fi
4648 AWK=$ac_cv_prog_AWK
4649 if test -n "$AWK"; then
4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4651 printf "%s\n" "$AWK" >&6; }
4652 else
4653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 printf "%s\n" "no" >&6; }
4655 fi
4656
4657
4658 test -n "$AWK" && break
4659 done
4660
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4662 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4663 set x ${MAKE-make}
4664 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4665 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4666 then :
4667 printf %s "(cached) " >&6
4668 else case e in #(
4669 e) cat >conftest.make <<\_ACEOF
4670 SHELL = /bin/sh
4671 all:
4672 @echo '@@@%%%=$(MAKE)=@@@%%%'
4673 _ACEOF
4674 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4675 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4676 *@@@%%%=?*=@@@%%%*)
4677 eval ac_cv_prog_make_${ac_make}_set=yes;;
4678 *)
4679 eval ac_cv_prog_make_${ac_make}_set=no;;
4680 esac
4681 rm -f conftest.make ;;
4682 esac
4683 fi
4684 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4686 printf "%s\n" "yes" >&6; }
4687 SET_MAKE=
4688 else
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 printf "%s\n" "no" >&6; }
4691 SET_MAKE="MAKE=${MAKE-make}"
4692 fi
4693
4694 rm -rf .tst 2>/dev/null
4695 mkdir .tst 2>/dev/null
4696 if test -d .tst; then
4697 am__leading_dot=.
4698 else
4699 am__leading_dot=_
4700 fi
4701 rmdir .tst 2>/dev/null
4702
4703 # Check whether --enable-silent-rules was given.
4704 if test ${enable_silent_rules+y}
4705 then :
4706 enableval=$enable_silent_rules;
4707 fi
4708
4709 case $enable_silent_rules in # (((
4710 yes) AM_DEFAULT_VERBOSITY=0;;
4711 no) AM_DEFAULT_VERBOSITY=1;;
4712 *) AM_DEFAULT_VERBOSITY=1;;
4713 esac
4714 am_make=${MAKE-make}
4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4716 printf %s "checking whether $am_make supports nested variables... " >&6; }
4717 if test ${am_cv_make_support_nested_variables+y}
4718 then :
4719 printf %s "(cached) " >&6
4720 else case e in #(
4721 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4722 BAR0=false
4723 BAR1=true
4724 V=1
4725 am__doit:
4726 @$(TRUE)
4727 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4728 am_cv_make_support_nested_variables=yes
4729 else
4730 am_cv_make_support_nested_variables=no
4731 fi ;;
4732 esac
4733 fi
4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4735 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4736 if test $am_cv_make_support_nested_variables = yes; then
4737 AM_V='$(V)'
4738 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4739 else
4740 AM_V=$AM_DEFAULT_VERBOSITY
4741 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4742 fi
4743 AM_BACKSLASH='\'
4744
4745 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4746 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4747 # is not polluted with repeated "-I."
4748 am__isrc=' -I$(srcdir)'
4749 # test to see if srcdir already configured
4750 if test -f $srcdir/config.status; then
4751 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4752 fi
4753 fi
4754
4755 # test whether we have cygpath
4756 if test -z "$CYGPATH_W"; then
4757 if (cygpath --version) >/dev/null 2>/dev/null; then
4758 CYGPATH_W='cygpath -w'
4759 else
4760 CYGPATH_W=echo
4761 fi
4762 fi
4763
4764
4765 # Define the identity of the package.
4766 PACKAGE='libpipeline'
4767 VERSION='1.5.8'
4768
4769
4770 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4771
4772
4773 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4774
4775 # Some tools Automake needs.
4776
4777 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4778
4779
4780 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4781
4782
4783 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4784
4785
4786 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4787
4788
4789 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4790
4791 # For better backward compatibility. To be removed once Automake 1.9.x
4792 # dies out for good. For more background, see:
4793 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4794 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4795 mkdir_p='$(MKDIR_P)'
4796
4797 # We need awk for the "check" target (and possibly the TAP driver). The
4798 # system "awk" is bad on some platforms.
4799 # Always define AMTAR for backward compatibility. Yes, it's still used
4800 # in the wild :-( We should find a proper way to deprecate it ...
4801 AMTAR='$${TAR-tar}'
4802
4803
4804 # We'll loop over all known methods to create a tar archive until one works.
4805 _am_tools='gnutar pax cpio none'
4806
4807 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4808
4809
4810
4811
4812
4813 # Variables for tags utilities; see am/tags.am
4814 if test -z "$CTAGS"; then
4815 CTAGS=ctags
4816 fi
4817
4818 if test -z "$ETAGS"; then
4819 ETAGS=etags
4820 fi
4821
4822 if test -z "$CSCOPE"; then
4823 CSCOPE=cscope
4824 fi
4825
4826
4827
4828 # POSIX will say in a future version that running "rm -f" with no argument
4829 # is OK; and we want to be able to make that assumption in our Makefile
4830 # recipes. So use an aggressive probe to check that the usage we want is
4831 # actually supported "in the wild" to an acceptable degree.
4832 # See automake bug#10828.
4833 # To make any issue more visible, cause the running configure to be aborted
4834 # by default if the 'rm' program in use doesn't match our expectations; the
4835 # user can still override this though.
4836 if rm -f && rm -fr && rm -rf; then : OK; else
4837 cat >&2 <<'END'
4838 Oops!
4839
4840 Your 'rm' program seems unable to run without file operands specified
4841 on the command line, even when the '-f' option is present. This is contrary
4842 to the behaviour of most rm programs out there, and not conforming with
4843 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4844
4845 Please tell [email protected] about your system, including the value
4846 of your $PATH and any error possibly output before this message. This
4847 can help us improve future automake versions.
4848
4849 END
4850 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4851 echo 'Configuration will proceed anyway, since you have set the' >&2
4852 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4853 echo >&2
4854 else
4855 cat >&2 <<'END'
4856 Aborting the configuration process, to ensure you take notice of the issue.
4857
4858 You can download and install GNU coreutils to get an 'rm' implementation
4859 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4860
4861 If you want to complete the configuration process using your problematic
4862 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4863 to "yes", and re-run configure.
4864
4865 END
4866 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4867 fi
4868 fi
4869
4870
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4872 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4873 # Check whether --enable-maintainer-mode was given.
4874 if test ${enable_maintainer_mode+y}
4875 then :
4876 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4877 else case e in #(
4878 e) USE_MAINTAINER_MODE=no ;;
4879 esac
4880 fi
4881
4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4883 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
4884 if test $USE_MAINTAINER_MODE = yes; then
4885 MAINTAINER_MODE_TRUE=
4886 MAINTAINER_MODE_FALSE='#'
4887 else
4888 MAINTAINER_MODE_TRUE='#'
4889 MAINTAINER_MODE_FALSE=
4890 fi
4891
4892 MAINT=$MAINTAINER_MODE_TRUE
4893
4894
4895 # Check whether --enable-silent-rules was given.
4896 if test ${enable_silent_rules+y}
4897 then :
4898 enableval=$enable_silent_rules;
4899 fi
4900
4901 case $enable_silent_rules in # (((
4902 yes) AM_DEFAULT_VERBOSITY=0;;
4903 no) AM_DEFAULT_VERBOSITY=1;;
4904 *) AM_DEFAULT_VERBOSITY=0;;
4905 esac
4906 am_make=${MAKE-make}
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4908 printf %s "checking whether $am_make supports nested variables... " >&6; }
4909 if test ${am_cv_make_support_nested_variables+y}
4910 then :
4911 printf %s "(cached) " >&6
4912 else case e in #(
4913 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4914 BAR0=false
4915 BAR1=true
4916 V=1
4917 am__doit:
4918 @$(TRUE)
4919 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4920 am_cv_make_support_nested_variables=yes
4921 else
4922 am_cv_make_support_nested_variables=no
4923 fi ;;
4924 esac
4925 fi
4926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4927 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4928 if test $am_cv_make_support_nested_variables = yes; then
4929 AM_V='$(V)'
4930 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4931 else
4932 AM_V=$AM_DEFAULT_VERBOSITY
4933 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4934 fi
4935 AM_BACKSLASH='\'
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948 DEPDIR="${am__leading_dot}deps"
4949
4950 ac_config_commands="$ac_config_commands depfiles"
4951
4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4953 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4954 cat > confinc.mk << 'END'
4955 am__doit:
4956 @echo this is the am__doit target >confinc.out
4957 .PHONY: am__doit
4958 END
4959 am__include="#"
4960 am__quote=
4961 # BSD make does it like this.
4962 echo '.include "confinc.mk" # ignored' > confmf.BSD
4963 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4964 echo 'include confinc.mk # ignored' > confmf.GNU
4965 _am_result=no
4966 for s in GNU BSD; do
4967 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4968 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }
4972 case $?:`cat confinc.out 2>/dev/null` in #(
4973 '0:this is the am__doit target') :
4974 case $s in #(
4975 BSD) :
4976 am__include='.include' am__quote='"' ;; #(
4977 *) :
4978 am__include='include' am__quote='' ;;
4979 esac ;; #(
4980 *) :
4981 ;;
4982 esac
4983 if test "$am__include" != "#"; then
4984 _am_result="yes ($s style)"
4985 break
4986 fi
4987 done
4988 rm -f confinc.* confmf.*
4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4990 printf "%s\n" "${_am_result}" >&6; }
4991
4992 # Check whether --enable-dependency-tracking was given.
4993 if test ${enable_dependency_tracking+y}
4994 then :
4995 enableval=$enable_dependency_tracking;
4996 fi
4997
4998 if test "x$enable_dependency_tracking" != xno; then
4999 am_depcomp="$ac_aux_dir/depcomp"
5000 AMDEPBACKSLASH='\'
5001 am__nodep='_no'
5002 fi
5003 if test "x$enable_dependency_tracking" != xno; then
5004 AMDEP_TRUE=
5005 AMDEP_FALSE='#'
5006 else
5007 AMDEP_TRUE='#'
5008 AMDEP_FALSE=
5009 fi
5010
5011
5012 ac_ext=c
5013 ac_cpp='$CPP $CPPFLAGS'
5014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017 if test -n "$ac_tool_prefix"; then
5018 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5019 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 printf %s "checking for $ac_word... " >&6; }
5022 if test ${ac_cv_prog_CC+y}
5023 then :
5024 printf %s "(cached) " >&6
5025 else case e in #(
5026 e) if test -n "$CC"; then
5027 ac_cv_prog_CC="$CC" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032 IFS=$as_save_IFS
5033 case $as_dir in #(((
5034 '') as_dir=./ ;;
5035 */) ;;
5036 *) as_dir=$as_dir/ ;;
5037 esac
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5040 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5042 break 2
5043 fi
5044 done
5045 done
5046 IFS=$as_save_IFS
5047
5048 fi ;;
5049 esac
5050 fi
5051 CC=$ac_cv_prog_CC
5052 if test -n "$CC"; then
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5054 printf "%s\n" "$CC" >&6; }
5055 else
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 printf "%s\n" "no" >&6; }
5058 fi
5059
5060
5061 fi
5062 if test -z "$ac_cv_prog_CC"; then
5063 ac_ct_CC=$CC
5064 # Extract the first word of "gcc", so it can be a program name with args.
5065 set dummy gcc; ac_word=$2
5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 printf %s "checking for $ac_word... " >&6; }
5068 if test ${ac_cv_prog_ac_ct_CC+y}
5069 then :
5070 printf %s "(cached) " >&6
5071 else case e in #(
5072 e) if test -n "$ac_ct_CC"; then
5073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5074 else
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5077 do
5078 IFS=$as_save_IFS
5079 case $as_dir in #(((
5080 '') as_dir=./ ;;
5081 */) ;;
5082 *) as_dir=$as_dir/ ;;
5083 esac
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5086 ac_cv_prog_ac_ct_CC="gcc"
5087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5088 break 2
5089 fi
5090 done
5091 done
5092 IFS=$as_save_IFS
5093
5094 fi ;;
5095 esac
5096 fi
5097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5098 if test -n "$ac_ct_CC"; then
5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5100 printf "%s\n" "$ac_ct_CC" >&6; }
5101 else
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 printf "%s\n" "no" >&6; }
5104 fi
5105
5106 if test "x$ac_ct_CC" = x; then
5107 CC=""
5108 else
5109 case $cross_compiling:$ac_tool_warned in
5110 yes:)
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5112 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5113 ac_tool_warned=yes ;;
5114 esac
5115 CC=$ac_ct_CC
5116 fi
5117 else
5118 CC="$ac_cv_prog_CC"
5119 fi
5120
5121 if test -z "$CC"; then
5122 if test -n "$ac_tool_prefix"; then
5123 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5124 set dummy ${ac_tool_prefix}cc; ac_word=$2
5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 printf %s "checking for $ac_word... " >&6; }
5127 if test ${ac_cv_prog_CC+y}
5128 then :
5129 printf %s "(cached) " >&6
5130 else case e in #(
5131 e) if test -n "$CC"; then
5132 ac_cv_prog_CC="$CC" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5136 do
5137 IFS=$as_save_IFS
5138 case $as_dir in #(((
5139 '') as_dir=./ ;;
5140 */) ;;
5141 *) as_dir=$as_dir/ ;;
5142 esac
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5145 ac_cv_prog_CC="${ac_tool_prefix}cc"
5146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5147 break 2
5148 fi
5149 done
5150 done
5151 IFS=$as_save_IFS
5152
5153 fi ;;
5154 esac
5155 fi
5156 CC=$ac_cv_prog_CC
5157 if test -n "$CC"; then
5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5159 printf "%s\n" "$CC" >&6; }
5160 else
5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 printf "%s\n" "no" >&6; }
5163 fi
5164
5165
5166 fi
5167 fi
5168 if test -z "$CC"; then
5169 # Extract the first word of "cc", so it can be a program name with args.
5170 set dummy cc; ac_word=$2
5171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 printf %s "checking for $ac_word... " >&6; }
5173 if test ${ac_cv_prog_CC+y}
5174 then :
5175 printf %s "(cached) " >&6
5176 else case e in #(
5177 e) if test -n "$CC"; then
5178 ac_cv_prog_CC="$CC" # Let the user override the test.
5179 else
5180 ac_prog_rejected=no
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184 IFS=$as_save_IFS
5185 case $as_dir in #(((
5186 '') as_dir=./ ;;
5187 */) ;;
5188 *) as_dir=$as_dir/ ;;
5189 esac
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5192 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5193 ac_prog_rejected=yes
5194 continue
5195 fi
5196 ac_cv_prog_CC="cc"
5197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200 done
5201 done
5202 IFS=$as_save_IFS
5203
5204 if test $ac_prog_rejected = yes; then
5205 # We found a bogon in the path, so make sure we never use it.
5206 set dummy $ac_cv_prog_CC
5207 shift
5208 if test $# != 0; then
5209 # We chose a different compiler from the bogus one.
5210 # However, it has the same basename, so the bogon will be chosen
5211 # first if we set CC to just the basename; use the full file name.
5212 shift
5213 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5214 fi
5215 fi
5216 fi ;;
5217 esac
5218 fi
5219 CC=$ac_cv_prog_CC
5220 if test -n "$CC"; then
5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5222 printf "%s\n" "$CC" >&6; }
5223 else
5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225 printf "%s\n" "no" >&6; }
5226 fi
5227
5228
5229 fi
5230 if test -z "$CC"; then
5231 if test -n "$ac_tool_prefix"; then
5232 for ac_prog in cl.exe
5233 do
5234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 printf %s "checking for $ac_word... " >&6; }
5238 if test ${ac_cv_prog_CC+y}
5239 then :
5240 printf %s "(cached) " >&6
5241 else case e in #(
5242 e) if test -n "$CC"; then
5243 ac_cv_prog_CC="$CC" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248 IFS=$as_save_IFS
5249 case $as_dir in #(((
5250 '') as_dir=./ ;;
5251 */) ;;
5252 *) as_dir=$as_dir/ ;;
5253 esac
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5256 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5258 break 2
5259 fi
5260 done
5261 done
5262 IFS=$as_save_IFS
5263
5264 fi ;;
5265 esac
5266 fi
5267 CC=$ac_cv_prog_CC
5268 if test -n "$CC"; then
5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5270 printf "%s\n" "$CC" >&6; }
5271 else
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 printf "%s\n" "no" >&6; }
5274 fi
5275
5276
5277 test -n "$CC" && break
5278 done
5279 fi
5280 if test -z "$CC"; then
5281 ac_ct_CC=$CC
5282 for ac_prog in cl.exe
5283 do
5284 # Extract the first word of "$ac_prog", so it can be a program name with args.
5285 set dummy $ac_prog; ac_word=$2
5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 printf %s "checking for $ac_word... " >&6; }
5288 if test ${ac_cv_prog_ac_ct_CC+y}
5289 then :
5290 printf %s "(cached) " >&6
5291 else case e in #(
5292 e) if test -n "$ac_ct_CC"; then
5293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5297 do
5298 IFS=$as_save_IFS
5299 case $as_dir in #(((
5300 '') as_dir=./ ;;
5301 */) ;;
5302 *) as_dir=$as_dir/ ;;
5303 esac
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5306 ac_cv_prog_ac_ct_CC="$ac_prog"
5307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5308 break 2
5309 fi
5310 done
5311 done
5312 IFS=$as_save_IFS
5313
5314 fi ;;
5315 esac
5316 fi
5317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5318 if test -n "$ac_ct_CC"; then
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5320 printf "%s\n" "$ac_ct_CC" >&6; }
5321 else
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 printf "%s\n" "no" >&6; }
5324 fi
5325
5326
5327 test -n "$ac_ct_CC" && break
5328 done
5329
5330 if test "x$ac_ct_CC" = x; then
5331 CC=""
5332 else
5333 case $cross_compiling:$ac_tool_warned in
5334 yes:)
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5336 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5337 ac_tool_warned=yes ;;
5338 esac
5339 CC=$ac_ct_CC
5340 fi
5341 fi
5342
5343 fi
5344 if test -z "$CC"; then
5345 if test -n "$ac_tool_prefix"; then
5346 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5347 set dummy ${ac_tool_prefix}clang; ac_word=$2
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 printf %s "checking for $ac_word... " >&6; }
5350 if test ${ac_cv_prog_CC+y}
5351 then :
5352 printf %s "(cached) " >&6
5353 else case e in #(
5354 e) if test -n "$CC"; then
5355 ac_cv_prog_CC="$CC" # Let the user override the test.
5356 else
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5359 do
5360 IFS=$as_save_IFS
5361 case $as_dir in #(((
5362 '') as_dir=./ ;;
5363 */) ;;
5364 *) as_dir=$as_dir/ ;;
5365 esac
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5368 ac_cv_prog_CC="${ac_tool_prefix}clang"
5369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5370 break 2
5371 fi
5372 done
5373 done
5374 IFS=$as_save_IFS
5375
5376 fi ;;
5377 esac
5378 fi
5379 CC=$ac_cv_prog_CC
5380 if test -n "$CC"; then
5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5382 printf "%s\n" "$CC" >&6; }
5383 else
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 printf "%s\n" "no" >&6; }
5386 fi
5387
5388
5389 fi
5390 if test -z "$ac_cv_prog_CC"; then
5391 ac_ct_CC=$CC
5392 # Extract the first word of "clang", so it can be a program name with args.
5393 set dummy clang; ac_word=$2
5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 printf %s "checking for $ac_word... " >&6; }
5396 if test ${ac_cv_prog_ac_ct_CC+y}
5397 then :
5398 printf %s "(cached) " >&6
5399 else case e in #(
5400 e) if test -n "$ac_ct_CC"; then
5401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406 IFS=$as_save_IFS
5407 case $as_dir in #(((
5408 '') as_dir=./ ;;
5409 */) ;;
5410 *) as_dir=$as_dir/ ;;
5411 esac
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_ac_ct_CC="clang"
5415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5416 break 2
5417 fi
5418 done
5419 done
5420 IFS=$as_save_IFS
5421
5422 fi ;;
5423 esac
5424 fi
5425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5426 if test -n "$ac_ct_CC"; then
5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5428 printf "%s\n" "$ac_ct_CC" >&6; }
5429 else
5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 printf "%s\n" "no" >&6; }
5432 fi
5433
5434 if test "x$ac_ct_CC" = x; then
5435 CC=""
5436 else
5437 case $cross_compiling:$ac_tool_warned in
5438 yes:)
5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5440 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5441 ac_tool_warned=yes ;;
5442 esac
5443 CC=$ac_ct_CC
5444 fi
5445 else
5446 CC="$ac_cv_prog_CC"
5447 fi
5448
5449 fi
5450
5451
5452 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5453 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5454 as_fn_error $? "no acceptable C compiler found in \$PATH
5455 See 'config.log' for more details" "$LINENO" 5; }
5456
5457 # Provide some information about the compiler.
5458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5459 set X $ac_compile
5460 ac_compiler=$2
5461 for ac_option in --version -v -V -qversion -version; do
5462 { { ac_try="$ac_compiler $ac_option >&5"
5463 case "(($ac_try" in
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5466 esac
5467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5468 printf "%s\n" "$ac_try_echo"; } >&5
5469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5470 ac_status=$?
5471 if test -s conftest.err; then
5472 sed '10a\
5473 ... rest of stderr output deleted ...
5474 10q' conftest.err >conftest.er1
5475 cat conftest.er1 >&5
5476 fi
5477 rm -f conftest.er1 conftest.err
5478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5479 test $ac_status = 0; }
5480 done
5481
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484
5485 int
5486 main (void)
5487 {
5488
5489 ;
5490 return 0;
5491 }
5492 _ACEOF
5493 ac_clean_files_save=$ac_clean_files
5494 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5495 # Try to create an executable without -o first, disregard a.out.
5496 # It will help us diagnose broken compilers, and finding out an intuition
5497 # of exeext.
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5499 printf %s "checking whether the C compiler works... " >&6; }
5500 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5501
5502 # The possible output files:
5503 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5504
5505 ac_rmfiles=
5506 for ac_file in $ac_files
5507 do
5508 case $ac_file in
5509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5510 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5511 esac
5512 done
5513 rm -f $ac_rmfiles
5514
5515 if { { ac_try="$ac_link_default"
5516 case "(($ac_try" in
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5519 esac
5520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5521 printf "%s\n" "$ac_try_echo"; } >&5
5522 (eval "$ac_link_default") 2>&5
5523 ac_status=$?
5524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5525 test $ac_status = 0; }
5526 then :
5527 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
5528 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
5529 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5530 # so that the user can short-circuit this test for compilers unknown to
5531 # Autoconf.
5532 for ac_file in $ac_files ''
5533 do
5534 test -f "$ac_file" || continue
5535 case $ac_file in
5536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5537 ;;
5538 [ab].out )
5539 # We found the default executable, but exeext='' is most
5540 # certainly right.
5541 break;;
5542 *.* )
5543 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5544 then :; else
5545 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5546 fi
5547 # We set ac_cv_exeext here because the later test for it is not
5548 # safe: cross compilers may not add the suffix if given an '-o'
5549 # argument, so we may need to know it at that point already.
5550 # Even if this section looks crufty: it has the advantage of
5551 # actually working.
5552 break;;
5553 * )
5554 break;;
5555 esac
5556 done
5557 test "$ac_cv_exeext" = no && ac_cv_exeext=
5558
5559 else case e in #(
5560 e) ac_file='' ;;
5561 esac
5562 fi
5563 if test -z "$ac_file"
5564 then :
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 printf "%s\n" "no" >&6; }
5567 printf "%s\n" "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5569
5570 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5571 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5572 as_fn_error 77 "C compiler cannot create executables
5573 See 'config.log' for more details" "$LINENO" 5; }
5574 else case e in #(
5575 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5576 printf "%s\n" "yes" >&6; } ;;
5577 esac
5578 fi
5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5580 printf %s "checking for C compiler default output file name... " >&6; }
5581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5582 printf "%s\n" "$ac_file" >&6; }
5583 ac_exeext=$ac_cv_exeext
5584
5585 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5586 ac_clean_files=$ac_clean_files_save
5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5588 printf %s "checking for suffix of executables... " >&6; }
5589 if { { ac_try="$ac_link"
5590 case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593 esac
5594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5595 printf "%s\n" "$ac_try_echo"; } >&5
5596 (eval "$ac_link") 2>&5
5597 ac_status=$?
5598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5599 test $ac_status = 0; }
5600 then :
5601 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
5602 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
5603 # work properly (i.e., refer to 'conftest.exe'), while it won't with
5604 # 'rm'.
5605 for ac_file in conftest.exe conftest conftest.*; do
5606 test -f "$ac_file" || continue
5607 case $ac_file in
5608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5609 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5610 break;;
5611 * ) break;;
5612 esac
5613 done
5614 else case e in #(
5615 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5616 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5617 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5618 See 'config.log' for more details" "$LINENO" 5; } ;;
5619 esac
5620 fi
5621 rm -f conftest conftest$ac_cv_exeext
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5623 printf "%s\n" "$ac_cv_exeext" >&6; }
5624
5625 rm -f conftest.$ac_ext
5626 EXEEXT=$ac_cv_exeext
5627 ac_exeext=$EXEEXT
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 #include <stdio.h>
5631 int
5632 main (void)
5633 {
5634 FILE *f = fopen ("conftest.out", "w");
5635 if (!f)
5636 return 1;
5637 return ferror (f) || fclose (f) != 0;
5638
5639 ;
5640 return 0;
5641 }
5642 _ACEOF
5643 ac_clean_files="$ac_clean_files conftest.out"
5644 # Check that the compiler produces executables we can run. If not, either
5645 # the compiler is broken, or we cross compile.
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5647 printf %s "checking whether we are cross compiling... " >&6; }
5648 if test "$cross_compiling" != yes; then
5649 { { ac_try="$ac_link"
5650 case "(($ac_try" in
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5653 esac
5654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5655 printf "%s\n" "$ac_try_echo"; } >&5
5656 (eval "$ac_link") 2>&5
5657 ac_status=$?
5658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5659 test $ac_status = 0; }
5660 if { ac_try='./conftest$ac_cv_exeext'
5661 { { case "(($ac_try" in
5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5664 esac
5665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5666 printf "%s\n" "$ac_try_echo"; } >&5
5667 (eval "$ac_try") 2>&5
5668 ac_status=$?
5669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5670 test $ac_status = 0; }; }; then
5671 cross_compiling=no
5672 else
5673 if test "$cross_compiling" = maybe; then
5674 cross_compiling=yes
5675 else
5676 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5677 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5678 as_fn_error 77 "cannot run C compiled programs.
5679 If you meant to cross compile, use '--host'.
5680 See 'config.log' for more details" "$LINENO" 5; }
5681 fi
5682 fi
5683 fi
5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5685 printf "%s\n" "$cross_compiling" >&6; }
5686
5687 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
5688 conftest.o conftest.obj conftest.out
5689 ac_clean_files=$ac_clean_files_save
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5691 printf %s "checking for suffix of object files... " >&6; }
5692 if test ${ac_cv_objext+y}
5693 then :
5694 printf %s "(cached) " >&6
5695 else case e in #(
5696 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698
5699 int
5700 main (void)
5701 {
5702
5703 ;
5704 return 0;
5705 }
5706 _ACEOF
5707 rm -f conftest.o conftest.obj
5708 if { { ac_try="$ac_compile"
5709 case "(($ac_try" in
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5712 esac
5713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5714 printf "%s\n" "$ac_try_echo"; } >&5
5715 (eval "$ac_compile") 2>&5
5716 ac_status=$?
5717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5718 test $ac_status = 0; }
5719 then :
5720 for ac_file in conftest.o conftest.obj conftest.*; do
5721 test -f "$ac_file" || continue;
5722 case $ac_file in
5723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5724 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5725 break;;
5726 esac
5727 done
5728 else case e in #(
5729 e) printf "%s\n" "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5731
5732 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5733 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5734 as_fn_error $? "cannot compute suffix of object files: cannot compile
5735 See 'config.log' for more details" "$LINENO" 5; } ;;
5736 esac
5737 fi
5738 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
5739 esac
5740 fi
5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5742 printf "%s\n" "$ac_cv_objext" >&6; }
5743 OBJEXT=$ac_cv_objext
5744 ac_objext=$OBJEXT
5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5746 printf %s "checking whether the compiler supports GNU C... " >&6; }
5747 if test ${ac_cv_c_compiler_gnu+y}
5748 then :
5749 printf %s "(cached) " >&6
5750 else case e in #(
5751 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753
5754 int
5755 main (void)
5756 {
5757 #ifndef __GNUC__
5758 choke me
5759 #endif
5760
5761 ;
5762 return 0;
5763 }
5764 _ACEOF
5765 if ac_fn_c_try_compile "$LINENO"
5766 then :
5767 ac_compiler_gnu=yes
5768 else case e in #(
5769 e) ac_compiler_gnu=no ;;
5770 esac
5771 fi
5772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5773 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5774 ;;
5775 esac
5776 fi
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5778 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5780
5781 if test $ac_compiler_gnu = yes; then
5782 GCC=yes
5783 else
5784 GCC=
5785 fi
5786 ac_test_CFLAGS=${CFLAGS+y}
5787 ac_save_CFLAGS=$CFLAGS
5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5789 printf %s "checking whether $CC accepts -g... " >&6; }
5790 if test ${ac_cv_prog_cc_g+y}
5791 then :
5792 printf %s "(cached) " >&6
5793 else case e in #(
5794 e) ac_save_c_werror_flag=$ac_c_werror_flag
5795 ac_c_werror_flag=yes
5796 ac_cv_prog_cc_g=no
5797 CFLAGS="-g"
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800
5801 int
5802 main (void)
5803 {
5804
5805 ;
5806 return 0;
5807 }
5808 _ACEOF
5809 if ac_fn_c_try_compile "$LINENO"
5810 then :
5811 ac_cv_prog_cc_g=yes
5812 else case e in #(
5813 e) CFLAGS=""
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816
5817 int
5818 main (void)
5819 {
5820
5821 ;
5822 return 0;
5823 }
5824 _ACEOF
5825 if ac_fn_c_try_compile "$LINENO"
5826 then :
5827
5828 else case e in #(
5829 e) ac_c_werror_flag=$ac_save_c_werror_flag
5830 CFLAGS="-g"
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833
5834 int
5835 main (void)
5836 {
5837
5838 ;
5839 return 0;
5840 }
5841 _ACEOF
5842 if ac_fn_c_try_compile "$LINENO"
5843 then :
5844 ac_cv_prog_cc_g=yes
5845 fi
5846 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5847 esac
5848 fi
5849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5850 esac
5851 fi
5852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5853 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5854 esac
5855 fi
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5857 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5858 if test $ac_test_CFLAGS; then
5859 CFLAGS=$ac_save_CFLAGS
5860 elif test $ac_cv_prog_cc_g = yes; then
5861 if test "$GCC" = yes; then
5862 CFLAGS="-g -O2"
5863 else
5864 CFLAGS="-g"
5865 fi
5866 else
5867 if test "$GCC" = yes; then
5868 CFLAGS="-O2"
5869 else
5870 CFLAGS=
5871 fi
5872 fi
5873 ac_prog_cc_stdc=no
5874 if test x$ac_prog_cc_stdc = xno
5875 then :
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5877 printf %s "checking for $CC option to enable C11 features... " >&6; }
5878 if test ${ac_cv_prog_cc_c11+y}
5879 then :
5880 printf %s "(cached) " >&6
5881 else case e in #(
5882 e) ac_cv_prog_cc_c11=no
5883 ac_save_CC=$CC
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886 $ac_c_conftest_c11_program
5887 _ACEOF
5888 for ac_arg in '' -std=gnu11
5889 do
5890 CC="$ac_save_CC $ac_arg"
5891 if ac_fn_c_try_compile "$LINENO"
5892 then :
5893 ac_cv_prog_cc_c11=$ac_arg
5894 fi
5895 rm -f core conftest.err conftest.$ac_objext conftest.beam
5896 test "x$ac_cv_prog_cc_c11" != "xno" && break
5897 done
5898 rm -f conftest.$ac_ext
5899 CC=$ac_save_CC ;;
5900 esac
5901 fi
5902
5903 if test "x$ac_cv_prog_cc_c11" = xno
5904 then :
5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5906 printf "%s\n" "unsupported" >&6; }
5907 else case e in #(
5908 e) if test "x$ac_cv_prog_cc_c11" = x
5909 then :
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5911 printf "%s\n" "none needed" >&6; }
5912 else case e in #(
5913 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5914 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5915 CC="$CC $ac_cv_prog_cc_c11" ;;
5916 esac
5917 fi
5918 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5919 ac_prog_cc_stdc=c11 ;;
5920 esac
5921 fi
5922 fi
5923 if test x$ac_prog_cc_stdc = xno
5924 then :
5925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5926 printf %s "checking for $CC option to enable C99 features... " >&6; }
5927 if test ${ac_cv_prog_cc_c99+y}
5928 then :
5929 printf %s "(cached) " >&6
5930 else case e in #(
5931 e) ac_cv_prog_cc_c99=no
5932 ac_save_CC=$CC
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5935 $ac_c_conftest_c99_program
5936 _ACEOF
5937 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5938 do
5939 CC="$ac_save_CC $ac_arg"
5940 if ac_fn_c_try_compile "$LINENO"
5941 then :
5942 ac_cv_prog_cc_c99=$ac_arg
5943 fi
5944 rm -f core conftest.err conftest.$ac_objext conftest.beam
5945 test "x$ac_cv_prog_cc_c99" != "xno" && break
5946 done
5947 rm -f conftest.$ac_ext
5948 CC=$ac_save_CC ;;
5949 esac
5950 fi
5951
5952 if test "x$ac_cv_prog_cc_c99" = xno
5953 then :
5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5955 printf "%s\n" "unsupported" >&6; }
5956 else case e in #(
5957 e) if test "x$ac_cv_prog_cc_c99" = x
5958 then :
5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5960 printf "%s\n" "none needed" >&6; }
5961 else case e in #(
5962 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5963 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5964 CC="$CC $ac_cv_prog_cc_c99" ;;
5965 esac
5966 fi
5967 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5968 ac_prog_cc_stdc=c99 ;;
5969 esac
5970 fi
5971 fi
5972 if test x$ac_prog_cc_stdc = xno
5973 then :
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5975 printf %s "checking for $CC option to enable C89 features... " >&6; }
5976 if test ${ac_cv_prog_cc_c89+y}
5977 then :
5978 printf %s "(cached) " >&6
5979 else case e in #(
5980 e) ac_cv_prog_cc_c89=no
5981 ac_save_CC=$CC
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5984 $ac_c_conftest_c89_program
5985 _ACEOF
5986 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5987 do
5988 CC="$ac_save_CC $ac_arg"
5989 if ac_fn_c_try_compile "$LINENO"
5990 then :
5991 ac_cv_prog_cc_c89=$ac_arg
5992 fi
5993 rm -f core conftest.err conftest.$ac_objext conftest.beam
5994 test "x$ac_cv_prog_cc_c89" != "xno" && break
5995 done
5996 rm -f conftest.$ac_ext
5997 CC=$ac_save_CC ;;
5998 esac
5999 fi
6000
6001 if test "x$ac_cv_prog_cc_c89" = xno
6002 then :
6003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6004 printf "%s\n" "unsupported" >&6; }
6005 else case e in #(
6006 e) if test "x$ac_cv_prog_cc_c89" = x
6007 then :
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6009 printf "%s\n" "none needed" >&6; }
6010 else case e in #(
6011 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6012 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6013 CC="$CC $ac_cv_prog_cc_c89" ;;
6014 esac
6015 fi
6016 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6017 ac_prog_cc_stdc=c89 ;;
6018 esac
6019 fi
6020 fi
6021
6022 ac_ext=c
6023 ac_cpp='$CPP $CPPFLAGS'
6024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6027
6028
6029 ac_ext=c
6030 ac_cpp='$CPP $CPPFLAGS'
6031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6035 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6036 if test ${am_cv_prog_cc_c_o+y}
6037 then :
6038 printf %s "(cached) " >&6
6039 else case e in #(
6040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6042
6043 int
6044 main (void)
6045 {
6046
6047 ;
6048 return 0;
6049 }
6050 _ACEOF
6051 # Make sure it works both with $CC and with simple cc.
6052 # Following AC_PROG_CC_C_O, we do the test twice because some
6053 # compilers refuse to overwrite an existing .o file with -o,
6054 # though they will create one.
6055 am_cv_prog_cc_c_o=yes
6056 for am_i in 1 2; do
6057 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6058 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } \
6062 && test -f conftest2.$ac_objext; then
6063 : OK
6064 else
6065 am_cv_prog_cc_c_o=no
6066 break
6067 fi
6068 done
6069 rm -f core conftest*
6070 unset am_i ;;
6071 esac
6072 fi
6073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6074 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6075 if test "$am_cv_prog_cc_c_o" != yes; then
6076 # Losing compiler, so override with the script.
6077 # FIXME: It is wrong to rewrite CC.
6078 # But if we don't then we get into trouble of one sort or another.
6079 # A longer-term fix would be to have automake use am__CC in this case,
6080 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6081 CC="$am_aux_dir/compile $CC"
6082 fi
6083 ac_ext=c
6084 ac_cpp='$CPP $CPPFLAGS'
6085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6088
6089
6090
6091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
6092 printf %s "checking whether the compiler is clang... " >&6; }
6093 if test ${gl_cv_compiler_clang+y}
6094 then :
6095 printf %s "(cached) " >&6
6096 else case e in #(
6097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6099
6100 #ifdef __clang__
6101 barfbarf
6102 #endif
6103
6104 int
6105 main (void)
6106 {
6107
6108 ;
6109 return 0;
6110 }
6111
6112 _ACEOF
6113 if ac_fn_c_try_compile "$LINENO"
6114 then :
6115 gl_cv_compiler_clang=no
6116 else case e in #(
6117 e) gl_cv_compiler_clang=yes ;;
6118 esac
6119 fi
6120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6121 ;;
6122 esac
6123 fi
6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
6125 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
6126
6127
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
6129 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
6130 if test ${gl_cv_compiler_check_decl_option+y}
6131 then :
6132 printf %s "(cached) " >&6
6133 else case e in #(
6134 e) if test $gl_cv_compiler_clang = yes; then
6135 saved_ac_compile="$ac_compile"
6136 ac_compile="$ac_compile -Werror=implicit-function-declaration"
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6139
6140 int
6141 main (void)
6142 {
6143
6144 ;
6145 return 0;
6146 }
6147 _ACEOF
6148 if ac_fn_c_try_compile "$LINENO"
6149 then :
6150 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
6151 else case e in #(
6152 e) gl_cv_compiler_check_decl_option=none ;;
6153 esac
6154 fi
6155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6156 ac_compile="$saved_ac_compile"
6157 else
6158 gl_cv_compiler_check_decl_option=none
6159 fi
6160 ;;
6161 esac
6162 fi
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
6164 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
6165 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
6166 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
6167 else
6168 ac_compile_for_check_decl="$ac_compile"
6169 fi
6170
6171
6172 depcc="$CC" am_compiler_list=
6173
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6175 printf %s "checking dependency style of $depcc... " >&6; }
6176 if test ${am_cv_CC_dependencies_compiler_type+y}
6177 then :
6178 printf %s "(cached) " >&6
6179 else case e in #(
6180 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6181 # We make a subdir and do the tests there. Otherwise we can end up
6182 # making bogus files that we don't know about and never remove. For
6183 # instance it was reported that on HP-UX the gcc test will end up
6184 # making a dummy file named 'D' -- because '-MD' means "put the output
6185 # in D".
6186 rm -rf conftest.dir
6187 mkdir conftest.dir
6188 # Copy depcomp to subdir because otherwise we won't find it if we're
6189 # using a relative directory.
6190 cp "$am_depcomp" conftest.dir
6191 cd conftest.dir
6192 # We will build objects and dependencies in a subdirectory because
6193 # it helps to detect inapplicable dependency modes. For instance
6194 # both Tru64's cc and ICC support -MD to output dependencies as a
6195 # side effect of compilation, but ICC will put the dependencies in
6196 # the current directory while Tru64 will put them in the object
6197 # directory.
6198 mkdir sub
6199
6200 am_cv_CC_dependencies_compiler_type=none
6201 if test "$am_compiler_list" = ""; then
6202 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6203 fi
6204 am__universal=false
6205 case " $depcc " in #(
6206 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6207 esac
6208
6209 for depmode in $am_compiler_list; do
6210 # Setup a source with many dependencies, because some compilers
6211 # like to wrap large dependency lists on column 80 (with \), and
6212 # we should not choose a depcomp mode which is confused by this.
6213 #
6214 # We need to recreate these files for each test, as the compiler may
6215 # overwrite some of them when testing with obscure command lines.
6216 # This happens at least with the AIX C compiler.
6217 : > sub/conftest.c
6218 for i in 1 2 3 4 5 6; do
6219 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6220 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6221 # Solaris 10 /bin/sh.
6222 echo '/* dummy */' > sub/conftst$i.h
6223 done
6224 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6225
6226 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6227 # mode. It turns out that the SunPro C++ compiler does not properly
6228 # handle '-M -o', and we need to detect this. Also, some Intel
6229 # versions had trouble with output in subdirs.
6230 am__obj=sub/conftest.${OBJEXT-o}
6231 am__minus_obj="-o $am__obj"
6232 case $depmode in
6233 gcc)
6234 # This depmode causes a compiler race in universal mode.
6235 test "$am__universal" = false || continue
6236 ;;
6237 nosideeffect)
6238 # After this tag, mechanisms are not by side-effect, so they'll
6239 # only be used when explicitly requested.
6240 if test "x$enable_dependency_tracking" = xyes; then
6241 continue
6242 else
6243 break
6244 fi
6245 ;;
6246 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6247 # This compiler won't grok '-c -o', but also, the minuso test has
6248 # not run yet. These depmodes are late enough in the game, and
6249 # so weak that their functioning should not be impacted.
6250 am__obj=conftest.${OBJEXT-o}
6251 am__minus_obj=
6252 ;;
6253 none) break ;;
6254 esac
6255 if depmode=$depmode \
6256 source=sub/conftest.c object=$am__obj \
6257 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6258 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6259 >/dev/null 2>conftest.err &&
6260 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6261 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6262 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6263 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6264 # icc doesn't choke on unknown options, it will just issue warnings
6265 # or remarks (even with -Werror). So we grep stderr for any message
6266 # that says an option was ignored or not supported.
6267 # When given -MP, icc 7.0 and 7.1 complain thusly:
6268 # icc: Command line warning: ignoring option '-M'; no argument required
6269 # The diagnosis changed in icc 8.0:
6270 # icc: Command line remark: option '-MP' not supported
6271 if (grep 'ignoring option' conftest.err ||
6272 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6273 am_cv_CC_dependencies_compiler_type=$depmode
6274 break
6275 fi
6276 fi
6277 done
6278
6279 cd ..
6280 rm -rf conftest.dir
6281 else
6282 am_cv_CC_dependencies_compiler_type=none
6283 fi
6284 ;;
6285 esac
6286 fi
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6288 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6289 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6290
6291 if
6292 test "x$enable_dependency_tracking" != xno \
6293 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6294 am__fastdepCC_TRUE=
6295 am__fastdepCC_FALSE='#'
6296 else
6297 am__fastdepCC_TRUE='#'
6298 am__fastdepCC_FALSE=
6299 fi
6300
6301
6302
6303 ac_header= ac_cache=
6304 for ac_item in $ac_header_c_list
6305 do
6306 if test $ac_cache; then
6307 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6308 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6309 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6310 fi
6311 ac_header= ac_cache=
6312 elif test $ac_header; then
6313 ac_cache=$ac_item
6314 else
6315 ac_header=$ac_item
6316 fi
6317 done
6318
6319
6320
6321
6322
6323
6324
6325
6326 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6327 then :
6328
6329 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6330
6331 fi
6332
6333
6334
6335
6336
6337
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6339 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6340 if test ${ac_cv_safe_to_define___extensions__+y}
6341 then :
6342 printf %s "(cached) " >&6
6343 else case e in #(
6344 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6346
6347 # define __EXTENSIONS__ 1
6348 $ac_includes_default
6349 int
6350 main (void)
6351 {
6352
6353 ;
6354 return 0;
6355 }
6356 _ACEOF
6357 if ac_fn_c_try_compile "$LINENO"
6358 then :
6359 ac_cv_safe_to_define___extensions__=yes
6360 else case e in #(
6361 e) ac_cv_safe_to_define___extensions__=no ;;
6362 esac
6363 fi
6364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6365 esac
6366 fi
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6368 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6369
6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6371 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6372 if test ${ac_cv_should_define__xopen_source+y}
6373 then :
6374 printf %s "(cached) " >&6
6375 else case e in #(
6376 e) ac_cv_should_define__xopen_source=no
6377 if test $ac_cv_header_wchar_h = yes
6378 then :
6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380 /* end confdefs.h. */
6381
6382 #include <wchar.h>
6383 mbstate_t x;
6384 int
6385 main (void)
6386 {
6387
6388 ;
6389 return 0;
6390 }
6391 _ACEOF
6392 if ac_fn_c_try_compile "$LINENO"
6393 then :
6394
6395 else case e in #(
6396 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6398
6399 #define _XOPEN_SOURCE 500
6400 #include <wchar.h>
6401 mbstate_t x;
6402 int
6403 main (void)
6404 {
6405
6406 ;
6407 return 0;
6408 }
6409 _ACEOF
6410 if ac_fn_c_try_compile "$LINENO"
6411 then :
6412 ac_cv_should_define__xopen_source=yes
6413 fi
6414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6415 esac
6416 fi
6417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6418 fi ;;
6419 esac
6420 fi
6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6422 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6423
6424 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
6425
6426 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6427
6428 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6429
6430 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6431
6432 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6433
6434 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
6435
6436 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6437
6438 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6439
6440 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6441
6442 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6443
6444 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
6445
6446 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6447
6448 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6449
6450 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6451
6452 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6453
6454 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
6455
6456 if test $ac_cv_header_minix_config_h = yes
6457 then :
6458 MINIX=yes
6459 printf "%s\n" "#define _MINIX 1" >>confdefs.h
6460
6461 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
6462
6463 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
6464
6465 else case e in #(
6466 e) MINIX= ;;
6467 esac
6468 fi
6469 if test $ac_cv_safe_to_define___extensions__ = yes
6470 then :
6471 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
6472
6473 fi
6474 if test $ac_cv_should_define__xopen_source = yes
6475 then :
6476 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6477
6478 fi
6479
6480
6481
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if tar --sort=name works" >&5
6483 printf %s "checking if tar --sort=name works... " >&6; }
6484 rm -rf conftest.dir
6485 mkdir conftest.dir
6486 echo GrepMe > conftest.dir/file
6487 { echo "$as_me:$LINENO: ${TAR-tar} chof - conftest.dir --sort=name >conftest.tar" >&5
6488 (${TAR-tar} chof - conftest.dir --sort=name >conftest.tar) >&5 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }
6492 if test -s conftest.tar; then
6493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6494 printf "%s\n" "yes" >&6; }
6495 am__tar="$am__tar --sort=name"
6496 else
6497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 printf "%s\n" "no" >&6; }
6499 fi
6500 rm -rf conftest.dir
6501
6502
6503 ac_config_headers="$ac_config_headers config.h"
6504
6505
6506
6507 # Make sure we can run config.sub.
6508 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6509 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6510
6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6512 printf %s "checking build system type... " >&6; }
6513 if test ${ac_cv_build+y}
6514 then :
6515 printf %s "(cached) " >&6
6516 else case e in #(
6517 e) ac_build_alias=$build_alias
6518 test "x$ac_build_alias" = x &&
6519 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6520 test "x$ac_build_alias" = x &&
6521 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6522 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6523 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6524 ;;
6525 esac
6526 fi
6527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6528 printf "%s\n" "$ac_cv_build" >&6; }
6529 case $ac_cv_build in
6530 *-*-*) ;;
6531 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6532 esac
6533 build=$ac_cv_build
6534 ac_save_IFS=$IFS; IFS='-'
6535 set x $ac_cv_build
6536 shift
6537 build_cpu=$1
6538 build_vendor=$2
6539 shift; shift
6540 # Remember, the first character of IFS is used to create $*,
6541 # except with old shells:
6542 build_os=$*
6543 IFS=$ac_save_IFS
6544 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6545
6546
6547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6548 printf %s "checking host system type... " >&6; }
6549 if test ${ac_cv_host+y}
6550 then :
6551 printf %s "(cached) " >&6
6552 else case e in #(
6553 e) if test "x$host_alias" = x; then
6554 ac_cv_host=$ac_cv_build
6555 else
6556 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6557 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6558 fi
6559 ;;
6560 esac
6561 fi
6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6563 printf "%s\n" "$ac_cv_host" >&6; }
6564 case $ac_cv_host in
6565 *-*-*) ;;
6566 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6567 esac
6568 host=$ac_cv_host
6569 ac_save_IFS=$IFS; IFS='-'
6570 set x $ac_cv_host
6571 shift
6572 host_cpu=$1
6573 host_vendor=$2
6574 shift; shift
6575 # Remember, the first character of IFS is used to create $*,
6576 # except with old shells:
6577 host_os=$*
6578 IFS=$ac_save_IFS
6579 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6580
6581
6582
6583 # Check $PATH for the following programs and append suitable options.
6584 ac_ext=c
6585 ac_cpp='$CPP $CPPFLAGS'
6586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6589 if test -n "$ac_tool_prefix"; then
6590 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6591 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593 printf %s "checking for $ac_word... " >&6; }
6594 if test ${ac_cv_prog_CC+y}
6595 then :
6596 printf %s "(cached) " >&6
6597 else case e in #(
6598 e) if test -n "$CC"; then
6599 ac_cv_prog_CC="$CC" # Let the user override the test.
6600 else
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 for as_dir in $PATH
6603 do
6604 IFS=$as_save_IFS
6605 case $as_dir in #(((
6606 '') as_dir=./ ;;
6607 */) ;;
6608 *) as_dir=$as_dir/ ;;
6609 esac
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6612 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6614 break 2
6615 fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620 fi ;;
6621 esac
6622 fi
6623 CC=$ac_cv_prog_CC
6624 if test -n "$CC"; then
6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6626 printf "%s\n" "$CC" >&6; }
6627 else
6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 printf "%s\n" "no" >&6; }
6630 fi
6631
6632
6633 fi
6634 if test -z "$ac_cv_prog_CC"; then
6635 ac_ct_CC=$CC
6636 # Extract the first word of "gcc", so it can be a program name with args.
6637 set dummy gcc; ac_word=$2
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 printf %s "checking for $ac_word... " >&6; }
6640 if test ${ac_cv_prog_ac_ct_CC+y}
6641 then :
6642 printf %s "(cached) " >&6
6643 else case e in #(
6644 e) if test -n "$ac_ct_CC"; then
6645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650 IFS=$as_save_IFS
6651 case $as_dir in #(((
6652 '') as_dir=./ ;;
6653 */) ;;
6654 *) as_dir=$as_dir/ ;;
6655 esac
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6658 ac_cv_prog_ac_ct_CC="gcc"
6659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6660 break 2
6661 fi
6662 done
6663 done
6664 IFS=$as_save_IFS
6665
6666 fi ;;
6667 esac
6668 fi
6669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6670 if test -n "$ac_ct_CC"; then
6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6672 printf "%s\n" "$ac_ct_CC" >&6; }
6673 else
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 printf "%s\n" "no" >&6; }
6676 fi
6677
6678 if test "x$ac_ct_CC" = x; then
6679 CC=""
6680 else
6681 case $cross_compiling:$ac_tool_warned in
6682 yes:)
6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6684 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6685 ac_tool_warned=yes ;;
6686 esac
6687 CC=$ac_ct_CC
6688 fi
6689 else
6690 CC="$ac_cv_prog_CC"
6691 fi
6692
6693 if test -z "$CC"; then
6694 if test -n "$ac_tool_prefix"; then
6695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6696 set dummy ${ac_tool_prefix}cc; ac_word=$2
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 printf %s "checking for $ac_word... " >&6; }
6699 if test ${ac_cv_prog_CC+y}
6700 then :
6701 printf %s "(cached) " >&6
6702 else case e in #(
6703 e) if test -n "$CC"; then
6704 ac_cv_prog_CC="$CC" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709 IFS=$as_save_IFS
6710 case $as_dir in #(((
6711 '') as_dir=./ ;;
6712 */) ;;
6713 *) as_dir=$as_dir/ ;;
6714 esac
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6717 ac_cv_prog_CC="${ac_tool_prefix}cc"
6718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725 fi ;;
6726 esac
6727 fi
6728 CC=$ac_cv_prog_CC
6729 if test -n "$CC"; then
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6731 printf "%s\n" "$CC" >&6; }
6732 else
6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 printf "%s\n" "no" >&6; }
6735 fi
6736
6737
6738 fi
6739 fi
6740 if test -z "$CC"; then
6741 # Extract the first word of "cc", so it can be a program name with args.
6742 set dummy cc; ac_word=$2
6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744 printf %s "checking for $ac_word... " >&6; }
6745 if test ${ac_cv_prog_CC+y}
6746 then :
6747 printf %s "(cached) " >&6
6748 else case e in #(
6749 e) if test -n "$CC"; then
6750 ac_cv_prog_CC="$CC" # Let the user override the test.
6751 else
6752 ac_prog_rejected=no
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 for as_dir in $PATH
6755 do
6756 IFS=$as_save_IFS
6757 case $as_dir in #(((
6758 '') as_dir=./ ;;
6759 */) ;;
6760 *) as_dir=$as_dir/ ;;
6761 esac
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6764 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6765 ac_prog_rejected=yes
6766 continue
6767 fi
6768 ac_cv_prog_CC="cc"
6769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772 done
6773 done
6774 IFS=$as_save_IFS
6775
6776 if test $ac_prog_rejected = yes; then
6777 # We found a bogon in the path, so make sure we never use it.
6778 set dummy $ac_cv_prog_CC
6779 shift
6780 if test $# != 0; then
6781 # We chose a different compiler from the bogus one.
6782 # However, it has the same basename, so the bogon will be chosen
6783 # first if we set CC to just the basename; use the full file name.
6784 shift
6785 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
6786 fi
6787 fi
6788 fi ;;
6789 esac
6790 fi
6791 CC=$ac_cv_prog_CC
6792 if test -n "$CC"; then
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6794 printf "%s\n" "$CC" >&6; }
6795 else
6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 printf "%s\n" "no" >&6; }
6798 fi
6799
6800
6801 fi
6802 if test -z "$CC"; then
6803 if test -n "$ac_tool_prefix"; then
6804 for ac_prog in cl.exe
6805 do
6806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 printf %s "checking for $ac_word... " >&6; }
6810 if test ${ac_cv_prog_CC+y}
6811 then :
6812 printf %s "(cached) " >&6
6813 else case e in #(
6814 e) if test -n "$CC"; then
6815 ac_cv_prog_CC="$CC" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820 IFS=$as_save_IFS
6821 case $as_dir in #(((
6822 '') as_dir=./ ;;
6823 */) ;;
6824 *) as_dir=$as_dir/ ;;
6825 esac
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6828 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6835
6836 fi ;;
6837 esac
6838 fi
6839 CC=$ac_cv_prog_CC
6840 if test -n "$CC"; then
6841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6842 printf "%s\n" "$CC" >&6; }
6843 else
6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 printf "%s\n" "no" >&6; }
6846 fi
6847
6848
6849 test -n "$CC" && break
6850 done
6851 fi
6852 if test -z "$CC"; then
6853 ac_ct_CC=$CC
6854 for ac_prog in cl.exe
6855 do
6856 # Extract the first word of "$ac_prog", so it can be a program name with args.
6857 set dummy $ac_prog; ac_word=$2
6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 printf %s "checking for $ac_word... " >&6; }
6860 if test ${ac_cv_prog_ac_ct_CC+y}
6861 then :
6862 printf %s "(cached) " >&6
6863 else case e in #(
6864 e) if test -n "$ac_ct_CC"; then
6865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870 IFS=$as_save_IFS
6871 case $as_dir in #(((
6872 '') as_dir=./ ;;
6873 */) ;;
6874 *) as_dir=$as_dir/ ;;
6875 esac
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_ac_ct_CC="$ac_prog"
6879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886 fi ;;
6887 esac
6888 fi
6889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6890 if test -n "$ac_ct_CC"; then
6891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6892 printf "%s\n" "$ac_ct_CC" >&6; }
6893 else
6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 printf "%s\n" "no" >&6; }
6896 fi
6897
6898
6899 test -n "$ac_ct_CC" && break
6900 done
6901
6902 if test "x$ac_ct_CC" = x; then
6903 CC=""
6904 else
6905 case $cross_compiling:$ac_tool_warned in
6906 yes:)
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6908 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6909 ac_tool_warned=yes ;;
6910 esac
6911 CC=$ac_ct_CC
6912 fi
6913 fi
6914
6915 fi
6916 if test -z "$CC"; then
6917 if test -n "$ac_tool_prefix"; then
6918 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
6919 set dummy ${ac_tool_prefix}clang; ac_word=$2
6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 printf %s "checking for $ac_word... " >&6; }
6922 if test ${ac_cv_prog_CC+y}
6923 then :
6924 printf %s "(cached) " >&6
6925 else case e in #(
6926 e) if test -n "$CC"; then
6927 ac_cv_prog_CC="$CC" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6931 do
6932 IFS=$as_save_IFS
6933 case $as_dir in #(((
6934 '') as_dir=./ ;;
6935 */) ;;
6936 *) as_dir=$as_dir/ ;;
6937 esac
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_CC="${ac_tool_prefix}clang"
6941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6942 break 2
6943 fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948 fi ;;
6949 esac
6950 fi
6951 CC=$ac_cv_prog_CC
6952 if test -n "$CC"; then
6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6954 printf "%s\n" "$CC" >&6; }
6955 else
6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 printf "%s\n" "no" >&6; }
6958 fi
6959
6960
6961 fi
6962 if test -z "$ac_cv_prog_CC"; then
6963 ac_ct_CC=$CC
6964 # Extract the first word of "clang", so it can be a program name with args.
6965 set dummy clang; ac_word=$2
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 printf %s "checking for $ac_word... " >&6; }
6968 if test ${ac_cv_prog_ac_ct_CC+y}
6969 then :
6970 printf %s "(cached) " >&6
6971 else case e in #(
6972 e) if test -n "$ac_ct_CC"; then
6973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6974 else
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978 IFS=$as_save_IFS
6979 case $as_dir in #(((
6980 '') as_dir=./ ;;
6981 */) ;;
6982 *) as_dir=$as_dir/ ;;
6983 esac
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6986 ac_cv_prog_ac_ct_CC="clang"
6987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6988 break 2
6989 fi
6990 done
6991 done
6992 IFS=$as_save_IFS
6993
6994 fi ;;
6995 esac
6996 fi
6997 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6998 if test -n "$ac_ct_CC"; then
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7000 printf "%s\n" "$ac_ct_CC" >&6; }
7001 else
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7003 printf "%s\n" "no" >&6; }
7004 fi
7005
7006 if test "x$ac_ct_CC" = x; then
7007 CC=""
7008 else
7009 case $cross_compiling:$ac_tool_warned in
7010 yes:)
7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7012 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7013 ac_tool_warned=yes ;;
7014 esac
7015 CC=$ac_ct_CC
7016 fi
7017 else
7018 CC="$ac_cv_prog_CC"
7019 fi
7020
7021 fi
7022
7023
7024 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7025 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7026 as_fn_error $? "no acceptable C compiler found in \$PATH
7027 See 'config.log' for more details" "$LINENO" 5; }
7028
7029 # Provide some information about the compiler.
7030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7031 set X $ac_compile
7032 ac_compiler=$2
7033 for ac_option in --version -v -V -qversion -version; do
7034 { { ac_try="$ac_compiler $ac_option >&5"
7035 case "(($ac_try" in
7036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037 *) ac_try_echo=$ac_try;;
7038 esac
7039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7040 printf "%s\n" "$ac_try_echo"; } >&5
7041 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7042 ac_status=$?
7043 if test -s conftest.err; then
7044 sed '10a\
7045 ... rest of stderr output deleted ...
7046 10q' conftest.err >conftest.er1
7047 cat conftest.er1 >&5
7048 fi
7049 rm -f conftest.er1 conftest.err
7050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7051 test $ac_status = 0; }
7052 done
7053
7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
7055 printf %s "checking whether the compiler supports GNU C... " >&6; }
7056 if test ${ac_cv_c_compiler_gnu+y}
7057 then :
7058 printf %s "(cached) " >&6
7059 else case e in #(
7060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7062
7063 int
7064 main (void)
7065 {
7066 #ifndef __GNUC__
7067 choke me
7068 #endif
7069
7070 ;
7071 return 0;
7072 }
7073 _ACEOF
7074 if ac_fn_c_try_compile "$LINENO"
7075 then :
7076 ac_compiler_gnu=yes
7077 else case e in #(
7078 e) ac_compiler_gnu=no ;;
7079 esac
7080 fi
7081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7082 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7083 ;;
7084 esac
7085 fi
7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7087 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
7088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7089
7090 if test $ac_compiler_gnu = yes; then
7091 GCC=yes
7092 else
7093 GCC=
7094 fi
7095 ac_test_CFLAGS=${CFLAGS+y}
7096 ac_save_CFLAGS=$CFLAGS
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7098 printf %s "checking whether $CC accepts -g... " >&6; }
7099 if test ${ac_cv_prog_cc_g+y}
7100 then :
7101 printf %s "(cached) " >&6
7102 else case e in #(
7103 e) ac_save_c_werror_flag=$ac_c_werror_flag
7104 ac_c_werror_flag=yes
7105 ac_cv_prog_cc_g=no
7106 CFLAGS="-g"
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7109
7110 int
7111 main (void)
7112 {
7113
7114 ;
7115 return 0;
7116 }
7117 _ACEOF
7118 if ac_fn_c_try_compile "$LINENO"
7119 then :
7120 ac_cv_prog_cc_g=yes
7121 else case e in #(
7122 e) CFLAGS=""
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7125
7126 int
7127 main (void)
7128 {
7129
7130 ;
7131 return 0;
7132 }
7133 _ACEOF
7134 if ac_fn_c_try_compile "$LINENO"
7135 then :
7136
7137 else case e in #(
7138 e) ac_c_werror_flag=$ac_save_c_werror_flag
7139 CFLAGS="-g"
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7142
7143 int
7144 main (void)
7145 {
7146
7147 ;
7148 return 0;
7149 }
7150 _ACEOF
7151 if ac_fn_c_try_compile "$LINENO"
7152 then :
7153 ac_cv_prog_cc_g=yes
7154 fi
7155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7156 esac
7157 fi
7158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7159 esac
7160 fi
7161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7162 ac_c_werror_flag=$ac_save_c_werror_flag ;;
7163 esac
7164 fi
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7166 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
7167 if test $ac_test_CFLAGS; then
7168 CFLAGS=$ac_save_CFLAGS
7169 elif test $ac_cv_prog_cc_g = yes; then
7170 if test "$GCC" = yes; then
7171 CFLAGS="-g -O2"
7172 else
7173 CFLAGS="-g"
7174 fi
7175 else
7176 if test "$GCC" = yes; then
7177 CFLAGS="-O2"
7178 else
7179 CFLAGS=
7180 fi
7181 fi
7182 ac_prog_cc_stdc=no
7183 if test x$ac_prog_cc_stdc = xno
7184 then :
7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
7186 printf %s "checking for $CC option to enable C11 features... " >&6; }
7187 if test ${ac_cv_prog_cc_c11+y}
7188 then :
7189 printf %s "(cached) " >&6
7190 else case e in #(
7191 e) ac_cv_prog_cc_c11=no
7192 ac_save_CC=$CC
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195 $ac_c_conftest_c11_program
7196 _ACEOF
7197 for ac_arg in '' -std=gnu11
7198 do
7199 CC="$ac_save_CC $ac_arg"
7200 if ac_fn_c_try_compile "$LINENO"
7201 then :
7202 ac_cv_prog_cc_c11=$ac_arg
7203 fi
7204 rm -f core conftest.err conftest.$ac_objext conftest.beam
7205 test "x$ac_cv_prog_cc_c11" != "xno" && break
7206 done
7207 rm -f conftest.$ac_ext
7208 CC=$ac_save_CC ;;
7209 esac
7210 fi
7211
7212 if test "x$ac_cv_prog_cc_c11" = xno
7213 then :
7214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7215 printf "%s\n" "unsupported" >&6; }
7216 else case e in #(
7217 e) if test "x$ac_cv_prog_cc_c11" = x
7218 then :
7219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7220 printf "%s\n" "none needed" >&6; }
7221 else case e in #(
7222 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
7223 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
7224 CC="$CC $ac_cv_prog_cc_c11" ;;
7225 esac
7226 fi
7227 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
7228 ac_prog_cc_stdc=c11 ;;
7229 esac
7230 fi
7231 fi
7232 if test x$ac_prog_cc_stdc = xno
7233 then :
7234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
7235 printf %s "checking for $CC option to enable C99 features... " >&6; }
7236 if test ${ac_cv_prog_cc_c99+y}
7237 then :
7238 printf %s "(cached) " >&6
7239 else case e in #(
7240 e) ac_cv_prog_cc_c99=no
7241 ac_save_CC=$CC
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7244 $ac_c_conftest_c99_program
7245 _ACEOF
7246 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
7247 do
7248 CC="$ac_save_CC $ac_arg"
7249 if ac_fn_c_try_compile "$LINENO"
7250 then :
7251 ac_cv_prog_cc_c99=$ac_arg
7252 fi
7253 rm -f core conftest.err conftest.$ac_objext conftest.beam
7254 test "x$ac_cv_prog_cc_c99" != "xno" && break
7255 done
7256 rm -f conftest.$ac_ext
7257 CC=$ac_save_CC ;;
7258 esac
7259 fi
7260
7261 if test "x$ac_cv_prog_cc_c99" = xno
7262 then :
7263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7264 printf "%s\n" "unsupported" >&6; }
7265 else case e in #(
7266 e) if test "x$ac_cv_prog_cc_c99" = x
7267 then :
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7269 printf "%s\n" "none needed" >&6; }
7270 else case e in #(
7271 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7272 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
7273 CC="$CC $ac_cv_prog_cc_c99" ;;
7274 esac
7275 fi
7276 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7277 ac_prog_cc_stdc=c99 ;;
7278 esac
7279 fi
7280 fi
7281 if test x$ac_prog_cc_stdc = xno
7282 then :
7283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
7284 printf %s "checking for $CC option to enable C89 features... " >&6; }
7285 if test ${ac_cv_prog_cc_c89+y}
7286 then :
7287 printf %s "(cached) " >&6
7288 else case e in #(
7289 e) ac_cv_prog_cc_c89=no
7290 ac_save_CC=$CC
7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7293 $ac_c_conftest_c89_program
7294 _ACEOF
7295 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7296 do
7297 CC="$ac_save_CC $ac_arg"
7298 if ac_fn_c_try_compile "$LINENO"
7299 then :
7300 ac_cv_prog_cc_c89=$ac_arg
7301 fi
7302 rm -f core conftest.err conftest.$ac_objext conftest.beam
7303 test "x$ac_cv_prog_cc_c89" != "xno" && break
7304 done
7305 rm -f conftest.$ac_ext
7306 CC=$ac_save_CC ;;
7307 esac
7308 fi
7309
7310 if test "x$ac_cv_prog_cc_c89" = xno
7311 then :
7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7313 printf "%s\n" "unsupported" >&6; }
7314 else case e in #(
7315 e) if test "x$ac_cv_prog_cc_c89" = x
7316 then :
7317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7318 printf "%s\n" "none needed" >&6; }
7319 else case e in #(
7320 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7321 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
7322 CC="$CC $ac_cv_prog_cc_c89" ;;
7323 esac
7324 fi
7325 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7326 ac_prog_cc_stdc=c89 ;;
7327 esac
7328 fi
7329 fi
7330
7331 ac_ext=c
7332 ac_cpp='$CPP $CPPFLAGS'
7333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7336
7337
7338 ac_ext=c
7339 ac_cpp='$CPP $CPPFLAGS'
7340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7344 printf %s "checking whether $CC understands -c and -o together... " >&6; }
7345 if test ${am_cv_prog_cc_c_o+y}
7346 then :
7347 printf %s "(cached) " >&6
7348 else case e in #(
7349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7351
7352 int
7353 main (void)
7354 {
7355
7356 ;
7357 return 0;
7358 }
7359 _ACEOF
7360 # Make sure it works both with $CC and with simple cc.
7361 # Following AC_PROG_CC_C_O, we do the test twice because some
7362 # compilers refuse to overwrite an existing .o file with -o,
7363 # though they will create one.
7364 am_cv_prog_cc_c_o=yes
7365 for am_i in 1 2; do
7366 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7367 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } \
7371 && test -f conftest2.$ac_objext; then
7372 : OK
7373 else
7374 am_cv_prog_cc_c_o=no
7375 break
7376 fi
7377 done
7378 rm -f core conftest*
7379 unset am_i ;;
7380 esac
7381 fi
7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7383 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
7384 if test "$am_cv_prog_cc_c_o" != yes; then
7385 # Losing compiler, so override with the script.
7386 # FIXME: It is wrong to rewrite CC.
7387 # But if we don't then we get into trouble of one sort or another.
7388 # A longer-term fix would be to have automake use am__CC in this case,
7389 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7390 CC="$am_aux_dir/compile $CC"
7391 fi
7392 ac_ext=c
7393 ac_cpp='$CPP $CPPFLAGS'
7394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7397
7398
7399
7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7401 printf %s "checking whether the compiler is clang... " >&6; }
7402 if test ${gl_cv_compiler_clang+y}
7403 then :
7404 printf %s "(cached) " >&6
7405 else case e in #(
7406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7408
7409 #ifdef __clang__
7410 barfbarf
7411 #endif
7412
7413 int
7414 main (void)
7415 {
7416
7417 ;
7418 return 0;
7419 }
7420
7421 _ACEOF
7422 if ac_fn_c_try_compile "$LINENO"
7423 then :
7424 gl_cv_compiler_clang=no
7425 else case e in #(
7426 e) gl_cv_compiler_clang=yes ;;
7427 esac
7428 fi
7429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7430 ;;
7431 esac
7432 fi
7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
7434 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
7435
7436
7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
7438 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
7439 if test ${gl_cv_compiler_check_decl_option+y}
7440 then :
7441 printf %s "(cached) " >&6
7442 else case e in #(
7443 e) if test $gl_cv_compiler_clang = yes; then
7444 saved_ac_compile="$ac_compile"
7445 ac_compile="$ac_compile -Werror=implicit-function-declaration"
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7448
7449 int
7450 main (void)
7451 {
7452
7453 ;
7454 return 0;
7455 }
7456 _ACEOF
7457 if ac_fn_c_try_compile "$LINENO"
7458 then :
7459 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
7460 else case e in #(
7461 e) gl_cv_compiler_check_decl_option=none ;;
7462 esac
7463 fi
7464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7465 ac_compile="$saved_ac_compile"
7466 else
7467 gl_cv_compiler_check_decl_option=none
7468 fi
7469 ;;
7470 esac
7471 fi
7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
7473 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
7474 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
7475 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
7476 else
7477 ac_compile_for_check_decl="$ac_compile"
7478 fi
7479
7480
7481 depcc="$CC" am_compiler_list=
7482
7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7484 printf %s "checking dependency style of $depcc... " >&6; }
7485 if test ${am_cv_CC_dependencies_compiler_type+y}
7486 then :
7487 printf %s "(cached) " >&6
7488 else case e in #(
7489 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7490 # We make a subdir and do the tests there. Otherwise we can end up
7491 # making bogus files that we don't know about and never remove. For
7492 # instance it was reported that on HP-UX the gcc test will end up
7493 # making a dummy file named 'D' -- because '-MD' means "put the output
7494 # in D".
7495 rm -rf conftest.dir
7496 mkdir conftest.dir
7497 # Copy depcomp to subdir because otherwise we won't find it if we're
7498 # using a relative directory.
7499 cp "$am_depcomp" conftest.dir
7500 cd conftest.dir
7501 # We will build objects and dependencies in a subdirectory because
7502 # it helps to detect inapplicable dependency modes. For instance
7503 # both Tru64's cc and ICC support -MD to output dependencies as a
7504 # side effect of compilation, but ICC will put the dependencies in
7505 # the current directory while Tru64 will put them in the object
7506 # directory.
7507 mkdir sub
7508
7509 am_cv_CC_dependencies_compiler_type=none
7510 if test "$am_compiler_list" = ""; then
7511 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7512 fi
7513 am__universal=false
7514 case " $depcc " in #(
7515 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7516 esac
7517
7518 for depmode in $am_compiler_list; do
7519 # Setup a source with many dependencies, because some compilers
7520 # like to wrap large dependency lists on column 80 (with \), and
7521 # we should not choose a depcomp mode which is confused by this.
7522 #
7523 # We need to recreate these files for each test, as the compiler may
7524 # overwrite some of them when testing with obscure command lines.
7525 # This happens at least with the AIX C compiler.
7526 : > sub/conftest.c
7527 for i in 1 2 3 4 5 6; do
7528 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7529 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7530 # Solaris 10 /bin/sh.
7531 echo '/* dummy */' > sub/conftst$i.h
7532 done
7533 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7534
7535 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7536 # mode. It turns out that the SunPro C++ compiler does not properly
7537 # handle '-M -o', and we need to detect this. Also, some Intel
7538 # versions had trouble with output in subdirs.
7539 am__obj=sub/conftest.${OBJEXT-o}
7540 am__minus_obj="-o $am__obj"
7541 case $depmode in
7542 gcc)
7543 # This depmode causes a compiler race in universal mode.
7544 test "$am__universal" = false || continue
7545 ;;
7546 nosideeffect)
7547 # After this tag, mechanisms are not by side-effect, so they'll
7548 # only be used when explicitly requested.
7549 if test "x$enable_dependency_tracking" = xyes; then
7550 continue
7551 else
7552 break
7553 fi
7554 ;;
7555 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7556 # This compiler won't grok '-c -o', but also, the minuso test has
7557 # not run yet. These depmodes are late enough in the game, and
7558 # so weak that their functioning should not be impacted.
7559 am__obj=conftest.${OBJEXT-o}
7560 am__minus_obj=
7561 ;;
7562 none) break ;;
7563 esac
7564 if depmode=$depmode \
7565 source=sub/conftest.c object=$am__obj \
7566 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7567 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7568 >/dev/null 2>conftest.err &&
7569 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7570 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7571 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7572 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7573 # icc doesn't choke on unknown options, it will just issue warnings
7574 # or remarks (even with -Werror). So we grep stderr for any message
7575 # that says an option was ignored or not supported.
7576 # When given -MP, icc 7.0 and 7.1 complain thusly:
7577 # icc: Command line warning: ignoring option '-M'; no argument required
7578 # The diagnosis changed in icc 8.0:
7579 # icc: Command line remark: option '-MP' not supported
7580 if (grep 'ignoring option' conftest.err ||
7581 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7582 am_cv_CC_dependencies_compiler_type=$depmode
7583 break
7584 fi
7585 fi
7586 done
7587
7588 cd ..
7589 rm -rf conftest.dir
7590 else
7591 am_cv_CC_dependencies_compiler_type=none
7592 fi
7593 ;;
7594 esac
7595 fi
7596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7597 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
7598 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7599
7600 if
7601 test "x$enable_dependency_tracking" != xno \
7602 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7603 am__fastdepCC_TRUE=
7604 am__fastdepCC_FALSE='#'
7605 else
7606 am__fastdepCC_TRUE='#'
7607 am__fastdepCC_FALSE=
7608 fi
7609
7610
7611
7612
7613
7614
7615 case "$host_os" in
7616 openbsd*)
7617
7618 printf "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h
7619
7620 ;;
7621 esac
7622
7623
7624
7625 ac_ext=c
7626 ac_cpp='$CPP $CPPFLAGS'
7627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7631 printf %s "checking how to run the C preprocessor... " >&6; }
7632 # On Suns, sometimes $CPP names a directory.
7633 if test -n "$CPP" && test -d "$CPP"; then
7634 CPP=
7635 fi
7636 if test -z "$CPP"; then
7637 if test ${ac_cv_prog_CPP+y}
7638 then :
7639 printf %s "(cached) " >&6
7640 else case e in #(
7641 e) # Double quotes because $CC needs to be expanded
7642 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
7643 do
7644 ac_preproc_ok=false
7645 for ac_c_preproc_warn_flag in '' yes
7646 do
7647 # Use a header file that comes with gcc, so configuring glibc
7648 # with a fresh cross-compiler works.
7649 # On the NeXT, cc -E runs the code through the compiler's parser,
7650 # not just through cpp. "Syntax error" is here to catch this case.
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7653 #include <limits.h>
7654 Syntax error
7655 _ACEOF
7656 if ac_fn_c_try_cpp "$LINENO"
7657 then :
7658
7659 else case e in #(
7660 e) # Broken: fails on valid input.
7661 continue ;;
7662 esac
7663 fi
7664 rm -f conftest.err conftest.i conftest.$ac_ext
7665
7666 # OK, works on sane cases. Now check whether nonexistent headers
7667 # can be detected and how.
7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7670 #include <ac_nonexistent.h>
7671 _ACEOF
7672 if ac_fn_c_try_cpp "$LINENO"
7673 then :
7674 # Broken: success on invalid input.
7675 continue
7676 else case e in #(
7677 e) # Passes both tests.
7678 ac_preproc_ok=:
7679 break ;;
7680 esac
7681 fi
7682 rm -f conftest.err conftest.i conftest.$ac_ext
7683
7684 done
7685 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7686 rm -f conftest.i conftest.err conftest.$ac_ext
7687 if $ac_preproc_ok
7688 then :
7689 break
7690 fi
7691
7692 done
7693 ac_cv_prog_CPP=$CPP
7694 ;;
7695 esac
7696 fi
7697 CPP=$ac_cv_prog_CPP
7698 else
7699 ac_cv_prog_CPP=$CPP
7700 fi
7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7702 printf "%s\n" "$CPP" >&6; }
7703 ac_preproc_ok=false
7704 for ac_c_preproc_warn_flag in '' yes
7705 do
7706 # Use a header file that comes with gcc, so configuring glibc
7707 # with a fresh cross-compiler works.
7708 # On the NeXT, cc -E runs the code through the compiler's parser,
7709 # not just through cpp. "Syntax error" is here to catch this case.
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7712 #include <limits.h>
7713 Syntax error
7714 _ACEOF
7715 if ac_fn_c_try_cpp "$LINENO"
7716 then :
7717
7718 else case e in #(
7719 e) # Broken: fails on valid input.
7720 continue ;;
7721 esac
7722 fi
7723 rm -f conftest.err conftest.i conftest.$ac_ext
7724
7725 # OK, works on sane cases. Now check whether nonexistent headers
7726 # can be detected and how.
7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h. */
7729 #include <ac_nonexistent.h>
7730 _ACEOF
7731 if ac_fn_c_try_cpp "$LINENO"
7732 then :
7733 # Broken: success on invalid input.
7734 continue
7735 else case e in #(
7736 e) # Passes both tests.
7737 ac_preproc_ok=:
7738 break ;;
7739 esac
7740 fi
7741 rm -f conftest.err conftest.i conftest.$ac_ext
7742
7743 done
7744 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7745 rm -f conftest.i conftest.err conftest.$ac_ext
7746 if $ac_preproc_ok
7747 then :
7748
7749 else case e in #(
7750 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7751 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7752 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7753 See 'config.log' for more details" "$LINENO" 5; } ;;
7754 esac
7755 fi
7756
7757 ac_ext=c
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762
7763
7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
7765 printf %s "checking for egrep -e... " >&6; }
7766 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
7767 then :
7768 printf %s "(cached) " >&6
7769 else case e in #(
7770 e) if test -z "$EGREP_TRADITIONAL"; then
7771 ac_path_EGREP_TRADITIONAL_found=false
7772 # Loop through the user's path and test for each of PROGNAME-LIST
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7775 do
7776 IFS=$as_save_IFS
7777 case $as_dir in #(((
7778 '') as_dir=./ ;;
7779 */) ;;
7780 *) as_dir=$as_dir/ ;;
7781 esac
7782 for ac_prog in grep ggrep
7783 do
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
7786 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
7787 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
7788 # Check for GNU $ac_path_EGREP_TRADITIONAL
7789 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
7790 *GNU*)
7791 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
7792 #(
7793 *)
7794 ac_count=0
7795 printf %s 0123456789 >"conftest.in"
7796 while :
7797 do
7798 cat "conftest.in" "conftest.in" >"conftest.tmp"
7799 mv "conftest.tmp" "conftest.in"
7800 cp "conftest.in" "conftest.nl"
7801 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
7802 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7804 as_fn_arith $ac_count + 1 && ac_count=$as_val
7805 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
7806 # Best one so far, save it but keep looking for a better one
7807 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
7808 ac_path_EGREP_TRADITIONAL_max=$ac_count
7809 fi
7810 # 10*(2^10) chars as input seems more than enough
7811 test $ac_count -gt 10 && break
7812 done
7813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7814 esac
7815
7816 $ac_path_EGREP_TRADITIONAL_found && break 3
7817 done
7818 done
7819 done
7820 IFS=$as_save_IFS
7821 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
7822 :
7823 fi
7824 else
7825 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
7826 fi
7827
7828 if test "$ac_cv_path_EGREP_TRADITIONAL"
7829 then :
7830 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
7831 else case e in #(
7832 e) if test -z "$EGREP_TRADITIONAL"; then
7833 ac_path_EGREP_TRADITIONAL_found=false
7834 # Loop through the user's path and test for each of PROGNAME-LIST
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7837 do
7838 IFS=$as_save_IFS
7839 case $as_dir in #(((
7840 '') as_dir=./ ;;
7841 */) ;;
7842 *) as_dir=$as_dir/ ;;
7843 esac
7844 for ac_prog in egrep
7845 do
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
7848 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
7849 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
7850 # Check for GNU $ac_path_EGREP_TRADITIONAL
7851 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
7852 *GNU*)
7853 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
7854 #(
7855 *)
7856 ac_count=0
7857 printf %s 0123456789 >"conftest.in"
7858 while :
7859 do
7860 cat "conftest.in" "conftest.in" >"conftest.tmp"
7861 mv "conftest.tmp" "conftest.in"
7862 cp "conftest.in" "conftest.nl"
7863 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
7864 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7866 as_fn_arith $ac_count + 1 && ac_count=$as_val
7867 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
7868 # Best one so far, save it but keep looking for a better one
7869 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
7870 ac_path_EGREP_TRADITIONAL_max=$ac_count
7871 fi
7872 # 10*(2^10) chars as input seems more than enough
7873 test $ac_count -gt 10 && break
7874 done
7875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7876 esac
7877
7878 $ac_path_EGREP_TRADITIONAL_found && break 3
7879 done
7880 done
7881 done
7882 IFS=$as_save_IFS
7883 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
7884 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7885 fi
7886 else
7887 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
7888 fi
7889 ;;
7890 esac
7891 fi ;;
7892 esac
7893 fi
7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
7895 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
7896 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
7897
7898
7899
7900
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
7902 printf %s "checking for Minix Amsterdam compiler... " >&6; }
7903 if test ${gl_cv_c_amsterdam_compiler+y}
7904 then :
7905 printf %s "(cached) " >&6
7906 else case e in #(
7907 e)
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7910
7911 #ifdef __ACK__
7912 Amsterdam
7913 #endif
7914
7915 _ACEOF
7916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7917 $EGREP_TRADITIONAL "Amsterdam" >/dev/null 2>&1
7918 then :
7919 gl_cv_c_amsterdam_compiler=yes
7920 else case e in #(
7921 e) gl_cv_c_amsterdam_compiler=no ;;
7922 esac
7923 fi
7924 rm -rf conftest*
7925
7926 ;;
7927 esac
7928 fi
7929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
7930 printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; }
7931
7932 if test $gl_cv_c_amsterdam_compiler = yes; then
7933 if test -z "$AR"; then
7934 AR='cc -c.a'
7935 fi
7936 if test -z "$ARFLAGS"; then
7937 ARFLAGS='-o'
7938 fi
7939 else
7940
7941 if test -n "$ac_tool_prefix"; then
7942 for ac_prog in ar lib "link -lib"
7943 do
7944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947 printf %s "checking for $ac_word... " >&6; }
7948 if test ${ac_cv_prog_AR+y}
7949 then :
7950 printf %s "(cached) " >&6
7951 else case e in #(
7952 e) if test -n "$AR"; then
7953 ac_cv_prog_AR="$AR" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958 IFS=$as_save_IFS
7959 case $as_dir in #(((
7960 '') as_dir=./ ;;
7961 */) ;;
7962 *) as_dir=$as_dir/ ;;
7963 esac
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7966 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7968 break 2
7969 fi
7970 done
7971 done
7972 IFS=$as_save_IFS
7973
7974 fi ;;
7975 esac
7976 fi
7977 AR=$ac_cv_prog_AR
7978 if test -n "$AR"; then
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7980 printf "%s\n" "$AR" >&6; }
7981 else
7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 printf "%s\n" "no" >&6; }
7984 fi
7985
7986
7987 test -n "$AR" && break
7988 done
7989 fi
7990 if test -z "$AR"; then
7991 ac_ct_AR=$AR
7992 for ac_prog in ar lib "link -lib"
7993 do
7994 # Extract the first word of "$ac_prog", so it can be a program name with args.
7995 set dummy $ac_prog; ac_word=$2
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 printf %s "checking for $ac_word... " >&6; }
7998 if test ${ac_cv_prog_ac_ct_AR+y}
7999 then :
8000 printf %s "(cached) " >&6
8001 else case e in #(
8002 e) if test -n "$ac_ct_AR"; then
8003 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8007 do
8008 IFS=$as_save_IFS
8009 case $as_dir in #(((
8010 '') as_dir=./ ;;
8011 */) ;;
8012 *) as_dir=$as_dir/ ;;
8013 esac
8014 for ac_exec_ext in '' $ac_executable_extensions; do
8015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8016 ac_cv_prog_ac_ct_AR="$ac_prog"
8017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8018 break 2
8019 fi
8020 done
8021 done
8022 IFS=$as_save_IFS
8023
8024 fi ;;
8025 esac
8026 fi
8027 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8028 if test -n "$ac_ct_AR"; then
8029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8030 printf "%s\n" "$ac_ct_AR" >&6; }
8031 else
8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033 printf "%s\n" "no" >&6; }
8034 fi
8035
8036
8037 test -n "$ac_ct_AR" && break
8038 done
8039
8040 if test "x$ac_ct_AR" = x; then
8041 AR="false"
8042 else
8043 case $cross_compiling:$ac_tool_warned in
8044 yes:)
8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8046 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8047 ac_tool_warned=yes ;;
8048 esac
8049 AR=$ac_ct_AR
8050 fi
8051 fi
8052
8053 : ${AR=ar}
8054
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8056 printf %s "checking the archiver ($AR) interface... " >&6; }
8057 if test ${am_cv_ar_interface+y}
8058 then :
8059 printf %s "(cached) " >&6
8060 else case e in #(
8061 e) ac_ext=c
8062 ac_cpp='$CPP $CPPFLAGS'
8063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8066
8067 am_cv_ar_interface=ar
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8070 int some_variable = 0;
8071 _ACEOF
8072 if ac_fn_c_try_compile "$LINENO"
8073 then :
8074 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8076 (eval $am_ar_try) 2>&5
8077 ac_status=$?
8078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8079 test $ac_status = 0; }
8080 if test "$ac_status" -eq 0; then
8081 am_cv_ar_interface=ar
8082 else
8083 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8085 (eval $am_ar_try) 2>&5
8086 ac_status=$?
8087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8088 test $ac_status = 0; }
8089 if test "$ac_status" -eq 0; then
8090 am_cv_ar_interface=lib
8091 else
8092 am_cv_ar_interface=unknown
8093 fi
8094 fi
8095 rm -f conftest.lib libconftest.a
8096
8097 fi
8098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8099 ac_ext=c
8100 ac_cpp='$CPP $CPPFLAGS'
8101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8104 ;;
8105 esac
8106 fi
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8108 printf "%s\n" "$am_cv_ar_interface" >&6; }
8109
8110 case $am_cv_ar_interface in
8111 ar)
8112 ;;
8113 lib)
8114 # Microsoft lib, so override with the ar-lib wrapper script.
8115 # FIXME: It is wrong to rewrite AR.
8116 # But if we don't then we get into trouble of one sort or another.
8117 # A longer-term fix would be to have automake use am__AR in this case,
8118 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8119 # similar.
8120 AR="$am_aux_dir/ar-lib $AR"
8121 ;;
8122 unknown)
8123 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8124 ;;
8125 esac
8126
8127 fi
8128
8129 if test -n "$ac_tool_prefix"; then
8130 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8131 set dummy ${ac_tool_prefix}ar; ac_word=$2
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 printf %s "checking for $ac_word... " >&6; }
8134 if test ${ac_cv_prog_AR+y}
8135 then :
8136 printf %s "(cached) " >&6
8137 else case e in #(
8138 e) if test -n "$AR"; then
8139 ac_cv_prog_AR="$AR" # Let the user override the test.
8140 else
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8143 do
8144 IFS=$as_save_IFS
8145 case $as_dir in #(((
8146 '') as_dir=./ ;;
8147 */) ;;
8148 *) as_dir=$as_dir/ ;;
8149 esac
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8152 ac_cv_prog_AR="${ac_tool_prefix}ar"
8153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8154 break 2
8155 fi
8156 done
8157 done
8158 IFS=$as_save_IFS
8159
8160 fi ;;
8161 esac
8162 fi
8163 AR=$ac_cv_prog_AR
8164 if test -n "$AR"; then
8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8166 printf "%s\n" "$AR" >&6; }
8167 else
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169 printf "%s\n" "no" >&6; }
8170 fi
8171
8172
8173 fi
8174 if test -z "$ac_cv_prog_AR"; then
8175 ac_ct_AR=$AR
8176 # Extract the first word of "ar", so it can be a program name with args.
8177 set dummy ar; ac_word=$2
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179 printf %s "checking for $ac_word... " >&6; }
8180 if test ${ac_cv_prog_ac_ct_AR+y}
8181 then :
8182 printf %s "(cached) " >&6
8183 else case e in #(
8184 e) if test -n "$ac_ct_AR"; then
8185 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8186 else
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8189 do
8190 IFS=$as_save_IFS
8191 case $as_dir in #(((
8192 '') as_dir=./ ;;
8193 */) ;;
8194 *) as_dir=$as_dir/ ;;
8195 esac
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8198 ac_cv_prog_ac_ct_AR="ar"
8199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8200 break 2
8201 fi
8202 done
8203 done
8204 IFS=$as_save_IFS
8205
8206 fi ;;
8207 esac
8208 fi
8209 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8210 if test -n "$ac_ct_AR"; then
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8212 printf "%s\n" "$ac_ct_AR" >&6; }
8213 else
8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 printf "%s\n" "no" >&6; }
8216 fi
8217
8218 if test "x$ac_ct_AR" = x; then
8219 AR="ar"
8220 else
8221 case $cross_compiling:$ac_tool_warned in
8222 yes:)
8223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8224 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8225 ac_tool_warned=yes ;;
8226 esac
8227 AR=$ac_ct_AR
8228 fi
8229 else
8230 AR="$ac_cv_prog_AR"
8231 fi
8232
8233 if test -z "$ARFLAGS"; then
8234 ARFLAGS='cr'
8235 fi
8236
8237
8238
8239 if test -z "$RANLIB"; then
8240 if test $gl_cv_c_amsterdam_compiler = yes; then
8241 RANLIB=':'
8242 else
8243 if test -n "$ac_tool_prefix"; then
8244 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8245 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 printf %s "checking for $ac_word... " >&6; }
8248 if test ${ac_cv_prog_RANLIB+y}
8249 then :
8250 printf %s "(cached) " >&6
8251 else case e in #(
8252 e) if test -n "$RANLIB"; then
8253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8254 else
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8257 do
8258 IFS=$as_save_IFS
8259 case $as_dir in #(((
8260 '') as_dir=./ ;;
8261 */) ;;
8262 *) as_dir=$as_dir/ ;;
8263 esac
8264 for ac_exec_ext in '' $ac_executable_extensions; do
8265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8266 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8268 break 2
8269 fi
8270 done
8271 done
8272 IFS=$as_save_IFS
8273
8274 fi ;;
8275 esac
8276 fi
8277 RANLIB=$ac_cv_prog_RANLIB
8278 if test -n "$RANLIB"; then
8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8280 printf "%s\n" "$RANLIB" >&6; }
8281 else
8282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 printf "%s\n" "no" >&6; }
8284 fi
8285
8286
8287 fi
8288 if test -z "$ac_cv_prog_RANLIB"; then
8289 ac_ct_RANLIB=$RANLIB
8290 # Extract the first word of "ranlib", so it can be a program name with args.
8291 set dummy ranlib; ac_word=$2
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293 printf %s "checking for $ac_word... " >&6; }
8294 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8295 then :
8296 printf %s "(cached) " >&6
8297 else case e in #(
8298 e) if test -n "$ac_ct_RANLIB"; then
8299 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8300 else
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 for as_dir in $PATH
8303 do
8304 IFS=$as_save_IFS
8305 case $as_dir in #(((
8306 '') as_dir=./ ;;
8307 */) ;;
8308 *) as_dir=$as_dir/ ;;
8309 esac
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8312 ac_cv_prog_ac_ct_RANLIB="ranlib"
8313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8314 break 2
8315 fi
8316 done
8317 done
8318 IFS=$as_save_IFS
8319
8320 fi ;;
8321 esac
8322 fi
8323 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8324 if test -n "$ac_ct_RANLIB"; then
8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8326 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8327 else
8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 printf "%s\n" "no" >&6; }
8330 fi
8331
8332 if test "x$ac_ct_RANLIB" = x; then
8333 RANLIB=":"
8334 else
8335 case $cross_compiling:$ac_tool_warned in
8336 yes:)
8337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8338 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8339 ac_tool_warned=yes ;;
8340 esac
8341 RANLIB=$ac_ct_RANLIB
8342 fi
8343 else
8344 RANLIB="$ac_cv_prog_RANLIB"
8345 fi
8346
8347 fi
8348 fi
8349
8350
8351 # Check whether --enable-largefile was given.
8352 if test ${enable_largefile+y}
8353 then :
8354 enableval=$enable_largefile;
8355 fi
8356 if test "$enable_largefile,$enable_year2038" != no,no
8357 then :
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to support large files" >&5
8359 printf %s "checking for $CC option to support large files... " >&6; }
8360 if test ${ac_cv_sys_largefile_opts+y}
8361 then :
8362 printf %s "(cached) " >&6
8363 else case e in #(
8364 e) ac_save_CPPFLAGS=$CPPFLAGS
8365 ac_opt_found=no
8366 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
8367 if test x"$ac_opt" != x"none needed"
8368 then :
8369 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
8370 fi
8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372 /* end confdefs.h. */
8373 #include <sys/types.h>
8374 #ifndef FTYPE
8375 # define FTYPE off_t
8376 #endif
8377 /* Check that FTYPE can represent 2**63 - 1 correctly.
8378 We can't simply define LARGE_FTYPE to be 9223372036854775807,
8379 since some C++ compilers masquerading as C compilers
8380 incorrectly reject 9223372036854775807. */
8381 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
8382 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
8383 && LARGE_FTYPE % 2147483647 == 1)
8384 ? 1 : -1];
8385 int
8386 main (void)
8387 {
8388
8389 ;
8390 return 0;
8391 }
8392 _ACEOF
8393 if ac_fn_c_try_compile "$LINENO"
8394 then :
8395 if test x"$ac_opt" = x"none needed"
8396 then :
8397 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
8398 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
8399 if ac_fn_c_try_compile "$LINENO"
8400 then :
8401
8402 else case e in #(
8403 e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
8404 if ac_fn_c_try_compile "$LINENO"
8405 then :
8406 ac_opt='-D_FILE_OFFSET_BITS=64'
8407 fi
8408 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
8409 esac
8410 fi
8411 rm -f core conftest.err conftest.$ac_objext conftest.beam
8412 fi
8413 ac_cv_sys_largefile_opts=$ac_opt
8414 ac_opt_found=yes
8415 fi
8416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8417 test $ac_opt_found = no || break
8418 done
8419 CPPFLAGS=$ac_save_CPPFLAGS
8420
8421
8422 if test $ac_opt_found != yes; then
8423 case $host_os in #(
8424 mingw* | windows*) :
8425 ac_cv_sys_largefile_opts="supported through gnulib"
8426 ac_opt_found=yes
8427 ;; #(
8428 *) :
8429 ;;
8430 esac
8431 fi
8432
8433 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
8434 esac
8435 fi
8436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
8437 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
8438
8439 ac_have_largefile=yes
8440 case $ac_cv_sys_largefile_opts in #(
8441 "none needed") :
8442 ;; #(
8443 "supported through gnulib") :
8444 ;; #(
8445 "support not detected") :
8446 ac_have_largefile=no ;; #(
8447 "-D_FILE_OFFSET_BITS=64") :
8448
8449 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
8450 ;; #(
8451 "-D_LARGE_FILES=1") :
8452
8453 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
8454 ;; #(
8455 *) :
8456 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
8457 esac
8458
8459 if test "$enable_year2038" != no
8460 then :
8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to support timestamps after 2038" >&5
8462 printf %s "checking for $CC option to support timestamps after 2038... " >&6; }
8463 if test ${ac_cv_sys_year2038_opts+y}
8464 then :
8465 printf %s "(cached) " >&6
8466 else case e in #(
8467 e) ac_save_CPPFLAGS="$CPPFLAGS"
8468 ac_opt_found=no
8469 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
8470 if test x"$ac_opt" != x"none needed"
8471 then :
8472 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
8473 fi
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476
8477 #include <time.h>
8478 /* Check that time_t can represent 2**32 - 1 correctly. */
8479 #define LARGE_TIME_T \\
8480 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
8481 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
8482 && LARGE_TIME_T % 65537 == 0)
8483 ? 1 : -1];
8484
8485 int
8486 main (void)
8487 {
8488
8489 ;
8490 return 0;
8491 }
8492 _ACEOF
8493 if ac_fn_c_try_compile "$LINENO"
8494 then :
8495 ac_cv_sys_year2038_opts="$ac_opt"
8496 ac_opt_found=yes
8497 fi
8498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8499 test $ac_opt_found = no || break
8500 done
8501 CPPFLAGS="$ac_save_CPPFLAGS"
8502 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
8503 esac
8504 fi
8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
8506 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
8507
8508 ac_have_year2038=yes
8509 case $ac_cv_sys_year2038_opts in #(
8510 "none needed") :
8511 ;; #(
8512 "support not detected") :
8513 ac_have_year2038=no ;; #(
8514 "-D_TIME_BITS=64") :
8515
8516 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
8517 ;; #(
8518 "-D__MINGW_USE_VC2005_COMPAT") :
8519
8520 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
8521 ;; #(
8522 "-U_USE_32_BIT_TIME_T"*) :
8523 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8524 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8525 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
8526 will stop working after mid-January 2038. Remove
8527 _USE_32BIT_TIME_T from the compiler flags.
8528 See 'config.log' for more details" "$LINENO" 5; } ;; #(
8529 *) :
8530 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
8531 esac
8532
8533 fi
8534
8535 fi
8536
8537
8538
8539
8540
8541
8542 # Check whether --enable-threads was given.
8543 if test ${enable_threads+y}
8544 then :
8545 enableval=$enable_threads; gl_use_threads=$enableval
8546 else case e in #(
8547 e) if test -n "$gl_use_threads_default"; then
8548 gl_use_threads="$gl_use_threads_default"
8549 else
8550 case "$host_os" in
8551 osf*) gl_use_threads=no ;;
8552 cygwin*)
8553 case `uname -r` in
8554 1.[0-5].*) gl_use_threads=no ;;
8555 *) gl_use_threads=yes ;;
8556 esac
8557 ;;
8558 mingw* | windows*)
8559 case "$gl_use_winpthreads_default" in
8560 yes) gl_use_threads=posix ;;
8561 no) gl_use_threads=windows ;;
8562 *) gl_use_threads=yes ;;
8563 esac
8564 ;;
8565 *) gl_use_threads=yes ;;
8566 esac
8567 fi
8568 ;;
8569 esac
8570 fi
8571
8572 if test "$gl_use_threads" = yes \
8573 || test "$gl_use_threads" = isoc \
8574 || test "$gl_use_threads" = posix \
8575 || test "$gl_use_threads" = isoc+posix; then
8576 # For using <threads.h> or <pthread.h>:
8577
8578
8579 if test -z "$gl_anythreadlib_early_done"; then
8580 case "$host_os" in
8581 osf*)
8582 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8583 # groks <pthread.h>. cc also understands the flag -pthread, but
8584 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8585 # 2. putting a flag into CPPFLAGS that has an effect on the linker
8586 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
8587 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8588 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
8589 ;;
8590 esac
8591 # Some systems optimize for single-threaded programs by default, and
8592 # need special flags to disable these optimizations. For example, the
8593 # definition of 'errno' in <errno.h>.
8594 case "$host_os" in
8595 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
8596 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
8597 esac
8598 gl_anythreadlib_early_done=done
8599 fi
8600
8601 fi
8602
8603
8604
8605 # Pre-early section.
8606
8607
8608
8609 # Code from module absolute-header:
8610 # Code from module alloca-opt:
8611 # Code from module assert-h:
8612 # Code from module attribute:
8613 # Code from module basename-lgpl:
8614 # Code from module c99:
8615 # Code from module calloc-gnu:
8616 # Code from module calloc-posix:
8617 # Code from module clock-time:
8618 # Code from module cloexec:
8619 # Code from module close:
8620 # Code from module dirname:
8621 # Code from module dirname-lgpl:
8622 # Code from module double-slash-root:
8623 # Code from module dup2:
8624 # Code from module environ:
8625 # Code from module errno:
8626 # Code from module error:
8627 # Code from module error-h:
8628 # Code from module exitfail:
8629 # Code from module extensions:
8630 # Code from module extern-inline:
8631 # Code from module fcntl:
8632 # Code from module fcntl-h:
8633 # Code from module fd-hook:
8634 # Code from module filename:
8635 # Code from module float:
8636 # Code from module free-posix:
8637 # Code from module fstat:
8638 # Code from module full-write:
8639 # Code from module gen-header:
8640 # Code from module getdtablesize:
8641 # Code from module getprogname:
8642 # Code from module getrandom:
8643 # Code from module gettext-h:
8644 # Code from module gitlog-to-changelog:
8645 # Code from module gnupload:
8646 # Code from module ialloc:
8647 # Code from module idx:
8648 # Code from module include_next:
8649 # Code from module intprops:
8650 # Code from module inttypes-incomplete:
8651 # Code from module largefile:
8652
8653 # Code from module lib-ignore:
8654 # Code from module libc-config:
8655 # Code from module limits-h:
8656 # Code from module lock:
8657 # Code from module lstat:
8658 # Code from module malloc-gnu:
8659 # Code from module malloc-posix:
8660 # Code from module malloca:
8661 # Code from module manywarnings:
8662 # Code from module mbszero:
8663 # Code from module memchr:
8664 # Code from module minmax:
8665 # Code from module mkdir:
8666 # Code from module mkdtemp:
8667 # Code from module msvc-inval:
8668 # Code from module msvc-nothrow:
8669 # Code from module multiarch:
8670 # Code from module nullptr:
8671 # Code from module open:
8672 # Code from module pathmax:
8673 # Code from module pthread-h:
8674
8675
8676 if test -z "$gl_anythreadlib_early_done"; then
8677 case "$host_os" in
8678 osf*)
8679 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8680 # groks <pthread.h>. cc also understands the flag -pthread, but
8681 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8682 # 2. putting a flag into CPPFLAGS that has an effect on the linker
8683 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
8684 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8685 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
8686 ;;
8687 esac
8688 # Some systems optimize for single-threaded programs by default, and
8689 # need special flags to disable these optimizations. For example, the
8690 # definition of 'errno' in <errno.h>.
8691 case "$host_os" in
8692 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
8693 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
8694 esac
8695 gl_anythreadlib_early_done=done
8696 fi
8697
8698 # Code from module pthread-once:
8699 # Code from module raise:
8700 # Code from module read:
8701 # Code from module realloc-gnu:
8702 # Code from module realloc-posix:
8703 # Code from module reallocarray:
8704 # Code from module safe-read:
8705 # Code from module safe-write:
8706 # Code from module sched:
8707 # Code from module setenv:
8708 # Code from module sigaction:
8709 # Code from module signal-h:
8710 # Code from module sigprocmask:
8711 # Code from module size_max:
8712 # Code from module snippet/_Noreturn:
8713 # Code from module snippet/arg-nonnull:
8714 # Code from module snippet/c++defs:
8715 # Code from module snippet/warn-on-use:
8716 # Code from module snprintf:
8717 # Code from module ssize_t:
8718 # Code from module stat:
8719 # Code from module stat-time:
8720 # Code from module std-gnu11:
8721 # Code from module stdarg:
8722
8723
8724
8725 # Code from module stdbool:
8726 # Code from module stdckdint:
8727 # Code from module stddef:
8728 # Code from module stdint:
8729 # Code from module stdio:
8730
8731
8732 printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
8733
8734
8735 # Code from module stdlib:
8736 # Code from module strerror:
8737 # Code from module strerror-override:
8738 # Code from module string:
8739 # Code from module strndup:
8740 # Code from module strnlen:
8741 # Code from module strsignal:
8742 # Code from module sys_random:
8743 # Code from module sys_select:
8744 # Code from module sys_stat:
8745 # Code from module sys_time:
8746 # Code from module sys_types:
8747
8748 # Code from module sys_wait:
8749 # Code from module tempname:
8750 # Code from module threadlib:
8751
8752
8753
8754 # Code from module time-h:
8755 # Code from module tls:
8756 # Code from module unistd:
8757 # Code from module unsetenv:
8758 # Code from module vararrays:
8759 # Code from module vasnprintf:
8760 # Code from module vaszprintf:
8761 # Code from module verror:
8762 # Code from module vsnzprintf:
8763 # Code from module waitpid:
8764 # Code from module warnings:
8765 # Code from module wchar:
8766 # Code from module windows-mutex:
8767 # Code from module windows-once:
8768 # Code from module windows-recmutex:
8769 # Code from module windows-rwlock:
8770 # Code from module windows-tls:
8771 # Code from module write:
8772 # Code from module xalloc:
8773 # Code from module xalloc-die:
8774 # Code from module xalloc-oversized:
8775 # Code from module xsize:
8776 # Code from module xstrndup:
8777 # Code from module xvasprintf:
8778
8779 ac_ext=c
8780 ac_cpp='$CPP $CPPFLAGS'
8781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8785 printf %s "checking how to run the C preprocessor... " >&6; }
8786 # On Suns, sometimes $CPP names a directory.
8787 if test -n "$CPP" && test -d "$CPP"; then
8788 CPP=
8789 fi
8790 if test -z "$CPP"; then
8791 if test ${ac_cv_prog_CPP+y}
8792 then :
8793 printf %s "(cached) " >&6
8794 else case e in #(
8795 e) # Double quotes because $CC needs to be expanded
8796 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
8797 do
8798 ac_preproc_ok=false
8799 for ac_c_preproc_warn_flag in '' yes
8800 do
8801 # Use a header file that comes with gcc, so configuring glibc
8802 # with a fresh cross-compiler works.
8803 # On the NeXT, cc -E runs the code through the compiler's parser,
8804 # not just through cpp. "Syntax error" is here to catch this case.
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 #include <limits.h>
8808 Syntax error
8809 _ACEOF
8810 if ac_fn_c_try_cpp "$LINENO"
8811 then :
8812
8813 else case e in #(
8814 e) # Broken: fails on valid input.
8815 continue ;;
8816 esac
8817 fi
8818 rm -f conftest.err conftest.i conftest.$ac_ext
8819
8820 # OK, works on sane cases. Now check whether nonexistent headers
8821 # can be detected and how.
8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823 /* end confdefs.h. */
8824 #include <ac_nonexistent.h>
8825 _ACEOF
8826 if ac_fn_c_try_cpp "$LINENO"
8827 then :
8828 # Broken: success on invalid input.
8829 continue
8830 else case e in #(
8831 e) # Passes both tests.
8832 ac_preproc_ok=:
8833 break ;;
8834 esac
8835 fi
8836 rm -f conftest.err conftest.i conftest.$ac_ext
8837
8838 done
8839 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8840 rm -f conftest.i conftest.err conftest.$ac_ext
8841 if $ac_preproc_ok
8842 then :
8843 break
8844 fi
8845
8846 done
8847 ac_cv_prog_CPP=$CPP
8848 ;;
8849 esac
8850 fi
8851 CPP=$ac_cv_prog_CPP
8852 else
8853 ac_cv_prog_CPP=$CPP
8854 fi
8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8856 printf "%s\n" "$CPP" >&6; }
8857 ac_preproc_ok=false
8858 for ac_c_preproc_warn_flag in '' yes
8859 do
8860 # Use a header file that comes with gcc, so configuring glibc
8861 # with a fresh cross-compiler works.
8862 # On the NeXT, cc -E runs the code through the compiler's parser,
8863 # not just through cpp. "Syntax error" is here to catch this case.
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8866 #include <limits.h>
8867 Syntax error
8868 _ACEOF
8869 if ac_fn_c_try_cpp "$LINENO"
8870 then :
8871
8872 else case e in #(
8873 e) # Broken: fails on valid input.
8874 continue ;;
8875 esac
8876 fi
8877 rm -f conftest.err conftest.i conftest.$ac_ext
8878
8879 # OK, works on sane cases. Now check whether nonexistent headers
8880 # can be detected and how.
8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h. */
8883 #include <ac_nonexistent.h>
8884 _ACEOF
8885 if ac_fn_c_try_cpp "$LINENO"
8886 then :
8887 # Broken: success on invalid input.
8888 continue
8889 else case e in #(
8890 e) # Passes both tests.
8891 ac_preproc_ok=:
8892 break ;;
8893 esac
8894 fi
8895 rm -f conftest.err conftest.i conftest.$ac_ext
8896
8897 done
8898 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8899 rm -f conftest.i conftest.err conftest.$ac_ext
8900 if $ac_preproc_ok
8901 then :
8902
8903 else case e in #(
8904 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8905 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8906 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8907 See 'config.log' for more details" "$LINENO" 5; } ;;
8908 esac
8909 fi
8910
8911 ac_ext=c
8912 ac_cpp='$CPP $CPPFLAGS'
8913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8916
8917 CFLAGS="$CFLAGS -Wall"
8918
8919 # Check whether --enable-gcc-warnings was given.
8920 if test ${enable_gcc_warnings+y}
8921 then :
8922 enableval=$enable_gcc_warnings; case $enableval in
8923 no|yes|expensive) ;;
8924 *) as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
8925 esac
8926 pipeline_gcc_warnings=$enableval
8927 else case e in #(
8928 e) pipeline_gcc_warnings=yes
8929 ;;
8930 esac
8931 fi
8932
8933 if test "$pipeline_gcc_warnings" != no; then
8934 # Enable all reasonable GCC warnings.
8935
8936 ac_ext=c
8937 ac_cpp='$CPP $CPPFLAGS'
8938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8941
8942
8943
8944 if test -n "$GCC"
8945 then :
8946
8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
8948 printf %s "checking whether -Wno-missing-field-initializers is needed... " >&6; }
8949 if test ${gl_cv_cc_nomfi_needed+y}
8950 then :
8951 printf %s "(cached) " >&6
8952 else case e in #(
8953 e) gl_cv_cc_nomfi_needed=no
8954 gl_saved_CFLAGS="$CFLAGS"
8955 CFLAGS="$CFLAGS -Wextra -Werror"
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8958 struct file_data { int desc, name; };
8959 struct cmp { struct file_data file[1]; };
8960 void f (struct cmp *r)
8961 {
8962 typedef struct { int a; int b; } s_t;
8963 s_t s1 = { 0, };
8964 struct cmp cmp = { .file[0].desc = r->file[0].desc + s1.a };
8965 *r = cmp;
8966 }
8967
8968 int
8969 main (void)
8970 {
8971
8972 ;
8973 return 0;
8974 }
8975 _ACEOF
8976 if ac_fn_c_try_compile "$LINENO"
8977 then :
8978
8979 else case e in #(
8980 e) CFLAGS="$CFLAGS -Wno-missing-field-initializers"
8981 if ac_fn_c_try_compile "$LINENO"
8982 then :
8983 gl_cv_cc_nomfi_needed=yes
8984 fi
8985 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
8986 esac
8987 fi
8988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8989 CFLAGS="$gl_saved_CFLAGS"
8990 ;;
8991 esac
8992 fi
8993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
8994 printf "%s\n" "$gl_cv_cc_nomfi_needed" >&6; }
8995
8996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
8997 printf %s "checking whether -Wuninitialized is supported... " >&6; }
8998 if test ${gl_cv_cc_uninitialized_supported+y}
8999 then :
9000 printf %s "(cached) " >&6
9001 else case e in #(
9002 e) gl_saved_CFLAGS="$CFLAGS"
9003 CFLAGS="$CFLAGS -Werror -Wuninitialized"
9004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h. */
9006
9007 int
9008 main (void)
9009 {
9010
9011 ;
9012 return 0;
9013 }
9014 _ACEOF
9015 if ac_fn_c_try_compile "$LINENO"
9016 then :
9017 gl_cv_cc_uninitialized_supported=yes
9018 else case e in #(
9019 e) gl_cv_cc_uninitialized_supported=no ;;
9020 esac
9021 fi
9022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9023 CFLAGS="$gl_saved_CFLAGS"
9024 ;;
9025 esac
9026 fi
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
9028 printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; }
9029
9030 fi
9031
9032 # List all gcc warning categories.
9033 # To compare this list to your installed GCC's, run this Bash command:
9034 #
9035 # comm -3 \
9036 # <((sed -n 's/^ *\(-[^ 0-9][^ ]*\).*/\1/p' manywarnings.m4; \
9037 # awk '/^[^#]/ {print warnings}' ../build-aux/gcc-warning.spec) | sort) \
9038 # <(LC_ALL=C gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort)
9039
9040 warnings=
9041 for gl_manywarn_item in -fanalyzer -fstrict-flex-arrays \
9042 -Wall \
9043 -Warith-conversion \
9044 -Wbad-function-cast \
9045 -Wcast-align=strict \
9046 -Wdate-time \
9047 -Wdisabled-optimization \
9048 -Wdouble-promotion \
9049 -Wduplicated-branches \
9050 -Wduplicated-cond \
9051 -Wextra \
9052 -Wformat-signedness \
9053 -Wflex-array-member-not-at-end \
9054 -Winit-self \
9055 -Winline \
9056 -Winvalid-pch \
9057 -Wlogical-op \
9058 -Wmissing-declarations \
9059 -Wmissing-include-dirs \
9060 -Wmissing-prototypes \
9061 -Wmissing-variable-declarations \
9062 -Wnested-externs \
9063 -Wnull-dereference \
9064 -Wold-style-definition \
9065 -Wopenmp-simd \
9066 -Woverlength-strings \
9067 -Wpacked \
9068 -Wpointer-arith \
9069 -Wshadow \
9070 -Wstack-protector \
9071 -Wstrict-flex-arrays \
9072 -Wstrict-overflow \
9073 -Wstrict-prototypes \
9074 -Wsuggest-attribute=cold \
9075 -Wsuggest-attribute=const \
9076 -Wsuggest-attribute=format \
9077 -Wsuggest-attribute=malloc \
9078 -Wsuggest-attribute=noreturn \
9079 -Wsuggest-attribute=pure \
9080 -Wsuggest-final-methods \
9081 -Wsuggest-final-types \
9082 -Wsync-nand \
9083 -Wsystem-headers \
9084 -Wtrampolines \
9085 -Wuninitialized \
9086 -Wunknown-pragmas \
9087 -Wunsafe-loop-optimizations \
9088 -Wunused-macros \
9089 -Wvariadic-macros \
9090 -Wvector-operation-performance \
9091 -Wvla \
9092 -Wwrite-strings \
9093 \
9094 ; do
9095 as_fn_append warnings " $gl_manywarn_item"
9096 done
9097
9098 # gcc --help=warnings outputs an unusual form for these options; list
9099 # them here so that the above 'comm' command doesn't report a false match.
9100 as_fn_append warnings ' -Warray-bounds=2'
9101 as_fn_append warnings ' -Wattribute-alias=2'
9102 as_fn_append warnings ' -Wbidi-chars=any,ucn'
9103 as_fn_append warnings ' -Wformat-overflow=2'
9104 as_fn_append warnings ' -Wformat=2'
9105 as_fn_append warnings ' -Wformat-truncation=2'
9106 as_fn_append warnings ' -Wimplicit-fallthrough=5'
9107 as_fn_append warnings ' -Wshift-overflow=2'
9108 as_fn_append warnings ' -Wuse-after-free=3'
9109 as_fn_append warnings ' -Wunused-const-variable=2'
9110 as_fn_append warnings ' -Wvla-larger-than=4031'
9111
9112 # These are needed for older GCC versions.
9113 if test -n "$GCC" && gl_gcc_version=`($CC --version) 2>/dev/null`; then
9114 case $gl_gcc_version in
9115 'gcc (GCC) '[0-3].* | \
9116 'gcc (GCC) '4.[0-7].*)
9117 as_fn_append warnings ' -fdiagnostics-show-option'
9118 as_fn_append warnings ' -funit-at-a-time'
9119 ;;
9120 esac
9121 case $gl_gcc_version in
9122 'gcc (GCC) '[0-9].*)
9123 as_fn_append warnings ' -fno-common'
9124 ;;
9125 esac
9126 fi
9127
9128 # Disable specific options as needed.
9129 if test "$gl_cv_cc_nomfi_needed" = yes; then
9130 as_fn_append warnings ' -Wno-missing-field-initializers'
9131 fi
9132
9133 if test "$gl_cv_cc_uninitialized_supported" = no; then
9134 as_fn_append warnings ' -Wno-uninitialized'
9135 fi
9136
9137 # This warning have too many false alarms in GCC 11.2.1.
9138 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101713
9139 as_fn_append warnings ' -Wno-analyzer-malloc-leak'
9140
9141 ac_ext=c
9142 ac_cpp='$CPP $CPPFLAGS'
9143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9146
9147
9148 nw=
9149 nw="$nw -Wsystem-headers"
9150 nw="$nw -Wmissing-field-initializers"
9151 nw="$nw -Winline"
9152 if test "$pipeline_gcc_warnings" != expensive; then
9153 nw="$nw -fanalyzer"
9154 fi
9155
9156 gl_warn_set=
9157 set x $warnings; shift
9158 for gl_warn_item
9159 do
9160 case " $nw " in
9161 *" $gl_warn_item "*)
9162 ;;
9163 *)
9164 as_fn_append gl_warn_set " $gl_warn_item"
9165 ;;
9166 esac
9167 done
9168 warnings=$gl_warn_set
9169
9170 for w in $warnings; do
9171
9172 ac_ext=c
9173 ac_cpp='$CPP $CPPFLAGS'
9174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9177
9178
9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
9180 printf %s "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
9181 if test ${gl_cv_warn_c__Werror__Wunknown_warning_option+y}
9182 then :
9183 printf %s "(cached) " >&6
9184 else case e in #(
9185 e)
9186 gl_saved_compiler_FLAGS="$CFLAGS"
9187 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9190
9191 int
9192 main (void)
9193 {
9194
9195 ;
9196 return 0;
9197 }
9198 _ACEOF
9199 if ac_fn_c_try_link "$LINENO"
9200 then :
9201 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
9202 else case e in #(
9203 e) gl_cv_warn_c__Werror__Wunknown_warning_option=no ;;
9204 esac
9205 fi
9206 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9207 conftest$ac_exeext conftest.$ac_ext
9208 CFLAGS="$gl_saved_compiler_FLAGS"
9209 ;;
9210 esac
9211 fi
9212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
9213 printf "%s\n" "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
9214 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes
9215 then :
9216 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
9217 else case e in #(
9218 e) gl_unknown_warnings_are_errors= ;;
9219 esac
9220 fi
9221
9222 ac_ext=c
9223 ac_cpp='$CPP $CPPFLAGS'
9224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9227
9228
9229
9230
9231 as_gl_Warn=`printf "%s\n" "gl_cv_warn_c_$w" | sed "$as_sed_sh"`
9232 gl_positive="$w"
9233 case $gl_positive in
9234 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
9235 esac
9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
9237 printf %s "checking whether C compiler handles $w... " >&6; }
9238 if eval test \${$as_gl_Warn+y}
9239 then :
9240 printf %s "(cached) " >&6
9241 else case e in #(
9242 e)
9243 gl_saved_compiler_FLAGS="$CFLAGS"
9244 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9247
9248 int
9249 main (void)
9250 {
9251
9252 ;
9253 return 0;
9254 }
9255 _ACEOF
9256 if ac_fn_c_try_link "$LINENO"
9257 then :
9258 eval "$as_gl_Warn=yes"
9259 else case e in #(
9260 e) eval "$as_gl_Warn=no" ;;
9261 esac
9262 fi
9263 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9264 conftest$ac_exeext conftest.$ac_ext
9265 CFLAGS="$gl_saved_compiler_FLAGS"
9266 ;;
9267 esac
9268 fi
9269 eval ac_res=\$$as_gl_Warn
9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9271 printf "%s\n" "$ac_res" >&6; }
9272 if eval test \"x\$"$as_gl_Warn"\" = x"yes"
9273 then :
9274 as_fn_append WARN_CFLAGS " $w"
9275 fi
9276
9277
9278 done
9279
9280
9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
9282 printf %s "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
9283 if test ${gl_cv_warn_c__Wno_missing_field_initializers+y}
9284 then :
9285 printf %s "(cached) " >&6
9286 else case e in #(
9287 e)
9288 gl_saved_compiler_FLAGS="$CFLAGS"
9289 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9292
9293 int
9294 main (void)
9295 {
9296
9297 ;
9298 return 0;
9299 }
9300 _ACEOF
9301 if ac_fn_c_try_link "$LINENO"
9302 then :
9303 gl_cv_warn_c__Wno_missing_field_initializers=yes
9304 else case e in #(
9305 e) gl_cv_warn_c__Wno_missing_field_initializers=no ;;
9306 esac
9307 fi
9308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9309 conftest$ac_exeext conftest.$ac_ext
9310 CFLAGS="$gl_saved_compiler_FLAGS"
9311 ;;
9312 esac
9313 fi
9314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
9315 printf "%s\n" "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
9316 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes
9317 then :
9318 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
9319 fi
9320
9321
9322 fi
9323
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9325 printf %s "checking whether ln -s works... " >&6; }
9326 LN_S=$as_ln_s
9327 if test "$LN_S" = "ln -s"; then
9328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9329 printf "%s\n" "yes" >&6; }
9330 else
9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9332 printf "%s\n" "no, using $LN_S" >&6; }
9333 fi
9334
9335
9336 if test -n "$ac_tool_prefix"; then
9337 for ac_prog in ar lib "link -lib"
9338 do
9339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9342 printf %s "checking for $ac_word... " >&6; }
9343 if test ${ac_cv_prog_AR+y}
9344 then :
9345 printf %s "(cached) " >&6
9346 else case e in #(
9347 e) if test -n "$AR"; then
9348 ac_cv_prog_AR="$AR" # Let the user override the test.
9349 else
9350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351 for as_dir in $PATH
9352 do
9353 IFS=$as_save_IFS
9354 case $as_dir in #(((
9355 '') as_dir=./ ;;
9356 */) ;;
9357 *) as_dir=$as_dir/ ;;
9358 esac
9359 for ac_exec_ext in '' $ac_executable_extensions; do
9360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9361 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9363 break 2
9364 fi
9365 done
9366 done
9367 IFS=$as_save_IFS
9368
9369 fi ;;
9370 esac
9371 fi
9372 AR=$ac_cv_prog_AR
9373 if test -n "$AR"; then
9374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9375 printf "%s\n" "$AR" >&6; }
9376 else
9377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9378 printf "%s\n" "no" >&6; }
9379 fi
9380
9381
9382 test -n "$AR" && break
9383 done
9384 fi
9385 if test -z "$AR"; then
9386 ac_ct_AR=$AR
9387 for ac_prog in ar lib "link -lib"
9388 do
9389 # Extract the first word of "$ac_prog", so it can be a program name with args.
9390 set dummy $ac_prog; ac_word=$2
9391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392 printf %s "checking for $ac_word... " >&6; }
9393 if test ${ac_cv_prog_ac_ct_AR+y}
9394 then :
9395 printf %s "(cached) " >&6
9396 else case e in #(
9397 e) if test -n "$ac_ct_AR"; then
9398 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9399 else
9400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9401 for as_dir in $PATH
9402 do
9403 IFS=$as_save_IFS
9404 case $as_dir in #(((
9405 '') as_dir=./ ;;
9406 */) ;;
9407 *) as_dir=$as_dir/ ;;
9408 esac
9409 for ac_exec_ext in '' $ac_executable_extensions; do
9410 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9411 ac_cv_prog_ac_ct_AR="$ac_prog"
9412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9413 break 2
9414 fi
9415 done
9416 done
9417 IFS=$as_save_IFS
9418
9419 fi ;;
9420 esac
9421 fi
9422 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9423 if test -n "$ac_ct_AR"; then
9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9425 printf "%s\n" "$ac_ct_AR" >&6; }
9426 else
9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428 printf "%s\n" "no" >&6; }
9429 fi
9430
9431
9432 test -n "$ac_ct_AR" && break
9433 done
9434
9435 if test "x$ac_ct_AR" = x; then
9436 AR="false"
9437 else
9438 case $cross_compiling:$ac_tool_warned in
9439 yes:)
9440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9441 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9442 ac_tool_warned=yes ;;
9443 esac
9444 AR=$ac_ct_AR
9445 fi
9446 fi
9447
9448 : ${AR=ar}
9449
9450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9451 printf %s "checking the archiver ($AR) interface... " >&6; }
9452 if test ${am_cv_ar_interface+y}
9453 then :
9454 printf %s "(cached) " >&6
9455 else case e in #(
9456 e) ac_ext=c
9457 ac_cpp='$CPP $CPPFLAGS'
9458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9461
9462 am_cv_ar_interface=ar
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h. */
9465 int some_variable = 0;
9466 _ACEOF
9467 if ac_fn_c_try_compile "$LINENO"
9468 then :
9469 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
9470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9471 (eval $am_ar_try) 2>&5
9472 ac_status=$?
9473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9474 test $ac_status = 0; }
9475 if test "$ac_status" -eq 0; then
9476 am_cv_ar_interface=ar
9477 else
9478 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9480 (eval $am_ar_try) 2>&5
9481 ac_status=$?
9482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9483 test $ac_status = 0; }
9484 if test "$ac_status" -eq 0; then
9485 am_cv_ar_interface=lib
9486 else
9487 am_cv_ar_interface=unknown
9488 fi
9489 fi
9490 rm -f conftest.lib libconftest.a
9491
9492 fi
9493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9494 ac_ext=c
9495 ac_cpp='$CPP $CPPFLAGS'
9496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9499 ;;
9500 esac
9501 fi
9502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9503 printf "%s\n" "$am_cv_ar_interface" >&6; }
9504
9505 case $am_cv_ar_interface in
9506 ar)
9507 ;;
9508 lib)
9509 # Microsoft lib, so override with the ar-lib wrapper script.
9510 # FIXME: It is wrong to rewrite AR.
9511 # But if we don't then we get into trouble of one sort or another.
9512 # A longer-term fix would be to have automake use am__AR in this case,
9513 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9514 # similar.
9515 AR="$am_aux_dir/ar-lib $AR"
9516 ;;
9517 unknown)
9518 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9519 ;;
9520 esac
9521
9522 case `pwd` in
9523 *\ * | *\ *)
9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9525 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9526 esac
9527
9528
9529
9530 macro_version='2.4.7'
9531 macro_revision='2.4.7'
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546 ltmain=$ac_aux_dir/ltmain.sh
9547
9548 # Backslashify metacharacters that are still active within
9549 # double-quoted strings.
9550 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9551
9552 # Same as above, but do not quote variable references.
9553 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9554
9555 # Sed substitution to delay expansion of an escaped shell variable in a
9556 # double_quote_subst'ed string.
9557 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9558
9559 # Sed substitution to delay expansion of an escaped single quote.
9560 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9561
9562 # Sed substitution to avoid accidental globbing in evaled expressions
9563 no_glob_subst='s/\*/\\\*/g'
9564
9565 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9566 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9567 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9568
9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9570 printf %s "checking how to print strings... " >&6; }
9571 # Test print first, because it will be a builtin if present.
9572 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9573 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9574 ECHO='print -r --'
9575 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9576 ECHO='printf %s\n'
9577 else
9578 # Use this function as a fallback that always works.
9579 func_fallback_echo ()
9580 {
9581 eval 'cat <<_LTECHO_EOF
9582 $1
9583 _LTECHO_EOF'
9584 }
9585 ECHO='func_fallback_echo'
9586 fi
9587
9588 # func_echo_all arg...
9589 # Invoke $ECHO with all args, space-separated.
9590 func_echo_all ()
9591 {
9592 $ECHO ""
9593 }
9594
9595 case $ECHO in
9596 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9597 printf "%s\n" "printf" >&6; } ;;
9598 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9599 printf "%s\n" "print -r" >&6; } ;;
9600 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9601 printf "%s\n" "cat" >&6; } ;;
9602 esac
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9618 printf %s "checking for a sed that does not truncate output... " >&6; }
9619 if test ${ac_cv_path_SED+y}
9620 then :
9621 printf %s "(cached) " >&6
9622 else case e in #(
9623 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9624 for ac_i in 1 2 3 4 5 6 7; do
9625 ac_script="$ac_script$as_nl$ac_script"
9626 done
9627 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9628 { ac_script=; unset ac_script;}
9629 if test -z "$SED"; then
9630 ac_path_SED_found=false
9631 # Loop through the user's path and test for each of PROGNAME-LIST
9632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 for as_dir in $PATH
9634 do
9635 IFS=$as_save_IFS
9636 case $as_dir in #(((
9637 '') as_dir=./ ;;
9638 */) ;;
9639 *) as_dir=$as_dir/ ;;
9640 esac
9641 for ac_prog in sed gsed
9642 do
9643 for ac_exec_ext in '' $ac_executable_extensions; do
9644 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
9645 as_fn_executable_p "$ac_path_SED" || continue
9646 # Check for GNU ac_path_SED and select it if it is found.
9647 # Check for GNU $ac_path_SED
9648 case `"$ac_path_SED" --version 2>&1` in #(
9649 *GNU*)
9650 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9651 #(
9652 *)
9653 ac_count=0
9654 printf %s 0123456789 >"conftest.in"
9655 while :
9656 do
9657 cat "conftest.in" "conftest.in" >"conftest.tmp"
9658 mv "conftest.tmp" "conftest.in"
9659 cp "conftest.in" "conftest.nl"
9660 printf "%s\n" '' >> "conftest.nl"
9661 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9663 as_fn_arith $ac_count + 1 && ac_count=$as_val
9664 if test $ac_count -gt ${ac_path_SED_max-0}; then
9665 # Best one so far, save it but keep looking for a better one
9666 ac_cv_path_SED="$ac_path_SED"
9667 ac_path_SED_max=$ac_count
9668 fi
9669 # 10*(2^10) chars as input seems more than enough
9670 test $ac_count -gt 10 && break
9671 done
9672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9673 esac
9674
9675 $ac_path_SED_found && break 3
9676 done
9677 done
9678 done
9679 IFS=$as_save_IFS
9680 if test -z "$ac_cv_path_SED"; then
9681 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9682 fi
9683 else
9684 ac_cv_path_SED=$SED
9685 fi
9686 ;;
9687 esac
9688 fi
9689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9690 printf "%s\n" "$ac_cv_path_SED" >&6; }
9691 SED="$ac_cv_path_SED"
9692 rm -f conftest.sed
9693
9694 test -z "$SED" && SED=sed
9695 Xsed="$SED -e 1s/^X//"
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
9708 printf %s "checking for grep that handles long lines and -e... " >&6; }
9709 if test ${ac_cv_path_GREP+y}
9710 then :
9711 printf %s "(cached) " >&6
9712 else case e in #(
9713 e) if test -z "$GREP"; then
9714 ac_path_GREP_found=false
9715 # Loop through the user's path and test for each of PROGNAME-LIST
9716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9717 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9718 do
9719 IFS=$as_save_IFS
9720 case $as_dir in #(((
9721 '') as_dir=./ ;;
9722 */) ;;
9723 *) as_dir=$as_dir/ ;;
9724 esac
9725 for ac_prog in grep ggrep
9726 do
9727 for ac_exec_ext in '' $ac_executable_extensions; do
9728 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
9729 as_fn_executable_p "$ac_path_GREP" || continue
9730 # Check for GNU ac_path_GREP and select it if it is found.
9731 # Check for GNU $ac_path_GREP
9732 case `"$ac_path_GREP" --version 2>&1` in #(
9733 *GNU*)
9734 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9735 #(
9736 *)
9737 ac_count=0
9738 printf %s 0123456789 >"conftest.in"
9739 while :
9740 do
9741 cat "conftest.in" "conftest.in" >"conftest.tmp"
9742 mv "conftest.tmp" "conftest.in"
9743 cp "conftest.in" "conftest.nl"
9744 printf "%s\n" 'GREP' >> "conftest.nl"
9745 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9746 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9747 as_fn_arith $ac_count + 1 && ac_count=$as_val
9748 if test $ac_count -gt ${ac_path_GREP_max-0}; then
9749 # Best one so far, save it but keep looking for a better one
9750 ac_cv_path_GREP="$ac_path_GREP"
9751 ac_path_GREP_max=$ac_count
9752 fi
9753 # 10*(2^10) chars as input seems more than enough
9754 test $ac_count -gt 10 && break
9755 done
9756 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9757 esac
9758
9759 $ac_path_GREP_found && break 3
9760 done
9761 done
9762 done
9763 IFS=$as_save_IFS
9764 if test -z "$ac_cv_path_GREP"; then
9765 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9766 fi
9767 else
9768 ac_cv_path_GREP=$GREP
9769 fi
9770 ;;
9771 esac
9772 fi
9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
9774 printf "%s\n" "$ac_cv_path_GREP" >&6; }
9775 GREP="$ac_cv_path_GREP"
9776
9777
9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9779 printf %s "checking for egrep... " >&6; }
9780 if test ${ac_cv_path_EGREP+y}
9781 then :
9782 printf %s "(cached) " >&6
9783 else case e in #(
9784 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9785 then ac_cv_path_EGREP="$GREP -E"
9786 else
9787 if test -z "$EGREP"; then
9788 ac_path_EGREP_found=false
9789 # Loop through the user's path and test for each of PROGNAME-LIST
9790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9791 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9792 do
9793 IFS=$as_save_IFS
9794 case $as_dir in #(((
9795 '') as_dir=./ ;;
9796 */) ;;
9797 *) as_dir=$as_dir/ ;;
9798 esac
9799 for ac_prog in egrep
9800 do
9801 for ac_exec_ext in '' $ac_executable_extensions; do
9802 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
9803 as_fn_executable_p "$ac_path_EGREP" || continue
9804 # Check for GNU ac_path_EGREP and select it if it is found.
9805 # Check for GNU $ac_path_EGREP
9806 case `"$ac_path_EGREP" --version 2>&1` in #(
9807 *GNU*)
9808 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9809 #(
9810 *)
9811 ac_count=0
9812 printf %s 0123456789 >"conftest.in"
9813 while :
9814 do
9815 cat "conftest.in" "conftest.in" >"conftest.tmp"
9816 mv "conftest.tmp" "conftest.in"
9817 cp "conftest.in" "conftest.nl"
9818 printf "%s\n" 'EGREP' >> "conftest.nl"
9819 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9821 as_fn_arith $ac_count + 1 && ac_count=$as_val
9822 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9823 # Best one so far, save it but keep looking for a better one
9824 ac_cv_path_EGREP="$ac_path_EGREP"
9825 ac_path_EGREP_max=$ac_count
9826 fi
9827 # 10*(2^10) chars as input seems more than enough
9828 test $ac_count -gt 10 && break
9829 done
9830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9831 esac
9832
9833 $ac_path_EGREP_found && break 3
9834 done
9835 done
9836 done
9837 IFS=$as_save_IFS
9838 if test -z "$ac_cv_path_EGREP"; then
9839 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9840 fi
9841 else
9842 ac_cv_path_EGREP=$EGREP
9843 fi
9844
9845 fi ;;
9846 esac
9847 fi
9848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9849 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
9850 EGREP="$ac_cv_path_EGREP"
9851
9852 EGREP_TRADITIONAL=$EGREP
9853 ac_cv_path_EGREP_TRADITIONAL=$EGREP
9854
9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9856 printf %s "checking for fgrep... " >&6; }
9857 if test ${ac_cv_path_FGREP+y}
9858 then :
9859 printf %s "(cached) " >&6
9860 else case e in #(
9861 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9862 then ac_cv_path_FGREP="$GREP -F"
9863 else
9864 if test -z "$FGREP"; then
9865 ac_path_FGREP_found=false
9866 # Loop through the user's path and test for each of PROGNAME-LIST
9867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9869 do
9870 IFS=$as_save_IFS
9871 case $as_dir in #(((
9872 '') as_dir=./ ;;
9873 */) ;;
9874 *) as_dir=$as_dir/ ;;
9875 esac
9876 for ac_prog in fgrep
9877 do
9878 for ac_exec_ext in '' $ac_executable_extensions; do
9879 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
9880 as_fn_executable_p "$ac_path_FGREP" || continue
9881 # Check for GNU ac_path_FGREP and select it if it is found.
9882 # Check for GNU $ac_path_FGREP
9883 case `"$ac_path_FGREP" --version 2>&1` in #(
9884 *GNU*)
9885 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9886 #(
9887 *)
9888 ac_count=0
9889 printf %s 0123456789 >"conftest.in"
9890 while :
9891 do
9892 cat "conftest.in" "conftest.in" >"conftest.tmp"
9893 mv "conftest.tmp" "conftest.in"
9894 cp "conftest.in" "conftest.nl"
9895 printf "%s\n" 'FGREP' >> "conftest.nl"
9896 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9898 as_fn_arith $ac_count + 1 && ac_count=$as_val
9899 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9900 # Best one so far, save it but keep looking for a better one
9901 ac_cv_path_FGREP="$ac_path_FGREP"
9902 ac_path_FGREP_max=$ac_count
9903 fi
9904 # 10*(2^10) chars as input seems more than enough
9905 test $ac_count -gt 10 && break
9906 done
9907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9908 esac
9909
9910 $ac_path_FGREP_found && break 3
9911 done
9912 done
9913 done
9914 IFS=$as_save_IFS
9915 if test -z "$ac_cv_path_FGREP"; then
9916 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9917 fi
9918 else
9919 ac_cv_path_FGREP=$FGREP
9920 fi
9921
9922 fi ;;
9923 esac
9924 fi
9925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9926 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
9927 FGREP="$ac_cv_path_FGREP"
9928
9929
9930 test -z "$GREP" && GREP=grep
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950 # Check whether --with-gnu-ld was given.
9951 if test ${with_gnu_ld+y}
9952 then :
9953 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9954 else case e in #(
9955 e) with_gnu_ld=no ;;
9956 esac
9957 fi
9958
9959 ac_prog=ld
9960 if test yes = "$GCC"; then
9961 # Check if gcc -print-prog-name=ld gives a path.
9962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9963 printf %s "checking for ld used by $CC... " >&6; }
9964 case $host in
9965 *-*-mingw*)
9966 # gcc leaves a trailing carriage return, which upsets mingw
9967 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9968 *)
9969 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9970 esac
9971 case $ac_prog in
9972 # Accept absolute paths.
9973 [\\/]* | ?:[\\/]*)
9974 re_direlt='/[^/][^/]*/\.\./'
9975 # Canonicalize the pathname of ld
9976 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9977 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9978 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9979 done
9980 test -z "$LD" && LD=$ac_prog
9981 ;;
9982 "")
9983 # If it fails, then pretend we aren't using GCC.
9984 ac_prog=ld
9985 ;;
9986 *)
9987 # If it is relative, then search for the first ld in PATH.
9988 with_gnu_ld=unknown
9989 ;;
9990 esac
9991 elif test yes = "$with_gnu_ld"; then
9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9993 printf %s "checking for GNU ld... " >&6; }
9994 else
9995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9996 printf %s "checking for non-GNU ld... " >&6; }
9997 fi
9998 if test ${lt_cv_path_LD+y}
9999 then :
10000 printf %s "(cached) " >&6
10001 else case e in #(
10002 e) if test -z "$LD"; then
10003 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10004 for ac_dir in $PATH; do
10005 IFS=$lt_save_ifs
10006 test -z "$ac_dir" && ac_dir=.
10007 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10008 lt_cv_path_LD=$ac_dir/$ac_prog
10009 # Check to see if the program is GNU ld. I'd rather use --version,
10010 # but apparently some variants of GNU ld only accept -v.
10011 # Break only if it was the GNU/non-GNU ld that we prefer.
10012 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10013 *GNU* | *'with BFD'*)
10014 test no != "$with_gnu_ld" && break
10015 ;;
10016 *)
10017 test yes != "$with_gnu_ld" && break
10018 ;;
10019 esac
10020 fi
10021 done
10022 IFS=$lt_save_ifs
10023 else
10024 lt_cv_path_LD=$LD # Let the user override the test with a path.
10025 fi ;;
10026 esac
10027 fi
10028
10029 LD=$lt_cv_path_LD
10030 if test -n "$LD"; then
10031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10032 printf "%s\n" "$LD" >&6; }
10033 else
10034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 printf "%s\n" "no" >&6; }
10036 fi
10037 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10039 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
10040 if test ${lt_cv_prog_gnu_ld+y}
10041 then :
10042 printf %s "(cached) " >&6
10043 else case e in #(
10044 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
10045 case `$LD -v 2>&1 </dev/null` in
10046 *GNU* | *'with BFD'*)
10047 lt_cv_prog_gnu_ld=yes
10048 ;;
10049 *)
10050 lt_cv_prog_gnu_ld=no
10051 ;;
10052 esac ;;
10053 esac
10054 fi
10055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10056 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
10057 with_gnu_ld=$lt_cv_prog_gnu_ld
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10068 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10069 if test ${lt_cv_path_NM+y}
10070 then :
10071 printf %s "(cached) " >&6
10072 else case e in #(
10073 e) if test -n "$NM"; then
10074 # Let the user override the test.
10075 lt_cv_path_NM=$NM
10076 else
10077 lt_nm_to_check=${ac_tool_prefix}nm
10078 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10079 lt_nm_to_check="$lt_nm_to_check nm"
10080 fi
10081 for lt_tmp_nm in $lt_nm_to_check; do
10082 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10083 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10084 IFS=$lt_save_ifs
10085 test -z "$ac_dir" && ac_dir=.
10086 tmp_nm=$ac_dir/$lt_tmp_nm
10087 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
10088 # Check to see if the nm accepts a BSD-compat flag.
10089 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
10090 # nm: unknown option "B" ignored
10091 # Tru64's nm complains that /dev/null is an invalid object file
10092 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
10093 case $build_os in
10094 mingw*) lt_bad_file=conftest.nm/nofile ;;
10095 *) lt_bad_file=/dev/null ;;
10096 esac
10097 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
10098 *$lt_bad_file* | *'Invalid file or object type'*)
10099 lt_cv_path_NM="$tmp_nm -B"
10100 break 2
10101 ;;
10102 *)
10103 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
10104 */dev/null*)
10105 lt_cv_path_NM="$tmp_nm -p"
10106 break 2
10107 ;;
10108 *)
10109 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10110 continue # so that we can try to find one that supports BSD flags
10111 ;;
10112 esac
10113 ;;
10114 esac
10115 fi
10116 done
10117 IFS=$lt_save_ifs
10118 done
10119 : ${lt_cv_path_NM=no}
10120 fi ;;
10121 esac
10122 fi
10123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10124 printf "%s\n" "$lt_cv_path_NM" >&6; }
10125 if test no != "$lt_cv_path_NM"; then
10126 NM=$lt_cv_path_NM
10127 else
10128 # Didn't find any BSD compatible name lister, look for dumpbin.
10129 if test -n "$DUMPBIN"; then :
10130 # Let the user override the test.
10131 else
10132 if test -n "$ac_tool_prefix"; then
10133 for ac_prog in dumpbin "link -dump"
10134 do
10135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10138 printf %s "checking for $ac_word... " >&6; }
10139 if test ${ac_cv_prog_DUMPBIN+y}
10140 then :
10141 printf %s "(cached) " >&6
10142 else case e in #(
10143 e) if test -n "$DUMPBIN"; then
10144 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10145 else
10146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147 for as_dir in $PATH
10148 do
10149 IFS=$as_save_IFS
10150 case $as_dir in #(((
10151 '') as_dir=./ ;;
10152 */) ;;
10153 *) as_dir=$as_dir/ ;;
10154 esac
10155 for ac_exec_ext in '' $ac_executable_extensions; do
10156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10157 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10159 break 2
10160 fi
10161 done
10162 done
10163 IFS=$as_save_IFS
10164
10165 fi ;;
10166 esac
10167 fi
10168 DUMPBIN=$ac_cv_prog_DUMPBIN
10169 if test -n "$DUMPBIN"; then
10170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10171 printf "%s\n" "$DUMPBIN" >&6; }
10172 else
10173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174 printf "%s\n" "no" >&6; }
10175 fi
10176
10177
10178 test -n "$DUMPBIN" && break
10179 done
10180 fi
10181 if test -z "$DUMPBIN"; then
10182 ac_ct_DUMPBIN=$DUMPBIN
10183 for ac_prog in dumpbin "link -dump"
10184 do
10185 # Extract the first word of "$ac_prog", so it can be a program name with args.
10186 set dummy $ac_prog; ac_word=$2
10187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10188 printf %s "checking for $ac_word... " >&6; }
10189 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
10190 then :
10191 printf %s "(cached) " >&6
10192 else case e in #(
10193 e) if test -n "$ac_ct_DUMPBIN"; then
10194 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10195 else
10196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197 for as_dir in $PATH
10198 do
10199 IFS=$as_save_IFS
10200 case $as_dir in #(((
10201 '') as_dir=./ ;;
10202 */) ;;
10203 *) as_dir=$as_dir/ ;;
10204 esac
10205 for ac_exec_ext in '' $ac_executable_extensions; do
10206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10207 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10209 break 2
10210 fi
10211 done
10212 done
10213 IFS=$as_save_IFS
10214
10215 fi ;;
10216 esac
10217 fi
10218 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10219 if test -n "$ac_ct_DUMPBIN"; then
10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10221 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
10222 else
10223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10224 printf "%s\n" "no" >&6; }
10225 fi
10226
10227
10228 test -n "$ac_ct_DUMPBIN" && break
10229 done
10230
10231 if test "x$ac_ct_DUMPBIN" = x; then
10232 DUMPBIN=":"
10233 else
10234 case $cross_compiling:$ac_tool_warned in
10235 yes:)
10236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10237 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10238 ac_tool_warned=yes ;;
10239 esac
10240 DUMPBIN=$ac_ct_DUMPBIN
10241 fi
10242 fi
10243
10244 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
10245 *COFF*)
10246 DUMPBIN="$DUMPBIN -symbols -headers"
10247 ;;
10248 *)
10249 DUMPBIN=:
10250 ;;
10251 esac
10252 fi
10253
10254 if test : != "$DUMPBIN"; then
10255 NM=$DUMPBIN
10256 fi
10257 fi
10258 test -z "$NM" && NM=nm
10259
10260
10261
10262
10263
10264
10265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10266 printf %s "checking the name lister ($NM) interface... " >&6; }
10267 if test ${lt_cv_nm_interface+y}
10268 then :
10269 printf %s "(cached) " >&6
10270 else case e in #(
10271 e) lt_cv_nm_interface="BSD nm"
10272 echo "int some_variable = 0;" > conftest.$ac_ext
10273 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
10274 (eval "$ac_compile" 2>conftest.err)
10275 cat conftest.err >&5
10276 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
10277 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10278 cat conftest.err >&5
10279 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
10280 cat conftest.out >&5
10281 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10282 lt_cv_nm_interface="MS dumpbin"
10283 fi
10284 rm -f conftest* ;;
10285 esac
10286 fi
10287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10288 printf "%s\n" "$lt_cv_nm_interface" >&6; }
10289
10290 # find the maximum length of command line arguments
10291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10292 printf %s "checking the maximum length of command line arguments... " >&6; }
10293 if test ${lt_cv_sys_max_cmd_len+y}
10294 then :
10295 printf %s "(cached) " >&6
10296 else case e in #(
10297 e) i=0
10298 teststring=ABCD
10299
10300 case $build_os in
10301 msdosdjgpp*)
10302 # On DJGPP, this test can blow up pretty badly due to problems in libc
10303 # (any single argument exceeding 2000 bytes causes a buffer overrun
10304 # during glob expansion). Even if it were fixed, the result of this
10305 # check would be larger than it should be.
10306 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10307 ;;
10308
10309 gnu*)
10310 # Under GNU Hurd, this test is not required because there is
10311 # no limit to the length of command line arguments.
10312 # Libtool will interpret -1 as no limit whatsoever
10313 lt_cv_sys_max_cmd_len=-1;
10314 ;;
10315
10316 cygwin* | mingw* | cegcc*)
10317 # On Win9x/ME, this test blows up -- it succeeds, but takes
10318 # about 5 minutes as the teststring grows exponentially.
10319 # Worse, since 9x/ME are not pre-emptively multitasking,
10320 # you end up with a "frozen" computer, even though with patience
10321 # the test eventually succeeds (with a max line length of 256k).
10322 # Instead, let's just punt: use the minimum linelength reported by
10323 # all of the supported platforms: 8192 (on NT/2K/XP).
10324 lt_cv_sys_max_cmd_len=8192;
10325 ;;
10326
10327 mint*)
10328 # On MiNT this can take a long time and run out of memory.
10329 lt_cv_sys_max_cmd_len=8192;
10330 ;;
10331
10332 amigaos*)
10333 # On AmigaOS with pdksh, this test takes hours, literally.
10334 # So we just punt and use a minimum line length of 8192.
10335 lt_cv_sys_max_cmd_len=8192;
10336 ;;
10337
10338 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
10339 # This has been around since 386BSD, at least. Likely further.
10340 if test -x /sbin/sysctl; then
10341 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10342 elif test -x /usr/sbin/sysctl; then
10343 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10344 else
10345 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10346 fi
10347 # And add a safety zone
10348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10350 ;;
10351
10352 interix*)
10353 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10354 lt_cv_sys_max_cmd_len=196608
10355 ;;
10356
10357 os2*)
10358 # The test takes a long time on OS/2.
10359 lt_cv_sys_max_cmd_len=8192
10360 ;;
10361
10362 osf*)
10363 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10364 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10365 # nice to cause kernel panics so lets avoid the loop below.
10366 # First set a reasonable default.
10367 lt_cv_sys_max_cmd_len=16384
10368 #
10369 if test -x /sbin/sysconfig; then
10370 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10371 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10372 esac
10373 fi
10374 ;;
10375 sco3.2v5*)
10376 lt_cv_sys_max_cmd_len=102400
10377 ;;
10378 sysv5* | sco5v6* | sysv4.2uw2*)
10379 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10380 if test -n "$kargmax"; then
10381 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
10382 else
10383 lt_cv_sys_max_cmd_len=32768
10384 fi
10385 ;;
10386 *)
10387 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10388 if test -n "$lt_cv_sys_max_cmd_len" && \
10389 test undefined != "$lt_cv_sys_max_cmd_len"; then
10390 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10392 else
10393 # Make teststring a little bigger before we do anything with it.
10394 # a 1K string should be a reasonable start.
10395 for i in 1 2 3 4 5 6 7 8; do
10396 teststring=$teststring$teststring
10397 done
10398 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10399 # If test is not a shell built-in, we'll probably end up computing a
10400 # maximum length that is only half of the actual maximum length, but
10401 # we can't tell.
10402 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
10403 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
10404 test 17 != "$i" # 1/2 MB should be enough
10405 do
10406 i=`expr $i + 1`
10407 teststring=$teststring$teststring
10408 done
10409 # Only check the string length outside the loop.
10410 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10411 teststring=
10412 # Add a significant safety factor because C++ compilers can tack on
10413 # massive amounts of additional arguments before passing them to the
10414 # linker. It appears as though 1/2 is a usable value.
10415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10416 fi
10417 ;;
10418 esac
10419 ;;
10420 esac
10421 fi
10422
10423 if test -n "$lt_cv_sys_max_cmd_len"; then
10424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10425 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
10426 else
10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
10428 printf "%s\n" "none" >&6; }
10429 fi
10430 max_cmd_len=$lt_cv_sys_max_cmd_len
10431
10432
10433
10434
10435
10436
10437 : ${CP="cp -f"}
10438 : ${MV="mv -f"}
10439 : ${RM="rm -f"}
10440
10441 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10442 lt_unset=unset
10443 else
10444 lt_unset=false
10445 fi
10446
10447
10448
10449
10450
10451 # test EBCDIC or ASCII
10452 case `echo X|tr X '\101'` in
10453 A) # ASCII based system
10454 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10455 lt_SP2NL='tr \040 \012'
10456 lt_NL2SP='tr \015\012 \040\040'
10457 ;;
10458 *) # EBCDIC based system
10459 lt_SP2NL='tr \100 \n'
10460 lt_NL2SP='tr \r\n \100\100'
10461 ;;
10462 esac
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10473 printf %s "checking how to convert $build file names to $host format... " >&6; }
10474 if test ${lt_cv_to_host_file_cmd+y}
10475 then :
10476 printf %s "(cached) " >&6
10477 else case e in #(
10478 e) case $host in
10479 *-*-mingw* )
10480 case $build in
10481 *-*-mingw* ) # actually msys
10482 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10483 ;;
10484 *-*-cygwin* )
10485 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10486 ;;
10487 * ) # otherwise, assume *nix
10488 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10489 ;;
10490 esac
10491 ;;
10492 *-*-cygwin* )
10493 case $build in
10494 *-*-mingw* ) # actually msys
10495 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10496 ;;
10497 *-*-cygwin* )
10498 lt_cv_to_host_file_cmd=func_convert_file_noop
10499 ;;
10500 * ) # otherwise, assume *nix
10501 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10502 ;;
10503 esac
10504 ;;
10505 * ) # unhandled hosts (and "normal" native builds)
10506 lt_cv_to_host_file_cmd=func_convert_file_noop
10507 ;;
10508 esac
10509 ;;
10510 esac
10511 fi
10512
10513 to_host_file_cmd=$lt_cv_to_host_file_cmd
10514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10515 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
10516
10517
10518
10519
10520
10521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10522 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
10523 if test ${lt_cv_to_tool_file_cmd+y}
10524 then :
10525 printf %s "(cached) " >&6
10526 else case e in #(
10527 e) #assume ordinary cross tools, or native build.
10528 lt_cv_to_tool_file_cmd=func_convert_file_noop
10529 case $host in
10530 *-*-mingw* )
10531 case $build in
10532 *-*-mingw* ) # actually msys
10533 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10534 ;;
10535 esac
10536 ;;
10537 esac
10538 ;;
10539 esac
10540 fi
10541
10542 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10544 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
10545
10546
10547
10548
10549
10550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10551 printf %s "checking for $LD option to reload object files... " >&6; }
10552 if test ${lt_cv_ld_reload_flag+y}
10553 then :
10554 printf %s "(cached) " >&6
10555 else case e in #(
10556 e) lt_cv_ld_reload_flag='-r' ;;
10557 esac
10558 fi
10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10560 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
10561 reload_flag=$lt_cv_ld_reload_flag
10562 case $reload_flag in
10563 "" | " "*) ;;
10564 *) reload_flag=" $reload_flag" ;;
10565 esac
10566 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10567 case $host_os in
10568 cygwin* | mingw* | pw32* | cegcc*)
10569 if test yes != "$GCC"; then
10570 reload_cmds=false
10571 fi
10572 ;;
10573 darwin*)
10574 if test yes = "$GCC"; then
10575 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
10576 else
10577 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10578 fi
10579 ;;
10580 esac
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590 if test -n "$ac_tool_prefix"; then
10591 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
10592 set dummy ${ac_tool_prefix}file; ac_word=$2
10593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10594 printf %s "checking for $ac_word... " >&6; }
10595 if test ${ac_cv_prog_FILECMD+y}
10596 then :
10597 printf %s "(cached) " >&6
10598 else case e in #(
10599 e) if test -n "$FILECMD"; then
10600 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
10601 else
10602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10603 for as_dir in $PATH
10604 do
10605 IFS=$as_save_IFS
10606 case $as_dir in #(((
10607 '') as_dir=./ ;;
10608 */) ;;
10609 *) as_dir=$as_dir/ ;;
10610 esac
10611 for ac_exec_ext in '' $ac_executable_extensions; do
10612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10613 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
10614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10615 break 2
10616 fi
10617 done
10618 done
10619 IFS=$as_save_IFS
10620
10621 fi ;;
10622 esac
10623 fi
10624 FILECMD=$ac_cv_prog_FILECMD
10625 if test -n "$FILECMD"; then
10626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
10627 printf "%s\n" "$FILECMD" >&6; }
10628 else
10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630 printf "%s\n" "no" >&6; }
10631 fi
10632
10633
10634 fi
10635 if test -z "$ac_cv_prog_FILECMD"; then
10636 ac_ct_FILECMD=$FILECMD
10637 # Extract the first word of "file", so it can be a program name with args.
10638 set dummy file; ac_word=$2
10639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10640 printf %s "checking for $ac_word... " >&6; }
10641 if test ${ac_cv_prog_ac_ct_FILECMD+y}
10642 then :
10643 printf %s "(cached) " >&6
10644 else case e in #(
10645 e) if test -n "$ac_ct_FILECMD"; then
10646 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
10647 else
10648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10649 for as_dir in $PATH
10650 do
10651 IFS=$as_save_IFS
10652 case $as_dir in #(((
10653 '') as_dir=./ ;;
10654 */) ;;
10655 *) as_dir=$as_dir/ ;;
10656 esac
10657 for ac_exec_ext in '' $ac_executable_extensions; do
10658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10659 ac_cv_prog_ac_ct_FILECMD="file"
10660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10661 break 2
10662 fi
10663 done
10664 done
10665 IFS=$as_save_IFS
10666
10667 fi ;;
10668 esac
10669 fi
10670 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
10671 if test -n "$ac_ct_FILECMD"; then
10672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
10673 printf "%s\n" "$ac_ct_FILECMD" >&6; }
10674 else
10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10676 printf "%s\n" "no" >&6; }
10677 fi
10678
10679 if test "x$ac_ct_FILECMD" = x; then
10680 FILECMD=":"
10681 else
10682 case $cross_compiling:$ac_tool_warned in
10683 yes:)
10684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10685 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10686 ac_tool_warned=yes ;;
10687 esac
10688 FILECMD=$ac_ct_FILECMD
10689 fi
10690 else
10691 FILECMD="$ac_cv_prog_FILECMD"
10692 fi
10693
10694
10695
10696
10697
10698
10699
10700 if test -n "$ac_tool_prefix"; then
10701 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10702 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704 printf %s "checking for $ac_word... " >&6; }
10705 if test ${ac_cv_prog_OBJDUMP+y}
10706 then :
10707 printf %s "(cached) " >&6
10708 else case e in #(
10709 e) if test -n "$OBJDUMP"; then
10710 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10711 else
10712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713 for as_dir in $PATH
10714 do
10715 IFS=$as_save_IFS
10716 case $as_dir in #(((
10717 '') as_dir=./ ;;
10718 */) ;;
10719 *) as_dir=$as_dir/ ;;
10720 esac
10721 for ac_exec_ext in '' $ac_executable_extensions; do
10722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10723 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10725 break 2
10726 fi
10727 done
10728 done
10729 IFS=$as_save_IFS
10730
10731 fi ;;
10732 esac
10733 fi
10734 OBJDUMP=$ac_cv_prog_OBJDUMP
10735 if test -n "$OBJDUMP"; then
10736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10737 printf "%s\n" "$OBJDUMP" >&6; }
10738 else
10739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10740 printf "%s\n" "no" >&6; }
10741 fi
10742
10743
10744 fi
10745 if test -z "$ac_cv_prog_OBJDUMP"; then
10746 ac_ct_OBJDUMP=$OBJDUMP
10747 # Extract the first word of "objdump", so it can be a program name with args.
10748 set dummy objdump; ac_word=$2
10749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10750 printf %s "checking for $ac_word... " >&6; }
10751 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10752 then :
10753 printf %s "(cached) " >&6
10754 else case e in #(
10755 e) if test -n "$ac_ct_OBJDUMP"; then
10756 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10757 else
10758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759 for as_dir in $PATH
10760 do
10761 IFS=$as_save_IFS
10762 case $as_dir in #(((
10763 '') as_dir=./ ;;
10764 */) ;;
10765 *) as_dir=$as_dir/ ;;
10766 esac
10767 for ac_exec_ext in '' $ac_executable_extensions; do
10768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10769 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10771 break 2
10772 fi
10773 done
10774 done
10775 IFS=$as_save_IFS
10776
10777 fi ;;
10778 esac
10779 fi
10780 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10781 if test -n "$ac_ct_OBJDUMP"; then
10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10783 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10784 else
10785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 printf "%s\n" "no" >&6; }
10787 fi
10788
10789 if test "x$ac_ct_OBJDUMP" = x; then
10790 OBJDUMP="false"
10791 else
10792 case $cross_compiling:$ac_tool_warned in
10793 yes:)
10794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10795 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10796 ac_tool_warned=yes ;;
10797 esac
10798 OBJDUMP=$ac_ct_OBJDUMP
10799 fi
10800 else
10801 OBJDUMP="$ac_cv_prog_OBJDUMP"
10802 fi
10803
10804 test -z "$OBJDUMP" && OBJDUMP=objdump
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10815 printf %s "checking how to recognize dependent libraries... " >&6; }
10816 if test ${lt_cv_deplibs_check_method+y}
10817 then :
10818 printf %s "(cached) " >&6
10819 else case e in #(
10820 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
10821 lt_cv_file_magic_test_file=
10822 lt_cv_deplibs_check_method='unknown'
10823 # Need to set the preceding variable on all platforms that support
10824 # interlibrary dependencies.
10825 # 'none' -- dependencies not supported.
10826 # 'unknown' -- same as none, but documents that we really don't know.
10827 # 'pass_all' -- all dependencies passed with no checks.
10828 # 'test_compile' -- check by making test program.
10829 # 'file_magic [[regex]]' -- check by looking for files in library path
10830 # that responds to the $file_magic_cmd with a given extended regex.
10831 # If you have 'file' or equivalent on your system and you're not sure
10832 # whether 'pass_all' will *always* work, you probably want this one.
10833
10834 case $host_os in
10835 aix[4-9]*)
10836 lt_cv_deplibs_check_method=pass_all
10837 ;;
10838
10839 beos*)
10840 lt_cv_deplibs_check_method=pass_all
10841 ;;
10842
10843 bsdi[45]*)
10844 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10845 lt_cv_file_magic_cmd='$FILECMD -L'
10846 lt_cv_file_magic_test_file=/shlib/libc.so
10847 ;;
10848
10849 cygwin*)
10850 # func_win32_libid is a shell function defined in ltmain.sh
10851 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10852 lt_cv_file_magic_cmd='func_win32_libid'
10853 ;;
10854
10855 mingw* | pw32*)
10856 # Base MSYS/MinGW do not provide the 'file' command needed by
10857 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10858 # unless we find 'file', for example because we are cross-compiling.
10859 if ( file / ) >/dev/null 2>&1; then
10860 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10861 lt_cv_file_magic_cmd='func_win32_libid'
10862 else
10863 # Keep this pattern in sync with the one in func_win32_libid.
10864 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10865 lt_cv_file_magic_cmd='$OBJDUMP -f'
10866 fi
10867 ;;
10868
10869 cegcc*)
10870 # use the weaker test based on 'objdump'. See mingw*.
10871 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10872 lt_cv_file_magic_cmd='$OBJDUMP -f'
10873 ;;
10874
10875 darwin* | rhapsody*)
10876 lt_cv_deplibs_check_method=pass_all
10877 ;;
10878
10879 freebsd* | dragonfly* | midnightbsd*)
10880 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10881 case $host_cpu in
10882 i*86 )
10883 # Not sure whether the presence of OpenBSD here was a mistake.
10884 # Let's accept both of them until this is cleared up.
10885 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10886 lt_cv_file_magic_cmd=$FILECMD
10887 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10888 ;;
10889 esac
10890 else
10891 lt_cv_deplibs_check_method=pass_all
10892 fi
10893 ;;
10894
10895 haiku*)
10896 lt_cv_deplibs_check_method=pass_all
10897 ;;
10898
10899 hpux10.20* | hpux11*)
10900 lt_cv_file_magic_cmd=$FILECMD
10901 case $host_cpu in
10902 ia64*)
10903 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10904 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10905 ;;
10906 hppa*64*)
10907 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
10908 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10909 ;;
10910 *)
10911 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10912 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10913 ;;
10914 esac
10915 ;;
10916
10917 interix[3-9]*)
10918 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10920 ;;
10921
10922 irix5* | irix6* | nonstopux*)
10923 case $LD in
10924 *-32|*"-32 ") libmagic=32-bit;;
10925 *-n32|*"-n32 ") libmagic=N32;;
10926 *-64|*"-64 ") libmagic=64-bit;;
10927 *) libmagic=never-match;;
10928 esac
10929 lt_cv_deplibs_check_method=pass_all
10930 ;;
10931
10932 # This must be glibc/ELF.
10933 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10934 lt_cv_deplibs_check_method=pass_all
10935 ;;
10936
10937 netbsd* | netbsdelf*-gnu)
10938 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10940 else
10941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10942 fi
10943 ;;
10944
10945 newos6*)
10946 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10947 lt_cv_file_magic_cmd=$FILECMD
10948 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10949 ;;
10950
10951 *nto* | *qnx*)
10952 lt_cv_deplibs_check_method=pass_all
10953 ;;
10954
10955 openbsd* | bitrig*)
10956 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10957 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10958 else
10959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10960 fi
10961 ;;
10962
10963 osf3* | osf4* | osf5*)
10964 lt_cv_deplibs_check_method=pass_all
10965 ;;
10966
10967 rdos*)
10968 lt_cv_deplibs_check_method=pass_all
10969 ;;
10970
10971 solaris*)
10972 lt_cv_deplibs_check_method=pass_all
10973 ;;
10974
10975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10976 lt_cv_deplibs_check_method=pass_all
10977 ;;
10978
10979 sysv4 | sysv4.3*)
10980 case $host_vendor in
10981 motorola)
10982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
10983 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10984 ;;
10985 ncr)
10986 lt_cv_deplibs_check_method=pass_all
10987 ;;
10988 sequent)
10989 lt_cv_file_magic_cmd='/bin/file'
10990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10991 ;;
10992 sni)
10993 lt_cv_file_magic_cmd='/bin/file'
10994 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10995 lt_cv_file_magic_test_file=/lib/libc.so
10996 ;;
10997 siemens)
10998 lt_cv_deplibs_check_method=pass_all
10999 ;;
11000 pc)
11001 lt_cv_deplibs_check_method=pass_all
11002 ;;
11003 esac
11004 ;;
11005
11006 tpf*)
11007 lt_cv_deplibs_check_method=pass_all
11008 ;;
11009 os2*)
11010 lt_cv_deplibs_check_method=pass_all
11011 ;;
11012 esac
11013 ;;
11014 esac
11015 fi
11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11017 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
11018
11019 file_magic_glob=
11020 want_nocaseglob=no
11021 if test "$build" = "$host"; then
11022 case $host_os in
11023 mingw* | pw32*)
11024 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11025 want_nocaseglob=yes
11026 else
11027 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11028 fi
11029 ;;
11030 esac
11031 fi
11032
11033 file_magic_cmd=$lt_cv_file_magic_cmd
11034 deplibs_check_method=$lt_cv_deplibs_check_method
11035 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058 if test -n "$ac_tool_prefix"; then
11059 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11060 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11062 printf %s "checking for $ac_word... " >&6; }
11063 if test ${ac_cv_prog_DLLTOOL+y}
11064 then :
11065 printf %s "(cached) " >&6
11066 else case e in #(
11067 e) if test -n "$DLLTOOL"; then
11068 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11069 else
11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in $PATH
11072 do
11073 IFS=$as_save_IFS
11074 case $as_dir in #(((
11075 '') as_dir=./ ;;
11076 */) ;;
11077 *) as_dir=$as_dir/ ;;
11078 esac
11079 for ac_exec_ext in '' $ac_executable_extensions; do
11080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11081 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11083 break 2
11084 fi
11085 done
11086 done
11087 IFS=$as_save_IFS
11088
11089 fi ;;
11090 esac
11091 fi
11092 DLLTOOL=$ac_cv_prog_DLLTOOL
11093 if test -n "$DLLTOOL"; then
11094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11095 printf "%s\n" "$DLLTOOL" >&6; }
11096 else
11097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098 printf "%s\n" "no" >&6; }
11099 fi
11100
11101
11102 fi
11103 if test -z "$ac_cv_prog_DLLTOOL"; then
11104 ac_ct_DLLTOOL=$DLLTOOL
11105 # Extract the first word of "dlltool", so it can be a program name with args.
11106 set dummy dlltool; ac_word=$2
11107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 printf %s "checking for $ac_word... " >&6; }
11109 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
11110 then :
11111 printf %s "(cached) " >&6
11112 else case e in #(
11113 e) if test -n "$ac_ct_DLLTOOL"; then
11114 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11115 else
11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11118 do
11119 IFS=$as_save_IFS
11120 case $as_dir in #(((
11121 '') as_dir=./ ;;
11122 */) ;;
11123 *) as_dir=$as_dir/ ;;
11124 esac
11125 for ac_exec_ext in '' $ac_executable_extensions; do
11126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11127 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11129 break 2
11130 fi
11131 done
11132 done
11133 IFS=$as_save_IFS
11134
11135 fi ;;
11136 esac
11137 fi
11138 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11139 if test -n "$ac_ct_DLLTOOL"; then
11140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11141 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
11142 else
11143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144 printf "%s\n" "no" >&6; }
11145 fi
11146
11147 if test "x$ac_ct_DLLTOOL" = x; then
11148 DLLTOOL="false"
11149 else
11150 case $cross_compiling:$ac_tool_warned in
11151 yes:)
11152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11153 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11154 ac_tool_warned=yes ;;
11155 esac
11156 DLLTOOL=$ac_ct_DLLTOOL
11157 fi
11158 else
11159 DLLTOOL="$ac_cv_prog_DLLTOOL"
11160 fi
11161
11162 test -z "$DLLTOOL" && DLLTOOL=dlltool
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11174 printf %s "checking how to associate runtime and link libraries... " >&6; }
11175 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
11176 then :
11177 printf %s "(cached) " >&6
11178 else case e in #(
11179 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
11180
11181 case $host_os in
11182 cygwin* | mingw* | pw32* | cegcc*)
11183 # two different shell functions defined in ltmain.sh;
11184 # decide which one to use based on capabilities of $DLLTOOL
11185 case `$DLLTOOL --help 2>&1` in
11186 *--identify-strict*)
11187 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11188 ;;
11189 *)
11190 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11191 ;;
11192 esac
11193 ;;
11194 *)
11195 # fallback: assume linklib IS sharedlib
11196 lt_cv_sharedlib_from_linklib_cmd=$ECHO
11197 ;;
11198 esac
11199 ;;
11200 esac
11201 fi
11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11203 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11204 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11205 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11206
11207
11208
11209
11210
11211
11212
11213 if test -n "$ac_tool_prefix"; then
11214 for ac_prog in ar
11215 do
11216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11219 printf %s "checking for $ac_word... " >&6; }
11220 if test ${ac_cv_prog_AR+y}
11221 then :
11222 printf %s "(cached) " >&6
11223 else case e in #(
11224 e) if test -n "$AR"; then
11225 ac_cv_prog_AR="$AR" # Let the user override the test.
11226 else
11227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228 for as_dir in $PATH
11229 do
11230 IFS=$as_save_IFS
11231 case $as_dir in #(((
11232 '') as_dir=./ ;;
11233 */) ;;
11234 *) as_dir=$as_dir/ ;;
11235 esac
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11238 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11240 break 2
11241 fi
11242 done
11243 done
11244 IFS=$as_save_IFS
11245
11246 fi ;;
11247 esac
11248 fi
11249 AR=$ac_cv_prog_AR
11250 if test -n "$AR"; then
11251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11252 printf "%s\n" "$AR" >&6; }
11253 else
11254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 printf "%s\n" "no" >&6; }
11256 fi
11257
11258
11259 test -n "$AR" && break
11260 done
11261 fi
11262 if test -z "$AR"; then
11263 ac_ct_AR=$AR
11264 for ac_prog in ar
11265 do
11266 # Extract the first word of "$ac_prog", so it can be a program name with args.
11267 set dummy $ac_prog; ac_word=$2
11268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11269 printf %s "checking for $ac_word... " >&6; }
11270 if test ${ac_cv_prog_ac_ct_AR+y}
11271 then :
11272 printf %s "(cached) " >&6
11273 else case e in #(
11274 e) if test -n "$ac_ct_AR"; then
11275 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11276 else
11277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278 for as_dir in $PATH
11279 do
11280 IFS=$as_save_IFS
11281 case $as_dir in #(((
11282 '') as_dir=./ ;;
11283 */) ;;
11284 *) as_dir=$as_dir/ ;;
11285 esac
11286 for ac_exec_ext in '' $ac_executable_extensions; do
11287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11288 ac_cv_prog_ac_ct_AR="$ac_prog"
11289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11290 break 2
11291 fi
11292 done
11293 done
11294 IFS=$as_save_IFS
11295
11296 fi ;;
11297 esac
11298 fi
11299 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11300 if test -n "$ac_ct_AR"; then
11301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11302 printf "%s\n" "$ac_ct_AR" >&6; }
11303 else
11304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305 printf "%s\n" "no" >&6; }
11306 fi
11307
11308
11309 test -n "$ac_ct_AR" && break
11310 done
11311
11312 if test "x$ac_ct_AR" = x; then
11313 AR="false"
11314 else
11315 case $cross_compiling:$ac_tool_warned in
11316 yes:)
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11318 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11319 ac_tool_warned=yes ;;
11320 esac
11321 AR=$ac_ct_AR
11322 fi
11323 fi
11324
11325 : ${AR=ar}
11326
11327
11328
11329
11330
11331
11332 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
11333 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
11334 # higher priority because thats what people were doing historically (setting
11335 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
11336 # variable obsoleted/removed.
11337
11338 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
11339 lt_ar_flags=$AR_FLAGS
11340
11341
11342
11343
11344
11345
11346 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
11347 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
11348
11349
11350
11351
11352
11353
11354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11355 printf %s "checking for archiver @FILE support... " >&6; }
11356 if test ${lt_cv_ar_at_file+y}
11357 then :
11358 printf %s "(cached) " >&6
11359 else case e in #(
11360 e) lt_cv_ar_at_file=no
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
11363
11364 int
11365 main (void)
11366 {
11367
11368 ;
11369 return 0;
11370 }
11371 _ACEOF
11372 if ac_fn_c_try_compile "$LINENO"
11373 then :
11374 echo conftest.$ac_objext > conftest.lst
11375 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11377 (eval $lt_ar_try) 2>&5
11378 ac_status=$?
11379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11380 test $ac_status = 0; }
11381 if test 0 -eq "$ac_status"; then
11382 # Ensure the archiver fails upon bogus file names.
11383 rm -f conftest.$ac_objext libconftest.a
11384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11385 (eval $lt_ar_try) 2>&5
11386 ac_status=$?
11387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11388 test $ac_status = 0; }
11389 if test 0 -ne "$ac_status"; then
11390 lt_cv_ar_at_file=@
11391 fi
11392 fi
11393 rm -f conftest.* libconftest.a
11394
11395 fi
11396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11397 ;;
11398 esac
11399 fi
11400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11401 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
11402
11403 if test no = "$lt_cv_ar_at_file"; then
11404 archiver_list_spec=
11405 else
11406 archiver_list_spec=$lt_cv_ar_at_file
11407 fi
11408
11409
11410
11411
11412
11413
11414
11415 if test -n "$ac_tool_prefix"; then
11416 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11417 set dummy ${ac_tool_prefix}strip; ac_word=$2
11418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11419 printf %s "checking for $ac_word... " >&6; }
11420 if test ${ac_cv_prog_STRIP+y}
11421 then :
11422 printf %s "(cached) " >&6
11423 else case e in #(
11424 e) if test -n "$STRIP"; then
11425 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11426 else
11427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428 for as_dir in $PATH
11429 do
11430 IFS=$as_save_IFS
11431 case $as_dir in #(((
11432 '') as_dir=./ ;;
11433 */) ;;
11434 *) as_dir=$as_dir/ ;;
11435 esac
11436 for ac_exec_ext in '' $ac_executable_extensions; do
11437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11438 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11440 break 2
11441 fi
11442 done
11443 done
11444 IFS=$as_save_IFS
11445
11446 fi ;;
11447 esac
11448 fi
11449 STRIP=$ac_cv_prog_STRIP
11450 if test -n "$STRIP"; then
11451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11452 printf "%s\n" "$STRIP" >&6; }
11453 else
11454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455 printf "%s\n" "no" >&6; }
11456 fi
11457
11458
11459 fi
11460 if test -z "$ac_cv_prog_STRIP"; then
11461 ac_ct_STRIP=$STRIP
11462 # Extract the first word of "strip", so it can be a program name with args.
11463 set dummy strip; ac_word=$2
11464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 printf %s "checking for $ac_word... " >&6; }
11466 if test ${ac_cv_prog_ac_ct_STRIP+y}
11467 then :
11468 printf %s "(cached) " >&6
11469 else case e in #(
11470 e) if test -n "$ac_ct_STRIP"; then
11471 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11472 else
11473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474 for as_dir in $PATH
11475 do
11476 IFS=$as_save_IFS
11477 case $as_dir in #(((
11478 '') as_dir=./ ;;
11479 */) ;;
11480 *) as_dir=$as_dir/ ;;
11481 esac
11482 for ac_exec_ext in '' $ac_executable_extensions; do
11483 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11484 ac_cv_prog_ac_ct_STRIP="strip"
11485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11486 break 2
11487 fi
11488 done
11489 done
11490 IFS=$as_save_IFS
11491
11492 fi ;;
11493 esac
11494 fi
11495 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11496 if test -n "$ac_ct_STRIP"; then
11497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11498 printf "%s\n" "$ac_ct_STRIP" >&6; }
11499 else
11500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501 printf "%s\n" "no" >&6; }
11502 fi
11503
11504 if test "x$ac_ct_STRIP" = x; then
11505 STRIP=":"
11506 else
11507 case $cross_compiling:$ac_tool_warned in
11508 yes:)
11509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11510 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11511 ac_tool_warned=yes ;;
11512 esac
11513 STRIP=$ac_ct_STRIP
11514 fi
11515 else
11516 STRIP="$ac_cv_prog_STRIP"
11517 fi
11518
11519 test -z "$STRIP" && STRIP=:
11520
11521
11522
11523
11524
11525
11526 if test -n "$ac_tool_prefix"; then
11527 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11528 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11530 printf %s "checking for $ac_word... " >&6; }
11531 if test ${ac_cv_prog_RANLIB+y}
11532 then :
11533 printf %s "(cached) " >&6
11534 else case e in #(
11535 e) if test -n "$RANLIB"; then
11536 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11537 else
11538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539 for as_dir in $PATH
11540 do
11541 IFS=$as_save_IFS
11542 case $as_dir in #(((
11543 '') as_dir=./ ;;
11544 */) ;;
11545 *) as_dir=$as_dir/ ;;
11546 esac
11547 for ac_exec_ext in '' $ac_executable_extensions; do
11548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11549 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11551 break 2
11552 fi
11553 done
11554 done
11555 IFS=$as_save_IFS
11556
11557 fi ;;
11558 esac
11559 fi
11560 RANLIB=$ac_cv_prog_RANLIB
11561 if test -n "$RANLIB"; then
11562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11563 printf "%s\n" "$RANLIB" >&6; }
11564 else
11565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566 printf "%s\n" "no" >&6; }
11567 fi
11568
11569
11570 fi
11571 if test -z "$ac_cv_prog_RANLIB"; then
11572 ac_ct_RANLIB=$RANLIB
11573 # Extract the first word of "ranlib", so it can be a program name with args.
11574 set dummy ranlib; ac_word=$2
11575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576 printf %s "checking for $ac_word... " >&6; }
11577 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11578 then :
11579 printf %s "(cached) " >&6
11580 else case e in #(
11581 e) if test -n "$ac_ct_RANLIB"; then
11582 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11583 else
11584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585 for as_dir in $PATH
11586 do
11587 IFS=$as_save_IFS
11588 case $as_dir in #(((
11589 '') as_dir=./ ;;
11590 */) ;;
11591 *) as_dir=$as_dir/ ;;
11592 esac
11593 for ac_exec_ext in '' $ac_executable_extensions; do
11594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11595 ac_cv_prog_ac_ct_RANLIB="ranlib"
11596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11597 break 2
11598 fi
11599 done
11600 done
11601 IFS=$as_save_IFS
11602
11603 fi ;;
11604 esac
11605 fi
11606 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11607 if test -n "$ac_ct_RANLIB"; then
11608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11609 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11610 else
11611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612 printf "%s\n" "no" >&6; }
11613 fi
11614
11615 if test "x$ac_ct_RANLIB" = x; then
11616 RANLIB=":"
11617 else
11618 case $cross_compiling:$ac_tool_warned in
11619 yes:)
11620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11621 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11622 ac_tool_warned=yes ;;
11623 esac
11624 RANLIB=$ac_ct_RANLIB
11625 fi
11626 else
11627 RANLIB="$ac_cv_prog_RANLIB"
11628 fi
11629
11630 test -z "$RANLIB" && RANLIB=:
11631
11632
11633
11634
11635
11636
11637 # Determine commands to create old-style static archives.
11638 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11639 old_postinstall_cmds='chmod 644 $oldlib'
11640 old_postuninstall_cmds=
11641
11642 if test -n "$RANLIB"; then
11643 case $host_os in
11644 bitrig* | openbsd*)
11645 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
11646 ;;
11647 *)
11648 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
11649 ;;
11650 esac
11651 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
11652 fi
11653
11654 case $host_os in
11655 darwin*)
11656 lock_old_archive_extraction=yes ;;
11657 *)
11658 lock_old_archive_extraction=no ;;
11659 esac
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699 # If no C compiler was specified, use CC.
11700 LTCC=${LTCC-"$CC"}
11701
11702 # If no C compiler flags were specified, use CFLAGS.
11703 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11704
11705 # Allow CC to be a program name with arguments.
11706 compiler=$CC
11707
11708
11709 # Check for command to grab the raw symbol name followed by C symbol from nm.
11710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11711 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
11712 if test ${lt_cv_sys_global_symbol_pipe+y}
11713 then :
11714 printf %s "(cached) " >&6
11715 else case e in #(
11716 e)
11717 # These are sane defaults that work on at least a few old systems.
11718 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11719
11720 # Character class describing NM global symbol codes.
11721 symcode='[BCDEGRST]'
11722
11723 # Regexp to match symbols that can be accessed directly from C.
11724 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11725
11726 # Define system-specific variables.
11727 case $host_os in
11728 aix*)
11729 symcode='[BCDT]'
11730 ;;
11731 cygwin* | mingw* | pw32* | cegcc*)
11732 symcode='[ABCDGISTW]'
11733 ;;
11734 hpux*)
11735 if test ia64 = "$host_cpu"; then
11736 symcode='[ABCDEGRST]'
11737 fi
11738 ;;
11739 irix* | nonstopux*)
11740 symcode='[BCDEGRST]'
11741 ;;
11742 osf*)
11743 symcode='[BCDEGQRST]'
11744 ;;
11745 solaris*)
11746 symcode='[BDRT]'
11747 ;;
11748 sco3.2v5*)
11749 symcode='[DT]'
11750 ;;
11751 sysv4.2uw2*)
11752 symcode='[DT]'
11753 ;;
11754 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11755 symcode='[ABDT]'
11756 ;;
11757 sysv4)
11758 symcode='[DFNSTU]'
11759 ;;
11760 esac
11761
11762 # If we're using GNU nm, then use its standard symbol codes.
11763 case `$NM -V 2>&1` in
11764 *GNU* | *'with BFD'*)
11765 symcode='[ABCDGIRSTW]' ;;
11766 esac
11767
11768 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11769 # Gets list of data symbols to import.
11770 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
11771 # Adjust the below global symbol transforms to fixup imported variables.
11772 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
11773 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
11774 lt_c_name_lib_hook="\
11775 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
11776 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
11777 else
11778 # Disable hooks by default.
11779 lt_cv_sys_global_symbol_to_import=
11780 lt_cdecl_hook=
11781 lt_c_name_hook=
11782 lt_c_name_lib_hook=
11783 fi
11784
11785 # Transform an extracted symbol line into a proper C declaration.
11786 # Some systems (esp. on ia64) link data and code symbols differently,
11787 # so use this general approach.
11788 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
11789 $lt_cdecl_hook\
11790 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
11791 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
11792
11793 # Transform an extracted symbol line into symbol name and symbol address
11794 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
11795 $lt_c_name_hook\
11796 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
11797 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
11798
11799 # Transform an extracted symbol line into symbol name with lib prefix and
11800 # symbol address.
11801 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
11802 $lt_c_name_lib_hook\
11803 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
11804 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
11805 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
11806
11807 # Handle CRLF in mingw tool chain
11808 opt_cr=
11809 case $build_os in
11810 mingw*)
11811 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11812 ;;
11813 esac
11814
11815 # Try without a prefix underscore, then with it.
11816 for ac_symprfx in "" "_"; do
11817
11818 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11819 symxfrm="\\1 $ac_symprfx\\2 \\2"
11820
11821 # Write the raw and C identifiers.
11822 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11823 # Fake it for dumpbin and say T for any non-static function,
11824 # D for any global variable and I for any imported variable.
11825 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
11826 # which start with @ or ?.
11827 lt_cv_sys_global_symbol_pipe="$AWK '"\
11828 " {last_section=section; section=\$ 3};"\
11829 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11830 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11831 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
11832 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
11833 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
11834 " \$ 0!~/External *\|/{next};"\
11835 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11836 " {if(hide[section]) next};"\
11837 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
11838 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
11839 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
11840 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
11841 " ' prfx=^$ac_symprfx"
11842 else
11843 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11844 fi
11845 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
11846
11847 # Check to see that the pipe works correctly.
11848 pipe_works=no
11849
11850 rm -f conftest*
11851 cat > conftest.$ac_ext <<_LT_EOF
11852 #ifdef __cplusplus
11853 extern "C" {
11854 #endif
11855 char nm_test_var;
11856 void nm_test_func(void);
11857 void nm_test_func(void){}
11858 #ifdef __cplusplus
11859 }
11860 #endif
11861 int main(){nm_test_var='a';nm_test_func();return(0);}
11862 _LT_EOF
11863
11864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11865 (eval $ac_compile) 2>&5
11866 ac_status=$?
11867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11868 test $ac_status = 0; }; then
11869 # Now try to grab the symbols.
11870 nlist=conftest.nm
11871 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
11872 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
11873 # Try sorting and uniquifying the output.
11874 if sort "$nlist" | uniq > "$nlist"T; then
11875 mv -f "$nlist"T "$nlist"
11876 else
11877 rm -f "$nlist"T
11878 fi
11879
11880 # Make sure that we snagged all the symbols we need.
11881 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11882 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11883 cat <<_LT_EOF > conftest.$ac_ext
11884 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11885 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
11886 /* DATA imports from DLLs on WIN32 can't be const, because runtime
11887 relocations are performed -- see ld's documentation on pseudo-relocs. */
11888 # define LT_DLSYM_CONST
11889 #elif defined __osf__
11890 /* This system does not cope well with relocations in const data. */
11891 # define LT_DLSYM_CONST
11892 #else
11893 # define LT_DLSYM_CONST const
11894 #endif
11895
11896 #ifdef __cplusplus
11897 extern "C" {
11898 #endif
11899
11900 _LT_EOF
11901 # Now generate the symbol file.
11902 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11903
11904 cat <<_LT_EOF >> conftest.$ac_ext
11905
11906 /* The mapping between symbol names and symbols. */
11907 LT_DLSYM_CONST struct {
11908 const char *name;
11909 void *address;
11910 }
11911 lt__PROGRAM__LTX_preloaded_symbols[] =
11912 {
11913 { "@PROGRAM@", (void *) 0 },
11914 _LT_EOF
11915 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11916 cat <<\_LT_EOF >> conftest.$ac_ext
11917 {0, (void *) 0}
11918 };
11919
11920 /* This works around a problem in FreeBSD linker */
11921 #ifdef FREEBSD_WORKAROUND
11922 static const void *lt_preloaded_setup() {
11923 return lt__PROGRAM__LTX_preloaded_symbols;
11924 }
11925 #endif
11926
11927 #ifdef __cplusplus
11928 }
11929 #endif
11930 _LT_EOF
11931 # Now try linking the two files.
11932 mv conftest.$ac_objext conftstm.$ac_objext
11933 lt_globsym_save_LIBS=$LIBS
11934 lt_globsym_save_CFLAGS=$CFLAGS
11935 LIBS=conftstm.$ac_objext
11936 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11938 (eval $ac_link) 2>&5
11939 ac_status=$?
11940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11941 test $ac_status = 0; } && test -s conftest$ac_exeext; then
11942 pipe_works=yes
11943 fi
11944 LIBS=$lt_globsym_save_LIBS
11945 CFLAGS=$lt_globsym_save_CFLAGS
11946 else
11947 echo "cannot find nm_test_func in $nlist" >&5
11948 fi
11949 else
11950 echo "cannot find nm_test_var in $nlist" >&5
11951 fi
11952 else
11953 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11954 fi
11955 else
11956 echo "$progname: failed program was:" >&5
11957 cat conftest.$ac_ext >&5
11958 fi
11959 rm -rf conftest* conftst*
11960
11961 # Do not use the global_symbol_pipe unless it works.
11962 if test yes = "$pipe_works"; then
11963 break
11964 else
11965 lt_cv_sys_global_symbol_pipe=
11966 fi
11967 done
11968 ;;
11969 esac
11970 fi
11971
11972 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11973 lt_cv_sys_global_symbol_to_cdecl=
11974 fi
11975 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11977 printf "%s\n" "failed" >&6; }
11978 else
11979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11980 printf "%s\n" "ok" >&6; }
11981 fi
11982
11983 # Response file support.
11984 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11985 nm_file_list_spec='@'
11986 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11987 nm_file_list_spec='@'
11988 fi
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12027 printf %s "checking for sysroot... " >&6; }
12028
12029 # Check whether --with-sysroot was given.
12030 if test ${with_sysroot+y}
12031 then :
12032 withval=$with_sysroot;
12033 else case e in #(
12034 e) with_sysroot=no ;;
12035 esac
12036 fi
12037
12038
12039 lt_sysroot=
12040 case $with_sysroot in #(
12041 yes)
12042 if test yes = "$GCC"; then
12043 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12044 fi
12045 ;; #(
12046 /*)
12047 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
12048 ;; #(
12049 no|'')
12050 ;; #(
12051 *)
12052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
12053 printf "%s\n" "$with_sysroot" >&6; }
12054 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12055 ;;
12056 esac
12057
12058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12059 printf "%s\n" "${lt_sysroot:-no}" >&6; }
12060
12061
12062
12063
12064
12065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
12066 printf %s "checking for a working dd... " >&6; }
12067 if test ${ac_cv_path_lt_DD+y}
12068 then :
12069 printf %s "(cached) " >&6
12070 else case e in #(
12071 e) printf 0123456789abcdef0123456789abcdef >conftest.i
12072 cat conftest.i conftest.i >conftest2.i
12073 : ${lt_DD:=$DD}
12074 if test -z "$lt_DD"; then
12075 ac_path_lt_DD_found=false
12076 # Loop through the user's path and test for each of PROGNAME-LIST
12077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12078 for as_dir in $PATH
12079 do
12080 IFS=$as_save_IFS
12081 case $as_dir in #(((
12082 '') as_dir=./ ;;
12083 */) ;;
12084 *) as_dir=$as_dir/ ;;
12085 esac
12086 for ac_prog in dd
12087 do
12088 for ac_exec_ext in '' $ac_executable_extensions; do
12089 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
12090 as_fn_executable_p "$ac_path_lt_DD" || continue
12091 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12092 cmp -s conftest.i conftest.out \
12093 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
12094 fi
12095 $ac_path_lt_DD_found && break 3
12096 done
12097 done
12098 done
12099 IFS=$as_save_IFS
12100 if test -z "$ac_cv_path_lt_DD"; then
12101 :
12102 fi
12103 else
12104 ac_cv_path_lt_DD=$lt_DD
12105 fi
12106
12107 rm -f conftest.i conftest2.i conftest.out ;;
12108 esac
12109 fi
12110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
12111 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
12112
12113
12114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
12115 printf %s "checking how to truncate binary pipes... " >&6; }
12116 if test ${lt_cv_truncate_bin+y}
12117 then :
12118 printf %s "(cached) " >&6
12119 else case e in #(
12120 e) printf 0123456789abcdef0123456789abcdef >conftest.i
12121 cat conftest.i conftest.i >conftest2.i
12122 lt_cv_truncate_bin=
12123 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12124 cmp -s conftest.i conftest.out \
12125 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
12126 fi
12127 rm -f conftest.i conftest2.i conftest.out
12128 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
12129 esac
12130 fi
12131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
12132 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
12133
12134
12135
12136
12137
12138
12139
12140 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
12141 func_cc_basename ()
12142 {
12143 for cc_temp in $*""; do
12144 case $cc_temp in
12145 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12146 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12147 \-*) ;;
12148 *) break;;
12149 esac
12150 done
12151 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12152 }
12153
12154 # Check whether --enable-libtool-lock was given.
12155 if test ${enable_libtool_lock+y}
12156 then :
12157 enableval=$enable_libtool_lock;
12158 fi
12159
12160 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
12161
12162 # Some flags need to be propagated to the compiler or linker for good
12163 # libtool support.
12164 case $host in
12165 ia64-*-hpux*)
12166 # Find out what ABI is being produced by ac_compile, and set mode
12167 # options accordingly.
12168 echo 'int i;' > conftest.$ac_ext
12169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12170 (eval $ac_compile) 2>&5
12171 ac_status=$?
12172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12173 test $ac_status = 0; }; then
12174 case `$FILECMD conftest.$ac_objext` in
12175 *ELF-32*)
12176 HPUX_IA64_MODE=32
12177 ;;
12178 *ELF-64*)
12179 HPUX_IA64_MODE=64
12180 ;;
12181 esac
12182 fi
12183 rm -rf conftest*
12184 ;;
12185 *-*-irix6*)
12186 # Find out what ABI is being produced by ac_compile, and set linker
12187 # options accordingly.
12188 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12190 (eval $ac_compile) 2>&5
12191 ac_status=$?
12192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12193 test $ac_status = 0; }; then
12194 if test yes = "$lt_cv_prog_gnu_ld"; then
12195 case `$FILECMD conftest.$ac_objext` in
12196 *32-bit*)
12197 LD="${LD-ld} -melf32bsmip"
12198 ;;
12199 *N32*)
12200 LD="${LD-ld} -melf32bmipn32"
12201 ;;
12202 *64-bit*)
12203 LD="${LD-ld} -melf64bmip"
12204 ;;
12205 esac
12206 else
12207 case `$FILECMD conftest.$ac_objext` in
12208 *32-bit*)
12209 LD="${LD-ld} -32"
12210 ;;
12211 *N32*)
12212 LD="${LD-ld} -n32"
12213 ;;
12214 *64-bit*)
12215 LD="${LD-ld} -64"
12216 ;;
12217 esac
12218 fi
12219 fi
12220 rm -rf conftest*
12221 ;;
12222
12223 mips64*-*linux*)
12224 # Find out what ABI is being produced by ac_compile, and set linker
12225 # options accordingly.
12226 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12228 (eval $ac_compile) 2>&5
12229 ac_status=$?
12230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12231 test $ac_status = 0; }; then
12232 emul=elf
12233 case `$FILECMD conftest.$ac_objext` in
12234 *32-bit*)
12235 emul="${emul}32"
12236 ;;
12237 *64-bit*)
12238 emul="${emul}64"
12239 ;;
12240 esac
12241 case `$FILECMD conftest.$ac_objext` in
12242 *MSB*)
12243 emul="${emul}btsmip"
12244 ;;
12245 *LSB*)
12246 emul="${emul}ltsmip"
12247 ;;
12248 esac
12249 case `$FILECMD conftest.$ac_objext` in
12250 *N32*)
12251 emul="${emul}n32"
12252 ;;
12253 esac
12254 LD="${LD-ld} -m $emul"
12255 fi
12256 rm -rf conftest*
12257 ;;
12258
12259 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
12260 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12261 # Find out what ABI is being produced by ac_compile, and set linker
12262 # options accordingly. Note that the listed cases only cover the
12263 # situations where additional linker options are needed (such as when
12264 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
12265 # vice versa); the common cases where no linker options are needed do
12266 # not appear in the list.
12267 echo 'int i;' > conftest.$ac_ext
12268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12269 (eval $ac_compile) 2>&5
12270 ac_status=$?
12271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12272 test $ac_status = 0; }; then
12273 case `$FILECMD conftest.o` in
12274 *32-bit*)
12275 case $host in
12276 x86_64-*kfreebsd*-gnu)
12277 LD="${LD-ld} -m elf_i386_fbsd"
12278 ;;
12279 x86_64-*linux*)
12280 case `$FILECMD conftest.o` in
12281 *x86-64*)
12282 LD="${LD-ld} -m elf32_x86_64"
12283 ;;
12284 *)
12285 LD="${LD-ld} -m elf_i386"
12286 ;;
12287 esac
12288 ;;
12289 powerpc64le-*linux*)
12290 LD="${LD-ld} -m elf32lppclinux"
12291 ;;
12292 powerpc64-*linux*)
12293 LD="${LD-ld} -m elf32ppclinux"
12294 ;;
12295 s390x-*linux*)
12296 LD="${LD-ld} -m elf_s390"
12297 ;;
12298 sparc64-*linux*)
12299 LD="${LD-ld} -m elf32_sparc"
12300 ;;
12301 esac
12302 ;;
12303 *64-bit*)
12304 case $host in
12305 x86_64-*kfreebsd*-gnu)
12306 LD="${LD-ld} -m elf_x86_64_fbsd"
12307 ;;
12308 x86_64-*linux*)
12309 LD="${LD-ld} -m elf_x86_64"
12310 ;;
12311 powerpcle-*linux*)
12312 LD="${LD-ld} -m elf64lppc"
12313 ;;
12314 powerpc-*linux*)
12315 LD="${LD-ld} -m elf64ppc"
12316 ;;
12317 s390*-*linux*|s390*-*tpf*)
12318 LD="${LD-ld} -m elf64_s390"
12319 ;;
12320 sparc*-*linux*)
12321 LD="${LD-ld} -m elf64_sparc"
12322 ;;
12323 esac
12324 ;;
12325 esac
12326 fi
12327 rm -rf conftest*
12328 ;;
12329
12330 *-*-sco3.2v5*)
12331 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12332 SAVE_CFLAGS=$CFLAGS
12333 CFLAGS="$CFLAGS -belf"
12334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12335 printf %s "checking whether the C compiler needs -belf... " >&6; }
12336 if test ${lt_cv_cc_needs_belf+y}
12337 then :
12338 printf %s "(cached) " >&6
12339 else case e in #(
12340 e) ac_ext=c
12341 ac_cpp='$CPP $CPPFLAGS'
12342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12345
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12348
12349 int
12350 main (void)
12351 {
12352
12353 ;
12354 return 0;
12355 }
12356 _ACEOF
12357 if ac_fn_c_try_link "$LINENO"
12358 then :
12359 lt_cv_cc_needs_belf=yes
12360 else case e in #(
12361 e) lt_cv_cc_needs_belf=no ;;
12362 esac
12363 fi
12364 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12365 conftest$ac_exeext conftest.$ac_ext
12366 ac_ext=c
12367 ac_cpp='$CPP $CPPFLAGS'
12368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12371 ;;
12372 esac
12373 fi
12374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12375 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
12376 if test yes != "$lt_cv_cc_needs_belf"; then
12377 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12378 CFLAGS=$SAVE_CFLAGS
12379 fi
12380 ;;
12381 *-*solaris*)
12382 # Find out what ABI is being produced by ac_compile, and set linker
12383 # options accordingly.
12384 echo 'int i;' > conftest.$ac_ext
12385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12386 (eval $ac_compile) 2>&5
12387 ac_status=$?
12388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12389 test $ac_status = 0; }; then
12390 case `$FILECMD conftest.o` in
12391 *64-bit*)
12392 case $lt_cv_prog_gnu_ld in
12393 yes*)
12394 case $host in
12395 i?86-*-solaris*|x86_64-*-solaris*)
12396 LD="${LD-ld} -m elf_x86_64"
12397 ;;
12398 sparc*-*-solaris*)
12399 LD="${LD-ld} -m elf64_sparc"
12400 ;;
12401 esac
12402 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12403 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12404 LD=${LD-ld}_sol2
12405 fi
12406 ;;
12407 *)
12408 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12409 LD="${LD-ld} -64"
12410 fi
12411 ;;
12412 esac
12413 ;;
12414 esac
12415 fi
12416 rm -rf conftest*
12417 ;;
12418 esac
12419
12420 need_locks=$enable_libtool_lock
12421
12422 if test -n "$ac_tool_prefix"; then
12423 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12424 set dummy ${ac_tool_prefix}mt; ac_word=$2
12425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12426 printf %s "checking for $ac_word... " >&6; }
12427 if test ${ac_cv_prog_MANIFEST_TOOL+y}
12428 then :
12429 printf %s "(cached) " >&6
12430 else case e in #(
12431 e) if test -n "$MANIFEST_TOOL"; then
12432 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12433 else
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $PATH
12436 do
12437 IFS=$as_save_IFS
12438 case $as_dir in #(((
12439 '') as_dir=./ ;;
12440 */) ;;
12441 *) as_dir=$as_dir/ ;;
12442 esac
12443 for ac_exec_ext in '' $ac_executable_extensions; do
12444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12445 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12447 break 2
12448 fi
12449 done
12450 done
12451 IFS=$as_save_IFS
12452
12453 fi ;;
12454 esac
12455 fi
12456 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12457 if test -n "$MANIFEST_TOOL"; then
12458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12459 printf "%s\n" "$MANIFEST_TOOL" >&6; }
12460 else
12461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462 printf "%s\n" "no" >&6; }
12463 fi
12464
12465
12466 fi
12467 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12468 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12469 # Extract the first word of "mt", so it can be a program name with args.
12470 set dummy mt; ac_word=$2
12471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472 printf %s "checking for $ac_word... " >&6; }
12473 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
12474 then :
12475 printf %s "(cached) " >&6
12476 else case e in #(
12477 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
12478 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12479 else
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12482 do
12483 IFS=$as_save_IFS
12484 case $as_dir in #(((
12485 '') as_dir=./ ;;
12486 */) ;;
12487 *) as_dir=$as_dir/ ;;
12488 esac
12489 for ac_exec_ext in '' $ac_executable_extensions; do
12490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12491 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12493 break 2
12494 fi
12495 done
12496 done
12497 IFS=$as_save_IFS
12498
12499 fi ;;
12500 esac
12501 fi
12502 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12503 if test -n "$ac_ct_MANIFEST_TOOL"; then
12504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12505 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
12506 else
12507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12508 printf "%s\n" "no" >&6; }
12509 fi
12510
12511 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12512 MANIFEST_TOOL=":"
12513 else
12514 case $cross_compiling:$ac_tool_warned in
12515 yes:)
12516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12517 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12518 ac_tool_warned=yes ;;
12519 esac
12520 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12521 fi
12522 else
12523 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12524 fi
12525
12526 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12528 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12529 if test ${lt_cv_path_mainfest_tool+y}
12530 then :
12531 printf %s "(cached) " >&6
12532 else case e in #(
12533 e) lt_cv_path_mainfest_tool=no
12534 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12535 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12536 cat conftest.err >&5
12537 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12538 lt_cv_path_mainfest_tool=yes
12539 fi
12540 rm -f conftest* ;;
12541 esac
12542 fi
12543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12544 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
12545 if test yes != "$lt_cv_path_mainfest_tool"; then
12546 MANIFEST_TOOL=:
12547 fi
12548
12549
12550
12551
12552
12553
12554 case $host_os in
12555 rhapsody* | darwin*)
12556 if test -n "$ac_tool_prefix"; then
12557 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12558 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12560 printf %s "checking for $ac_word... " >&6; }
12561 if test ${ac_cv_prog_DSYMUTIL+y}
12562 then :
12563 printf %s "(cached) " >&6
12564 else case e in #(
12565 e) if test -n "$DSYMUTIL"; then
12566 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12567 else
12568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569 for as_dir in $PATH
12570 do
12571 IFS=$as_save_IFS
12572 case $as_dir in #(((
12573 '') as_dir=./ ;;
12574 */) ;;
12575 *) as_dir=$as_dir/ ;;
12576 esac
12577 for ac_exec_ext in '' $ac_executable_extensions; do
12578 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12579 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12581 break 2
12582 fi
12583 done
12584 done
12585 IFS=$as_save_IFS
12586
12587 fi ;;
12588 esac
12589 fi
12590 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12591 if test -n "$DSYMUTIL"; then
12592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12593 printf "%s\n" "$DSYMUTIL" >&6; }
12594 else
12595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596 printf "%s\n" "no" >&6; }
12597 fi
12598
12599
12600 fi
12601 if test -z "$ac_cv_prog_DSYMUTIL"; then
12602 ac_ct_DSYMUTIL=$DSYMUTIL
12603 # Extract the first word of "dsymutil", so it can be a program name with args.
12604 set dummy dsymutil; ac_word=$2
12605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12606 printf %s "checking for $ac_word... " >&6; }
12607 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
12608 then :
12609 printf %s "(cached) " >&6
12610 else case e in #(
12611 e) if test -n "$ac_ct_DSYMUTIL"; then
12612 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12613 else
12614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615 for as_dir in $PATH
12616 do
12617 IFS=$as_save_IFS
12618 case $as_dir in #(((
12619 '') as_dir=./ ;;
12620 */) ;;
12621 *) as_dir=$as_dir/ ;;
12622 esac
12623 for ac_exec_ext in '' $ac_executable_extensions; do
12624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12625 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12627 break 2
12628 fi
12629 done
12630 done
12631 IFS=$as_save_IFS
12632
12633 fi ;;
12634 esac
12635 fi
12636 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12637 if test -n "$ac_ct_DSYMUTIL"; then
12638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12639 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
12640 else
12641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642 printf "%s\n" "no" >&6; }
12643 fi
12644
12645 if test "x$ac_ct_DSYMUTIL" = x; then
12646 DSYMUTIL=":"
12647 else
12648 case $cross_compiling:$ac_tool_warned in
12649 yes:)
12650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12651 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12652 ac_tool_warned=yes ;;
12653 esac
12654 DSYMUTIL=$ac_ct_DSYMUTIL
12655 fi
12656 else
12657 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12658 fi
12659
12660 if test -n "$ac_tool_prefix"; then
12661 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12662 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12664 printf %s "checking for $ac_word... " >&6; }
12665 if test ${ac_cv_prog_NMEDIT+y}
12666 then :
12667 printf %s "(cached) " >&6
12668 else case e in #(
12669 e) if test -n "$NMEDIT"; then
12670 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12671 else
12672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12673 for as_dir in $PATH
12674 do
12675 IFS=$as_save_IFS
12676 case $as_dir in #(((
12677 '') as_dir=./ ;;
12678 */) ;;
12679 *) as_dir=$as_dir/ ;;
12680 esac
12681 for ac_exec_ext in '' $ac_executable_extensions; do
12682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12683 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12685 break 2
12686 fi
12687 done
12688 done
12689 IFS=$as_save_IFS
12690
12691 fi ;;
12692 esac
12693 fi
12694 NMEDIT=$ac_cv_prog_NMEDIT
12695 if test -n "$NMEDIT"; then
12696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12697 printf "%s\n" "$NMEDIT" >&6; }
12698 else
12699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700 printf "%s\n" "no" >&6; }
12701 fi
12702
12703
12704 fi
12705 if test -z "$ac_cv_prog_NMEDIT"; then
12706 ac_ct_NMEDIT=$NMEDIT
12707 # Extract the first word of "nmedit", so it can be a program name with args.
12708 set dummy nmedit; ac_word=$2
12709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12710 printf %s "checking for $ac_word... " >&6; }
12711 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
12712 then :
12713 printf %s "(cached) " >&6
12714 else case e in #(
12715 e) if test -n "$ac_ct_NMEDIT"; then
12716 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12717 else
12718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12719 for as_dir in $PATH
12720 do
12721 IFS=$as_save_IFS
12722 case $as_dir in #(((
12723 '') as_dir=./ ;;
12724 */) ;;
12725 *) as_dir=$as_dir/ ;;
12726 esac
12727 for ac_exec_ext in '' $ac_executable_extensions; do
12728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12729 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12731 break 2
12732 fi
12733 done
12734 done
12735 IFS=$as_save_IFS
12736
12737 fi ;;
12738 esac
12739 fi
12740 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12741 if test -n "$ac_ct_NMEDIT"; then
12742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12743 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
12744 else
12745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 printf "%s\n" "no" >&6; }
12747 fi
12748
12749 if test "x$ac_ct_NMEDIT" = x; then
12750 NMEDIT=":"
12751 else
12752 case $cross_compiling:$ac_tool_warned in
12753 yes:)
12754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12755 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12756 ac_tool_warned=yes ;;
12757 esac
12758 NMEDIT=$ac_ct_NMEDIT
12759 fi
12760 else
12761 NMEDIT="$ac_cv_prog_NMEDIT"
12762 fi
12763
12764 if test -n "$ac_tool_prefix"; then
12765 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12766 set dummy ${ac_tool_prefix}lipo; ac_word=$2
12767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12768 printf %s "checking for $ac_word... " >&6; }
12769 if test ${ac_cv_prog_LIPO+y}
12770 then :
12771 printf %s "(cached) " >&6
12772 else case e in #(
12773 e) if test -n "$LIPO"; then
12774 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12775 else
12776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12777 for as_dir in $PATH
12778 do
12779 IFS=$as_save_IFS
12780 case $as_dir in #(((
12781 '') as_dir=./ ;;
12782 */) ;;
12783 *) as_dir=$as_dir/ ;;
12784 esac
12785 for ac_exec_ext in '' $ac_executable_extensions; do
12786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12787 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12789 break 2
12790 fi
12791 done
12792 done
12793 IFS=$as_save_IFS
12794
12795 fi ;;
12796 esac
12797 fi
12798 LIPO=$ac_cv_prog_LIPO
12799 if test -n "$LIPO"; then
12800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12801 printf "%s\n" "$LIPO" >&6; }
12802 else
12803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804 printf "%s\n" "no" >&6; }
12805 fi
12806
12807
12808 fi
12809 if test -z "$ac_cv_prog_LIPO"; then
12810 ac_ct_LIPO=$LIPO
12811 # Extract the first word of "lipo", so it can be a program name with args.
12812 set dummy lipo; ac_word=$2
12813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814 printf %s "checking for $ac_word... " >&6; }
12815 if test ${ac_cv_prog_ac_ct_LIPO+y}
12816 then :
12817 printf %s "(cached) " >&6
12818 else case e in #(
12819 e) if test -n "$ac_ct_LIPO"; then
12820 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12821 else
12822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12823 for as_dir in $PATH
12824 do
12825 IFS=$as_save_IFS
12826 case $as_dir in #(((
12827 '') as_dir=./ ;;
12828 */) ;;
12829 *) as_dir=$as_dir/ ;;
12830 esac
12831 for ac_exec_ext in '' $ac_executable_extensions; do
12832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12833 ac_cv_prog_ac_ct_LIPO="lipo"
12834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12835 break 2
12836 fi
12837 done
12838 done
12839 IFS=$as_save_IFS
12840
12841 fi ;;
12842 esac
12843 fi
12844 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12845 if test -n "$ac_ct_LIPO"; then
12846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12847 printf "%s\n" "$ac_ct_LIPO" >&6; }
12848 else
12849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 printf "%s\n" "no" >&6; }
12851 fi
12852
12853 if test "x$ac_ct_LIPO" = x; then
12854 LIPO=":"
12855 else
12856 case $cross_compiling:$ac_tool_warned in
12857 yes:)
12858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12859 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12860 ac_tool_warned=yes ;;
12861 esac
12862 LIPO=$ac_ct_LIPO
12863 fi
12864 else
12865 LIPO="$ac_cv_prog_LIPO"
12866 fi
12867
12868 if test -n "$ac_tool_prefix"; then
12869 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12870 set dummy ${ac_tool_prefix}otool; ac_word=$2
12871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12872 printf %s "checking for $ac_word... " >&6; }
12873 if test ${ac_cv_prog_OTOOL+y}
12874 then :
12875 printf %s "(cached) " >&6
12876 else case e in #(
12877 e) if test -n "$OTOOL"; then
12878 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12879 else
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12882 do
12883 IFS=$as_save_IFS
12884 case $as_dir in #(((
12885 '') as_dir=./ ;;
12886 */) ;;
12887 *) as_dir=$as_dir/ ;;
12888 esac
12889 for ac_exec_ext in '' $ac_executable_extensions; do
12890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12891 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12893 break 2
12894 fi
12895 done
12896 done
12897 IFS=$as_save_IFS
12898
12899 fi ;;
12900 esac
12901 fi
12902 OTOOL=$ac_cv_prog_OTOOL
12903 if test -n "$OTOOL"; then
12904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12905 printf "%s\n" "$OTOOL" >&6; }
12906 else
12907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908 printf "%s\n" "no" >&6; }
12909 fi
12910
12911
12912 fi
12913 if test -z "$ac_cv_prog_OTOOL"; then
12914 ac_ct_OTOOL=$OTOOL
12915 # Extract the first word of "otool", so it can be a program name with args.
12916 set dummy otool; ac_word=$2
12917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12918 printf %s "checking for $ac_word... " >&6; }
12919 if test ${ac_cv_prog_ac_ct_OTOOL+y}
12920 then :
12921 printf %s "(cached) " >&6
12922 else case e in #(
12923 e) if test -n "$ac_ct_OTOOL"; then
12924 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12925 else
12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927 for as_dir in $PATH
12928 do
12929 IFS=$as_save_IFS
12930 case $as_dir in #(((
12931 '') as_dir=./ ;;
12932 */) ;;
12933 *) as_dir=$as_dir/ ;;
12934 esac
12935 for ac_exec_ext in '' $ac_executable_extensions; do
12936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12937 ac_cv_prog_ac_ct_OTOOL="otool"
12938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12939 break 2
12940 fi
12941 done
12942 done
12943 IFS=$as_save_IFS
12944
12945 fi ;;
12946 esac
12947 fi
12948 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12949 if test -n "$ac_ct_OTOOL"; then
12950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12951 printf "%s\n" "$ac_ct_OTOOL" >&6; }
12952 else
12953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954 printf "%s\n" "no" >&6; }
12955 fi
12956
12957 if test "x$ac_ct_OTOOL" = x; then
12958 OTOOL=":"
12959 else
12960 case $cross_compiling:$ac_tool_warned in
12961 yes:)
12962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12963 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12964 ac_tool_warned=yes ;;
12965 esac
12966 OTOOL=$ac_ct_OTOOL
12967 fi
12968 else
12969 OTOOL="$ac_cv_prog_OTOOL"
12970 fi
12971
12972 if test -n "$ac_tool_prefix"; then
12973 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12974 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12976 printf %s "checking for $ac_word... " >&6; }
12977 if test ${ac_cv_prog_OTOOL64+y}
12978 then :
12979 printf %s "(cached) " >&6
12980 else case e in #(
12981 e) if test -n "$OTOOL64"; then
12982 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12983 else
12984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985 for as_dir in $PATH
12986 do
12987 IFS=$as_save_IFS
12988 case $as_dir in #(((
12989 '') as_dir=./ ;;
12990 */) ;;
12991 *) as_dir=$as_dir/ ;;
12992 esac
12993 for ac_exec_ext in '' $ac_executable_extensions; do
12994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12995 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12997 break 2
12998 fi
12999 done
13000 done
13001 IFS=$as_save_IFS
13002
13003 fi ;;
13004 esac
13005 fi
13006 OTOOL64=$ac_cv_prog_OTOOL64
13007 if test -n "$OTOOL64"; then
13008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13009 printf "%s\n" "$OTOOL64" >&6; }
13010 else
13011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13012 printf "%s\n" "no" >&6; }
13013 fi
13014
13015
13016 fi
13017 if test -z "$ac_cv_prog_OTOOL64"; then
13018 ac_ct_OTOOL64=$OTOOL64
13019 # Extract the first word of "otool64", so it can be a program name with args.
13020 set dummy otool64; ac_word=$2
13021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13022 printf %s "checking for $ac_word... " >&6; }
13023 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
13024 then :
13025 printf %s "(cached) " >&6
13026 else case e in #(
13027 e) if test -n "$ac_ct_OTOOL64"; then
13028 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13029 else
13030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13031 for as_dir in $PATH
13032 do
13033 IFS=$as_save_IFS
13034 case $as_dir in #(((
13035 '') as_dir=./ ;;
13036 */) ;;
13037 *) as_dir=$as_dir/ ;;
13038 esac
13039 for ac_exec_ext in '' $ac_executable_extensions; do
13040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13041 ac_cv_prog_ac_ct_OTOOL64="otool64"
13042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13043 break 2
13044 fi
13045 done
13046 done
13047 IFS=$as_save_IFS
13048
13049 fi ;;
13050 esac
13051 fi
13052 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13053 if test -n "$ac_ct_OTOOL64"; then
13054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13055 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
13056 else
13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058 printf "%s\n" "no" >&6; }
13059 fi
13060
13061 if test "x$ac_ct_OTOOL64" = x; then
13062 OTOOL64=":"
13063 else
13064 case $cross_compiling:$ac_tool_warned in
13065 yes:)
13066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13067 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13068 ac_tool_warned=yes ;;
13069 esac
13070 OTOOL64=$ac_ct_OTOOL64
13071 fi
13072 else
13073 OTOOL64="$ac_cv_prog_OTOOL64"
13074 fi
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13103 printf %s "checking for -single_module linker flag... " >&6; }
13104 if test ${lt_cv_apple_cc_single_mod+y}
13105 then :
13106 printf %s "(cached) " >&6
13107 else case e in #(
13108 e) lt_cv_apple_cc_single_mod=no
13109 if test -z "$LT_MULTI_MODULE"; then
13110 # By default we will add the -single_module flag. You can override
13111 # by either setting the environment variable LT_MULTI_MODULE
13112 # non-empty at configure time, or by adding -multi_module to the
13113 # link flags.
13114 rm -rf libconftest.dylib*
13115 echo "int foo(void){return 1;}" > conftest.c
13116 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13117 -dynamiclib -Wl,-single_module conftest.c" >&5
13118 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13119 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13120 _lt_result=$?
13121 # If there is a non-empty error log, and "single_module"
13122 # appears in it, assume the flag caused a linker warning
13123 if test -s conftest.err && $GREP single_module conftest.err; then
13124 cat conftest.err >&5
13125 # Otherwise, if the output was created with a 0 exit code from
13126 # the compiler, it worked.
13127 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
13128 lt_cv_apple_cc_single_mod=yes
13129 else
13130 cat conftest.err >&5
13131 fi
13132 rm -rf libconftest.dylib*
13133 rm -f conftest.*
13134 fi ;;
13135 esac
13136 fi
13137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13138 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
13139
13140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13141 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
13142 if test ${lt_cv_ld_exported_symbols_list+y}
13143 then :
13144 printf %s "(cached) " >&6
13145 else case e in #(
13146 e) lt_cv_ld_exported_symbols_list=no
13147 save_LDFLAGS=$LDFLAGS
13148 echo "_main" > conftest.sym
13149 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13152
13153 int
13154 main (void)
13155 {
13156
13157 ;
13158 return 0;
13159 }
13160 _ACEOF
13161 if ac_fn_c_try_link "$LINENO"
13162 then :
13163 lt_cv_ld_exported_symbols_list=yes
13164 else case e in #(
13165 e) lt_cv_ld_exported_symbols_list=no ;;
13166 esac
13167 fi
13168 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13169 conftest$ac_exeext conftest.$ac_ext
13170 LDFLAGS=$save_LDFLAGS
13171 ;;
13172 esac
13173 fi
13174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13175 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
13176
13177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13178 printf %s "checking for -force_load linker flag... " >&6; }
13179 if test ${lt_cv_ld_force_load+y}
13180 then :
13181 printf %s "(cached) " >&6
13182 else case e in #(
13183 e) lt_cv_ld_force_load=no
13184 cat > conftest.c << _LT_EOF
13185 int forced_loaded() { return 2;}
13186 _LT_EOF
13187 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13188 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13189 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
13190 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
13191 echo "$RANLIB libconftest.a" >&5
13192 $RANLIB libconftest.a 2>&5
13193 cat > conftest.c << _LT_EOF
13194 int main() { return 0;}
13195 _LT_EOF
13196 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13197 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13198 _lt_result=$?
13199 if test -s conftest.err && $GREP force_load conftest.err; then
13200 cat conftest.err >&5
13201 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
13202 lt_cv_ld_force_load=yes
13203 else
13204 cat conftest.err >&5
13205 fi
13206 rm -f conftest.err libconftest.a conftest conftest.c
13207 rm -rf conftest.dSYM
13208 ;;
13209 esac
13210 fi
13211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13212 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
13213 case $host_os in
13214 rhapsody* | darwin1.[012])
13215 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
13216 darwin1.*)
13217 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13218 darwin*)
13219 case $MACOSX_DEPLOYMENT_TARGET,$host in
13220 10.[012],*|,*powerpc*-darwin[5-8]*)
13221 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13222 *)
13223 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
13224 esac
13225 ;;
13226 esac
13227 if test yes = "$lt_cv_apple_cc_single_mod"; then
13228 _lt_dar_single_mod='$single_module'
13229 fi
13230 if test yes = "$lt_cv_ld_exported_symbols_list"; then
13231 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
13232 else
13233 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
13234 fi
13235 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
13236 _lt_dsymutil='~$DSYMUTIL $lib || :'
13237 else
13238 _lt_dsymutil=
13239 fi
13240 ;;
13241 esac
13242
13243 # func_munge_path_list VARIABLE PATH
13244 # -----------------------------------
13245 # VARIABLE is name of variable containing _space_ separated list of
13246 # directories to be munged by the contents of PATH, which is string
13247 # having a format:
13248 # "DIR[:DIR]:"
13249 # string "DIR[ DIR]" will be prepended to VARIABLE
13250 # ":DIR[:DIR]"
13251 # string "DIR[ DIR]" will be appended to VARIABLE
13252 # "DIRP[:DIRP]::[DIRA:]DIRA"
13253 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
13254 # "DIRA[ DIRA]" will be appended to VARIABLE
13255 # "DIR[:DIR]"
13256 # VARIABLE will be replaced by "DIR[ DIR]"
13257 func_munge_path_list ()
13258 {
13259 case x$2 in
13260 x)
13261 ;;
13262 *:)
13263 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
13264 ;;
13265 x:*)
13266 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
13267 ;;
13268 *::*)
13269 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
13270 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
13271 ;;
13272 *)
13273 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
13274 ;;
13275 esac
13276 }
13277
13278 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13279 "
13280 if test "x$ac_cv_header_dlfcn_h" = xyes
13281 then :
13282 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
13283
13284 fi
13285
13286
13287
13288
13289
13290 # Set options
13291 # Check whether --enable-static was given.
13292 if test ${enable_static+y}
13293 then :
13294 enableval=$enable_static; p=${PACKAGE-default}
13295 case $enableval in
13296 yes) enable_static=yes ;;
13297 no) enable_static=no ;;
13298 *)
13299 enable_static=no
13300 # Look at the argument we got. We use all the common list separators.
13301 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13302 for pkg in $enableval; do
13303 IFS=$lt_save_ifs
13304 if test "X$pkg" = "X$p"; then
13305 enable_static=yes
13306 fi
13307 done
13308 IFS=$lt_save_ifs
13309 ;;
13310 esac
13311 else case e in #(
13312 e) enable_static=no ;;
13313 esac
13314 fi
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325 enable_dlopen=no
13326
13327
13328 enable_win32_dll=no
13329
13330
13331 # Check whether --enable-shared was given.
13332 if test ${enable_shared+y}
13333 then :
13334 enableval=$enable_shared; p=${PACKAGE-default}
13335 case $enableval in
13336 yes) enable_shared=yes ;;
13337 no) enable_shared=no ;;
13338 *)
13339 enable_shared=no
13340 # Look at the argument we got. We use all the common list separators.
13341 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13342 for pkg in $enableval; do
13343 IFS=$lt_save_ifs
13344 if test "X$pkg" = "X$p"; then
13345 enable_shared=yes
13346 fi
13347 done
13348 IFS=$lt_save_ifs
13349 ;;
13350 esac
13351 else case e in #(
13352 e) enable_shared=yes ;;
13353 esac
13354 fi
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366 # Check whether --with-pic was given.
13367 if test ${with_pic+y}
13368 then :
13369 withval=$with_pic; lt_p=${PACKAGE-default}
13370 case $withval in
13371 yes|no) pic_mode=$withval ;;
13372 *)
13373 pic_mode=default
13374 # Look at the argument we got. We use all the common list separators.
13375 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13376 for lt_pkg in $withval; do
13377 IFS=$lt_save_ifs
13378 if test "X$lt_pkg" = "X$lt_p"; then
13379 pic_mode=yes
13380 fi
13381 done
13382 IFS=$lt_save_ifs
13383 ;;
13384 esac
13385 else case e in #(
13386 e) pic_mode=default ;;
13387 esac
13388 fi
13389
13390
13391
13392
13393
13394
13395
13396
13397 # Check whether --enable-fast-install was given.
13398 if test ${enable_fast_install+y}
13399 then :
13400 enableval=$enable_fast_install; p=${PACKAGE-default}
13401 case $enableval in
13402 yes) enable_fast_install=yes ;;
13403 no) enable_fast_install=no ;;
13404 *)
13405 enable_fast_install=no
13406 # Look at the argument we got. We use all the common list separators.
13407 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13408 for pkg in $enableval; do
13409 IFS=$lt_save_ifs
13410 if test "X$pkg" = "X$p"; then
13411 enable_fast_install=yes
13412 fi
13413 done
13414 IFS=$lt_save_ifs
13415 ;;
13416 esac
13417 else case e in #(
13418 e) enable_fast_install=yes ;;
13419 esac
13420 fi
13421
13422
13423
13424
13425
13426
13427
13428
13429 shared_archive_member_spec=
13430 case $host,$enable_shared in
13431 power*-*-aix[5-9]*,yes)
13432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
13433 printf %s "checking which variant of shared library versioning to provide... " >&6; }
13434
13435 # Check whether --with-aix-soname was given.
13436 if test ${with_aix_soname+y}
13437 then :
13438 withval=$with_aix_soname; case $withval in
13439 aix|svr4|both)
13440 ;;
13441 *)
13442 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
13443 ;;
13444 esac
13445 lt_cv_with_aix_soname=$with_aix_soname
13446 else case e in #(
13447 e) if test ${lt_cv_with_aix_soname+y}
13448 then :
13449 printf %s "(cached) " >&6
13450 else case e in #(
13451 e) lt_cv_with_aix_soname=aix ;;
13452 esac
13453 fi
13454
13455 with_aix_soname=$lt_cv_with_aix_soname ;;
13456 esac
13457 fi
13458
13459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
13460 printf "%s\n" "$with_aix_soname" >&6; }
13461 if test aix != "$with_aix_soname"; then
13462 # For the AIX way of multilib, we name the shared archive member
13463 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
13464 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
13465 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
13466 # the AIX toolchain works better with OBJECT_MODE set (default 32).
13467 if test 64 = "${OBJECT_MODE-32}"; then
13468 shared_archive_member_spec=shr_64
13469 else
13470 shared_archive_member_spec=shr
13471 fi
13472 fi
13473 ;;
13474 *)
13475 with_aix_soname=aix
13476 ;;
13477 esac
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488 # This can be used to rebuild libtool when needed
13489 LIBTOOL_DEPS=$ltmain
13490
13491 # Always use our own libtool.
13492 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523 test -z "$LN_S" && LN_S="ln -s"
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538 if test -n "${ZSH_VERSION+set}"; then
13539 setopt NO_GLOB_SUBST
13540 fi
13541
13542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13543 printf %s "checking for objdir... " >&6; }
13544 if test ${lt_cv_objdir+y}
13545 then :
13546 printf %s "(cached) " >&6
13547 else case e in #(
13548 e) rm -f .libs 2>/dev/null
13549 mkdir .libs 2>/dev/null
13550 if test -d .libs; then
13551 lt_cv_objdir=.libs
13552 else
13553 # MS-DOS does not allow filenames that begin with a dot.
13554 lt_cv_objdir=_libs
13555 fi
13556 rmdir .libs 2>/dev/null ;;
13557 esac
13558 fi
13559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13560 printf "%s\n" "$lt_cv_objdir" >&6; }
13561 objdir=$lt_cv_objdir
13562
13563
13564
13565
13566
13567 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
13568
13569
13570
13571
13572 case $host_os in
13573 aix3*)
13574 # AIX sometimes has problems with the GCC collect2 program. For some
13575 # reason, if we set the COLLECT_NAMES environment variable, the problems
13576 # vanish in a puff of smoke.
13577 if test set != "${COLLECT_NAMES+set}"; then
13578 COLLECT_NAMES=
13579 export COLLECT_NAMES
13580 fi
13581 ;;
13582 esac
13583
13584 # Global variables:
13585 ofile=libtool
13586 can_build_shared=yes
13587
13588 # All known linkers require a '.a' archive for static linking (except MSVC and
13589 # ICC, which need '.lib').
13590 libext=a
13591
13592 with_gnu_ld=$lt_cv_prog_gnu_ld
13593
13594 old_CC=$CC
13595 old_CFLAGS=$CFLAGS
13596
13597 # Set sane defaults for various variables
13598 test -z "$CC" && CC=cc
13599 test -z "$LTCC" && LTCC=$CC
13600 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13601 test -z "$LD" && LD=ld
13602 test -z "$ac_objext" && ac_objext=o
13603
13604 func_cc_basename $compiler
13605 cc_basename=$func_cc_basename_result
13606
13607
13608 # Only perform the check for file, if the check method requires it
13609 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13610 case $deplibs_check_method in
13611 file_magic*)
13612 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13614 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
13615 if test ${lt_cv_path_MAGIC_CMD+y}
13616 then :
13617 printf %s "(cached) " >&6
13618 else case e in #(
13619 e) case $MAGIC_CMD in
13620 [\\/*] | ?:[\\/]*)
13621 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13622 ;;
13623 *)
13624 lt_save_MAGIC_CMD=$MAGIC_CMD
13625 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13626 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13627 for ac_dir in $ac_dummy; do
13628 IFS=$lt_save_ifs
13629 test -z "$ac_dir" && ac_dir=.
13630 if test -f "$ac_dir/${ac_tool_prefix}file"; then
13631 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
13632 if test -n "$file_magic_test_file"; then
13633 case $deplibs_check_method in
13634 "file_magic "*)
13635 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13636 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13637 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13638 $EGREP "$file_magic_regex" > /dev/null; then
13639 :
13640 else
13641 cat <<_LT_EOF 1>&2
13642
13643 *** Warning: the command libtool uses to detect shared libraries,
13644 *** $file_magic_cmd, produces output that libtool cannot recognize.
13645 *** The result is that libtool may fail to recognize shared libraries
13646 *** as such. This will affect the creation of libtool libraries that
13647 *** depend on shared libraries, but programs linked with such libtool
13648 *** libraries will work regardless of this problem. Nevertheless, you
13649 *** may want to report the problem to your system manager and/or to
13650 *** [email protected]
13651
13652 _LT_EOF
13653 fi ;;
13654 esac
13655 fi
13656 break
13657 fi
13658 done
13659 IFS=$lt_save_ifs
13660 MAGIC_CMD=$lt_save_MAGIC_CMD
13661 ;;
13662 esac ;;
13663 esac
13664 fi
13665
13666 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13667 if test -n "$MAGIC_CMD"; then
13668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13669 printf "%s\n" "$MAGIC_CMD" >&6; }
13670 else
13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13672 printf "%s\n" "no" >&6; }
13673 fi
13674
13675
13676
13677
13678
13679 if test -z "$lt_cv_path_MAGIC_CMD"; then
13680 if test -n "$ac_tool_prefix"; then
13681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13682 printf %s "checking for file... " >&6; }
13683 if test ${lt_cv_path_MAGIC_CMD+y}
13684 then :
13685 printf %s "(cached) " >&6
13686 else case e in #(
13687 e) case $MAGIC_CMD in
13688 [\\/*] | ?:[\\/]*)
13689 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13690 ;;
13691 *)
13692 lt_save_MAGIC_CMD=$MAGIC_CMD
13693 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13694 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13695 for ac_dir in $ac_dummy; do
13696 IFS=$lt_save_ifs
13697 test -z "$ac_dir" && ac_dir=.
13698 if test -f "$ac_dir/file"; then
13699 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
13700 if test -n "$file_magic_test_file"; then
13701 case $deplibs_check_method in
13702 "file_magic "*)
13703 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13704 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13705 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13706 $EGREP "$file_magic_regex" > /dev/null; then
13707 :
13708 else
13709 cat <<_LT_EOF 1>&2
13710
13711 *** Warning: the command libtool uses to detect shared libraries,
13712 *** $file_magic_cmd, produces output that libtool cannot recognize.
13713 *** The result is that libtool may fail to recognize shared libraries
13714 *** as such. This will affect the creation of libtool libraries that
13715 *** depend on shared libraries, but programs linked with such libtool
13716 *** libraries will work regardless of this problem. Nevertheless, you
13717 *** may want to report the problem to your system manager and/or to
13718 *** [email protected]
13719
13720 _LT_EOF
13721 fi ;;
13722 esac
13723 fi
13724 break
13725 fi
13726 done
13727 IFS=$lt_save_ifs
13728 MAGIC_CMD=$lt_save_MAGIC_CMD
13729 ;;
13730 esac ;;
13731 esac
13732 fi
13733
13734 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13735 if test -n "$MAGIC_CMD"; then
13736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13737 printf "%s\n" "$MAGIC_CMD" >&6; }
13738 else
13739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13740 printf "%s\n" "no" >&6; }
13741 fi
13742
13743
13744 else
13745 MAGIC_CMD=:
13746 fi
13747 fi
13748
13749 fi
13750 ;;
13751 esac
13752
13753 # Use C for the default configuration in the libtool script
13754
13755 lt_save_CC=$CC
13756 ac_ext=c
13757 ac_cpp='$CPP $CPPFLAGS'
13758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13761
13762
13763 # Source file extension for C test sources.
13764 ac_ext=c
13765
13766 # Object file extension for compiled C test sources.
13767 objext=o
13768 objext=$objext
13769
13770 # Code to be used in simple compile tests
13771 lt_simple_compile_test_code="int some_variable = 0;"
13772
13773 # Code to be used in simple link tests
13774 lt_simple_link_test_code='int main(){return(0);}'
13775
13776
13777
13778
13779
13780
13781
13782 # If no C compiler was specified, use CC.
13783 LTCC=${LTCC-"$CC"}
13784
13785 # If no C compiler flags were specified, use CFLAGS.
13786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13787
13788 # Allow CC to be a program name with arguments.
13789 compiler=$CC
13790
13791 # Save the default compiler, since it gets overwritten when the other
13792 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13793 compiler_DEFAULT=$CC
13794
13795 # save warnings/boilerplate of simple test code
13796 ac_outfile=conftest.$ac_objext
13797 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13798 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13799 _lt_compiler_boilerplate=`cat conftest.err`
13800 $RM conftest*
13801
13802 ac_outfile=conftest.$ac_objext
13803 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13804 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13805 _lt_linker_boilerplate=`cat conftest.err`
13806 $RM -r conftest*
13807
13808
13809 ## CAVEAT EMPTOR:
13810 ## There is no encapsulation within the following macros, do not change
13811 ## the running order or otherwise move them around unless you know exactly
13812 ## what you are doing...
13813 if test -n "$compiler"; then
13814
13815 lt_prog_compiler_no_builtin_flag=
13816
13817 if test yes = "$GCC"; then
13818 case $cc_basename in
13819 nvcc*)
13820 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13821 *)
13822 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13823 esac
13824
13825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13826 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13827 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
13828 then :
13829 printf %s "(cached) " >&6
13830 else case e in #(
13831 e) lt_cv_prog_compiler_rtti_exceptions=no
13832 ac_outfile=conftest.$ac_objext
13833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13834 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
13835 # Insert the option either (1) after the last *FLAGS variable, or
13836 # (2) before a word containing "conftest.", or (3) at the end.
13837 # Note that $ac_compile itself does not contain backslashes and begins
13838 # with a dollar sign (not a hyphen), so the echo should work correctly.
13839 # The option is referenced via a variable to avoid confusing sed.
13840 lt_compile=`echo "$ac_compile" | $SED \
13841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13843 -e 's:$: $lt_compiler_flag:'`
13844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13845 (eval "$lt_compile" 2>conftest.err)
13846 ac_status=$?
13847 cat conftest.err >&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 if (exit $ac_status) && test -s "$ac_outfile"; then
13850 # The compiler can only warn and ignore the option if not recognized
13851 # So say no if there are warnings other than the usual output.
13852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13854 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13855 lt_cv_prog_compiler_rtti_exceptions=yes
13856 fi
13857 fi
13858 $RM conftest*
13859 ;;
13860 esac
13861 fi
13862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13863 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13864
13865 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13866 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13867 else
13868 :
13869 fi
13870
13871 fi
13872
13873
13874
13875
13876
13877
13878 lt_prog_compiler_wl=
13879 lt_prog_compiler_pic=
13880 lt_prog_compiler_static=
13881
13882
13883 if test yes = "$GCC"; then
13884 lt_prog_compiler_wl='-Wl,'
13885 lt_prog_compiler_static='-static'
13886
13887 case $host_os in
13888 aix*)
13889 # All AIX code is PIC.
13890 if test ia64 = "$host_cpu"; then
13891 # AIX 5 now supports IA64 processor
13892 lt_prog_compiler_static='-Bstatic'
13893 fi
13894 lt_prog_compiler_pic='-fPIC'
13895 ;;
13896
13897 amigaos*)
13898 case $host_cpu in
13899 powerpc)
13900 # see comment about AmigaOS4 .so support
13901 lt_prog_compiler_pic='-fPIC'
13902 ;;
13903 m68k)
13904 # FIXME: we need at least 68020 code to build shared libraries, but
13905 # adding the '-m68020' flag to GCC prevents building anything better,
13906 # like '-m68040'.
13907 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13908 ;;
13909 esac
13910 ;;
13911
13912 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13913 # PIC is the default for these OSes.
13914 ;;
13915
13916 mingw* | cygwin* | pw32* | os2* | cegcc*)
13917 # This hack is so that the source file can tell whether it is being
13918 # built for inclusion in a dll (and should export symbols for example).
13919 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13920 # (--disable-auto-import) libraries
13921 lt_prog_compiler_pic='-DDLL_EXPORT'
13922 case $host_os in
13923 os2*)
13924 lt_prog_compiler_static='$wl-static'
13925 ;;
13926 esac
13927 ;;
13928
13929 darwin* | rhapsody*)
13930 # PIC is the default on this platform
13931 # Common symbols not allowed in MH_DYLIB files
13932 lt_prog_compiler_pic='-fno-common'
13933 ;;
13934
13935 haiku*)
13936 # PIC is the default for Haiku.
13937 # The "-static" flag exists, but is broken.
13938 lt_prog_compiler_static=
13939 ;;
13940
13941 hpux*)
13942 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13943 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13944 # sets the default TLS model and affects inlining.
13945 case $host_cpu in
13946 hppa*64*)
13947 # +Z the default
13948 ;;
13949 *)
13950 lt_prog_compiler_pic='-fPIC'
13951 ;;
13952 esac
13953 ;;
13954
13955 interix[3-9]*)
13956 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13957 # Instead, we relocate shared libraries at runtime.
13958 ;;
13959
13960 msdosdjgpp*)
13961 # Just because we use GCC doesn't mean we suddenly get shared libraries
13962 # on systems that don't support them.
13963 lt_prog_compiler_can_build_shared=no
13964 enable_shared=no
13965 ;;
13966
13967 *nto* | *qnx*)
13968 # QNX uses GNU C++, but need to define -shared option too, otherwise
13969 # it will coredump.
13970 lt_prog_compiler_pic='-fPIC -shared'
13971 ;;
13972
13973 sysv4*MP*)
13974 if test -d /usr/nec; then
13975 lt_prog_compiler_pic=-Kconform_pic
13976 fi
13977 ;;
13978
13979 *)
13980 lt_prog_compiler_pic='-fPIC'
13981 ;;
13982 esac
13983
13984 case $cc_basename in
13985 nvcc*) # Cuda Compiler Driver 2.2
13986 lt_prog_compiler_wl='-Xlinker '
13987 if test -n "$lt_prog_compiler_pic"; then
13988 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13989 fi
13990 ;;
13991 esac
13992 else
13993 # PORTME Check for flag to pass linker flags through the system compiler.
13994 case $host_os in
13995 aix*)
13996 lt_prog_compiler_wl='-Wl,'
13997 if test ia64 = "$host_cpu"; then
13998 # AIX 5 now supports IA64 processor
13999 lt_prog_compiler_static='-Bstatic'
14000 else
14001 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14002 fi
14003 ;;
14004
14005 darwin* | rhapsody*)
14006 # PIC is the default on this platform
14007 # Common symbols not allowed in MH_DYLIB files
14008 lt_prog_compiler_pic='-fno-common'
14009 case $cc_basename in
14010 nagfor*)
14011 # NAG Fortran compiler
14012 lt_prog_compiler_wl='-Wl,-Wl,,'
14013 lt_prog_compiler_pic='-PIC'
14014 lt_prog_compiler_static='-Bstatic'
14015 ;;
14016 esac
14017 ;;
14018
14019 mingw* | cygwin* | pw32* | os2* | cegcc*)
14020 # This hack is so that the source file can tell whether it is being
14021 # built for inclusion in a dll (and should export symbols for example).
14022 lt_prog_compiler_pic='-DDLL_EXPORT'
14023 case $host_os in
14024 os2*)
14025 lt_prog_compiler_static='$wl-static'
14026 ;;
14027 esac
14028 ;;
14029
14030 hpux9* | hpux10* | hpux11*)
14031 lt_prog_compiler_wl='-Wl,'
14032 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14033 # not for PA HP-UX.
14034 case $host_cpu in
14035 hppa*64*|ia64*)
14036 # +Z the default
14037 ;;
14038 *)
14039 lt_prog_compiler_pic='+Z'
14040 ;;
14041 esac
14042 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14043 lt_prog_compiler_static='$wl-a ${wl}archive'
14044 ;;
14045
14046 irix5* | irix6* | nonstopux*)
14047 lt_prog_compiler_wl='-Wl,'
14048 # PIC (with -KPIC) is the default.
14049 lt_prog_compiler_static='-non_shared'
14050 ;;
14051
14052 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14053 case $cc_basename in
14054 # old Intel for x86_64, which still supported -KPIC.
14055 ecc*)
14056 lt_prog_compiler_wl='-Wl,'
14057 lt_prog_compiler_pic='-KPIC'
14058 lt_prog_compiler_static='-static'
14059 ;;
14060 # flang / f18. f95 an alias for gfortran or flang on Debian
14061 flang* | f18* | f95*)
14062 lt_prog_compiler_wl='-Wl,'
14063 lt_prog_compiler_pic='-fPIC'
14064 lt_prog_compiler_static='-static'
14065 ;;
14066 # icc used to be incompatible with GCC.
14067 # ICC 10 doesn't accept -KPIC any more.
14068 icc* | ifort*)
14069 lt_prog_compiler_wl='-Wl,'
14070 lt_prog_compiler_pic='-fPIC'
14071 lt_prog_compiler_static='-static'
14072 ;;
14073 # Lahey Fortran 8.1.
14074 lf95*)
14075 lt_prog_compiler_wl='-Wl,'
14076 lt_prog_compiler_pic='--shared'
14077 lt_prog_compiler_static='--static'
14078 ;;
14079 nagfor*)
14080 # NAG Fortran compiler
14081 lt_prog_compiler_wl='-Wl,-Wl,,'
14082 lt_prog_compiler_pic='-PIC'
14083 lt_prog_compiler_static='-Bstatic'
14084 ;;
14085 tcc*)
14086 # Fabrice Bellard et al's Tiny C Compiler
14087 lt_prog_compiler_wl='-Wl,'
14088 lt_prog_compiler_pic='-fPIC'
14089 lt_prog_compiler_static='-static'
14090 ;;
14091 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14092 # Portland Group compilers (*not* the Pentium gcc compiler,
14093 # which looks to be a dead project)
14094 lt_prog_compiler_wl='-Wl,'
14095 lt_prog_compiler_pic='-fpic'
14096 lt_prog_compiler_static='-Bstatic'
14097 ;;
14098 ccc*)
14099 lt_prog_compiler_wl='-Wl,'
14100 # All Alpha code is PIC.
14101 lt_prog_compiler_static='-non_shared'
14102 ;;
14103 xl* | bgxl* | bgf* | mpixl*)
14104 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14105 lt_prog_compiler_wl='-Wl,'
14106 lt_prog_compiler_pic='-qpic'
14107 lt_prog_compiler_static='-qstaticlink'
14108 ;;
14109 *)
14110 case `$CC -V 2>&1 | $SED 5q` in
14111 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14112 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14113 lt_prog_compiler_pic='-KPIC'
14114 lt_prog_compiler_static='-Bstatic'
14115 lt_prog_compiler_wl=''
14116 ;;
14117 *Sun\ F* | *Sun*Fortran*)
14118 lt_prog_compiler_pic='-KPIC'
14119 lt_prog_compiler_static='-Bstatic'
14120 lt_prog_compiler_wl='-Qoption ld '
14121 ;;
14122 *Sun\ C*)
14123 # Sun C 5.9
14124 lt_prog_compiler_pic='-KPIC'
14125 lt_prog_compiler_static='-Bstatic'
14126 lt_prog_compiler_wl='-Wl,'
14127 ;;
14128 *Intel*\ [CF]*Compiler*)
14129 lt_prog_compiler_wl='-Wl,'
14130 lt_prog_compiler_pic='-fPIC'
14131 lt_prog_compiler_static='-static'
14132 ;;
14133 *Portland\ Group*)
14134 lt_prog_compiler_wl='-Wl,'
14135 lt_prog_compiler_pic='-fpic'
14136 lt_prog_compiler_static='-Bstatic'
14137 ;;
14138 esac
14139 ;;
14140 esac
14141 ;;
14142
14143 newsos6)
14144 lt_prog_compiler_pic='-KPIC'
14145 lt_prog_compiler_static='-Bstatic'
14146 ;;
14147
14148 *nto* | *qnx*)
14149 # QNX uses GNU C++, but need to define -shared option too, otherwise
14150 # it will coredump.
14151 lt_prog_compiler_pic='-fPIC -shared'
14152 ;;
14153
14154 osf3* | osf4* | osf5*)
14155 lt_prog_compiler_wl='-Wl,'
14156 # All OSF/1 code is PIC.
14157 lt_prog_compiler_static='-non_shared'
14158 ;;
14159
14160 rdos*)
14161 lt_prog_compiler_static='-non_shared'
14162 ;;
14163
14164 solaris*)
14165 lt_prog_compiler_pic='-KPIC'
14166 lt_prog_compiler_static='-Bstatic'
14167 case $cc_basename in
14168 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14169 lt_prog_compiler_wl='-Qoption ld ';;
14170 *)
14171 lt_prog_compiler_wl='-Wl,';;
14172 esac
14173 ;;
14174
14175 sunos4*)
14176 lt_prog_compiler_wl='-Qoption ld '
14177 lt_prog_compiler_pic='-PIC'
14178 lt_prog_compiler_static='-Bstatic'
14179 ;;
14180
14181 sysv4 | sysv4.2uw2* | sysv4.3*)
14182 lt_prog_compiler_wl='-Wl,'
14183 lt_prog_compiler_pic='-KPIC'
14184 lt_prog_compiler_static='-Bstatic'
14185 ;;
14186
14187 sysv4*MP*)
14188 if test -d /usr/nec; then
14189 lt_prog_compiler_pic='-Kconform_pic'
14190 lt_prog_compiler_static='-Bstatic'
14191 fi
14192 ;;
14193
14194 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14195 lt_prog_compiler_wl='-Wl,'
14196 lt_prog_compiler_pic='-KPIC'
14197 lt_prog_compiler_static='-Bstatic'
14198 ;;
14199
14200 unicos*)
14201 lt_prog_compiler_wl='-Wl,'
14202 lt_prog_compiler_can_build_shared=no
14203 ;;
14204
14205 uts4*)
14206 lt_prog_compiler_pic='-pic'
14207 lt_prog_compiler_static='-Bstatic'
14208 ;;
14209
14210 *)
14211 lt_prog_compiler_can_build_shared=no
14212 ;;
14213 esac
14214 fi
14215
14216 case $host_os in
14217 # For platforms that do not support PIC, -DPIC is meaningless:
14218 *djgpp*)
14219 lt_prog_compiler_pic=
14220 ;;
14221 *)
14222 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14223 ;;
14224 esac
14225
14226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14227 printf %s "checking for $compiler option to produce PIC... " >&6; }
14228 if test ${lt_cv_prog_compiler_pic+y}
14229 then :
14230 printf %s "(cached) " >&6
14231 else case e in #(
14232 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14233 esac
14234 fi
14235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14236 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14237 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14238
14239 #
14240 # Check to make sure the PIC flag actually works.
14241 #
14242 if test -n "$lt_prog_compiler_pic"; then
14243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14244 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14245 if test ${lt_cv_prog_compiler_pic_works+y}
14246 then :
14247 printf %s "(cached) " >&6
14248 else case e in #(
14249 e) lt_cv_prog_compiler_pic_works=no
14250 ac_outfile=conftest.$ac_objext
14251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14252 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14253 # Insert the option either (1) after the last *FLAGS variable, or
14254 # (2) before a word containing "conftest.", or (3) at the end.
14255 # Note that $ac_compile itself does not contain backslashes and begins
14256 # with a dollar sign (not a hyphen), so the echo should work correctly.
14257 # The option is referenced via a variable to avoid confusing sed.
14258 lt_compile=`echo "$ac_compile" | $SED \
14259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14261 -e 's:$: $lt_compiler_flag:'`
14262 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14263 (eval "$lt_compile" 2>conftest.err)
14264 ac_status=$?
14265 cat conftest.err >&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 if (exit $ac_status) && test -s "$ac_outfile"; then
14268 # The compiler can only warn and ignore the option if not recognized
14269 # So say no if there are warnings other than the usual output.
14270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14272 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14273 lt_cv_prog_compiler_pic_works=yes
14274 fi
14275 fi
14276 $RM conftest*
14277 ;;
14278 esac
14279 fi
14280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14281 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14282
14283 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14284 case $lt_prog_compiler_pic in
14285 "" | " "*) ;;
14286 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14287 esac
14288 else
14289 lt_prog_compiler_pic=
14290 lt_prog_compiler_can_build_shared=no
14291 fi
14292
14293 fi
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305 #
14306 # Check to make sure the static flag actually works.
14307 #
14308 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14310 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14311 if test ${lt_cv_prog_compiler_static_works+y}
14312 then :
14313 printf %s "(cached) " >&6
14314 else case e in #(
14315 e) lt_cv_prog_compiler_static_works=no
14316 save_LDFLAGS=$LDFLAGS
14317 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14318 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14319 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14320 # The linker can only warn and ignore the option if not recognized
14321 # So say no if there are warnings
14322 if test -s conftest.err; then
14323 # Append any errors to the config.log.
14324 cat conftest.err 1>&5
14325 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14327 if diff conftest.exp conftest.er2 >/dev/null; then
14328 lt_cv_prog_compiler_static_works=yes
14329 fi
14330 else
14331 lt_cv_prog_compiler_static_works=yes
14332 fi
14333 fi
14334 $RM -r conftest*
14335 LDFLAGS=$save_LDFLAGS
14336 ;;
14337 esac
14338 fi
14339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14340 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14341
14342 if test yes = "$lt_cv_prog_compiler_static_works"; then
14343 :
14344 else
14345 lt_prog_compiler_static=
14346 fi
14347
14348
14349
14350
14351
14352
14353
14354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14355 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14356 if test ${lt_cv_prog_compiler_c_o+y}
14357 then :
14358 printf %s "(cached) " >&6
14359 else case e in #(
14360 e) lt_cv_prog_compiler_c_o=no
14361 $RM -r conftest 2>/dev/null
14362 mkdir conftest
14363 cd conftest
14364 mkdir out
14365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14366
14367 lt_compiler_flag="-o out/conftest2.$ac_objext"
14368 # Insert the option either (1) after the last *FLAGS variable, or
14369 # (2) before a word containing "conftest.", or (3) at the end.
14370 # Note that $ac_compile itself does not contain backslashes and begins
14371 # with a dollar sign (not a hyphen), so the echo should work correctly.
14372 lt_compile=`echo "$ac_compile" | $SED \
14373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14375 -e 's:$: $lt_compiler_flag:'`
14376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14377 (eval "$lt_compile" 2>out/conftest.err)
14378 ac_status=$?
14379 cat out/conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14382 then
14383 # The compiler can only warn and ignore the option if not recognized
14384 # So say no if there are warnings
14385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14386 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14387 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14388 lt_cv_prog_compiler_c_o=yes
14389 fi
14390 fi
14391 chmod u+w . 2>&5
14392 $RM conftest*
14393 # SGI C++ compiler will create directory out/ii_files/ for
14394 # template instantiation
14395 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14396 $RM out/* && rmdir out
14397 cd ..
14398 $RM -r conftest
14399 $RM conftest*
14400 ;;
14401 esac
14402 fi
14403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14404 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
14405
14406
14407
14408
14409
14410
14411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14412 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14413 if test ${lt_cv_prog_compiler_c_o+y}
14414 then :
14415 printf %s "(cached) " >&6
14416 else case e in #(
14417 e) lt_cv_prog_compiler_c_o=no
14418 $RM -r conftest 2>/dev/null
14419 mkdir conftest
14420 cd conftest
14421 mkdir out
14422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14423
14424 lt_compiler_flag="-o out/conftest2.$ac_objext"
14425 # Insert the option either (1) after the last *FLAGS variable, or
14426 # (2) before a word containing "conftest.", or (3) at the end.
14427 # Note that $ac_compile itself does not contain backslashes and begins
14428 # with a dollar sign (not a hyphen), so the echo should work correctly.
14429 lt_compile=`echo "$ac_compile" | $SED \
14430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14432 -e 's:$: $lt_compiler_flag:'`
14433 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14434 (eval "$lt_compile" 2>out/conftest.err)
14435 ac_status=$?
14436 cat out/conftest.err >&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14439 then
14440 # The compiler can only warn and ignore the option if not recognized
14441 # So say no if there are warnings
14442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14443 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14444 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14445 lt_cv_prog_compiler_c_o=yes
14446 fi
14447 fi
14448 chmod u+w . 2>&5
14449 $RM conftest*
14450 # SGI C++ compiler will create directory out/ii_files/ for
14451 # template instantiation
14452 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14453 $RM out/* && rmdir out
14454 cd ..
14455 $RM -r conftest
14456 $RM conftest*
14457 ;;
14458 esac
14459 fi
14460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14461 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
14462
14463
14464
14465
14466 hard_links=nottested
14467 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
14468 # do not overwrite the value of need_locks provided by the user
14469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14470 printf %s "checking if we can lock with hard links... " >&6; }
14471 hard_links=yes
14472 $RM conftest*
14473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14474 touch conftest.a
14475 ln conftest.a conftest.b 2>&5 || hard_links=no
14476 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14478 printf "%s\n" "$hard_links" >&6; }
14479 if test no = "$hard_links"; then
14480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14481 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14482 need_locks=warn
14483 fi
14484 else
14485 need_locks=no
14486 fi
14487
14488
14489
14490
14491
14492
14493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14494 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14495
14496 runpath_var=
14497 allow_undefined_flag=
14498 always_export_symbols=no
14499 archive_cmds=
14500 archive_expsym_cmds=
14501 compiler_needs_object=no
14502 enable_shared_with_static_runtimes=no
14503 export_dynamic_flag_spec=
14504 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14505 hardcode_automatic=no
14506 hardcode_direct=no
14507 hardcode_direct_absolute=no
14508 hardcode_libdir_flag_spec=
14509 hardcode_libdir_separator=
14510 hardcode_minus_L=no
14511 hardcode_shlibpath_var=unsupported
14512 inherit_rpath=no
14513 link_all_deplibs=unknown
14514 module_cmds=
14515 module_expsym_cmds=
14516 old_archive_from_new_cmds=
14517 old_archive_from_expsyms_cmds=
14518 thread_safe_flag_spec=
14519 whole_archive_flag_spec=
14520 # include_expsyms should be a list of space-separated symbols to be *always*
14521 # included in the symbol list
14522 include_expsyms=
14523 # exclude_expsyms can be an extended regexp of symbols to exclude
14524 # it will be wrapped by ' (' and ')$', so one must not match beginning or
14525 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
14526 # as well as any symbol that contains 'd'.
14527 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14528 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14529 # platforms (ab)use it in PIC code, but their linkers get confused if
14530 # the symbol is explicitly referenced. Since portable code cannot
14531 # rely on this symbol name, it's probably fine to never include it in
14532 # preloaded symbol tables.
14533 # Exclude shared library initialization/finalization symbols.
14534 extract_expsyms_cmds=
14535
14536 case $host_os in
14537 cygwin* | mingw* | pw32* | cegcc*)
14538 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
14539 # When not using gcc, we currently assume that we are using
14540 # Microsoft Visual C++ or Intel C++ Compiler.
14541 if test yes != "$GCC"; then
14542 with_gnu_ld=no
14543 fi
14544 ;;
14545 interix*)
14546 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
14547 with_gnu_ld=yes
14548 ;;
14549 openbsd* | bitrig*)
14550 with_gnu_ld=no
14551 ;;
14552 linux* | k*bsd*-gnu | gnu*)
14553 link_all_deplibs=no
14554 ;;
14555 esac
14556
14557 ld_shlibs=yes
14558
14559 # On some targets, GNU ld is compatible enough with the native linker
14560 # that we're better off using the native interface for both.
14561 lt_use_gnu_ld_interface=no
14562 if test yes = "$with_gnu_ld"; then
14563 case $host_os in
14564 aix*)
14565 # The AIX port of GNU ld has always aspired to compatibility
14566 # with the native linker. However, as the warning in the GNU ld
14567 # block says, versions before 2.19.5* couldn't really create working
14568 # shared libraries, regardless of the interface used.
14569 case `$LD -v 2>&1` in
14570 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14571 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14572 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14573 *)
14574 lt_use_gnu_ld_interface=yes
14575 ;;
14576 esac
14577 ;;
14578 *)
14579 lt_use_gnu_ld_interface=yes
14580 ;;
14581 esac
14582 fi
14583
14584 if test yes = "$lt_use_gnu_ld_interface"; then
14585 # If archive_cmds runs LD, not CC, wlarc should be empty
14586 wlarc='$wl'
14587
14588 # Set some defaults for GNU ld with shared library support. These
14589 # are reset later if shared libraries are not supported. Putting them
14590 # here allows them to be overridden if necessary.
14591 runpath_var=LD_RUN_PATH
14592 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14593 export_dynamic_flag_spec='$wl--export-dynamic'
14594 # ancient GNU ld didn't support --whole-archive et. al.
14595 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14596 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14597 else
14598 whole_archive_flag_spec=
14599 fi
14600 supports_anon_versioning=no
14601 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
14602 *GNU\ gold*) supports_anon_versioning=yes ;;
14603 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14604 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14605 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14606 *\ 2.11.*) ;; # other 2.11 versions
14607 *) supports_anon_versioning=yes ;;
14608 esac
14609
14610 # See if GNU ld supports shared libraries.
14611 case $host_os in
14612 aix[3-9]*)
14613 # On AIX/PPC, the GNU linker is very broken
14614 if test ia64 != "$host_cpu"; then
14615 ld_shlibs=no
14616 cat <<_LT_EOF 1>&2
14617
14618 *** Warning: the GNU linker, at least up to release 2.19, is reported
14619 *** to be unable to reliably create shared libraries on AIX.
14620 *** Therefore, libtool is disabling shared libraries support. If you
14621 *** really care for shared libraries, you may want to install binutils
14622 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14623 *** You will then need to restart the configuration process.
14624
14625 _LT_EOF
14626 fi
14627 ;;
14628
14629 amigaos*)
14630 case $host_cpu in
14631 powerpc)
14632 # see comment about AmigaOS4 .so support
14633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14634 archive_expsym_cmds=''
14635 ;;
14636 m68k)
14637 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14638 hardcode_libdir_flag_spec='-L$libdir'
14639 hardcode_minus_L=yes
14640 ;;
14641 esac
14642 ;;
14643
14644 beos*)
14645 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14646 allow_undefined_flag=unsupported
14647 # Joseph Beckenbach <[email protected]> says some releases of gcc
14648 # support --undefined. This deserves some investigation. FIXME
14649 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14650 else
14651 ld_shlibs=no
14652 fi
14653 ;;
14654
14655 cygwin* | mingw* | pw32* | cegcc*)
14656 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14657 # as there is no search path for DLLs.
14658 hardcode_libdir_flag_spec='-L$libdir'
14659 export_dynamic_flag_spec='$wl--export-all-symbols'
14660 allow_undefined_flag=unsupported
14661 always_export_symbols=no
14662 enable_shared_with_static_runtimes=yes
14663 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14664 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14665
14666 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14668 # If the export-symbols file already is a .def file, use it as
14669 # is; otherwise, prepend EXPORTS...
14670 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14671 cp $export_symbols $output_objdir/$soname.def;
14672 else
14673 echo EXPORTS > $output_objdir/$soname.def;
14674 cat $export_symbols >> $output_objdir/$soname.def;
14675 fi~
14676 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14677 else
14678 ld_shlibs=no
14679 fi
14680 ;;
14681
14682 haiku*)
14683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14684 link_all_deplibs=yes
14685 ;;
14686
14687 os2*)
14688 hardcode_libdir_flag_spec='-L$libdir'
14689 hardcode_minus_L=yes
14690 allow_undefined_flag=unsupported
14691 shrext_cmds=.dll
14692 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14693 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14694 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14695 $ECHO EXPORTS >> $output_objdir/$libname.def~
14696 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14697 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14698 emximp -o $lib $output_objdir/$libname.def'
14699 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14700 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14701 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14702 $ECHO EXPORTS >> $output_objdir/$libname.def~
14703 prefix_cmds="$SED"~
14704 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14705 prefix_cmds="$prefix_cmds -e 1d";
14706 fi~
14707 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14708 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14709 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14710 emximp -o $lib $output_objdir/$libname.def'
14711 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14712 enable_shared_with_static_runtimes=yes
14713 file_list_spec='@'
14714 ;;
14715
14716 interix[3-9]*)
14717 hardcode_direct=no
14718 hardcode_shlibpath_var=no
14719 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14720 export_dynamic_flag_spec='$wl-E'
14721 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14722 # Instead, shared libraries are loaded at an image base (0x10000000 by
14723 # default) and relocated if they conflict, which is a slow very memory
14724 # consuming and fragmenting process. To avoid this, we pick a random,
14725 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14726 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14727 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14728 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14729 ;;
14730
14731 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14732 tmp_diet=no
14733 if test linux-dietlibc = "$host_os"; then
14734 case $cc_basename in
14735 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14736 esac
14737 fi
14738 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14739 && test no = "$tmp_diet"
14740 then
14741 tmp_addflag=' $pic_flag'
14742 tmp_sharedflag='-shared'
14743 case $cc_basename,$host_cpu in
14744 pgcc*) # Portland Group C compiler
14745 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14746 tmp_addflag=' $pic_flag'
14747 ;;
14748 pgf77* | pgf90* | pgf95* | pgfortran*)
14749 # Portland Group f77 and f90 compilers
14750 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14751 tmp_addflag=' $pic_flag -Mnomain' ;;
14752 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14753 tmp_addflag=' -i_dynamic' ;;
14754 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14755 tmp_addflag=' -i_dynamic -nofor_main' ;;
14756 ifc* | ifort*) # Intel Fortran compiler
14757 tmp_addflag=' -nofor_main' ;;
14758 lf95*) # Lahey Fortran 8.1
14759 whole_archive_flag_spec=
14760 tmp_sharedflag='--shared' ;;
14761 nagfor*) # NAGFOR 5.3
14762 tmp_sharedflag='-Wl,-shared' ;;
14763 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14764 tmp_sharedflag='-qmkshrobj'
14765 tmp_addflag= ;;
14766 nvcc*) # Cuda Compiler Driver 2.2
14767 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14768 compiler_needs_object=yes
14769 ;;
14770 esac
14771 case `$CC -V 2>&1 | $SED 5q` in
14772 *Sun\ C*) # Sun C 5.9
14773 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14774 compiler_needs_object=yes
14775 tmp_sharedflag='-G' ;;
14776 *Sun\ F*) # Sun Fortran 8.3
14777 tmp_sharedflag='-G' ;;
14778 esac
14779 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14780
14781 if test yes = "$supports_anon_versioning"; then
14782 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14783 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14784 echo "local: *; };" >> $output_objdir/$libname.ver~
14785 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14786 fi
14787
14788 case $cc_basename in
14789 tcc*)
14790 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14791 export_dynamic_flag_spec='-rdynamic'
14792 ;;
14793 xlf* | bgf* | bgxlf* | mpixlf*)
14794 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14795 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14796 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14797 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14798 if test yes = "$supports_anon_versioning"; then
14799 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14800 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14801 echo "local: *; };" >> $output_objdir/$libname.ver~
14802 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14803 fi
14804 ;;
14805 esac
14806 else
14807 ld_shlibs=no
14808 fi
14809 ;;
14810
14811 netbsd* | netbsdelf*-gnu)
14812 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14813 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14814 wlarc=
14815 else
14816 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14817 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14818 fi
14819 ;;
14820
14821 solaris*)
14822 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14823 ld_shlibs=no
14824 cat <<_LT_EOF 1>&2
14825
14826 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14827 *** create shared libraries on Solaris systems. Therefore, libtool
14828 *** is disabling shared libraries support. We urge you to upgrade GNU
14829 *** binutils to release 2.9.1 or newer. Another option is to modify
14830 *** your PATH or compiler configuration so that the native linker is
14831 *** used, and then restart.
14832
14833 _LT_EOF
14834 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14835 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14836 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14837 else
14838 ld_shlibs=no
14839 fi
14840 ;;
14841
14842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14843 case `$LD -v 2>&1` in
14844 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14845 ld_shlibs=no
14846 cat <<_LT_EOF 1>&2
14847
14848 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14849 *** reliably create shared libraries on SCO systems. Therefore, libtool
14850 *** is disabling shared libraries support. We urge you to upgrade GNU
14851 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14852 *** your PATH or compiler configuration so that the native linker is
14853 *** used, and then restart.
14854
14855 _LT_EOF
14856 ;;
14857 *)
14858 # For security reasons, it is highly recommended that you always
14859 # use absolute paths for naming shared libraries, and exclude the
14860 # DT_RUNPATH tag from executables and libraries. But doing so
14861 # requires that you compile everything twice, which is a pain.
14862 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14863 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14865 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14866 else
14867 ld_shlibs=no
14868 fi
14869 ;;
14870 esac
14871 ;;
14872
14873 sunos4*)
14874 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14875 wlarc=
14876 hardcode_direct=yes
14877 hardcode_shlibpath_var=no
14878 ;;
14879
14880 *)
14881 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14882 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14883 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14884 else
14885 ld_shlibs=no
14886 fi
14887 ;;
14888 esac
14889
14890 if test no = "$ld_shlibs"; then
14891 runpath_var=
14892 hardcode_libdir_flag_spec=
14893 export_dynamic_flag_spec=
14894 whole_archive_flag_spec=
14895 fi
14896 else
14897 # PORTME fill in a description of your system's linker (not GNU ld)
14898 case $host_os in
14899 aix3*)
14900 allow_undefined_flag=unsupported
14901 always_export_symbols=yes
14902 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14903 # Note: this linker hardcodes the directories in LIBPATH if there
14904 # are no directories specified by -L.
14905 hardcode_minus_L=yes
14906 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14907 # Neither direct hardcoding nor static linking is supported with a
14908 # broken collect2.
14909 hardcode_direct=unsupported
14910 fi
14911 ;;
14912
14913 aix[4-9]*)
14914 if test ia64 = "$host_cpu"; then
14915 # On IA64, the linker does run time linking by default, so we don't
14916 # have to do anything special.
14917 aix_use_runtimelinking=no
14918 exp_sym_flag='-Bexport'
14919 no_entry_flag=
14920 else
14921 # If we're using GNU nm, then we don't want the "-C" option.
14922 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14923 # Without the "-l" option, or with the "-B" option, AIX nm treats
14924 # weak defined symbols like other global defined symbols, whereas
14925 # GNU nm marks them as "W".
14926 # While the 'weak' keyword is ignored in the Export File, we need
14927 # it in the Import File for the 'aix-soname' feature, so we have
14928 # to replace the "-B" option with "-P" for AIX nm.
14929 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14930 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14931 else
14932 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14933 fi
14934 aix_use_runtimelinking=no
14935
14936 # Test if we are trying to use run time linking or normal
14937 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14938 # have runtime linking enabled, and use it for executables.
14939 # For shared libraries, we enable/disable runtime linking
14940 # depending on the kind of the shared library created -
14941 # when "with_aix_soname,aix_use_runtimelinking" is:
14942 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14943 # "aix,yes" lib.so shared, rtl:yes, for executables
14944 # lib.a static archive
14945 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14946 # lib.a(lib.so.V) shared, rtl:no, for executables
14947 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14948 # lib.a(lib.so.V) shared, rtl:no
14949 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14950 # lib.a static archive
14951 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14952 for ld_flag in $LDFLAGS; do
14953 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14954 aix_use_runtimelinking=yes
14955 break
14956 fi
14957 done
14958 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14959 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14960 # so we don't have lib.a shared libs to link our executables.
14961 # We have to force runtime linking in this case.
14962 aix_use_runtimelinking=yes
14963 LDFLAGS="$LDFLAGS -Wl,-brtl"
14964 fi
14965 ;;
14966 esac
14967
14968 exp_sym_flag='-bexport'
14969 no_entry_flag='-bnoentry'
14970 fi
14971
14972 # When large executables or shared objects are built, AIX ld can
14973 # have problems creating the table of contents. If linking a library
14974 # or program results in "error TOC overflow" add -mminimal-toc to
14975 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14976 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14977
14978 archive_cmds=''
14979 hardcode_direct=yes
14980 hardcode_direct_absolute=yes
14981 hardcode_libdir_separator=':'
14982 link_all_deplibs=yes
14983 file_list_spec='$wl-f,'
14984 case $with_aix_soname,$aix_use_runtimelinking in
14985 aix,*) ;; # traditional, no import file
14986 svr4,* | *,yes) # use import file
14987 # The Import File defines what to hardcode.
14988 hardcode_direct=no
14989 hardcode_direct_absolute=no
14990 ;;
14991 esac
14992
14993 if test yes = "$GCC"; then
14994 case $host_os in aix4.[012]|aix4.[012].*)
14995 # We only want to do this on AIX 4.2 and lower, the check
14996 # below for broken collect2 doesn't work under 4.3+
14997 collect2name=`$CC -print-prog-name=collect2`
14998 if test -f "$collect2name" &&
14999 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15000 then
15001 # We have reworked collect2
15002 :
15003 else
15004 # We have old collect2
15005 hardcode_direct=unsupported
15006 # It fails to find uninstalled libraries when the uninstalled
15007 # path is not listed in the libpath. Setting hardcode_minus_L
15008 # to unsupported forces relinking
15009 hardcode_minus_L=yes
15010 hardcode_libdir_flag_spec='-L$libdir'
15011 hardcode_libdir_separator=
15012 fi
15013 ;;
15014 esac
15015 shared_flag='-shared'
15016 if test yes = "$aix_use_runtimelinking"; then
15017 shared_flag="$shared_flag "'$wl-G'
15018 fi
15019 # Need to ensure runtime linking is disabled for the traditional
15020 # shared library, or the linker may eventually find shared libraries
15021 # /with/ Import File - we do not want to mix them.
15022 shared_flag_aix='-shared'
15023 shared_flag_svr4='-shared $wl-G'
15024 else
15025 # not using gcc
15026 if test ia64 = "$host_cpu"; then
15027 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15028 # chokes on -Wl,-G. The following line is correct:
15029 shared_flag='-G'
15030 else
15031 if test yes = "$aix_use_runtimelinking"; then
15032 shared_flag='$wl-G'
15033 else
15034 shared_flag='$wl-bM:SRE'
15035 fi
15036 shared_flag_aix='$wl-bM:SRE'
15037 shared_flag_svr4='$wl-G'
15038 fi
15039 fi
15040
15041 export_dynamic_flag_spec='$wl-bexpall'
15042 # It seems that -bexpall does not export symbols beginning with
15043 # underscore (_), so it is better to generate a list of symbols to export.
15044 always_export_symbols=yes
15045 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15046 # Warning - without using the other runtime loading flags (-brtl),
15047 # -berok will link without error, but may produce a broken library.
15048 allow_undefined_flag='-berok'
15049 # Determine the default libpath from the value encoded in an
15050 # empty executable.
15051 if test set = "${lt_cv_aix_libpath+set}"; then
15052 aix_libpath=$lt_cv_aix_libpath
15053 else
15054 if test ${lt_cv_aix_libpath_+y}
15055 then :
15056 printf %s "(cached) " >&6
15057 else case e in #(
15058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059 /* end confdefs.h. */
15060
15061 int
15062 main (void)
15063 {
15064
15065 ;
15066 return 0;
15067 }
15068 _ACEOF
15069 if ac_fn_c_try_link "$LINENO"
15070 then :
15071
15072 lt_aix_libpath_sed='
15073 /Import File Strings/,/^$/ {
15074 /^0/ {
15075 s/^0 *\([^ ]*\) *$/\1/
15076 p
15077 }
15078 }'
15079 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15080 # Check for a 64-bit object if we didn't find anything.
15081 if test -z "$lt_cv_aix_libpath_"; then
15082 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15083 fi
15084 fi
15085 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15086 conftest$ac_exeext conftest.$ac_ext
15087 if test -z "$lt_cv_aix_libpath_"; then
15088 lt_cv_aix_libpath_=/usr/lib:/lib
15089 fi
15090 ;;
15091 esac
15092 fi
15093
15094 aix_libpath=$lt_cv_aix_libpath_
15095 fi
15096
15097 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15098 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15099 else
15100 if test ia64 = "$host_cpu"; then
15101 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15102 allow_undefined_flag="-z nodefs"
15103 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
15104 else
15105 # Determine the default libpath from the value encoded in an
15106 # empty executable.
15107 if test set = "${lt_cv_aix_libpath+set}"; then
15108 aix_libpath=$lt_cv_aix_libpath
15109 else
15110 if test ${lt_cv_aix_libpath_+y}
15111 then :
15112 printf %s "(cached) " >&6
15113 else case e in #(
15114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115 /* end confdefs.h. */
15116
15117 int
15118 main (void)
15119 {
15120
15121 ;
15122 return 0;
15123 }
15124 _ACEOF
15125 if ac_fn_c_try_link "$LINENO"
15126 then :
15127
15128 lt_aix_libpath_sed='
15129 /Import File Strings/,/^$/ {
15130 /^0/ {
15131 s/^0 *\([^ ]*\) *$/\1/
15132 p
15133 }
15134 }'
15135 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15136 # Check for a 64-bit object if we didn't find anything.
15137 if test -z "$lt_cv_aix_libpath_"; then
15138 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15139 fi
15140 fi
15141 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15142 conftest$ac_exeext conftest.$ac_ext
15143 if test -z "$lt_cv_aix_libpath_"; then
15144 lt_cv_aix_libpath_=/usr/lib:/lib
15145 fi
15146 ;;
15147 esac
15148 fi
15149
15150 aix_libpath=$lt_cv_aix_libpath_
15151 fi
15152
15153 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15154 # Warning - without using the other run time loading flags,
15155 # -berok will link without error, but may produce a broken library.
15156 no_undefined_flag=' $wl-bernotok'
15157 allow_undefined_flag=' $wl-berok'
15158 if test yes = "$with_gnu_ld"; then
15159 # We only use this code for GNU lds that support --whole-archive.
15160 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15161 else
15162 # Exported symbols can be pulled into shared objects from archives
15163 whole_archive_flag_spec='$convenience'
15164 fi
15165 archive_cmds_need_lc=yes
15166 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15167 # -brtl affects multiple linker settings, -berok does not and is overridden later
15168 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15169 if test svr4 != "$with_aix_soname"; then
15170 # This is similar to how AIX traditionally builds its shared libraries.
15171 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15172 fi
15173 if test aix != "$with_aix_soname"; then
15174 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15175 else
15176 # used by -dlpreopen to get the symbols
15177 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15178 fi
15179 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15180 fi
15181 fi
15182 ;;
15183
15184 amigaos*)
15185 case $host_cpu in
15186 powerpc)
15187 # see comment about AmigaOS4 .so support
15188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15189 archive_expsym_cmds=''
15190 ;;
15191 m68k)
15192 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15193 hardcode_libdir_flag_spec='-L$libdir'
15194 hardcode_minus_L=yes
15195 ;;
15196 esac
15197 ;;
15198
15199 bsdi[45]*)
15200 export_dynamic_flag_spec=-rdynamic
15201 ;;
15202
15203 cygwin* | mingw* | pw32* | cegcc*)
15204 # When not using gcc, we currently assume that we are using
15205 # Microsoft Visual C++ or Intel C++ Compiler.
15206 # hardcode_libdir_flag_spec is actually meaningless, as there is
15207 # no search path for DLLs.
15208 case $cc_basename in
15209 cl* | icl*)
15210 # Native MSVC or ICC
15211 hardcode_libdir_flag_spec=' '
15212 allow_undefined_flag=unsupported
15213 always_export_symbols=yes
15214 file_list_spec='@'
15215 # Tell ltmain to make .lib files, not .a files.
15216 libext=lib
15217 # Tell ltmain to make .dll files, not .so files.
15218 shrext_cmds=.dll
15219 # FIXME: Setting linknames here is a bad hack.
15220 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15221 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15222 cp "$export_symbols" "$output_objdir/$soname.def";
15223 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15224 else
15225 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15226 fi~
15227 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15228 linknames='
15229 # The linker will not automatically build a static lib if we build a DLL.
15230 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15231 enable_shared_with_static_runtimes=yes
15232 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15233 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15234 # Don't use ranlib
15235 old_postinstall_cmds='chmod 644 $oldlib'
15236 postlink_cmds='lt_outputfile="@OUTPUT@"~
15237 lt_tool_outputfile="@TOOL_OUTPUT@"~
15238 case $lt_outputfile in
15239 *.exe|*.EXE) ;;
15240 *)
15241 lt_outputfile=$lt_outputfile.exe
15242 lt_tool_outputfile=$lt_tool_outputfile.exe
15243 ;;
15244 esac~
15245 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15246 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15247 $RM "$lt_outputfile.manifest";
15248 fi'
15249 ;;
15250 *)
15251 # Assume MSVC and ICC wrapper
15252 hardcode_libdir_flag_spec=' '
15253 allow_undefined_flag=unsupported
15254 # Tell ltmain to make .lib files, not .a files.
15255 libext=lib
15256 # Tell ltmain to make .dll files, not .so files.
15257 shrext_cmds=.dll
15258 # FIXME: Setting linknames here is a bad hack.
15259 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15260 # The linker will automatically build a .lib file if we build a DLL.
15261 old_archive_from_new_cmds='true'
15262 # FIXME: Should let the user specify the lib program.
15263 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15264 enable_shared_with_static_runtimes=yes
15265 ;;
15266 esac
15267 ;;
15268
15269 darwin* | rhapsody*)
15270
15271
15272 archive_cmds_need_lc=no
15273 hardcode_direct=no
15274 hardcode_automatic=yes
15275 hardcode_shlibpath_var=unsupported
15276 if test yes = "$lt_cv_ld_force_load"; then
15277 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15278
15279 else
15280 whole_archive_flag_spec=''
15281 fi
15282 link_all_deplibs=yes
15283 allow_undefined_flag=$_lt_dar_allow_undefined
15284 case $cc_basename in
15285 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15286 *) _lt_dar_can_shared=$GCC ;;
15287 esac
15288 if test yes = "$_lt_dar_can_shared"; then
15289 output_verbose_link_cmd=func_echo_all
15290 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15291 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15292 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
15293 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
15294
15295 else
15296 ld_shlibs=no
15297 fi
15298
15299 ;;
15300
15301 dgux*)
15302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15303 hardcode_libdir_flag_spec='-L$libdir'
15304 hardcode_shlibpath_var=no
15305 ;;
15306
15307 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15308 # support. Future versions do this automatically, but an explicit c++rt0.o
15309 # does not break anything, and helps significantly (at the cost of a little
15310 # extra space).
15311 freebsd2.2*)
15312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15313 hardcode_libdir_flag_spec='-R$libdir'
15314 hardcode_direct=yes
15315 hardcode_shlibpath_var=no
15316 ;;
15317
15318 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15319 freebsd2.*)
15320 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15321 hardcode_direct=yes
15322 hardcode_minus_L=yes
15323 hardcode_shlibpath_var=no
15324 ;;
15325
15326 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15327 freebsd* | dragonfly* | midnightbsd*)
15328 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15329 hardcode_libdir_flag_spec='-R$libdir'
15330 hardcode_direct=yes
15331 hardcode_shlibpath_var=no
15332 ;;
15333
15334 hpux9*)
15335 if test yes = "$GCC"; then
15336 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15337 else
15338 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15339 fi
15340 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15341 hardcode_libdir_separator=:
15342 hardcode_direct=yes
15343
15344 # hardcode_minus_L: Not really in the search PATH,
15345 # but as the default location of the library.
15346 hardcode_minus_L=yes
15347 export_dynamic_flag_spec='$wl-E'
15348 ;;
15349
15350 hpux10*)
15351 if test yes,no = "$GCC,$with_gnu_ld"; then
15352 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15353 else
15354 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15355 fi
15356 if test no = "$with_gnu_ld"; then
15357 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15358 hardcode_libdir_separator=:
15359 hardcode_direct=yes
15360 hardcode_direct_absolute=yes
15361 export_dynamic_flag_spec='$wl-E'
15362 # hardcode_minus_L: Not really in the search PATH,
15363 # but as the default location of the library.
15364 hardcode_minus_L=yes
15365 fi
15366 ;;
15367
15368 hpux11*)
15369 if test yes,no = "$GCC,$with_gnu_ld"; then
15370 case $host_cpu in
15371 hppa*64*)
15372 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15373 ;;
15374 ia64*)
15375 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15376 ;;
15377 *)
15378 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15379 ;;
15380 esac
15381 else
15382 case $host_cpu in
15383 hppa*64*)
15384 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15385 ;;
15386 ia64*)
15387 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15388 ;;
15389 *)
15390
15391 # Older versions of the 11.00 compiler do not understand -b yet
15392 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15394 printf %s "checking if $CC understands -b... " >&6; }
15395 if test ${lt_cv_prog_compiler__b+y}
15396 then :
15397 printf %s "(cached) " >&6
15398 else case e in #(
15399 e) lt_cv_prog_compiler__b=no
15400 save_LDFLAGS=$LDFLAGS
15401 LDFLAGS="$LDFLAGS -b"
15402 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15403 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15404 # The linker can only warn and ignore the option if not recognized
15405 # So say no if there are warnings
15406 if test -s conftest.err; then
15407 # Append any errors to the config.log.
15408 cat conftest.err 1>&5
15409 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15411 if diff conftest.exp conftest.er2 >/dev/null; then
15412 lt_cv_prog_compiler__b=yes
15413 fi
15414 else
15415 lt_cv_prog_compiler__b=yes
15416 fi
15417 fi
15418 $RM -r conftest*
15419 LDFLAGS=$save_LDFLAGS
15420 ;;
15421 esac
15422 fi
15423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15424 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
15425
15426 if test yes = "$lt_cv_prog_compiler__b"; then
15427 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15428 else
15429 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15430 fi
15431
15432 ;;
15433 esac
15434 fi
15435 if test no = "$with_gnu_ld"; then
15436 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15437 hardcode_libdir_separator=:
15438
15439 case $host_cpu in
15440 hppa*64*|ia64*)
15441 hardcode_direct=no
15442 hardcode_shlibpath_var=no
15443 ;;
15444 *)
15445 hardcode_direct=yes
15446 hardcode_direct_absolute=yes
15447 export_dynamic_flag_spec='$wl-E'
15448
15449 # hardcode_minus_L: Not really in the search PATH,
15450 # but as the default location of the library.
15451 hardcode_minus_L=yes
15452 ;;
15453 esac
15454 fi
15455 ;;
15456
15457 irix5* | irix6* | nonstopux*)
15458 if test yes = "$GCC"; then
15459 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15460 # Try to use the -exported_symbol ld option, if it does not
15461 # work, assume that -exports_file does not work either and
15462 # implicitly export all symbols.
15463 # This should be the same for all languages, so no per-tag cache variable.
15464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15465 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15466 if test ${lt_cv_irix_exported_symbol+y}
15467 then :
15468 printf %s "(cached) " >&6
15469 else case e in #(
15470 e) save_LDFLAGS=$LDFLAGS
15471 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
15472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473 /* end confdefs.h. */
15474 int foo (void) { return 0; }
15475 _ACEOF
15476 if ac_fn_c_try_link "$LINENO"
15477 then :
15478 lt_cv_irix_exported_symbol=yes
15479 else case e in #(
15480 e) lt_cv_irix_exported_symbol=no ;;
15481 esac
15482 fi
15483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15484 conftest$ac_exeext conftest.$ac_ext
15485 LDFLAGS=$save_LDFLAGS ;;
15486 esac
15487 fi
15488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15489 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
15490 if test yes = "$lt_cv_irix_exported_symbol"; then
15491 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
15492 fi
15493 link_all_deplibs=no
15494 else
15495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15496 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
15497 fi
15498 archive_cmds_need_lc='no'
15499 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15500 hardcode_libdir_separator=:
15501 inherit_rpath=yes
15502 link_all_deplibs=yes
15503 ;;
15504
15505 linux*)
15506 case $cc_basename in
15507 tcc*)
15508 # Fabrice Bellard et al's Tiny C Compiler
15509 ld_shlibs=yes
15510 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15511 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15512 ;;
15513 esac
15514 ;;
15515
15516 netbsd* | netbsdelf*-gnu)
15517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15519 else
15520 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15521 fi
15522 hardcode_libdir_flag_spec='-R$libdir'
15523 hardcode_direct=yes
15524 hardcode_shlibpath_var=no
15525 ;;
15526
15527 newsos6)
15528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15529 hardcode_direct=yes
15530 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15531 hardcode_libdir_separator=:
15532 hardcode_shlibpath_var=no
15533 ;;
15534
15535 *nto* | *qnx*)
15536 ;;
15537
15538 openbsd* | bitrig*)
15539 if test -f /usr/libexec/ld.so; then
15540 hardcode_direct=yes
15541 hardcode_shlibpath_var=no
15542 hardcode_direct_absolute=yes
15543 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15545 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
15546 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15547 export_dynamic_flag_spec='$wl-E'
15548 else
15549 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15550 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15551 fi
15552 else
15553 ld_shlibs=no
15554 fi
15555 ;;
15556
15557 os2*)
15558 hardcode_libdir_flag_spec='-L$libdir'
15559 hardcode_minus_L=yes
15560 allow_undefined_flag=unsupported
15561 shrext_cmds=.dll
15562 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15563 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15564 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15565 $ECHO EXPORTS >> $output_objdir/$libname.def~
15566 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15567 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15568 emximp -o $lib $output_objdir/$libname.def'
15569 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15570 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15571 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15572 $ECHO EXPORTS >> $output_objdir/$libname.def~
15573 prefix_cmds="$SED"~
15574 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15575 prefix_cmds="$prefix_cmds -e 1d";
15576 fi~
15577 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15578 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15579 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15580 emximp -o $lib $output_objdir/$libname.def'
15581 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15582 enable_shared_with_static_runtimes=yes
15583 file_list_spec='@'
15584 ;;
15585
15586 osf3*)
15587 if test yes = "$GCC"; then
15588 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15589 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15590 else
15591 allow_undefined_flag=' -expect_unresolved \*'
15592 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15593 fi
15594 archive_cmds_need_lc='no'
15595 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15596 hardcode_libdir_separator=:
15597 ;;
15598
15599 osf4* | osf5*) # as osf3* with the addition of -msym flag
15600 if test yes = "$GCC"; then
15601 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15602 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15603 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15604 else
15605 allow_undefined_flag=' -expect_unresolved \*'
15606 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15607 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
15608 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
15609
15610 # Both c and cxx compiler support -rpath directly
15611 hardcode_libdir_flag_spec='-rpath $libdir'
15612 fi
15613 archive_cmds_need_lc='no'
15614 hardcode_libdir_separator=:
15615 ;;
15616
15617 solaris*)
15618 no_undefined_flag=' -z defs'
15619 if test yes = "$GCC"; then
15620 wlarc='$wl'
15621 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15622 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15623 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15624 else
15625 case `$CC -V 2>&1` in
15626 *"Compilers 5.0"*)
15627 wlarc=''
15628 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
15629 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15630 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15631 ;;
15632 *)
15633 wlarc='$wl'
15634 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15635 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15636 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15637 ;;
15638 esac
15639 fi
15640 hardcode_libdir_flag_spec='-R$libdir'
15641 hardcode_shlibpath_var=no
15642 case $host_os in
15643 solaris2.[0-5] | solaris2.[0-5].*) ;;
15644 *)
15645 # The compiler driver will combine and reorder linker options,
15646 # but understands '-z linker_flag'. GCC discards it without '$wl',
15647 # but is careful enough not to reorder.
15648 # Supported since Solaris 2.6 (maybe 2.5.1?)
15649 if test yes = "$GCC"; then
15650 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15651 else
15652 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15653 fi
15654 ;;
15655 esac
15656 link_all_deplibs=yes
15657 ;;
15658
15659 sunos4*)
15660 if test sequent = "$host_vendor"; then
15661 # Use $CC to link under sequent, because it throws in some extra .o
15662 # files that make .init and .fini sections work.
15663 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15664 else
15665 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15666 fi
15667 hardcode_libdir_flag_spec='-L$libdir'
15668 hardcode_direct=yes
15669 hardcode_minus_L=yes
15670 hardcode_shlibpath_var=no
15671 ;;
15672
15673 sysv4)
15674 case $host_vendor in
15675 sni)
15676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15677 hardcode_direct=yes # is this really true???
15678 ;;
15679 siemens)
15680 ## LD is ld it makes a PLAMLIB
15681 ## CC just makes a GrossModule.
15682 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15683 reload_cmds='$CC -r -o $output$reload_objs'
15684 hardcode_direct=no
15685 ;;
15686 motorola)
15687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15688 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15689 ;;
15690 esac
15691 runpath_var='LD_RUN_PATH'
15692 hardcode_shlibpath_var=no
15693 ;;
15694
15695 sysv4.3*)
15696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15697 hardcode_shlibpath_var=no
15698 export_dynamic_flag_spec='-Bexport'
15699 ;;
15700
15701 sysv4*MP*)
15702 if test -d /usr/nec; then
15703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15704 hardcode_shlibpath_var=no
15705 runpath_var=LD_RUN_PATH
15706 hardcode_runpath_var=yes
15707 ld_shlibs=yes
15708 fi
15709 ;;
15710
15711 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15712 no_undefined_flag='$wl-z,text'
15713 archive_cmds_need_lc=no
15714 hardcode_shlibpath_var=no
15715 runpath_var='LD_RUN_PATH'
15716
15717 if test yes = "$GCC"; then
15718 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15719 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15720 else
15721 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15722 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15723 fi
15724 ;;
15725
15726 sysv5* | sco3.2v5* | sco5v6*)
15727 # Note: We CANNOT use -z defs as we might desire, because we do not
15728 # link with -lc, and that would cause any symbols used from libc to
15729 # always be unresolved, which means just about no library would
15730 # ever link correctly. If we're not using GNU ld we use -z text
15731 # though, which does catch some bad symbols but isn't as heavy-handed
15732 # as -z defs.
15733 no_undefined_flag='$wl-z,text'
15734 allow_undefined_flag='$wl-z,nodefs'
15735 archive_cmds_need_lc=no
15736 hardcode_shlibpath_var=no
15737 hardcode_libdir_flag_spec='$wl-R,$libdir'
15738 hardcode_libdir_separator=':'
15739 link_all_deplibs=yes
15740 export_dynamic_flag_spec='$wl-Bexport'
15741 runpath_var='LD_RUN_PATH'
15742
15743 if test yes = "$GCC"; then
15744 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15745 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15746 else
15747 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15748 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15749 fi
15750 ;;
15751
15752 uts4*)
15753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15754 hardcode_libdir_flag_spec='-L$libdir'
15755 hardcode_shlibpath_var=no
15756 ;;
15757
15758 *)
15759 ld_shlibs=no
15760 ;;
15761 esac
15762
15763 if test sni = "$host_vendor"; then
15764 case $host in
15765 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15766 export_dynamic_flag_spec='$wl-Blargedynsym'
15767 ;;
15768 esac
15769 fi
15770 fi
15771
15772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15773 printf "%s\n" "$ld_shlibs" >&6; }
15774 test no = "$ld_shlibs" && can_build_shared=no
15775
15776 with_gnu_ld=$with_gnu_ld
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792 #
15793 # Do we need to explicitly link libc?
15794 #
15795 case "x$archive_cmds_need_lc" in
15796 x|xyes)
15797 # Assume -lc should be added
15798 archive_cmds_need_lc=yes
15799
15800 if test yes,yes = "$GCC,$enable_shared"; then
15801 case $archive_cmds in
15802 *'~'*)
15803 # FIXME: we may have to deal with multi-command sequences.
15804 ;;
15805 '$CC '*)
15806 # Test whether the compiler implicitly links with -lc since on some
15807 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15808 # to ld, don't add -lc before -lgcc.
15809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15810 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15811 if test ${lt_cv_archive_cmds_need_lc+y}
15812 then :
15813 printf %s "(cached) " >&6
15814 else case e in #(
15815 e) $RM conftest*
15816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15817
15818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15819 (eval $ac_compile) 2>&5
15820 ac_status=$?
15821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15822 test $ac_status = 0; } 2>conftest.err; then
15823 soname=conftest
15824 lib=conftest
15825 libobjs=conftest.$ac_objext
15826 deplibs=
15827 wl=$lt_prog_compiler_wl
15828 pic_flag=$lt_prog_compiler_pic
15829 compiler_flags=-v
15830 linker_flags=-v
15831 verstring=
15832 output_objdir=.
15833 libname=conftest
15834 lt_save_allow_undefined_flag=$allow_undefined_flag
15835 allow_undefined_flag=
15836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15837 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15838 ac_status=$?
15839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15840 test $ac_status = 0; }
15841 then
15842 lt_cv_archive_cmds_need_lc=no
15843 else
15844 lt_cv_archive_cmds_need_lc=yes
15845 fi
15846 allow_undefined_flag=$lt_save_allow_undefined_flag
15847 else
15848 cat conftest.err 1>&5
15849 fi
15850 $RM conftest*
15851 ;;
15852 esac
15853 fi
15854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15855 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
15856 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15857 ;;
15858 esac
15859 fi
15860 ;;
15861 esac
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16015 printf %s "checking dynamic linker characteristics... " >&6; }
16016
16017 if test yes = "$GCC"; then
16018 case $host_os in
16019 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16020 *) lt_awk_arg='/^libraries:/' ;;
16021 esac
16022 case $host_os in
16023 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16024 *) lt_sed_strip_eq='s|=/|/|g' ;;
16025 esac
16026 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16027 case $lt_search_path_spec in
16028 *\;*)
16029 # if the path contains ";" then we assume it to be the separator
16030 # otherwise default to the standard path separator (i.e. ":") - it is
16031 # assumed that no part of a normal pathname contains ";" but that should
16032 # okay in the real world where ";" in dirpaths is itself problematic.
16033 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16034 ;;
16035 *)
16036 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16037 ;;
16038 esac
16039 # Ok, now we have the path, separated by spaces, we can step through it
16040 # and add multilib dir if necessary...
16041 lt_tmp_lt_search_path_spec=
16042 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16043 # ...but if some path component already ends with the multilib dir we assume
16044 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16045 case "$lt_multi_os_dir; $lt_search_path_spec " in
16046 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16047 lt_multi_os_dir=
16048 ;;
16049 esac
16050 for lt_sys_path in $lt_search_path_spec; do
16051 if test -d "$lt_sys_path$lt_multi_os_dir"; then
16052 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16053 elif test -n "$lt_multi_os_dir"; then
16054 test -d "$lt_sys_path" && \
16055 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16056 fi
16057 done
16058 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16059 BEGIN {RS = " "; FS = "/|\n";} {
16060 lt_foo = "";
16061 lt_count = 0;
16062 for (lt_i = NF; lt_i > 0; lt_i--) {
16063 if ($lt_i != "" && $lt_i != ".") {
16064 if ($lt_i == "..") {
16065 lt_count++;
16066 } else {
16067 if (lt_count == 0) {
16068 lt_foo = "/" $lt_i lt_foo;
16069 } else {
16070 lt_count--;
16071 }
16072 }
16073 }
16074 }
16075 if (lt_foo != "") { lt_freq[lt_foo]++; }
16076 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16077 }'`
16078 # AWK program above erroneously prepends '/' to C:/dos/paths
16079 # for these hosts.
16080 case $host_os in
16081 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16082 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16083 esac
16084 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16085 else
16086 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16087 fi
16088 library_names_spec=
16089 libname_spec='lib$name'
16090 soname_spec=
16091 shrext_cmds=.so
16092 postinstall_cmds=
16093 postuninstall_cmds=
16094 finish_cmds=
16095 finish_eval=
16096 shlibpath_var=
16097 shlibpath_overrides_runpath=unknown
16098 version_type=none
16099 dynamic_linker="$host_os ld.so"
16100 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16101 need_lib_prefix=unknown
16102 hardcode_into_libs=no
16103
16104 # when you set need_version to no, make sure it does not cause -set_version
16105 # flags to be left without arguments
16106 need_version=unknown
16107
16108
16109
16110 case $host_os in
16111 aix3*)
16112 version_type=linux # correct to gnu/linux during the next big refactor
16113 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16114 shlibpath_var=LIBPATH
16115
16116 # AIX 3 has no versioning support, so we append a major version to the name.
16117 soname_spec='$libname$release$shared_ext$major'
16118 ;;
16119
16120 aix[4-9]*)
16121 version_type=linux # correct to gnu/linux during the next big refactor
16122 need_lib_prefix=no
16123 need_version=no
16124 hardcode_into_libs=yes
16125 if test ia64 = "$host_cpu"; then
16126 # AIX 5 supports IA64
16127 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16128 shlibpath_var=LD_LIBRARY_PATH
16129 else
16130 # With GCC up to 2.95.x, collect2 would create an import file
16131 # for dependence libraries. The import file would start with
16132 # the line '#! .'. This would cause the generated library to
16133 # depend on '.', always an invalid library. This was fixed in
16134 # development snapshots of GCC prior to 3.0.
16135 case $host_os in
16136 aix4 | aix4.[01] | aix4.[01].*)
16137 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16138 echo ' yes '
16139 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16140 :
16141 else
16142 can_build_shared=no
16143 fi
16144 ;;
16145 esac
16146 # Using Import Files as archive members, it is possible to support
16147 # filename-based versioning of shared library archives on AIX. While
16148 # this would work for both with and without runtime linking, it will
16149 # prevent static linking of such archives. So we do filename-based
16150 # shared library versioning with .so extension only, which is used
16151 # when both runtime linking and shared linking is enabled.
16152 # Unfortunately, runtime linking may impact performance, so we do
16153 # not want this to be the default eventually. Also, we use the
16154 # versioned .so libs for executables only if there is the -brtl
16155 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16156 # To allow for filename-based versioning support, we need to create
16157 # libNAME.so.V as an archive file, containing:
16158 # *) an Import File, referring to the versioned filename of the
16159 # archive as well as the shared archive member, telling the
16160 # bitwidth (32 or 64) of that shared object, and providing the
16161 # list of exported symbols of that shared object, eventually
16162 # decorated with the 'weak' keyword
16163 # *) the shared object with the F_LOADONLY flag set, to really avoid
16164 # it being seen by the linker.
16165 # At run time we better use the real file rather than another symlink,
16166 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16167
16168 case $with_aix_soname,$aix_use_runtimelinking in
16169 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16170 # soname into executable. Probably we can add versioning support to
16171 # collect2, so additional links can be useful in future.
16172 aix,yes) # traditional libtool
16173 dynamic_linker='AIX unversionable lib.so'
16174 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16175 # instead of lib<name>.a to let people know that these are not
16176 # typical AIX shared libraries.
16177 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16178 ;;
16179 aix,no) # traditional AIX only
16180 dynamic_linker='AIX lib.a(lib.so.V)'
16181 # We preserve .a as extension for shared libraries through AIX4.2
16182 # and later when we are not doing run time linking.
16183 library_names_spec='$libname$release.a $libname.a'
16184 soname_spec='$libname$release$shared_ext$major'
16185 ;;
16186 svr4,*) # full svr4 only
16187 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16188 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16189 # We do not specify a path in Import Files, so LIBPATH fires.
16190 shlibpath_overrides_runpath=yes
16191 ;;
16192 *,yes) # both, prefer svr4
16193 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16194 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16195 # unpreferred sharedlib libNAME.a needs extra handling
16196 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16197 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16198 # We do not specify a path in Import Files, so LIBPATH fires.
16199 shlibpath_overrides_runpath=yes
16200 ;;
16201 *,no) # both, prefer aix
16202 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16203 library_names_spec='$libname$release.a $libname.a'
16204 soname_spec='$libname$release$shared_ext$major'
16205 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16206 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16207 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16208 ;;
16209 esac
16210 shlibpath_var=LIBPATH
16211 fi
16212 ;;
16213
16214 amigaos*)
16215 case $host_cpu in
16216 powerpc)
16217 # Since July 2007 AmigaOS4 officially supports .so libraries.
16218 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16220 ;;
16221 m68k)
16222 library_names_spec='$libname.ixlibrary $libname.a'
16223 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16224 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16225 ;;
16226 esac
16227 ;;
16228
16229 beos*)
16230 library_names_spec='$libname$shared_ext'
16231 dynamic_linker="$host_os ld.so"
16232 shlibpath_var=LIBRARY_PATH
16233 ;;
16234
16235 bsdi[45]*)
16236 version_type=linux # correct to gnu/linux during the next big refactor
16237 need_version=no
16238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16239 soname_spec='$libname$release$shared_ext$major'
16240 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16241 shlibpath_var=LD_LIBRARY_PATH
16242 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16243 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16244 # the default ld.so.conf also contains /usr/contrib/lib and
16245 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16246 # libtool to hard-code these into programs
16247 ;;
16248
16249 cygwin* | mingw* | pw32* | cegcc*)
16250 version_type=windows
16251 shrext_cmds=.dll
16252 need_version=no
16253 need_lib_prefix=no
16254
16255 case $GCC,$cc_basename in
16256 yes,*)
16257 # gcc
16258 library_names_spec='$libname.dll.a'
16259 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16260 postinstall_cmds='base_file=`basename \$file`~
16261 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16262 dldir=$destdir/`dirname \$dlpath`~
16263 test -d \$dldir || mkdir -p \$dldir~
16264 $install_prog $dir/$dlname \$dldir/$dlname~
16265 chmod a+x \$dldir/$dlname~
16266 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16267 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16268 fi'
16269 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16270 dlpath=$dir/\$dldll~
16271 $RM \$dlpath'
16272 shlibpath_overrides_runpath=yes
16273
16274 case $host_os in
16275 cygwin*)
16276 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16277 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16278
16279 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16280 ;;
16281 mingw* | cegcc*)
16282 # MinGW DLLs use traditional 'lib' prefix
16283 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16284 ;;
16285 pw32*)
16286 # pw32 DLLs use 'pw' prefix rather than 'lib'
16287 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16288 ;;
16289 esac
16290 dynamic_linker='Win32 ld.exe'
16291 ;;
16292
16293 *,cl* | *,icl*)
16294 # Native MSVC or ICC
16295 libname_spec='$name'
16296 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16297 library_names_spec='$libname.dll.lib'
16298
16299 case $build_os in
16300 mingw*)
16301 sys_lib_search_path_spec=
16302 lt_save_ifs=$IFS
16303 IFS=';'
16304 for lt_path in $LIB
16305 do
16306 IFS=$lt_save_ifs
16307 # Let DOS variable expansion print the short 8.3 style file name.
16308 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16309 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16310 done
16311 IFS=$lt_save_ifs
16312 # Convert to MSYS style.
16313 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16314 ;;
16315 cygwin*)
16316 # Convert to unix form, then to dos form, then back to unix form
16317 # but this time dos style (no spaces!) so that the unix form looks
16318 # like /cygdrive/c/PROGRA~1:/cygdr...
16319 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16320 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16321 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16322 ;;
16323 *)
16324 sys_lib_search_path_spec=$LIB
16325 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16326 # It is most probably a Windows format PATH.
16327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16328 else
16329 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16330 fi
16331 # FIXME: find the short name or the path components, as spaces are
16332 # common. (e.g. "Program Files" -> "PROGRA~1")
16333 ;;
16334 esac
16335
16336 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16337 postinstall_cmds='base_file=`basename \$file`~
16338 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16339 dldir=$destdir/`dirname \$dlpath`~
16340 test -d \$dldir || mkdir -p \$dldir~
16341 $install_prog $dir/$dlname \$dldir/$dlname'
16342 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16343 dlpath=$dir/\$dldll~
16344 $RM \$dlpath'
16345 shlibpath_overrides_runpath=yes
16346 dynamic_linker='Win32 link.exe'
16347 ;;
16348
16349 *)
16350 # Assume MSVC and ICC wrapper
16351 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16352 dynamic_linker='Win32 ld.exe'
16353 ;;
16354 esac
16355 # FIXME: first we should search . and the directory the executable is in
16356 shlibpath_var=PATH
16357 ;;
16358
16359 darwin* | rhapsody*)
16360 dynamic_linker="$host_os dyld"
16361 version_type=darwin
16362 need_lib_prefix=no
16363 need_version=no
16364 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16365 soname_spec='$libname$release$major$shared_ext'
16366 shlibpath_overrides_runpath=yes
16367 shlibpath_var=DYLD_LIBRARY_PATH
16368 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16369
16370 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16371 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16372 ;;
16373
16374 dgux*)
16375 version_type=linux # correct to gnu/linux during the next big refactor
16376 need_lib_prefix=no
16377 need_version=no
16378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16379 soname_spec='$libname$release$shared_ext$major'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 ;;
16382
16383 freebsd* | dragonfly* | midnightbsd*)
16384 # DragonFly does not have aout. When/if they implement a new
16385 # versioning mechanism, adjust this.
16386 if test -x /usr/bin/objformat; then
16387 objformat=`/usr/bin/objformat`
16388 else
16389 case $host_os in
16390 freebsd[23].*) objformat=aout ;;
16391 *) objformat=elf ;;
16392 esac
16393 fi
16394 version_type=freebsd-$objformat
16395 case $version_type in
16396 freebsd-elf*)
16397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16398 soname_spec='$libname$release$shared_ext$major'
16399 need_version=no
16400 need_lib_prefix=no
16401 ;;
16402 freebsd-*)
16403 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16404 need_version=yes
16405 ;;
16406 esac
16407 shlibpath_var=LD_LIBRARY_PATH
16408 case $host_os in
16409 freebsd2.*)
16410 shlibpath_overrides_runpath=yes
16411 ;;
16412 freebsd3.[01]* | freebsdelf3.[01]*)
16413 shlibpath_overrides_runpath=yes
16414 hardcode_into_libs=yes
16415 ;;
16416 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16417 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16418 shlibpath_overrides_runpath=no
16419 hardcode_into_libs=yes
16420 ;;
16421 *) # from 4.6 on, and DragonFly
16422 shlibpath_overrides_runpath=yes
16423 hardcode_into_libs=yes
16424 ;;
16425 esac
16426 ;;
16427
16428 haiku*)
16429 version_type=linux # correct to gnu/linux during the next big refactor
16430 need_lib_prefix=no
16431 need_version=no
16432 dynamic_linker="$host_os runtime_loader"
16433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16434 soname_spec='$libname$release$shared_ext$major'
16435 shlibpath_var=LIBRARY_PATH
16436 shlibpath_overrides_runpath=no
16437 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16438 hardcode_into_libs=yes
16439 ;;
16440
16441 hpux9* | hpux10* | hpux11*)
16442 # Give a soname corresponding to the major version so that dld.sl refuses to
16443 # link against other versions.
16444 version_type=sunos
16445 need_lib_prefix=no
16446 need_version=no
16447 case $host_cpu in
16448 ia64*)
16449 shrext_cmds='.so'
16450 hardcode_into_libs=yes
16451 dynamic_linker="$host_os dld.so"
16452 shlibpath_var=LD_LIBRARY_PATH
16453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16455 soname_spec='$libname$release$shared_ext$major'
16456 if test 32 = "$HPUX_IA64_MODE"; then
16457 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16458 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16459 else
16460 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16461 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16462 fi
16463 ;;
16464 hppa*64*)
16465 shrext_cmds='.sl'
16466 hardcode_into_libs=yes
16467 dynamic_linker="$host_os dld.sl"
16468 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16471 soname_spec='$libname$release$shared_ext$major'
16472 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16474 ;;
16475 *)
16476 shrext_cmds='.sl'
16477 dynamic_linker="$host_os dld.sl"
16478 shlibpath_var=SHLIB_PATH
16479 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16481 soname_spec='$libname$release$shared_ext$major'
16482 ;;
16483 esac
16484 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16485 postinstall_cmds='chmod 555 $lib'
16486 # or fails outright, so override atomically:
16487 install_override_mode=555
16488 ;;
16489
16490 interix[3-9]*)
16491 version_type=linux # correct to gnu/linux during the next big refactor
16492 need_lib_prefix=no
16493 need_version=no
16494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16495 soname_spec='$libname$release$shared_ext$major'
16496 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16497 shlibpath_var=LD_LIBRARY_PATH
16498 shlibpath_overrides_runpath=no
16499 hardcode_into_libs=yes
16500 ;;
16501
16502 irix5* | irix6* | nonstopux*)
16503 case $host_os in
16504 nonstopux*) version_type=nonstopux ;;
16505 *)
16506 if test yes = "$lt_cv_prog_gnu_ld"; then
16507 version_type=linux # correct to gnu/linux during the next big refactor
16508 else
16509 version_type=irix
16510 fi ;;
16511 esac
16512 need_lib_prefix=no
16513 need_version=no
16514 soname_spec='$libname$release$shared_ext$major'
16515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16516 case $host_os in
16517 irix5* | nonstopux*)
16518 libsuff= shlibsuff=
16519 ;;
16520 *)
16521 case $LD in # libtool.m4 will add one of these switches to LD
16522 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16523 libsuff= shlibsuff= libmagic=32-bit;;
16524 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16525 libsuff=32 shlibsuff=N32 libmagic=N32;;
16526 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16527 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16528 *) libsuff= shlibsuff= libmagic=never-match;;
16529 esac
16530 ;;
16531 esac
16532 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16533 shlibpath_overrides_runpath=no
16534 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16535 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16536 hardcode_into_libs=yes
16537 ;;
16538
16539 # No shared lib support for Linux oldld, aout, or coff.
16540 linux*oldld* | linux*aout* | linux*coff*)
16541 dynamic_linker=no
16542 ;;
16543
16544 linux*android*)
16545 version_type=none # Android doesn't support versioned libraries.
16546 need_lib_prefix=no
16547 need_version=no
16548 library_names_spec='$libname$release$shared_ext'
16549 soname_spec='$libname$release$shared_ext'
16550 finish_cmds=
16551 shlibpath_var=LD_LIBRARY_PATH
16552 shlibpath_overrides_runpath=yes
16553
16554 # This implies no fast_install, which is unacceptable.
16555 # Some rework will be needed to allow for fast_install
16556 # before this can be enabled.
16557 hardcode_into_libs=yes
16558
16559 dynamic_linker='Android linker'
16560 # Don't embed -rpath directories since the linker doesn't support them.
16561 hardcode_libdir_flag_spec='-L$libdir'
16562 ;;
16563
16564 # This must be glibc/ELF.
16565 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16566 version_type=linux # correct to gnu/linux during the next big refactor
16567 need_lib_prefix=no
16568 need_version=no
16569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16570 soname_spec='$libname$release$shared_ext$major'
16571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16572 shlibpath_var=LD_LIBRARY_PATH
16573 shlibpath_overrides_runpath=no
16574
16575 # Some binutils ld are patched to set DT_RUNPATH
16576 if test ${lt_cv_shlibpath_overrides_runpath+y}
16577 then :
16578 printf %s "(cached) " >&6
16579 else case e in #(
16580 e) lt_cv_shlibpath_overrides_runpath=no
16581 save_LDFLAGS=$LDFLAGS
16582 save_libdir=$libdir
16583 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16584 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h. */
16587
16588 int
16589 main (void)
16590 {
16591
16592 ;
16593 return 0;
16594 }
16595 _ACEOF
16596 if ac_fn_c_try_link "$LINENO"
16597 then :
16598 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16599 then :
16600 lt_cv_shlibpath_overrides_runpath=yes
16601 fi
16602 fi
16603 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16604 conftest$ac_exeext conftest.$ac_ext
16605 LDFLAGS=$save_LDFLAGS
16606 libdir=$save_libdir
16607 ;;
16608 esac
16609 fi
16610
16611 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16612
16613 # This implies no fast_install, which is unacceptable.
16614 # Some rework will be needed to allow for fast_install
16615 # before this can be enabled.
16616 hardcode_into_libs=yes
16617
16618 # Ideally, we could use ldconfig to report *all* directores which are
16619 # searched for libraries, however this is still not possible. Aside from not
16620 # being certain /sbin/ldconfig is available, command
16621 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16622 # even though it is searched at run-time. Try to do the best guess by
16623 # appending ld.so.conf contents (and includes) to the search path.
16624 if test -f /etc/ld.so.conf; then
16625 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16626 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16627 fi
16628
16629 # We used to test for /lib/ld.so.1 and disable shared libraries on
16630 # powerpc, because MkLinux only supported shared libraries with the
16631 # GNU dynamic linker. Since this was broken with cross compilers,
16632 # most powerpc-linux boxes support dynamic linking these days and
16633 # people can always --disable-shared, the test was removed, and we
16634 # assume the GNU/Linux dynamic linker is in use.
16635 dynamic_linker='GNU/Linux ld.so'
16636 ;;
16637
16638 netbsdelf*-gnu)
16639 version_type=linux
16640 need_lib_prefix=no
16641 need_version=no
16642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16643 soname_spec='${libname}${release}${shared_ext}$major'
16644 shlibpath_var=LD_LIBRARY_PATH
16645 shlibpath_overrides_runpath=no
16646 hardcode_into_libs=yes
16647 dynamic_linker='NetBSD ld.elf_so'
16648 ;;
16649
16650 netbsd*)
16651 version_type=sunos
16652 need_lib_prefix=no
16653 need_version=no
16654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16655 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16657 dynamic_linker='NetBSD (a.out) ld.so'
16658 else
16659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16660 soname_spec='$libname$release$shared_ext$major'
16661 dynamic_linker='NetBSD ld.elf_so'
16662 fi
16663 shlibpath_var=LD_LIBRARY_PATH
16664 shlibpath_overrides_runpath=yes
16665 hardcode_into_libs=yes
16666 ;;
16667
16668 newsos6)
16669 version_type=linux # correct to gnu/linux during the next big refactor
16670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16671 shlibpath_var=LD_LIBRARY_PATH
16672 shlibpath_overrides_runpath=yes
16673 ;;
16674
16675 *nto* | *qnx*)
16676 version_type=qnx
16677 need_lib_prefix=no
16678 need_version=no
16679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16680 soname_spec='$libname$release$shared_ext$major'
16681 shlibpath_var=LD_LIBRARY_PATH
16682 shlibpath_overrides_runpath=no
16683 hardcode_into_libs=yes
16684 dynamic_linker='ldqnx.so'
16685 ;;
16686
16687 openbsd* | bitrig*)
16688 version_type=sunos
16689 sys_lib_dlsearch_path_spec=/usr/lib
16690 need_lib_prefix=no
16691 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16692 need_version=no
16693 else
16694 need_version=yes
16695 fi
16696 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16698 shlibpath_var=LD_LIBRARY_PATH
16699 shlibpath_overrides_runpath=yes
16700 ;;
16701
16702 os2*)
16703 libname_spec='$name'
16704 version_type=windows
16705 shrext_cmds=.dll
16706 need_version=no
16707 need_lib_prefix=no
16708 # OS/2 can only load a DLL with a base name of 8 characters or less.
16709 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16710 v=$($ECHO $release$versuffix | tr -d .-);
16711 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16712 $ECHO $n$v`$shared_ext'
16713 library_names_spec='${libname}_dll.$libext'
16714 dynamic_linker='OS/2 ld.exe'
16715 shlibpath_var=BEGINLIBPATH
16716 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16718 postinstall_cmds='base_file=`basename \$file`~
16719 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16720 dldir=$destdir/`dirname \$dlpath`~
16721 test -d \$dldir || mkdir -p \$dldir~
16722 $install_prog $dir/$dlname \$dldir/$dlname~
16723 chmod a+x \$dldir/$dlname~
16724 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16725 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16726 fi'
16727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16728 dlpath=$dir/\$dldll~
16729 $RM \$dlpath'
16730 ;;
16731
16732 osf3* | osf4* | osf5*)
16733 version_type=osf
16734 need_lib_prefix=no
16735 need_version=no
16736 soname_spec='$libname$release$shared_ext$major'
16737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16738 shlibpath_var=LD_LIBRARY_PATH
16739 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16741 ;;
16742
16743 rdos*)
16744 dynamic_linker=no
16745 ;;
16746
16747 solaris*)
16748 version_type=linux # correct to gnu/linux during the next big refactor
16749 need_lib_prefix=no
16750 need_version=no
16751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16752 soname_spec='$libname$release$shared_ext$major'
16753 shlibpath_var=LD_LIBRARY_PATH
16754 shlibpath_overrides_runpath=yes
16755 hardcode_into_libs=yes
16756 # ldd complains unless libraries are executable
16757 postinstall_cmds='chmod +x $lib'
16758 ;;
16759
16760 sunos4*)
16761 version_type=sunos
16762 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16763 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16764 shlibpath_var=LD_LIBRARY_PATH
16765 shlibpath_overrides_runpath=yes
16766 if test yes = "$with_gnu_ld"; then
16767 need_lib_prefix=no
16768 fi
16769 need_version=yes
16770 ;;
16771
16772 sysv4 | sysv4.3*)
16773 version_type=linux # correct to gnu/linux during the next big refactor
16774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16775 soname_spec='$libname$release$shared_ext$major'
16776 shlibpath_var=LD_LIBRARY_PATH
16777 case $host_vendor in
16778 sni)
16779 shlibpath_overrides_runpath=no
16780 need_lib_prefix=no
16781 runpath_var=LD_RUN_PATH
16782 ;;
16783 siemens)
16784 need_lib_prefix=no
16785 ;;
16786 motorola)
16787 need_lib_prefix=no
16788 need_version=no
16789 shlibpath_overrides_runpath=no
16790 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16791 ;;
16792 esac
16793 ;;
16794
16795 sysv4*MP*)
16796 if test -d /usr/nec; then
16797 version_type=linux # correct to gnu/linux during the next big refactor
16798 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16799 soname_spec='$libname$shared_ext.$major'
16800 shlibpath_var=LD_LIBRARY_PATH
16801 fi
16802 ;;
16803
16804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16805 version_type=sco
16806 need_lib_prefix=no
16807 need_version=no
16808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16809 soname_spec='$libname$release$shared_ext$major'
16810 shlibpath_var=LD_LIBRARY_PATH
16811 shlibpath_overrides_runpath=yes
16812 hardcode_into_libs=yes
16813 if test yes = "$with_gnu_ld"; then
16814 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16815 else
16816 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16817 case $host_os in
16818 sco3.2v5*)
16819 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16820 ;;
16821 esac
16822 fi
16823 sys_lib_dlsearch_path_spec='/usr/lib'
16824 ;;
16825
16826 tpf*)
16827 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16828 version_type=linux # correct to gnu/linux during the next big refactor
16829 need_lib_prefix=no
16830 need_version=no
16831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 shlibpath_overrides_runpath=no
16834 hardcode_into_libs=yes
16835 ;;
16836
16837 uts4*)
16838 version_type=linux # correct to gnu/linux during the next big refactor
16839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16840 soname_spec='$libname$release$shared_ext$major'
16841 shlibpath_var=LD_LIBRARY_PATH
16842 ;;
16843
16844 *)
16845 dynamic_linker=no
16846 ;;
16847 esac
16848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16849 printf "%s\n" "$dynamic_linker" >&6; }
16850 test no = "$dynamic_linker" && can_build_shared=no
16851
16852 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16853 if test yes = "$GCC"; then
16854 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16855 fi
16856
16857 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16858 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16859 fi
16860
16861 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16862 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16863 fi
16864
16865 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16866 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16867
16868 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16869 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16870
16871 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16872 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16971 printf %s "checking how to hardcode library paths into programs... " >&6; }
16972 hardcode_action=
16973 if test -n "$hardcode_libdir_flag_spec" ||
16974 test -n "$runpath_var" ||
16975 test yes = "$hardcode_automatic"; then
16976
16977 # We can hardcode non-existent directories.
16978 if test no != "$hardcode_direct" &&
16979 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16980 # have to relink, otherwise we might link with an installed library
16981 # when we should be linking with a yet-to-be-installed one
16982 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16983 test no != "$hardcode_minus_L"; then
16984 # Linking always hardcodes the temporary library directory.
16985 hardcode_action=relink
16986 else
16987 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16988 hardcode_action=immediate
16989 fi
16990 else
16991 # We cannot hardcode anything, or else we can only hardcode existing
16992 # directories.
16993 hardcode_action=unsupported
16994 fi
16995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16996 printf "%s\n" "$hardcode_action" >&6; }
16997
16998 if test relink = "$hardcode_action" ||
16999 test yes = "$inherit_rpath"; then
17000 # Fast installation is not supported
17001 enable_fast_install=no
17002 elif test yes = "$shlibpath_overrides_runpath" ||
17003 test no = "$enable_shared"; then
17004 # Fast installation is not necessary
17005 enable_fast_install=needless
17006 fi
17007
17008
17009
17010
17011
17012
17013 if test yes != "$enable_dlopen"; then
17014 enable_dlopen=unknown
17015 enable_dlopen_self=unknown
17016 enable_dlopen_self_static=unknown
17017 else
17018 lt_cv_dlopen=no
17019 lt_cv_dlopen_libs=
17020
17021 case $host_os in
17022 beos*)
17023 lt_cv_dlopen=load_add_on
17024 lt_cv_dlopen_libs=
17025 lt_cv_dlopen_self=yes
17026 ;;
17027
17028 mingw* | pw32* | cegcc*)
17029 lt_cv_dlopen=LoadLibrary
17030 lt_cv_dlopen_libs=
17031 ;;
17032
17033 cygwin*)
17034 lt_cv_dlopen=dlopen
17035 lt_cv_dlopen_libs=
17036 ;;
17037
17038 darwin*)
17039 # if libdl is installed we need to link against it
17040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17041 printf %s "checking for dlopen in -ldl... " >&6; }
17042 if test ${ac_cv_lib_dl_dlopen+y}
17043 then :
17044 printf %s "(cached) " >&6
17045 else case e in #(
17046 e) ac_check_lib_save_LIBS=$LIBS
17047 LIBS="-ldl $LIBS"
17048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17049 /* end confdefs.h. */
17050
17051 /* Override any GCC internal prototype to avoid an error.
17052 Use char because int might match the return type of a GCC
17053 builtin and then its argument prototype would still apply.
17054 The 'extern "C"' is for builds by C++ compilers;
17055 although this is not generally supported in C code supporting it here
17056 has little cost and some practical benefit (sr 110532). */
17057 #ifdef __cplusplus
17058 extern "C"
17059 #endif
17060 char dlopen (void);
17061 int
17062 main (void)
17063 {
17064 return dlopen ();
17065 ;
17066 return 0;
17067 }
17068 _ACEOF
17069 if ac_fn_c_try_link "$LINENO"
17070 then :
17071 ac_cv_lib_dl_dlopen=yes
17072 else case e in #(
17073 e) ac_cv_lib_dl_dlopen=no ;;
17074 esac
17075 fi
17076 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17077 conftest$ac_exeext conftest.$ac_ext
17078 LIBS=$ac_check_lib_save_LIBS ;;
17079 esac
17080 fi
17081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17082 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
17083 if test "x$ac_cv_lib_dl_dlopen" = xyes
17084 then :
17085 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17086 else case e in #(
17087 e)
17088 lt_cv_dlopen=dyld
17089 lt_cv_dlopen_libs=
17090 lt_cv_dlopen_self=yes
17091 ;;
17092 esac
17093 fi
17094
17095 ;;
17096
17097 tpf*)
17098 # Don't try to run any link tests for TPF. We know it's impossible
17099 # because TPF is a cross-compiler, and we know how we open DSOs.
17100 lt_cv_dlopen=dlopen
17101 lt_cv_dlopen_libs=
17102 lt_cv_dlopen_self=no
17103 ;;
17104
17105 *)
17106 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17107 if test "x$ac_cv_func_shl_load" = xyes
17108 then :
17109 lt_cv_dlopen=shl_load
17110 else case e in #(
17111 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17112 printf %s "checking for shl_load in -ldld... " >&6; }
17113 if test ${ac_cv_lib_dld_shl_load+y}
17114 then :
17115 printf %s "(cached) " >&6
17116 else case e in #(
17117 e) ac_check_lib_save_LIBS=$LIBS
17118 LIBS="-ldld $LIBS"
17119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17120 /* end confdefs.h. */
17121
17122 /* Override any GCC internal prototype to avoid an error.
17123 Use char because int might match the return type of a GCC
17124 builtin and then its argument prototype would still apply.
17125 The 'extern "C"' is for builds by C++ compilers;
17126 although this is not generally supported in C code supporting it here
17127 has little cost and some practical benefit (sr 110532). */
17128 #ifdef __cplusplus
17129 extern "C"
17130 #endif
17131 char shl_load (void);
17132 int
17133 main (void)
17134 {
17135 return shl_load ();
17136 ;
17137 return 0;
17138 }
17139 _ACEOF
17140 if ac_fn_c_try_link "$LINENO"
17141 then :
17142 ac_cv_lib_dld_shl_load=yes
17143 else case e in #(
17144 e) ac_cv_lib_dld_shl_load=no ;;
17145 esac
17146 fi
17147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17148 conftest$ac_exeext conftest.$ac_ext
17149 LIBS=$ac_check_lib_save_LIBS ;;
17150 esac
17151 fi
17152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17153 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
17154 if test "x$ac_cv_lib_dld_shl_load" = xyes
17155 then :
17156 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17157 else case e in #(
17158 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17159 if test "x$ac_cv_func_dlopen" = xyes
17160 then :
17161 lt_cv_dlopen=dlopen
17162 else case e in #(
17163 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17164 printf %s "checking for dlopen in -ldl... " >&6; }
17165 if test ${ac_cv_lib_dl_dlopen+y}
17166 then :
17167 printf %s "(cached) " >&6
17168 else case e in #(
17169 e) ac_check_lib_save_LIBS=$LIBS
17170 LIBS="-ldl $LIBS"
17171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172 /* end confdefs.h. */
17173
17174 /* Override any GCC internal prototype to avoid an error.
17175 Use char because int might match the return type of a GCC
17176 builtin and then its argument prototype would still apply.
17177 The 'extern "C"' is for builds by C++ compilers;
17178 although this is not generally supported in C code supporting it here
17179 has little cost and some practical benefit (sr 110532). */
17180 #ifdef __cplusplus
17181 extern "C"
17182 #endif
17183 char dlopen (void);
17184 int
17185 main (void)
17186 {
17187 return dlopen ();
17188 ;
17189 return 0;
17190 }
17191 _ACEOF
17192 if ac_fn_c_try_link "$LINENO"
17193 then :
17194 ac_cv_lib_dl_dlopen=yes
17195 else case e in #(
17196 e) ac_cv_lib_dl_dlopen=no ;;
17197 esac
17198 fi
17199 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17200 conftest$ac_exeext conftest.$ac_ext
17201 LIBS=$ac_check_lib_save_LIBS ;;
17202 esac
17203 fi
17204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17205 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
17206 if test "x$ac_cv_lib_dl_dlopen" = xyes
17207 then :
17208 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17209 else case e in #(
17210 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17211 printf %s "checking for dlopen in -lsvld... " >&6; }
17212 if test ${ac_cv_lib_svld_dlopen+y}
17213 then :
17214 printf %s "(cached) " >&6
17215 else case e in #(
17216 e) ac_check_lib_save_LIBS=$LIBS
17217 LIBS="-lsvld $LIBS"
17218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219 /* end confdefs.h. */
17220
17221 /* Override any GCC internal prototype to avoid an error.
17222 Use char because int might match the return type of a GCC
17223 builtin and then its argument prototype would still apply.
17224 The 'extern "C"' is for builds by C++ compilers;
17225 although this is not generally supported in C code supporting it here
17226 has little cost and some practical benefit (sr 110532). */
17227 #ifdef __cplusplus
17228 extern "C"
17229 #endif
17230 char dlopen (void);
17231 int
17232 main (void)
17233 {
17234 return dlopen ();
17235 ;
17236 return 0;
17237 }
17238 _ACEOF
17239 if ac_fn_c_try_link "$LINENO"
17240 then :
17241 ac_cv_lib_svld_dlopen=yes
17242 else case e in #(
17243 e) ac_cv_lib_svld_dlopen=no ;;
17244 esac
17245 fi
17246 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17247 conftest$ac_exeext conftest.$ac_ext
17248 LIBS=$ac_check_lib_save_LIBS ;;
17249 esac
17250 fi
17251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17252 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
17253 if test "x$ac_cv_lib_svld_dlopen" = xyes
17254 then :
17255 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17256 else case e in #(
17257 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17258 printf %s "checking for dld_link in -ldld... " >&6; }
17259 if test ${ac_cv_lib_dld_dld_link+y}
17260 then :
17261 printf %s "(cached) " >&6
17262 else case e in #(
17263 e) ac_check_lib_save_LIBS=$LIBS
17264 LIBS="-ldld $LIBS"
17265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17266 /* end confdefs.h. */
17267
17268 /* Override any GCC internal prototype to avoid an error.
17269 Use char because int might match the return type of a GCC
17270 builtin and then its argument prototype would still apply.
17271 The 'extern "C"' is for builds by C++ compilers;
17272 although this is not generally supported in C code supporting it here
17273 has little cost and some practical benefit (sr 110532). */
17274 #ifdef __cplusplus
17275 extern "C"
17276 #endif
17277 char dld_link (void);
17278 int
17279 main (void)
17280 {
17281 return dld_link ();
17282 ;
17283 return 0;
17284 }
17285 _ACEOF
17286 if ac_fn_c_try_link "$LINENO"
17287 then :
17288 ac_cv_lib_dld_dld_link=yes
17289 else case e in #(
17290 e) ac_cv_lib_dld_dld_link=no ;;
17291 esac
17292 fi
17293 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17294 conftest$ac_exeext conftest.$ac_ext
17295 LIBS=$ac_check_lib_save_LIBS ;;
17296 esac
17297 fi
17298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17299 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
17300 if test "x$ac_cv_lib_dld_dld_link" = xyes
17301 then :
17302 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17303 fi
17304
17305 ;;
17306 esac
17307 fi
17308
17309 ;;
17310 esac
17311 fi
17312
17313 ;;
17314 esac
17315 fi
17316
17317 ;;
17318 esac
17319 fi
17320
17321 ;;
17322 esac
17323 fi
17324
17325 ;;
17326 esac
17327
17328 if test no = "$lt_cv_dlopen"; then
17329 enable_dlopen=no
17330 else
17331 enable_dlopen=yes
17332 fi
17333
17334 case $lt_cv_dlopen in
17335 dlopen)
17336 save_CPPFLAGS=$CPPFLAGS
17337 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17338
17339 save_LDFLAGS=$LDFLAGS
17340 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17341
17342 save_LIBS=$LIBS
17343 LIBS="$lt_cv_dlopen_libs $LIBS"
17344
17345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17346 printf %s "checking whether a program can dlopen itself... " >&6; }
17347 if test ${lt_cv_dlopen_self+y}
17348 then :
17349 printf %s "(cached) " >&6
17350 else case e in #(
17351 e) if test yes = "$cross_compiling"; then :
17352 lt_cv_dlopen_self=cross
17353 else
17354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17355 lt_status=$lt_dlunknown
17356 cat > conftest.$ac_ext <<_LT_EOF
17357 #line $LINENO "configure"
17358 #include "confdefs.h"
17359
17360 #if HAVE_DLFCN_H
17361 #include <dlfcn.h>
17362 #endif
17363
17364 #include <stdio.h>
17365
17366 #ifdef RTLD_GLOBAL
17367 # define LT_DLGLOBAL RTLD_GLOBAL
17368 #else
17369 # ifdef DL_GLOBAL
17370 # define LT_DLGLOBAL DL_GLOBAL
17371 # else
17372 # define LT_DLGLOBAL 0
17373 # endif
17374 #endif
17375
17376 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17377 find out it does not work in some platform. */
17378 #ifndef LT_DLLAZY_OR_NOW
17379 # ifdef RTLD_LAZY
17380 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17381 # else
17382 # ifdef DL_LAZY
17383 # define LT_DLLAZY_OR_NOW DL_LAZY
17384 # else
17385 # ifdef RTLD_NOW
17386 # define LT_DLLAZY_OR_NOW RTLD_NOW
17387 # else
17388 # ifdef DL_NOW
17389 # define LT_DLLAZY_OR_NOW DL_NOW
17390 # else
17391 # define LT_DLLAZY_OR_NOW 0
17392 # endif
17393 # endif
17394 # endif
17395 # endif
17396 #endif
17397
17398 /* When -fvisibility=hidden is used, assume the code has been annotated
17399 correspondingly for the symbols needed. */
17400 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17401 int fnord () __attribute__((visibility("default")));
17402 #endif
17403
17404 int fnord () { return 42; }
17405 int main ()
17406 {
17407 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17408 int status = $lt_dlunknown;
17409
17410 if (self)
17411 {
17412 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17413 else
17414 {
17415 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17416 else puts (dlerror ());
17417 }
17418 /* dlclose (self); */
17419 }
17420 else
17421 puts (dlerror ());
17422
17423 return status;
17424 }
17425 _LT_EOF
17426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17427 (eval $ac_link) 2>&5
17428 ac_status=$?
17429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17430 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17431 (./conftest; exit; ) >&5 2>/dev/null
17432 lt_status=$?
17433 case x$lt_status in
17434 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17435 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17436 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17437 esac
17438 else :
17439 # compilation failed
17440 lt_cv_dlopen_self=no
17441 fi
17442 fi
17443 rm -fr conftest*
17444
17445 ;;
17446 esac
17447 fi
17448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17449 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
17450
17451 if test yes = "$lt_cv_dlopen_self"; then
17452 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17454 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
17455 if test ${lt_cv_dlopen_self_static+y}
17456 then :
17457 printf %s "(cached) " >&6
17458 else case e in #(
17459 e) if test yes = "$cross_compiling"; then :
17460 lt_cv_dlopen_self_static=cross
17461 else
17462 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17463 lt_status=$lt_dlunknown
17464 cat > conftest.$ac_ext <<_LT_EOF
17465 #line $LINENO "configure"
17466 #include "confdefs.h"
17467
17468 #if HAVE_DLFCN_H
17469 #include <dlfcn.h>
17470 #endif
17471
17472 #include <stdio.h>
17473
17474 #ifdef RTLD_GLOBAL
17475 # define LT_DLGLOBAL RTLD_GLOBAL
17476 #else
17477 # ifdef DL_GLOBAL
17478 # define LT_DLGLOBAL DL_GLOBAL
17479 # else
17480 # define LT_DLGLOBAL 0
17481 # endif
17482 #endif
17483
17484 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17485 find out it does not work in some platform. */
17486 #ifndef LT_DLLAZY_OR_NOW
17487 # ifdef RTLD_LAZY
17488 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17489 # else
17490 # ifdef DL_LAZY
17491 # define LT_DLLAZY_OR_NOW DL_LAZY
17492 # else
17493 # ifdef RTLD_NOW
17494 # define LT_DLLAZY_OR_NOW RTLD_NOW
17495 # else
17496 # ifdef DL_NOW
17497 # define LT_DLLAZY_OR_NOW DL_NOW
17498 # else
17499 # define LT_DLLAZY_OR_NOW 0
17500 # endif
17501 # endif
17502 # endif
17503 # endif
17504 #endif
17505
17506 /* When -fvisibility=hidden is used, assume the code has been annotated
17507 correspondingly for the symbols needed. */
17508 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17509 int fnord () __attribute__((visibility("default")));
17510 #endif
17511
17512 int fnord () { return 42; }
17513 int main ()
17514 {
17515 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17516 int status = $lt_dlunknown;
17517
17518 if (self)
17519 {
17520 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17521 else
17522 {
17523 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17524 else puts (dlerror ());
17525 }
17526 /* dlclose (self); */
17527 }
17528 else
17529 puts (dlerror ());
17530
17531 return status;
17532 }
17533 _LT_EOF
17534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17535 (eval $ac_link) 2>&5
17536 ac_status=$?
17537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17538 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17539 (./conftest; exit; ) >&5 2>/dev/null
17540 lt_status=$?
17541 case x$lt_status in
17542 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17543 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17544 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17545 esac
17546 else :
17547 # compilation failed
17548 lt_cv_dlopen_self_static=no
17549 fi
17550 fi
17551 rm -fr conftest*
17552
17553 ;;
17554 esac
17555 fi
17556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17557 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
17558 fi
17559
17560 CPPFLAGS=$save_CPPFLAGS
17561 LDFLAGS=$save_LDFLAGS
17562 LIBS=$save_LIBS
17563 ;;
17564 esac
17565
17566 case $lt_cv_dlopen_self in
17567 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17568 *) enable_dlopen_self=unknown ;;
17569 esac
17570
17571 case $lt_cv_dlopen_self_static in
17572 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17573 *) enable_dlopen_self_static=unknown ;;
17574 esac
17575 fi
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593 striplib=
17594 old_striplib=
17595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17596 printf %s "checking whether stripping libraries is possible... " >&6; }
17597 if test -z "$STRIP"; then
17598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17599 printf "%s\n" "no" >&6; }
17600 else
17601 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17602 old_striplib="$STRIP --strip-debug"
17603 striplib="$STRIP --strip-unneeded"
17604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17605 printf "%s\n" "yes" >&6; }
17606 else
17607 case $host_os in
17608 darwin*)
17609 # FIXME - insert some real tests, host_os isn't really good enough
17610 striplib="$STRIP -x"
17611 old_striplib="$STRIP -S"
17612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17613 printf "%s\n" "yes" >&6; }
17614 ;;
17615 freebsd*)
17616 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
17617 old_striplib="$STRIP --strip-debug"
17618 striplib="$STRIP --strip-unneeded"
17619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17620 printf "%s\n" "yes" >&6; }
17621 else
17622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17623 printf "%s\n" "no" >&6; }
17624 fi
17625 ;;
17626 *)
17627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17628 printf "%s\n" "no" >&6; }
17629 ;;
17630 esac
17631 fi
17632 fi
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645 # Report what library types will actually be built
17646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17647 printf %s "checking if libtool supports shared libraries... " >&6; }
17648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17649 printf "%s\n" "$can_build_shared" >&6; }
17650
17651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17652 printf %s "checking whether to build shared libraries... " >&6; }
17653 test no = "$can_build_shared" && enable_shared=no
17654
17655 # On AIX, shared libraries and static libraries use the same namespace, and
17656 # are all built from PIC.
17657 case $host_os in
17658 aix3*)
17659 test yes = "$enable_shared" && enable_static=no
17660 if test -n "$RANLIB"; then
17661 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17662 postinstall_cmds='$RANLIB $lib'
17663 fi
17664 ;;
17665
17666 aix[4-9]*)
17667 if test ia64 != "$host_cpu"; then
17668 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
17669 yes,aix,yes) ;; # shared object as lib.so file only
17670 yes,svr4,*) ;; # shared object as lib.so archive member only
17671 yes,*) enable_static=no ;; # shared object in lib.a archive as well
17672 esac
17673 fi
17674 ;;
17675 esac
17676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17677 printf "%s\n" "$enable_shared" >&6; }
17678
17679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17680 printf %s "checking whether to build static libraries... " >&6; }
17681 # Make sure either enable_shared or enable_static is yes.
17682 test yes = "$enable_shared" || enable_static=yes
17683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17684 printf "%s\n" "$enable_static" >&6; }
17685
17686
17687
17688
17689 fi
17690 ac_ext=c
17691 ac_cpp='$CPP $CPPFLAGS'
17692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17695
17696 CC=$lt_save_CC
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712 ac_config_commands="$ac_config_commands libtool"
17713
17714
17715
17716
17717 # Only expand once:
17718
17719
17720
17721 printf "%s\n" "#define SHELL \"$SHELL\"" >>confdefs.h
17722
17723
17724
17725
17726
17727
17728
17729
17730 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17731 if test -n "$ac_tool_prefix"; then
17732 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17733 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17735 printf %s "checking for $ac_word... " >&6; }
17736 if test ${ac_cv_path_PKG_CONFIG+y}
17737 then :
17738 printf %s "(cached) " >&6
17739 else case e in #(
17740 e) case $PKG_CONFIG in
17741 [\\/]* | ?:[\\/]*)
17742 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17743 ;;
17744 *)
17745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17746 for as_dir in $PATH
17747 do
17748 IFS=$as_save_IFS
17749 case $as_dir in #(((
17750 '') as_dir=./ ;;
17751 */) ;;
17752 *) as_dir=$as_dir/ ;;
17753 esac
17754 for ac_exec_ext in '' $ac_executable_extensions; do
17755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17756 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17758 break 2
17759 fi
17760 done
17761 done
17762 IFS=$as_save_IFS
17763
17764 ;;
17765 esac ;;
17766 esac
17767 fi
17768 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17769 if test -n "$PKG_CONFIG"; then
17770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17771 printf "%s\n" "$PKG_CONFIG" >&6; }
17772 else
17773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17774 printf "%s\n" "no" >&6; }
17775 fi
17776
17777
17778 fi
17779 if test -z "$ac_cv_path_PKG_CONFIG"; then
17780 ac_pt_PKG_CONFIG=$PKG_CONFIG
17781 # Extract the first word of "pkg-config", so it can be a program name with args.
17782 set dummy pkg-config; ac_word=$2
17783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17784 printf %s "checking for $ac_word... " >&6; }
17785 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
17786 then :
17787 printf %s "(cached) " >&6
17788 else case e in #(
17789 e) case $ac_pt_PKG_CONFIG in
17790 [\\/]* | ?:[\\/]*)
17791 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17792 ;;
17793 *)
17794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17795 for as_dir in $PATH
17796 do
17797 IFS=$as_save_IFS
17798 case $as_dir in #(((
17799 '') as_dir=./ ;;
17800 */) ;;
17801 *) as_dir=$as_dir/ ;;
17802 esac
17803 for ac_exec_ext in '' $ac_executable_extensions; do
17804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17805 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17807 break 2
17808 fi
17809 done
17810 done
17811 IFS=$as_save_IFS
17812
17813 ;;
17814 esac ;;
17815 esac
17816 fi
17817 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17818 if test -n "$ac_pt_PKG_CONFIG"; then
17819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17820 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
17821 else
17822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17823 printf "%s\n" "no" >&6; }
17824 fi
17825
17826 if test "x$ac_pt_PKG_CONFIG" = x; then
17827 PKG_CONFIG=""
17828 else
17829 case $cross_compiling:$ac_tool_warned in
17830 yes:)
17831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17832 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17833 ac_tool_warned=yes ;;
17834 esac
17835 PKG_CONFIG=$ac_pt_PKG_CONFIG
17836 fi
17837 else
17838 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17839 fi
17840
17841 fi
17842 if test -n "$PKG_CONFIG"; then
17843 _pkg_min_version=0.9.0
17844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17845 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17846 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17848 printf "%s\n" "yes" >&6; }
17849 else
17850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17851 printf "%s\n" "no" >&6; }
17852 PKG_CONFIG=""
17853 fi
17854 fi
17855
17856 pkg_failed=no
17857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for check >= 0.9.10" >&5
17858 printf %s "checking for check >= 0.9.10... " >&6; }
17859
17860 if test -n "$CHECK_CFLAGS"; then
17861 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
17862 elif test -n "$PKG_CONFIG"; then
17863 if test -n "$PKG_CONFIG" && \
17864 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.10\""; } >&5
17865 ($PKG_CONFIG --exists --print-errors "check >= 0.9.10") 2>&5
17866 ac_status=$?
17867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17868 test $ac_status = 0; }; then
17869 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.10" 2>/dev/null`
17870 test "x$?" != "x0" && pkg_failed=yes
17871 else
17872 pkg_failed=yes
17873 fi
17874 else
17875 pkg_failed=untried
17876 fi
17877 if test -n "$CHECK_LIBS"; then
17878 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
17879 elif test -n "$PKG_CONFIG"; then
17880 if test -n "$PKG_CONFIG" && \
17881 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.10\""; } >&5
17882 ($PKG_CONFIG --exists --print-errors "check >= 0.9.10") 2>&5
17883 ac_status=$?
17884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17885 test $ac_status = 0; }; then
17886 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.10" 2>/dev/null`
17887 test "x$?" != "x0" && pkg_failed=yes
17888 else
17889 pkg_failed=yes
17890 fi
17891 else
17892 pkg_failed=untried
17893 fi
17894
17895
17896
17897 if test $pkg_failed = yes; then
17898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17899 printf "%s\n" "no" >&6; }
17900
17901 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17902 _pkg_short_errors_supported=yes
17903 else
17904 _pkg_short_errors_supported=no
17905 fi
17906 if test $_pkg_short_errors_supported = yes; then
17907 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.10" 2>&1`
17908 else
17909 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.10" 2>&1`
17910 fi
17911 # Put the nasty error message in config.log where it belongs
17912 echo "$CHECK_PKG_ERRORS" >&5
17913
17914 run_tests=no
17915 elif test $pkg_failed = untried; then
17916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17917 printf "%s\n" "no" >&6; }
17918 run_tests=no
17919 else
17920 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
17921 CHECK_LIBS=$pkg_cv_CHECK_LIBS
17922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17923 printf "%s\n" "yes" >&6; }
17924 run_tests=yes
17925 fi
17926 if test "x$run_tests" = xyes; then
17927 RUN_TESTS_TRUE=
17928 RUN_TESTS_FALSE='#'
17929 else
17930 RUN_TESTS_TRUE='#'
17931 RUN_TESTS_FALSE=
17932 fi
17933
17934
17935 # Check for various header files and associated libraries.
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946 # Check whether --enable-cross-guesses was given.
17947 if test ${enable_cross_guesses+y}
17948 then :
17949 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
17950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
17951 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
17952 enableval=conservative
17953 fi
17954 gl_cross_guesses="$enableval"
17955 else case e in #(
17956 e) gl_cross_guesses=conservative ;;
17957 esac
17958 fi
17959
17960 if test $gl_cross_guesses = risky; then
17961 gl_cross_guess_normal="guessing yes"
17962 gl_cross_guess_inverted="guessing no"
17963 else
17964 gl_cross_guess_normal="guessing no"
17965 gl_cross_guess_inverted="guessing yes"
17966 fi
17967 LIBC_FATAL_STDERR_=1
17968 export LIBC_FATAL_STDERR_
17969
17970
17971 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17972 if test "x$ac_cv_type_size_t" = xyes
17973 then :
17974
17975 else case e in #(
17976 e)
17977 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
17978 ;;
17979 esac
17980 fi
17981
17982 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17983 # for constant arguments. Useless!
17984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17985 printf %s "checking for working alloca.h... " >&6; }
17986 if test ${ac_cv_working_alloca_h+y}
17987 then :
17988 printf %s "(cached) " >&6
17989 else case e in #(
17990 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17992 #include <alloca.h>
17993 int
17994 main (void)
17995 {
17996 char *p = (char *) alloca (2 * sizeof (int));
17997 if (p) return 0;
17998 ;
17999 return 0;
18000 }
18001 _ACEOF
18002 if ac_fn_c_try_link "$LINENO"
18003 then :
18004 ac_cv_working_alloca_h=yes
18005 else case e in #(
18006 e) ac_cv_working_alloca_h=no ;;
18007 esac
18008 fi
18009 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18010 conftest$ac_exeext conftest.$ac_ext ;;
18011 esac
18012 fi
18013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18014 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
18015 if test $ac_cv_working_alloca_h = yes; then
18016
18017 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
18018
18019 fi
18020
18021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18022 printf %s "checking for alloca... " >&6; }
18023 if test ${ac_cv_func_alloca_works+y}
18024 then :
18025 printf %s "(cached) " >&6
18026 else case e in #(
18027 e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
18028 if test "$ac_cv_func_alloca_works" != yes
18029 then :
18030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18031 /* end confdefs.h. */
18032 #include <stdlib.h>
18033 #include <stddef.h>
18034 #ifndef alloca
18035 # ifdef __GNUC__
18036 # define alloca __builtin_alloca
18037 # elif defined _MSC_VER
18038 # include <malloc.h>
18039 # define alloca _alloca
18040 # else
18041 # ifdef __cplusplus
18042 extern "C"
18043 # endif
18044 void *alloca (size_t);
18045 # endif
18046 #endif
18047
18048 int
18049 main (void)
18050 {
18051 char *p = (char *) alloca (1);
18052 if (p) return 0;
18053 ;
18054 return 0;
18055 }
18056 _ACEOF
18057 if ac_fn_c_try_link "$LINENO"
18058 then :
18059 ac_cv_func_alloca_works=yes
18060 fi
18061 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18062 conftest$ac_exeext conftest.$ac_ext
18063 fi ;;
18064 esac
18065 fi
18066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18067 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
18068
18069 if test $ac_cv_func_alloca_works = yes; then
18070
18071 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
18072
18073 else
18074 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18075 # that cause trouble. Some versions do not even contain alloca or
18076 # contain a buggy version. If you still want to use their alloca,
18077 # use ar to extract alloca.o from them instead of compiling alloca.c.
18078
18079
18080
18081
18082
18083 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18084
18085 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
18086
18087
18088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18089 printf %s "checking stack direction for C alloca... " >&6; }
18090 if test ${ac_cv_c_stack_direction+y}
18091 then :
18092 printf %s "(cached) " >&6
18093 else case e in #(
18094 e) if test "$cross_compiling" = yes
18095 then :
18096 ac_cv_c_stack_direction=0
18097 else case e in #(
18098 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18099 /* end confdefs.h. */
18100 $ac_includes_default
18101 int
18102 find_stack_direction (int *addr, int depth)
18103 {
18104 int dir, dummy = 0;
18105 if (! addr)
18106 addr = &dummy;
18107 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18108 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18109 return dir + dummy;
18110 }
18111
18112 int
18113 main (int argc, char **argv)
18114 {
18115 return find_stack_direction (0, argc + !argv + 20) < 0;
18116 }
18117 _ACEOF
18118 if ac_fn_c_try_run "$LINENO"
18119 then :
18120 ac_cv_c_stack_direction=1
18121 else case e in #(
18122 e) ac_cv_c_stack_direction=-1 ;;
18123 esac
18124 fi
18125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18126 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18127 esac
18128 fi
18129 ;;
18130 esac
18131 fi
18132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18133 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
18134 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
18135
18136
18137 fi
18138
18139
18140
18141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
18142 printf %s "checking whether the preprocessor supports include_next... " >&6; }
18143 if test ${gl_cv_have_include_next+y}
18144 then :
18145 printf %s "(cached) " >&6
18146 else case e in #(
18147 e) rm -rf conftestd1a conftestd1b conftestd2
18148 mkdir conftestd1a conftestd1b conftestd2
18149 cat <<EOF > conftestd1a/conftest.h
18150 #define DEFINED_IN_CONFTESTD1
18151 #include_next <conftest.h>
18152 #ifdef DEFINED_IN_CONFTESTD2
18153 int foo;
18154 #else
18155 #error "include_next doesn't work"
18156 #endif
18157 EOF
18158 cat <<EOF > conftestd1b/conftest.h
18159 #define DEFINED_IN_CONFTESTD1
18160 #include <stdio.h>
18161 #include_next <conftest.h>
18162 #ifdef DEFINED_IN_CONFTESTD2
18163 int foo;
18164 #else
18165 #error "include_next doesn't work"
18166 #endif
18167 EOF
18168 cat <<EOF > conftestd2/conftest.h
18169 #ifndef DEFINED_IN_CONFTESTD1
18170 #error "include_next test doesn't work"
18171 #endif
18172 #define DEFINED_IN_CONFTESTD2
18173 EOF
18174 gl_saved_CPPFLAGS="$CPPFLAGS"
18175 CPPFLAGS="$gl_saved_CPPFLAGS -Iconftestd1b -Iconftestd2"
18176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177 /* end confdefs.h. */
18178 #include <conftest.h>
18179 _ACEOF
18180 if ac_fn_c_try_compile "$LINENO"
18181 then :
18182 gl_cv_have_include_next=yes
18183 else case e in #(
18184 e) CPPFLAGS="$gl_saved_CPPFLAGS -Iconftestd1a -Iconftestd2"
18185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18186 /* end confdefs.h. */
18187 #include <conftest.h>
18188 _ACEOF
18189 if ac_fn_c_try_compile "$LINENO"
18190 then :
18191 gl_cv_have_include_next=buggy
18192 else case e in #(
18193 e) gl_cv_have_include_next=no ;;
18194 esac
18195 fi
18196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18197 ;;
18198 esac
18199 fi
18200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18201 CPPFLAGS="$gl_saved_CPPFLAGS"
18202 rm -rf conftestd1a conftestd1b conftestd2
18203 ;;
18204 esac
18205 fi
18206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
18207 printf "%s\n" "$gl_cv_have_include_next" >&6; }
18208 PRAGMA_SYSTEM_HEADER=
18209 if test $gl_cv_have_include_next = yes; then
18210 INCLUDE_NEXT=include_next
18211 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18212 if test -n "$GCC"; then
18213 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
18214 fi
18215 else
18216 if test $gl_cv_have_include_next = buggy; then
18217 INCLUDE_NEXT=include
18218 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18219 else
18220 INCLUDE_NEXT=include
18221 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
18222 fi
18223 fi
18224
18225
18226
18227
18228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
18229 printf %s "checking whether source code line length is unlimited... " >&6; }
18230 if test ${gl_cv_source_line_length_unlimited+y}
18231 then :
18232 printf %s "(cached) " >&6
18233 else case e in #(
18234 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18235 /* end confdefs.h. */
18236
18237 #ifdef __TANDEM
18238 choke me
18239 #endif
18240
18241 _ACEOF
18242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18243 $EGREP_TRADITIONAL "choke me" >/dev/null 2>&1
18244 then :
18245 gl_cv_source_line_length_unlimited=no
18246 else case e in #(
18247 e) gl_cv_source_line_length_unlimited=yes ;;
18248 esac
18249 fi
18250 rm -rf conftest*
18251
18252 ;;
18253 esac
18254 fi
18255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
18256 printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; }
18257 if test $gl_cv_source_line_length_unlimited = no; then
18258 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
18259 else
18260 PRAGMA_COLUMNS=
18261 fi
18262
18263
18264
18265 HAVE__EXIT=1;
18266 HAVE_ALIGNED_ALLOC=1;
18267 HAVE_ATOLL=1;
18268 HAVE_CANONICALIZE_FILE_NAME=1;
18269 HAVE_DECL_ECVT=1;
18270 HAVE_DECL_FCVT=1;
18271 HAVE_DECL_GCVT=1;
18272 HAVE_DECL_GETLOADAVG=1;
18273 HAVE_DECL_PROGRAM_INVOCATION_NAME=1;
18274 HAVE_GETPROGNAME=1;
18275 HAVE_GETSUBOPT=1;
18276 HAVE_GRANTPT=1;
18277 HAVE_INITSTATE=1;
18278 HAVE_DECL_INITSTATE=1;
18279 HAVE_MBTOWC=1;
18280 HAVE_MKDTEMP=1;
18281 HAVE_MKOSTEMP=1;
18282 HAVE_MKOSTEMPS=1;
18283 HAVE_MKSTEMP=1;
18284 HAVE_MKSTEMPS=1;
18285 HAVE_POSIX_MEMALIGN=1;
18286 HAVE_POSIX_OPENPT=1;
18287 HAVE_PTSNAME=1;
18288 HAVE_PTSNAME_R=1;
18289 HAVE_QSORT_R=1;
18290 HAVE_RANDOM=1;
18291 HAVE_RANDOM_H=1;
18292 HAVE_RANDOM_R=1;
18293 HAVE_REALLOCARRAY=1;
18294 HAVE_REALPATH=1;
18295 HAVE_RPMATCH=1;
18296 HAVE_SECURE_GETENV=1;
18297 HAVE_SETENV=1;
18298 HAVE_DECL_SETENV=1;
18299 HAVE_SETSTATE=1;
18300 HAVE_DECL_SETSTATE=1;
18301 HAVE_STRTOD=1;
18302 HAVE_STRTOF=1;
18303 HAVE_STRTOL=1;
18304 HAVE_STRTOLD=1;
18305 HAVE_STRTOLL=1;
18306 HAVE_STRTOUL=1;
18307 HAVE_STRTOULL=1;
18308 HAVE_STRUCT_RANDOM_DATA=1;
18309 HAVE_SYS_LOADAVG_H=0;
18310 HAVE_UNLOCKPT=1;
18311 HAVE_DECL_UNSETENV=1;
18312 REPLACE__EXIT=0;
18313 REPLACE_ABORT=0;
18314 REPLACE_ALIGNED_ALLOC=0;
18315 REPLACE_CALLOC_FOR_CALLOC_GNU=0;
18316 REPLACE_CALLOC_FOR_CALLOC_POSIX=0;
18317 REPLACE_CANONICALIZE_FILE_NAME=0;
18318 REPLACE_FREE=0;
18319 REPLACE_GETLOADAVG=0;
18320 REPLACE_GETPROGNAME=0;
18321 REPLACE_GETSUBOPT=0;
18322 REPLACE_INITSTATE=0;
18323 REPLACE_MALLOC_FOR_MALLOC_GNU=0;
18324 REPLACE_MALLOC_FOR_MALLOC_POSIX=0;
18325 REPLACE_MB_CUR_MAX=0;
18326 REPLACE_MBSTOWCS=0;
18327 REPLACE_MBTOWC=0;
18328 REPLACE_MKOSTEMP=0;
18329 REPLACE_MKOSTEMPS=0;
18330 REPLACE_MKSTEMP=0;
18331 REPLACE_POSIX_MEMALIGN=0;
18332 REPLACE_POSIX_OPENPT=0;
18333 REPLACE_PTSNAME=0;
18334 REPLACE_PTSNAME_R=0;
18335 REPLACE_PUTENV=0;
18336 REPLACE_QSORT_R=0;
18337 REPLACE_RAND=0;
18338 REPLACE_RANDOM=0;
18339 REPLACE_RANDOM_R=0;
18340 REPLACE_REALLOC_FOR_REALLOC_GNU=0;
18341 REPLACE_REALLOC_FOR_REALLOC_POSIX=0;
18342 REPLACE_REALLOCARRAY=0;
18343 REPLACE_REALPATH=0;
18344 REPLACE_SETENV=0;
18345 REPLACE_SETSTATE=0;
18346 REPLACE_STRTOD=0;
18347 REPLACE_STRTOF=0;
18348 REPLACE_STRTOL=0;
18349 REPLACE_STRTOLD=0;
18350 REPLACE_STRTOLL=0;
18351 REPLACE_STRTOUL=0;
18352 REPLACE_STRTOULL=0;
18353 REPLACE_UNSETENV=0;
18354 REPLACE_WCTOMB=0;
18355
18356
18357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc is ptrdiff_t safe" >&5
18358 printf %s "checking whether malloc is ptrdiff_t safe... " >&6; }
18359 if test ${gl_cv_malloc_ptrdiff+y}
18360 then :
18361 printf %s "(cached) " >&6
18362 else case e in #(
18363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18364 /* end confdefs.h. */
18365 #include <stdint.h>
18366
18367 int
18368 main (void)
18369 {
18370 /* 64-bit ptrdiff_t is so wide that no practical platform
18371 can exceed it. */
18372 #define WIDE_PTRDIFF (PTRDIFF_MAX >> 31 >> 31 != 0)
18373
18374 /* On rare machines where size_t fits in ptrdiff_t there
18375 is no problem. */
18376 #define NARROW_SIZE (SIZE_MAX <= PTRDIFF_MAX)
18377
18378 /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t
18379 bounds even on 32-bit platforms. We don't know which
18380 non-glibc systems are safe. */
18381 #define KNOWN_SAFE (2 < __GLIBC__ + (30 <= __GLIBC_MINOR__))
18382
18383 #if WIDE_PTRDIFF || NARROW_SIZE || KNOWN_SAFE
18384 return 0;
18385 #else
18386 #error "malloc might not be ptrdiff_t safe"
18387 syntax error
18388 #endif
18389
18390 ;
18391 return 0;
18392 }
18393 _ACEOF
18394 if ac_fn_c_try_compile "$LINENO"
18395 then :
18396 gl_cv_malloc_ptrdiff=yes
18397 else case e in #(
18398 e) gl_cv_malloc_ptrdiff=no ;;
18399 esac
18400 fi
18401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18402 ;;
18403 esac
18404 fi
18405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_malloc_ptrdiff" >&5
18406 printf "%s\n" "$gl_cv_malloc_ptrdiff" >&6; }
18407
18408
18409
18410
18411 test "$gl_cv_malloc_ptrdiff" = yes || REPLACE_MALLOC_FOR_MALLOC_POSIX=1
18412
18413
18414
18415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc set errno on failure" >&5
18416 printf %s "checking whether malloc, realloc, calloc set errno on failure... " >&6; }
18417 if test ${gl_cv_func_malloc_posix+y}
18418 then :
18419 printf %s "(cached) " >&6
18420 else case e in #(
18421 e)
18422 case "$host_os" in
18423 mingw* | windows*)
18424 gl_cv_func_malloc_posix=no ;;
18425 irix* | solaris*)
18426
18427 gl_cv_func_malloc_posix=no ;;
18428 *)
18429 gl_cv_func_malloc_posix=yes ;;
18430 esac
18431 ;;
18432 esac
18433 fi
18434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
18435 printf "%s\n" "$gl_cv_func_malloc_posix" >&6; }
18436
18437
18438
18439
18440
18441 if test "$gl_cv_func_malloc_posix" = yes; then
18442
18443 printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
18444
18445 else
18446 REPLACE_MALLOC_FOR_MALLOC_POSIX=1
18447 fi
18448
18449
18450
18451
18452 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
18453 REPLACE_CALLOC_FOR_CALLOC_POSIX=1
18454 fi
18455
18456
18457
18458 GL_GNULIB__EXIT=0
18459
18460
18461
18462 GL_GNULIB_ABORT_DEBUG=0
18463
18464
18465
18466 GL_GNULIB_ALIGNED_ALLOC=0
18467
18468
18469
18470 GL_GNULIB_ATOLL=0
18471
18472
18473
18474 GL_GNULIB_CALLOC_GNU=0
18475
18476
18477
18478 GL_GNULIB_CALLOC_POSIX=0
18479
18480
18481
18482 GL_GNULIB_CANONICALIZE_FILE_NAME=0
18483
18484
18485
18486 GL_GNULIB_FREE_POSIX=0
18487
18488
18489
18490 GL_GNULIB_GETLOADAVG=0
18491
18492
18493
18494 GL_GNULIB_GETPROGNAME=0
18495
18496
18497
18498 GL_GNULIB_GETSUBOPT=0
18499
18500
18501
18502 GL_GNULIB_GRANTPT=0
18503
18504
18505
18506 GL_GNULIB_MALLOC_GNU=0
18507
18508
18509
18510 GL_GNULIB_MALLOC_POSIX=0
18511
18512
18513
18514 GL_GNULIB_MBSTOWCS=0
18515
18516
18517
18518 GL_GNULIB_MBTOWC=0
18519
18520
18521
18522 GL_GNULIB_MKDTEMP=0
18523
18524
18525
18526 GL_GNULIB_MKOSTEMP=0
18527
18528
18529
18530 GL_GNULIB_MKOSTEMPS=0
18531
18532
18533
18534 GL_GNULIB_MKSTEMP=0
18535
18536
18537
18538 GL_GNULIB_MKSTEMPS=0
18539
18540
18541
18542 GL_GNULIB_POSIX_MEMALIGN=0
18543
18544
18545
18546 GL_GNULIB_POSIX_OPENPT=0
18547
18548
18549
18550 GL_GNULIB_PTSNAME=0
18551
18552
18553
18554 GL_GNULIB_PTSNAME_R=0
18555
18556
18557
18558 GL_GNULIB_PUTENV=0
18559
18560
18561
18562 GL_GNULIB_QSORT_R=0
18563
18564
18565
18566 GL_GNULIB_RAND=0
18567
18568
18569
18570 GL_GNULIB_RANDOM=0
18571
18572
18573
18574 GL_GNULIB_RANDOM_R=0
18575
18576
18577
18578 GL_GNULIB_REALLOCARRAY=0
18579
18580
18581
18582 GL_GNULIB_REALLOC_GNU=0
18583
18584
18585
18586 GL_GNULIB_REALLOC_POSIX=0
18587
18588
18589
18590 GL_GNULIB_REALPATH=0
18591
18592
18593
18594 GL_GNULIB_RPMATCH=0
18595
18596
18597
18598 GL_GNULIB_SECURE_GETENV=0
18599
18600
18601
18602 GL_GNULIB_SETENV=0
18603
18604
18605
18606 GL_GNULIB_STRTOD=0
18607
18608
18609
18610 GL_GNULIB_STRTOF=0
18611
18612
18613
18614 GL_GNULIB_STRTOL=0
18615
18616
18617
18618 GL_GNULIB_STRTOLD=0
18619
18620
18621
18622 GL_GNULIB_STRTOLL=0
18623
18624
18625
18626 GL_GNULIB_STRTOUL=0
18627
18628
18629
18630 GL_GNULIB_STRTOULL=0
18631
18632
18633
18634 GL_GNULIB_SYSTEM_POSIX=0
18635
18636
18637
18638 GL_GNULIB_UNLOCKPT=0
18639
18640
18641
18642 GL_GNULIB_UNSETENV=0
18643
18644
18645
18646 GL_GNULIB_WCTOMB=0
18647
18648
18649
18650 GL_GNULIB_MDA_ECVT=1
18651
18652
18653
18654 GL_GNULIB_MDA_FCVT=1
18655
18656
18657
18658 GL_GNULIB_MDA_GCVT=1
18659
18660
18661
18662 GL_GNULIB_MDA_MKTEMP=1
18663
18664
18665
18666 GL_GNULIB_MDA_PUTENV=1
18667
18668
18669
18670
18671 HAVE_CHOWN=1;
18672 HAVE_COPY_FILE_RANGE=1;
18673 HAVE_DUP3=1;
18674 HAVE_EUIDACCESS=1;
18675 HAVE_EXECVPE=1;
18676 HAVE_FACCESSAT=1;
18677 HAVE_FCHDIR=1;
18678 HAVE_FCHOWNAT=1;
18679 HAVE_FDATASYNC=1;
18680 HAVE_FSYNC=1;
18681 HAVE_FTRUNCATE=1;
18682 HAVE_GETDTABLESIZE=1;
18683 HAVE_GETENTROPY=1;
18684 HAVE_GETGROUPS=1;
18685 HAVE_GETHOSTNAME=1;
18686 HAVE_GETLOGIN=1;
18687 HAVE_GETPAGESIZE=1;
18688 HAVE_GETPASS=1;
18689 HAVE_GROUP_MEMBER=1;
18690 HAVE_LCHOWN=1;
18691 HAVE_LINK=1;
18692 HAVE_LINKAT=1;
18693 HAVE_PIPE=1;
18694 HAVE_PIPE2=1;
18695 HAVE_PREAD=1;
18696 HAVE_PWRITE=1;
18697 HAVE_READLINK=1;
18698 HAVE_READLINKAT=1;
18699 HAVE_SETHOSTNAME=1;
18700 HAVE_SLEEP=1;
18701 HAVE_SYMLINK=1;
18702 HAVE_SYMLINKAT=1;
18703 HAVE_UNLINKAT=1;
18704 HAVE_USLEEP=1;
18705 HAVE_DECL_ENVIRON=1;
18706 HAVE_DECL_EXECVPE=1;
18707 HAVE_DECL_FCHDIR=1;
18708 HAVE_DECL_FDATASYNC=1;
18709 HAVE_DECL_GETDOMAINNAME=1;
18710 HAVE_DECL_GETLOGIN=1;
18711 HAVE_DECL_GETLOGIN_R=1;
18712 HAVE_DECL_GETPAGESIZE=1;
18713 HAVE_DECL_GETUSERSHELL=1;
18714 HAVE_DECL_SETHOSTNAME=1;
18715 HAVE_DECL_TRUNCATE=1;
18716 HAVE_DECL_TTYNAME_R=1;
18717 HAVE_OS_H=0;
18718 HAVE_SYS_PARAM_H=0;
18719 REPLACE_ACCESS=0;
18720 REPLACE_CHOWN=0;
18721 REPLACE_CLOSE=0;
18722 REPLACE_COPY_FILE_RANGE=0;
18723 REPLACE_DUP=0;
18724 REPLACE_DUP2=0;
18725 REPLACE_DUP3=0;
18726 REPLACE_EXECL=0;
18727 REPLACE_EXECLE=0;
18728 REPLACE_EXECLP=0;
18729 REPLACE_EXECV=0;
18730 REPLACE_EXECVE=0;
18731 REPLACE_EXECVP=0;
18732 REPLACE_EXECVPE=0;
18733 REPLACE_FACCESSAT=0;
18734 REPLACE_FCHDIR=0;
18735 REPLACE_FCHOWNAT=0;
18736 REPLACE_FDATASYNC=0;
18737 REPLACE_FTRUNCATE=0;
18738 REPLACE_GETCWD=0;
18739 REPLACE_GETDOMAINNAME=0;
18740 REPLACE_GETDTABLESIZE=0;
18741 REPLACE_GETENTROPY=0;
18742 REPLACE_GETLOGIN_R=0;
18743 REPLACE_GETGROUPS=0;
18744 REPLACE_GETPAGESIZE=0;
18745 REPLACE_GETPASS=0;
18746 REPLACE_GETPASS_FOR_GETPASS_GNU=0;
18747 REPLACE_GETUSERSHELL=0;
18748 REPLACE_ISATTY=0;
18749 REPLACE_LCHOWN=0;
18750 REPLACE_LINK=0;
18751 REPLACE_LINKAT=0;
18752 REPLACE_LSEEK=0;
18753 REPLACE_PIPE2=0;
18754 REPLACE_PREAD=0;
18755 REPLACE_PWRITE=0;
18756 REPLACE_READ=0;
18757 REPLACE_READLINK=0;
18758 REPLACE_READLINKAT=0;
18759 REPLACE_RMDIR=0;
18760 REPLACE_SETHOSTNAME=0;
18761 REPLACE_SLEEP=0;
18762 REPLACE_SYMLINK=0;
18763 REPLACE_SYMLINKAT=0;
18764 REPLACE_TRUNCATE=0;
18765 REPLACE_TTYNAME_R=0;
18766 REPLACE_UNLINK=0;
18767 REPLACE_UNLINKAT=0;
18768 REPLACE_USLEEP=0;
18769 REPLACE_WRITE=0;
18770 UNISTD_H_HAVE_SYS_RANDOM_H=0;
18771 UNISTD_H_HAVE_WINSOCK2_H=0;
18772 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
18773
18774
18775 ac_func=
18776 for ac_item in $ac_func_c_list
18777 do
18778 if test $ac_func; then
18779 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
18780 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
18781 echo "#define $ac_item 1" >> confdefs.h
18782 fi
18783 ac_func=
18784 else
18785 ac_func=$ac_item
18786 fi
18787 done
18788
18789
18790 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
18791 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
18792
18793 printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
18794
18795 else
18796 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
18797 fi
18798
18799
18800
18801
18802
18803
18804
18805 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
18806 REPLACE_CLOSE=1
18807 fi
18808
18809
18810
18811
18812
18813
18814 if test $ac_cv_header_sys_socket_h != yes; then
18815 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18816 if test "x$ac_cv_header_winsock2_h" = xyes
18817 then :
18818 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
18819
18820 fi
18821
18822 fi
18823 if test "$ac_cv_header_winsock2_h" = yes; then
18824 HAVE_WINSOCK2_H=1
18825 UNISTD_H_HAVE_WINSOCK2_H=1
18826 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18827 else
18828 HAVE_WINSOCK2_H=0
18829 fi
18830
18831
18832 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
18833 REPLACE_CLOSE=1
18834 fi
18835
18836
18837
18838
18839
18840 GL_GNULIB_ACCESS=0
18841
18842
18843
18844 GL_GNULIB_CHDIR=0
18845
18846
18847
18848 GL_GNULIB_CHOWN=0
18849
18850
18851
18852 GL_GNULIB_CLOSE=0
18853
18854
18855
18856 GL_GNULIB_COPY_FILE_RANGE=0
18857
18858
18859
18860 GL_GNULIB_DUP=0
18861
18862
18863
18864 GL_GNULIB_DUP2=0
18865
18866
18867
18868 GL_GNULIB_DUP3=0
18869
18870
18871
18872 GL_GNULIB_ENVIRON=0
18873
18874
18875
18876 GL_GNULIB_EUIDACCESS=0
18877
18878
18879
18880 GL_GNULIB_EXECL=0
18881
18882
18883
18884 GL_GNULIB_EXECLE=0
18885
18886
18887
18888 GL_GNULIB_EXECLP=0
18889
18890
18891
18892 GL_GNULIB_EXECV=0
18893
18894
18895
18896 GL_GNULIB_EXECVE=0
18897
18898
18899
18900 GL_GNULIB_EXECVP=0
18901
18902
18903
18904 GL_GNULIB_EXECVPE=0
18905
18906
18907
18908 GL_GNULIB_FACCESSAT=0
18909
18910
18911
18912 GL_GNULIB_FCHDIR=0
18913
18914
18915
18916 GL_GNULIB_FCHOWNAT=0
18917
18918
18919
18920 GL_GNULIB_FDATASYNC=0
18921
18922
18923
18924 GL_GNULIB_FSYNC=0
18925
18926
18927
18928 GL_GNULIB_FTRUNCATE=0
18929
18930
18931
18932 GL_GNULIB_GETCWD=0
18933
18934
18935
18936 GL_GNULIB_GETDOMAINNAME=0
18937
18938
18939
18940 GL_GNULIB_GETDTABLESIZE=0
18941
18942
18943
18944 GL_GNULIB_GETENTROPY=0
18945
18946
18947
18948 GL_GNULIB_GETGROUPS=0
18949
18950
18951
18952 GL_GNULIB_GETHOSTNAME=0
18953
18954
18955
18956 GL_GNULIB_GETLOGIN=0
18957
18958
18959
18960 GL_GNULIB_GETLOGIN_R=0
18961
18962
18963
18964 GL_GNULIB_GETOPT_POSIX=0
18965
18966
18967
18968 GL_GNULIB_GETPAGESIZE=0
18969
18970
18971
18972 GL_GNULIB_GETPASS=0
18973
18974
18975
18976 GL_GNULIB_GETPASS_GNU=0
18977
18978
18979
18980 GL_GNULIB_GETUSERSHELL=0
18981
18982
18983
18984 GL_GNULIB_GROUP_MEMBER=0
18985
18986
18987
18988 GL_GNULIB_ISATTY=0
18989
18990
18991
18992 GL_GNULIB_LCHOWN=0
18993
18994
18995
18996 GL_GNULIB_LINK=0
18997
18998
18999
19000 GL_GNULIB_LINKAT=0
19001
19002
19003
19004 GL_GNULIB_LSEEK=0
19005
19006
19007
19008 GL_GNULIB_PIPE=0
19009
19010
19011
19012 GL_GNULIB_PIPE2=0
19013
19014
19015
19016 GL_GNULIB_PREAD=0
19017
19018
19019
19020 GL_GNULIB_PWRITE=0
19021
19022
19023
19024 GL_GNULIB_READ=0
19025
19026
19027
19028 GL_GNULIB_READLINK=0
19029
19030
19031
19032 GL_GNULIB_READLINKAT=0
19033
19034
19035
19036 GL_GNULIB_RMDIR=0
19037
19038
19039
19040 GL_GNULIB_SETHOSTNAME=0
19041
19042
19043
19044 GL_GNULIB_SLEEP=0
19045
19046
19047
19048 GL_GNULIB_SYMLINK=0
19049
19050
19051
19052 GL_GNULIB_SYMLINKAT=0
19053
19054
19055
19056 GL_GNULIB_TRUNCATE=0
19057
19058
19059
19060 GL_GNULIB_TTYNAME_R=0
19061
19062
19063
19064 GL_GNULIB_UNISTD_H_GETOPT=0
19065
19066
19067
19068 GL_GNULIB_UNISTD_H_NONBLOCKING=0
19069
19070
19071
19072 GL_GNULIB_UNISTD_H_SIGPIPE=0
19073
19074
19075
19076 GL_GNULIB_UNLINK=0
19077
19078
19079
19080 GL_GNULIB_UNLINKAT=0
19081
19082
19083
19084 GL_GNULIB_USLEEP=0
19085
19086
19087
19088 GL_GNULIB_WRITE=0
19089
19090
19091
19092 GL_GNULIB_MDA_ACCESS=1
19093
19094
19095
19096 GL_GNULIB_MDA_CHDIR=1
19097
19098
19099
19100 GL_GNULIB_MDA_CLOSE=1
19101
19102
19103
19104 GL_GNULIB_MDA_DUP=1
19105
19106
19107
19108 GL_GNULIB_MDA_DUP2=1
19109
19110
19111
19112 GL_GNULIB_MDA_EXECL=1
19113
19114
19115
19116 GL_GNULIB_MDA_EXECLE=1
19117
19118
19119
19120 GL_GNULIB_MDA_EXECLP=1
19121
19122
19123
19124 GL_GNULIB_MDA_EXECV=1
19125
19126
19127
19128 GL_GNULIB_MDA_EXECVE=1
19129
19130
19131
19132 GL_GNULIB_MDA_EXECVP=1
19133
19134
19135
19136 GL_GNULIB_MDA_EXECVPE=1
19137
19138
19139
19140 GL_GNULIB_MDA_GETCWD=1
19141
19142
19143
19144 GL_GNULIB_MDA_GETPID=1
19145
19146
19147
19148 GL_GNULIB_MDA_ISATTY=1
19149
19150
19151
19152 GL_GNULIB_MDA_LSEEK=1
19153
19154
19155
19156 GL_GNULIB_MDA_READ=1
19157
19158
19159
19160 GL_GNULIB_MDA_RMDIR=1
19161
19162
19163
19164 GL_GNULIB_MDA_SWAB=1
19165
19166
19167
19168 GL_GNULIB_MDA_UNLINK=1
19169
19170
19171
19172 GL_GNULIB_MDA_WRITE=1
19173
19174
19175
19176 gl_mda_defines='
19177 #if defined _WIN32 && !defined __CYGWIN__
19178 #define access _access
19179 #define chdir _chdir
19180 #define chmod _chmod
19181 #define close _close
19182 #define creat _creat
19183 #define dup _dup
19184 #define dup2 _dup2
19185 #define ecvt _ecvt
19186 #define execl _execl
19187 #define execle _execle
19188 #define execlp _execlp
19189 #define execv _execv
19190 #define execve _execve
19191 #define execvp _execvp
19192 #define execvpe _execvpe
19193 #define fcloseall _fcloseall
19194 #define fcvt _fcvt
19195 #define fdopen _fdopen
19196 #define fileno _fileno
19197 #define gcvt _gcvt
19198 #define getcwd _getcwd
19199 #define getpid _getpid
19200 #define getw _getw
19201 #define isatty _isatty
19202 #define j0 _j0
19203 #define j1 _j1
19204 #define jn _jn
19205 #define lfind _lfind
19206 #define lsearch _lsearch
19207 #define lseek _lseek
19208 #define memccpy _memccpy
19209 #define mkdir _mkdir
19210 #define mktemp _mktemp
19211 #define open _open
19212 #define putenv _putenv
19213 #define putw _putw
19214 #define read _read
19215 #define rmdir _rmdir
19216 #define strdup _strdup
19217 #define swab _swab
19218 #define tempnam _tempnam
19219 #define tzset _tzset
19220 #define umask _umask
19221 #define unlink _unlink
19222 #define utime _utime
19223 #define wcsdup _wcsdup
19224 #define write _write
19225 #define y0 _y0
19226 #define y1 _y1
19227 #define yn _yn
19228 #endif
19229 '
19230
19231
19232
19233
19234
19235
19236
19237
19238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
19239 printf %s "checking if environ is properly declared... " >&6; }
19240 if test ${gt_cv_var_environ_declaration+y}
19241 then :
19242 printf %s "(cached) " >&6
19243 else case e in #(
19244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19245 /* end confdefs.h. */
19246 #if HAVE_UNISTD_H
19247 #include <unistd.h>
19248 #endif
19249 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
19250 #include <stdlib.h>
19251
19252 typedef struct { int foo; } foo_t;
19253 extern foo_t environ;
19254 int
19255 main (void)
19256 {
19257 environ.foo = 1;
19258 ;
19259 return 0;
19260 }
19261 _ACEOF
19262 if ac_fn_c_try_compile "$LINENO"
19263 then :
19264 gt_cv_var_environ_declaration=no
19265 else case e in #(
19266 e) gt_cv_var_environ_declaration=yes ;;
19267 esac
19268 fi
19269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19270 esac
19271 fi
19272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
19273 printf "%s\n" "$gt_cv_var_environ_declaration" >&6; }
19274 if test $gt_cv_var_environ_declaration = yes; then
19275
19276 printf "%s\n" "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
19277
19278 fi
19279
19280
19281 if test $gt_cv_var_environ_declaration != yes; then
19282 HAVE_DECL_ENVIRON=0
19283 fi
19284
19285
19286
19287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
19288 printf %s "checking for complete errno.h... " >&6; }
19289 if test ${gl_cv_header_errno_h_complete+y}
19290 then :
19291 printf %s "(cached) " >&6
19292 else case e in #(
19293 e)
19294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19295 /* end confdefs.h. */
19296
19297 #include <errno.h>
19298 #if !defined ETXTBSY
19299 booboo
19300 #endif
19301 #if !defined ENOMSG
19302 booboo
19303 #endif
19304 #if !defined EIDRM
19305 booboo
19306 #endif
19307 #if !defined ENOLINK
19308 booboo
19309 #endif
19310 #if !defined EPROTO
19311 booboo
19312 #endif
19313 #if !defined EMULTIHOP
19314 booboo
19315 #endif
19316 #if !defined EBADMSG
19317 booboo
19318 #endif
19319 #if !defined EOVERFLOW
19320 booboo
19321 #endif
19322 #if !defined ENOTSUP
19323 booboo
19324 #endif
19325 #if !defined ENETRESET
19326 booboo
19327 #endif
19328 #if !defined ECONNABORTED
19329 booboo
19330 #endif
19331 #if !defined ESTALE
19332 booboo
19333 #endif
19334 #if !defined EDQUOT
19335 booboo
19336 #endif
19337 #if !defined ECANCELED
19338 booboo
19339 #endif
19340 #if !defined EOWNERDEAD
19341 booboo
19342 #endif
19343 #if !defined ENOTRECOVERABLE
19344 booboo
19345 #endif
19346 #if !defined EILSEQ
19347 booboo
19348 #endif
19349
19350 _ACEOF
19351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19352 $EGREP_TRADITIONAL "booboo" >/dev/null 2>&1
19353 then :
19354 gl_cv_header_errno_h_complete=no
19355 else case e in #(
19356 e) gl_cv_header_errno_h_complete=yes ;;
19357 esac
19358 fi
19359 rm -rf conftest*
19360
19361 ;;
19362 esac
19363 fi
19364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
19365 printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; }
19366 if test $gl_cv_header_errno_h_complete = yes; then
19367 GL_GENERATE_ERRNO_H=false
19368 else
19369
19370
19371
19372
19373
19374
19375
19376
19377 if test $gl_cv_have_include_next = yes; then
19378 gl_cv_next_errno_h='<'errno.h'>'
19379 else
19380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
19381 printf %s "checking absolute name of <errno.h>... " >&6; }
19382 if test ${gl_cv_next_errno_h+y}
19383 then :
19384 printf %s "(cached) " >&6
19385 else case e in #(
19386 e)
19387
19388
19389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19390 /* end confdefs.h. */
19391 #include <errno.h>
19392 _ACEOF
19393 case "$host_os" in
19394 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19395 *) gl_absname_cpp="$ac_cpp" ;;
19396 esac
19397
19398 case "$host_os" in
19399 mingw* | windows*)
19400 gl_dirsep_regex='[/\\]'
19401 ;;
19402 *)
19403 gl_dirsep_regex='\/'
19404 ;;
19405 esac
19406 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19407 gl_header_literal_regex=`echo 'errno.h' \
19408 | sed -e "$gl_make_literal_regex_sed"`
19409 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19410 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19411 s|^/[^/]|//&|
19412 p
19413 q
19414 }'
19415
19416 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19417 sed -n "$gl_absolute_header_sed"`
19418
19419 gl_header=$gl_cv_absolute_errno_h
19420 gl_cv_next_errno_h='"'$gl_header'"'
19421
19422 ;;
19423 esac
19424 fi
19425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
19426 printf "%s\n" "$gl_cv_next_errno_h" >&6; }
19427 fi
19428 NEXT_ERRNO_H=$gl_cv_next_errno_h
19429
19430 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19431 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19432 gl_next_as_first_directive='<'errno.h'>'
19433 else
19434 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19435 gl_next_as_first_directive=$gl_cv_next_errno_h
19436 fi
19437 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
19438
19439
19440
19441
19442 GL_GENERATE_ERRNO_H=true
19443 fi
19444
19445 if $GL_GENERATE_ERRNO_H; then
19446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
19447 printf %s "checking for EMULTIHOP value... " >&6; }
19448 if test ${gl_cv_header_errno_h_EMULTIHOP+y}
19449 then :
19450 printf %s "(cached) " >&6
19451 else case e in #(
19452 e)
19453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19454 /* end confdefs.h. */
19455
19456 #include <errno.h>
19457 #ifdef EMULTIHOP
19458 yes
19459 #endif
19460
19461 _ACEOF
19462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19463 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
19464 then :
19465 gl_cv_header_errno_h_EMULTIHOP=yes
19466 else case e in #(
19467 e) gl_cv_header_errno_h_EMULTIHOP=no ;;
19468 esac
19469 fi
19470 rm -rf conftest*
19471
19472 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
19473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19474 /* end confdefs.h. */
19475
19476 #define _XOPEN_SOURCE_EXTENDED 1
19477 #include <errno.h>
19478 #ifdef EMULTIHOP
19479 yes
19480 #endif
19481
19482 _ACEOF
19483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19484 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
19485 then :
19486 gl_cv_header_errno_h_EMULTIHOP=hidden
19487 fi
19488 rm -rf conftest*
19489
19490 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
19491 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
19492 #define _XOPEN_SOURCE_EXTENDED 1
19493 #include <errno.h>
19494 /* The following two lines are a workaround against an autoconf-2.52 bug. */
19495 #include <stdio.h>
19496 #include <stdlib.h>
19497 "
19498 then :
19499
19500 fi
19501
19502 fi
19503 fi
19504 ;;
19505 esac
19506 fi
19507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
19508 printf "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
19509 case $gl_cv_header_errno_h_EMULTIHOP in
19510 yes | no)
19511 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
19512 ;;
19513 *)
19514 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
19515 ;;
19516 esac
19517
19518
19519 fi
19520
19521
19522 if $GL_GENERATE_ERRNO_H; then
19523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
19524 printf %s "checking for ENOLINK value... " >&6; }
19525 if test ${gl_cv_header_errno_h_ENOLINK+y}
19526 then :
19527 printf %s "(cached) " >&6
19528 else case e in #(
19529 e)
19530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19531 /* end confdefs.h. */
19532
19533 #include <errno.h>
19534 #ifdef ENOLINK
19535 yes
19536 #endif
19537
19538 _ACEOF
19539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19540 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
19541 then :
19542 gl_cv_header_errno_h_ENOLINK=yes
19543 else case e in #(
19544 e) gl_cv_header_errno_h_ENOLINK=no ;;
19545 esac
19546 fi
19547 rm -rf conftest*
19548
19549 if test $gl_cv_header_errno_h_ENOLINK = no; then
19550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19551 /* end confdefs.h. */
19552
19553 #define _XOPEN_SOURCE_EXTENDED 1
19554 #include <errno.h>
19555 #ifdef ENOLINK
19556 yes
19557 #endif
19558
19559 _ACEOF
19560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19561 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
19562 then :
19563 gl_cv_header_errno_h_ENOLINK=hidden
19564 fi
19565 rm -rf conftest*
19566
19567 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
19568 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
19569 #define _XOPEN_SOURCE_EXTENDED 1
19570 #include <errno.h>
19571 /* The following two lines are a workaround against an autoconf-2.52 bug. */
19572 #include <stdio.h>
19573 #include <stdlib.h>
19574 "
19575 then :
19576
19577 fi
19578
19579 fi
19580 fi
19581 ;;
19582 esac
19583 fi
19584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
19585 printf "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; }
19586 case $gl_cv_header_errno_h_ENOLINK in
19587 yes | no)
19588 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
19589 ;;
19590 *)
19591 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
19592 ;;
19593 esac
19594
19595
19596 fi
19597
19598
19599 if $GL_GENERATE_ERRNO_H; then
19600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
19601 printf %s "checking for EOVERFLOW value... " >&6; }
19602 if test ${gl_cv_header_errno_h_EOVERFLOW+y}
19603 then :
19604 printf %s "(cached) " >&6
19605 else case e in #(
19606 e)
19607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19608 /* end confdefs.h. */
19609
19610 #include <errno.h>
19611 #ifdef EOVERFLOW
19612 yes
19613 #endif
19614
19615 _ACEOF
19616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19617 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
19618 then :
19619 gl_cv_header_errno_h_EOVERFLOW=yes
19620 else case e in #(
19621 e) gl_cv_header_errno_h_EOVERFLOW=no ;;
19622 esac
19623 fi
19624 rm -rf conftest*
19625
19626 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
19627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19628 /* end confdefs.h. */
19629
19630 #define _XOPEN_SOURCE_EXTENDED 1
19631 #include <errno.h>
19632 #ifdef EOVERFLOW
19633 yes
19634 #endif
19635
19636 _ACEOF
19637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19638 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
19639 then :
19640 gl_cv_header_errno_h_EOVERFLOW=hidden
19641 fi
19642 rm -rf conftest*
19643
19644 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
19645 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
19646 #define _XOPEN_SOURCE_EXTENDED 1
19647 #include <errno.h>
19648 /* The following two lines are a workaround against an autoconf-2.52 bug. */
19649 #include <stdio.h>
19650 #include <stdlib.h>
19651 "
19652 then :
19653
19654 fi
19655
19656 fi
19657 fi
19658 ;;
19659 esac
19660 fi
19661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
19662 printf "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
19663 case $gl_cv_header_errno_h_EOVERFLOW in
19664 yes | no)
19665 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
19666 ;;
19667 *)
19668 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
19669 ;;
19670 esac
19671
19672
19673 fi
19674
19675
19676
19677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
19678 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
19679 if test ${ac_cv_c_undeclared_builtin_options+y}
19680 then :
19681 printf %s "(cached) " >&6
19682 else case e in #(
19683 e) ac_save_CFLAGS=$CFLAGS
19684 ac_cv_c_undeclared_builtin_options='cannot detect'
19685 for ac_arg in '' -fno-builtin; do
19686 CFLAGS="$ac_save_CFLAGS $ac_arg"
19687 # This test program should *not* compile successfully.
19688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h. */
19690
19691 int
19692 main (void)
19693 {
19694 (void) strchr;
19695 ;
19696 return 0;
19697 }
19698 _ACEOF
19699 if ac_fn_c_try_compile "$LINENO"
19700 then :
19701
19702 else case e in #(
19703 e) # This test program should compile successfully.
19704 # No library function is consistently available on
19705 # freestanding implementations, so test against a dummy
19706 # declaration. Include always-available headers on the
19707 # off chance that they somehow elicit warnings.
19708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19709 /* end confdefs.h. */
19710 #include <float.h>
19711 #include <limits.h>
19712 #include <stdarg.h>
19713 #include <stddef.h>
19714 extern void ac_decl (int, char *);
19715
19716 int
19717 main (void)
19718 {
19719 (void) ac_decl (0, (char *) 0);
19720 (void) ac_decl;
19721
19722 ;
19723 return 0;
19724 }
19725 _ACEOF
19726 if ac_fn_c_try_compile "$LINENO"
19727 then :
19728 if test x"$ac_arg" = x
19729 then :
19730 ac_cv_c_undeclared_builtin_options='none needed'
19731 else case e in #(
19732 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
19733 esac
19734 fi
19735 break
19736 fi
19737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19738 esac
19739 fi
19740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19741 done
19742 CFLAGS=$ac_save_CFLAGS
19743 ;;
19744 esac
19745 fi
19746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
19747 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
19748 case $ac_cv_c_undeclared_builtin_options in #(
19749 'cannot detect') :
19750 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19751 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19752 as_fn_error $? "cannot make $CC report undeclared builtins
19753 See 'config.log' for more details" "$LINENO" 5; } ;; #(
19754 'none needed') :
19755 ac_c_undeclared_builtin_options='' ;; #(
19756 *) :
19757 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
19758 esac
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771 if test $gl_cv_have_include_next = yes; then
19772 gl_cv_next_error_h='<'error.h'>'
19773 else
19774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <error.h>" >&5
19775 printf %s "checking absolute name of <error.h>... " >&6; }
19776 if test ${gl_cv_next_error_h+y}
19777 then :
19778 printf %s "(cached) " >&6
19779 else case e in #(
19780 e)
19781 if test $ac_cv_header_error_h = yes; then
19782
19783
19784
19785
19786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19787 /* end confdefs.h. */
19788 #include <error.h>
19789 _ACEOF
19790 case "$host_os" in
19791 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19792 *) gl_absname_cpp="$ac_cpp" ;;
19793 esac
19794
19795 case "$host_os" in
19796 mingw* | windows*)
19797 gl_dirsep_regex='[/\\]'
19798 ;;
19799 *)
19800 gl_dirsep_regex='\/'
19801 ;;
19802 esac
19803 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19804 gl_header_literal_regex=`echo 'error.h' \
19805 | sed -e "$gl_make_literal_regex_sed"`
19806 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19807 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19808 s|^/[^/]|//&|
19809 p
19810 q
19811 }'
19812
19813 gl_cv_absolute_error_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19814 sed -n "$gl_absolute_header_sed"`
19815
19816 gl_header=$gl_cv_absolute_error_h
19817 gl_cv_next_error_h='"'$gl_header'"'
19818 else
19819 gl_cv_next_error_h='<'error.h'>'
19820 fi
19821
19822 ;;
19823 esac
19824 fi
19825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_error_h" >&5
19826 printf "%s\n" "$gl_cv_next_error_h" >&6; }
19827 fi
19828 NEXT_ERROR_H=$gl_cv_next_error_h
19829
19830 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19831 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19832 gl_next_as_first_directive='<'error.h'>'
19833 else
19834 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19835 gl_next_as_first_directive=$gl_cv_next_error_h
19836 fi
19837 NEXT_AS_FIRST_DIRECTIVE_ERROR_H=$gl_next_as_first_directive
19838
19839
19840
19841
19842 if test $ac_cv_header_error_h = yes; then
19843 HAVE_ERROR_H=1
19844 else
19845 HAVE_ERROR_H=0
19846 fi
19847
19848
19849 REPLACE_ERROR=0
19850
19851
19852
19853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error" >&5
19854 printf %s "checking for error... " >&6; }
19855 if test ${gl_cv_onwards_func_error+y}
19856 then :
19857 printf %s "(cached) " >&6
19858 else case e in #(
19859 e)
19860 exec 9>&6 6>/dev/null
19861
19862 case "$host_os" in
19863
19864 linux*-android*)
19865 ac_fn_check_decl "$LINENO" "error" "ac_cv_have_decl_error" "#include <error.h>
19866 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19867 if test "x$ac_cv_have_decl_error" = xyes
19868 then :
19869
19870 fi
19871 if test $ac_cv_have_decl_error = yes; then
19872 ac_fn_c_check_func "$LINENO" "error" "ac_cv_func_error"
19873 if test "x$ac_cv_func_error" = xyes
19874 then :
19875
19876 fi
19877
19878 if test $ac_cv_func_error = yes; then
19879 gl_cv_onwards_func_error=yes
19880 else
19881 gl_cv_onwards_func_error='future OS version'
19882 fi
19883 else
19884 gl_cv_onwards_func_error='future OS version'
19885 fi
19886 ;;
19887
19888
19889 *)
19890 ac_fn_c_check_func "$LINENO" "error" "ac_cv_func_error"
19891 if test "x$ac_cv_func_error" = xyes
19892 then :
19893
19894 fi
19895
19896 gl_cv_onwards_func_error=$ac_cv_func_error
19897 ;;
19898
19899 esac
19900
19901 exec 6>&9 9>&-
19902
19903 ;;
19904 esac
19905 fi
19906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_error" >&5
19907 printf "%s\n" "$gl_cv_onwards_func_error" >&6; }
19908
19909 case "$gl_cv_onwards_func_error" in
19910 future*) ac_cv_func_error=no ;;
19911 *) ac_cv_func_error=$gl_cv_onwards_func_error ;;
19912 esac
19913 if test $ac_cv_func_error = yes; then
19914
19915 printf "%s\n" "#define HAVE_ERROR 1" >>confdefs.h
19916
19917 fi
19918
19919
19920 if test $ac_cv_func_error = yes; then
19921 HAVE_ERROR=1
19922 else
19923 HAVE_ERROR=0
19924 case "$gl_cv_onwards_func_error" in
19925 future*) REPLACE_ERROR=1 ;;
19926 esac
19927 fi
19928
19929 ac_fn_check_decl "$LINENO" "error_at_line" "ac_cv_have_decl_error_at_line" "#include <error.h>
19930 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19931 if test "x$ac_cv_have_decl_error_at_line" = xyes
19932 then :
19933
19934 fi
19935 if test $ac_cv_have_decl_error_at_line = yes; then
19936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
19937 printf %s "checking for error_at_line... " >&6; }
19938 if test ${ac_cv_lib_error_at_line+y}
19939 then :
19940 printf %s "(cached) " >&6
19941 else case e in #(
19942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19943 /* end confdefs.h. */
19944 #include <error.h>
19945 int
19946 main (void)
19947 {
19948 error_at_line (0, 0, "", 0, "an error occurred");
19949 ;
19950 return 0;
19951 }
19952 _ACEOF
19953 if ac_fn_c_try_link "$LINENO"
19954 then :
19955 ac_cv_lib_error_at_line=yes
19956 else case e in #(
19957 e) ac_cv_lib_error_at_line=no ;;
19958 esac
19959 fi
19960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19961 conftest$ac_exeext conftest.$ac_ext ;;
19962 esac
19963 fi
19964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
19965 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
19966 else
19967 ac_cv_lib_error_at_line=no
19968 fi
19969 if test $ac_cv_lib_error_at_line = yes; then
19970 HAVE_ERROR_AT_LINE=1
19971 else
19972 HAVE_ERROR_AT_LINE=0
19973 fi
19974 REPLACE_ERROR_AT_LINE=0
19975
19976 if test $ac_cv_func_error = yes && test $ac_cv_lib_error_at_line = yes; then
19977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working error function" >&5
19978 printf %s "checking for working error function... " >&6; }
19979 if test ${gl_cv_func_working_error+y}
19980 then :
19981 printf %s "(cached) " >&6
19982 else case e in #(
19983 e) if test $cross_compiling != yes; then
19984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19985 /* end confdefs.h. */
19986
19987 #include <error.h>
19988 static void print_no_progname (void) {}
19989
19990 int
19991 main (void)
19992 {
19993
19994 error_print_progname = print_no_progname;
19995 error (0, 0, "foo");
19996
19997 ;
19998 return 0;
19999 }
20000
20001 _ACEOF
20002 if ac_fn_c_try_link "$LINENO"
20003 then :
20004 rm -f conftest.out
20005 if test -s conftest$ac_exeext \
20006 && ./conftest$ac_exeext 2> conftest.out; then
20007 if grep ' ' conftest.out >/dev/null; then
20008 gl_cv_func_working_error=no
20009 else
20010 gl_cv_func_working_error=yes
20011 fi
20012 else
20013 gl_cv_func_working_error=no
20014 fi
20015 rm -f conftest.out
20016
20017 else case e in #(
20018 e) gl_cv_func_working_error=no ;;
20019 esac
20020 fi
20021 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20022 conftest$ac_exeext conftest.$ac_ext
20023 else
20024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20025 /* end confdefs.h. */
20026
20027 #include <error.h>
20028
20029 int
20030 main (void)
20031 {
20032
20033 error (0, 0, "foo");
20034
20035 ;
20036 return 0;
20037 }
20038
20039 _ACEOF
20040 if ac_fn_c_try_compile "$LINENO"
20041 then :
20042 case "$host_os" in
20043 # Guess yes on glibc systems.
20044 *-gnu* | gnu*) gl_cv_func_working_error="guessing yes" ;;
20045 # Guess no on Android.
20046 linux*-android*) gl_cv_func_working_error="guessing no" ;;
20047 # If we don't know, obey --enable-cross-guesses.
20048 *) gl_cv_func_working_error="$gl_cross_guess_normal" ;;
20049 esac
20050
20051 else case e in #(
20052 e) gl_cv_func_working_error=no ;;
20053 esac
20054 fi
20055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20056 fi
20057 ;;
20058 esac
20059 fi
20060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_error" >&5
20061 printf "%s\n" "$gl_cv_func_working_error" >&6; }
20062 case "$gl_cv_func_working_error" in
20063 *no)
20064 REPLACE_ERROR=1
20065 REPLACE_ERROR_AT_LINE=1
20066 ;;
20067 esac
20068 fi
20069
20070 if test $HAVE_ERROR = 0 || test $REPLACE_ERROR = 1 \
20071 || test $HAVE_ERROR_AT_LINE = 0 || test $REPLACE_ERROR_AT_LINE = 1; then
20072 COMPILE_ERROR_C=1
20073 else
20074 COMPILE_ERROR_C=0
20075 fi
20076
20077
20078
20079
20080
20081
20082 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
20083 if test "x$ac_cv_have_decl_strerror_r" = xyes
20084 then :
20085 ac_have_decl=1
20086 else case e in #(
20087 e) ac_have_decl=0 ;;
20088 esac
20089 fi
20090 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
20091
20092
20093 if test $ac_cv_have_decl_strerror_r = yes; then
20094 # For backward compatibility's sake, define HAVE_STRERROR_R.
20095 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
20096 # as AC_CHECK_DECLS_ONCE.)
20097
20098 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
20099
20100 fi
20101
20102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
20103 printf %s "checking whether strerror_r returns char *... " >&6; }
20104 if test ${ac_cv_func_strerror_r_char_p+y}
20105 then :
20106 printf %s "(cached) " >&6
20107 else case e in #(
20108 e)
20109 ac_cv_func_strerror_r_char_p=no
20110 if test $ac_cv_have_decl_strerror_r = yes; then
20111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20112 /* end confdefs.h. */
20113 #include <string.h>
20114 int
20115 main (void)
20116 {
20117
20118 char buf[100];
20119 char x = *strerror_r (0, buf, sizeof buf);
20120 char *p = strerror_r (0, buf, sizeof buf);
20121 return !p || x;
20122
20123 ;
20124 return 0;
20125 }
20126 _ACEOF
20127 if ac_fn_c_try_compile "$LINENO"
20128 then :
20129 ac_cv_func_strerror_r_char_p=yes
20130 fi
20131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20132
20133 fi
20134 ;;
20135 esac
20136 fi
20137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
20138 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
20139 if test $ac_cv_func_strerror_r_char_p = yes; then
20140
20141 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
20142
20143 fi
20144
20145
20146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ctype.h defines __header_inline" >&5
20147 printf %s "checking whether ctype.h defines __header_inline... " >&6; }
20148 if test ${gl_cv_have___header_inline+y}
20149 then :
20150 printf %s "(cached) " >&6
20151 else case e in #(
20152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20153 /* end confdefs.h. */
20154 #include <ctype.h>
20155 #ifndef __header_inline
20156 #error "<ctype.h> does not define __header_inline"
20157 #endif
20158
20159 _ACEOF
20160 if ac_fn_c_try_cpp "$LINENO"
20161 then :
20162 gl_cv_have___header_inline=yes
20163 else case e in #(
20164 e) gl_cv_have___header_inline=no ;;
20165 esac
20166 fi
20167 rm -f conftest.err conftest.i conftest.$ac_ext ;;
20168 esac
20169 fi
20170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have___header_inline" >&5
20171 printf "%s\n" "$gl_cv_have___header_inline" >&6; }
20172 if test "$gl_cv_have___header_inline" = yes; then
20173
20174 printf "%s\n" "#define HAVE___HEADER_INLINE 1" >>confdefs.h
20175
20176 fi
20177
20178
20179
20180
20181 HAVE_FCNTL=1;
20182 HAVE_OPENAT=1;
20183 REPLACE_CREAT=0;
20184 REPLACE_FCNTL=0;
20185 REPLACE_OPEN=0;
20186 REPLACE_OPENAT=0;
20187
20188
20189
20190
20191 GL_GNULIB_CREAT=0
20192
20193
20194
20195 GL_GNULIB_FCNTL=0
20196
20197
20198
20199 GL_GNULIB_NONBLOCKING=0
20200
20201
20202
20203 GL_GNULIB_OPEN=0
20204
20205
20206
20207 GL_GNULIB_OPENAT=0
20208
20209
20210
20211 GL_GNULIB_MDA_CREAT=1
20212
20213
20214
20215 GL_GNULIB_MDA_OPEN=1
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
20226 printf %s "checking for working fcntl.h... " >&6; }
20227 if test ${gl_cv_header_working_fcntl_h+y}
20228 then :
20229 printf %s "(cached) " >&6
20230 else case e in #(
20231 e) if test "$cross_compiling" = yes
20232 then :
20233 case "$host_os" in
20234 # Guess 'no' on native Windows.
20235 mingw* | windows*) gl_cv_header_working_fcntl_h='no' ;;
20236 *) gl_cv_header_working_fcntl_h=cross-compiling ;;
20237 esac
20238
20239 else case e in #(
20240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20241 /* end confdefs.h. */
20242 #include <sys/types.h>
20243 #include <sys/stat.h>
20244 #if HAVE_UNISTD_H
20245 # include <unistd.h>
20246 #else /* on Windows with MSVC */
20247 # include <io.h>
20248 # include <stdlib.h>
20249 # defined sleep(n) _sleep ((n) * 1000)
20250 #endif
20251 #include <fcntl.h>
20252
20253
20254 $gl_mda_defines
20255
20256 #ifndef O_NOATIME
20257 #define O_NOATIME 0
20258 #endif
20259 #ifndef O_NOFOLLOW
20260 #define O_NOFOLLOW 0
20261 #endif
20262 static int const constants[] =
20263 {
20264 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
20265 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
20266 };
20267
20268 int
20269 main (void)
20270 {
20271
20272 int result = !constants;
20273 #if HAVE_SYMLINK
20274 {
20275 static char const sym[] = "conftest.sym";
20276 if (symlink ("/dev/null", sym) != 0)
20277 result |= 2;
20278 else
20279 {
20280 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
20281 if (fd >= 0)
20282 {
20283 close (fd);
20284 result |= 4;
20285 }
20286 }
20287 if (unlink (sym) != 0 || symlink (".", sym) != 0)
20288 result |= 2;
20289 else
20290 {
20291 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
20292 if (fd >= 0)
20293 {
20294 close (fd);
20295 result |= 4;
20296 }
20297 }
20298 unlink (sym);
20299 }
20300 #endif
20301 {
20302 static char const file[] = "confdefs.h";
20303 int fd = open (file, O_RDONLY | O_NOATIME);
20304 if (fd < 0)
20305 result |= 8;
20306 else
20307 {
20308 struct stat st0;
20309 if (fstat (fd, &st0) != 0)
20310 result |= 16;
20311 else
20312 {
20313 char c;
20314 sleep (1);
20315 if (read (fd, &c, 1) != 1)
20316 result |= 24;
20317 else
20318 {
20319 if (close (fd) != 0)
20320 result |= 32;
20321 else
20322 {
20323 struct stat st1;
20324 if (stat (file, &st1) != 0)
20325 result |= 40;
20326 else
20327 if (st0.st_atime != st1.st_atime)
20328 result |= 64;
20329 }
20330 }
20331 }
20332 }
20333 }
20334 return result;
20335 ;
20336 return 0;
20337 }
20338 _ACEOF
20339 if ac_fn_c_try_run "$LINENO"
20340 then :
20341 gl_cv_header_working_fcntl_h=yes
20342 else case e in #(
20343 e) case $? in #(
20344 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
20345 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
20346 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
20347 *) gl_cv_header_working_fcntl_h='no';;
20348 esac ;;
20349 esac
20350 fi
20351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20352 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20353 esac
20354 fi
20355
20356 ;;
20357 esac
20358 fi
20359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
20360 printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; }
20361
20362 case $gl_cv_header_working_fcntl_h in #(
20363 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
20364 *) ac_val=1;;
20365 esac
20366
20367 printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h
20368
20369
20370 case $gl_cv_header_working_fcntl_h in #(
20371 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
20372 *) ac_val=1;;
20373 esac
20374
20375 printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h
20376
20377
20378
20379 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
20380 "
20381 if test "x$ac_cv_type_pid_t" = xyes
20382 then :
20383
20384 else case e in #(
20385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20386 /* end confdefs.h. */
20387
20388 #if defined _WIN64 && !defined __CYGWIN__
20389 LLP64
20390 #endif
20391
20392 int
20393 main (void)
20394 {
20395
20396 ;
20397 return 0;
20398 }
20399
20400 _ACEOF
20401 if ac_fn_c_try_compile "$LINENO"
20402 then :
20403 ac_pid_type='int'
20404 else case e in #(
20405 e) ac_pid_type='__int64' ;;
20406 esac
20407 fi
20408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20409
20410 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
20411
20412 ;;
20413 esac
20414 fi
20415
20416
20417 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20418 if test "x$ac_cv_type_mode_t" = xyes
20419 then :
20420
20421 else case e in #(
20422 e)
20423 printf "%s\n" "#define mode_t int" >>confdefs.h
20424 ;;
20425 esac
20426 fi
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439 if test $gl_cv_have_include_next = yes; then
20440 gl_cv_next_fcntl_h='<'fcntl.h'>'
20441 else
20442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
20443 printf %s "checking absolute name of <fcntl.h>... " >&6; }
20444 if test ${gl_cv_next_fcntl_h+y}
20445 then :
20446 printf %s "(cached) " >&6
20447 else case e in #(
20448 e)
20449
20450
20451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20452 /* end confdefs.h. */
20453 #include <fcntl.h>
20454 _ACEOF
20455 case "$host_os" in
20456 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20457 *) gl_absname_cpp="$ac_cpp" ;;
20458 esac
20459
20460 case "$host_os" in
20461 mingw* | windows*)
20462 gl_dirsep_regex='[/\\]'
20463 ;;
20464 *)
20465 gl_dirsep_regex='\/'
20466 ;;
20467 esac
20468 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20469 gl_header_literal_regex=`echo 'fcntl.h' \
20470 | sed -e "$gl_make_literal_regex_sed"`
20471 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20472 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20473 s|^/[^/]|//&|
20474 p
20475 q
20476 }'
20477
20478 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20479 sed -n "$gl_absolute_header_sed"`
20480
20481 gl_header=$gl_cv_absolute_fcntl_h
20482 gl_cv_next_fcntl_h='"'$gl_header'"'
20483
20484 ;;
20485 esac
20486 fi
20487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
20488 printf "%s\n" "$gl_cv_next_fcntl_h" >&6; }
20489 fi
20490 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
20491
20492 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20493 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20494 gl_next_as_first_directive='<'fcntl.h'>'
20495 else
20496 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20497 gl_next_as_first_directive=$gl_cv_next_fcntl_h
20498 fi
20499 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514 HAVE_FCHMODAT=1;
20515 HAVE_FSTATAT=1;
20516 HAVE_FUTIMENS=1;
20517 HAVE_GETUMASK=1;
20518 HAVE_LCHMOD=1;
20519 HAVE_LSTAT=1;
20520 HAVE_MKDIRAT=1;
20521 HAVE_MKFIFO=1;
20522 HAVE_MKFIFOAT=1;
20523 HAVE_MKNOD=1;
20524 HAVE_MKNODAT=1;
20525 HAVE_UTIMENSAT=1;
20526 REPLACE_CHMOD=0;
20527 REPLACE_FCHMODAT=0;
20528 REPLACE_FSTAT=0;
20529 REPLACE_FSTATAT=0;
20530 REPLACE_FUTIMENS=0;
20531 REPLACE_LSTAT=0;
20532 REPLACE_MKDIR=0;
20533 REPLACE_MKFIFO=0;
20534 REPLACE_MKFIFOAT=0;
20535 REPLACE_MKNOD=0;
20536 REPLACE_MKNODAT=0;
20537 REPLACE_STAT=0;
20538 REPLACE_UTIMENSAT=0;
20539
20540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20541 printf %s "checking whether stat file-mode macros are broken... " >&6; }
20542 if test ${ac_cv_header_stat_broken+y}
20543 then :
20544 printf %s "(cached) " >&6
20545 else case e in #(
20546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20547 /* end confdefs.h. */
20548 #include <sys/types.h>
20549 #include <sys/stat.h>
20550
20551 #if defined S_ISBLK && defined S_IFDIR
20552 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20553 #endif
20554
20555 #if defined S_ISBLK && defined S_IFCHR
20556 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20557 #endif
20558
20559 #if defined S_ISLNK && defined S_IFREG
20560 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20561 #endif
20562
20563 #if defined S_ISSOCK && defined S_IFREG
20564 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20565 #endif
20566
20567 _ACEOF
20568 if ac_fn_c_try_compile "$LINENO"
20569 then :
20570 ac_cv_header_stat_broken=no
20571 else case e in #(
20572 e) ac_cv_header_stat_broken=yes ;;
20573 esac
20574 fi
20575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20576 esac
20577 fi
20578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20579 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
20580 if test $ac_cv_header_stat_broken = yes; then
20581
20582 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20583
20584 fi
20585
20586
20587
20588 case "$host_os" in
20589 mingw* | windows*)
20590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
20591 printf %s "checking for 64-bit off_t... " >&6; }
20592 if test ${gl_cv_type_off_t_64+y}
20593 then :
20594 printf %s "(cached) " >&6
20595 else case e in #(
20596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20597 /* end confdefs.h. */
20598 #include <sys/types.h>
20599 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
20600
20601 int
20602 main (void)
20603 {
20604
20605 ;
20606 return 0;
20607 }
20608 _ACEOF
20609 if ac_fn_c_try_compile "$LINENO"
20610 then :
20611 gl_cv_type_off_t_64=yes
20612 else case e in #(
20613 e) gl_cv_type_off_t_64=no ;;
20614 esac
20615 fi
20616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20617 ;;
20618 esac
20619 fi
20620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
20621 printf "%s\n" "$gl_cv_type_off_t_64" >&6; }
20622 if test $gl_cv_type_off_t_64 = no; then
20623 WINDOWS_64_BIT_OFF_T=1
20624 else
20625 WINDOWS_64_BIT_OFF_T=0
20626 fi
20627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
20628 printf %s "checking for 64-bit st_size... " >&6; }
20629 if test ${gl_cv_member_st_size_64+y}
20630 then :
20631 printf %s "(cached) " >&6
20632 else case e in #(
20633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20634 /* end confdefs.h. */
20635 #include <sys/types.h>
20636 struct stat buf;
20637 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
20638
20639 int
20640 main (void)
20641 {
20642
20643 ;
20644 return 0;
20645 }
20646 _ACEOF
20647 if ac_fn_c_try_compile "$LINENO"
20648 then :
20649 gl_cv_member_st_size_64=yes
20650 else case e in #(
20651 e) gl_cv_member_st_size_64=no ;;
20652 esac
20653 fi
20654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20655 ;;
20656 esac
20657 fi
20658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
20659 printf "%s\n" "$gl_cv_member_st_size_64" >&6; }
20660 if test $gl_cv_member_st_size_64 = no; then
20661 WINDOWS_64_BIT_ST_SIZE=1
20662 else
20663 WINDOWS_64_BIT_ST_SIZE=0
20664 fi
20665 ;;
20666 *)
20667 WINDOWS_64_BIT_OFF_T=0
20668 WINDOWS_64_BIT_ST_SIZE=0
20669 ;;
20670 esac
20671
20672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
20673 printf %s "checking for C/C++ restrict keyword... " >&6; }
20674 if test ${ac_cv_c_restrict+y}
20675 then :
20676 printf %s "(cached) " >&6
20677 else case e in #(
20678 e) ac_cv_c_restrict=no
20679 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
20680 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
20681 # Put 'restrict' last, because C++ lacks it.
20682 for ac_kw in __restrict__ __restrict _Restrict restrict; do
20683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20684 /* end confdefs.h. */
20685 typedef int *int_ptr;
20686 int foo (int_ptr $ac_kw ip) { return ip[0]; }
20687 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
20688 int bar (int ip[$ac_kw]) { return ip[0]; }
20689
20690 int
20691 main (void)
20692 {
20693 int s[1];
20694 int *$ac_kw t = s;
20695 t[0] = 0;
20696 return foo (t) + bar (t);
20697
20698 ;
20699 return 0;
20700 }
20701 _ACEOF
20702 if ac_fn_c_try_compile "$LINENO"
20703 then :
20704 ac_cv_c_restrict=$ac_kw
20705 fi
20706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20707 test "$ac_cv_c_restrict" != no && break
20708 done
20709 ;;
20710 esac
20711 fi
20712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
20713 printf "%s\n" "$ac_cv_c_restrict" >&6; }
20714
20715 case $ac_cv_c_restrict in
20716 restrict) ;;
20717 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
20718 ;;
20719 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
20720 ;;
20721 esac
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737 if test $gl_cv_have_include_next = yes; then
20738 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20739 else
20740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20741 printf %s "checking absolute name of <sys/stat.h>... " >&6; }
20742 if test ${gl_cv_next_sys_stat_h+y}
20743 then :
20744 printf %s "(cached) " >&6
20745 else case e in #(
20746 e)
20747 if test $ac_cv_header_sys_stat_h = yes; then
20748
20749
20750
20751
20752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20753 /* end confdefs.h. */
20754 #include <sys/stat.h>
20755 _ACEOF
20756 case "$host_os" in
20757 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20758 *) gl_absname_cpp="$ac_cpp" ;;
20759 esac
20760
20761 case "$host_os" in
20762 mingw* | windows*)
20763 gl_dirsep_regex='[/\\]'
20764 ;;
20765 *)
20766 gl_dirsep_regex='\/'
20767 ;;
20768 esac
20769 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20770 gl_header_literal_regex=`echo 'sys/stat.h' \
20771 | sed -e "$gl_make_literal_regex_sed"`
20772 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20773 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20774 s|^/[^/]|//&|
20775 p
20776 q
20777 }'
20778
20779 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20780 sed -n "$gl_absolute_header_sed"`
20781
20782 gl_header=$gl_cv_absolute_sys_stat_h
20783 gl_cv_next_sys_stat_h='"'$gl_header'"'
20784 else
20785 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20786 fi
20787
20788 ;;
20789 esac
20790 fi
20791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20792 printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; }
20793 fi
20794 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20795
20796 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20797 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20798 gl_next_as_first_directive='<'sys/stat.h'>'
20799 else
20800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20801 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20802 fi
20803 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20804
20805
20806
20807
20808
20809
20810
20811
20812 WINDOWS_STAT_TIMESPEC=0
20813
20814
20815
20816
20817
20818
20819
20820
20821 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20822 #include <sys/stat.h>
20823 "
20824 if test "x$ac_cv_type_nlink_t" = xyes
20825 then :
20826
20827 else case e in #(
20828 e)
20829 printf "%s\n" "#define nlink_t int" >>confdefs.h
20830 ;;
20831 esac
20832 fi
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843 case "$host_os" in
20844 mingw* | windows*)
20845 ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
20846 if test "x$ac_cv_header_sdkddkver_h" = xyes
20847 then :
20848 printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h
20849
20850 fi
20851
20852 ;;
20853 esac
20854
20855
20856
20857
20858
20859
20860
20861 GL_GNULIB_CHMOD=0
20862
20863
20864
20865 GL_GNULIB_FCHMODAT=0
20866
20867
20868
20869 GL_GNULIB_FSTAT=0
20870
20871
20872
20873 GL_GNULIB_FSTATAT=0
20874
20875
20876
20877 GL_GNULIB_FUTIMENS=0
20878
20879
20880
20881 GL_GNULIB_GETUMASK=0
20882
20883
20884
20885 GL_GNULIB_LCHMOD=0
20886
20887
20888
20889 GL_GNULIB_LSTAT=0
20890
20891
20892
20893 GL_GNULIB_MKDIR=0
20894
20895
20896
20897 GL_GNULIB_MKDIRAT=0
20898
20899
20900
20901 GL_GNULIB_MKFIFO=0
20902
20903
20904
20905 GL_GNULIB_MKFIFOAT=0
20906
20907
20908
20909 GL_GNULIB_MKNOD=0
20910
20911
20912
20913 GL_GNULIB_MKNODAT=0
20914
20915
20916
20917 GL_GNULIB_STAT=0
20918
20919
20920
20921 GL_GNULIB_UTIMENSAT=0
20922
20923
20924
20925 GL_GNULIB_OVERRIDES_STRUCT_STAT=0
20926
20927
20928
20929 GL_GNULIB_MDA_CHMOD=1
20930
20931
20932
20933 GL_GNULIB_MDA_MKDIR=1
20934
20935
20936
20937 GL_GNULIB_MDA_UMASK=1
20938
20939
20940
20941
20942 ac_fn_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
20943 if test "x$ac_cv_have_decl_getdtablesize" = xyes
20944 then :
20945 ac_have_decl=1
20946 else case e in #(
20947 e) ac_have_decl=0 ;;
20948 esac
20949 fi
20950 printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h
20951
20952
20953
20954 HAVE_GETRANDOM=1;
20955 REPLACE_GETRANDOM=0;
20956
20957
20958
20959 GL_GNULIB_GETRANDOM=0
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974 if test $gl_cv_have_include_next = yes; then
20975 gl_cv_next_limits_h='<'limits.h'>'
20976 else
20977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
20978 printf %s "checking absolute name of <limits.h>... " >&6; }
20979 if test ${gl_cv_next_limits_h+y}
20980 then :
20981 printf %s "(cached) " >&6
20982 else case e in #(
20983 e)
20984 if test $ac_cv_header_limits_h = yes; then
20985
20986
20987
20988
20989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20990 /* end confdefs.h. */
20991 #include <limits.h>
20992 _ACEOF
20993 case "$host_os" in
20994 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20995 *) gl_absname_cpp="$ac_cpp" ;;
20996 esac
20997
20998 case "$host_os" in
20999 mingw* | windows*)
21000 gl_dirsep_regex='[/\\]'
21001 ;;
21002 *)
21003 gl_dirsep_regex='\/'
21004 ;;
21005 esac
21006 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21007 gl_header_literal_regex=`echo 'limits.h' \
21008 | sed -e "$gl_make_literal_regex_sed"`
21009 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21010 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21011 s|^/[^/]|//&|
21012 p
21013 q
21014 }'
21015
21016 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21017 sed -n "$gl_absolute_header_sed"`
21018
21019 gl_header=$gl_cv_absolute_limits_h
21020 gl_cv_next_limits_h='"'$gl_header'"'
21021 else
21022 gl_cv_next_limits_h='<'limits.h'>'
21023 fi
21024
21025 ;;
21026 esac
21027 fi
21028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
21029 printf "%s\n" "$gl_cv_next_limits_h" >&6; }
21030 fi
21031 NEXT_LIMITS_H=$gl_cv_next_limits_h
21032
21033 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21034 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21035 gl_next_as_first_directive='<'limits.h'>'
21036 else
21037 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21038 gl_next_as_first_directive=$gl_cv_next_limits_h
21039 fi
21040 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
21041
21042
21043
21044
21045
21046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has WORD_BIT, BOOL_WIDTH etc." >&5
21047 printf %s "checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... " >&6; }
21048 if test ${gl_cv_header_limits_width+y}
21049 then :
21050 printf %s "(cached) " >&6
21051 else case e in #(
21052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21053 /* end confdefs.h. */
21054 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
21055 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
21056 #endif
21057 #include <limits.h>
21058 long long llm = LLONG_MAX;
21059 int wb = WORD_BIT;
21060 int ullw = ULLONG_WIDTH;
21061 int bw = BOOL_WIDTH;
21062 int bm = BOOL_MAX;
21063 int mblm = MB_LEN_MAX;
21064
21065 int
21066 main (void)
21067 {
21068
21069 ;
21070 return 0;
21071 }
21072 _ACEOF
21073 if ac_fn_c_try_compile "$LINENO"
21074 then :
21075 gl_cv_header_limits_width=yes
21076 else case e in #(
21077 e) gl_cv_header_limits_width=no ;;
21078 esac
21079 fi
21080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21081 esac
21082 fi
21083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
21084 printf "%s\n" "$gl_cv_header_limits_width" >&6; }
21085 GL_GENERATE_LIMITS_H=true
21086 if test "$gl_cv_header_limits_width" = yes
21087 then :
21088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has SSIZE_MAX" >&5
21089 printf %s "checking whether limits.h has SSIZE_MAX... " >&6; }
21090 if test ${gl_cv_header_limits_ssize_max+y}
21091 then :
21092 printf %s "(cached) " >&6
21093 else case e in #(
21094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21095 /* end confdefs.h. */
21096 #include <limits.h>
21097 #ifndef SSIZE_MAX
21098 #error "SSIZE_MAX is not defined"
21099 #endif
21100
21101 _ACEOF
21102 if ac_fn_c_try_compile "$LINENO"
21103 then :
21104 gl_cv_header_limits_ssize_max=yes
21105 else case e in #(
21106 e) gl_cv_header_limits_ssize_max=no ;;
21107 esac
21108 fi
21109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21110 esac
21111 fi
21112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_ssize_max" >&5
21113 printf "%s\n" "$gl_cv_header_limits_ssize_max" >&6; }
21114 if test "$gl_cv_header_limits_ssize_max" = yes; then
21115 GL_GENERATE_LIMITS_H=false
21116 fi
21117 fi
21118
21119
21120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
21121 printf %s "checking for wint_t... " >&6; }
21122 if test ${gt_cv_c_wint_t+y}
21123 then :
21124 printf %s "(cached) " >&6
21125 else case e in #(
21126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21127 /* end confdefs.h. */
21128 #include <wchar.h>
21129 wint_t foo = (wchar_t)'\0';
21130 int
21131 main (void)
21132 {
21133
21134 ;
21135 return 0;
21136 }
21137 _ACEOF
21138 if ac_fn_c_try_compile "$LINENO"
21139 then :
21140 gt_cv_c_wint_t=yes
21141 else case e in #(
21142 e) gt_cv_c_wint_t=no ;;
21143 esac
21144 fi
21145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21146 esac
21147 fi
21148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
21149 printf "%s\n" "$gt_cv_c_wint_t" >&6; }
21150 if test $gt_cv_c_wint_t = yes; then
21151
21152 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
21153
21154
21155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
21156 printf %s "checking whether wint_t is large enough... " >&6; }
21157 if test ${gl_cv_type_wint_t_large_enough+y}
21158 then :
21159 printf %s "(cached) " >&6
21160 else case e in #(
21161 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21162 /* end confdefs.h. */
21163 #include <wchar.h>
21164 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
21165
21166 int
21167 main (void)
21168 {
21169
21170 ;
21171 return 0;
21172 }
21173 _ACEOF
21174 if ac_fn_c_try_compile "$LINENO"
21175 then :
21176 gl_cv_type_wint_t_large_enough=yes
21177 else case e in #(
21178 e) gl_cv_type_wint_t_large_enough=no ;;
21179 esac
21180 fi
21181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21182 esac
21183 fi
21184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
21185 printf "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; }
21186 if test $gl_cv_type_wint_t_large_enough = no; then
21187 GNULIBHEADERS_OVERRIDE_WINT_T=1
21188 else
21189 GNULIBHEADERS_OVERRIDE_WINT_T=0
21190 fi
21191 else
21192 GNULIBHEADERS_OVERRIDE_WINT_T=0
21193 fi
21194
21195
21196
21197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
21198 printf %s "checking whether the compiler produces multi-arch binaries... " >&6; }
21199 if test ${gl_cv_c_multiarch+y}
21200 then :
21201 printf %s "(cached) " >&6
21202 else case e in #(
21203 e) gl_cv_c_multiarch=no
21204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205 /* end confdefs.h. */
21206 #ifndef __APPLE_CC__
21207 not a universal capable compiler
21208 #endif
21209 typedef int dummy;
21210
21211 _ACEOF
21212 if ac_fn_c_try_compile "$LINENO"
21213 then :
21214
21215 arch=
21216 prev=
21217 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
21218 if test -n "$prev"; then
21219 case $word in
21220 i?86 | x86_64 | ppc | ppc64 | arm | arm64)
21221 if test -z "$arch" || test "$arch" = "$word"; then
21222 arch="$word"
21223 else
21224 gl_cv_c_multiarch=yes
21225 fi
21226 ;;
21227 esac
21228 prev=
21229 else
21230 if test "x$word" = "x-arch"; then
21231 prev=arch
21232 fi
21233 fi
21234 done
21235
21236 fi
21237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21238 ;;
21239 esac
21240 fi
21241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
21242 printf "%s\n" "$gl_cv_c_multiarch" >&6; }
21243 if test $gl_cv_c_multiarch = yes; then
21244 APPLE_UNIVERSAL_BUILD=1
21245 else
21246 APPLE_UNIVERSAL_BUILD=0
21247 fi
21248
21249
21250
21251
21252
21253
21254
21255
21256 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
21257
21258
21259 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
21260
21261
21262
21263 if test $ac_cv_header_wchar_h = yes; then
21264 HAVE_WCHAR_H=1
21265 else
21266 HAVE_WCHAR_H=0
21267 fi
21268
21269
21270
21271 if test $ac_cv_header_inttypes_h = yes; then
21272 HAVE_INTTYPES_H=1
21273 else
21274 HAVE_INTTYPES_H=0
21275 fi
21276
21277
21278
21279 if test $ac_cv_header_sys_types_h = yes; then
21280 HAVE_SYS_TYPES_H=1
21281 else
21282 HAVE_SYS_TYPES_H=0
21283 fi
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295 if test $gl_cv_have_include_next = yes; then
21296 gl_cv_next_stdint_h='<'stdint.h'>'
21297 else
21298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
21299 printf %s "checking absolute name of <stdint.h>... " >&6; }
21300 if test ${gl_cv_next_stdint_h+y}
21301 then :
21302 printf %s "(cached) " >&6
21303 else case e in #(
21304 e)
21305 if test $ac_cv_header_stdint_h = yes; then
21306
21307
21308
21309
21310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21311 /* end confdefs.h. */
21312 #include <stdint.h>
21313 _ACEOF
21314 case "$host_os" in
21315 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21316 *) gl_absname_cpp="$ac_cpp" ;;
21317 esac
21318
21319 case "$host_os" in
21320 mingw* | windows*)
21321 gl_dirsep_regex='[/\\]'
21322 ;;
21323 *)
21324 gl_dirsep_regex='\/'
21325 ;;
21326 esac
21327 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21328 gl_header_literal_regex=`echo 'stdint.h' \
21329 | sed -e "$gl_make_literal_regex_sed"`
21330 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21331 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21332 s|^/[^/]|//&|
21333 p
21334 q
21335 }'
21336
21337 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21338 sed -n "$gl_absolute_header_sed"`
21339
21340 gl_header=$gl_cv_absolute_stdint_h
21341 gl_cv_next_stdint_h='"'$gl_header'"'
21342 else
21343 gl_cv_next_stdint_h='<'stdint.h'>'
21344 fi
21345
21346 ;;
21347 esac
21348 fi
21349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
21350 printf "%s\n" "$gl_cv_next_stdint_h" >&6; }
21351 fi
21352 NEXT_STDINT_H=$gl_cv_next_stdint_h
21353
21354 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21355 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21356 gl_next_as_first_directive='<'stdint.h'>'
21357 else
21358 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21359 gl_next_as_first_directive=$gl_cv_next_stdint_h
21360 fi
21361 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
21362
21363
21364
21365
21366 if test $ac_cv_header_stdint_h = yes; then
21367 HAVE_STDINT_H=1
21368 else
21369 HAVE_STDINT_H=0
21370 fi
21371
21372
21373 if test $ac_cv_header_stdint_h = yes; then
21374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
21375 printf %s "checking whether stdint.h conforms to C99... " >&6; }
21376 if test ${gl_cv_header_working_stdint_h+y}
21377 then :
21378 printf %s "(cached) " >&6
21379 else case e in #(
21380 e) gl_cv_header_working_stdint_h=no
21381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21382 /* end confdefs.h. */
21383
21384
21385 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21386 #define __STDC_CONSTANT_MACROS 1
21387 #define __STDC_LIMIT_MACROS 1
21388 #include <stdint.h>
21389 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
21390 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
21391 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
21392 #endif
21393
21394
21395 #include <stddef.h>
21396 #include <signal.h>
21397 #if HAVE_WCHAR_H
21398 # include <wchar.h>
21399 #endif
21400
21401
21402 #ifdef INT8_MAX
21403 int8_t a1 = INT8_MAX;
21404 int8_t a1min = INT8_MIN;
21405 #endif
21406 #ifdef INT16_MAX
21407 int16_t a2 = INT16_MAX;
21408 int16_t a2min = INT16_MIN;
21409 #endif
21410 #ifdef INT32_MAX
21411 int32_t a3 = INT32_MAX;
21412 int32_t a3min = INT32_MIN;
21413 #endif
21414 #ifdef INT64_MAX
21415 int64_t a4 = INT64_MAX;
21416 int64_t a4min = INT64_MIN;
21417 #endif
21418 #ifdef UINT8_MAX
21419 uint8_t b1 = UINT8_MAX;
21420 #else
21421 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
21422 #endif
21423 #ifdef UINT16_MAX
21424 uint16_t b2 = UINT16_MAX;
21425 #endif
21426 #ifdef UINT32_MAX
21427 uint32_t b3 = UINT32_MAX;
21428 #endif
21429 #ifdef UINT64_MAX
21430 uint64_t b4 = UINT64_MAX;
21431 #endif
21432 int_least8_t c1 = INT8_C (0x7f);
21433 int_least8_t c1max = INT_LEAST8_MAX;
21434 int_least8_t c1min = INT_LEAST8_MIN;
21435 int_least16_t c2 = INT16_C (0x7fff);
21436 int_least16_t c2max = INT_LEAST16_MAX;
21437 int_least16_t c2min = INT_LEAST16_MIN;
21438 int_least32_t c3 = INT32_C (0x7fffffff);
21439 int_least32_t c3max = INT_LEAST32_MAX;
21440 int_least32_t c3min = INT_LEAST32_MIN;
21441 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
21442 int_least64_t c4max = INT_LEAST64_MAX;
21443 int_least64_t c4min = INT_LEAST64_MIN;
21444 uint_least8_t d1 = UINT8_C (0xff);
21445 uint_least8_t d1max = UINT_LEAST8_MAX;
21446 uint_least16_t d2 = UINT16_C (0xffff);
21447 uint_least16_t d2max = UINT_LEAST16_MAX;
21448 uint_least32_t d3 = UINT32_C (0xffffffff);
21449 uint_least32_t d3max = UINT_LEAST32_MAX;
21450 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
21451 uint_least64_t d4max = UINT_LEAST64_MAX;
21452 int_fast8_t e1 = INT_FAST8_MAX;
21453 int_fast8_t e1min = INT_FAST8_MIN;
21454 int_fast16_t e2 = INT_FAST16_MAX;
21455 int_fast16_t e2min = INT_FAST16_MIN;
21456 int_fast32_t e3 = INT_FAST32_MAX;
21457 int_fast32_t e3min = INT_FAST32_MIN;
21458 int_fast64_t e4 = INT_FAST64_MAX;
21459 int_fast64_t e4min = INT_FAST64_MIN;
21460 uint_fast8_t f1 = UINT_FAST8_MAX;
21461 uint_fast16_t f2 = UINT_FAST16_MAX;
21462 uint_fast32_t f3 = UINT_FAST32_MAX;
21463 uint_fast64_t f4 = UINT_FAST64_MAX;
21464 #ifdef INTPTR_MAX
21465 intptr_t g = INTPTR_MAX;
21466 intptr_t gmin = INTPTR_MIN;
21467 #endif
21468 #ifdef UINTPTR_MAX
21469 uintptr_t h = UINTPTR_MAX;
21470 #endif
21471 intmax_t i = INTMAX_MAX;
21472 uintmax_t j = UINTMAX_MAX;
21473
21474 /* Check that SIZE_MAX has the correct type, if possible. */
21475 /* ISO C 11 mandates _Generic, but GCC versions < 4.9 lack it. */
21476 #if 201112 <= __STDC_VERSION__ \
21477 && (!defined __GNUC__ || 4 < __GNUC__ + (9 <= __GNUC_MINOR__) \
21478 || defined __clang__)
21479 int k = _Generic (SIZE_MAX, size_t: 0);
21480 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
21481 || (0x5110 <= __SUNPRO_C && !__STDC__))
21482 extern size_t k;
21483 extern __typeof__ (SIZE_MAX) k;
21484 #endif
21485
21486 #include <limits.h> /* for CHAR_BIT */
21487 #define TYPE_MINIMUM(t) \
21488 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
21489 #define TYPE_MAXIMUM(t) \
21490 ((t) ((t) 0 < (t) -1 \
21491 ? (t) -1 \
21492 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
21493 struct s {
21494 int check_PTRDIFF:
21495 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
21496 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
21497 ? 1 : -1;
21498 /* Detect bug in FreeBSD 6.0/ia64 and FreeBSD 13.0/arm64. */
21499 int check_SIG_ATOMIC:
21500 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
21501 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
21502 ? 1 : -1;
21503 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
21504 int check_WCHAR:
21505 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
21506 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
21507 ? 1 : -1;
21508 /* Detect bug in mingw. */
21509 int check_WINT:
21510 WINT_MIN == TYPE_MINIMUM (wint_t)
21511 && WINT_MAX == TYPE_MAXIMUM (wint_t)
21512 ? 1 : -1;
21513
21514 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
21515 int check_UINT8_C:
21516 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
21517 int check_UINT16_C:
21518 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
21519
21520 /* Detect bugs in OpenBSD 3.9 stdint.h. */
21521 #ifdef UINT8_MAX
21522 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
21523 #endif
21524 #ifdef UINT16_MAX
21525 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
21526 #endif
21527 #ifdef UINT32_MAX
21528 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
21529 #endif
21530 #ifdef UINT64_MAX
21531 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
21532 #endif
21533 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
21534 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
21535 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
21536 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
21537 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
21538 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
21539 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
21540 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
21541 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
21542 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
21543 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
21544 };
21545
21546 int
21547 main (void)
21548 {
21549
21550 ;
21551 return 0;
21552 }
21553 _ACEOF
21554 if ac_fn_c_try_compile "$LINENO"
21555 then :
21556 if test "$cross_compiling" = yes
21557 then :
21558 case "$host_os" in
21559 # Guess yes on native Windows.
21560 mingw* | windows*) gl_cv_header_working_stdint_h="guessing yes" ;;
21561 # In general, assume it works.
21562 *) gl_cv_header_working_stdint_h="guessing yes" ;;
21563 esac
21564
21565 else case e in #(
21566 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21567 /* end confdefs.h. */
21568
21569
21570 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21571 #define __STDC_CONSTANT_MACROS 1
21572 #define __STDC_LIMIT_MACROS 1
21573 #include <stdint.h>
21574
21575
21576 #include <stddef.h>
21577 #include <signal.h>
21578 #if HAVE_WCHAR_H
21579 # include <wchar.h>
21580 #endif
21581
21582
21583 #include <stdio.h>
21584 #include <string.h>
21585 #define MVAL(macro) MVAL1(macro)
21586 #define MVAL1(expression) #expression
21587 static const char *macro_values[] =
21588 {
21589 #ifdef INT8_MAX
21590 MVAL (INT8_MAX),
21591 #endif
21592 #ifdef INT16_MAX
21593 MVAL (INT16_MAX),
21594 #endif
21595 #ifdef INT32_MAX
21596 MVAL (INT32_MAX),
21597 #endif
21598 #ifdef INT64_MAX
21599 MVAL (INT64_MAX),
21600 #endif
21601 #ifdef UINT8_MAX
21602 MVAL (UINT8_MAX),
21603 #endif
21604 #ifdef UINT16_MAX
21605 MVAL (UINT16_MAX),
21606 #endif
21607 #ifdef UINT32_MAX
21608 MVAL (UINT32_MAX),
21609 #endif
21610 #ifdef UINT64_MAX
21611 MVAL (UINT64_MAX),
21612 #endif
21613 NULL
21614 };
21615
21616 int
21617 main (void)
21618 {
21619
21620 const char **mv;
21621 for (mv = macro_values; *mv != NULL; mv++)
21622 {
21623 const char *value = *mv;
21624 /* Test whether it looks like a cast expression. */
21625 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
21626 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
21627 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
21628 || strncmp (value, "((int)"/*)*/, 6) == 0
21629 || strncmp (value, "((signed short)"/*)*/, 15) == 0
21630 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
21631 return mv - macro_values + 1;
21632 }
21633 return 0;
21634
21635 ;
21636 return 0;
21637 }
21638 _ACEOF
21639 if ac_fn_c_try_run "$LINENO"
21640 then :
21641 gl_cv_header_working_stdint_h=yes
21642 fi
21643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21644 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21645 esac
21646 fi
21647
21648
21649 fi
21650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21651 ;;
21652 esac
21653 fi
21654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
21655 printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; }
21656 fi
21657
21658 HAVE_C99_STDINT_H=0
21659 HAVE_SYS_BITYPES_H=0
21660 HAVE_SYS_INTTYPES_H=0
21661 GL_GENERATE_STDINT_H=true
21662 case "$gl_cv_header_working_stdint_h" in
21663 *yes)
21664 HAVE_C99_STDINT_H=1
21665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
21666 printf %s "checking whether stdint.h works without ISO C predefines... " >&6; }
21667 if test ${gl_cv_header_stdint_without_STDC_macros+y}
21668 then :
21669 printf %s "(cached) " >&6
21670 else case e in #(
21671 e) gl_cv_header_stdint_without_STDC_macros=no
21672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21673 /* end confdefs.h. */
21674
21675
21676 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21677 #include <stdint.h>
21678
21679
21680 #include <stddef.h>
21681 #include <signal.h>
21682 #if HAVE_WCHAR_H
21683 # include <wchar.h>
21684 #endif
21685
21686
21687 intmax_t im = INTMAX_MAX;
21688 int32_t i32 = INT32_C (0x7fffffff);
21689
21690 int
21691 main (void)
21692 {
21693
21694 ;
21695 return 0;
21696 }
21697 _ACEOF
21698 if ac_fn_c_try_compile "$LINENO"
21699 then :
21700 gl_cv_header_stdint_without_STDC_macros=yes
21701 fi
21702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21703 ;;
21704 esac
21705 fi
21706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
21707 printf "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; }
21708
21709 if test $gl_cv_header_stdint_without_STDC_macros = no; then
21710
21711 printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
21712
21713
21714 printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
21715
21716 fi
21717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
21718 printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
21719 if test ${gl_cv_header_stdint_width+y}
21720 then :
21721 printf %s "(cached) " >&6
21722 else case e in #(
21723 e) gl_cv_header_stdint_width=no
21724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21725 /* end confdefs.h. */
21726
21727 /* Work if build is not clean. */
21728 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
21729 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
21730 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
21731 #endif
21732 #include <stdint.h>
21733
21734 #include <stddef.h>
21735 #include <signal.h>
21736 #if HAVE_WCHAR_H
21737 # include <wchar.h>
21738 #endif
21739
21740 int iw = UINTMAX_WIDTH;
21741
21742 int
21743 main (void)
21744 {
21745
21746 ;
21747 return 0;
21748 }
21749 _ACEOF
21750 if ac_fn_c_try_compile "$LINENO"
21751 then :
21752 gl_cv_header_stdint_width=yes
21753 fi
21754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21755 esac
21756 fi
21757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
21758 printf "%s\n" "$gl_cv_header_stdint_width" >&6; }
21759 if test "$gl_cv_header_stdint_width" = yes; then
21760 GL_GENERATE_STDINT_H=false
21761 fi
21762 ;;
21763 *)
21764 ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
21765 if test "x$ac_cv_header_sys_inttypes_h" = xyes
21766 then :
21767 printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h
21768
21769 fi
21770 ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
21771 if test "x$ac_cv_header_sys_bitypes_h" = xyes
21772 then :
21773 printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
21774
21775 fi
21776
21777 if test $ac_cv_header_sys_inttypes_h = yes; then
21778 HAVE_SYS_INTTYPES_H=1
21779 fi
21780 if test $ac_cv_header_sys_bitypes_h = yes; then
21781 HAVE_SYS_BITYPES_H=1
21782 fi
21783
21784
21785 if test $APPLE_UNIVERSAL_BUILD = 0; then
21786
21787
21788 for gltype in ptrdiff_t size_t ; do
21789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21790 printf %s "checking for bit size of $gltype... " >&6; }
21791 if eval test \${gl_cv_bitsizeof_${gltype}+y}
21792 then :
21793 printf %s "(cached) " >&6
21794 else case e in #(
21795 e) if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
21796 #include <stddef.h>
21797 #include <signal.h>
21798 #if HAVE_WCHAR_H
21799 # include <wchar.h>
21800 #endif
21801
21802 #include <limits.h>"
21803 then :
21804
21805 else case e in #(
21806 e) result=unknown ;;
21807 esac
21808 fi
21809
21810 eval gl_cv_bitsizeof_${gltype}=\$result
21811 ;;
21812 esac
21813 fi
21814 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21816 printf "%s\n" "$ac_res" >&6; }
21817 eval result=\$gl_cv_bitsizeof_${gltype}
21818 if test $result = unknown; then
21819 result=0
21820 fi
21821 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21822 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
21823
21824 eval BITSIZEOF_${GLTYPE}=\$result
21825 done
21826
21827
21828 fi
21829
21830
21831 for gltype in sig_atomic_t wchar_t wint_t ; do
21832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21833 printf %s "checking for bit size of $gltype... " >&6; }
21834 if eval test \${gl_cv_bitsizeof_${gltype}+y}
21835 then :
21836 printf %s "(cached) " >&6
21837 else case e in #(
21838 e) if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
21839 #include <stddef.h>
21840 #include <signal.h>
21841 #if HAVE_WCHAR_H
21842 # include <wchar.h>
21843 #endif
21844
21845 #include <limits.h>"
21846 then :
21847
21848 else case e in #(
21849 e) result=unknown ;;
21850 esac
21851 fi
21852
21853 eval gl_cv_bitsizeof_${gltype}=\$result
21854 ;;
21855 esac
21856 fi
21857 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21859 printf "%s\n" "$ac_res" >&6; }
21860 eval result=\$gl_cv_bitsizeof_${gltype}
21861 if test $result = unknown; then
21862 result=0
21863 fi
21864 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21865 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
21866
21867 eval BITSIZEOF_${GLTYPE}=\$result
21868 done
21869
21870
21871
21872
21873 for gltype in sig_atomic_t wchar_t wint_t ; do
21874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
21875 printf %s "checking whether $gltype is signed... " >&6; }
21876 if eval test \${gl_cv_type_${gltype}_signed+y}
21877 then :
21878 printf %s "(cached) " >&6
21879 else case e in #(
21880 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21881 /* end confdefs.h. */
21882
21883 #include <stddef.h>
21884 #include <signal.h>
21885 #if HAVE_WCHAR_H
21886 # include <wchar.h>
21887 #endif
21888
21889 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
21890 int
21891 main (void)
21892 {
21893
21894 ;
21895 return 0;
21896 }
21897 _ACEOF
21898 if ac_fn_c_try_compile "$LINENO"
21899 then :
21900 result=yes
21901 else case e in #(
21902 e) result=no ;;
21903 esac
21904 fi
21905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21906 eval gl_cv_type_${gltype}_signed=\$result
21907 ;;
21908 esac
21909 fi
21910 eval ac_res=\$gl_cv_type_${gltype}_signed
21911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21912 printf "%s\n" "$ac_res" >&6; }
21913 eval result=\$gl_cv_type_${gltype}_signed
21914 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21915 if test "$result" = yes; then
21916 printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h
21917
21918 eval HAVE_SIGNED_${GLTYPE}=1
21919 else
21920 eval HAVE_SIGNED_${GLTYPE}=0
21921 fi
21922 done
21923
21924
21925 gl_cv_type_ptrdiff_t_signed=yes
21926 gl_cv_type_size_t_signed=no
21927 if test $APPLE_UNIVERSAL_BUILD = 0; then
21928
21929
21930 for gltype in ptrdiff_t size_t ; do
21931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21932 printf %s "checking for $gltype integer literal suffix... " >&6; }
21933 if eval test \${gl_cv_type_${gltype}_suffix+y}
21934 then :
21935 printf %s "(cached) " >&6
21936 else case e in #(
21937 e) eval gl_cv_type_${gltype}_suffix=no
21938 eval result=\$gl_cv_type_${gltype}_signed
21939 if test "$result" = yes; then
21940 glsufu=
21941 else
21942 glsufu=u
21943 fi
21944 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21945 case $glsuf in
21946 '') gltype1='int';;
21947 l) gltype1='long int';;
21948 ll) gltype1='long long int';;
21949 i64) gltype1='__int64';;
21950 u) gltype1='unsigned int';;
21951 ul) gltype1='unsigned long int';;
21952 ull) gltype1='unsigned long long int';;
21953 ui64)gltype1='unsigned __int64';;
21954 esac
21955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21956 /* end confdefs.h. */
21957
21958 #include <stddef.h>
21959 #include <signal.h>
21960 #if HAVE_WCHAR_H
21961 # include <wchar.h>
21962 #endif
21963
21964 extern $gltype foo;
21965 extern $gltype1 foo;
21966 int
21967 main (void)
21968 {
21969
21970 ;
21971 return 0;
21972 }
21973 _ACEOF
21974 if ac_fn_c_try_compile "$LINENO"
21975 then :
21976 eval gl_cv_type_${gltype}_suffix=\$glsuf
21977 fi
21978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21979 eval result=\$gl_cv_type_${gltype}_suffix
21980 test "$result" != no && break
21981 done ;;
21982 esac
21983 fi
21984 eval ac_res=\$gl_cv_type_${gltype}_suffix
21985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21986 printf "%s\n" "$ac_res" >&6; }
21987 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21988 eval result=\$gl_cv_type_${gltype}_suffix
21989 test "$result" = no && result=
21990 eval ${GLTYPE}_SUFFIX=\$result
21991 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
21992
21993 done
21994
21995
21996 fi
21997
21998
21999 for gltype in sig_atomic_t wchar_t wint_t ; do
22000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
22001 printf %s "checking for $gltype integer literal suffix... " >&6; }
22002 if eval test \${gl_cv_type_${gltype}_suffix+y}
22003 then :
22004 printf %s "(cached) " >&6
22005 else case e in #(
22006 e) eval gl_cv_type_${gltype}_suffix=no
22007 eval result=\$gl_cv_type_${gltype}_signed
22008 if test "$result" = yes; then
22009 glsufu=
22010 else
22011 glsufu=u
22012 fi
22013 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
22014 case $glsuf in
22015 '') gltype1='int';;
22016 l) gltype1='long int';;
22017 ll) gltype1='long long int';;
22018 i64) gltype1='__int64';;
22019 u) gltype1='unsigned int';;
22020 ul) gltype1='unsigned long int';;
22021 ull) gltype1='unsigned long long int';;
22022 ui64)gltype1='unsigned __int64';;
22023 esac
22024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22025 /* end confdefs.h. */
22026
22027 #include <stddef.h>
22028 #include <signal.h>
22029 #if HAVE_WCHAR_H
22030 # include <wchar.h>
22031 #endif
22032
22033 extern $gltype foo;
22034 extern $gltype1 foo;
22035 int
22036 main (void)
22037 {
22038
22039 ;
22040 return 0;
22041 }
22042 _ACEOF
22043 if ac_fn_c_try_compile "$LINENO"
22044 then :
22045 eval gl_cv_type_${gltype}_suffix=\$glsuf
22046 fi
22047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22048 eval result=\$gl_cv_type_${gltype}_suffix
22049 test "$result" != no && break
22050 done ;;
22051 esac
22052 fi
22053 eval ac_res=\$gl_cv_type_${gltype}_suffix
22054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22055 printf "%s\n" "$ac_res" >&6; }
22056 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
22057 eval result=\$gl_cv_type_${gltype}_suffix
22058 test "$result" = no && result=
22059 eval ${GLTYPE}_SUFFIX=\$result
22060 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
22061
22062 done
22063
22064
22065
22066 if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then
22067 BITSIZEOF_WINT_T=32
22068 fi
22069
22070 ;;
22071 esac
22072
22073
22074
22075 GL_GENERATE_LIMITS_H=true
22076
22077
22078
22079
22080
22081
22082
22083 HAVE_DECL_IMAXABS=1;
22084 HAVE_DECL_IMAXDIV=1;
22085 HAVE_DECL_STRTOIMAX=1;
22086 HAVE_DECL_STRTOUMAX=1;
22087 HAVE_IMAXDIV_T=1;
22088 HAVE_IMAXABS=1;
22089 HAVE_IMAXDIV=1;
22090 REPLACE_IMAXABS=0;
22091 REPLACE_IMAXDIV=0;
22092 REPLACE_STRTOIMAX=0;
22093 REPLACE_STRTOUMAX=0;
22094 INT32_MAX_LT_INTMAX_MAX=1;
22095 INT64_MAX_EQ_LONG_MAX='defined _LP64';
22096 PRIPTR_PREFIX=__PRIPTR_PREFIX;
22097 UINT32_MAX_LT_UINTMAX_MAX=1;
22098 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114 if test $gl_cv_have_include_next = yes; then
22115 gl_cv_next_inttypes_h='<'inttypes.h'>'
22116 else
22117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
22118 printf %s "checking absolute name of <inttypes.h>... " >&6; }
22119 if test ${gl_cv_next_inttypes_h+y}
22120 then :
22121 printf %s "(cached) " >&6
22122 else case e in #(
22123 e)
22124 if test $ac_cv_header_inttypes_h = yes; then
22125
22126
22127
22128
22129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22130 /* end confdefs.h. */
22131 #include <inttypes.h>
22132 _ACEOF
22133 case "$host_os" in
22134 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22135 *) gl_absname_cpp="$ac_cpp" ;;
22136 esac
22137
22138 case "$host_os" in
22139 mingw* | windows*)
22140 gl_dirsep_regex='[/\\]'
22141 ;;
22142 *)
22143 gl_dirsep_regex='\/'
22144 ;;
22145 esac
22146 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22147 gl_header_literal_regex=`echo 'inttypes.h' \
22148 | sed -e "$gl_make_literal_regex_sed"`
22149 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22150 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22151 s|^/[^/]|//&|
22152 p
22153 q
22154 }'
22155
22156 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22157 sed -n "$gl_absolute_header_sed"`
22158
22159 gl_header=$gl_cv_absolute_inttypes_h
22160 gl_cv_next_inttypes_h='"'$gl_header'"'
22161 else
22162 gl_cv_next_inttypes_h='<'inttypes.h'>'
22163 fi
22164
22165 ;;
22166 esac
22167 fi
22168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
22169 printf "%s\n" "$gl_cv_next_inttypes_h" >&6; }
22170 fi
22171 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
22172
22173 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22174 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22175 gl_next_as_first_directive='<'inttypes.h'>'
22176 else
22177 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22178 gl_next_as_first_directive=$gl_cv_next_inttypes_h
22179 fi
22180 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196 GL_GNULIB_IMAXABS=0
22197
22198
22199
22200 GL_GNULIB_IMAXDIV=0
22201
22202
22203
22204 GL_GNULIB_STRTOIMAX=0
22205
22206
22207
22208 GL_GNULIB_STRTOUMAX=0
22209
22210
22211
22212
22213
22214
22215 gl_threads_api=none
22216 LIBTHREAD=
22217 LTLIBTHREAD=
22218 LIBMULTITHREAD=
22219 LTLIBMULTITHREAD=
22220 if test "$gl_use_threads" != no; then
22221
22222
22223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
22224 printf %s "checking whether imported symbols can be declared weak... " >&6; }
22225 if test ${gl_cv_have_weak+y}
22226 then :
22227 printf %s "(cached) " >&6
22228 else case e in #(
22229 e) case "$host_os" in
22230 cygwin* | mingw* | windows*)
22231 gl_cv_have_weak="guessing no"
22232 ;;
22233 *)
22234 gl_cv_have_weak=no
22235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22236 /* end confdefs.h. */
22237 extern void xyzzy ();
22238 #pragma weak xyzzy
22239 int
22240 main (void)
22241 {
22242 xyzzy();
22243 ;
22244 return 0;
22245 }
22246 _ACEOF
22247 if ac_fn_c_try_link "$LINENO"
22248 then :
22249 gl_cv_have_weak=maybe
22250 fi
22251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22252 conftest$ac_exeext conftest.$ac_ext
22253 if test $gl_cv_have_weak = maybe; then
22254 if test "$cross_compiling" = yes
22255 then :
22256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22257 /* end confdefs.h. */
22258 #ifdef __ELF__
22259 Extensible Linking Format
22260 #endif
22261
22262 _ACEOF
22263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22264 $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1
22265 then :
22266 gl_cv_have_weak="guessing yes"
22267 else case e in #(
22268 e) gl_cv_have_weak="guessing no" ;;
22269 esac
22270 fi
22271 rm -rf conftest*
22272
22273
22274 else case e in #(
22275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22276 /* end confdefs.h. */
22277
22278 #include <stdio.h>
22279 #pragma weak fputs
22280 int main ()
22281 {
22282 return (fputs == NULL);
22283 }
22284 _ACEOF
22285 if ac_fn_c_try_run "$LINENO"
22286 then :
22287 gl_cv_have_weak=yes
22288 else case e in #(
22289 e) gl_cv_have_weak=no ;;
22290 esac
22291 fi
22292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22293 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
22294 esac
22295 fi
22296
22297 fi
22298 ;;
22299 esac
22300 case " $LDFLAGS " in
22301 *" -static "*) gl_cv_have_weak=no ;;
22302 esac
22303 case "$gl_cv_have_weak" in
22304 *yes)
22305 case "$host_os" in
22306 freebsd* | dragonfly* | midnightbsd*)
22307 : > conftest1.c
22308 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
22309 cat <<EOF > conftest2.c
22310 #include <pthread.h>
22311 #pragma weak pthread_mutexattr_gettype
22312 int main ()
22313 {
22314 return (pthread_mutexattr_gettype != NULL);
22315 }
22316 EOF
22317 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
22318 || gl_cv_have_weak=no
22319 rm -f conftest1.c libempty.so conftest2.c conftest
22320 ;;
22321 esac
22322 ;;
22323 esac
22324 ;;
22325 esac
22326 fi
22327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
22328 printf "%s\n" "$gl_cv_have_weak" >&6; }
22329 case "$gl_cv_have_weak" in
22330 *yes)
22331
22332 printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
22333
22334 ;;
22335 esac
22336
22337 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
22338
22339 :
22340 fi
22341 if test "$gl_use_threads" = isoc || test "$gl_use_threads" = isoc+posix; then
22342
22343 gl_have_isoc_threads="$ac_cv_header_threads_h"
22344 fi
22345 if test "$gl_use_threads" = yes \
22346 || test "$gl_use_threads" = posix \
22347 || test "$gl_use_threads" = isoc+posix; then
22348
22349
22350 if test -z "$gl_pthreadlib_body_done"; then
22351 gl_pthread_api=no
22352 LIBPTHREAD=
22353 LIBPMULTITHREAD=
22354 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
22355 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
22356 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
22357 if test "x$ac_cv_header_pthread_h" = xyes
22358 then :
22359 gl_have_pthread_h=yes
22360 else case e in #(
22361 e) gl_have_pthread_h=no ;;
22362 esac
22363 fi
22364
22365 if test "$gl_have_pthread_h" = yes; then
22366 # Other possible tests:
22367 # -lpthreads (FSU threads, PCthreads)
22368 # -lgthreads
22369 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
22370 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
22371 # the second one only in libpthread, and lock.c needs it.
22372 #
22373 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
22374 # needs -pthread for some reason. See:
22375 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
22376 saved_LIBS="$LIBS"
22377 for gl_pthread in '' '-pthread'; do
22378 LIBS="$LIBS $gl_pthread"
22379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22380 /* end confdefs.h. */
22381 #include <pthread.h>
22382 pthread_mutex_t m;
22383 pthread_mutexattr_t ma;
22384
22385 int
22386 main (void)
22387 {
22388 pthread_mutex_lock (&m);
22389 pthread_mutexattr_init (&ma);
22390 ;
22391 return 0;
22392 }
22393 _ACEOF
22394 if ac_fn_c_try_link "$LINENO"
22395 then :
22396 gl_pthread_api=yes
22397 LIBPTHREAD=$gl_pthread
22398 LIBPMULTITHREAD=$gl_pthread
22399 fi
22400 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22401 conftest$ac_exeext conftest.$ac_ext
22402 LIBS="$saved_LIBS"
22403 test $gl_pthread_api = yes && break
22404 done
22405 echo "$as_me:22405: gl_pthread_api=$gl_pthread_api" >&5
22406 echo "$as_me:22406: LIBPTHREAD=$LIBPTHREAD" >&5
22407
22408 gl_pthread_in_glibc=no
22409 # On Linux with glibc >= 2.34, libc contains the fully functional
22410 # pthread functions.
22411 case "$host_os" in
22412 linux*)
22413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22414 /* end confdefs.h. */
22415 #include <features.h>
22416 #ifdef __GNU_LIBRARY__
22417 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2)
22418 Lucky user
22419 #endif
22420 #endif
22421
22422 _ACEOF
22423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22424 $EGREP_TRADITIONAL "Lucky user" >/dev/null 2>&1
22425 then :
22426 gl_pthread_in_glibc=yes
22427 fi
22428 rm -rf conftest*
22429
22430 ;;
22431 esac
22432 echo "$as_me:22432: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5
22433
22434 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
22435 # since it is defined as a macro on OSF/1.)
22436 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
22437 # The program links fine without libpthread. But it may actually
22438 # need to link with libpthread in order to create multiple threads.
22439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
22440 printf %s "checking for pthread_kill in -lpthread... " >&6; }
22441 if test ${ac_cv_lib_pthread_pthread_kill+y}
22442 then :
22443 printf %s "(cached) " >&6
22444 else case e in #(
22445 e) ac_check_lib_save_LIBS=$LIBS
22446 LIBS="-lpthread $LIBS"
22447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22448 /* end confdefs.h. */
22449
22450 /* Override any GCC internal prototype to avoid an error.
22451 Use char because int might match the return type of a GCC
22452 builtin and then its argument prototype would still apply.
22453 The 'extern "C"' is for builds by C++ compilers;
22454 although this is not generally supported in C code supporting it here
22455 has little cost and some practical benefit (sr 110532). */
22456 #ifdef __cplusplus
22457 extern "C"
22458 #endif
22459 char pthread_kill (void);
22460 int
22461 main (void)
22462 {
22463 return pthread_kill ();
22464 ;
22465 return 0;
22466 }
22467 _ACEOF
22468 if ac_fn_c_try_link "$LINENO"
22469 then :
22470 ac_cv_lib_pthread_pthread_kill=yes
22471 else case e in #(
22472 e) ac_cv_lib_pthread_pthread_kill=no ;;
22473 esac
22474 fi
22475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22476 conftest$ac_exeext conftest.$ac_ext
22477 LIBS=$ac_check_lib_save_LIBS ;;
22478 esac
22479 fi
22480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
22481 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
22482 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
22483 then :
22484 if test $gl_pthread_in_glibc = yes; then
22485 LIBPMULTITHREAD=
22486 else
22487 LIBPMULTITHREAD=-lpthread
22488 # On Solaris and HP-UX, most pthread functions exist also in libc.
22489 # Therefore pthread_in_use() needs to actually try to create a
22490 # thread: pthread_create from libc will fail, whereas
22491 # pthread_create will actually create a thread.
22492 # On Solaris 10 or newer, this test is no longer needed, because
22493 # libc contains the fully functional pthread functions.
22494 case "$host_os" in
22495 solaris | solaris2.[1-9] | solaris2.[1-9].* | hpux*)
22496
22497 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
22498
22499 esac
22500 fi
22501
22502 else case e in #(
22503 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lthr" >&5
22504 printf %s "checking for pthread_kill in -lthr... " >&6; }
22505 if test ${ac_cv_lib_thr_pthread_kill+y}
22506 then :
22507 printf %s "(cached) " >&6
22508 else case e in #(
22509 e) ac_check_lib_save_LIBS=$LIBS
22510 LIBS="-lthr $LIBS"
22511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22512 /* end confdefs.h. */
22513
22514 /* Override any GCC internal prototype to avoid an error.
22515 Use char because int might match the return type of a GCC
22516 builtin and then its argument prototype would still apply.
22517 The 'extern "C"' is for builds by C++ compilers;
22518 although this is not generally supported in C code supporting it here
22519 has little cost and some practical benefit (sr 110532). */
22520 #ifdef __cplusplus
22521 extern "C"
22522 #endif
22523 char pthread_kill (void);
22524 int
22525 main (void)
22526 {
22527 return pthread_kill ();
22528 ;
22529 return 0;
22530 }
22531 _ACEOF
22532 if ac_fn_c_try_link "$LINENO"
22533 then :
22534 ac_cv_lib_thr_pthread_kill=yes
22535 else case e in #(
22536 e) ac_cv_lib_thr_pthread_kill=no ;;
22537 esac
22538 fi
22539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22540 conftest$ac_exeext conftest.$ac_ext
22541 LIBS=$ac_check_lib_save_LIBS ;;
22542 esac
22543 fi
22544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thr_pthread_kill" >&5
22545 printf "%s\n" "$ac_cv_lib_thr_pthread_kill" >&6; }
22546 if test "x$ac_cv_lib_thr_pthread_kill" = xyes
22547 then :
22548 if test $gl_pthread_in_glibc = yes; then
22549 LIBPMULTITHREAD=
22550 else
22551 LIBPMULTITHREAD=-lthr
22552 fi
22553
22554 fi
22555
22556 ;;
22557 esac
22558 fi
22559
22560 elif test $gl_pthread_api != yes; then
22561 # Some library is needed. Try libpthread and libc_r.
22562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
22563 printf %s "checking for pthread_kill in -lpthread... " >&6; }
22564 if test ${ac_cv_lib_pthread_pthread_kill+y}
22565 then :
22566 printf %s "(cached) " >&6
22567 else case e in #(
22568 e) ac_check_lib_save_LIBS=$LIBS
22569 LIBS="-lpthread $LIBS"
22570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22571 /* end confdefs.h. */
22572
22573 /* Override any GCC internal prototype to avoid an error.
22574 Use char because int might match the return type of a GCC
22575 builtin and then its argument prototype would still apply.
22576 The 'extern "C"' is for builds by C++ compilers;
22577 although this is not generally supported in C code supporting it here
22578 has little cost and some practical benefit (sr 110532). */
22579 #ifdef __cplusplus
22580 extern "C"
22581 #endif
22582 char pthread_kill (void);
22583 int
22584 main (void)
22585 {
22586 return pthread_kill ();
22587 ;
22588 return 0;
22589 }
22590 _ACEOF
22591 if ac_fn_c_try_link "$LINENO"
22592 then :
22593 ac_cv_lib_pthread_pthread_kill=yes
22594 else case e in #(
22595 e) ac_cv_lib_pthread_pthread_kill=no ;;
22596 esac
22597 fi
22598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22599 conftest$ac_exeext conftest.$ac_ext
22600 LIBS=$ac_check_lib_save_LIBS ;;
22601 esac
22602 fi
22603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
22604 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
22605 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
22606 then :
22607 gl_pthread_api=yes
22608 LIBPTHREAD=-lpthread
22609 LIBPMULTITHREAD=-lpthread
22610 fi
22611
22612 if test $gl_pthread_api != yes; then
22613 # For FreeBSD 4.
22614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
22615 printf %s "checking for pthread_kill in -lc_r... " >&6; }
22616 if test ${ac_cv_lib_c_r_pthread_kill+y}
22617 then :
22618 printf %s "(cached) " >&6
22619 else case e in #(
22620 e) ac_check_lib_save_LIBS=$LIBS
22621 LIBS="-lc_r $LIBS"
22622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22623 /* end confdefs.h. */
22624
22625 /* Override any GCC internal prototype to avoid an error.
22626 Use char because int might match the return type of a GCC
22627 builtin and then its argument prototype would still apply.
22628 The 'extern "C"' is for builds by C++ compilers;
22629 although this is not generally supported in C code supporting it here
22630 has little cost and some practical benefit (sr 110532). */
22631 #ifdef __cplusplus
22632 extern "C"
22633 #endif
22634 char pthread_kill (void);
22635 int
22636 main (void)
22637 {
22638 return pthread_kill ();
22639 ;
22640 return 0;
22641 }
22642 _ACEOF
22643 if ac_fn_c_try_link "$LINENO"
22644 then :
22645 ac_cv_lib_c_r_pthread_kill=yes
22646 else case e in #(
22647 e) ac_cv_lib_c_r_pthread_kill=no ;;
22648 esac
22649 fi
22650 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22651 conftest$ac_exeext conftest.$ac_ext
22652 LIBS=$ac_check_lib_save_LIBS ;;
22653 esac
22654 fi
22655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
22656 printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; }
22657 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
22658 then :
22659 gl_pthread_api=yes
22660 LIBPTHREAD=-lc_r
22661 LIBPMULTITHREAD=-lc_r
22662 fi
22663
22664 fi
22665 fi
22666 echo "$as_me:22666: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5
22667 fi
22668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
22669 printf %s "checking whether POSIX threads API is available... " >&6; }
22670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
22671 printf "%s\n" "$gl_pthread_api" >&6; }
22672
22673
22674 if test $gl_pthread_api = yes; then
22675
22676 printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h
22677
22678 fi
22679
22680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22681 /* end confdefs.h. */
22682 #include <sched.h>
22683 int
22684 main (void)
22685 {
22686 sched_yield ();
22687 ;
22688 return 0;
22689 }
22690 _ACEOF
22691 if ac_fn_c_try_link "$LINENO"
22692 then :
22693 SCHED_YIELD_LIB=
22694
22695 else case e in #(
22696 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22697 printf %s "checking for sched_yield in -lrt... " >&6; }
22698 if test ${ac_cv_lib_rt_sched_yield+y}
22699 then :
22700 printf %s "(cached) " >&6
22701 else case e in #(
22702 e) ac_check_lib_save_LIBS=$LIBS
22703 LIBS="-lrt $LIBS"
22704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22705 /* end confdefs.h. */
22706
22707 /* Override any GCC internal prototype to avoid an error.
22708 Use char because int might match the return type of a GCC
22709 builtin and then its argument prototype would still apply.
22710 The 'extern "C"' is for builds by C++ compilers;
22711 although this is not generally supported in C code supporting it here
22712 has little cost and some practical benefit (sr 110532). */
22713 #ifdef __cplusplus
22714 extern "C"
22715 #endif
22716 char sched_yield (void);
22717 int
22718 main (void)
22719 {
22720 return sched_yield ();
22721 ;
22722 return 0;
22723 }
22724 _ACEOF
22725 if ac_fn_c_try_link "$LINENO"
22726 then :
22727 ac_cv_lib_rt_sched_yield=yes
22728 else case e in #(
22729 e) ac_cv_lib_rt_sched_yield=no ;;
22730 esac
22731 fi
22732 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22733 conftest$ac_exeext conftest.$ac_ext
22734 LIBS=$ac_check_lib_save_LIBS ;;
22735 esac
22736 fi
22737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22738 printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
22739 if test "x$ac_cv_lib_rt_sched_yield" = xyes
22740 then :
22741 SCHED_YIELD_LIB=-lrt
22742 else case e in #(
22743 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22744 printf %s "checking for sched_yield in -lposix4... " >&6; }
22745 if test ${ac_cv_lib_posix4_sched_yield+y}
22746 then :
22747 printf %s "(cached) " >&6
22748 else case e in #(
22749 e) ac_check_lib_save_LIBS=$LIBS
22750 LIBS="-lposix4 $LIBS"
22751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22752 /* end confdefs.h. */
22753
22754 /* Override any GCC internal prototype to avoid an error.
22755 Use char because int might match the return type of a GCC
22756 builtin and then its argument prototype would still apply.
22757 The 'extern "C"' is for builds by C++ compilers;
22758 although this is not generally supported in C code supporting it here
22759 has little cost and some practical benefit (sr 110532). */
22760 #ifdef __cplusplus
22761 extern "C"
22762 #endif
22763 char sched_yield (void);
22764 int
22765 main (void)
22766 {
22767 return sched_yield ();
22768 ;
22769 return 0;
22770 }
22771 _ACEOF
22772 if ac_fn_c_try_link "$LINENO"
22773 then :
22774 ac_cv_lib_posix4_sched_yield=yes
22775 else case e in #(
22776 e) ac_cv_lib_posix4_sched_yield=no ;;
22777 esac
22778 fi
22779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22780 conftest$ac_exeext conftest.$ac_ext
22781 LIBS=$ac_check_lib_save_LIBS ;;
22782 esac
22783 fi
22784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22785 printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; }
22786 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
22787 then :
22788 SCHED_YIELD_LIB=-lposix4
22789 fi
22790 ;;
22791 esac
22792 fi
22793
22794 ;;
22795 esac
22796 fi
22797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22798 conftest$ac_exeext conftest.$ac_ext
22799
22800 LIB_SCHED_YIELD="$SCHED_YIELD_LIB"
22801
22802
22803 gl_pthreadlib_body_done=done
22804 fi
22805
22806 LIBTHREAD=$LIBPTHREAD LTLIBTHREAD=$LIBPTHREAD
22807 LIBMULTITHREAD=$LIBPMULTITHREAD LTLIBMULTITHREAD=$LIBPMULTITHREAD
22808 if test $gl_pthread_api = yes; then
22809 if test "$gl_use_threads" = isoc+posix && test "$gl_have_isoc_threads" = yes; then
22810 gl_threads_api='isoc+posix'
22811
22812 printf "%s\n" "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
22813
22814 LIBTHREAD= LTLIBTHREAD=
22815 else
22816 gl_threads_api=posix
22817
22818 printf "%s\n" "#define USE_POSIX_THREADS 1" >>confdefs.h
22819
22820 if test -z "$LIBMULTITHREAD" && test -z "$LTLIBMULTITHREAD"; then
22821
22822 printf "%s\n" "#define USE_POSIX_THREADS_FROM_LIBC 1" >>confdefs.h
22823
22824 else
22825 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
22826
22827 printf "%s\n" "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
22828
22829 LIBTHREAD= LTLIBTHREAD=
22830 else
22831 case "$host_os" in
22832 freebsd* | dragonfly* | midnightbsd*)
22833 if test "x$LIBTHREAD" != "x$LIBMULTITHREAD"; then
22834
22835 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
22836
22837 fi
22838 ;;
22839 esac
22840 fi
22841 fi
22842 fi
22843 fi
22844 fi
22845 if test $gl_threads_api = none; then
22846 if test "$gl_use_threads" = isoc && test "$gl_have_isoc_threads" = yes; then
22847
22848
22849
22850 if test -z "$gl_stdthreadlib_body_done"; then
22851
22852
22853 case "$host_os" in
22854 mingw* | windows*)
22855 LIBSTDTHREAD=
22856 ;;
22857 *)
22858
22859
22860 if test -z "$gl_pthreadlib_body_done"; then
22861 gl_pthread_api=no
22862 LIBPTHREAD=
22863 LIBPMULTITHREAD=
22864 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
22865 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
22866 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
22867 if test "x$ac_cv_header_pthread_h" = xyes
22868 then :
22869 gl_have_pthread_h=yes
22870 else case e in #(
22871 e) gl_have_pthread_h=no ;;
22872 esac
22873 fi
22874
22875 if test "$gl_have_pthread_h" = yes; then
22876 # Other possible tests:
22877 # -lpthreads (FSU threads, PCthreads)
22878 # -lgthreads
22879 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
22880 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
22881 # the second one only in libpthread, and lock.c needs it.
22882 #
22883 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
22884 # needs -pthread for some reason. See:
22885 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
22886 saved_LIBS="$LIBS"
22887 for gl_pthread in '' '-pthread'; do
22888 LIBS="$LIBS $gl_pthread"
22889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22890 /* end confdefs.h. */
22891 #include <pthread.h>
22892 pthread_mutex_t m;
22893 pthread_mutexattr_t ma;
22894
22895 int
22896 main (void)
22897 {
22898 pthread_mutex_lock (&m);
22899 pthread_mutexattr_init (&ma);
22900 ;
22901 return 0;
22902 }
22903 _ACEOF
22904 if ac_fn_c_try_link "$LINENO"
22905 then :
22906 gl_pthread_api=yes
22907 LIBPTHREAD=$gl_pthread
22908 LIBPMULTITHREAD=$gl_pthread
22909 fi
22910 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22911 conftest$ac_exeext conftest.$ac_ext
22912 LIBS="$saved_LIBS"
22913 test $gl_pthread_api = yes && break
22914 done
22915 echo "$as_me:22915: gl_pthread_api=$gl_pthread_api" >&5
22916 echo "$as_me:22916: LIBPTHREAD=$LIBPTHREAD" >&5
22917
22918 gl_pthread_in_glibc=no
22919 # On Linux with glibc >= 2.34, libc contains the fully functional
22920 # pthread functions.
22921 case "$host_os" in
22922 linux*)
22923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924 /* end confdefs.h. */
22925 #include <features.h>
22926 #ifdef __GNU_LIBRARY__
22927 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2)
22928 Lucky user
22929 #endif
22930 #endif
22931
22932 _ACEOF
22933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22934 $EGREP_TRADITIONAL "Lucky user" >/dev/null 2>&1
22935 then :
22936 gl_pthread_in_glibc=yes
22937 fi
22938 rm -rf conftest*
22939
22940 ;;
22941 esac
22942 echo "$as_me:22942: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5
22943
22944 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
22945 # since it is defined as a macro on OSF/1.)
22946 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
22947 # The program links fine without libpthread. But it may actually
22948 # need to link with libpthread in order to create multiple threads.
22949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
22950 printf %s "checking for pthread_kill in -lpthread... " >&6; }
22951 if test ${ac_cv_lib_pthread_pthread_kill+y}
22952 then :
22953 printf %s "(cached) " >&6
22954 else case e in #(
22955 e) ac_check_lib_save_LIBS=$LIBS
22956 LIBS="-lpthread $LIBS"
22957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22958 /* end confdefs.h. */
22959
22960 /* Override any GCC internal prototype to avoid an error.
22961 Use char because int might match the return type of a GCC
22962 builtin and then its argument prototype would still apply.
22963 The 'extern "C"' is for builds by C++ compilers;
22964 although this is not generally supported in C code supporting it here
22965 has little cost and some practical benefit (sr 110532). */
22966 #ifdef __cplusplus
22967 extern "C"
22968 #endif
22969 char pthread_kill (void);
22970 int
22971 main (void)
22972 {
22973 return pthread_kill ();
22974 ;
22975 return 0;
22976 }
22977 _ACEOF
22978 if ac_fn_c_try_link "$LINENO"
22979 then :
22980 ac_cv_lib_pthread_pthread_kill=yes
22981 else case e in #(
22982 e) ac_cv_lib_pthread_pthread_kill=no ;;
22983 esac
22984 fi
22985 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22986 conftest$ac_exeext conftest.$ac_ext
22987 LIBS=$ac_check_lib_save_LIBS ;;
22988 esac
22989 fi
22990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
22991 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
22992 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
22993 then :
22994 if test $gl_pthread_in_glibc = yes; then
22995 LIBPMULTITHREAD=
22996 else
22997 LIBPMULTITHREAD=-lpthread
22998 # On Solaris and HP-UX, most pthread functions exist also in libc.
22999 # Therefore pthread_in_use() needs to actually try to create a
23000 # thread: pthread_create from libc will fail, whereas
23001 # pthread_create will actually create a thread.
23002 # On Solaris 10 or newer, this test is no longer needed, because
23003 # libc contains the fully functional pthread functions.
23004 case "$host_os" in
23005 solaris | solaris2.[1-9] | solaris2.[1-9].* | hpux*)
23006
23007 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
23008
23009 esac
23010 fi
23011
23012 else case e in #(
23013 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lthr" >&5
23014 printf %s "checking for pthread_kill in -lthr... " >&6; }
23015 if test ${ac_cv_lib_thr_pthread_kill+y}
23016 then :
23017 printf %s "(cached) " >&6
23018 else case e in #(
23019 e) ac_check_lib_save_LIBS=$LIBS
23020 LIBS="-lthr $LIBS"
23021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23022 /* end confdefs.h. */
23023
23024 /* Override any GCC internal prototype to avoid an error.
23025 Use char because int might match the return type of a GCC
23026 builtin and then its argument prototype would still apply.
23027 The 'extern "C"' is for builds by C++ compilers;
23028 although this is not generally supported in C code supporting it here
23029 has little cost and some practical benefit (sr 110532). */
23030 #ifdef __cplusplus
23031 extern "C"
23032 #endif
23033 char pthread_kill (void);
23034 int
23035 main (void)
23036 {
23037 return pthread_kill ();
23038 ;
23039 return 0;
23040 }
23041 _ACEOF
23042 if ac_fn_c_try_link "$LINENO"
23043 then :
23044 ac_cv_lib_thr_pthread_kill=yes
23045 else case e in #(
23046 e) ac_cv_lib_thr_pthread_kill=no ;;
23047 esac
23048 fi
23049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23050 conftest$ac_exeext conftest.$ac_ext
23051 LIBS=$ac_check_lib_save_LIBS ;;
23052 esac
23053 fi
23054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thr_pthread_kill" >&5
23055 printf "%s\n" "$ac_cv_lib_thr_pthread_kill" >&6; }
23056 if test "x$ac_cv_lib_thr_pthread_kill" = xyes
23057 then :
23058 if test $gl_pthread_in_glibc = yes; then
23059 LIBPMULTITHREAD=
23060 else
23061 LIBPMULTITHREAD=-lthr
23062 fi
23063
23064 fi
23065
23066 ;;
23067 esac
23068 fi
23069
23070 elif test $gl_pthread_api != yes; then
23071 # Some library is needed. Try libpthread and libc_r.
23072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
23073 printf %s "checking for pthread_kill in -lpthread... " >&6; }
23074 if test ${ac_cv_lib_pthread_pthread_kill+y}
23075 then :
23076 printf %s "(cached) " >&6
23077 else case e in #(
23078 e) ac_check_lib_save_LIBS=$LIBS
23079 LIBS="-lpthread $LIBS"
23080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23081 /* end confdefs.h. */
23082
23083 /* Override any GCC internal prototype to avoid an error.
23084 Use char because int might match the return type of a GCC
23085 builtin and then its argument prototype would still apply.
23086 The 'extern "C"' is for builds by C++ compilers;
23087 although this is not generally supported in C code supporting it here
23088 has little cost and some practical benefit (sr 110532). */
23089 #ifdef __cplusplus
23090 extern "C"
23091 #endif
23092 char pthread_kill (void);
23093 int
23094 main (void)
23095 {
23096 return pthread_kill ();
23097 ;
23098 return 0;
23099 }
23100 _ACEOF
23101 if ac_fn_c_try_link "$LINENO"
23102 then :
23103 ac_cv_lib_pthread_pthread_kill=yes
23104 else case e in #(
23105 e) ac_cv_lib_pthread_pthread_kill=no ;;
23106 esac
23107 fi
23108 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23109 conftest$ac_exeext conftest.$ac_ext
23110 LIBS=$ac_check_lib_save_LIBS ;;
23111 esac
23112 fi
23113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
23114 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
23115 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
23116 then :
23117 gl_pthread_api=yes
23118 LIBPTHREAD=-lpthread
23119 LIBPMULTITHREAD=-lpthread
23120 fi
23121
23122 if test $gl_pthread_api != yes; then
23123 # For FreeBSD 4.
23124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
23125 printf %s "checking for pthread_kill in -lc_r... " >&6; }
23126 if test ${ac_cv_lib_c_r_pthread_kill+y}
23127 then :
23128 printf %s "(cached) " >&6
23129 else case e in #(
23130 e) ac_check_lib_save_LIBS=$LIBS
23131 LIBS="-lc_r $LIBS"
23132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23133 /* end confdefs.h. */
23134
23135 /* Override any GCC internal prototype to avoid an error.
23136 Use char because int might match the return type of a GCC
23137 builtin and then its argument prototype would still apply.
23138 The 'extern "C"' is for builds by C++ compilers;
23139 although this is not generally supported in C code supporting it here
23140 has little cost and some practical benefit (sr 110532). */
23141 #ifdef __cplusplus
23142 extern "C"
23143 #endif
23144 char pthread_kill (void);
23145 int
23146 main (void)
23147 {
23148 return pthread_kill ();
23149 ;
23150 return 0;
23151 }
23152 _ACEOF
23153 if ac_fn_c_try_link "$LINENO"
23154 then :
23155 ac_cv_lib_c_r_pthread_kill=yes
23156 else case e in #(
23157 e) ac_cv_lib_c_r_pthread_kill=no ;;
23158 esac
23159 fi
23160 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23161 conftest$ac_exeext conftest.$ac_ext
23162 LIBS=$ac_check_lib_save_LIBS ;;
23163 esac
23164 fi
23165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
23166 printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; }
23167 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
23168 then :
23169 gl_pthread_api=yes
23170 LIBPTHREAD=-lc_r
23171 LIBPMULTITHREAD=-lc_r
23172 fi
23173
23174 fi
23175 fi
23176 echo "$as_me:23176: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5
23177 fi
23178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
23179 printf %s "checking whether POSIX threads API is available... " >&6; }
23180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
23181 printf "%s\n" "$gl_pthread_api" >&6; }
23182
23183
23184 if test $gl_pthread_api = yes; then
23185
23186 printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h
23187
23188 fi
23189
23190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23191 /* end confdefs.h. */
23192 #include <sched.h>
23193 int
23194 main (void)
23195 {
23196 sched_yield ();
23197 ;
23198 return 0;
23199 }
23200 _ACEOF
23201 if ac_fn_c_try_link "$LINENO"
23202 then :
23203 SCHED_YIELD_LIB=
23204
23205 else case e in #(
23206 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
23207 printf %s "checking for sched_yield in -lrt... " >&6; }
23208 if test ${ac_cv_lib_rt_sched_yield+y}
23209 then :
23210 printf %s "(cached) " >&6
23211 else case e in #(
23212 e) ac_check_lib_save_LIBS=$LIBS
23213 LIBS="-lrt $LIBS"
23214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23215 /* end confdefs.h. */
23216
23217 /* Override any GCC internal prototype to avoid an error.
23218 Use char because int might match the return type of a GCC
23219 builtin and then its argument prototype would still apply.
23220 The 'extern "C"' is for builds by C++ compilers;
23221 although this is not generally supported in C code supporting it here
23222 has little cost and some practical benefit (sr 110532). */
23223 #ifdef __cplusplus
23224 extern "C"
23225 #endif
23226 char sched_yield (void);
23227 int
23228 main (void)
23229 {
23230 return sched_yield ();
23231 ;
23232 return 0;
23233 }
23234 _ACEOF
23235 if ac_fn_c_try_link "$LINENO"
23236 then :
23237 ac_cv_lib_rt_sched_yield=yes
23238 else case e in #(
23239 e) ac_cv_lib_rt_sched_yield=no ;;
23240 esac
23241 fi
23242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23243 conftest$ac_exeext conftest.$ac_ext
23244 LIBS=$ac_check_lib_save_LIBS ;;
23245 esac
23246 fi
23247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
23248 printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
23249 if test "x$ac_cv_lib_rt_sched_yield" = xyes
23250 then :
23251 SCHED_YIELD_LIB=-lrt
23252 else case e in #(
23253 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
23254 printf %s "checking for sched_yield in -lposix4... " >&6; }
23255 if test ${ac_cv_lib_posix4_sched_yield+y}
23256 then :
23257 printf %s "(cached) " >&6
23258 else case e in #(
23259 e) ac_check_lib_save_LIBS=$LIBS
23260 LIBS="-lposix4 $LIBS"
23261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23262 /* end confdefs.h. */
23263
23264 /* Override any GCC internal prototype to avoid an error.
23265 Use char because int might match the return type of a GCC
23266 builtin and then its argument prototype would still apply.
23267 The 'extern "C"' is for builds by C++ compilers;
23268 although this is not generally supported in C code supporting it here
23269 has little cost and some practical benefit (sr 110532). */
23270 #ifdef __cplusplus
23271 extern "C"
23272 #endif
23273 char sched_yield (void);
23274 int
23275 main (void)
23276 {
23277 return sched_yield ();
23278 ;
23279 return 0;
23280 }
23281 _ACEOF
23282 if ac_fn_c_try_link "$LINENO"
23283 then :
23284 ac_cv_lib_posix4_sched_yield=yes
23285 else case e in #(
23286 e) ac_cv_lib_posix4_sched_yield=no ;;
23287 esac
23288 fi
23289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23290 conftest$ac_exeext conftest.$ac_ext
23291 LIBS=$ac_check_lib_save_LIBS ;;
23292 esac
23293 fi
23294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
23295 printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; }
23296 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
23297 then :
23298 SCHED_YIELD_LIB=-lposix4
23299 fi
23300 ;;
23301 esac
23302 fi
23303
23304 ;;
23305 esac
23306 fi
23307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23308 conftest$ac_exeext conftest.$ac_ext
23309
23310 LIB_SCHED_YIELD="$SCHED_YIELD_LIB"
23311
23312
23313 gl_pthreadlib_body_done=done
23314 fi
23315
23316 if test $ac_cv_header_threads_h = yes; then
23317
23318
23319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thrd_create" >&5
23320 printf %s "checking for thrd_create... " >&6; }
23321 if test ${gl_cv_onwards_func_thrd_create+y}
23322 then :
23323 printf %s "(cached) " >&6
23324 else case e in #(
23325 e)
23326 exec 9>&6 6>/dev/null
23327
23328 case "$host_os" in
23329
23330 linux*-android*)
23331 ac_fn_check_decl "$LINENO" "thrd_create" "ac_cv_have_decl_thrd_create" "#include <threads.h>
23332 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23333 if test "x$ac_cv_have_decl_thrd_create" = xyes
23334 then :
23335
23336 fi
23337 if test $ac_cv_have_decl_thrd_create = yes; then
23338 ac_fn_c_check_func "$LINENO" "thrd_create" "ac_cv_func_thrd_create"
23339 if test "x$ac_cv_func_thrd_create" = xyes
23340 then :
23341
23342 fi
23343
23344 if test $ac_cv_func_thrd_create = yes; then
23345 gl_cv_onwards_func_thrd_create=yes
23346 else
23347 gl_cv_onwards_func_thrd_create='future OS version'
23348 fi
23349 else
23350 gl_cv_onwards_func_thrd_create='future OS version'
23351 fi
23352 ;;
23353
23354
23355 *)
23356 ac_fn_c_check_func "$LINENO" "thrd_create" "ac_cv_func_thrd_create"
23357 if test "x$ac_cv_func_thrd_create" = xyes
23358 then :
23359
23360 fi
23361
23362 gl_cv_onwards_func_thrd_create=$ac_cv_func_thrd_create
23363 ;;
23364
23365 esac
23366
23367 exec 6>&9 9>&-
23368
23369 ;;
23370 esac
23371 fi
23372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_thrd_create" >&5
23373 printf "%s\n" "$gl_cv_onwards_func_thrd_create" >&6; }
23374
23375 case "$gl_cv_onwards_func_thrd_create" in
23376 future*) ac_cv_func_thrd_create=no ;;
23377 *) ac_cv_func_thrd_create=$gl_cv_onwards_func_thrd_create ;;
23378 esac
23379 if test $ac_cv_func_thrd_create = yes; then
23380
23381 printf "%s\n" "#define HAVE_THRD_CREATE 1" >>confdefs.h
23382
23383 fi
23384
23385
23386 if test $ac_cv_func_thrd_create = yes; then
23387 LIBSTDTHREAD=
23388 else
23389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5
23390 printf %s "checking for thrd_create in -lstdthreads... " >&6; }
23391 if test ${ac_cv_lib_stdthreads_thrd_create+y}
23392 then :
23393 printf %s "(cached) " >&6
23394 else case e in #(
23395 e) ac_check_lib_save_LIBS=$LIBS
23396 LIBS="-lstdthreads $LIBS"
23397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23398 /* end confdefs.h. */
23399
23400 /* Override any GCC internal prototype to avoid an error.
23401 Use char because int might match the return type of a GCC
23402 builtin and then its argument prototype would still apply.
23403 The 'extern "C"' is for builds by C++ compilers;
23404 although this is not generally supported in C code supporting it here
23405 has little cost and some practical benefit (sr 110532). */
23406 #ifdef __cplusplus
23407 extern "C"
23408 #endif
23409 char thrd_create (void);
23410 int
23411 main (void)
23412 {
23413 return thrd_create ();
23414 ;
23415 return 0;
23416 }
23417 _ACEOF
23418 if ac_fn_c_try_link "$LINENO"
23419 then :
23420 ac_cv_lib_stdthreads_thrd_create=yes
23421 else case e in #(
23422 e) ac_cv_lib_stdthreads_thrd_create=no ;;
23423 esac
23424 fi
23425 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23426 conftest$ac_exeext conftest.$ac_ext
23427 LIBS=$ac_check_lib_save_LIBS ;;
23428 esac
23429 fi
23430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5
23431 printf "%s\n" "$ac_cv_lib_stdthreads_thrd_create" >&6; }
23432 if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes
23433 then :
23434
23435 LIBSTDTHREAD='-lstdthreads -lpthread'
23436
23437 else case e in #(
23438 e)
23439 LIBSTDTHREAD="$LIBPMULTITHREAD"
23440 ;;
23441 esac
23442 fi
23443
23444 fi
23445 else
23446 LIBSTDTHREAD="$LIBPMULTITHREAD $SCHED_YIELD_LIB"
23447 fi
23448 ;;
23449 esac
23450
23451
23452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5
23453 printf %s "checking whether ISO C threads API is available... " >&6; }
23454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5
23455 printf "%s\n" "$ac_cv_header_threads_h" >&6; }
23456 gl_stdthreadlib_body_done=done
23457 fi
23458
23459 LIBTHREAD=$LIBSTDTHREAD LTLIBTHREAD=$LIBSTDTHREAD
23460 LIBMULTITHREAD=$LIBSTDTHREAD LTLIBMULTITHREAD=$LIBSTDTHREAD
23461 gl_threads_api=isoc
23462
23463 printf "%s\n" "#define USE_ISOC_THREADS 1" >>confdefs.h
23464
23465 fi
23466 fi
23467 if test $gl_threads_api = none; then
23468 case "$gl_use_threads" in
23469 yes | windows | win32) # The 'win32' is for backward compatibility.
23470 if { case "$host_os" in
23471 mingw* | windows*) true;;
23472 *) false;;
23473 esac
23474 }; then
23475 gl_threads_api=windows
23476
23477 printf "%s\n" "#define USE_WINDOWS_THREADS 1" >>confdefs.h
23478
23479 fi
23480 ;;
23481 esac
23482 fi
23483 else
23484
23485 printf "%s\n" "#define AVOID_ANY_THREADS 1" >>confdefs.h
23486
23487 fi
23488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
23489 printf %s "checking for multithread API to use... " >&6; }
23490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
23491 printf "%s\n" "$gl_threads_api" >&6; }
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502
23503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
23504 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
23505 if test ${gl_cv_func_lstat_dereferences_slashed_symlink+y}
23506 then :
23507 printf %s "(cached) " >&6
23508 else case e in #(
23509 e) rm -f conftest.sym conftest.file
23510 echo >conftest.file
23511 if test "$cross_compiling" = yes
23512 then :
23513 case "$host_os" in
23514 linux-* | linux)
23515 # Guess yes on Linux systems.
23516 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
23517 midipix*)
23518 # Guess yes on systems that emulate the Linux system calls.
23519 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
23520 *-gnu* | gnu*)
23521 # Guess yes on glibc systems.
23522 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
23523 mingw* | windows*)
23524 # Guess no on native Windows.
23525 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
23526 *)
23527 # If we don't know, obey --enable-cross-guesses.
23528 gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;;
23529 esac
23530
23531 else case e in #(
23532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23533 /* end confdefs.h. */
23534 $ac_includes_default
23535 int
23536 main (void)
23537 {
23538 struct stat sbuf;
23539 if (symlink ("conftest.file", "conftest.sym") != 0)
23540 return 1;
23541 /* Linux will dereference the symlink and fail, as required by
23542 POSIX. That is better in the sense that it means we will not
23543 have to compile and use the lstat wrapper. */
23544 return lstat ("conftest.sym/", &sbuf) == 0;
23545
23546 ;
23547 return 0;
23548 }
23549 _ACEOF
23550 if ac_fn_c_try_run "$LINENO"
23551 then :
23552 gl_cv_func_lstat_dereferences_slashed_symlink=yes
23553 else case e in #(
23554 e) gl_cv_func_lstat_dereferences_slashed_symlink=no ;;
23555 esac
23556 fi
23557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23558 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23559 esac
23560 fi
23561
23562 rm -f conftest.sym conftest.file
23563 ;;
23564 esac
23565 fi
23566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
23567 printf "%s\n" "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
23568 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
23569 *yes)
23570
23571 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
23572
23573 ;;
23574 esac
23575
23576
23577
23578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5
23579 printf %s "checking whether malloc (0) returns nonnull... " >&6; }
23580 if test ${ac_cv_func_malloc_0_nonnull+y}
23581 then :
23582 printf %s "(cached) " >&6
23583 else case e in #(
23584 e) if test "$cross_compiling" = yes
23585 then :
23586 case "$host_os" in
23587 # Guess yes on platforms where we know the result.
23588 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
23589 | gnu* | *-musl* | midipix* | midnightbsd* \
23590 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
23591 ac_cv_func_malloc_0_nonnull="guessing yes" ;;
23592 # If we don't know, obey --enable-cross-guesses.
23593 *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
23594 esac
23595
23596 else case e in #(
23597 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23598 /* end confdefs.h. */
23599 #include <stdlib.h>
23600
23601 int
23602 main (void)
23603 {
23604 void *p = malloc (0);
23605 void * volatile vp = p;
23606 int result = !vp;
23607 free (p);
23608 return result;
23609 ;
23610 return 0;
23611 }
23612
23613 _ACEOF
23614 if ac_fn_c_try_run "$LINENO"
23615 then :
23616 ac_cv_func_malloc_0_nonnull=yes
23617 else case e in #(
23618 e) ac_cv_func_malloc_0_nonnull=no ;;
23619 esac
23620 fi
23621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23622 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23623 esac
23624 fi
23625
23626 ;;
23627 esac
23628 fi
23629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
23630 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
23631 case $ac_cv_func_malloc_0_nonnull in #(
23632 *yes) :
23633 gl_cv_func_malloc_0_nonnull=1 ;; #(
23634 *) :
23635 gl_cv_func_malloc_0_nonnull=0 ;;
23636 esac
23637
23638
23639 printf "%s\n" "#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull" >>confdefs.h
23640
23641
23642
23643
23644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23645 printf %s "checking for mbstate_t... " >&6; }
23646 if test ${ac_cv_type_mbstate_t+y}
23647 then :
23648 printf %s "(cached) " >&6
23649 else case e in #(
23650 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23651 /* end confdefs.h. */
23652 $ac_includes_default
23653 #include <wchar.h>
23654 int
23655 main (void)
23656 {
23657 mbstate_t x; return sizeof x;
23658 ;
23659 return 0;
23660 }
23661 _ACEOF
23662 if ac_fn_c_try_compile "$LINENO"
23663 then :
23664 ac_cv_type_mbstate_t=yes
23665 else case e in #(
23666 e) ac_cv_type_mbstate_t=no ;;
23667 esac
23668 fi
23669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23670 esac
23671 fi
23672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23673 printf "%s\n" "$ac_cv_type_mbstate_t" >&6; }
23674 if test $ac_cv_type_mbstate_t = yes; then
23675
23676 printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h
23677
23678 else
23679
23680 printf "%s\n" "#define mbstate_t int" >>confdefs.h
23681
23682 fi
23683
23684
23685 HAVE_BTOWC=1;
23686 HAVE_MBSINIT=1;
23687 HAVE_MBRTOWC=1;
23688 HAVE_MBRLEN=1;
23689 HAVE_MBSRTOWCS=1;
23690 HAVE_MBSNRTOWCS=1;
23691 HAVE_WCRTOMB=1;
23692 HAVE_WCSRTOMBS=1;
23693 HAVE_WCSNRTOMBS=1;
23694 HAVE_WMEMCHR=1;
23695 HAVE_WMEMCMP=1;
23696 HAVE_WMEMCPY=1;
23697 HAVE_WMEMMOVE=1;
23698 HAVE_WMEMPCPY=1;
23699 HAVE_WMEMSET=1;
23700 HAVE_WCSLEN=1;
23701 HAVE_WCSNLEN=1;
23702 HAVE_WCSCPY=1;
23703 HAVE_WCPCPY=1;
23704 HAVE_WCSNCPY=1;
23705 HAVE_WCPNCPY=1;
23706 HAVE_WCSCAT=1;
23707 HAVE_WCSNCAT=1;
23708 HAVE_WCSCMP=1;
23709 HAVE_WCSNCMP=1;
23710 HAVE_WCSCASECMP=1;
23711 HAVE_WCSNCASECMP=1;
23712 HAVE_WCSCOLL=1;
23713 HAVE_WCSXFRM=1;
23714 HAVE_WCSDUP=1;
23715 HAVE_WCSCHR=1;
23716 HAVE_WCSRCHR=1;
23717 HAVE_WCSCSPN=1;
23718 HAVE_WCSSPN=1;
23719 HAVE_WCSPBRK=1;
23720 HAVE_WCSSTR=1;
23721 HAVE_WCSTOK=1;
23722 HAVE_WCSWIDTH=1;
23723 HAVE_WCSFTIME=1;
23724 HAVE_DECL_WCTOB=1;
23725 HAVE_DECL_WCSDUP=1;
23726 HAVE_DECL_WCWIDTH=1;
23727 REPLACE_MBSTATE_T=0;
23728 REPLACE_BTOWC=0;
23729 REPLACE_WCTOB=0;
23730 REPLACE_MBSINIT=0;
23731 REPLACE_MBRTOWC=0;
23732 REPLACE_MBRLEN=0;
23733 REPLACE_MBSRTOWCS=0;
23734 REPLACE_MBSNRTOWCS=0;
23735 REPLACE_WCRTOMB=0;
23736 REPLACE_WCSRTOMBS=0;
23737 REPLACE_WCSNRTOMBS=0;
23738 REPLACE_WCWIDTH=0;
23739 REPLACE_WCSWIDTH=0;
23740 REPLACE_WCSFTIME=0;
23741 REPLACE_WCSCMP=0;
23742 REPLACE_WCSNCMP=0;
23743 REPLACE_WCSSTR=0;
23744 REPLACE_WCSTOK=0;
23745 REPLACE_WMEMCMP=0;
23746 REPLACE_WMEMPCPY=0;
23747
23748
23749
23750
23751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23752 printf %s "checking for nl_langinfo and CODESET... " >&6; }
23753 if test ${am_cv_langinfo_codeset+y}
23754 then :
23755 printf %s "(cached) " >&6
23756 else case e in #(
23757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23758 /* end confdefs.h. */
23759 #include <langinfo.h>
23760 int
23761 main (void)
23762 {
23763 char* cs = nl_langinfo(CODESET); return !cs;
23764 ;
23765 return 0;
23766 }
23767 _ACEOF
23768 if ac_fn_c_try_link "$LINENO"
23769 then :
23770 am_cv_langinfo_codeset=yes
23771 else case e in #(
23772 e) am_cv_langinfo_codeset=no ;;
23773 esac
23774 fi
23775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23776 conftest$ac_exeext conftest.$ac_ext
23777 ;;
23778 esac
23779 fi
23780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
23781 printf "%s\n" "$am_cv_langinfo_codeset" >&6; }
23782 if test $am_cv_langinfo_codeset = yes; then
23783
23784 printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23785
23786 fi
23787
23788
23789
23790
23791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
23792 printf %s "checking for a traditional japanese locale... " >&6; }
23793 if test ${gt_cv_locale_ja+y}
23794 then :
23795 printf %s "(cached) " >&6
23796 else case e in #(
23797 e)
23798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23799 /* end confdefs.h. */
23800
23801 #include <locale.h>
23802 #include <time.h>
23803 #if HAVE_LANGINFO_CODESET
23804 # include <langinfo.h>
23805 #endif
23806 #include <stdlib.h>
23807 #include <string.h>
23808 struct tm t;
23809 char buf[16];
23810 int main ()
23811 {
23812 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
23813 imitates locale dependent behaviour by looking at the environment
23814 variables, and all locales use the UTF-8 encoding. */
23815 #if defined __BEOS__ || defined __HAIKU__
23816 return 1;
23817 #else
23818 /* Check whether the given locale name is recognized by the system. */
23819 # if defined _WIN32 && !defined __CYGWIN__
23820 /* On native Windows, setlocale(category, "") looks at the system settings,
23821 not at the environment variables. Also, when an encoding suffix such
23822 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
23823 category of the locale to "C". */
23824 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
23825 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
23826 return 1;
23827 # else
23828 if (setlocale (LC_ALL, "") == NULL) return 1;
23829 # endif
23830 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
23831 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
23832 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
23833 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
23834 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
23835 some unit tests fail.
23836 On MirBSD 10, when an unsupported locale is specified, setlocale()
23837 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
23838 # if HAVE_LANGINFO_CODESET
23839 {
23840 const char *cs = nl_langinfo (CODESET);
23841 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
23842 || strcmp (cs, "UTF-8") == 0)
23843 return 1;
23844 }
23845 # endif
23846 # ifdef __CYGWIN__
23847 /* On Cygwin, avoid locale names without encoding suffix, because the
23848 locale_charset() function relies on the encoding suffix. Note that
23849 LC_ALL is set on the command line. */
23850 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
23851 # endif
23852 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
23853 on Cygwin 1.5.x. */
23854 if (MB_CUR_MAX == 1)
23855 return 1;
23856 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
23857 This excludes the UTF-8 encoding (except on MirBSD). */
23858 {
23859 const char *p;
23860 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
23861 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
23862 for (p = buf; *p != '\0'; p++)
23863 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
23864 return 1;
23865 }
23866 return 0;
23867 #endif
23868 }
23869
23870 _ACEOF
23871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
23872 (eval $ac_link) 2>&5
23873 ac_status=$?
23874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23875 test $ac_status = 0; } && test -s conftest$ac_exeext; then
23876 case "$host_os" in
23877 # Handle native Windows specially, because there setlocale() interprets
23878 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
23879 # "fr" or "fra" as "French" or "French_France.1252",
23880 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
23881 # "ja" as "Japanese" or "Japanese_Japan.932",
23882 # and similar.
23883 mingw* | windows*)
23884 # Note that on native Windows, the Japanese locale is
23885 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
23886 # cannot use it here.
23887 gt_cv_locale_ja=none
23888 ;;
23889 *)
23890 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
23891 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
23892 # configure script would override the LC_ALL setting. Likewise for
23893 # LC_CTYPE, which is also set at the beginning of the configure script.
23894 # Test for the AIX locale name.
23895 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23896 gt_cv_locale_ja=ja_JP
23897 else
23898 # Test for the locale name with explicit encoding suffix.
23899 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23900 gt_cv_locale_ja=ja_JP.EUC-JP
23901 else
23902 # Test for the HP-UX, OSF/1, NetBSD locale name.
23903 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23904 gt_cv_locale_ja=ja_JP.eucJP
23905 else
23906 # Test for the IRIX, FreeBSD locale name.
23907 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23908 gt_cv_locale_ja=ja_JP.EUC
23909 else
23910 # Test for the Solaris 10 locale name.
23911 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23912 gt_cv_locale_ja=ja
23913 else
23914 # Special test for NetBSD 1.6.
23915 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
23916 gt_cv_locale_ja=ja_JP.eucJP
23917 else
23918 # None found.
23919 gt_cv_locale_ja=none
23920 fi
23921 fi
23922 fi
23923 fi
23924 fi
23925 fi
23926 ;;
23927 esac
23928 fi
23929 rm -fr conftest*
23930 ;;
23931 esac
23932 fi
23933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
23934 printf "%s\n" "$gt_cv_locale_ja" >&6; }
23935 LOCALE_JA=$gt_cv_locale_ja
23936 case $LOCALE_JA in #(
23937 '' | *[[:space:]\"\$\'*[]*)
23938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid locale \"$LOCALE_JA\"; assuming \"none\"" >&5
23939 printf "%s\n" "$as_me: WARNING: invalid locale \"$LOCALE_JA\"; assuming \"none\"" >&2;}
23940 LOCALE_JA=none;;
23941 esac
23942
23943
23944
23945
23946
23947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
23948 printf %s "checking for a french Unicode locale... " >&6; }
23949 if test ${gt_cv_locale_fr_utf8+y}
23950 then :
23951 printf %s "(cached) " >&6
23952 else case e in #(
23953 e)
23954 case "$host_os" in
23955 *-musl* | midipix*)
23956 gt_cv_locale_fr_utf8=fr_FR.UTF-8
23957 ;;
23958 *)
23959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960 /* end confdefs.h. */
23961
23962 #include <locale.h>
23963 #include <time.h>
23964 #if HAVE_LANGINFO_CODESET
23965 # include <langinfo.h>
23966 #endif
23967 #include <stdlib.h>
23968 #include <string.h>
23969 struct tm t;
23970 char buf[16];
23971 int main () {
23972 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
23973 imitates locale dependent behaviour by looking at the environment
23974 variables, and all locales use the UTF-8 encoding. */
23975 #if !(defined __BEOS__ || defined __HAIKU__)
23976 /* Check whether the given locale name is recognized by the system. */
23977 # if defined _WIN32 && !defined __CYGWIN__
23978 /* On native Windows, setlocale(category, "") looks at the system settings,
23979 not at the environment variables. Also, when an encoding suffix such
23980 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
23981 category of the locale to "C". */
23982 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
23983 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
23984 return 1;
23985 # else
23986 if (setlocale (LC_ALL, "") == NULL) return 1;
23987 # endif
23988 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
23989 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
23990 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
23991 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
23992 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
23993 some unit tests fail. */
23994 # if HAVE_LANGINFO_CODESET
23995 {
23996 const char *cs = nl_langinfo (CODESET);
23997 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
23998 return 1;
23999 }
24000 # endif
24001 # ifdef __CYGWIN__
24002 /* On Cygwin, avoid locale names without encoding suffix, because the
24003 locale_charset() function relies on the encoding suffix. Note that
24004 LC_ALL is set on the command line. */
24005 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
24006 # endif
24007 /* Check whether in the abbreviation of the second month, the second
24008 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
24009 two bytes long, with UTF-8 encoding. */
24010 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
24011 if (strftime (buf, sizeof (buf), "%b", &t) < 4
24012 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
24013 return 1;
24014 #endif
24015 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
24016 /* Check whether the decimal separator is a comma.
24017 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
24018 are nl_langinfo(RADIXCHAR) are both ".". */
24019 if (localeconv () ->decimal_point[0] != ',') return 1;
24020 #endif
24021 return 0;
24022 }
24023
24024 _ACEOF
24025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
24026 (eval $ac_link) 2>&5
24027 ac_status=$?
24028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24029 test $ac_status = 0; } && test -s conftest$ac_exeext; then
24030 case "$host_os" in
24031 # Handle native Windows specially, because there setlocale() interprets
24032 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
24033 # "fr" or "fra" as "French" or "French_France.1252",
24034 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
24035 # "ja" as "Japanese" or "Japanese_Japan.932",
24036 # and similar.
24037 mingw* | windows*)
24038 # Test for the hypothetical native Windows locale name.
24039 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24040 gt_cv_locale_fr_utf8=French_France.65001
24041 else
24042 # None found.
24043 gt_cv_locale_fr_utf8=none
24044 fi
24045 ;;
24046 *)
24047 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
24048 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
24049 # configure script would override the LC_ALL setting. Likewise for
24050 # LC_CTYPE, which is also set at the beginning of the configure script.
24051 # Test for the usual locale name.
24052 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24053 gt_cv_locale_fr_utf8=fr_FR
24054 else
24055 # Test for the locale name with explicit encoding suffix.
24056 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24057 gt_cv_locale_fr_utf8=fr_FR.UTF-8
24058 else
24059 # Test for the Solaris 10 locale name.
24060 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24061 gt_cv_locale_fr_utf8=fr.UTF-8
24062 else
24063 # None found.
24064 gt_cv_locale_fr_utf8=none
24065 fi
24066 fi
24067 fi
24068 ;;
24069 esac
24070 fi
24071 rm -fr conftest*
24072 ;;
24073 esac
24074 ;;
24075 esac
24076 fi
24077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
24078 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
24079 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
24080 case $LOCALE_FR_UTF8 in #(
24081 '' | *[[:space:]\"\$\'*[]*)
24082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid locale \"$LOCALE_FR_UTF8\"; assuming \"none\"" >&5
24083 printf "%s\n" "$as_me: WARNING: invalid locale \"$LOCALE_FR_UTF8\"; assuming \"none\"" >&2;}
24084 LOCALE_FR_UTF8=none;;
24085 esac
24086
24087
24088 case "$host_os" in
24089 *-musl* | midipix*)
24090 LC_COLLATE_IMPLEMENTED=false
24091 LC_NUMERIC_IMPLEMENTED=false
24092 LC_TIME_IMPLEMENTED=false
24093 LC_MONETARY_IMPLEMENTED=false
24094 ;;
24095 *)
24096 LC_COLLATE_IMPLEMENTED=true
24097 LC_NUMERIC_IMPLEMENTED=true
24098 LC_TIME_IMPLEMENTED=true
24099 LC_MONETARY_IMPLEMENTED=true
24100 ;;
24101 esac
24102
24103
24104
24105
24106
24107
24108
24109
24110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
24111 printf %s "checking for a transitional chinese locale... " >&6; }
24112 if test ${gt_cv_locale_zh_CN+y}
24113 then :
24114 printf %s "(cached) " >&6
24115 else case e in #(
24116 e)
24117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24118 /* end confdefs.h. */
24119
24120 #include <locale.h>
24121 #include <stdlib.h>
24122 #include <time.h>
24123 #if HAVE_LANGINFO_CODESET
24124 # include <langinfo.h>
24125 #endif
24126 #include <stdlib.h>
24127 #include <string.h>
24128 #include <wchar.h>
24129 struct tm t;
24130 char buf[16];
24131 int main ()
24132 {
24133 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
24134 imitates locale dependent behaviour by looking at the environment
24135 variables, and all locales use the UTF-8 encoding. */
24136 #if defined __BEOS__ || defined __HAIKU__
24137 return 1;
24138 #else
24139 /* Check whether the given locale name is recognized by the system. */
24140 # if defined _WIN32 && !defined __CYGWIN__
24141 /* On native Windows, setlocale(category, "") looks at the system settings,
24142 not at the environment variables. Also, when an encoding suffix such
24143 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
24144 category of the locale to "C". */
24145 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
24146 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
24147 return 1;
24148 # else
24149 if (setlocale (LC_ALL, "") == NULL) return 1;
24150 # endif
24151 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
24152 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
24153 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
24154 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
24155 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
24156 some unit tests fail.
24157 On MirBSD 10, when an unsupported locale is specified, setlocale()
24158 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
24159 # if HAVE_LANGINFO_CODESET
24160 {
24161 const char *cs = nl_langinfo (CODESET);
24162 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
24163 || strcmp (cs, "UTF-8") == 0)
24164 return 1;
24165 }
24166 # endif
24167 # ifdef __CYGWIN__
24168 /* On Cygwin, avoid locale names without encoding suffix, because the
24169 locale_charset() function relies on the encoding suffix. Note that
24170 LC_ALL is set on the command line. */
24171 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
24172 # endif
24173 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
24174 This excludes the UTF-8 encoding (except on MirBSD). */
24175 {
24176 const char *p;
24177 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
24178 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
24179 for (p = buf; *p != '\0'; p++)
24180 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
24181 return 1;
24182 }
24183 /* Check whether a typical GB18030 multibyte sequence is recognized as a
24184 single wide character. This excludes the GB2312 and GBK encodings. */
24185 if (mblen ("\203\062\332\066", 5) != 4)
24186 return 1;
24187 /* Check whether mbrtowc accept this character one byte at a time.
24188 This excludes NetBSD 10.0. */
24189 if (sizeof (wchar_t) > 2)
24190 {
24191 wchar_t wc;
24192 mbstate_t state;
24193 memset (&state, 0, sizeof (state));
24194 if (!(mbrtowc (&wc, "\203", 1, &state) == (size_t)(-2)
24195 && mbrtowc (&wc, "\062", 1, &state) == (size_t)(-2)
24196 && mbrtowc (&wc, "\332", 1, &state) == (size_t)(-2)
24197 && mbrtowc (&wc, "\066", 1, &state) == 1))
24198 return 1;
24199 }
24200 return 0;
24201 #endif
24202 }
24203
24204 _ACEOF
24205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
24206 (eval $ac_link) 2>&5
24207 ac_status=$?
24208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24209 test $ac_status = 0; } && test -s conftest$ac_exeext; then
24210 case "$host_os" in
24211 # Handle native Windows specially, because there setlocale() interprets
24212 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
24213 # "fr" or "fra" as "French" or "French_France.1252",
24214 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
24215 # "ja" as "Japanese" or "Japanese_Japan.932",
24216 # and similar.
24217 mingw* | windows*)
24218 # Test for the hypothetical native Windows locale name.
24219 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24220 gt_cv_locale_zh_CN=Chinese_China.54936
24221 else
24222 # None found.
24223 gt_cv_locale_zh_CN=none
24224 fi
24225 ;;
24226 solaris2.8)
24227 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
24228 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
24229 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
24230 gt_cv_locale_zh_CN=none
24231 ;;
24232 *)
24233 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
24234 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
24235 # configure script would override the LC_ALL setting. Likewise for
24236 # LC_CTYPE, which is also set at the beginning of the configure script.
24237 # Test for the locale name without encoding suffix.
24238 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24239 gt_cv_locale_zh_CN=zh_CN
24240 else
24241 # Test for the locale name with explicit encoding suffix.
24242 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24243 gt_cv_locale_zh_CN=zh_CN.GB18030
24244 else
24245 # None found.
24246 gt_cv_locale_zh_CN=none
24247 fi
24248 fi
24249 ;;
24250 esac
24251 else
24252 # If there was a link error, due to mblen(), the system is so old that
24253 # it certainly doesn't have a chinese locale.
24254 gt_cv_locale_zh_CN=none
24255 fi
24256 rm -fr conftest*
24257 ;;
24258 esac
24259 fi
24260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
24261 printf "%s\n" "$gt_cv_locale_zh_CN" >&6; }
24262 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
24263 case $LOCALE_ZH_CN in #(
24264 '' | *[[:space:]\"\$\'*[]*)
24265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid locale \"$LOCALE_ZH_CN\"; assuming \"none\"" >&5
24266 printf "%s\n" "$as_me: WARNING: invalid locale \"$LOCALE_ZH_CN\"; assuming \"none\"" >&2;}
24267 LOCALE_ZH_CN=none;;
24268 esac
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278 if case "$host_os" in
24279 mingw* | windows*) true ;;
24280 *) test $ac_cv_func_mbsinit = yes ;;
24281 esac \
24282 && test $ac_cv_func_mbrtowc = yes; then
24283
24284
24285
24286
24287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
24288 printf %s "checking whether mbrtowc handles incomplete characters... " >&6; }
24289 if test ${gl_cv_func_mbrtowc_incomplete_state+y}
24290 then :
24291 printf %s "(cached) " >&6
24292 else case e in #(
24293 e)
24294 case "$host_os" in
24295 # Guess no on AIX and OSF/1.
24296 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
24297 # Guess yes otherwise.
24298 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
24299 esac
24300 if test $LOCALE_JA != none; then
24301 if test "$cross_compiling" = yes
24302 then :
24303 :
24304 else case e in #(
24305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24306 /* end confdefs.h. */
24307
24308 #include <locale.h>
24309 #include <string.h>
24310 #include <wchar.h>
24311 int main ()
24312 {
24313 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24314 {
24315 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24316 mbstate_t state;
24317 wchar_t wc;
24318
24319 memset (&state, '\0', sizeof (mbstate_t));
24320 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24321 if (mbsinit (&state))
24322 return 2;
24323 }
24324 return 0;
24325 }
24326 _ACEOF
24327 if ac_fn_c_try_run "$LINENO"
24328 then :
24329 gl_cv_func_mbrtowc_incomplete_state=yes
24330 else case e in #(
24331 e) gl_cv_func_mbrtowc_incomplete_state=no ;;
24332 esac
24333 fi
24334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24335 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
24336 esac
24337 fi
24338
24339 else
24340 if test $LOCALE_FR_UTF8 != none; then
24341 if test "$cross_compiling" = yes
24342 then :
24343 :
24344 else case e in #(
24345 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24346 /* end confdefs.h. */
24347
24348 #include <locale.h>
24349 #include <string.h>
24350 #include <wchar.h>
24351 int main ()
24352 {
24353 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24354 {
24355 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
24356 mbstate_t state;
24357 wchar_t wc;
24358
24359 memset (&state, '\0', sizeof (mbstate_t));
24360 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24361 if (mbsinit (&state))
24362 return 2;
24363 }
24364 return 0;
24365 }
24366 _ACEOF
24367 if ac_fn_c_try_run "$LINENO"
24368 then :
24369 gl_cv_func_mbrtowc_incomplete_state=yes
24370 else case e in #(
24371 e) gl_cv_func_mbrtowc_incomplete_state=no ;;
24372 esac
24373 fi
24374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24375 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
24376 esac
24377 fi
24378
24379 fi
24380 fi
24381 ;;
24382 esac
24383 fi
24384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24385 printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24386
24387
24388
24389
24390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
24391 printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; }
24392 if test ${gl_cv_func_mbrtowc_sanitycheck+y}
24393 then :
24394 printf %s "(cached) " >&6
24395 else case e in #(
24396 e)
24397 case "$host_os" in
24398 # Guess no on Solaris 8.
24399 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
24400 # Guess yes otherwise.
24401 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
24402 esac
24403 if test $LOCALE_ZH_CN != none; then
24404 if test "$cross_compiling" = yes
24405 then :
24406 :
24407 else case e in #(
24408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24409 /* end confdefs.h. */
24410
24411 #include <locale.h>
24412 #include <stdlib.h>
24413 #include <string.h>
24414 #include <wchar.h>
24415 int main ()
24416 {
24417 /* This fails on Solaris 8:
24418 mbrtowc returns 2, and sets wc to 0x00F0.
24419 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
24420 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24421 {
24422 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24423 mbstate_t state;
24424 wchar_t wc;
24425
24426 memset (&state, '\0', sizeof (mbstate_t));
24427 if (mbrtowc (&wc, input + 3, 6, &state) != 4
24428 && mbtowc (&wc, input + 3, 6) == 4)
24429 return 2;
24430 }
24431 return 0;
24432 }
24433 _ACEOF
24434 if ac_fn_c_try_run "$LINENO"
24435 then :
24436 gl_cv_func_mbrtowc_sanitycheck=yes
24437 else case e in #(
24438 e) gl_cv_func_mbrtowc_sanitycheck=no ;;
24439 esac
24440 fi
24441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24442 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
24443 esac
24444 fi
24445
24446 fi
24447 ;;
24448 esac
24449 fi
24450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24451 printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24452
24453 REPLACE_MBSTATE_T=0
24454 case "$gl_cv_func_mbrtowc_incomplete_state" in
24455 *yes) ;;
24456 *) REPLACE_MBSTATE_T=1 ;;
24457 esac
24458 case "$gl_cv_func_mbrtowc_sanitycheck" in
24459 *yes) ;;
24460 *) REPLACE_MBSTATE_T=1 ;;
24461 esac
24462 else
24463 REPLACE_MBSTATE_T=1
24464 fi
24465
24466
24467
24468 case "$host_os" in
24469 *-musl* | midipix*)
24470
24471 printf "%s\n" "#define MUSL_LIBC 1" >>confdefs.h
24472
24473 ;;
24474 esac
24475
24476
24477
24478 GL_GNULIB_BTOWC=0
24479
24480
24481
24482 GL_GNULIB_WCTOB=0
24483
24484
24485
24486 GL_GNULIB_MBSINIT=0
24487
24488
24489
24490 GL_GNULIB_MBSZERO=0
24491
24492
24493
24494 GL_GNULIB_MBRTOWC=0
24495
24496
24497
24498 GL_GNULIB_MBRLEN=0
24499
24500
24501
24502 GL_GNULIB_MBSRTOWCS=0
24503
24504
24505
24506 GL_GNULIB_MBSNRTOWCS=0
24507
24508
24509
24510 GL_GNULIB_WCRTOMB=0
24511
24512
24513
24514 GL_GNULIB_WCSRTOMBS=0
24515
24516
24517
24518 GL_GNULIB_WCSNRTOMBS=0
24519
24520
24521
24522 GL_GNULIB_WCWIDTH=0
24523
24524
24525
24526 GL_GNULIB_WMEMCHR=0
24527
24528
24529
24530 GL_GNULIB_WMEMCMP=0
24531
24532
24533
24534 GL_GNULIB_WMEMCPY=0
24535
24536
24537
24538 GL_GNULIB_WMEMMOVE=0
24539
24540
24541
24542 GL_GNULIB_WMEMPCPY=0
24543
24544
24545
24546 GL_GNULIB_WMEMSET=0
24547
24548
24549
24550 GL_GNULIB_WCSLEN=0
24551
24552
24553
24554 GL_GNULIB_WCSNLEN=0
24555
24556
24557
24558 GL_GNULIB_WCSCPY=0
24559
24560
24561
24562 GL_GNULIB_WCPCPY=0
24563
24564
24565
24566 GL_GNULIB_WCSNCPY=0
24567
24568
24569
24570 GL_GNULIB_WCPNCPY=0
24571
24572
24573
24574 GL_GNULIB_WCSCAT=0
24575
24576
24577
24578 GL_GNULIB_WCSNCAT=0
24579
24580
24581
24582 GL_GNULIB_WCSCMP=0
24583
24584
24585
24586 GL_GNULIB_WCSNCMP=0
24587
24588
24589
24590 GL_GNULIB_WCSCASECMP=0
24591
24592
24593
24594 GL_GNULIB_WCSNCASECMP=0
24595
24596
24597
24598 GL_GNULIB_WCSCOLL=0
24599
24600
24601
24602 GL_GNULIB_WCSXFRM=0
24603
24604
24605
24606 GL_GNULIB_WCSDUP=0
24607
24608
24609
24610 GL_GNULIB_WCSCHR=0
24611
24612
24613
24614 GL_GNULIB_WCSRCHR=0
24615
24616
24617
24618 GL_GNULIB_WCSCSPN=0
24619
24620
24621
24622 GL_GNULIB_WCSSPN=0
24623
24624
24625
24626 GL_GNULIB_WCSPBRK=0
24627
24628
24629
24630 GL_GNULIB_WCSSTR=0
24631
24632
24633
24634 GL_GNULIB_WCSTOK=0
24635
24636
24637
24638 GL_GNULIB_WCSWIDTH=0
24639
24640
24641
24642 GL_GNULIB_WCSFTIME=0
24643
24644
24645
24646 GL_GNULIB_WGETCWD=0
24647
24648
24649
24650 GL_GNULIB_MDA_WCSDUP=1
24651
24652
24653
24654
24655
24656
24657 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
24658 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
24659 # irrelevant for anonymous mappings.
24660 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
24661 if test "x$ac_cv_func_mmap" = xyes
24662 then :
24663 gl_have_mmap=yes
24664 else case e in #(
24665 e) gl_have_mmap=no ;;
24666 esac
24667 fi
24668
24669
24670 # Try to allow MAP_ANONYMOUS.
24671 gl_have_mmap_anonymous=no
24672 if test $gl_have_mmap = yes; then
24673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
24674 printf %s "checking for MAP_ANONYMOUS... " >&6; }
24675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24676 /* end confdefs.h. */
24677
24678 #include <sys/mman.h>
24679 #ifdef MAP_ANONYMOUS
24680 I cannot identify this map
24681 #endif
24682
24683 _ACEOF
24684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24685 $EGREP_TRADITIONAL "I cannot identify this map" >/dev/null 2>&1
24686 then :
24687 gl_have_mmap_anonymous=yes
24688 fi
24689 rm -rf conftest*
24690
24691 if test $gl_have_mmap_anonymous != yes; then
24692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24693 /* end confdefs.h. */
24694
24695 #include <sys/mman.h>
24696 #ifdef MAP_ANON
24697 I cannot identify this map
24698 #endif
24699
24700 _ACEOF
24701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24702 $EGREP_TRADITIONAL "I cannot identify this map" >/dev/null 2>&1
24703 then :
24704
24705 printf "%s\n" "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
24706
24707 gl_have_mmap_anonymous=yes
24708 fi
24709 rm -rf conftest*
24710
24711 fi
24712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
24713 printf "%s\n" "$gl_have_mmap_anonymous" >&6; }
24714 if test $gl_have_mmap_anonymous = yes; then
24715
24716 printf "%s\n" "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
24717
24718 fi
24719 fi
24720
24721
24722
24723
24724 HAVE_MBSLEN=0;
24725 HAVE_EXPLICIT_BZERO=1;
24726 HAVE_FFSL=1;
24727 HAVE_FFSLL=1;
24728 HAVE_DECL_MEMMEM=1;
24729 HAVE_MEMPCPY=1;
24730 HAVE_MEMSET_EXPLICIT=1;
24731 HAVE_DECL_MEMRCHR=1;
24732 HAVE_RAWMEMCHR=1;
24733 HAVE_STPCPY=1;
24734 HAVE_STPNCPY=1;
24735 HAVE_STRCHRNUL=1;
24736 HAVE_DECL_STRDUP=1;
24737 HAVE_DECL_STRNDUP=1;
24738 HAVE_DECL_STRNLEN=1;
24739 HAVE_STRPBRK=1;
24740 HAVE_STRSEP=1;
24741 HAVE_STRCASESTR=1;
24742 HAVE_DECL_STRTOK_R=1;
24743 HAVE_DECL_STRERROR_R=1;
24744 HAVE_STRERRORNAME_NP=1;
24745 HAVE_SIGABBREV_NP=1;
24746 HAVE_SIGDESCR_NP=1;
24747 HAVE_DECL_STRSIGNAL=1;
24748 HAVE_STRVERSCMP=1;
24749 REPLACE_FFSLL=0;
24750 REPLACE_MEMCHR=0;
24751 REPLACE_MEMMEM=0;
24752 REPLACE_MEMPCPY=0;
24753 REPLACE_MEMSET_EXPLICIT=0;
24754 REPLACE_STPCPY=0;
24755 REPLACE_STPNCPY=0;
24756 REPLACE_STRCHRNUL=0;
24757 REPLACE_STRDUP=0;
24758 REPLACE_STRNCAT=0;
24759 REPLACE_STRNDUP=0;
24760 REPLACE_STRNLEN=0;
24761 REPLACE_STRSTR=0;
24762 REPLACE_STRCASESTR=0;
24763 REPLACE_STRTOK_R=0;
24764 REPLACE_STRERROR=0;
24765 REPLACE_STRERROR_R=0;
24766 REPLACE_STRERRORNAME_NP=0;
24767 REPLACE_STRSIGNAL=0;
24768 REPLACE_STRVERSCMP=0;
24769 UNDEFINE_STRTOK_R=0;
24770
24771
24772
24773
24774
24775
24776
24777
24778 # Detect platform-specific bugs in some versions of glibc:
24779 # memchr should not dereference anything with length 0
24780 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
24781 # memchr should not dereference overestimated length after a match
24782 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
24783 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
24784 # memchr should cast the second argument to 'unsigned char'.
24785 # This bug exists in Android 4.3.
24786 # Assume that memchr works on platforms that lack mprotect.
24787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
24788 printf %s "checking whether memchr works... " >&6; }
24789 if test ${gl_cv_func_memchr_works+y}
24790 then :
24791 printf %s "(cached) " >&6
24792 else case e in #(
24793 e) if test "$cross_compiling" = yes
24794 then :
24795 case "$host_os" in
24796 # Guess no on Android.
24797 linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
24798 # Guess yes on native Windows.
24799 mingw* | windows*) gl_cv_func_memchr_works="guessing yes" ;;
24800 # If we don't know, obey --enable-cross-guesses.
24801 *) gl_cv_func_memchr_works="$gl_cross_guess_normal" ;;
24802 esac
24803
24804 else case e in #(
24805 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24806 /* end confdefs.h. */
24807
24808 #include <string.h>
24809 #if HAVE_SYS_MMAN_H
24810 # include <fcntl.h>
24811 # include <unistd.h>
24812 # include <sys/types.h>
24813 # include <sys/mman.h>
24814 # ifndef MAP_FILE
24815 # define MAP_FILE 0
24816 # endif
24817 #endif
24818
24819 int
24820 main (void)
24821 {
24822
24823 int result = 0;
24824 char *fence = NULL;
24825 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
24826 # if HAVE_MAP_ANONYMOUS
24827 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
24828 const int fd = -1;
24829 # else /* !HAVE_MAP_ANONYMOUS */
24830 const int flags = MAP_FILE | MAP_PRIVATE;
24831 int fd = open ("/dev/zero", O_RDONLY, 0666);
24832 if (fd >= 0)
24833 # endif
24834 {
24835 long int pagesize = sysconf (_SC_PAGESIZE);
24836 char *two_pages =
24837 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
24838 flags, fd, 0);
24839 if (two_pages != (char *)(-1)
24840 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
24841 fence = two_pages + pagesize;
24842 }
24843 #endif
24844 if (fence)
24845 {
24846 /* Test against bugs on glibc systems. */
24847 if (memchr (fence, 0, 0))
24848 result |= 1;
24849 strcpy (fence - 9, "12345678");
24850 if (memchr (fence - 9, 0, 79) != fence - 1)
24851 result |= 2;
24852 if (memchr (fence - 1, 0, 3) != fence - 1)
24853 result |= 4;
24854 /* Test against bug on AIX 7.2. */
24855 if (memchr (fence - 4, '6', 16) != fence - 4)
24856 result |= 8;
24857 }
24858 /* Test against bug on Android 4.3. */
24859 {
24860 char input[3];
24861 input[0] = 'a';
24862 input[1] = 'b';
24863 input[2] = 'c';
24864 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
24865 result |= 16;
24866 }
24867 return result;
24868
24869 ;
24870 return 0;
24871 }
24872 _ACEOF
24873 if ac_fn_c_try_run "$LINENO"
24874 then :
24875 gl_cv_func_memchr_works=yes
24876 else case e in #(
24877 e) gl_cv_func_memchr_works=no ;;
24878 esac
24879 fi
24880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24881 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
24882 esac
24883 fi
24884
24885 ;;
24886 esac
24887 fi
24888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
24889 printf "%s\n" "$gl_cv_func_memchr_works" >&6; }
24890 case "$gl_cv_func_memchr_works" in
24891 *yes) ;;
24892 *) REPLACE_MEMCHR=1 ;;
24893 esac
24894
24895
24896
24897 GL_GNULIB_EXPLICIT_BZERO=0
24898
24899
24900
24901 GL_GNULIB_FFSL=0
24902
24903
24904
24905 GL_GNULIB_FFSLL=0
24906
24907
24908
24909 GL_GNULIB_MEMCHR=0
24910
24911
24912
24913 GL_GNULIB_MEMMEM=0
24914
24915
24916
24917 GL_GNULIB_MEMPCPY=0
24918
24919
24920
24921 GL_GNULIB_MEMRCHR=0
24922
24923
24924
24925 GL_GNULIB_MEMSET_EXPLICIT=0
24926
24927
24928
24929 GL_GNULIB_RAWMEMCHR=0
24930
24931
24932
24933 GL_GNULIB_STPCPY=0
24934
24935
24936
24937 GL_GNULIB_STPNCPY=0
24938
24939
24940
24941 GL_GNULIB_STRCHRNUL=0
24942
24943
24944
24945 GL_GNULIB_STRDUP=0
24946
24947
24948
24949 GL_GNULIB_STRNCAT=0
24950
24951
24952
24953 GL_GNULIB_STRNDUP=0
24954
24955
24956
24957 GL_GNULIB_STRNLEN=0
24958
24959
24960
24961 GL_GNULIB_STRPBRK=0
24962
24963
24964
24965 GL_GNULIB_STRSEP=0
24966
24967
24968
24969 GL_GNULIB_STRSTR=0
24970
24971
24972
24973 GL_GNULIB_STRCASESTR=0
24974
24975
24976
24977 GL_GNULIB_STRTOK_R=0
24978
24979
24980
24981 GL_GNULIB_MBSLEN=0
24982
24983
24984
24985 GL_GNULIB_MBSNLEN=0
24986
24987
24988
24989 GL_GNULIB_MBSCHR=0
24990
24991
24992
24993 GL_GNULIB_MBSRCHR=0
24994
24995
24996
24997 GL_GNULIB_MBSSTR=0
24998
24999
25000
25001 GL_GNULIB_MBSCASECMP=0
25002
25003
25004
25005 GL_GNULIB_MBSNCASECMP=0
25006
25007
25008
25009 GL_GNULIB_MBSPCASECMP=0
25010
25011
25012
25013 GL_GNULIB_MBSCASESTR=0
25014
25015
25016
25017 GL_GNULIB_MBSCSPN=0
25018
25019
25020
25021 GL_GNULIB_MBSPBRK=0
25022
25023
25024
25025 GL_GNULIB_MBSSPN=0
25026
25027
25028
25029 GL_GNULIB_MBSSEP=0
25030
25031
25032
25033 GL_GNULIB_MBSTOK_R=0
25034
25035
25036
25037 GL_GNULIB_STRERROR=0
25038
25039
25040
25041 GL_GNULIB_STRERROR_R=0
25042
25043
25044
25045 GL_GNULIB_STRERRORNAME_NP=0
25046
25047
25048
25049 GL_GNULIB_SIGABBREV_NP=0
25050
25051
25052
25053 GL_GNULIB_SIGDESCR_NP=0
25054
25055
25056
25057 GL_GNULIB_STRSIGNAL=0
25058
25059
25060
25061 GL_GNULIB_STRVERSCMP=0
25062
25063
25064
25065 GL_GNULIB_MDA_MEMCCPY=1
25066
25067
25068
25069 GL_GNULIB_MDA_STRDUP=1
25070
25071
25072
25073
25074
25075
25076
25077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
25078 printf %s "checking whether <limits.h> defines MIN and MAX... " >&6; }
25079 if test ${gl_cv_minmax_in_limits_h+y}
25080 then :
25081 printf %s "(cached) " >&6
25082 else case e in #(
25083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25084 /* end confdefs.h. */
25085 #include <limits.h>
25086 int x = MIN (42, 17);
25087 int
25088 main (void)
25089 {
25090
25091 ;
25092 return 0;
25093 }
25094 _ACEOF
25095 if ac_fn_c_try_compile "$LINENO"
25096 then :
25097 gl_cv_minmax_in_limits_h=yes
25098 else case e in #(
25099 e) gl_cv_minmax_in_limits_h=no ;;
25100 esac
25101 fi
25102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25103 esac
25104 fi
25105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
25106 printf "%s\n" "$gl_cv_minmax_in_limits_h" >&6; }
25107 if test $gl_cv_minmax_in_limits_h = yes; then
25108
25109 printf "%s\n" "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
25110
25111 fi
25112
25113
25114
25115
25116
25117
25118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
25119 printf %s "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
25120 if test ${gl_cv_minmax_in_sys_param_h+y}
25121 then :
25122 printf %s "(cached) " >&6
25123 else case e in #(
25124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25125 /* end confdefs.h. */
25126 #include <sys/param.h>
25127 int x = MIN (42, 17);
25128 int
25129 main (void)
25130 {
25131
25132 ;
25133 return 0;
25134 }
25135 _ACEOF
25136 if ac_fn_c_try_compile "$LINENO"
25137 then :
25138 gl_cv_minmax_in_sys_param_h=yes
25139 else case e in #(
25140 e) gl_cv_minmax_in_sys_param_h=no ;;
25141 esac
25142 fi
25143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25144 esac
25145 fi
25146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
25147 printf "%s\n" "$gl_cv_minmax_in_sys_param_h" >&6; }
25148 if test $gl_cv_minmax_in_sys_param_h = yes; then
25149
25150 printf "%s\n" "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
25151
25152 fi
25153
25154
25155
25156
25157
25158
25159
25160
25161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
25162 printf %s "checking for O_CLOEXEC... " >&6; }
25163 if test ${gl_cv_macro_O_CLOEXEC+y}
25164 then :
25165 printf %s "(cached) " >&6
25166 else case e in #(
25167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25168 /* end confdefs.h. */
25169 #include <fcntl.h>
25170 #ifndef O_CLOEXEC
25171 choke me;
25172 #endif
25173
25174 int
25175 main (void)
25176 {
25177 return O_CLOEXEC;
25178 ;
25179 return 0;
25180 }
25181 _ACEOF
25182 if ac_fn_c_try_compile "$LINENO"
25183 then :
25184 gl_cv_macro_O_CLOEXEC=yes
25185 else case e in #(
25186 e) gl_cv_macro_O_CLOEXEC=no ;;
25187 esac
25188 fi
25189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25190 esac
25191 fi
25192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
25193 printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; }
25194
25195
25196
25197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
25198 printf %s "checking for promoted mode_t type... " >&6; }
25199 if test ${gl_cv_promoted_mode_t+y}
25200 then :
25201 printf %s "(cached) " >&6
25202 else case e in #(
25203 e)
25204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25205 /* end confdefs.h. */
25206 #include <sys/types.h>
25207 int
25208 main (void)
25209 {
25210 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
25211 ;
25212 return 0;
25213 }
25214 _ACEOF
25215 if ac_fn_c_try_compile "$LINENO"
25216 then :
25217 gl_cv_promoted_mode_t='int'
25218 else case e in #(
25219 e) gl_cv_promoted_mode_t='mode_t' ;;
25220 esac
25221 fi
25222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25223 ;;
25224 esac
25225 fi
25226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
25227 printf "%s\n" "$gl_cv_promoted_mode_t" >&6; }
25228
25229 printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h
25230
25231
25232
25233
25234 HAVE_PTHREAD_T=1;
25235 HAVE_PTHREAD_SPINLOCK_T=1;
25236 HAVE_PTHREAD_CREATE_DETACHED=1;
25237 HAVE_PTHREAD_MUTEX_RECURSIVE=1;
25238 HAVE_PTHREAD_MUTEX_ROBUST=1;
25239 HAVE_PTHREAD_PROCESS_SHARED=1;
25240 HAVE_PTHREAD_CREATE=1;
25241 HAVE_PTHREAD_ATTR_INIT=1;
25242 HAVE_PTHREAD_ATTR_GETDETACHSTATE=1;
25243 HAVE_PTHREAD_ATTR_SETDETACHSTATE=1;
25244 HAVE_PTHREAD_ATTR_DESTROY=1;
25245 HAVE_PTHREAD_SELF=1;
25246 HAVE_PTHREAD_EQUAL=1;
25247 HAVE_PTHREAD_DETACH=1;
25248 HAVE_PTHREAD_JOIN=1;
25249 HAVE_PTHREAD_EXIT=1;
25250 HAVE_PTHREAD_ONCE=1;
25251 HAVE_PTHREAD_MUTEX_INIT=1;
25252 HAVE_PTHREAD_MUTEXATTR_INIT=1;
25253 HAVE_PTHREAD_MUTEXATTR_GETTYPE=1;
25254 HAVE_PTHREAD_MUTEXATTR_SETTYPE=1;
25255 HAVE_PTHREAD_MUTEXATTR_GETROBUST=1;
25256 HAVE_PTHREAD_MUTEXATTR_SETROBUST=1;
25257 HAVE_PTHREAD_MUTEXATTR_DESTROY=1;
25258 HAVE_PTHREAD_MUTEX_LOCK=1;
25259 HAVE_PTHREAD_MUTEX_TRYLOCK=1;
25260 HAVE_PTHREAD_MUTEX_TIMEDLOCK=1;
25261 HAVE_PTHREAD_MUTEX_UNLOCK=1;
25262 HAVE_PTHREAD_MUTEX_DESTROY=1;
25263 HAVE_PTHREAD_RWLOCK_INIT=1;
25264 HAVE_PTHREAD_RWLOCKATTR_INIT=1;
25265 HAVE_PTHREAD_RWLOCKATTR_DESTROY=1;
25266 HAVE_PTHREAD_RWLOCK_RDLOCK=1;
25267 HAVE_PTHREAD_RWLOCK_WRLOCK=1;
25268 HAVE_PTHREAD_RWLOCK_TRYRDLOCK=1;
25269 HAVE_PTHREAD_RWLOCK_TRYWRLOCK=1;
25270 HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK=1;
25271 HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK=1;
25272 HAVE_PTHREAD_RWLOCK_UNLOCK=1;
25273 HAVE_PTHREAD_RWLOCK_DESTROY=1;
25274 HAVE_PTHREAD_COND_INIT=1;
25275 HAVE_PTHREAD_CONDATTR_INIT=1;
25276 HAVE_PTHREAD_CONDATTR_DESTROY=1;
25277 HAVE_PTHREAD_COND_WAIT=1;
25278 HAVE_PTHREAD_COND_TIMEDWAIT=1;
25279 HAVE_PTHREAD_COND_SIGNAL=1;
25280 HAVE_PTHREAD_COND_BROADCAST=1;
25281 HAVE_PTHREAD_COND_DESTROY=1;
25282 HAVE_PTHREAD_KEY_CREATE=1;
25283 HAVE_PTHREAD_SETSPECIFIC=1;
25284 HAVE_PTHREAD_GETSPECIFIC=1;
25285 HAVE_PTHREAD_KEY_DELETE=1;
25286 HAVE_PTHREAD_SPIN_INIT=1;
25287 HAVE_PTHREAD_SPIN_LOCK=1;
25288 HAVE_PTHREAD_SPIN_TRYLOCK=1;
25289 HAVE_PTHREAD_SPIN_UNLOCK=1;
25290 HAVE_PTHREAD_SPIN_DESTROY=1;
25291 REPLACE_PTHREAD_CREATE=0;
25292 REPLACE_PTHREAD_ATTR_INIT=0;
25293 REPLACE_PTHREAD_ATTR_GETDETACHSTATE=0;
25294 REPLACE_PTHREAD_ATTR_SETDETACHSTATE=0;
25295 REPLACE_PTHREAD_ATTR_DESTROY=0;
25296 REPLACE_PTHREAD_SELF=0;
25297 REPLACE_PTHREAD_EQUAL=0;
25298 REPLACE_PTHREAD_DETACH=0;
25299 REPLACE_PTHREAD_JOIN=0;
25300 REPLACE_PTHREAD_EXIT=0;
25301 REPLACE_PTHREAD_ONCE=0;
25302 REPLACE_PTHREAD_MUTEX_INIT=0;
25303 REPLACE_PTHREAD_MUTEXATTR_INIT=0;
25304 REPLACE_PTHREAD_MUTEXATTR_GETTYPE=0;
25305 REPLACE_PTHREAD_MUTEXATTR_SETTYPE=0;
25306 REPLACE_PTHREAD_MUTEXATTR_GETROBUST=0;
25307 REPLACE_PTHREAD_MUTEXATTR_SETROBUST=0;
25308 REPLACE_PTHREAD_MUTEXATTR_DESTROY=0;
25309 REPLACE_PTHREAD_MUTEX_LOCK=0;
25310 REPLACE_PTHREAD_MUTEX_TRYLOCK=0;
25311 REPLACE_PTHREAD_MUTEX_TIMEDLOCK=0;
25312 REPLACE_PTHREAD_MUTEX_UNLOCK=0;
25313 REPLACE_PTHREAD_MUTEX_DESTROY=0;
25314 REPLACE_PTHREAD_RWLOCK_INIT=0;
25315 REPLACE_PTHREAD_RWLOCKATTR_INIT=0;
25316 REPLACE_PTHREAD_RWLOCKATTR_DESTROY=0;
25317 REPLACE_PTHREAD_RWLOCK_RDLOCK=0;
25318 REPLACE_PTHREAD_RWLOCK_WRLOCK=0;
25319 REPLACE_PTHREAD_RWLOCK_TRYRDLOCK=0;
25320 REPLACE_PTHREAD_RWLOCK_TRYWRLOCK=0;
25321 REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK=0;
25322 REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK=0;
25323 REPLACE_PTHREAD_RWLOCK_UNLOCK=0;
25324 REPLACE_PTHREAD_RWLOCK_DESTROY=0;
25325 REPLACE_PTHREAD_COND_INIT=0;
25326 REPLACE_PTHREAD_CONDATTR_INIT=0;
25327 REPLACE_PTHREAD_CONDATTR_DESTROY=0;
25328 REPLACE_PTHREAD_COND_WAIT=0;
25329 REPLACE_PTHREAD_COND_TIMEDWAIT=0;
25330 REPLACE_PTHREAD_COND_SIGNAL=0;
25331 REPLACE_PTHREAD_COND_BROADCAST=0;
25332 REPLACE_PTHREAD_COND_DESTROY=0;
25333 REPLACE_PTHREAD_KEY_CREATE=0;
25334 REPLACE_PTHREAD_SETSPECIFIC=0;
25335 REPLACE_PTHREAD_GETSPECIFIC=0;
25336 REPLACE_PTHREAD_KEY_DELETE=0;
25337 REPLACE_PTHREAD_SPIN_INIT=0;
25338 REPLACE_PTHREAD_SPIN_LOCK=0;
25339 REPLACE_PTHREAD_SPIN_TRYLOCK=0;
25340 REPLACE_PTHREAD_SPIN_UNLOCK=0;
25341 REPLACE_PTHREAD_SPIN_DESTROY=0;
25342
25343
25344
25345
25346
25347 if test -z "$gl_pthreadlib_body_done"; then
25348 gl_pthread_api=no
25349 LIBPTHREAD=
25350 LIBPMULTITHREAD=
25351 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
25352 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
25353 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
25354 if test "x$ac_cv_header_pthread_h" = xyes
25355 then :
25356 gl_have_pthread_h=yes
25357 else case e in #(
25358 e) gl_have_pthread_h=no ;;
25359 esac
25360 fi
25361
25362 if test "$gl_have_pthread_h" = yes; then
25363 # Other possible tests:
25364 # -lpthreads (FSU threads, PCthreads)
25365 # -lgthreads
25366 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
25367 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
25368 # the second one only in libpthread, and lock.c needs it.
25369 #
25370 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
25371 # needs -pthread for some reason. See:
25372 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
25373 saved_LIBS="$LIBS"
25374 for gl_pthread in '' '-pthread'; do
25375 LIBS="$LIBS $gl_pthread"
25376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25377 /* end confdefs.h. */
25378 #include <pthread.h>
25379 pthread_mutex_t m;
25380 pthread_mutexattr_t ma;
25381
25382 int
25383 main (void)
25384 {
25385 pthread_mutex_lock (&m);
25386 pthread_mutexattr_init (&ma);
25387 ;
25388 return 0;
25389 }
25390 _ACEOF
25391 if ac_fn_c_try_link "$LINENO"
25392 then :
25393 gl_pthread_api=yes
25394 LIBPTHREAD=$gl_pthread
25395 LIBPMULTITHREAD=$gl_pthread
25396 fi
25397 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25398 conftest$ac_exeext conftest.$ac_ext
25399 LIBS="$saved_LIBS"
25400 test $gl_pthread_api = yes && break
25401 done
25402 echo "$as_me:25402: gl_pthread_api=$gl_pthread_api" >&5
25403 echo "$as_me:25403: LIBPTHREAD=$LIBPTHREAD" >&5
25404
25405 gl_pthread_in_glibc=no
25406 # On Linux with glibc >= 2.34, libc contains the fully functional
25407 # pthread functions.
25408 case "$host_os" in
25409 linux*)
25410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25411 /* end confdefs.h. */
25412 #include <features.h>
25413 #ifdef __GNU_LIBRARY__
25414 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2)
25415 Lucky user
25416 #endif
25417 #endif
25418
25419 _ACEOF
25420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25421 $EGREP_TRADITIONAL "Lucky user" >/dev/null 2>&1
25422 then :
25423 gl_pthread_in_glibc=yes
25424 fi
25425 rm -rf conftest*
25426
25427 ;;
25428 esac
25429 echo "$as_me:25429: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5
25430
25431 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
25432 # since it is defined as a macro on OSF/1.)
25433 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
25434 # The program links fine without libpthread. But it may actually
25435 # need to link with libpthread in order to create multiple threads.
25436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
25437 printf %s "checking for pthread_kill in -lpthread... " >&6; }
25438 if test ${ac_cv_lib_pthread_pthread_kill+y}
25439 then :
25440 printf %s "(cached) " >&6
25441 else case e in #(
25442 e) ac_check_lib_save_LIBS=$LIBS
25443 LIBS="-lpthread $LIBS"
25444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25445 /* end confdefs.h. */
25446
25447 /* Override any GCC internal prototype to avoid an error.
25448 Use char because int might match the return type of a GCC
25449 builtin and then its argument prototype would still apply.
25450 The 'extern "C"' is for builds by C++ compilers;
25451 although this is not generally supported in C code supporting it here
25452 has little cost and some practical benefit (sr 110532). */
25453 #ifdef __cplusplus
25454 extern "C"
25455 #endif
25456 char pthread_kill (void);
25457 int
25458 main (void)
25459 {
25460 return pthread_kill ();
25461 ;
25462 return 0;
25463 }
25464 _ACEOF
25465 if ac_fn_c_try_link "$LINENO"
25466 then :
25467 ac_cv_lib_pthread_pthread_kill=yes
25468 else case e in #(
25469 e) ac_cv_lib_pthread_pthread_kill=no ;;
25470 esac
25471 fi
25472 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25473 conftest$ac_exeext conftest.$ac_ext
25474 LIBS=$ac_check_lib_save_LIBS ;;
25475 esac
25476 fi
25477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
25478 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
25479 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
25480 then :
25481 if test $gl_pthread_in_glibc = yes; then
25482 LIBPMULTITHREAD=
25483 else
25484 LIBPMULTITHREAD=-lpthread
25485 # On Solaris and HP-UX, most pthread functions exist also in libc.
25486 # Therefore pthread_in_use() needs to actually try to create a
25487 # thread: pthread_create from libc will fail, whereas
25488 # pthread_create will actually create a thread.
25489 # On Solaris 10 or newer, this test is no longer needed, because
25490 # libc contains the fully functional pthread functions.
25491 case "$host_os" in
25492 solaris | solaris2.[1-9] | solaris2.[1-9].* | hpux*)
25493
25494 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
25495
25496 esac
25497 fi
25498
25499 else case e in #(
25500 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lthr" >&5
25501 printf %s "checking for pthread_kill in -lthr... " >&6; }
25502 if test ${ac_cv_lib_thr_pthread_kill+y}
25503 then :
25504 printf %s "(cached) " >&6
25505 else case e in #(
25506 e) ac_check_lib_save_LIBS=$LIBS
25507 LIBS="-lthr $LIBS"
25508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25509 /* end confdefs.h. */
25510
25511 /* Override any GCC internal prototype to avoid an error.
25512 Use char because int might match the return type of a GCC
25513 builtin and then its argument prototype would still apply.
25514 The 'extern "C"' is for builds by C++ compilers;
25515 although this is not generally supported in C code supporting it here
25516 has little cost and some practical benefit (sr 110532). */
25517 #ifdef __cplusplus
25518 extern "C"
25519 #endif
25520 char pthread_kill (void);
25521 int
25522 main (void)
25523 {
25524 return pthread_kill ();
25525 ;
25526 return 0;
25527 }
25528 _ACEOF
25529 if ac_fn_c_try_link "$LINENO"
25530 then :
25531 ac_cv_lib_thr_pthread_kill=yes
25532 else case e in #(
25533 e) ac_cv_lib_thr_pthread_kill=no ;;
25534 esac
25535 fi
25536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25537 conftest$ac_exeext conftest.$ac_ext
25538 LIBS=$ac_check_lib_save_LIBS ;;
25539 esac
25540 fi
25541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thr_pthread_kill" >&5
25542 printf "%s\n" "$ac_cv_lib_thr_pthread_kill" >&6; }
25543 if test "x$ac_cv_lib_thr_pthread_kill" = xyes
25544 then :
25545 if test $gl_pthread_in_glibc = yes; then
25546 LIBPMULTITHREAD=
25547 else
25548 LIBPMULTITHREAD=-lthr
25549 fi
25550
25551 fi
25552
25553 ;;
25554 esac
25555 fi
25556
25557 elif test $gl_pthread_api != yes; then
25558 # Some library is needed. Try libpthread and libc_r.
25559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
25560 printf %s "checking for pthread_kill in -lpthread... " >&6; }
25561 if test ${ac_cv_lib_pthread_pthread_kill+y}
25562 then :
25563 printf %s "(cached) " >&6
25564 else case e in #(
25565 e) ac_check_lib_save_LIBS=$LIBS
25566 LIBS="-lpthread $LIBS"
25567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25568 /* end confdefs.h. */
25569
25570 /* Override any GCC internal prototype to avoid an error.
25571 Use char because int might match the return type of a GCC
25572 builtin and then its argument prototype would still apply.
25573 The 'extern "C"' is for builds by C++ compilers;
25574 although this is not generally supported in C code supporting it here
25575 has little cost and some practical benefit (sr 110532). */
25576 #ifdef __cplusplus
25577 extern "C"
25578 #endif
25579 char pthread_kill (void);
25580 int
25581 main (void)
25582 {
25583 return pthread_kill ();
25584 ;
25585 return 0;
25586 }
25587 _ACEOF
25588 if ac_fn_c_try_link "$LINENO"
25589 then :
25590 ac_cv_lib_pthread_pthread_kill=yes
25591 else case e in #(
25592 e) ac_cv_lib_pthread_pthread_kill=no ;;
25593 esac
25594 fi
25595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25596 conftest$ac_exeext conftest.$ac_ext
25597 LIBS=$ac_check_lib_save_LIBS ;;
25598 esac
25599 fi
25600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
25601 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
25602 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
25603 then :
25604 gl_pthread_api=yes
25605 LIBPTHREAD=-lpthread
25606 LIBPMULTITHREAD=-lpthread
25607 fi
25608
25609 if test $gl_pthread_api != yes; then
25610 # For FreeBSD 4.
25611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
25612 printf %s "checking for pthread_kill in -lc_r... " >&6; }
25613 if test ${ac_cv_lib_c_r_pthread_kill+y}
25614 then :
25615 printf %s "(cached) " >&6
25616 else case e in #(
25617 e) ac_check_lib_save_LIBS=$LIBS
25618 LIBS="-lc_r $LIBS"
25619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25620 /* end confdefs.h. */
25621
25622 /* Override any GCC internal prototype to avoid an error.
25623 Use char because int might match the return type of a GCC
25624 builtin and then its argument prototype would still apply.
25625 The 'extern "C"' is for builds by C++ compilers;
25626 although this is not generally supported in C code supporting it here
25627 has little cost and some practical benefit (sr 110532). */
25628 #ifdef __cplusplus
25629 extern "C"
25630 #endif
25631 char pthread_kill (void);
25632 int
25633 main (void)
25634 {
25635 return pthread_kill ();
25636 ;
25637 return 0;
25638 }
25639 _ACEOF
25640 if ac_fn_c_try_link "$LINENO"
25641 then :
25642 ac_cv_lib_c_r_pthread_kill=yes
25643 else case e in #(
25644 e) ac_cv_lib_c_r_pthread_kill=no ;;
25645 esac
25646 fi
25647 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25648 conftest$ac_exeext conftest.$ac_ext
25649 LIBS=$ac_check_lib_save_LIBS ;;
25650 esac
25651 fi
25652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
25653 printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; }
25654 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
25655 then :
25656 gl_pthread_api=yes
25657 LIBPTHREAD=-lc_r
25658 LIBPMULTITHREAD=-lc_r
25659 fi
25660
25661 fi
25662 fi
25663 echo "$as_me:25663: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5
25664 fi
25665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
25666 printf %s "checking whether POSIX threads API is available... " >&6; }
25667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
25668 printf "%s\n" "$gl_pthread_api" >&6; }
25669
25670
25671 if test $gl_pthread_api = yes; then
25672
25673 printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h
25674
25675 fi
25676
25677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25678 /* end confdefs.h. */
25679 #include <sched.h>
25680 int
25681 main (void)
25682 {
25683 sched_yield ();
25684 ;
25685 return 0;
25686 }
25687 _ACEOF
25688 if ac_fn_c_try_link "$LINENO"
25689 then :
25690 SCHED_YIELD_LIB=
25691
25692 else case e in #(
25693 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
25694 printf %s "checking for sched_yield in -lrt... " >&6; }
25695 if test ${ac_cv_lib_rt_sched_yield+y}
25696 then :
25697 printf %s "(cached) " >&6
25698 else case e in #(
25699 e) ac_check_lib_save_LIBS=$LIBS
25700 LIBS="-lrt $LIBS"
25701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25702 /* end confdefs.h. */
25703
25704 /* Override any GCC internal prototype to avoid an error.
25705 Use char because int might match the return type of a GCC
25706 builtin and then its argument prototype would still apply.
25707 The 'extern "C"' is for builds by C++ compilers;
25708 although this is not generally supported in C code supporting it here
25709 has little cost and some practical benefit (sr 110532). */
25710 #ifdef __cplusplus
25711 extern "C"
25712 #endif
25713 char sched_yield (void);
25714 int
25715 main (void)
25716 {
25717 return sched_yield ();
25718 ;
25719 return 0;
25720 }
25721 _ACEOF
25722 if ac_fn_c_try_link "$LINENO"
25723 then :
25724 ac_cv_lib_rt_sched_yield=yes
25725 else case e in #(
25726 e) ac_cv_lib_rt_sched_yield=no ;;
25727 esac
25728 fi
25729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25730 conftest$ac_exeext conftest.$ac_ext
25731 LIBS=$ac_check_lib_save_LIBS ;;
25732 esac
25733 fi
25734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
25735 printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
25736 if test "x$ac_cv_lib_rt_sched_yield" = xyes
25737 then :
25738 SCHED_YIELD_LIB=-lrt
25739 else case e in #(
25740 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
25741 printf %s "checking for sched_yield in -lposix4... " >&6; }
25742 if test ${ac_cv_lib_posix4_sched_yield+y}
25743 then :
25744 printf %s "(cached) " >&6
25745 else case e in #(
25746 e) ac_check_lib_save_LIBS=$LIBS
25747 LIBS="-lposix4 $LIBS"
25748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25749 /* end confdefs.h. */
25750
25751 /* Override any GCC internal prototype to avoid an error.
25752 Use char because int might match the return type of a GCC
25753 builtin and then its argument prototype would still apply.
25754 The 'extern "C"' is for builds by C++ compilers;
25755 although this is not generally supported in C code supporting it here
25756 has little cost and some practical benefit (sr 110532). */
25757 #ifdef __cplusplus
25758 extern "C"
25759 #endif
25760 char sched_yield (void);
25761 int
25762 main (void)
25763 {
25764 return sched_yield ();
25765 ;
25766 return 0;
25767 }
25768 _ACEOF
25769 if ac_fn_c_try_link "$LINENO"
25770 then :
25771 ac_cv_lib_posix4_sched_yield=yes
25772 else case e in #(
25773 e) ac_cv_lib_posix4_sched_yield=no ;;
25774 esac
25775 fi
25776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25777 conftest$ac_exeext conftest.$ac_ext
25778 LIBS=$ac_check_lib_save_LIBS ;;
25779 esac
25780 fi
25781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
25782 printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; }
25783 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
25784 then :
25785 SCHED_YIELD_LIB=-lposix4
25786 fi
25787 ;;
25788 esac
25789 fi
25790
25791 ;;
25792 esac
25793 fi
25794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25795 conftest$ac_exeext conftest.$ac_ext
25796
25797 LIB_SCHED_YIELD="$SCHED_YIELD_LIB"
25798
25799
25800 gl_pthreadlib_body_done=done
25801 fi
25802
25803
25804
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816
25817
25818
25819
25820 if test $gl_cv_have_include_next = yes; then
25821 gl_cv_next_pthread_h='<'pthread.h'>'
25822 else
25823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <pthread.h>" >&5
25824 printf %s "checking absolute name of <pthread.h>... " >&6; }
25825 if test ${gl_cv_next_pthread_h+y}
25826 then :
25827 printf %s "(cached) " >&6
25828 else case e in #(
25829 e)
25830 if test $ac_cv_header_pthread_h = yes; then
25831
25832
25833
25834
25835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25836 /* end confdefs.h. */
25837 #include <pthread.h>
25838 _ACEOF
25839 case "$host_os" in
25840 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25841 *) gl_absname_cpp="$ac_cpp" ;;
25842 esac
25843
25844 case "$host_os" in
25845 mingw* | windows*)
25846 gl_dirsep_regex='[/\\]'
25847 ;;
25848 *)
25849 gl_dirsep_regex='\/'
25850 ;;
25851 esac
25852 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25853 gl_header_literal_regex=`echo 'pthread.h' \
25854 | sed -e "$gl_make_literal_regex_sed"`
25855 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25856 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25857 s|^/[^/]|//&|
25858 p
25859 q
25860 }'
25861
25862 gl_cv_absolute_pthread_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25863 sed -n "$gl_absolute_header_sed"`
25864
25865 gl_header=$gl_cv_absolute_pthread_h
25866 gl_cv_next_pthread_h='"'$gl_header'"'
25867 else
25868 gl_cv_next_pthread_h='<'pthread.h'>'
25869 fi
25870
25871 ;;
25872 esac
25873 fi
25874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_pthread_h" >&5
25875 printf "%s\n" "$gl_cv_next_pthread_h" >&6; }
25876 fi
25877 NEXT_PTHREAD_H=$gl_cv_next_pthread_h
25878
25879 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25880 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25881 gl_next_as_first_directive='<'pthread.h'>'
25882 else
25883 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25884 gl_next_as_first_directive=$gl_cv_next_pthread_h
25885 fi
25886 NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H=$gl_next_as_first_directive
25887
25888
25889
25890
25891 if test $ac_cv_header_pthread_h = yes; then
25892 HAVE_PTHREAD_H=1
25893
25894
25895 if { case "$host_os" in mingw* | windows*) true;; *) false;; esac; } \
25896 && test $gl_threads_api = windows; then
25897 HAVE_PTHREAD_H=0
25898 fi
25899
25900 else
25901 HAVE_PTHREAD_H=0
25902 fi
25903
25904
25905 ac_fn_c_check_type "$LINENO" "pthread_t" "ac_cv_type_pthread_t" "$ac_includes_default
25906 #if HAVE_PTHREAD_H
25907 #include <pthread.h>
25908 #endif
25909 "
25910 if test "x$ac_cv_type_pthread_t" = xyes
25911 then :
25912
25913 printf "%s\n" "#define HAVE_PTHREAD_T 1" >>confdefs.h
25914
25915
25916 fi
25917 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "$ac_includes_default
25918 #if HAVE_PTHREAD_H
25919 #include <pthread.h>
25920 #endif
25921 "
25922 if test "x$ac_cv_type_pthread_spinlock_t" = xyes
25923 then :
25924
25925 printf "%s\n" "#define HAVE_PTHREAD_SPINLOCK_T 1" >>confdefs.h
25926
25927
25928 fi
25929
25930 if test $ac_cv_type_pthread_t != yes; then
25931 HAVE_PTHREAD_T=0
25932 fi
25933 if test $ac_cv_type_pthread_spinlock_t != yes; then
25934 HAVE_PTHREAD_SPINLOCK_T=0
25935 fi
25936
25937
25938
25939
25940
25941 if { case "$host_os" in mingw* | windows*) true;; *) false;; esac; } \
25942 && test $gl_threads_api = windows; then
25943 REPLACE_PTHREAD_SPIN_INIT=1
25944 REPLACE_PTHREAD_SPIN_LOCK=1
25945 REPLACE_PTHREAD_SPIN_TRYLOCK=1
25946 REPLACE_PTHREAD_SPIN_UNLOCK=1
25947 REPLACE_PTHREAD_SPIN_DESTROY=1
25948 else
25949 if test $HAVE_PTHREAD_H = 0 || test $HAVE_PTHREAD_SPINLOCK_T = 0; then
25950 HAVE_PTHREAD_SPIN_INIT=0
25951 HAVE_PTHREAD_SPIN_LOCK=0
25952 HAVE_PTHREAD_SPIN_TRYLOCK=0
25953 HAVE_PTHREAD_SPIN_UNLOCK=0
25954 HAVE_PTHREAD_SPIN_DESTROY=0
25955 else
25956
25957
25958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_spin_init" >&5
25959 printf %s "checking for pthread_spin_init... " >&6; }
25960 if test ${gl_cv_func_pthread_spin_init_in_LIBMULTITHREAD+y}
25961 then :
25962 printf %s "(cached) " >&6
25963 else case e in #(
25964 e) gl_saved_LIBS="$LIBS"
25965 LIBS="$LIBS $LIBMULTITHREAD"
25966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25967 /* end confdefs.h. */
25968 #include <pthread.h>
25969
25970 int
25971 main (void)
25972 {
25973 pthread_spinlock_t lock;
25974 return pthread_spin_init (&lock, 0);
25975
25976 ;
25977 return 0;
25978 }
25979
25980 _ACEOF
25981 if ac_fn_c_try_link "$LINENO"
25982 then :
25983 gl_cv_func_pthread_spin_init_in_LIBMULTITHREAD=yes
25984 else case e in #(
25985 e) gl_cv_func_pthread_spin_init_in_LIBMULTITHREAD=no ;;
25986 esac
25987 fi
25988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25989 conftest$ac_exeext conftest.$ac_ext
25990 LIBS="$gl_saved_LIBS"
25991 ;;
25992 esac
25993 fi
25994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_spin_init_in_LIBMULTITHREAD" >&5
25995 printf "%s\n" "$gl_cv_func_pthread_spin_init_in_LIBMULTITHREAD" >&6; }
25996 if test $gl_cv_func_pthread_spin_init_in_LIBMULTITHREAD != yes; then
25997 HAVE_PTHREAD_SPIN_INIT=0
25998 REPLACE_PTHREAD_SPIN_INIT=1
25999 HAVE_PTHREAD_SPIN_LOCK=0
26000 REPLACE_PTHREAD_SPIN_LOCK=1
26001 HAVE_PTHREAD_SPIN_TRYLOCK=0
26002 REPLACE_PTHREAD_SPIN_TRYLOCK=1
26003 HAVE_PTHREAD_SPIN_UNLOCK=0
26004 REPLACE_PTHREAD_SPIN_UNLOCK=1
26005 HAVE_PTHREAD_SPIN_DESTROY=0
26006 REPLACE_PTHREAD_SPIN_DESTROY=1
26007 fi
26008
26009 fi
26010 fi
26011
26012
26013
26014 GL_GNULIB_PTHREAD_THREAD=0
26015
26016
26017
26018 GL_GNULIB_PTHREAD_ONCE=0
26019
26020
26021
26022 GL_GNULIB_PTHREAD_MUTEX=0
26023
26024
26025
26026 GL_GNULIB_PTHREAD_RWLOCK=0
26027
26028
26029
26030 GL_GNULIB_PTHREAD_COND=0
26031
26032
26033
26034 GL_GNULIB_PTHREAD_TSS=0
26035
26036
26037
26038 GL_GNULIB_PTHREAD_SPIN=0
26039
26040
26041
26042 GL_GNULIB_PTHREAD_MUTEX_TIMEDLOCK=0
26043
26044
26045
26046
26047 HAVE_POSIX_SIGNALBLOCKING=1;
26048 HAVE_PTHREAD_SIGMASK=1;
26049 HAVE_RAISE=1;
26050 HAVE_SIGSET_T=1;
26051 HAVE_SIGINFO_T=1;
26052 HAVE_SIGACTION=1;
26053 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
26054
26055 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
26056
26057 HAVE_SIGHANDLER_T=1;
26058 REPLACE_PTHREAD_SIGMASK=0;
26059 REPLACE_RAISE=0;
26060
26061
26062 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
26063 #include <signal.h>
26064 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
26065 #include <sys/types.h>
26066
26067 "
26068 if test "x$ac_cv_type_sigset_t" = xyes
26069 then :
26070
26071 printf "%s\n" "#define HAVE_SIGSET_T 1" >>confdefs.h
26072
26073 gl_cv_type_sigset_t=yes
26074 else case e in #(
26075 e) gl_cv_type_sigset_t=no ;;
26076 esac
26077 fi
26078
26079 if test $gl_cv_type_sigset_t != yes; then
26080 HAVE_SIGSET_T=0
26081 fi
26082
26083
26084
26085 GL_GNULIB_PTHREAD_SIGMASK=0
26086
26087
26088
26089 GL_GNULIB_RAISE=0
26090
26091
26092
26093 GL_GNULIB_SIGNAL_H_SIGPIPE=0
26094
26095
26096
26097 GL_GNULIB_SIGPROCMASK=0
26098
26099
26100
26101 GL_GNULIB_SIGACTION=0
26102
26103
26104
26105
26106
26107
26108 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
26109 REPLACE_REALLOC_FOR_REALLOC_POSIX=1
26110 fi
26111
26112
26113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
26114 printf %s "checking for ssize_t... " >&6; }
26115 if test ${gl_cv_ssize_t+y}
26116 then :
26117 printf %s "(cached) " >&6
26118 else case e in #(
26119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26120 /* end confdefs.h. */
26121 #include <sys/types.h>
26122 int
26123 main (void)
26124 {
26125 int x = sizeof (ssize_t *) + sizeof (ssize_t);
26126 return !x;
26127 ;
26128 return 0;
26129 }
26130 _ACEOF
26131 if ac_fn_c_try_compile "$LINENO"
26132 then :
26133 gl_cv_ssize_t=yes
26134 else case e in #(
26135 e) gl_cv_ssize_t=no ;;
26136 esac
26137 fi
26138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26139 esac
26140 fi
26141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ssize_t" >&5
26142 printf "%s\n" "$gl_cv_ssize_t" >&6; }
26143 if test $gl_cv_ssize_t = no; then
26144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether size_t is wider than 'long'" >&5
26145 printf %s "checking whether size_t is wider than 'long'... " >&6; }
26146 if test ${gl_cv_size_t_large+y}
26147 then :
26148 printf %s "(cached) " >&6
26149 else case e in #(
26150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26151 /* end confdefs.h. */
26152 #include <sys/types.h>
26153 typedef int array [2 * (sizeof (size_t) > sizeof (long)) - 1];
26154
26155 int
26156 main (void)
26157 {
26158
26159 ;
26160 return 0;
26161 }
26162 _ACEOF
26163 if ac_fn_c_try_compile "$LINENO"
26164 then :
26165 gl_cv_size_t_large=yes
26166 else case e in #(
26167 e) gl_cv_size_t_large=no ;;
26168 esac
26169 fi
26170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26171 esac
26172 fi
26173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_t_large" >&5
26174 printf "%s\n" "$gl_cv_size_t_large" >&6; }
26175 if test $gl_cv_size_t_large = yes; then
26176 gl_def_ssize_t='long long'
26177 else
26178 gl_def_ssize_t='long'
26179 fi
26180
26181 printf "%s\n" "#define ssize_t $gl_def_ssize_t" >>confdefs.h
26182
26183 fi
26184
26185
26186 HAVE_SCHED_YIELD=1;
26187 REPLACE_SCHED_YIELD=0;
26188
26189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc-compatible sys/cdefs.h" >&5
26190 printf %s "checking for glibc-compatible sys/cdefs.h... " >&6; }
26191 if test ${gl_cv_header_sys_cdefs_h+y}
26192 then :
26193 printf %s "(cached) " >&6
26194 else case e in #(
26195 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26196 /* end confdefs.h. */
26197
26198 #include <sys/cdefs.h>
26199 enum { foo = __GNUC_PREREQ (14, 1) } bar;
26200
26201 _ACEOF
26202 if ac_fn_c_try_compile "$LINENO"
26203 then :
26204 gl_cv_header_sys_cdefs_h=yes
26205 else case e in #(
26206 e) gl_cv_header_sys_cdefs_h=no ;;
26207 esac
26208 fi
26209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26210 esac
26211 fi
26212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_cdefs_h" >&5
26213 printf "%s\n" "$gl_cv_header_sys_cdefs_h" >&6; }
26214 if test "$gl_cv_header_sys_cdefs_h" = yes; then
26215 HAVE_SYS_CDEFS_H=1
26216 else
26217 HAVE_SYS_CDEFS_H=0
26218 fi
26219
26220
26221
26222
26223
26224
26225
26226
26227 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "#if HAVE_SYS_CDEFS_H
26228 #include <sys/cdefs.h>
26229 #endif
26230
26231 "
26232 if test "x$ac_cv_header_sched_h" = xyes
26233 then :
26234 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
26235
26236 fi
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246 if test $gl_cv_have_include_next = yes; then
26247 gl_cv_next_sched_h='<'sched.h'>'
26248 else
26249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sched.h>" >&5
26250 printf %s "checking absolute name of <sched.h>... " >&6; }
26251 if test ${gl_cv_next_sched_h+y}
26252 then :
26253 printf %s "(cached) " >&6
26254 else case e in #(
26255 e)
26256
26257
26258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26259 /* end confdefs.h. */
26260 #include <sched.h>
26261 _ACEOF
26262 case "$host_os" in
26263 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26264 *) gl_absname_cpp="$ac_cpp" ;;
26265 esac
26266
26267 case "$host_os" in
26268 mingw* | windows*)
26269 gl_dirsep_regex='[/\\]'
26270 ;;
26271 *)
26272 gl_dirsep_regex='\/'
26273 ;;
26274 esac
26275 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26276 gl_header_literal_regex=`echo 'sched.h' \
26277 | sed -e "$gl_make_literal_regex_sed"`
26278 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26279 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26280 s|^/[^/]|//&|
26281 p
26282 q
26283 }'
26284
26285 gl_cv_absolute_sched_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26286 sed -n "$gl_absolute_header_sed"`
26287
26288 gl_header=$gl_cv_absolute_sched_h
26289 gl_cv_next_sched_h='"'$gl_header'"'
26290
26291 ;;
26292 esac
26293 fi
26294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sched_h" >&5
26295 printf "%s\n" "$gl_cv_next_sched_h" >&6; }
26296 fi
26297 NEXT_SCHED_H=$gl_cv_next_sched_h
26298
26299 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26300 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26301 gl_next_as_first_directive='<'sched.h'>'
26302 else
26303 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26304 gl_next_as_first_directive=$gl_cv_next_sched_h
26305 fi
26306 NEXT_AS_FIRST_DIRECTIVE_SCHED_H=$gl_next_as_first_directive
26307
26308
26309
26310
26311
26312 if test "$ac_cv_header_sched_h" = yes; then
26313 HAVE_SCHED_H=1
26314 else
26315 HAVE_SCHED_H=0
26316 fi
26317
26318
26319 if test "$HAVE_SCHED_H" = 1; then
26320 ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#if HAVE_SYS_CDEFS_H
26321 #include <sys/cdefs.h>
26322 #endif
26323 #include <sched.h>
26324
26325 "
26326 if test "x$ac_cv_type_struct_sched_param" = xyes
26327 then :
26328 HAVE_STRUCT_SCHED_PARAM=1
26329 else case e in #(
26330 e) HAVE_STRUCT_SCHED_PARAM=0 ;;
26331 esac
26332 fi
26333
26334 else
26335 HAVE_STRUCT_SCHED_PARAM=0
26336 case "$host_os" in
26337 os2*)
26338 ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <spawn.h>
26339 "
26340 if test "x$ac_cv_type_struct_sched_param" = xyes
26341 then :
26342 HAVE_STRUCT_SCHED_PARAM=1
26343 fi
26344
26345 ;;
26346 vms)
26347 ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <pthread.h>
26348 "
26349 if test "x$ac_cv_type_struct_sched_param" = xyes
26350 then :
26351 HAVE_STRUCT_SCHED_PARAM=1
26352 fi
26353
26354 ;;
26355 esac
26356 fi
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367 GL_GNULIB_SCHED_YIELD=0
26368
26369
26370
26371 ac_fn_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
26372 if test "x$ac_cv_have_decl_setenv" = xyes
26373 then :
26374 ac_have_decl=1
26375 else case e in #(
26376 e) ac_have_decl=0 ;;
26377 esac
26378 fi
26379 printf "%s\n" "#define HAVE_DECL_SETENV $ac_have_decl" >>confdefs.h
26380
26381
26382 ac_fn_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
26383 if test "x$ac_cv_have_decl__putenv" = xyes
26384 then :
26385 ac_have_decl=1
26386 else case e in #(
26387 e) ac_have_decl=0 ;;
26388 esac
26389 fi
26390 printf "%s\n" "#define HAVE_DECL__PUTENV $ac_have_decl" >>confdefs.h
26391
26392
26393
26394
26395 if test $ac_cv_have_decl_setenv = no; then
26396 HAVE_DECL_SETENV=0
26397 fi
26398
26399
26400
26401
26402 ac_fn_c_check_header_compile "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
26403 if test "x$ac_cv_header_search_h" = xyes
26404 then :
26405 printf "%s\n" "#define HAVE_SEARCH_H 1" >>confdefs.h
26406
26407 fi
26408
26409
26410
26411
26412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tsearch" >&5
26413 printf %s "checking for tsearch... " >&6; }
26414 if test ${gl_cv_onwards_func_tsearch+y}
26415 then :
26416 printf %s "(cached) " >&6
26417 else case e in #(
26418 e)
26419 exec 9>&6 6>/dev/null
26420
26421 case "$host_os" in
26422
26423 linux*-android*)
26424 ac_fn_check_decl "$LINENO" "tsearch" "ac_cv_have_decl_tsearch" "#include <search.h>
26425 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26426 if test "x$ac_cv_have_decl_tsearch" = xyes
26427 then :
26428
26429 fi
26430 if test $ac_cv_have_decl_tsearch = yes; then
26431 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
26432 if test "x$ac_cv_func_tsearch" = xyes
26433 then :
26434
26435 fi
26436
26437 if test $ac_cv_func_tsearch = yes; then
26438 gl_cv_onwards_func_tsearch=yes
26439 else
26440 gl_cv_onwards_func_tsearch='future OS version'
26441 fi
26442 else
26443 gl_cv_onwards_func_tsearch='future OS version'
26444 fi
26445 ;;
26446
26447
26448 *)
26449 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
26450 if test "x$ac_cv_func_tsearch" = xyes
26451 then :
26452
26453 fi
26454
26455 gl_cv_onwards_func_tsearch=$ac_cv_func_tsearch
26456 ;;
26457
26458 esac
26459
26460 exec 6>&9 9>&-
26461
26462 ;;
26463 esac
26464 fi
26465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_tsearch" >&5
26466 printf "%s\n" "$gl_cv_onwards_func_tsearch" >&6; }
26467
26468 case "$gl_cv_onwards_func_tsearch" in
26469 future*) ac_cv_func_tsearch=no ;;
26470 *) ac_cv_func_tsearch=$gl_cv_onwards_func_tsearch ;;
26471 esac
26472 if test $ac_cv_func_tsearch = yes; then
26473
26474 printf "%s\n" "#define HAVE_TSEARCH 1" >>confdefs.h
26475
26476 fi
26477
26478
26479
26480
26481
26482 ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
26483 if test "x$ac_cv_type_uid_t" = xyes
26484 then :
26485
26486 else case e in #(
26487 e)
26488 printf "%s\n" "#define uid_t int" >>confdefs.h
26489 ;;
26490 esac
26491 fi
26492
26493 ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
26494 if test "x$ac_cv_type_gid_t" = xyes
26495 then :
26496
26497 else case e in #(
26498 e)
26499 printf "%s\n" "#define gid_t int" >>confdefs.h
26500 ;;
26501 esac
26502 fi
26503
26504 :
26505
26506
26507
26508
26509
26510
26511
26512
26513
26514
26515
26516
26517
26518 if test $gl_cv_have_include_next = yes; then
26519 gl_cv_next_signal_h='<'signal.h'>'
26520 else
26521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
26522 printf %s "checking absolute name of <signal.h>... " >&6; }
26523 if test ${gl_cv_next_signal_h+y}
26524 then :
26525 printf %s "(cached) " >&6
26526 else case e in #(
26527 e)
26528
26529
26530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26531 /* end confdefs.h. */
26532 #include <signal.h>
26533 _ACEOF
26534 case "$host_os" in
26535 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26536 *) gl_absname_cpp="$ac_cpp" ;;
26537 esac
26538
26539 case "$host_os" in
26540 mingw* | windows*)
26541 gl_dirsep_regex='[/\\]'
26542 ;;
26543 *)
26544 gl_dirsep_regex='\/'
26545 ;;
26546 esac
26547 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26548 gl_header_literal_regex=`echo 'signal.h' \
26549 | sed -e "$gl_make_literal_regex_sed"`
26550 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26551 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26552 s|^/[^/]|//&|
26553 p
26554 q
26555 }'
26556
26557 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26558 sed -n "$gl_absolute_header_sed"`
26559
26560 gl_header=$gl_cv_absolute_signal_h
26561 gl_cv_next_signal_h='"'$gl_header'"'
26562
26563 ;;
26564 esac
26565 fi
26566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
26567 printf "%s\n" "$gl_cv_next_signal_h" >&6; }
26568 fi
26569 NEXT_SIGNAL_H=$gl_cv_next_signal_h
26570
26571 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26572 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26573 gl_next_as_first_directive='<'signal.h'>'
26574 else
26575 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26576 gl_next_as_first_directive=$gl_cv_next_signal_h
26577 fi
26578 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
26579
26580
26581
26582
26583
26584 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
26585 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
26586 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
26587 #include <signal.h>
26588
26589 "
26590 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
26591 then :
26592
26593 else case e in #(
26594 e) HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 ;;
26595 esac
26596 fi
26597
26598
26599
26600
26601
26602
26603
26604 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
26605 #include <signal.h>
26606
26607 "
26608 if test "x$ac_cv_type_sighandler_t" = xyes
26609 then :
26610
26611 else case e in #(
26612 e) HAVE_SIGHANDLER_T=0 ;;
26613 esac
26614 fi
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624 HAVE_DECL_FCLOSEALL=1;
26625 HAVE_DECL_FPURGE=1;
26626 HAVE_DECL_FSEEKO=1;
26627 HAVE_DECL_FTELLO=1;
26628 HAVE_DECL_GETDELIM=1;
26629 HAVE_DECL_GETLINE=1;
26630 HAVE_DECL_GETW=1;
26631 HAVE_DECL_OBSTACK_PRINTF=1;
26632 HAVE_DECL_PUTW=1;
26633 HAVE_DECL_SNPRINTF=1;
26634 HAVE_DECL_VSNPRINTF=1;
26635 HAVE_DPRINTF=1;
26636 HAVE_FSEEKO=1;
26637 HAVE_FTELLO=1;
26638 HAVE_PCLOSE=1;
26639 HAVE_POPEN=1;
26640 HAVE_RENAMEAT=1;
26641 HAVE_VASPRINTF=1;
26642 HAVE_VDPRINTF=1;
26643 REPLACE_DPRINTF=0;
26644 REPLACE_FCLOSE=0;
26645 REPLACE_FDOPEN=0;
26646 REPLACE_FFLUSH=0;
26647 REPLACE_FOPEN=0;
26648 REPLACE_FOPEN_FOR_FOPEN_GNU=0;
26649 REPLACE_FPRINTF=0;
26650 REPLACE_FPURGE=0;
26651 REPLACE_FREOPEN=0;
26652 REPLACE_FSEEK=0;
26653 REPLACE_FSEEKO=0;
26654 REPLACE_FTELL=0;
26655 REPLACE_FTELLO=0;
26656 REPLACE_GETDELIM=0;
26657 REPLACE_GETLINE=0;
26658 REPLACE_OBSTACK_PRINTF=0;
26659 REPLACE_PERROR=0;
26660 REPLACE_POPEN=0;
26661 REPLACE_PRINTF=0;
26662 REPLACE_REMOVE=0;
26663 REPLACE_RENAME=0;
26664 REPLACE_RENAMEAT=0;
26665 REPLACE_SNPRINTF=0;
26666 REPLACE_SPRINTF=0;
26667 REPLACE_STDIO_READ_FUNCS=0;
26668 REPLACE_STDIO_WRITE_FUNCS=0;
26669 REPLACE_TMPFILE=0;
26670 REPLACE_VASPRINTF=0;
26671 REPLACE_VDPRINTF=0;
26672 REPLACE_VFPRINTF=0;
26673 REPLACE_VPRINTF=0;
26674 REPLACE_VSNPRINTF=0;
26675 REPLACE_VSPRINTF=0;
26676
26677
26678
26679
26680
26681
26682
26683
26684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
26685 printf %s "checking whether snprintf returns a byte count as in C99... " >&6; }
26686 if test ${gl_cv_func_snprintf_retval_c99+y}
26687 then :
26688 printf %s "(cached) " >&6
26689 else case e in #(
26690 e)
26691 if test "$cross_compiling" = yes
26692 then :
26693 case "$host_os" in
26694 # Guess yes on glibc systems.
26695 *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26696 # Guess yes on musl systems.
26697 *-musl* | midipix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26698 # Guess yes on FreeBSD >= 5.
26699 freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";;
26700 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26701 midnightbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26702 # Guess yes on Mac OS X >= 10.3.
26703 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
26704 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26705 # Guess yes on OpenBSD >= 3.9.
26706 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
26707 gl_cv_func_snprintf_retval_c99="guessing no";;
26708 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26709 # Guess yes on Solaris >= 2.10.
26710 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
26711 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
26712 # Guess yes on AIX >= 4.
26713 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
26714 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26715 # Guess yes on NetBSD >= 3.
26716 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
26717 gl_cv_func_snprintf_retval_c99="guessing no";;
26718 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26719 # Guess yes on BeOS.
26720 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26721 # Guess yes on Android.
26722 linux*-android*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26723 # Guess yes on MSVC, no on mingw.
26724 windows*-msvc*) gl_cv_func_snprintf_retval_c99="guessing yes" ;;
26725 mingw* | windows*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26726 /* end confdefs.h. */
26727
26728 #ifdef _MSC_VER
26729 Known
26730 #endif
26731
26732 _ACEOF
26733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26734 $EGREP_TRADITIONAL "Known" >/dev/null 2>&1
26735 then :
26736 gl_cv_func_snprintf_retval_c99="guessing yes"
26737 else case e in #(
26738 e) gl_cv_func_snprintf_retval_c99="guessing no" ;;
26739 esac
26740 fi
26741 rm -rf conftest*
26742
26743 ;;
26744 # If we don't know, obey --enable-cross-guesses.
26745 *) gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";;
26746 esac
26747
26748 else case e in #(
26749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26750 /* end confdefs.h. */
26751
26752 #include <stdio.h>
26753 #include <string.h>
26754 #if HAVE_SNPRINTF
26755 # define my_snprintf snprintf
26756 #else
26757 # include <stdarg.h>
26758 static int my_snprintf (char *buf, int size, const char *format, ...)
26759 {
26760 va_list args;
26761 int ret;
26762 va_start (args, format);
26763 ret = vsnprintf (buf, size, format, args);
26764 va_end (args);
26765 return ret;
26766 }
26767 #endif
26768 static char buf[100];
26769 int main ()
26770 {
26771 strcpy (buf, "ABCDEF");
26772 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
26773 return 1;
26774 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
26775 return 2;
26776 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
26777 return 3;
26778 return 0;
26779 }
26780 _ACEOF
26781 if ac_fn_c_try_run "$LINENO"
26782 then :
26783 gl_cv_func_snprintf_retval_c99=yes
26784 else case e in #(
26785 e) gl_cv_func_snprintf_retval_c99=no ;;
26786 esac
26787 fi
26788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26789 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26790 esac
26791 fi
26792
26793 ;;
26794 esac
26795 fi
26796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
26797 printf "%s\n" "$gl_cv_func_snprintf_retval_c99" >&6; }
26798
26799
26800
26801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
26802 printf %s "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
26803 if test ${gl_cv_func_printf_positions+y}
26804 then :
26805 printf %s "(cached) " >&6
26806 else case e in #(
26807 e)
26808 if test "$cross_compiling" = yes
26809 then :
26810
26811 case "$host_os" in
26812 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
26813 gl_cv_func_printf_positions="guessing no";;
26814 beos*)
26815 gl_cv_func_printf_positions="guessing no";;
26816 # Guess yes on Android.
26817 linux*-android*)
26818 gl_cv_func_printf_positions="guessing yes";;
26819 # Guess no on native Windows.
26820 mingw* | windows* | pw*)
26821 gl_cv_func_printf_positions="guessing no";;
26822 *)
26823 gl_cv_func_printf_positions="guessing yes";;
26824 esac
26825
26826 else case e in #(
26827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26828 /* end confdefs.h. */
26829
26830 #include <stdio.h>
26831 #include <string.h>
26832 /* The string "%2$d %1$d", with dollar characters protected from the shell's
26833 dollar expansion (possibly an autoconf bug). */
26834 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
26835 static char buf[100];
26836 int main ()
26837 {
26838 sprintf (buf, format, 33, 55);
26839 return (strcmp (buf, "55 33") != 0);
26840 }
26841 _ACEOF
26842 if ac_fn_c_try_run "$LINENO"
26843 then :
26844 gl_cv_func_printf_positions=yes
26845 else case e in #(
26846 e) gl_cv_func_printf_positions=no ;;
26847 esac
26848 fi
26849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26850 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26851 esac
26852 fi
26853
26854 ;;
26855 esac
26856 fi
26857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
26858 printf "%s\n" "$gl_cv_func_printf_positions" >&6; }
26859
26860 ac_fn_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
26861 if test "x$ac_cv_have_decl_snprintf" = xyes
26862 then :
26863 ac_have_decl=1
26864 else case e in #(
26865 e) ac_have_decl=0 ;;
26866 esac
26867 fi
26868 printf "%s\n" "#define HAVE_DECL_SNPRINTF $ac_have_decl" >>confdefs.h
26869
26870
26871
26872 GL_GNULIB_DPRINTF=0
26873
26874
26875
26876 GL_GNULIB_DZPRINTF=0
26877
26878
26879
26880 GL_GNULIB_FCLOSE=0
26881
26882
26883
26884 GL_GNULIB_FDOPEN=0
26885
26886
26887
26888 GL_GNULIB_FFLUSH=0
26889
26890
26891
26892 GL_GNULIB_FGETC=0
26893
26894
26895
26896 GL_GNULIB_FGETS=0
26897
26898
26899
26900 GL_GNULIB_FOPEN=0
26901
26902
26903
26904 GL_GNULIB_FOPEN_GNU=0
26905
26906
26907
26908 GL_GNULIB_FPRINTF=0
26909
26910
26911
26912 GL_GNULIB_FPRINTF_POSIX=0
26913
26914
26915
26916 GL_GNULIB_FPURGE=0
26917
26918
26919
26920 GL_GNULIB_FPUTC=0
26921
26922
26923
26924 GL_GNULIB_FPUTS=0
26925
26926
26927
26928 GL_GNULIB_FREAD=0
26929
26930
26931
26932 GL_GNULIB_FREOPEN=0
26933
26934
26935
26936 GL_GNULIB_FSCANF=0
26937
26938
26939
26940 GL_GNULIB_FSEEK=0
26941
26942
26943
26944 GL_GNULIB_FSEEKO=0
26945
26946
26947
26948 GL_GNULIB_FTELL=0
26949
26950
26951
26952 GL_GNULIB_FTELLO=0
26953
26954
26955
26956 GL_GNULIB_FWRITE=0
26957
26958
26959
26960 GL_GNULIB_FZPRINTF=0
26961
26962
26963
26964 GL_GNULIB_GETC=0
26965
26966
26967
26968 GL_GNULIB_GETCHAR=0
26969
26970
26971
26972 GL_GNULIB_GETDELIM=0
26973
26974
26975
26976 GL_GNULIB_GETLINE=0
26977
26978
26979
26980 GL_GNULIB_OBSTACK_PRINTF=0
26981
26982
26983
26984 GL_GNULIB_OBSTACK_PRINTF_POSIX=0
26985
26986
26987
26988 GL_GNULIB_OBSTACK_ZPRINTF=0
26989
26990
26991
26992 GL_GNULIB_PCLOSE=0
26993
26994
26995
26996 GL_GNULIB_PERROR=0
26997
26998
26999
27000 GL_GNULIB_POPEN=0
27001
27002
27003
27004 GL_GNULIB_PRINTF=0
27005
27006
27007
27008 GL_GNULIB_PRINTF_POSIX=0
27009
27010
27011
27012 GL_GNULIB_PUTC=0
27013
27014
27015
27016 GL_GNULIB_PUTCHAR=0
27017
27018
27019
27020 GL_GNULIB_PUTS=0
27021
27022
27023
27024 GL_GNULIB_REMOVE=0
27025
27026
27027
27028 GL_GNULIB_RENAME=0
27029
27030
27031
27032 GL_GNULIB_RENAMEAT=0
27033
27034
27035
27036 GL_GNULIB_SCANF=0
27037
27038
27039
27040 GL_GNULIB_SNPRINTF=0
27041
27042
27043
27044 GL_GNULIB_SNZPRINTF=0
27045
27046
27047
27048 GL_GNULIB_SPRINTF_POSIX=0
27049
27050
27051
27052 GL_GNULIB_STDIO_H_NONBLOCKING=0
27053
27054
27055
27056 GL_GNULIB_STDIO_H_SIGPIPE=0
27057
27058
27059
27060 GL_GNULIB_SZPRINTF=0
27061
27062
27063
27064 GL_GNULIB_TMPFILE=0
27065
27066
27067
27068 GL_GNULIB_VASPRINTF=0
27069
27070
27071
27072 GL_GNULIB_VASZPRINTF=0
27073
27074
27075
27076 GL_GNULIB_VFSCANF=0
27077
27078
27079
27080 GL_GNULIB_VSCANF=0
27081
27082
27083
27084 GL_GNULIB_VDPRINTF=0
27085
27086
27087
27088 GL_GNULIB_VDZPRINTF=0
27089
27090
27091
27092 GL_GNULIB_VFPRINTF=0
27093
27094
27095
27096 GL_GNULIB_VFPRINTF_POSIX=0
27097
27098
27099
27100 GL_GNULIB_VFZPRINTF=0
27101
27102
27103
27104 GL_GNULIB_VPRINTF=0
27105
27106
27107
27108 GL_GNULIB_VPRINTF_POSIX=0
27109
27110
27111
27112 GL_GNULIB_VSNPRINTF=0
27113
27114
27115
27116 GL_GNULIB_VSNZPRINTF=0
27117
27118
27119
27120 GL_GNULIB_VSPRINTF_POSIX=0
27121
27122
27123
27124 GL_GNULIB_VSZPRINTF=0
27125
27126
27127
27128 GL_GNULIB_VZPRINTF=0
27129
27130
27131
27132 GL_GNULIB_ZPRINTF=0
27133
27134
27135
27136 GL_GNULIB_MDA_FCLOSEALL=1
27137
27138
27139
27140 GL_GNULIB_MDA_FDOPEN=1
27141
27142
27143
27144 GL_GNULIB_MDA_FILENO=1
27145
27146
27147
27148 GL_GNULIB_MDA_GETW=1
27149
27150
27151
27152 GL_GNULIB_MDA_PUTW=1
27153
27154
27155
27156 GL_GNULIB_MDA_TEMPNAM=1
27157
27158
27159
27160
27161
27162
27163
27164 NULLPTR_T_NEEDS_STDDEF=1;
27165 STDDEF_NOT_IDEMPOTENT=0;
27166 REPLACE_NULL=0;
27167 HAVE_MAX_ALIGN_T=1;
27168
27169
27170
27171
27172
27173
27174 GL_GENERATE_STDDEF_H=false
27175
27176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
27177 printf %s "checking for good max_align_t... " >&6; }
27178 if test ${gl_cv_type_max_align_t+y}
27179 then :
27180 printf %s "(cached) " >&6
27181 else case e in #(
27182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27183 /* end confdefs.h. */
27184 /* On FreeBSD 12.0/x86, max_align_t defined by <stddef.h> has
27185 the correct alignment with the default (wrong) definition of
27186 _Alignof, but a wrong alignment as soon as we activate an
27187 ISO C compliant _Alignof definition. */
27188 #if ((defined __GNUC__ && 4 <= __GNUC__) || defined __clang__) && !defined __cplusplus
27189 #define _Alignof(type) __builtin_offsetof (struct { char __a; type __b; }, __b)
27190 #endif
27191 #include <stddef.h>
27192 unsigned int s = sizeof (max_align_t);
27193 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
27194 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
27195 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
27196 #endif
27197 typedef struct { char a; max_align_t b; } max_helper;
27198 typedef struct { char a; long b; } long_helper;
27199 typedef struct { char a; double b; } double_helper;
27200 typedef struct { char a; long double b; } long_double_helper;
27201 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
27202 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
27203 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
27204
27205 int
27206 main (void)
27207 {
27208
27209 ;
27210 return 0;
27211 }
27212 _ACEOF
27213 if ac_fn_c_try_compile "$LINENO"
27214 then :
27215 gl_cv_type_max_align_t=yes
27216 else case e in #(
27217 e) gl_cv_type_max_align_t=no ;;
27218 esac
27219 fi
27220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27221 ;;
27222 esac
27223 fi
27224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
27225 printf "%s\n" "$gl_cv_type_max_align_t" >&6; }
27226 if test $gl_cv_type_max_align_t = no; then
27227 HAVE_MAX_ALIGN_T=0
27228 GL_GENERATE_STDDEF_H=true
27229 fi
27230
27231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
27232 printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; }
27233 if test ${gl_cv_decl_null_works+y}
27234 then :
27235 printf %s "(cached) " >&6
27236 else case e in #(
27237 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27238 /* end confdefs.h. */
27239 #include <stddef.h>
27240 int test[2 * (sizeof NULL == sizeof (void *)) -1];
27241
27242 int
27243 main (void)
27244 {
27245
27246 ;
27247 return 0;
27248 }
27249 _ACEOF
27250 if ac_fn_c_try_compile "$LINENO"
27251 then :
27252 gl_cv_decl_null_works=yes
27253 else case e in #(
27254 e) gl_cv_decl_null_works=no ;;
27255 esac
27256 fi
27257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
27258 esac
27259 fi
27260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
27261 printf "%s\n" "$gl_cv_decl_null_works" >&6; }
27262 if test $gl_cv_decl_null_works = no; then
27263 REPLACE_NULL=1
27264 GL_GENERATE_STDDEF_H=true
27265 fi
27266
27267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unreachable" >&5
27268 printf %s "checking for unreachable... " >&6; }
27269 if test ${gl_cv_func_unreachable+y}
27270 then :
27271 printf %s "(cached) " >&6
27272 else case e in #(
27273 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27274 /* end confdefs.h. */
27275 #include <stddef.h>
27276
27277 int
27278 main (void)
27279 {
27280 unreachable ();
27281
27282 ;
27283 return 0;
27284 }
27285 _ACEOF
27286 if ac_fn_c_try_link "$LINENO"
27287 then :
27288 gl_cv_func_unreachable=yes
27289 else case e in #(
27290 e) gl_cv_func_unreachable=no ;;
27291 esac
27292 fi
27293 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27294 conftest$ac_exeext conftest.$ac_ext
27295 ;;
27296 esac
27297 fi
27298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unreachable" >&5
27299 printf "%s\n" "$gl_cv_func_unreachable" >&6; }
27300 if test $gl_cv_func_unreachable = no; then
27301 GL_GENERATE_STDDEF_H=true
27302 fi
27303
27304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether nullptr_t needs <stddef.h>" >&5
27305 printf %s "checking whether nullptr_t needs <stddef.h>... " >&6; }
27306 if test ${gl_cv_nullptr_t_needs_stddef+y}
27307 then :
27308 printf %s "(cached) " >&6
27309 else case e in #(
27310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27311 /* end confdefs.h. */
27312 nullptr_t x;
27313 _ACEOF
27314 if ac_fn_c_try_compile "$LINENO"
27315 then :
27316 gl_cv_nullptr_t_needs_stddef=no
27317 else case e in #(
27318 e) gl_cv_nullptr_t_needs_stddef=yes ;;
27319 esac
27320 fi
27321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
27322 esac
27323 fi
27324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_nullptr_t_needs_stddef" >&5
27325 printf "%s\n" "$gl_cv_nullptr_t_needs_stddef" >&6; }
27326 if test "$gl_cv_nullptr_t_needs_stddef" = no; then
27327 NULLPTR_T_NEEDS_STDDEF=0
27328 GL_GENERATE_STDDEF_H=true
27329 fi
27330
27331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clean definition of __STDC_VERSION_STDDEF_H__" >&5
27332 printf %s "checking for clean definition of __STDC_VERSION_STDDEF_H__... " >&6; }
27333 if test ${gl_cv_clean_version_stddef+y}
27334 then :
27335 printf %s "(cached) " >&6
27336 else case e in #(
27337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27338 /* end confdefs.h. */
27339 /* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114870 */
27340 #include <stddef.h>
27341 #undef __STDC_VERSION_STDDEF_H__
27342 #include <time.h>
27343 #ifdef __STDC_VERSION_STDDEF_H__
27344 # error "<time.h> defines __STDC_VERSION_STDDEF_H__"
27345 #endif
27346
27347 _ACEOF
27348 if ac_fn_c_try_cpp "$LINENO"
27349 then :
27350 gl_cv_clean_version_stddef=yes
27351 else case e in #(
27352 e) gl_cv_clean_version_stddef=no ;;
27353 esac
27354 fi
27355 rm -f conftest.err conftest.i conftest.$ac_ext ;;
27356 esac
27357 fi
27358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_clean_version_stddef" >&5
27359 printf "%s\n" "$gl_cv_clean_version_stddef" >&6; }
27360 if test "$gl_cv_clean_version_stddef" = no; then
27361 STDDEF_NOT_IDEMPOTENT=1
27362 GL_GENERATE_STDDEF_H=true
27363 fi
27364
27365 if $GL_GENERATE_STDDEF_H; then
27366
27367
27368
27369
27370
27371
27372
27373
27374 if test $gl_cv_have_include_next = yes; then
27375 gl_cv_next_stddef_h='<'stddef.h'>'
27376 else
27377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
27378 printf %s "checking absolute name of <stddef.h>... " >&6; }
27379 if test ${gl_cv_next_stddef_h+y}
27380 then :
27381 printf %s "(cached) " >&6
27382 else case e in #(
27383 e)
27384
27385
27386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27387 /* end confdefs.h. */
27388 #include <stddef.h>
27389 _ACEOF
27390 case "$host_os" in
27391 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27392 *) gl_absname_cpp="$ac_cpp" ;;
27393 esac
27394
27395 case "$host_os" in
27396 mingw* | windows*)
27397 gl_dirsep_regex='[/\\]'
27398 ;;
27399 *)
27400 gl_dirsep_regex='\/'
27401 ;;
27402 esac
27403 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27404 gl_header_literal_regex=`echo 'stddef.h' \
27405 | sed -e "$gl_make_literal_regex_sed"`
27406 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27407 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27408 s|^/[^/]|//&|
27409 p
27410 q
27411 }'
27412
27413 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27414 sed -n "$gl_absolute_header_sed"`
27415
27416 gl_header=$gl_cv_absolute_stddef_h
27417 gl_cv_next_stddef_h='"'$gl_header'"'
27418
27419 ;;
27420 esac
27421 fi
27422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
27423 printf "%s\n" "$gl_cv_next_stddef_h" >&6; }
27424 fi
27425 NEXT_STDDEF_H=$gl_cv_next_stddef_h
27426
27427 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27428 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27429 gl_next_as_first_directive='<'stddef.h'>'
27430 else
27431 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27432 gl_next_as_first_directive=$gl_cv_next_stddef_h
27433 fi
27434 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
27435
27436
27437
27438
27439 fi
27440
27441
27442
27443 ac_fn_check_decl "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
27444 if test "x$ac_cv_have_decl_fcloseall" = xyes
27445 then :
27446 ac_have_decl=1
27447 else case e in #(
27448 e) ac_have_decl=0 ;;
27449 esac
27450 fi
27451 printf "%s\n" "#define HAVE_DECL_FCLOSEALL $ac_have_decl" >>confdefs.h
27452
27453 ac_fn_check_decl "$LINENO" "getw" "ac_cv_have_decl_getw" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
27454 if test "x$ac_cv_have_decl_getw" = xyes
27455 then :
27456 ac_have_decl=1
27457 else case e in #(
27458 e) ac_have_decl=0 ;;
27459 esac
27460 fi
27461 printf "%s\n" "#define HAVE_DECL_GETW $ac_have_decl" >>confdefs.h
27462
27463 ac_fn_check_decl "$LINENO" "putw" "ac_cv_have_decl_putw" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
27464 if test "x$ac_cv_have_decl_putw" = xyes
27465 then :
27466 ac_have_decl=1
27467 else case e in #(
27468 e) ac_have_decl=0 ;;
27469 esac
27470 fi
27471 printf "%s\n" "#define HAVE_DECL_PUTW $ac_have_decl" >>confdefs.h
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483 if test $gl_cv_have_include_next = yes; then
27484 gl_cv_next_stdio_h='<'stdio.h'>'
27485 else
27486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
27487 printf %s "checking absolute name of <stdio.h>... " >&6; }
27488 if test ${gl_cv_next_stdio_h+y}
27489 then :
27490 printf %s "(cached) " >&6
27491 else case e in #(
27492 e)
27493
27494
27495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27496 /* end confdefs.h. */
27497 #include <stdio.h>
27498 _ACEOF
27499 case "$host_os" in
27500 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27501 *) gl_absname_cpp="$ac_cpp" ;;
27502 esac
27503
27504 case "$host_os" in
27505 mingw* | windows*)
27506 gl_dirsep_regex='[/\\]'
27507 ;;
27508 *)
27509 gl_dirsep_regex='\/'
27510 ;;
27511 esac
27512 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27513 gl_header_literal_regex=`echo 'stdio.h' \
27514 | sed -e "$gl_make_literal_regex_sed"`
27515 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27516 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27517 s|^/[^/]|//&|
27518 p
27519 q
27520 }'
27521
27522 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27523 sed -n "$gl_absolute_header_sed"`
27524
27525 gl_header=$gl_cv_absolute_stdio_h
27526 gl_cv_next_stdio_h='"'$gl_header'"'
27527
27528 ;;
27529 esac
27530 fi
27531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
27532 printf "%s\n" "$gl_cv_next_stdio_h" >&6; }
27533 fi
27534 NEXT_STDIO_H=$gl_cv_next_stdio_h
27535
27536 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27537 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27538 gl_next_as_first_directive='<'stdio.h'>'
27539 else
27540 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27541 gl_next_as_first_directive=$gl_cv_next_stdio_h
27542 fi
27543 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
27544
27545
27546
27547
27548
27549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
27550 printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; }
27551 if test ${gl_cv_func_printf_attribute_flavor+y}
27552 then :
27553 printf %s "(cached) " >&6
27554 else case e in #(
27555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27556 /* end confdefs.h. */
27557
27558 #define __STDC_FORMAT_MACROS 1
27559 #include <stdio.h>
27560 #include <inttypes.h>
27561 /* For non-mingw systems, compilation will trivially succeed.
27562 For mingw, compilation will succeed for older mingw (system
27563 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
27564 #if (defined _WIN32 && ! defined __CYGWIN__) && \
27565 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
27566 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
27567 #endif
27568
27569 int
27570 main (void)
27571 {
27572
27573 ;
27574 return 0;
27575 }
27576 _ACEOF
27577 if ac_fn_c_try_compile "$LINENO"
27578 then :
27579 gl_cv_func_printf_attribute_flavor=system
27580 else case e in #(
27581 e) gl_cv_func_printf_attribute_flavor=gnu ;;
27582 esac
27583 fi
27584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
27585 esac
27586 fi
27587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
27588 printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; }
27589 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
27590
27591 printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
27592
27593 fi
27594
27595
27596
27597
27598
27599
27600
27601
27602
27603
27604
27605
27606
27607
27608
27609 if test $ac_cv_have_decl_fcloseall = no; then
27610 HAVE_DECL_FCLOSEALL=0
27611 fi
27612
27613
27614 if test $ac_cv_have_decl_getw = no; then
27615 HAVE_DECL_GETW=0
27616 fi
27617
27618
27619 if test $ac_cv_have_decl_putw = no; then
27620 HAVE_DECL_PUTW=0
27621 fi
27622
27623 ac_fn_check_decl "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
27624 if test "x$ac_cv_have_decl_ecvt" = xyes
27625 then :
27626 ac_have_decl=1
27627 else case e in #(
27628 e) ac_have_decl=0 ;;
27629 esac
27630 fi
27631 printf "%s\n" "#define HAVE_DECL_ECVT $ac_have_decl" >>confdefs.h
27632
27633 ac_fn_check_decl "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
27634 if test "x$ac_cv_have_decl_fcvt" = xyes
27635 then :
27636 ac_have_decl=1
27637 else case e in #(
27638 e) ac_have_decl=0 ;;
27639 esac
27640 fi
27641 printf "%s\n" "#define HAVE_DECL_FCVT $ac_have_decl" >>confdefs.h
27642
27643 ac_fn_check_decl "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
27644 if test "x$ac_cv_have_decl_gcvt" = xyes
27645 then :
27646 ac_have_decl=1
27647 else case e in #(
27648 e) ac_have_decl=0 ;;
27649 esac
27650 fi
27651 printf "%s\n" "#define HAVE_DECL_GCVT $ac_have_decl" >>confdefs.h
27652
27653
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663 if test $gl_cv_have_include_next = yes; then
27664 gl_cv_next_stdlib_h='<'stdlib.h'>'
27665 else
27666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
27667 printf %s "checking absolute name of <stdlib.h>... " >&6; }
27668 if test ${gl_cv_next_stdlib_h+y}
27669 then :
27670 printf %s "(cached) " >&6
27671 else case e in #(
27672 e)
27673
27674
27675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27676 /* end confdefs.h. */
27677 #include <stdlib.h>
27678 _ACEOF
27679 case "$host_os" in
27680 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27681 *) gl_absname_cpp="$ac_cpp" ;;
27682 esac
27683
27684 case "$host_os" in
27685 mingw* | windows*)
27686 gl_dirsep_regex='[/\\]'
27687 ;;
27688 *)
27689 gl_dirsep_regex='\/'
27690 ;;
27691 esac
27692 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27693 gl_header_literal_regex=`echo 'stdlib.h' \
27694 | sed -e "$gl_make_literal_regex_sed"`
27695 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27696 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27697 s|^/[^/]|//&|
27698 p
27699 q
27700 }'
27701
27702 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27703 sed -n "$gl_absolute_header_sed"`
27704
27705 gl_header=$gl_cv_absolute_stdlib_h
27706 gl_cv_next_stdlib_h='"'$gl_header'"'
27707
27708 ;;
27709 esac
27710 fi
27711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
27712 printf "%s\n" "$gl_cv_next_stdlib_h" >&6; }
27713 fi
27714 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
27715
27716 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27717 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27718 gl_next_as_first_directive='<'stdlib.h'>'
27719 else
27720 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27721 gl_next_as_first_directive=$gl_cv_next_stdlib_h
27722 fi
27723 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether MB_CUR_MAX is correct" >&5
27738 printf %s "checking whether MB_CUR_MAX is correct... " >&6; }
27739 if test ${gl_cv_macro_MB_CUR_MAX_good+y}
27740 then :
27741 printf %s "(cached) " >&6
27742 else case e in #(
27743 e)
27744 case "$host_os" in
27745 # Guess no on Solaris.
27746 solaris*) gl_cv_macro_MB_CUR_MAX_good="guessing no" ;;
27747 # Guess yes otherwise.
27748 *) gl_cv_macro_MB_CUR_MAX_good="guessing yes" ;;
27749 esac
27750 if test $LOCALE_FR_UTF8 != none; then
27751 if test "$cross_compiling" = yes
27752 then :
27753 :
27754 else case e in #(
27755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27756 /* end confdefs.h. */
27757
27758 #include <locale.h>
27759 #include <stdlib.h>
27760 int main ()
27761 {
27762 int result = 0;
27763 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
27764 {
27765 if (MB_CUR_MAX < 4)
27766 result |= 1;
27767 }
27768 return result;
27769 }
27770 _ACEOF
27771 if ac_fn_c_try_run "$LINENO"
27772 then :
27773 gl_cv_macro_MB_CUR_MAX_good=yes
27774 else case e in #(
27775 e) gl_cv_macro_MB_CUR_MAX_good=no ;;
27776 esac
27777 fi
27778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27779 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
27780 esac
27781 fi
27782
27783 fi
27784 ;;
27785 esac
27786 fi
27787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_MB_CUR_MAX_good" >&5
27788 printf "%s\n" "$gl_cv_macro_MB_CUR_MAX_good" >&6; }
27789 case "$gl_cv_macro_MB_CUR_MAX_good" in
27790 *yes) ;;
27791 *) REPLACE_MB_CUR_MAX=1 ;;
27792 esac
27793
27794
27795 if test $ac_cv_have_decl_ecvt = no; then
27796 HAVE_DECL_ECVT=0
27797 fi
27798
27799 if test $ac_cv_have_decl_fcvt = no; then
27800 HAVE_DECL_FCVT=0
27801 fi
27802
27803 if test $ac_cv_have_decl_gcvt = no; then
27804 HAVE_DECL_GCVT=0
27805 fi
27806
27807
27808 REPLACE_STRERROR_0=0
27809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
27810 printf %s "checking whether strerror(0) succeeds... " >&6; }
27811 if test ${gl_cv_func_strerror_0_works+y}
27812 then :
27813 printf %s "(cached) " >&6
27814 else case e in #(
27815 e) if test "$cross_compiling" = yes
27816 then :
27817 case "$host_os" in
27818 # Guess yes on glibc systems.
27819 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
27820 # Guess yes on musl systems.
27821 *-musl* | midipix*) gl_cv_func_strerror_0_works="guessing yes" ;;
27822 # Guess yes on native Windows.
27823 mingw* | windows*) gl_cv_func_strerror_0_works="guessing yes" ;;
27824 # If we don't know, obey --enable-cross-guesses.
27825 *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
27826 esac
27827
27828 else case e in #(
27829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27830 /* end confdefs.h. */
27831 #include <string.h>
27832 #include <errno.h>
27833
27834 int
27835 main (void)
27836 {
27837 int result = 0;
27838 char *str;
27839 errno = 0;
27840 str = strerror (0);
27841 if (!*str) result |= 1;
27842 if (errno) result |= 2;
27843 if (strstr (str, "nknown") || strstr (str, "ndefined"))
27844 result |= 4;
27845 return result;
27846 ;
27847 return 0;
27848 }
27849 _ACEOF
27850 if ac_fn_c_try_run "$LINENO"
27851 then :
27852 gl_cv_func_strerror_0_works=yes
27853 else case e in #(
27854 e) gl_cv_func_strerror_0_works=no ;;
27855 esac
27856 fi
27857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27858 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
27859 esac
27860 fi
27861
27862 ;;
27863 esac
27864 fi
27865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
27866 printf "%s\n" "$gl_cv_func_strerror_0_works" >&6; }
27867 case "$gl_cv_func_strerror_0_works" in
27868 *yes) ;;
27869 *)
27870 REPLACE_STRERROR_0=1
27871
27872 printf "%s\n" "#define REPLACE_STRERROR_0 1" >>confdefs.h
27873
27874 ;;
27875 esac
27876
27877
27878
27879
27880
27881
27882
27883
27884
27885
27886
27887 if test $gl_cv_have_include_next = yes; then
27888 gl_cv_next_string_h='<'string.h'>'
27889 else
27890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
27891 printf %s "checking absolute name of <string.h>... " >&6; }
27892 if test ${gl_cv_next_string_h+y}
27893 then :
27894 printf %s "(cached) " >&6
27895 else case e in #(
27896 e)
27897
27898
27899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27900 /* end confdefs.h. */
27901 #include <string.h>
27902 _ACEOF
27903 case "$host_os" in
27904 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27905 *) gl_absname_cpp="$ac_cpp" ;;
27906 esac
27907
27908 case "$host_os" in
27909 mingw* | windows*)
27910 gl_dirsep_regex='[/\\]'
27911 ;;
27912 *)
27913 gl_dirsep_regex='\/'
27914 ;;
27915 esac
27916 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27917 gl_header_literal_regex=`echo 'string.h' \
27918 | sed -e "$gl_make_literal_regex_sed"`
27919 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27920 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27921 s|^/[^/]|//&|
27922 p
27923 q
27924 }'
27925
27926 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27927 sed -n "$gl_absolute_header_sed"`
27928
27929 gl_header=$gl_cv_absolute_string_h
27930 gl_cv_next_string_h='"'$gl_header'"'
27931
27932 ;;
27933 esac
27934 fi
27935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
27936 printf "%s\n" "$gl_cv_next_string_h" >&6; }
27937 fi
27938 NEXT_STRING_H=$gl_cv_next_string_h
27939
27940 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27941 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27942 gl_next_as_first_directive='<'string.h'>'
27943 else
27944 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27945 gl_next_as_first_directive=$gl_cv_next_string_h
27946 fi
27947 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
27948
27949
27950
27951
27952
27953
27954
27955
27956
27957
27958
27959 ac_fn_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
27960 if test "x$ac_cv_have_decl_strndup" = xyes
27961 then :
27962 ac_have_decl=1
27963 else case e in #(
27964 e) ac_have_decl=0 ;;
27965 esac
27966 fi
27967 printf "%s\n" "#define HAVE_DECL_STRNDUP $ac_have_decl" >>confdefs.h
27968
27969
27970 ac_fn_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
27971 if test "x$ac_cv_have_decl_strnlen" = xyes
27972 then :
27973 ac_have_decl=1
27974 else case e in #(
27975 e) ac_have_decl=0 ;;
27976 esac
27977 fi
27978 printf "%s\n" "#define HAVE_DECL_STRNLEN $ac_have_decl" >>confdefs.h
27979
27980 ac_fn_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
27981 if test "x$ac_cv_have_decl_strsignal" = xyes
27982 then :
27983 ac_have_decl=1
27984 else case e in #(
27985 e) ac_have_decl=0 ;;
27986 esac
27987 fi
27988 printf "%s\n" "#define HAVE_DECL_STRSIGNAL $ac_have_decl" >>confdefs.h
27989
27990
27991
27992
27993
27994
27995
27996
27997
27998
27999
28000
28001
28002 if test $gl_cv_have_include_next = yes; then
28003 gl_cv_next_sys_random_h='<'sys/random.h'>'
28004 else
28005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/random.h>" >&5
28006 printf %s "checking absolute name of <sys/random.h>... " >&6; }
28007 if test ${gl_cv_next_sys_random_h+y}
28008 then :
28009 printf %s "(cached) " >&6
28010 else case e in #(
28011 e)
28012 if test $ac_cv_header_sys_random_h = yes; then
28013
28014
28015
28016
28017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28018 /* end confdefs.h. */
28019 #include <sys/random.h>
28020 _ACEOF
28021 case "$host_os" in
28022 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28023 *) gl_absname_cpp="$ac_cpp" ;;
28024 esac
28025
28026 case "$host_os" in
28027 mingw* | windows*)
28028 gl_dirsep_regex='[/\\]'
28029 ;;
28030 *)
28031 gl_dirsep_regex='\/'
28032 ;;
28033 esac
28034 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28035 gl_header_literal_regex=`echo 'sys/random.h' \
28036 | sed -e "$gl_make_literal_regex_sed"`
28037 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28038 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28039 s|^/[^/]|//&|
28040 p
28041 q
28042 }'
28043
28044 gl_cv_absolute_sys_random_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28045 sed -n "$gl_absolute_header_sed"`
28046
28047 gl_header=$gl_cv_absolute_sys_random_h
28048 gl_cv_next_sys_random_h='"'$gl_header'"'
28049 else
28050 gl_cv_next_sys_random_h='<'sys/random.h'>'
28051 fi
28052
28053 ;;
28054 esac
28055 fi
28056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_random_h" >&5
28057 printf "%s\n" "$gl_cv_next_sys_random_h" >&6; }
28058 fi
28059 NEXT_SYS_RANDOM_H=$gl_cv_next_sys_random_h
28060
28061 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28062 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28063 gl_next_as_first_directive='<'sys/random.h'>'
28064 else
28065 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28066 gl_next_as_first_directive=$gl_cv_next_sys_random_h
28067 fi
28068 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H=$gl_next_as_first_directive
28069
28070
28071
28072
28073 if test $ac_cv_header_sys_random_h = yes; then
28074 HAVE_SYS_RANDOM_H=1
28075 else
28076 HAVE_SYS_RANDOM_H=0
28077 fi
28078
28079
28080
28081 if test $ac_cv_header_sys_random_h = yes; then
28082 UNISTD_H_HAVE_SYS_RANDOM_H=1
28083 fi
28084
28085
28086
28087
28088
28089
28090 HAVE_PSELECT=1;
28091 REPLACE_PSELECT=0;
28092 REPLACE_SELECT=0;
28093
28094
28095
28096
28097
28098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
28099 printf %s "checking whether <sys/select.h> is self-contained... " >&6; }
28100 if test ${gl_cv_header_sys_select_h_selfcontained+y}
28101 then :
28102 printf %s "(cached) " >&6
28103 else case e in #(
28104 e)
28105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28106 /* end confdefs.h. */
28107 #include <sys/select.h>
28108 int
28109 main (void)
28110 {
28111 struct timeval b;
28112 ;
28113 return 0;
28114 }
28115 _ACEOF
28116 if ac_fn_c_try_compile "$LINENO"
28117 then :
28118 gl_cv_header_sys_select_h_selfcontained=yes
28119 else case e in #(
28120 e) gl_cv_header_sys_select_h_selfcontained=no ;;
28121 esac
28122 fi
28123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28124 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
28125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28126 /* end confdefs.h. */
28127 #include <sys/select.h>
28128 int
28129 main (void)
28130 {
28131 int memset; int bzero;
28132 ;
28133 return 0;
28134 }
28135
28136 _ACEOF
28137 if ac_fn_c_try_compile "$LINENO"
28138 then :
28139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28140 /* end confdefs.h. */
28141 #include <sys/select.h>
28142 int
28143 main (void)
28144 {
28145
28146 #undef memset
28147 #define memset nonexistent_memset
28148 extern
28149 #ifdef __cplusplus
28150 "C"
28151 #endif
28152 void *memset (void *, int, unsigned long);
28153 #undef bzero
28154 #define bzero nonexistent_bzero
28155 extern
28156 #ifdef __cplusplus
28157 "C"
28158 #endif
28159 void bzero (void *, unsigned long);
28160 fd_set fds;
28161 FD_ZERO (&fds);
28162
28163 ;
28164 return 0;
28165 }
28166
28167 _ACEOF
28168 if ac_fn_c_try_link "$LINENO"
28169 then :
28170
28171 else case e in #(
28172 e) gl_cv_header_sys_select_h_selfcontained=no ;;
28173 esac
28174 fi
28175 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28176 conftest$ac_exeext conftest.$ac_ext
28177
28178 fi
28179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28180 fi
28181 ;;
28182 esac
28183 fi
28184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
28185 printf "%s\n" "$gl_cv_header_sys_select_h_selfcontained" >&6; }
28186
28187
28188
28189
28190
28191
28192
28193
28194
28195 if test $gl_cv_have_include_next = yes; then
28196 gl_cv_next_sys_select_h='<'sys/select.h'>'
28197 else
28198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
28199 printf %s "checking absolute name of <sys/select.h>... " >&6; }
28200 if test ${gl_cv_next_sys_select_h+y}
28201 then :
28202 printf %s "(cached) " >&6
28203 else case e in #(
28204 e)
28205 if test $ac_cv_header_sys_select_h = yes; then
28206
28207
28208
28209
28210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28211 /* end confdefs.h. */
28212 #include <sys/select.h>
28213 _ACEOF
28214 case "$host_os" in
28215 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28216 *) gl_absname_cpp="$ac_cpp" ;;
28217 esac
28218
28219 case "$host_os" in
28220 mingw* | windows*)
28221 gl_dirsep_regex='[/\\]'
28222 ;;
28223 *)
28224 gl_dirsep_regex='\/'
28225 ;;
28226 esac
28227 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28228 gl_header_literal_regex=`echo 'sys/select.h' \
28229 | sed -e "$gl_make_literal_regex_sed"`
28230 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28231 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28232 s|^/[^/]|//&|
28233 p
28234 q
28235 }'
28236
28237 gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28238 sed -n "$gl_absolute_header_sed"`
28239
28240 gl_header=$gl_cv_absolute_sys_select_h
28241 gl_cv_next_sys_select_h='"'$gl_header'"'
28242 else
28243 gl_cv_next_sys_select_h='<'sys/select.h'>'
28244 fi
28245
28246 ;;
28247 esac
28248 fi
28249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
28250 printf "%s\n" "$gl_cv_next_sys_select_h" >&6; }
28251 fi
28252 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
28253
28254 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28256 gl_next_as_first_directive='<'sys/select.h'>'
28257 else
28258 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28259 gl_next_as_first_directive=$gl_cv_next_sys_select_h
28260 fi
28261 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
28262
28263
28264
28265
28266 if test $ac_cv_header_sys_select_h = yes; then
28267 HAVE_SYS_SELECT_H=1
28268 else
28269 HAVE_SYS_SELECT_H=0
28270 fi
28271
28272
28273
28274
28275
28276 if test $ac_cv_header_sys_socket_h != yes; then
28277 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
28278 if test "x$ac_cv_header_winsock2_h" = xyes
28279 then :
28280 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
28281
28282 fi
28283
28284 fi
28285 if test "$ac_cv_header_winsock2_h" = yes; then
28286 HAVE_WINSOCK2_H=1
28287 UNISTD_H_HAVE_WINSOCK2_H=1
28288 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
28289 else
28290 HAVE_WINSOCK2_H=0
28291 fi
28292
28293
28294
28295
28296
28297
28298
28299
28300
28301 GL_GNULIB_PSELECT=0
28302
28303
28304
28305 GL_GNULIB_SELECT=0
28306
28307
28308
28309
28310 HAVE_GETTIMEOFDAY=1;
28311 HAVE_STRUCT_TIMEVAL=1;
28312 HAVE_SYS_TIME_H=1;
28313 REPLACE_GETTIMEOFDAY=0;
28314 REPLACE_STRUCT_TIMEVAL=0;
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327
28328
28329 if test $gl_cv_have_include_next = yes; then
28330 gl_cv_next_sys_time_h='<'sys/time.h'>'
28331 else
28332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
28333 printf %s "checking absolute name of <sys/time.h>... " >&6; }
28334 if test ${gl_cv_next_sys_time_h+y}
28335 then :
28336 printf %s "(cached) " >&6
28337 else case e in #(
28338 e)
28339 if test $ac_cv_header_sys_time_h = yes; then
28340
28341
28342
28343
28344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28345 /* end confdefs.h. */
28346 #include <sys/time.h>
28347 _ACEOF
28348 case "$host_os" in
28349 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28350 *) gl_absname_cpp="$ac_cpp" ;;
28351 esac
28352
28353 case "$host_os" in
28354 mingw* | windows*)
28355 gl_dirsep_regex='[/\\]'
28356 ;;
28357 *)
28358 gl_dirsep_regex='\/'
28359 ;;
28360 esac
28361 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28362 gl_header_literal_regex=`echo 'sys/time.h' \
28363 | sed -e "$gl_make_literal_regex_sed"`
28364 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28365 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28366 s|^/[^/]|//&|
28367 p
28368 q
28369 }'
28370
28371 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28372 sed -n "$gl_absolute_header_sed"`
28373
28374 gl_header=$gl_cv_absolute_sys_time_h
28375 gl_cv_next_sys_time_h='"'$gl_header'"'
28376 else
28377 gl_cv_next_sys_time_h='<'sys/time.h'>'
28378 fi
28379
28380 ;;
28381 esac
28382 fi
28383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
28384 printf "%s\n" "$gl_cv_next_sys_time_h" >&6; }
28385 fi
28386 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
28387
28388 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28389 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28390 gl_next_as_first_directive='<'sys/time.h'>'
28391 else
28392 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28393 gl_next_as_first_directive=$gl_cv_next_sys_time_h
28394 fi
28395 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
28396
28397
28398
28399
28400
28401 if test $ac_cv_header_sys_time_h != yes; then
28402 HAVE_SYS_TIME_H=0
28403 fi
28404
28405
28406
28407
28408
28409 if test $ac_cv_header_sys_socket_h != yes; then
28410 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
28411 if test "x$ac_cv_header_winsock2_h" = xyes
28412 then :
28413 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
28414
28415 fi
28416
28417 fi
28418 if test "$ac_cv_header_winsock2_h" = yes; then
28419 HAVE_WINSOCK2_H=1
28420 UNISTD_H_HAVE_WINSOCK2_H=1
28421 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
28422 else
28423 HAVE_WINSOCK2_H=0
28424 fi
28425
28426
28427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28428 printf %s "checking for struct timeval... " >&6; }
28429 if test ${gl_cv_sys_struct_timeval+y}
28430 then :
28431 printf %s "(cached) " >&6
28432 else case e in #(
28433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28434 /* end confdefs.h. */
28435 #if HAVE_SYS_TIME_H
28436 #include <sys/time.h>
28437 #endif
28438 #include <time.h>
28439 #if HAVE_WINSOCK2_H
28440 # include <winsock2.h>
28441 #endif
28442
28443 int
28444 main (void)
28445 {
28446 static struct timeval x; x.tv_sec = x.tv_usec;
28447 ;
28448 return 0;
28449 }
28450 _ACEOF
28451 if ac_fn_c_try_compile "$LINENO"
28452 then :
28453 gl_cv_sys_struct_timeval=yes
28454 else case e in #(
28455 e) gl_cv_sys_struct_timeval=no ;;
28456 esac
28457 fi
28458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28459 ;;
28460 esac
28461 fi
28462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
28463 printf "%s\n" "$gl_cv_sys_struct_timeval" >&6; }
28464 if test $gl_cv_sys_struct_timeval != yes; then
28465 HAVE_STRUCT_TIMEVAL=0
28466 else
28467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
28468 printf %s "checking for wide-enough struct timeval.tv_sec member... " >&6; }
28469 if test ${gl_cv_sys_struct_timeval_tv_sec+y}
28470 then :
28471 printf %s "(cached) " >&6
28472 else case e in #(
28473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28474 /* end confdefs.h. */
28475 #if HAVE_SYS_TIME_H
28476 #include <sys/time.h>
28477 #endif
28478 #include <time.h>
28479 #if HAVE_WINSOCK2_H
28480 # include <winsock2.h>
28481 #endif
28482
28483 int
28484 main (void)
28485 {
28486 static struct timeval x;
28487 typedef int verify_tv_sec_type[
28488 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
28489 ];
28490
28491 ;
28492 return 0;
28493 }
28494 _ACEOF
28495 if ac_fn_c_try_compile "$LINENO"
28496 then :
28497 gl_cv_sys_struct_timeval_tv_sec=yes
28498 else case e in #(
28499 e) gl_cv_sys_struct_timeval_tv_sec=no ;;
28500 esac
28501 fi
28502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28503 ;;
28504 esac
28505 fi
28506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
28507 printf "%s\n" "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
28508 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
28509 REPLACE_STRUCT_TIMEVAL=1
28510 fi
28511 fi
28512
28513
28514
28515
28516
28517
28518
28519 GL_GNULIB_GETTIMEOFDAY=0
28520
28521
28522
28523
28524
28525
28526
28527
28528
28529
28530
28531
28532
28533
28534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
28535 printf %s "checking for off64_t... " >&6; }
28536 if test ${gl_cv_off64_t+y}
28537 then :
28538 printf %s "(cached) " >&6
28539 else case e in #(
28540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28541 /* end confdefs.h. */
28542 #include <sys/types.h>
28543 int
28544 main (void)
28545 {
28546 int x = sizeof (off64_t *) + sizeof (off64_t);
28547 return !x;
28548 ;
28549 return 0;
28550 }
28551 _ACEOF
28552 if ac_fn_c_try_compile "$LINENO"
28553 then :
28554 gl_cv_off64_t=yes
28555 else case e in #(
28556 e) gl_cv_off64_t=no ;;
28557 esac
28558 fi
28559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28560 esac
28561 fi
28562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_off64_t" >&5
28563 printf "%s\n" "$gl_cv_off64_t" >&6; }
28564
28565 if test $gl_cv_off64_t != no; then
28566 HAVE_OFF64_T=1
28567 else
28568 HAVE_OFF64_T=0
28569 fi
28570
28571
28572
28573
28574
28575
28576 printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h
28577
28578
28579
28580
28581
28582
28583
28584
28585
28586
28587 if test $gl_cv_have_include_next = yes; then
28588 gl_cv_next_sys_types_h='<'sys/types.h'>'
28589 else
28590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
28591 printf %s "checking absolute name of <sys/types.h>... " >&6; }
28592 if test ${gl_cv_next_sys_types_h+y}
28593 then :
28594 printf %s "(cached) " >&6
28595 else case e in #(
28596 e)
28597
28598
28599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28600 /* end confdefs.h. */
28601 #include <sys/types.h>
28602 _ACEOF
28603 case "$host_os" in
28604 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28605 *) gl_absname_cpp="$ac_cpp" ;;
28606 esac
28607
28608 case "$host_os" in
28609 mingw* | windows*)
28610 gl_dirsep_regex='[/\\]'
28611 ;;
28612 *)
28613 gl_dirsep_regex='\/'
28614 ;;
28615 esac
28616 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28617 gl_header_literal_regex=`echo 'sys/types.h' \
28618 | sed -e "$gl_make_literal_regex_sed"`
28619 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28620 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28621 s|^/[^/]|//&|
28622 p
28623 q
28624 }'
28625
28626 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28627 sed -n "$gl_absolute_header_sed"`
28628
28629 gl_header=$gl_cv_absolute_sys_types_h
28630 gl_cv_next_sys_types_h='"'$gl_header'"'
28631
28632 ;;
28633 esac
28634 fi
28635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
28636 printf "%s\n" "$gl_cv_next_sys_types_h" >&6; }
28637 fi
28638 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
28639
28640 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28641 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28642 gl_next_as_first_directive='<'sys/types.h'>'
28643 else
28644 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28645 gl_next_as_first_directive=$gl_cv_next_sys_types_h
28646 fi
28647 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
28648
28649
28650
28651
28652
28653
28654
28655
28656
28657
28658
28659
28660
28661
28662 WINDOWS_STAT_INODES=0
28663
28664
28665
28666
28667
28668
28669
28670
28671
28672
28673
28674
28675
28676
28677
28678
28679
28680
28681
28682
28683 if test $gl_cv_have_include_next = yes; then
28684 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
28685 else
28686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
28687 printf %s "checking absolute name of <sys/wait.h>... " >&6; }
28688 if test ${gl_cv_next_sys_wait_h+y}
28689 then :
28690 printf %s "(cached) " >&6
28691 else case e in #(
28692 e)
28693 if test $ac_cv_header_sys_wait_h = yes; then
28694
28695
28696
28697
28698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28699 /* end confdefs.h. */
28700 #include <sys/wait.h>
28701 _ACEOF
28702 case "$host_os" in
28703 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28704 *) gl_absname_cpp="$ac_cpp" ;;
28705 esac
28706
28707 case "$host_os" in
28708 mingw* | windows*)
28709 gl_dirsep_regex='[/\\]'
28710 ;;
28711 *)
28712 gl_dirsep_regex='\/'
28713 ;;
28714 esac
28715 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28716 gl_header_literal_regex=`echo 'sys/wait.h' \
28717 | sed -e "$gl_make_literal_regex_sed"`
28718 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28719 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28720 s|^/[^/]|//&|
28721 p
28722 q
28723 }'
28724
28725 gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28726 sed -n "$gl_absolute_header_sed"`
28727
28728 gl_header=$gl_cv_absolute_sys_wait_h
28729 gl_cv_next_sys_wait_h='"'$gl_header'"'
28730 else
28731 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
28732 fi
28733
28734 ;;
28735 esac
28736 fi
28737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
28738 printf "%s\n" "$gl_cv_next_sys_wait_h" >&6; }
28739 fi
28740 NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
28741
28742 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28743 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28744 gl_next_as_first_directive='<'sys/wait.h'>'
28745 else
28746 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28747 gl_next_as_first_directive=$gl_cv_next_sys_wait_h
28748 fi
28749 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
28750
28751
28752
28753
28754
28755
28756
28757
28758
28759
28760
28761
28762
28763 GL_GNULIB_WAITPID=0
28764
28765
28766
28767
28768 HAVE_DECL_LOCALTIME_R=1;
28769 HAVE_NANOSLEEP=1;
28770 HAVE_STRPTIME=1;
28771 HAVE_TIMEGM=1;
28772 HAVE_TIMESPEC_GET=1;
28773 HAVE_TIMESPEC_GETRES=1;
28774 HAVE_TIMEZONE_T=0;
28775 REPLACE_CTIME=0;
28776 REPLACE_GMTIME=0;
28777 REPLACE_LOCALTIME=0;
28778 REPLACE_LOCALTIME_R=0;
28779 REPLACE_MKTIME=0;
28780 REPLACE_NANOSLEEP=0;
28781 REPLACE_STRFTIME=0;
28782 REPLACE_TIME=0;
28783 REPLACE_TIMEGM=0;
28784 REPLACE_TIMESPEC_GET=0;
28785 REPLACE_TIMESPEC_GETRES=0;
28786 REPLACE_TZSET=0;
28787
28788
28789
28790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
28791 printf %s "checking for struct timespec in <time.h>... " >&6; }
28792 if test ${gl_cv_sys_struct_timespec_in_time_h+y}
28793 then :
28794 printf %s "(cached) " >&6
28795 else case e in #(
28796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28797 /* end confdefs.h. */
28798 #include <time.h>
28799
28800 int
28801 main (void)
28802 {
28803 static struct timespec x; x.tv_sec = x.tv_nsec;
28804 ;
28805 return 0;
28806 }
28807 _ACEOF
28808 if ac_fn_c_try_compile "$LINENO"
28809 then :
28810 gl_cv_sys_struct_timespec_in_time_h=yes
28811 else case e in #(
28812 e) gl_cv_sys_struct_timespec_in_time_h=no ;;
28813 esac
28814 fi
28815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28816 esac
28817 fi
28818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
28819 printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
28820
28821 TIME_H_DEFINES_STRUCT_TIMESPEC=0
28822 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
28823 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
28824 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
28825 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
28826 TIME_H_DEFINES_STRUCT_TIMESPEC=1
28827 else
28828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
28829 printf %s "checking for struct timespec in <sys/time.h>... " >&6; }
28830 if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y}
28831 then :
28832 printf %s "(cached) " >&6
28833 else case e in #(
28834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28835 /* end confdefs.h. */
28836 #include <sys/time.h>
28837
28838 int
28839 main (void)
28840 {
28841 static struct timespec x; x.tv_sec = x.tv_nsec;
28842 ;
28843 return 0;
28844 }
28845 _ACEOF
28846 if ac_fn_c_try_compile "$LINENO"
28847 then :
28848 gl_cv_sys_struct_timespec_in_sys_time_h=yes
28849 else case e in #(
28850 e) gl_cv_sys_struct_timespec_in_sys_time_h=no ;;
28851 esac
28852 fi
28853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28854 esac
28855 fi
28856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
28857 printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
28858 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
28859 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
28860 else
28861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
28862 printf %s "checking for struct timespec in <pthread.h>... " >&6; }
28863 if test ${gl_cv_sys_struct_timespec_in_pthread_h+y}
28864 then :
28865 printf %s "(cached) " >&6
28866 else case e in #(
28867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28868 /* end confdefs.h. */
28869 #include <pthread.h>
28870
28871 int
28872 main (void)
28873 {
28874 static struct timespec x; x.tv_sec = x.tv_nsec;
28875 ;
28876 return 0;
28877 }
28878 _ACEOF
28879 if ac_fn_c_try_compile "$LINENO"
28880 then :
28881 gl_cv_sys_struct_timespec_in_pthread_h=yes
28882 else case e in #(
28883 e) gl_cv_sys_struct_timespec_in_pthread_h=no ;;
28884 esac
28885 fi
28886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28887 esac
28888 fi
28889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
28890 printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
28891 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
28892 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
28893 else
28894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
28895 printf %s "checking for struct timespec in <unistd.h>... " >&6; }
28896 if test ${gl_cv_sys_struct_timespec_in_unistd_h+y}
28897 then :
28898 printf %s "(cached) " >&6
28899 else case e in #(
28900 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28901 /* end confdefs.h. */
28902 #include <unistd.h>
28903
28904 int
28905 main (void)
28906 {
28907 static struct timespec x; x.tv_sec = x.tv_nsec;
28908 ;
28909 return 0;
28910 }
28911 _ACEOF
28912 if ac_fn_c_try_compile "$LINENO"
28913 then :
28914 gl_cv_sys_struct_timespec_in_unistd_h=yes
28915 else case e in #(
28916 e) gl_cv_sys_struct_timespec_in_unistd_h=no ;;
28917 esac
28918 fi
28919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28920 esac
28921 fi
28922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
28923 printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
28924 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
28925 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
28926 fi
28927 fi
28928 fi
28929 fi
28930
28931
28932
28933
28934
28935
28936
28937
28938
28939
28940
28941
28942
28943
28944
28945
28946 if test $gl_cv_have_include_next = yes; then
28947 gl_cv_next_time_h='<'time.h'>'
28948 else
28949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
28950 printf %s "checking absolute name of <time.h>... " >&6; }
28951 if test ${gl_cv_next_time_h+y}
28952 then :
28953 printf %s "(cached) " >&6
28954 else case e in #(
28955 e)
28956
28957
28958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28959 /* end confdefs.h. */
28960 #include <time.h>
28961 _ACEOF
28962 case "$host_os" in
28963 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28964 *) gl_absname_cpp="$ac_cpp" ;;
28965 esac
28966
28967 case "$host_os" in
28968 mingw* | windows*)
28969 gl_dirsep_regex='[/\\]'
28970 ;;
28971 *)
28972 gl_dirsep_regex='\/'
28973 ;;
28974 esac
28975 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28976 gl_header_literal_regex=`echo 'time.h' \
28977 | sed -e "$gl_make_literal_regex_sed"`
28978 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28979 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28980 s|^/[^/]|//&|
28981 p
28982 q
28983 }'
28984
28985 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28986 sed -n "$gl_absolute_header_sed"`
28987
28988 gl_header=$gl_cv_absolute_time_h
28989 gl_cv_next_time_h='"'$gl_header'"'
28990
28991 ;;
28992 esac
28993 fi
28994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
28995 printf "%s\n" "$gl_cv_next_time_h" >&6; }
28996 fi
28997 NEXT_TIME_H=$gl_cv_next_time_h
28998
28999 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29000 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29001 gl_next_as_first_directive='<'time.h'>'
29002 else
29003 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29004 gl_next_as_first_directive=$gl_cv_next_time_h
29005 fi
29006 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
29007
29008
29009
29010
29011
29012
29013
29014
29015
29016
29017
29018
29019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5
29020 printf %s "checking for TIME_UTC in <time.h>... " >&6; }
29021 if test ${gl_cv_time_h_has_TIME_UTC+y}
29022 then :
29023 printf %s "(cached) " >&6
29024 else case e in #(
29025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29026 /* end confdefs.h. */
29027 #include <time.h>
29028
29029 int
29030 main (void)
29031 {
29032 static int x = TIME_UTC; x++;
29033 ;
29034 return 0;
29035 }
29036 _ACEOF
29037 if ac_fn_c_try_compile "$LINENO"
29038 then :
29039 gl_cv_time_h_has_TIME_UTC=yes
29040 else case e in #(
29041 e) gl_cv_time_h_has_TIME_UTC=no ;;
29042 esac
29043 fi
29044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
29045 esac
29046 fi
29047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5
29048 printf "%s\n" "$gl_cv_time_h_has_TIME_UTC" >&6; }
29049 if test $gl_cv_time_h_has_TIME_UTC = yes; then
29050 TIME_H_DEFINES_TIME_UTC=1
29051 else
29052 TIME_H_DEFINES_TIME_UTC=0
29053 fi
29054
29055
29056
29057
29058 GL_GNULIB_CTIME=0
29059
29060
29061
29062 GL_GNULIB_MKTIME=0
29063
29064
29065
29066 GL_GNULIB_LOCALTIME=0
29067
29068
29069
29070 GL_GNULIB_NANOSLEEP=0
29071
29072
29073
29074 GL_GNULIB_STRFTIME=0
29075
29076
29077
29078 GL_GNULIB_STRPTIME=0
29079
29080
29081
29082 GL_GNULIB_TIME=0
29083
29084
29085
29086 GL_GNULIB_TIMEGM=0
29087
29088
29089
29090 GL_GNULIB_TIMESPEC_GET=0
29091
29092
29093
29094 GL_GNULIB_TIMESPEC_GETRES=0
29095
29096
29097
29098 GL_GNULIB_TIME_R=0
29099
29100
29101
29102 GL_GNULIB_TIME_RZ=0
29103
29104
29105
29106 GL_GNULIB_TZNAME=0
29107
29108
29109
29110 GL_GNULIB_TZSET=0
29111
29112
29113
29114 GL_GNULIB_MDA_TZSET=1
29115
29116
29117
29118 ac_fn_check_decl "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
29119 if test "x$ac_cv_have_decl_execvpe" = xyes
29120 then :
29121 ac_have_decl=1
29122 else case e in #(
29123 e) ac_have_decl=0 ;;
29124 esac
29125 fi
29126 printf "%s\n" "#define HAVE_DECL_EXECVPE $ac_have_decl" >>confdefs.h
29127
29128
29129
29130
29131
29132
29133
29134
29135
29136
29137
29138
29139
29140 if test $gl_cv_have_include_next = yes; then
29141 gl_cv_next_unistd_h='<'unistd.h'>'
29142 else
29143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
29144 printf %s "checking absolute name of <unistd.h>... " >&6; }
29145 if test ${gl_cv_next_unistd_h+y}
29146 then :
29147 printf %s "(cached) " >&6
29148 else case e in #(
29149 e)
29150 if test $ac_cv_header_unistd_h = yes; then
29151
29152
29153
29154
29155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29156 /* end confdefs.h. */
29157 #include <unistd.h>
29158 _ACEOF
29159 case "$host_os" in
29160 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29161 *) gl_absname_cpp="$ac_cpp" ;;
29162 esac
29163
29164 case "$host_os" in
29165 mingw* | windows*)
29166 gl_dirsep_regex='[/\\]'
29167 ;;
29168 *)
29169 gl_dirsep_regex='\/'
29170 ;;
29171 esac
29172 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29173 gl_header_literal_regex=`echo 'unistd.h' \
29174 | sed -e "$gl_make_literal_regex_sed"`
29175 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29176 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29177 s|^/[^/]|//&|
29178 p
29179 q
29180 }'
29181
29182 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29183 sed -n "$gl_absolute_header_sed"`
29184
29185 gl_header=$gl_cv_absolute_unistd_h
29186 gl_cv_next_unistd_h='"'$gl_header'"'
29187 else
29188 gl_cv_next_unistd_h='<'unistd.h'>'
29189 fi
29190
29191 ;;
29192 esac
29193 fi
29194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
29195 printf "%s\n" "$gl_cv_next_unistd_h" >&6; }
29196 fi
29197 NEXT_UNISTD_H=$gl_cv_next_unistd_h
29198
29199 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29200 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29201 gl_next_as_first_directive='<'unistd.h'>'
29202 else
29203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29204 gl_next_as_first_directive=$gl_cv_next_unistd_h
29205 fi
29206 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
29207
29208
29209
29210
29211 if test $ac_cv_header_unistd_h = yes; then
29212 HAVE_UNISTD_H=1
29213 else
29214 HAVE_UNISTD_H=0
29215 fi
29216
29217
29218
29219
29220
29221
29222
29223
29224
29225
29226
29227
29228
29229 if test $ac_cv_have_decl_execvpe = no; then
29230 HAVE_DECL_EXECVPE=0
29231 fi
29232
29233 ac_fn_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
29234 if test "x$ac_cv_have_decl_unsetenv" = xyes
29235 then :
29236 ac_have_decl=1
29237 else case e in #(
29238 e) ac_have_decl=0 ;;
29239 esac
29240 fi
29241 printf "%s\n" "#define HAVE_DECL_UNSETENV $ac_have_decl" >>confdefs.h
29242
29243
29244
29245
29246
29247 if test $ac_cv_header_features_h = yes; then
29248 HAVE_FEATURES_H=1
29249 else
29250 HAVE_FEATURES_H=0
29251 fi
29252
29253
29254
29255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
29256 printf %s "checking for inttypes.h... " >&6; }
29257 if test ${gl_cv_header_inttypes_h+y}
29258 then :
29259 printf %s "(cached) " >&6
29260 else case e in #(
29261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29262 /* end confdefs.h. */
29263
29264 #include <sys/types.h>
29265 #include <inttypes.h>
29266
29267 int
29268 main (void)
29269 {
29270 uintmax_t i = (uintmax_t) -1; return !i;
29271 ;
29272 return 0;
29273 }
29274 _ACEOF
29275 if ac_fn_c_try_compile "$LINENO"
29276 then :
29277 gl_cv_header_inttypes_h=yes
29278 else case e in #(
29279 e) gl_cv_header_inttypes_h=no ;;
29280 esac
29281 fi
29282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
29283 esac
29284 fi
29285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
29286 printf "%s\n" "$gl_cv_header_inttypes_h" >&6; }
29287 if test $gl_cv_header_inttypes_h = yes; then
29288
29289 printf "%s\n" "#define HAVE_INTTYPES_H_WITH_UINTMAX 1" >>confdefs.h
29290
29291 fi
29292
29293
29294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
29295 printf %s "checking for stdint.h... " >&6; }
29296 if test ${gl_cv_header_stdint_h+y}
29297 then :
29298 printf %s "(cached) " >&6
29299 else case e in #(
29300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29301 /* end confdefs.h. */
29302 #include <sys/types.h>
29303 #include <stdint.h>
29304 int
29305 main (void)
29306 {
29307 uintmax_t i = (uintmax_t) -1; return !i;
29308 ;
29309 return 0;
29310 }
29311 _ACEOF
29312 if ac_fn_c_try_compile "$LINENO"
29313 then :
29314 gl_cv_header_stdint_h=yes
29315 else case e in #(
29316 e) gl_cv_header_stdint_h=no ;;
29317 esac
29318 fi
29319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
29320 esac
29321 fi
29322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
29323 printf "%s\n" "$gl_cv_header_stdint_h" >&6; }
29324 if test $gl_cv_header_stdint_h = yes; then
29325
29326 printf "%s\n" "#define HAVE_STDINT_H_WITH_UINTMAX 1" >>confdefs.h
29327
29328 fi
29329
29330
29331
29332
29333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
29334 printf %s "checking for intmax_t... " >&6; }
29335 if test ${gt_cv_c_intmax_t+y}
29336 then :
29337 printf %s "(cached) " >&6
29338 else case e in #(
29339 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29340 /* end confdefs.h. */
29341
29342 #include <stddef.h>
29343 #include <stdlib.h>
29344 #if HAVE_STDINT_H_WITH_UINTMAX
29345 #include <stdint.h>
29346 #endif
29347 #if HAVE_INTTYPES_H_WITH_UINTMAX
29348 #include <inttypes.h>
29349 #endif
29350
29351 int
29352 main (void)
29353 {
29354 intmax_t x = -1; return !x;
29355 ;
29356 return 0;
29357 }
29358 _ACEOF
29359 if ac_fn_c_try_compile "$LINENO"
29360 then :
29361 gt_cv_c_intmax_t=yes
29362 else case e in #(
29363 e) gt_cv_c_intmax_t=no ;;
29364 esac
29365 fi
29366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
29367 esac
29368 fi
29369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
29370 printf "%s\n" "$gt_cv_c_intmax_t" >&6; }
29371 if test $gt_cv_c_intmax_t = yes; then
29372
29373 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
29374
29375 else
29376
29377 printf "%s\n" "#define intmax_t long long" >>confdefs.h
29378
29379 fi
29380
29381
29382
29383
29384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5
29385 printf %s "checking whether snprintf truncates the result as in C99... " >&6; }
29386 if test ${gl_cv_func_snprintf_truncation_c99+y}
29387 then :
29388 printf %s "(cached) " >&6
29389 else case e in #(
29390 e)
29391 if test "$cross_compiling" = yes
29392 then :
29393
29394 case "$host_os" in
29395 # Guess yes on glibc systems.
29396 *-gnu* | gnu*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29397 # Guess yes on musl systems.
29398 *-musl* | midipix*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29399 # Guess yes on FreeBSD >= 5.
29400 freebsd[1-4].*) gl_cv_func_snprintf_truncation_c99="guessing no";;
29401 freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29402 midnightbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29403 # Guess yes on Mac OS X >= 10.3.
29404 darwin[1-6].*) gl_cv_func_snprintf_truncation_c99="guessing no";;
29405 darwin*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29406 # Guess yes on OpenBSD >= 3.9.
29407 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
29408 gl_cv_func_snprintf_truncation_c99="guessing no";;
29409 openbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29410 # Guess yes on Solaris >= 2.6.
29411 solaris2.[0-5] | solaris2.[0-5].*)
29412 gl_cv_func_snprintf_truncation_c99="guessing no";;
29413 solaris*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29414 # Guess yes on AIX >= 4.
29415 aix[1-3]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
29416 aix*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29417 # Guess yes on HP-UX >= 11.
29418 hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";;
29419 hpux*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29420 # Guess yes on IRIX >= 6.5.
29421 irix6.5) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29422 # Guess yes on OSF/1 >= 5.
29423 osf[3-4]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
29424 osf*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29425 # Guess yes on NetBSD >= 3.
29426 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
29427 gl_cv_func_snprintf_truncation_c99="guessing no";;
29428 netbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29429 # Guess yes on BeOS.
29430 beos*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29431 # Guess yes on Android.
29432 linux*-android*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
29433 # Guess no on native Windows.
29434 mingw* | windows*) gl_cv_func_snprintf_truncation_c99="guessing no";;
29435 # If we don't know, obey --enable-cross-guesses.
29436 *) gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";;
29437 esac
29438
29439 else case e in #(
29440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29441 /* end confdefs.h. */
29442
29443 #include <stdio.h>
29444 #include <string.h>
29445 #if HAVE_SNPRINTF
29446 # define my_snprintf snprintf
29447 #else
29448 # include <stdarg.h>
29449 static int my_snprintf (char *buf, int size, const char *format, ...)
29450 {
29451 va_list args;
29452 int ret;
29453 va_start (args, format);
29454 ret = vsnprintf (buf, size, format, args);
29455 va_end (args);
29456 return ret;
29457 }
29458 #endif
29459 static char buf[100];
29460 int main ()
29461 {
29462 strcpy (buf, "ABCDEF");
29463 my_snprintf (buf, 3, "%d %d", 4567, 89);
29464 if (memcmp (buf, "45\0DEF", 6) != 0)
29465 return 1;
29466 return 0;
29467 }
29468 _ACEOF
29469 if ac_fn_c_try_run "$LINENO"
29470 then :
29471 gl_cv_func_snprintf_truncation_c99=yes
29472 else case e in #(
29473 e) gl_cv_func_snprintf_truncation_c99=no ;;
29474 esac
29475 fi
29476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29477 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
29478 esac
29479 fi
29480
29481 ;;
29482 esac
29483 fi
29484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5
29485 printf "%s\n" "$gl_cv_func_snprintf_truncation_c99" >&6; }
29486
29487
29488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
29489 printf %s "checking where to find the exponent in a 'double'... " >&6; }
29490 if test ${gl_cv_cc_double_expbit0+y}
29491 then :
29492 printf %s "(cached) " >&6
29493 else case e in #(
29494 e)
29495 if test "$cross_compiling" = yes
29496 then :
29497
29498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29499 /* end confdefs.h. */
29500
29501 #if defined arm || defined __arm || defined __arm__
29502 mixed_endianness
29503 #endif
29504
29505 _ACEOF
29506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29507 $EGREP_TRADITIONAL "mixed_endianness" >/dev/null 2>&1
29508 then :
29509 gl_cv_cc_double_expbit0="unknown"
29510 else case e in #(
29511 e)
29512 :
29513 if test ${ac_cv_c_bigendian+y}
29514 then :
29515 printf %s "(cached) " >&6
29516 else case e in #(
29517 e) ac_cv_c_bigendian=unknown
29518 # See if we're dealing with a universal compiler.
29519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29520 /* end confdefs.h. */
29521 #ifndef __APPLE_CC__
29522 not a universal capable compiler
29523 #endif
29524 typedef int dummy;
29525
29526 _ACEOF
29527 if ac_fn_c_try_compile "$LINENO"
29528 then :
29529
29530 # Check for potential -arch flags. It is not universal unless
29531 # there are at least two -arch flags with different values.
29532 ac_arch=
29533 ac_prev=
29534 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
29535 if test -n "$ac_prev"; then
29536 case $ac_word in
29537 i?86 | x86_64 | ppc | ppc64)
29538 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
29539 ac_arch=$ac_word
29540 else
29541 ac_cv_c_bigendian=universal
29542 break
29543 fi
29544 ;;
29545 esac
29546 ac_prev=
29547 elif test "x$ac_word" = "x-arch"; then
29548 ac_prev=arch
29549 fi
29550 done
29551 fi
29552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29553 if test $ac_cv_c_bigendian = unknown; then
29554 # See if sys/param.h defines the BYTE_ORDER macro.
29555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29556 /* end confdefs.h. */
29557 #include <sys/types.h>
29558 #include <sys/param.h>
29559
29560 int
29561 main (void)
29562 {
29563 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
29564 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
29565 && LITTLE_ENDIAN)
29566 bogus endian macros
29567 #endif
29568
29569 ;
29570 return 0;
29571 }
29572 _ACEOF
29573 if ac_fn_c_try_compile "$LINENO"
29574 then :
29575 # It does; now see whether it defined to BIG_ENDIAN or not.
29576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29577 /* end confdefs.h. */
29578 #include <sys/types.h>
29579 #include <sys/param.h>
29580
29581 int
29582 main (void)
29583 {
29584 #if BYTE_ORDER != BIG_ENDIAN
29585 not big endian
29586 #endif
29587
29588 ;
29589 return 0;
29590 }
29591 _ACEOF
29592 if ac_fn_c_try_compile "$LINENO"
29593 then :
29594 ac_cv_c_bigendian=yes
29595 else case e in #(
29596 e) ac_cv_c_bigendian=no ;;
29597 esac
29598 fi
29599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29600 fi
29601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29602 fi
29603 if test $ac_cv_c_bigendian = unknown; then
29604 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
29605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29606 /* end confdefs.h. */
29607 #include <limits.h>
29608
29609 int
29610 main (void)
29611 {
29612 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
29613 bogus endian macros
29614 #endif
29615
29616 ;
29617 return 0;
29618 }
29619 _ACEOF
29620 if ac_fn_c_try_compile "$LINENO"
29621 then :
29622 # It does; now see whether it defined to _BIG_ENDIAN or not.
29623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29624 /* end confdefs.h. */
29625 #include <limits.h>
29626
29627 int
29628 main (void)
29629 {
29630 #ifndef _BIG_ENDIAN
29631 not big endian
29632 #endif
29633
29634 ;
29635 return 0;
29636 }
29637 _ACEOF
29638 if ac_fn_c_try_compile "$LINENO"
29639 then :
29640 ac_cv_c_bigendian=yes
29641 else case e in #(
29642 e) ac_cv_c_bigendian=no ;;
29643 esac
29644 fi
29645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29646 fi
29647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29648 fi
29649 if test $ac_cv_c_bigendian = unknown; then
29650 # Compile a test program.
29651 if test "$cross_compiling" = yes
29652 then :
29653 # Try to guess by grepping values from an object file.
29654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29655 /* end confdefs.h. */
29656 unsigned short int ascii_mm[] =
29657 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
29658 unsigned short int ascii_ii[] =
29659 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
29660 int use_ascii (int i) {
29661 return ascii_mm[i] + ascii_ii[i];
29662 }
29663 unsigned short int ebcdic_ii[] =
29664 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
29665 unsigned short int ebcdic_mm[] =
29666 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
29667 int use_ebcdic (int i) {
29668 return ebcdic_mm[i] + ebcdic_ii[i];
29669 }
29670 int
29671 main (int argc, char **argv)
29672 {
29673 /* Intimidate the compiler so that it does not
29674 optimize the arrays away. */
29675 char *p = argv[0];
29676 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
29677 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
29678 return use_ascii (argc) == use_ebcdic (*p);
29679 }
29680 _ACEOF
29681 if ac_fn_c_try_link "$LINENO"
29682 then :
29683 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
29684 ac_cv_c_bigendian=yes
29685 fi
29686 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
29687 if test "$ac_cv_c_bigendian" = unknown; then
29688 ac_cv_c_bigendian=no
29689 else
29690 # finding both strings is unlikely to happen, but who knows?
29691 ac_cv_c_bigendian=unknown
29692 fi
29693 fi
29694 fi
29695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29696 conftest$ac_exeext conftest.$ac_ext
29697 else case e in #(
29698 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29699 /* end confdefs.h. */
29700 $ac_includes_default
29701 int
29702 main (void)
29703 {
29704
29705 /* Are we little or big endian? From Harbison&Steele. */
29706 union
29707 {
29708 long int l;
29709 char c[sizeof (long int)];
29710 } u;
29711 u.l = 1;
29712 return u.c[sizeof (long int) - 1] == 1;
29713
29714 ;
29715 return 0;
29716 }
29717 _ACEOF
29718 if ac_fn_c_try_run "$LINENO"
29719 then :
29720 ac_cv_c_bigendian=no
29721 else case e in #(
29722 e) ac_cv_c_bigendian=yes ;;
29723 esac
29724 fi
29725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29726 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
29727 esac
29728 fi
29729
29730 fi ;;
29731 esac
29732 fi
29733 :
29734 case $ac_cv_c_bigendian in #(
29735 yes)
29736 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
29737 no)
29738 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
29739 universal)
29740
29741 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
29742
29743 ;; #(
29744 *)
29745 gl_cv_cc_double_expbit0="unknown" ;;
29746 esac
29747
29748 ;;
29749 esac
29750 fi
29751 rm -rf conftest*
29752
29753
29754 else case e in #(
29755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29756 /* end confdefs.h. */
29757
29758 #include <float.h>
29759 #include <stddef.h>
29760 #include <stdio.h>
29761 #include <string.h>
29762 #define NWORDS \
29763 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
29764 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
29765 static unsigned int ored_words[NWORDS];
29766 static unsigned int anded_words[NWORDS];
29767 static void add_to_ored_words (double x)
29768 {
29769 memory_double m;
29770 size_t i;
29771 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
29772 memset (&m, 0, sizeof (memory_double));
29773 m.value = x;
29774 for (i = 0; i < NWORDS; i++)
29775 {
29776 ored_words[i] |= m.word[i];
29777 anded_words[i] &= m.word[i];
29778 }
29779 }
29780 int main ()
29781 {
29782 size_t j;
29783 FILE *fp = fopen ("conftest.out", "w");
29784 if (fp == NULL)
29785 return 1;
29786 for (j = 0; j < NWORDS; j++)
29787 anded_words[j] = ~ (unsigned int) 0;
29788 add_to_ored_words (0.25);
29789 add_to_ored_words (0.5);
29790 add_to_ored_words (1.0);
29791 add_to_ored_words (2.0);
29792 add_to_ored_words (4.0);
29793 /* Remove bits that are common (e.g. if representation of the first mantissa
29794 bit is explicit). */
29795 for (j = 0; j < NWORDS; j++)
29796 ored_words[j] &= ~anded_words[j];
29797 /* Now find the nonzero word. */
29798 for (j = 0; j < NWORDS; j++)
29799 if (ored_words[j] != 0)
29800 break;
29801 if (j < NWORDS)
29802 {
29803 size_t i;
29804 for (i = j + 1; i < NWORDS; i++)
29805 if (ored_words[i] != 0)
29806 {
29807 fprintf (fp, "unknown");
29808 return (fclose (fp) != 0);
29809 }
29810 for (i = 0; ; i++)
29811 if ((ored_words[j] >> i) & 1)
29812 {
29813 fprintf (fp, "word %d bit %d", (int) j, (int) i);
29814 return (fclose (fp) != 0);
29815 }
29816 }
29817 fprintf (fp, "unknown");
29818 return (fclose (fp) != 0);
29819 }
29820
29821 _ACEOF
29822 if ac_fn_c_try_run "$LINENO"
29823 then :
29824 gl_cv_cc_double_expbit0=`cat conftest.out`
29825 else case e in #(
29826 e) gl_cv_cc_double_expbit0="unknown" ;;
29827 esac
29828 fi
29829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29830 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
29831 esac
29832 fi
29833
29834 rm -f conftest.out
29835 ;;
29836 esac
29837 fi
29838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
29839 printf "%s\n" "$gl_cv_cc_double_expbit0" >&6; }
29840 case "$gl_cv_cc_double_expbit0" in
29841 word*bit*)
29842 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
29843 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
29844
29845 printf "%s\n" "#define DBL_EXPBIT0_WORD $word" >>confdefs.h
29846
29847
29848 printf "%s\n" "#define DBL_EXPBIT0_BIT $bit" >>confdefs.h
29849
29850 ;;
29851 esac
29852
29853
29854
29855
29856 ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
29857 if test "x$ac_cv_func_wcslen" = xyes
29858 then :
29859 printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
29860
29861 fi
29862
29863
29864
29865
29866 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
29867 if test "x$ac_cv_func_snprintf" = xyes
29868 then :
29869 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
29870
29871 fi
29872 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
29873 if test "x$ac_cv_func_strnlen" = xyes
29874 then :
29875 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
29876
29877 fi
29878 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
29879 if test "x$ac_cv_func_wcrtomb" = xyes
29880 then :
29881 printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h
29882
29883 fi
29884
29885 ac_fn_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
29886 " "$ac_c_undeclared_builtin_options" "CFLAGS"
29887 if test "x$ac_cv_have_decl__snprintf" = xyes
29888 then :
29889 ac_have_decl=1
29890 else case e in #(
29891 e) ac_have_decl=0 ;;
29892 esac
29893 fi
29894 printf "%s\n" "#define HAVE_DECL__SNPRINTF $ac_have_decl" >>confdefs.h
29895
29896
29897 case "$gl_cv_func_snprintf_retval_c99" in
29898 *yes)
29899
29900 printf "%s\n" "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
29901
29902 ;;
29903 esac
29904
29905 case "$gl_cv_func_snprintf_truncation_c99" in
29906 *yes)
29907
29908 printf "%s\n" "#define HAVE_SNPRINTF_TRUNCATION_C99 1" >>confdefs.h
29909
29910 ;;
29911 esac
29912
29913
29914
29915
29916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
29917 printf %s "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
29918 if test ${gl_cv_header_wchar_h_correct_inline+y}
29919 then :
29920 printf %s "(cached) " >&6
29921 else case e in #(
29922 e) gl_cv_header_wchar_h_correct_inline=yes
29923 case "$host_os" in
29924 *-gnu* | gnu*)
29925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29926 /* end confdefs.h. */
29927
29928
29929 #define wcstod renamed_wcstod
29930 #include <wchar.h>
29931 extern int zero (void);
29932 int main () { return zero(); }
29933
29934 _ACEOF
29935 saved_ac_compile="$ac_compile"
29936 ac_compile=`echo "$saved_ac_compile" | sed s/conftest/conftest1/`
29937 if echo '#include "conftest.c"' >conftest1.c \
29938 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
29939 (eval $ac_compile) 2>&5
29940 ac_status=$?
29941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29942 test $ac_status = 0; }; then
29943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29944 /* end confdefs.h. */
29945
29946
29947 #define wcstod renamed_wcstod
29948 #include <wchar.h>
29949 int zero (void) { return 0; }
29950
29951 _ACEOF
29952 ac_compile=`echo "$saved_ac_compile" | sed s/conftest/conftest2/`
29953 if echo '#include "conftest.c"' >conftest2.c \
29954 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
29955 (eval $ac_compile) 2>&5
29956 ac_status=$?
29957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29958 test $ac_status = 0; }; then
29959 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
29960 :
29961 else
29962 gl_cv_header_wchar_h_correct_inline=no
29963 fi
29964 fi
29965 fi
29966 ac_compile="$saved_ac_compile"
29967 rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
29968 ;;
29969 esac
29970 ;;
29971 esac
29972 fi
29973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
29974 printf "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; }
29975 if test $gl_cv_header_wchar_h_correct_inline = no; then
29976 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
29977 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
29978 C99 mode. You have four options:
29979 - Add the flag -fgnu89-inline to CC and reconfigure, or
29980 - Fix your include files, using parts of
29981 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
29982 - Use a gcc version older than 4.3, or
29983 - Don't use the flags -std=c99 or -std=gnu99.
29984 Configuration aborted." "$LINENO" 5
29985 fi
29986
29987
29988
29989
29990 if test $ac_cv_header_crtdefs_h = yes; then
29991 HAVE_CRTDEFS_H=1
29992 else
29993 HAVE_CRTDEFS_H=0
29994 fi
29995
29996
29997
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007
30008
30009 if test $gl_cv_have_include_next = yes; then
30010 gl_cv_next_wchar_h='<'wchar.h'>'
30011 else
30012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
30013 printf %s "checking absolute name of <wchar.h>... " >&6; }
30014 if test ${gl_cv_next_wchar_h+y}
30015 then :
30016 printf %s "(cached) " >&6
30017 else case e in #(
30018 e)
30019 if test $ac_cv_header_wchar_h = yes; then
30020
30021
30022
30023
30024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30025 /* end confdefs.h. */
30026 #include <wchar.h>
30027 _ACEOF
30028 case "$host_os" in
30029 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30030 *) gl_absname_cpp="$ac_cpp" ;;
30031 esac
30032
30033 case "$host_os" in
30034 mingw* | windows*)
30035 gl_dirsep_regex='[/\\]'
30036 ;;
30037 *)
30038 gl_dirsep_regex='\/'
30039 ;;
30040 esac
30041 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30042 gl_header_literal_regex=`echo 'wchar.h' \
30043 | sed -e "$gl_make_literal_regex_sed"`
30044 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30045 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30046 s|^/[^/]|//&|
30047 p
30048 q
30049 }'
30050
30051 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30052 sed -n "$gl_absolute_header_sed"`
30053
30054 gl_header=$gl_cv_absolute_wchar_h
30055 gl_cv_next_wchar_h='"'$gl_header'"'
30056 else
30057 gl_cv_next_wchar_h='<'wchar.h'>'
30058 fi
30059
30060 ;;
30061 esac
30062 fi
30063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
30064 printf "%s\n" "$gl_cv_next_wchar_h" >&6; }
30065 fi
30066 NEXT_WCHAR_H=$gl_cv_next_wchar_h
30067
30068 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30069 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30070 gl_next_as_first_directive='<'wchar.h'>'
30071 else
30072 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30073 gl_next_as_first_directive=$gl_cv_next_wchar_h
30074 fi
30075 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
30076
30077
30078
30079
30080 if test $ac_cv_header_wchar_h = yes; then
30081 HAVE_WCHAR_H=1
30082 else
30083 HAVE_WCHAR_H=0
30084 fi
30085
30086
30087
30088
30089
30090 if test $gt_cv_c_wint_t = yes; then
30091 HAVE_WINT_T=1
30092 else
30093 HAVE_WINT_T=0
30094 fi
30095
30096
30097
30098
30099
30100
30101
30102
30103
30104
30105 ac_fn_check_decl "$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" "
30106 #include <wchar.h>
30107
30108 " "$ac_c_undeclared_builtin_options" "CFLAGS"
30109 if test "x$ac_cv_have_decl_wcsdup" = xyes
30110 then :
30111 ac_have_decl=1
30112 else case e in #(
30113 e) ac_have_decl=0 ;;
30114 esac
30115 fi
30116 printf "%s\n" "#define HAVE_DECL_WCSDUP $ac_have_decl" >>confdefs.h
30117
30118 if test $ac_cv_have_decl_wcsdup = no; then
30119 HAVE_DECL_WCSDUP=0
30120 fi
30121
30122
30123
30124
30125
30126 ac_fn_c_check_func "$LINENO" "strerrorname_np" "ac_cv_func_strerrorname_np"
30127 if test "x$ac_cv_func_strerrorname_np" = xyes
30128 then :
30129 printf "%s\n" "#define HAVE_STRERRORNAME_NP 1" >>confdefs.h
30130
30131 fi
30132
30133 if test $ac_cv_func_strerrorname_np = yes; then
30134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerrorname_np works" >&5
30135 printf %s "checking whether strerrorname_np works... " >&6; }
30136 if test ${gl_cv_func_strerrorname_np_works+y}
30137 then :
30138 printf %s "(cached) " >&6
30139 else case e in #(
30140 e) if test "$cross_compiling" = yes
30141 then :
30142 case "$host_os" in
30143 # Guess no on glibc systems.
30144 *-gnu* | gnu*)
30145 gl_cv_func_strerrorname_np_works="guessing no" ;;
30146 # Otherwise obey --enable-cross-guesses.
30147 *)
30148 gl_cv_func_strerrorname_np_works="$gl_cross_guess_normal" ;;
30149 esac
30150
30151 else case e in #(
30152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30153 /* end confdefs.h. */
30154 #include <errno.h>
30155 #include <string.h>
30156
30157 int
30158 main (void)
30159 {
30160 return
30161 strcmp (strerrorname_np (EINVAL), "EINVAL") != 0
30162 #ifdef EDEADLOCK
30163 || strerrorname_np (EDEADLOCK) == NULL
30164 #endif
30165 #ifdef ENOSYM
30166 || strerrorname_np (ENOSYM) == NULL
30167 #endif
30168 ;
30169
30170 ;
30171 return 0;
30172 }
30173 _ACEOF
30174 if ac_fn_c_try_run "$LINENO"
30175 then :
30176 gl_cv_func_strerrorname_np_works=yes
30177 else case e in #(
30178 e) gl_cv_func_strerrorname_np_works=no ;;
30179 esac
30180 fi
30181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30182 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
30183 esac
30184 fi
30185
30186 ;;
30187 esac
30188 fi
30189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerrorname_np_works" >&5
30190 printf "%s\n" "$gl_cv_func_strerrorname_np_works" >&6; }
30191 fi
30192
30193
30194
30195 if test $ac_cv_func_strerrorname_np = yes; then
30196 case "$gl_cv_func_strerrorname_np_works" in
30197 *yes)
30198
30199 printf "%s\n" "#define HAVE_WORKING_STRERRORNAME_NP 1" >>confdefs.h
30200
30201 ;;
30202 esac
30203 fi
30204
30205
30206
30207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5
30208 printf %s "checking for C compiler option to allow warnings... " >&6; }
30209 if test ${gl_cv_cc_wallow+y}
30210 then :
30211 printf %s "(cached) " >&6
30212 else case e in #(
30213 e) rm -f conftest*
30214 echo 'int dummy;' > conftest.c
30215 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err'
30216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30217 (eval $ac_try) 2>&5
30218 ac_status=$?
30219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30220 test $ac_status = 0; }; } >/dev/null
30221 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err'
30222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30223 (eval $ac_try) 2>&5
30224 ac_status=$?
30225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30226 test $ac_status = 0; }; } >/dev/null
30227 if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
30228 gl_cv_cc_wallow='-Wno-error'
30229 else
30230 gl_cv_cc_wallow=none
30231 fi
30232 rm -f conftest*
30233 ;;
30234 esac
30235 fi
30236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5
30237 printf "%s\n" "$gl_cv_cc_wallow" >&6; }
30238 case "$gl_cv_cc_wallow" in
30239 none) GL_CFLAG_ALLOW_WARNINGS='' ;;
30240 *) GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;;
30241 esac
30242
30243
30244
30245
30246 GL_CFLAG_GNULIB_WARNINGS=''
30247 if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then
30248 cat > conftest.c <<\EOF
30249 #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
30250 -Wno-cast-qual
30251 -Wno-conversion
30252 -Wno-float-equal
30253 -Wno-sign-compare
30254 -Wno-undef
30255 -Wno-unused-function
30256 -Wno-unused-parameter
30257 #endif
30258 #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
30259 -Wno-float-conversion
30260 #endif
30261 #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
30262 -Wimplicit-fallthrough
30263 #endif
30264 #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
30265 -Wno-pedantic
30266 #endif
30267 #if 3 < __clang_major__ + (9 <= __clang_minor__)
30268 -Wno-tautological-constant-out-of-range-compare
30269 #endif
30270 #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
30271 -Wno-sign-conversion
30272 -Wno-type-limits
30273 #endif
30274 #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4
30275 -Wno-unsuffixed-float-constants
30276 #endif
30277 EOF
30278 gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out"
30279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5
30280 (eval $gl_command) 2>&5
30281 ac_status=$?
30282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30283 test $ac_status = 0; }; then
30284 gl_options=`grep -v '#' conftest.out`
30285 for word in $gl_options; do
30286 GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word"
30287 done
30288 fi
30289 rm -f conftest.c conftest.out
30290 fi
30291
30292
30293
30294 if true; then
30295 GL_COND_LIBTOOL_TRUE=
30296 GL_COND_LIBTOOL_FALSE='#'
30297 else
30298 GL_COND_LIBTOOL_TRUE='#'
30299 GL_COND_LIBTOOL_FALSE=
30300 fi
30301
30302 gl_cond_libtool=true
30303 gl_m4_base='gl/m4'
30304
30305
30306
30307
30308
30309
30310
30311
30312
30313
30314
30315
30316 gl_source_base='gl/lib'
30317 gl_source_base_prefix=
30318
30319
30320 if test $ac_cv_func_alloca_works = no; then
30321 :
30322 fi
30323
30324 # Define an additional variable used in the Makefile substitution.
30325 if test $ac_cv_working_alloca_h = yes; then
30326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
30327 printf %s "checking for alloca as a compiler built-in... " >&6; }
30328 if test ${gl_cv_rpl_alloca+y}
30329 then :
30330 printf %s "(cached) " >&6
30331 else case e in #(
30332 e)
30333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30334 /* end confdefs.h. */
30335
30336 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
30337 Need own alloca
30338 #endif
30339
30340 _ACEOF
30341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30342 $EGREP_TRADITIONAL "Need own alloca" >/dev/null 2>&1
30343 then :
30344 gl_cv_rpl_alloca=yes
30345 else case e in #(
30346 e) gl_cv_rpl_alloca=no ;;
30347 esac
30348 fi
30349 rm -rf conftest*
30350
30351 ;;
30352 esac
30353 fi
30354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
30355 printf "%s\n" "$gl_cv_rpl_alloca" >&6; }
30356 if test $gl_cv_rpl_alloca = yes; then
30357
30358 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
30359
30360 GL_GENERATE_ALLOCA_H=true
30361 else
30362 GL_GENERATE_ALLOCA_H=false
30363 fi
30364 else
30365 GL_GENERATE_ALLOCA_H=true
30366 fi
30367
30368 if test $ac_cv_working_alloca_h = yes; then
30369 HAVE_ALLOCA_H=1
30370 else
30371 HAVE_ALLOCA_H=0
30372 fi
30373
30374
30375
30376
30377
30378
30379 case "$GL_GENERATE_ALLOCA_H" in
30380 false) ALLOCA_H='' ;;
30381 true)
30382 if test -z "$ALLOCA_H"; then
30383 ALLOCA_H="${gl_source_base_prefix}alloca.h"
30384 fi
30385 ;;
30386 *) echo "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;;
30387 esac
30388
30389
30390 if $GL_GENERATE_ALLOCA_H; then
30391 GL_GENERATE_ALLOCA_H_TRUE=
30392 GL_GENERATE_ALLOCA_H_FALSE='#'
30393 else
30394 GL_GENERATE_ALLOCA_H_TRUE='#'
30395 GL_GENERATE_ALLOCA_H_FALSE=
30396 fi
30397 :
30398 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
30399 GL_GENERATE_ALLOCA_H_TRUE='#'
30400 GL_GENERATE_ALLOCA_H_FALSE='#'
30401 fi
30402
30403
30404
30405
30406
30407
30408
30409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static_assert" >&5
30410 printf %s "checking for static_assert... " >&6; }
30411 if test ${gl_cv_static_assert+y}
30412 then :
30413 printf %s "(cached) " >&6
30414 else case e in #(
30415 e) gl_saved_CFLAGS=$CFLAGS
30416 for gl_working in "yes, a keyword" "yes, an <assert.h> macro"; do
30417 case $gl_working in #(
30418 *assert.h*) :
30419 CFLAGS="$gl_saved_CFLAGS -DINCLUDE_ASSERT_H" ;; #(
30420 *) :
30421 ;;
30422 esac
30423
30424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30425 /* end confdefs.h. */
30426 #if defined __clang__ && __STDC_VERSION__ < 202311
30427 #pragma clang diagnostic error "-Wc2x-extensions"
30428 #pragma clang diagnostic error "-Wc++1z-extensions"
30429 #endif
30430 #ifdef INCLUDE_ASSERT_H
30431 #include <assert.h>
30432 #endif
30433 static_assert (2 + 2 == 4, "arithmetic does not work");
30434 static_assert (2 + 2 == 4);
30435
30436 int
30437 main (void)
30438 {
30439
30440 static_assert (sizeof (char) == 1, "sizeof does not work");
30441 static_assert (sizeof (char) == 1);
30442
30443 ;
30444 return 0;
30445 }
30446 _ACEOF
30447 if ac_fn_c_try_compile "$LINENO"
30448 then :
30449 gl_cv_static_assert=$gl_working
30450 else case e in #(
30451 e) gl_cv_static_assert=no ;;
30452 esac
30453 fi
30454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30455 CFLAGS=$gl_saved_CFLAGS
30456 test "$gl_cv_static_assert" != no && break
30457 done ;;
30458 esac
30459 fi
30460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_static_assert" >&5
30461 printf "%s\n" "$gl_cv_static_assert" >&6; }
30462
30463 GL_GENERATE_ASSERT_H=false
30464 case $gl_cv_static_assert in #(
30465 yes*keyword*) :
30466
30467 printf "%s\n" "#define HAVE_C_STATIC_ASSERT 1" >>confdefs.h
30468 ;; #(
30469 no) :
30470 GL_GENERATE_ASSERT_H=true
30471
30472
30473
30474
30475
30476
30477
30478
30479 if test $gl_cv_have_include_next = yes; then
30480 gl_cv_next_assert_h='<'assert.h'>'
30481 else
30482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <assert.h>" >&5
30483 printf %s "checking absolute name of <assert.h>... " >&6; }
30484 if test ${gl_cv_next_assert_h+y}
30485 then :
30486 printf %s "(cached) " >&6
30487 else case e in #(
30488 e)
30489
30490
30491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30492 /* end confdefs.h. */
30493 #include <assert.h>
30494 _ACEOF
30495 case "$host_os" in
30496 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30497 *) gl_absname_cpp="$ac_cpp" ;;
30498 esac
30499
30500 case "$host_os" in
30501 mingw* | windows*)
30502 gl_dirsep_regex='[/\\]'
30503 ;;
30504 *)
30505 gl_dirsep_regex='\/'
30506 ;;
30507 esac
30508 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30509 gl_header_literal_regex=`echo 'assert.h' \
30510 | sed -e "$gl_make_literal_regex_sed"`
30511 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30512 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30513 s|^/[^/]|//&|
30514 p
30515 q
30516 }'
30517
30518 gl_cv_absolute_assert_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30519 sed -n "$gl_absolute_header_sed"`
30520
30521 gl_header=$gl_cv_absolute_assert_h
30522 gl_cv_next_assert_h='"'$gl_header'"'
30523
30524 ;;
30525 esac
30526 fi
30527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_assert_h" >&5
30528 printf "%s\n" "$gl_cv_next_assert_h" >&6; }
30529 fi
30530 NEXT_ASSERT_H=$gl_cv_next_assert_h
30531
30532 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30533 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30534 gl_next_as_first_directive='<'assert.h'>'
30535 else
30536 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30537 gl_next_as_first_directive=$gl_cv_next_assert_h
30538 fi
30539 NEXT_AS_FIRST_DIRECTIVE_ASSERT_H=$gl_next_as_first_directive
30540
30541
30542
30543 ;; #(
30544 *) :
30545 ;;
30546 esac
30547
30548
30549
30550
30551
30552
30553
30554 case "$GL_GENERATE_ASSERT_H" in
30555 false) ASSERT_H='' ;;
30556 true)
30557 if test -z "$ASSERT_H"; then
30558 ASSERT_H="${gl_source_base_prefix}assert.h"
30559 fi
30560 ;;
30561 *) echo "*** GL_GENERATE_ASSERT_H is not set correctly" 1>&2; exit 1 ;;
30562 esac
30563
30564
30565 if $GL_GENERATE_ASSERT_H; then
30566 GL_GENERATE_ASSERT_H_TRUE=
30567 GL_GENERATE_ASSERT_H_FALSE='#'
30568 else
30569 GL_GENERATE_ASSERT_H_TRUE='#'
30570 GL_GENERATE_ASSERT_H_FALSE=
30571 fi
30572 :
30573 if test -z "${GL_GENERATE_ASSERT_H_TRUE}" && test -z "${GL_GENERATE_ASSERT_H_FALSE}"; then
30574 GL_GENERATE_ASSERT_H_TRUE='#'
30575 GL_GENERATE_ASSERT_H_FALSE='#'
30576 fi
30577
30578
30579
30580
30581
30582
30583
30584
30585
30586 REPLACE_CALLOC_FOR_CALLOC_GNU="$REPLACE_CALLOC_FOR_CALLOC_POSIX"
30587 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 0; then
30588
30589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether calloc (0, n) and calloc (n, 0) return nonnull" >&5
30590 printf %s "checking whether calloc (0, n) and calloc (n, 0) return nonnull... " >&6; }
30591 if test ${ac_cv_func_calloc_0_nonnull+y}
30592 then :
30593 printf %s "(cached) " >&6
30594 else case e in #(
30595 e) if test $cross_compiling != yes; then
30596 ac_cv_func_calloc_0_nonnull=yes
30597 if test "$cross_compiling" = yes
30598 then :
30599 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
30600 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
30601 as_fn_error $? "cannot run test program while cross compiling
30602 See 'config.log' for more details" "$LINENO" 5; }
30603 else case e in #(
30604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30605 /* end confdefs.h. */
30606 $ac_includes_default
30607 int
30608 main (void)
30609 {
30610 int result = 0;
30611 char * volatile p = calloc (0, 0);
30612 if (!p)
30613 result |= 1;
30614 free (p);
30615 return result;
30616
30617 ;
30618 return 0;
30619 }
30620 _ACEOF
30621 if ac_fn_c_try_run "$LINENO"
30622 then :
30623
30624 else case e in #(
30625 e) ac_cv_func_calloc_0_nonnull=no ;;
30626 esac
30627 fi
30628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30629 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
30630 esac
30631 fi
30632
30633 else
30634 case "$host_os" in
30635 # Guess yes on glibc systems.
30636 *-gnu* | gnu*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
30637 # Guess yes on musl systems.
30638 *-musl* | midipix*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
30639 # Guess yes on native Windows.
30640 mingw* | windows*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
30641 # If we don't know, obey --enable-cross-guesses.
30642 *) ac_cv_func_calloc_0_nonnull="$gl_cross_guess_normal" ;;
30643 esac
30644 fi
30645 ;;
30646 esac
30647 fi
30648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_calloc_0_nonnull" >&5
30649 printf "%s\n" "$ac_cv_func_calloc_0_nonnull" >&6; }
30650 case $ac_cv_func_calloc_0_nonnull in #(
30651 *yes) :
30652 ;; #(
30653 *) :
30654 REPLACE_CALLOC_FOR_CALLOC_GNU=1 ;;
30655 esac
30656
30657 fi
30658
30659 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1; then
30660
30661
30662
30663
30664
30665
30666
30667
30668 gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
30669
30670 fi
30671
30672
30673
30674
30675
30676
30677
30678
30679
30680 GL_GNULIB_CALLOC_GNU=1
30681
30682
30683
30684
30685
30686 printf "%s\n" "#define GNULIB_TEST_CALLOC_GNU 1" >>confdefs.h
30687
30688
30689
30690
30691
30692
30693 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
30694 REPLACE_CALLOC_FOR_CALLOC_POSIX=1
30695 fi
30696
30697 if test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1; then
30698
30699
30700
30701
30702
30703
30704
30705
30706 gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
30707
30708 fi
30709
30710
30711
30712
30713
30714
30715
30716
30717
30718 GL_GNULIB_CALLOC_POSIX=1
30719
30720
30721
30722
30723
30724 printf "%s\n" "#define GNULIB_TEST_CALLOC_POSIX 1" >>confdefs.h
30725
30726
30727
30728
30729
30730
30731
30732
30733 # On mingw, these functions are defined in the libwinpthread library,
30734 # which is better avoided. In fact, the clock_gettime function is buggy
30735 # in 32-bit mingw, when -D__MINGW_USE_VC2005_COMPAT is used (which Gnulib's
30736 # year2038 module does): It leaves the upper 32 bits of the tv_sec field
30737 # of the result uninitialized.
30738
30739 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
30740 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
30741
30742 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
30743 # programs in the package would end up linked with that potentially-shared
30744 # library, inducing unnecessary run-time overhead.
30745 CLOCK_TIME_LIB=
30746
30747 case "$host_os" in
30748 mingw* | windows*)
30749 ac_cv_func_clock_getres=no
30750 ac_cv_func_clock_gettime=no
30751 ac_cv_func_clock_settime=no
30752 ;;
30753 *)
30754 gl_saved_libs=$LIBS
30755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
30756 printf %s "checking for library containing clock_gettime... " >&6; }
30757 if test ${ac_cv_search_clock_gettime+y}
30758 then :
30759 printf %s "(cached) " >&6
30760 else case e in #(
30761 e) ac_func_search_save_LIBS=$LIBS
30762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30763 /* end confdefs.h. */
30764
30765 /* Override any GCC internal prototype to avoid an error.
30766 Use char because int might match the return type of a GCC
30767 builtin and then its argument prototype would still apply.
30768 The 'extern "C"' is for builds by C++ compilers;
30769 although this is not generally supported in C code supporting it here
30770 has little cost and some practical benefit (sr 110532). */
30771 #ifdef __cplusplus
30772 extern "C"
30773 #endif
30774 char clock_gettime (void);
30775 int
30776 main (void)
30777 {
30778 return clock_gettime ();
30779 ;
30780 return 0;
30781 }
30782 _ACEOF
30783 for ac_lib in '' rt posix4
30784 do
30785 if test -z "$ac_lib"; then
30786 ac_res="none required"
30787 else
30788 ac_res=-l$ac_lib
30789 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30790 fi
30791 if ac_fn_c_try_link "$LINENO"
30792 then :
30793 ac_cv_search_clock_gettime=$ac_res
30794 fi
30795 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30796 conftest$ac_exeext
30797 if test ${ac_cv_search_clock_gettime+y}
30798 then :
30799 break
30800 fi
30801 done
30802 if test ${ac_cv_search_clock_gettime+y}
30803 then :
30804
30805 else case e in #(
30806 e) ac_cv_search_clock_gettime=no ;;
30807 esac
30808 fi
30809 rm conftest.$ac_ext
30810 LIBS=$ac_func_search_save_LIBS ;;
30811 esac
30812 fi
30813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
30814 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
30815 ac_res=$ac_cv_search_clock_gettime
30816 if test "$ac_res" != no
30817 then :
30818 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30819 test "$ac_cv_search_clock_gettime" = "none required" ||
30820 CLOCK_TIME_LIB=$ac_cv_search_clock_gettime
30821 fi
30822
30823 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
30824 if test "x$ac_cv_func_clock_getres" = xyes
30825 then :
30826 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
30827
30828 fi
30829 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
30830 if test "x$ac_cv_func_clock_gettime" = xyes
30831 then :
30832 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
30833
30834 fi
30835 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
30836 if test "x$ac_cv_func_clock_settime" = xyes
30837 then :
30838 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
30839
30840 fi
30841
30842 LIBS=$gl_saved_libs
30843 ;;
30844 esac
30845
30846 # For backward compatibility.
30847 LIB_CLOCK_GETTIME="$CLOCK_TIME_LIB"
30848
30849
30850
30851
30852 printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
30853
30854
30855
30856
30857 if test $REPLACE_CLOSE = 1; then
30858 GL_COND_OBJ_CLOSE_TRUE=
30859 GL_COND_OBJ_CLOSE_FALSE='#'
30860 else
30861 GL_COND_OBJ_CLOSE_TRUE='#'
30862 GL_COND_OBJ_CLOSE_FALSE=
30863 fi
30864 :
30865 if test -z "${GL_COND_OBJ_CLOSE_TRUE}" && test -z "${GL_COND_OBJ_CLOSE_FALSE}"; then
30866 GL_COND_OBJ_CLOSE_TRUE='#'
30867 GL_COND_OBJ_CLOSE_FALSE='#'
30868 fi
30869
30870
30871
30872
30873
30874
30875
30876
30877
30878
30879 GL_GNULIB_CLOSE=1
30880
30881
30882
30883
30884
30885 printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
30886
30887
30888
30889
30890
30891 printf "%s\n" "#define GNULIB_DIRNAME 1" >>confdefs.h
30892
30893
30894
30895
30896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
30897 printf %s "checking whether // is distinct from /... " >&6; }
30898 if test ${gl_cv_double_slash_root+y}
30899 then :
30900 printf %s "(cached) " >&6
30901 else case e in #(
30902 e) if test x"$cross_compiling" = xyes ; then
30903 # When cross-compiling, there is no way to tell whether // is special
30904 # short of a list of hosts. However, the only known hosts to date
30905 # that have a distinct // are Apollo DomainOS (too old to port to),
30906 # Cygwin, and z/OS. If anyone knows of another system for which // has
30907 # special semantics and is distinct from /, please report it to
30908 # <[email protected]>.
30909 case $host in
30910 *-cygwin | i370-ibm-openedition)
30911 gl_cv_double_slash_root=yes ;;
30912 *)
30913 # Be optimistic and assume that / and // are the same when we
30914 # don't know.
30915 gl_cv_double_slash_root='unknown, assuming no' ;;
30916 esac
30917 else
30918 set x `ls -di / // 2>/dev/null`
30919 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
30920 gl_cv_double_slash_root=no
30921 else
30922 gl_cv_double_slash_root=yes
30923 fi
30924 fi ;;
30925 esac
30926 fi
30927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
30928 printf "%s\n" "$gl_cv_double_slash_root" >&6; }
30929 if test "$gl_cv_double_slash_root" = yes; then
30930
30931 printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
30932
30933 fi
30934
30935
30936
30937
30938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
30939 printf %s "checking whether dup2 works... " >&6; }
30940 if test ${gl_cv_func_dup2_works+y}
30941 then :
30942 printf %s "(cached) " >&6
30943 else case e in #(
30944 e) if test "$cross_compiling" = yes
30945 then :
30946 case "$host_os" in
30947 mingw* | windows*) # on this platform, dup2 always returns 0 for success
30948 gl_cv_func_dup2_works="guessing no" ;;
30949 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
30950 gl_cv_func_dup2_works="guessing no" ;;
30951 aix* | freebsd*)
30952 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
30953 # not EBADF.
30954 gl_cv_func_dup2_works="guessing no" ;;
30955 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
30956 gl_cv_func_dup2_works="guessing no" ;;
30957 *-android*) # implemented using dup3(), which fails if oldfd == newfd
30958 gl_cv_func_dup2_works="guessing no" ;;
30959 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
30960 gl_cv_func_dup2_works="guessing no" ;;
30961 *) gl_cv_func_dup2_works="guessing yes" ;;
30962 esac
30963 else case e in #(
30964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30965 /* end confdefs.h. */
30966
30967 #include <errno.h>
30968 #include <fcntl.h>
30969 #include <limits.h>
30970 #include <sys/resource.h>
30971 #include <unistd.h>
30972
30973
30974 $gl_mda_defines
30975
30976 #ifndef RLIM_SAVED_CUR
30977 # define RLIM_SAVED_CUR RLIM_INFINITY
30978 #endif
30979 #ifndef RLIM_SAVED_MAX
30980 # define RLIM_SAVED_MAX RLIM_INFINITY
30981 #endif
30982
30983 int
30984 main (void)
30985 {
30986 int result = 0;
30987 int bad_fd = INT_MAX;
30988 struct rlimit rlim;
30989 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
30990 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
30991 && rlim.rlim_cur != RLIM_INFINITY
30992 && rlim.rlim_cur != RLIM_SAVED_MAX
30993 && rlim.rlim_cur != RLIM_SAVED_CUR)
30994 bad_fd = rlim.rlim_cur;
30995 #ifdef FD_CLOEXEC
30996 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
30997 result |= 1;
30998 #endif
30999 if (dup2 (1, 1) != 1)
31000 result |= 2;
31001 #ifdef FD_CLOEXEC
31002 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
31003 result |= 4;
31004 #endif
31005 close (0);
31006 if (dup2 (0, 0) != -1)
31007 result |= 8;
31008 /* Many gnulib modules require POSIX conformance of EBADF. */
31009 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
31010 result |= 16;
31011 /* Flush out some cygwin core dumps. */
31012 if (dup2 (2, -1) != -1 || errno != EBADF)
31013 result |= 32;
31014 dup2 (2, 255);
31015 dup2 (2, 256);
31016 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
31017 {
31018 int fd = open (".", O_RDONLY);
31019 if (fd == -1)
31020 result |= 64;
31021 else if (dup2 (fd, fd + 1) == -1)
31022 result |= 128;
31023 close (fd);
31024 }
31025 return result;
31026 ;
31027 return 0;
31028 }
31029
31030 _ACEOF
31031 if ac_fn_c_try_run "$LINENO"
31032 then :
31033 gl_cv_func_dup2_works=yes
31034 else case e in #(
31035 e) gl_cv_func_dup2_works=no ;;
31036 esac
31037 fi
31038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31039 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
31040 esac
31041 fi
31042
31043 ;;
31044 esac
31045 fi
31046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
31047 printf "%s\n" "$gl_cv_func_dup2_works" >&6; }
31048 case "$gl_cv_func_dup2_works" in
31049 *yes) ;;
31050 *)
31051 REPLACE_DUP2=1
31052 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
31053 if test "x$ac_cv_func_setdtablesize" = xyes
31054 then :
31055 printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h
31056
31057 fi
31058
31059 ;;
31060 esac
31061
31062
31063
31064 if test $REPLACE_DUP2 = 1; then
31065 GL_COND_OBJ_DUP2_TRUE=
31066 GL_COND_OBJ_DUP2_FALSE='#'
31067 else
31068 GL_COND_OBJ_DUP2_TRUE='#'
31069 GL_COND_OBJ_DUP2_FALSE=
31070 fi
31071 :
31072 if test -z "${GL_COND_OBJ_DUP2_TRUE}" && test -z "${GL_COND_OBJ_DUP2_FALSE}"; then
31073 GL_COND_OBJ_DUP2_TRUE='#'
31074 GL_COND_OBJ_DUP2_FALSE='#'
31075 fi
31076
31077 if test -z "$GL_COND_OBJ_DUP2_TRUE"; then :
31078
31079
31080
31081 fi
31082
31083
31084
31085
31086
31087
31088
31089
31090
31091 GL_GNULIB_DUP2=1
31092
31093
31094
31095
31096
31097 printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h
31098
31099
31100
31101
31102
31103
31104
31105
31106
31107
31108
31109
31110
31111 GL_GNULIB_ENVIRON=1
31112
31113
31114
31115
31116
31117 printf "%s\n" "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
31118
31119
31120
31121
31122
31123
31124
31125
31126 case "$GL_GENERATE_ERRNO_H" in
31127 false) ERRNO_H='' ;;
31128 true)
31129 if test -z "$ERRNO_H"; then
31130 ERRNO_H="${gl_source_base_prefix}errno.h"
31131 fi
31132 ;;
31133 *) echo "*** GL_GENERATE_ERRNO_H is not set correctly" 1>&2; exit 1 ;;
31134 esac
31135
31136
31137 if $GL_GENERATE_ERRNO_H; then
31138 GL_GENERATE_ERRNO_H_TRUE=
31139 GL_GENERATE_ERRNO_H_FALSE='#'
31140 else
31141 GL_GENERATE_ERRNO_H_TRUE='#'
31142 GL_GENERATE_ERRNO_H_FALSE=
31143 fi
31144 :
31145 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
31146 GL_GENERATE_ERRNO_H_TRUE='#'
31147 GL_GENERATE_ERRNO_H_FALSE='#'
31148 fi
31149
31150
31151
31152
31153
31154
31155
31156
31157
31158
31159 if test $COMPILE_ERROR_C = 1; then
31160 GL_COND_OBJ_ERROR_TRUE=
31161 GL_COND_OBJ_ERROR_FALSE='#'
31162 else
31163 GL_COND_OBJ_ERROR_TRUE='#'
31164 GL_COND_OBJ_ERROR_FALSE=
31165 fi
31166 :
31167 if test -z "${GL_COND_OBJ_ERROR_TRUE}" && test -z "${GL_COND_OBJ_ERROR_FALSE}"; then
31168 GL_COND_OBJ_ERROR_TRUE='#'
31169 GL_COND_OBJ_ERROR_FALSE='#'
31170 fi
31171
31172 if test -z "$GL_COND_OBJ_ERROR_TRUE"; then :
31173
31174
31175
31176
31177
31178 :
31179
31180
31181 fi
31182
31183
31184
31185
31186
31187
31188
31189
31190
31191 if test $ac_cv_func_fcntl = no; then
31192
31193
31194
31195 if test $ac_cv_func_fcntl = no; then
31196 HAVE_FCNTL=0
31197 else
31198 REPLACE_FCNTL=1
31199 fi
31200
31201 else
31202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
31203 printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; }
31204 if test ${gl_cv_func_fcntl_f_dupfd_works+y}
31205 then :
31206 printf %s "(cached) " >&6
31207 else case e in #(
31208 e) if test "$cross_compiling" = yes
31209 then :
31210 case $host_os in
31211 aix* | cygwin* | haiku*)
31212 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
31213 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
31214 esac
31215 else case e in #(
31216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31217 /* end confdefs.h. */
31218 #include <errno.h>
31219 #include <fcntl.h>
31220 #include <limits.h>
31221 #include <sys/resource.h>
31222 #include <unistd.h>
31223
31224
31225 $gl_mda_defines
31226
31227 #ifndef RLIM_SAVED_CUR
31228 # define RLIM_SAVED_CUR RLIM_INFINITY
31229 #endif
31230 #ifndef RLIM_SAVED_MAX
31231 # define RLIM_SAVED_MAX RLIM_INFINITY
31232 #endif
31233
31234 int
31235 main (void)
31236 {
31237 int result = 0;
31238 int bad_fd = INT_MAX;
31239 struct rlimit rlim;
31240 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
31241 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
31242 && rlim.rlim_cur != RLIM_INFINITY
31243 && rlim.rlim_cur != RLIM_SAVED_MAX
31244 && rlim.rlim_cur != RLIM_SAVED_CUR)
31245 bad_fd = rlim.rlim_cur;
31246 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
31247 if (errno != EINVAL) result |= 2;
31248 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
31249 if (errno != EINVAL) result |= 8;
31250 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
31251 {
31252 int fd;
31253 fd = open (".", O_RDONLY);
31254 if (fd == -1)
31255 result |= 16;
31256 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
31257 result |= 32;
31258
31259 close (fd);
31260 }
31261 return result;
31262 ;
31263 return 0;
31264 }
31265 _ACEOF
31266 if ac_fn_c_try_run "$LINENO"
31267 then :
31268 gl_cv_func_fcntl_f_dupfd_works=yes
31269 else case e in #(
31270 e) gl_cv_func_fcntl_f_dupfd_works=no ;;
31271 esac
31272 fi
31273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31274 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
31275 esac
31276 fi
31277 ;;
31278 esac
31279 fi
31280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
31281 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
31282 case $gl_cv_func_fcntl_f_dupfd_works in
31283 *yes) ;;
31284 *)
31285
31286
31287 if test $ac_cv_func_fcntl = no; then
31288 HAVE_FCNTL=0
31289 else
31290 REPLACE_FCNTL=1
31291 fi
31292
31293
31294 printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
31295 ;;
31296 esac
31297
31298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
31299 printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
31300 if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y}
31301 then :
31302 printf %s "(cached) " >&6
31303 else case e in #(
31304 e) if test "$cross_compiling" = yes
31305 then :
31306 case "$host_os" in
31307 # Guess no on NetBSD.
31308 netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;;
31309 *) gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;;
31310 esac
31311
31312 else case e in #(
31313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31314 /* end confdefs.h. */
31315 #include <fcntl.h>
31316 #include <unistd.h>
31317 int main (int argc, char *argv[])
31318 {
31319 if (argc == 1)
31320 /* parent process */
31321 {
31322 if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0)
31323 return 1;
31324 return execl ("./conftest", "./conftest", "child", NULL);
31325 }
31326 else
31327 /* child process */
31328 return (fcntl (10, F_GETFL) < 0 ? 0 : 42);
31329 }
31330
31331
31332 _ACEOF
31333 if ac_fn_c_try_run "$LINENO"
31334 then :
31335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31336 /* end confdefs.h. */
31337
31338 #ifdef __linux__
31339 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
31340 it to support the semantics on older kernels that failed with EINVAL. */
31341 choke me
31342 #endif
31343
31344 int
31345 main (void)
31346 {
31347
31348 ;
31349 return 0;
31350 }
31351 _ACEOF
31352 if ac_fn_c_try_compile "$LINENO"
31353 then :
31354 gl_cv_func_fcntl_f_dupfd_cloexec=yes
31355 else case e in #(
31356 e) gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check" ;;
31357 esac
31358 fi
31359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31360
31361 else case e in #(
31362 e) gl_cv_func_fcntl_f_dupfd_cloexec=no ;;
31363 esac
31364 fi
31365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31366 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
31367 esac
31368 fi
31369
31370 ;;
31371 esac
31372 fi
31373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
31374 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
31375 case "$gl_cv_func_fcntl_f_dupfd_cloexec" in
31376 *yes) ;;
31377 *)
31378
31379
31380 if test $ac_cv_func_fcntl = no; then
31381 HAVE_FCNTL=0
31382 else
31383 REPLACE_FCNTL=1
31384 fi
31385
31386 ;;
31387 esac
31388 fi
31389
31390
31391
31392 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
31393 GL_COND_OBJ_FCNTL_TRUE=
31394 GL_COND_OBJ_FCNTL_FALSE='#'
31395 else
31396 GL_COND_OBJ_FCNTL_TRUE='#'
31397 GL_COND_OBJ_FCNTL_FALSE=
31398 fi
31399 :
31400 if test -z "${GL_COND_OBJ_FCNTL_TRUE}" && test -z "${GL_COND_OBJ_FCNTL_FALSE}"; then
31401 GL_COND_OBJ_FCNTL_TRUE='#'
31402 GL_COND_OBJ_FCNTL_FALSE='#'
31403 fi
31404
31405
31406
31407
31408
31409
31410
31411
31412
31413
31414 GL_GNULIB_FCNTL=1
31415
31416
31417
31418
31419
31420 printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
31421
31422
31423
31424
31425
31426
31427
31428
31429
31430
31431
31432
31433
31434 GL_GENERATE_FLOAT_H=false
31435 REPLACE_FLOAT_LDBL=0
31436 case "$host_os" in
31437 aix* | beos* | openbsd* | mirbsd* | irix*)
31438 GL_GENERATE_FLOAT_H=true
31439 ;;
31440 freebsd* | dragonfly*)
31441 case "$host_cpu" in
31442 i[34567]86 )
31443 GL_GENERATE_FLOAT_H=true
31444 ;;
31445 x86_64 )
31446 # On x86_64 systems, the C compiler may still be generating
31447 # 32-bit code.
31448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31449 /* end confdefs.h. */
31450 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
31451 int ok;
31452 #else
31453 error fail
31454 #endif
31455
31456 _ACEOF
31457 if ac_fn_c_try_compile "$LINENO"
31458 then :
31459
31460 else case e in #(
31461 e) GL_GENERATE_FLOAT_H=true ;;
31462 esac
31463 fi
31464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31465 ;;
31466 esac
31467 ;;
31468 linux*)
31469 case "$host_cpu" in
31470 powerpc*)
31471 GL_GENERATE_FLOAT_H=true
31472 ;;
31473 esac
31474 ;;
31475 esac
31476 case "$host_os" in
31477 aix* | freebsd* | dragonfly* | linux*)
31478 if $GL_GENERATE_FLOAT_H; then
31479 REPLACE_FLOAT_LDBL=1
31480 fi
31481 ;;
31482 esac
31483
31484 REPLACE_ITOLD=0
31485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
31486 printf %s "checking whether conversion from 'int' to 'long double' works... " >&6; }
31487 if test ${gl_cv_func_itold_works+y}
31488 then :
31489 printf %s "(cached) " >&6
31490 else case e in #(
31491 e)
31492 if test "$cross_compiling" = yes
31493 then :
31494 case "$host" in
31495 sparc*-*-linux*)
31496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31497 /* end confdefs.h. */
31498 #if defined __LP64__ || defined __arch64__
31499 int ok;
31500 #else
31501 error fail
31502 #endif
31503
31504 _ACEOF
31505 if ac_fn_c_try_compile "$LINENO"
31506 then :
31507 gl_cv_func_itold_works="guessing no"
31508 else case e in #(
31509 e) gl_cv_func_itold_works="guessing yes" ;;
31510 esac
31511 fi
31512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31513 ;;
31514 # Guess yes on native Windows.
31515 mingw* | windows*)
31516 gl_cv_func_itold_works="guessing yes" ;;
31517 *)
31518 gl_cv_func_itold_works="guessing yes" ;;
31519 esac
31520
31521 else case e in #(
31522 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31523 /* end confdefs.h. */
31524
31525 int i = -1;
31526 volatile long double ld;
31527 int main ()
31528 {
31529 ld += i * 1.0L;
31530 if (ld > 0)
31531 return 1;
31532 return 0;
31533 }
31534 _ACEOF
31535 if ac_fn_c_try_run "$LINENO"
31536 then :
31537 gl_cv_func_itold_works=yes
31538 else case e in #(
31539 e) gl_cv_func_itold_works=no ;;
31540 esac
31541 fi
31542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31543 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
31544 esac
31545 fi
31546
31547 ;;
31548 esac
31549 fi
31550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
31551 printf "%s\n" "$gl_cv_func_itold_works" >&6; }
31552 case "$gl_cv_func_itold_works" in
31553 *no)
31554 REPLACE_ITOLD=1
31555 GL_GENERATE_FLOAT_H=true
31556 ;;
31557 esac
31558
31559 if $GL_GENERATE_FLOAT_H; then
31560
31561
31562
31563
31564
31565
31566
31567
31568 if test $gl_cv_have_include_next = yes; then
31569 gl_cv_next_float_h='<'float.h'>'
31570 else
31571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
31572 printf %s "checking absolute name of <float.h>... " >&6; }
31573 if test ${gl_cv_next_float_h+y}
31574 then :
31575 printf %s "(cached) " >&6
31576 else case e in #(
31577 e)
31578
31579
31580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31581 /* end confdefs.h. */
31582 #include <float.h>
31583 _ACEOF
31584 case "$host_os" in
31585 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31586 *) gl_absname_cpp="$ac_cpp" ;;
31587 esac
31588
31589 case "$host_os" in
31590 mingw* | windows*)
31591 gl_dirsep_regex='[/\\]'
31592 ;;
31593 *)
31594 gl_dirsep_regex='\/'
31595 ;;
31596 esac
31597 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31598 gl_header_literal_regex=`echo 'float.h' \
31599 | sed -e "$gl_make_literal_regex_sed"`
31600 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31601 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31602 s|^/[^/]|//&|
31603 p
31604 q
31605 }'
31606
31607 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31608 sed -n "$gl_absolute_header_sed"`
31609
31610 gl_header=$gl_cv_absolute_float_h
31611 gl_cv_next_float_h='"'$gl_header'"'
31612
31613 ;;
31614 esac
31615 fi
31616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
31617 printf "%s\n" "$gl_cv_next_float_h" >&6; }
31618 fi
31619 NEXT_FLOAT_H=$gl_cv_next_float_h
31620
31621 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31622 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31623 gl_next_as_first_directive='<'float.h'>'
31624 else
31625 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31626 gl_next_as_first_directive=$gl_cv_next_float_h
31627 fi
31628 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
31629
31630
31631
31632
31633 fi
31634
31635
31636
31637
31638
31639
31640 case "$GL_GENERATE_FLOAT_H" in
31641 false) FLOAT_H='' ;;
31642 true)
31643 if test -z "$FLOAT_H"; then
31644 FLOAT_H="${gl_source_base_prefix}float.h"
31645 fi
31646 ;;
31647 *) echo "*** GL_GENERATE_FLOAT_H is not set correctly" 1>&2; exit 1 ;;
31648 esac
31649
31650
31651 if $GL_GENERATE_FLOAT_H; then
31652 GL_GENERATE_FLOAT_H_TRUE=
31653 GL_GENERATE_FLOAT_H_FALSE='#'
31654 else
31655 GL_GENERATE_FLOAT_H_TRUE='#'
31656 GL_GENERATE_FLOAT_H_FALSE=
31657 fi
31658 :
31659 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
31660 GL_GENERATE_FLOAT_H_TRUE='#'
31661 GL_GENERATE_FLOAT_H_FALSE='#'
31662 fi
31663
31664
31665
31666
31667
31668
31669
31670 if test $REPLACE_FLOAT_LDBL = 1; then
31671 GL_COND_OBJ_FLOAT_TRUE=
31672 GL_COND_OBJ_FLOAT_FALSE='#'
31673 else
31674 GL_COND_OBJ_FLOAT_TRUE='#'
31675 GL_COND_OBJ_FLOAT_FALSE=
31676 fi
31677 :
31678 if test -z "${GL_COND_OBJ_FLOAT_TRUE}" && test -z "${GL_COND_OBJ_FLOAT_FALSE}"; then
31679 GL_COND_OBJ_FLOAT_TRUE='#'
31680 GL_COND_OBJ_FLOAT_FALSE='#'
31681 fi
31682
31683
31684 if test $REPLACE_ITOLD = 1; then
31685 GL_COND_OBJ_ITOLD_TRUE=
31686 GL_COND_OBJ_ITOLD_FALSE='#'
31687 else
31688 GL_COND_OBJ_ITOLD_TRUE='#'
31689 GL_COND_OBJ_ITOLD_FALSE=
31690 fi
31691 :
31692 if test -z "${GL_COND_OBJ_ITOLD_TRUE}" && test -z "${GL_COND_OBJ_ITOLD_FALSE}"; then
31693 GL_COND_OBJ_ITOLD_TRUE='#'
31694 GL_COND_OBJ_ITOLD_FALSE='#'
31695 fi
31696
31697
31698
31699
31700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5
31701 printf %s "checking whether free is known to preserve errno... " >&6; }
31702 if test ${gl_cv_func_free_preserves_errno+y}
31703 then :
31704 printf %s "(cached) " >&6
31705 else case e in #(
31706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31707 /* end confdefs.h. */
31708 #include <stdlib.h>
31709
31710 int
31711 main (void)
31712 {
31713 #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__)
31714 #elif defined __OpenBSD__
31715 #elif defined __sun
31716 #else
31717 #error "'free' is not known to preserve errno"
31718 #endif
31719
31720 ;
31721 return 0;
31722 }
31723 _ACEOF
31724 if ac_fn_c_try_compile "$LINENO"
31725 then :
31726 gl_cv_func_free_preserves_errno=yes
31727 else case e in #(
31728 e) gl_cv_func_free_preserves_errno=no ;;
31729 esac
31730 fi
31731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31732 ;;
31733 esac
31734 fi
31735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5
31736 printf "%s\n" "$gl_cv_func_free_preserves_errno" >&6; }
31737
31738 case $gl_cv_func_free_preserves_errno in
31739 *yes)
31740
31741 printf "%s\n" "#define HAVE_FREE_POSIX 1" >>confdefs.h
31742
31743 ;;
31744 *) REPLACE_FREE=1 ;;
31745 esac
31746
31747
31748 if test $REPLACE_FREE = 1; then
31749 GL_COND_OBJ_FREE_TRUE=
31750 GL_COND_OBJ_FREE_FALSE='#'
31751 else
31752 GL_COND_OBJ_FREE_TRUE='#'
31753 GL_COND_OBJ_FREE_FALSE=
31754 fi
31755 :
31756 if test -z "${GL_COND_OBJ_FREE_TRUE}" && test -z "${GL_COND_OBJ_FREE_FALSE}"; then
31757 GL_COND_OBJ_FREE_TRUE='#'
31758 GL_COND_OBJ_FREE_FALSE='#'
31759 fi
31760
31761 if test -z "$GL_COND_OBJ_FREE_TRUE"; then :
31762
31763 :
31764
31765 fi
31766
31767
31768
31769
31770
31771
31772
31773
31774
31775 GL_GNULIB_FREE_POSIX=1
31776
31777
31778
31779
31780
31781 printf "%s\n" "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h
31782
31783
31784
31785
31786
31787
31788
31789 case "$host_os" in
31790 darwin* | mingw* | windows* | solaris*)
31791 REPLACE_FSTAT=1
31792 ;;
31793 esac
31794
31795
31796
31797
31798 if test $REPLACE_FSTAT = 1; then
31799 GL_COND_OBJ_FSTAT_TRUE=
31800 GL_COND_OBJ_FSTAT_FALSE='#'
31801 else
31802 GL_COND_OBJ_FSTAT_TRUE='#'
31803 GL_COND_OBJ_FSTAT_FALSE=
31804 fi
31805 :
31806 if test -z "${GL_COND_OBJ_FSTAT_TRUE}" && test -z "${GL_COND_OBJ_FSTAT_FALSE}"; then
31807 GL_COND_OBJ_FSTAT_TRUE='#'
31808 GL_COND_OBJ_FSTAT_FALSE='#'
31809 fi
31810
31811 if test -z "$GL_COND_OBJ_FSTAT_TRUE"; then :
31812
31813 case "$host_os" in
31814 mingw* | windows*)
31815
31816
31817
31818
31819
31820
31821
31822
31823 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
31824
31825 ;;
31826 esac
31827
31828
31829
31830 :
31831
31832
31833 fi
31834
31835
31836
31837
31838
31839
31840
31841
31842
31843 GL_GNULIB_FSTAT=1
31844
31845
31846
31847
31848
31849 printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
31850
31851
31852
31853
31854
31855
31856
31857
31858 if test $ac_cv_func_getdtablesize = yes &&
31859 test $ac_cv_have_decl_getdtablesize = yes; then
31860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
31861 printf %s "checking whether getdtablesize works... " >&6; }
31862 if test ${gl_cv_func_getdtablesize_works+y}
31863 then :
31864 printf %s "(cached) " >&6
31865 else case e in #(
31866 e) case "$host_os" in
31867 vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
31868 *)
31869 if test "$cross_compiling" = yes
31870 then :
31871 case "$host_os" in
31872 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
31873 gl_cv_func_getdtablesize_works="guessing no" ;;
31874 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
31875 esac
31876
31877 else case e in #(
31878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31879 /* end confdefs.h. */
31880
31881 #include <unistd.h>
31882
31883
31884 $gl_mda_defines
31885
31886
31887 int
31888 main (void)
31889 {
31890 int size = getdtablesize();
31891 if (dup2 (0, getdtablesize()) != -1)
31892 return 1;
31893 if (size != getdtablesize())
31894 return 2;
31895
31896 ;
31897 return 0;
31898 }
31899 _ACEOF
31900 if ac_fn_c_try_run "$LINENO"
31901 then :
31902 gl_cv_func_getdtablesize_works=yes
31903 else case e in #(
31904 e) gl_cv_func_getdtablesize_works=no ;;
31905 esac
31906 fi
31907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31908 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
31909 esac
31910 fi
31911
31912 ;;
31913 esac
31914 ;;
31915 esac
31916 fi
31917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
31918 printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; }
31919 case "$gl_cv_func_getdtablesize_works" in
31920 *yes | "no (limitation)") ;;
31921 *) REPLACE_GETDTABLESIZE=1 ;;
31922 esac
31923 else
31924 HAVE_GETDTABLESIZE=0
31925 fi
31926
31927
31928 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
31929 GL_COND_OBJ_GETDTABLESIZE_TRUE=
31930 GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
31931 else
31932 GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
31933 GL_COND_OBJ_GETDTABLESIZE_FALSE=
31934 fi
31935 :
31936 if test -z "${GL_COND_OBJ_GETDTABLESIZE_TRUE}" && test -z "${GL_COND_OBJ_GETDTABLESIZE_FALSE}"; then
31937 GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
31938 GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
31939 fi
31940
31941 if test -z "$GL_COND_OBJ_GETDTABLESIZE_TRUE"; then :
31942
31943 :
31944
31945 fi
31946
31947
31948
31949
31950
31951
31952
31953
31954
31955 GL_GNULIB_GETDTABLESIZE=1
31956
31957
31958
31959
31960
31961 printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
31962
31963
31964
31965
31966
31967
31968
31969
31970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getprogname" >&5
31971 printf %s "checking for getprogname... " >&6; }
31972 if test ${gl_cv_onwards_func_getprogname+y}
31973 then :
31974 printf %s "(cached) " >&6
31975 else case e in #(
31976 e)
31977 exec 9>&6 6>/dev/null
31978
31979 case "$host_os" in
31980
31981 linux*-android*)
31982 ac_fn_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" "#include <stdlib.h>
31983 " "$ac_c_undeclared_builtin_options" "CFLAGS"
31984 if test "x$ac_cv_have_decl_getprogname" = xyes
31985 then :
31986
31987 fi
31988 if test $ac_cv_have_decl_getprogname = yes; then
31989 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
31990 if test "x$ac_cv_func_getprogname" = xyes
31991 then :
31992
31993 fi
31994
31995 if test $ac_cv_func_getprogname = yes; then
31996 gl_cv_onwards_func_getprogname=yes
31997 else
31998 gl_cv_onwards_func_getprogname='future OS version'
31999 fi
32000 else
32001 gl_cv_onwards_func_getprogname='future OS version'
32002 fi
32003 ;;
32004
32005
32006 *)
32007 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
32008 if test "x$ac_cv_func_getprogname" = xyes
32009 then :
32010
32011 fi
32012
32013 gl_cv_onwards_func_getprogname=$ac_cv_func_getprogname
32014 ;;
32015
32016 esac
32017
32018 exec 6>&9 9>&-
32019
32020 ;;
32021 esac
32022 fi
32023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_getprogname" >&5
32024 printf "%s\n" "$gl_cv_onwards_func_getprogname" >&6; }
32025
32026 case "$gl_cv_onwards_func_getprogname" in
32027 future*) ac_cv_func_getprogname=no ;;
32028 *) ac_cv_func_getprogname=$gl_cv_onwards_func_getprogname ;;
32029 esac
32030 if test $ac_cv_func_getprogname = yes; then
32031
32032 printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h
32033
32034 fi
32035
32036
32037 if test $ac_cv_func_getprogname = no; then
32038 HAVE_GETPROGNAME=0
32039 case "$gl_cv_onwards_func_getprogname" in
32040 future*) REPLACE_GETPROGNAME=1 ;;
32041 esac
32042 fi
32043 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
32044 " "$ac_c_undeclared_builtin_options" "CFLAGS"
32045 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
32046 then :
32047 ac_have_decl=1
32048 else case e in #(
32049 e) ac_have_decl=0 ;;
32050 esac
32051 fi
32052 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
32053 if test $ac_have_decl = 1
32054 then :
32055
32056 else case e in #(
32057 e) HAVE_DECL_PROGRAM_INVOCATION_NAME=0 ;;
32058 esac
32059 fi
32060
32061
32062
32063 if test $HAVE_GETPROGNAME = 0 || test $REPLACE_GETPROGNAME = 1; then
32064 GL_COND_OBJ_GETPROGNAME_TRUE=
32065 GL_COND_OBJ_GETPROGNAME_FALSE='#'
32066 else
32067 GL_COND_OBJ_GETPROGNAME_TRUE='#'
32068 GL_COND_OBJ_GETPROGNAME_FALSE=
32069 fi
32070 :
32071 if test -z "${GL_COND_OBJ_GETPROGNAME_TRUE}" && test -z "${GL_COND_OBJ_GETPROGNAME_FALSE}"; then
32072 GL_COND_OBJ_GETPROGNAME_TRUE='#'
32073 GL_COND_OBJ_GETPROGNAME_FALSE='#'
32074 fi
32075
32076 if test -z "$GL_COND_OBJ_GETPROGNAME_TRUE"; then :
32077
32078
32079
32080
32081 ac_found=0
32082 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
32083 " "$ac_c_undeclared_builtin_options" "CFLAGS"
32084 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
32085 then :
32086 ac_have_decl=1
32087 else case e in #(
32088 e) ac_have_decl=0 ;;
32089 esac
32090 fi
32091 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
32092 if test $ac_have_decl = 1
32093 then :
32094 ac_found=1
32095 fi
32096
32097 ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
32098 " "$ac_c_undeclared_builtin_options" "CFLAGS"
32099 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
32100 then :
32101 ac_have_decl=1
32102 else case e in #(
32103 e) ac_have_decl=0 ;;
32104 esac
32105 fi
32106 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
32107 if test $ac_have_decl = 1
32108 then :
32109 ac_found=1
32110 fi
32111
32112 ac_fn_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
32113 " "$ac_c_undeclared_builtin_options" "CFLAGS"
32114 if test "x$ac_cv_have_decl___argv" = xyes
32115 then :
32116 ac_have_decl=1
32117 else case e in #(
32118 e) ac_have_decl=0 ;;
32119 esac
32120 fi
32121 printf "%s\n" "#define HAVE_DECL___ARGV $ac_have_decl" >>confdefs.h
32122 if test $ac_have_decl = 1
32123 then :
32124 ac_found=1
32125 fi
32126
32127
32128 # Incur the cost of this test only if none of the above worked.
32129 if test $ac_found = 0; then
32130 # On OpenBSD 5.1, using the global __progname variable appears to be
32131 # the only way to implement getprogname.
32132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
32133 printf %s "checking whether __progname is defined in default libraries... " >&6; }
32134 if test ${gl_cv_var___progname+y}
32135 then :
32136 printf %s "(cached) " >&6
32137 else case e in #(
32138 e)
32139 gl_cv_var___progname=
32140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32141 /* end confdefs.h. */
32142 extern char *__progname;
32143 int
32144 main (void)
32145 {
32146 return *__progname;
32147
32148 ;
32149 return 0;
32150 }
32151 _ACEOF
32152 if ac_fn_c_try_link "$LINENO"
32153 then :
32154 gl_cv_var___progname=yes
32155
32156 fi
32157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32158 conftest$ac_exeext conftest.$ac_ext
32159
32160 ;;
32161 esac
32162 fi
32163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
32164 printf "%s\n" "$gl_cv_var___progname" >&6; }
32165 if test "$gl_cv_var___progname" = yes; then
32166
32167 printf "%s\n" "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
32168
32169 fi
32170 fi
32171
32172
32173 fi
32174
32175
32176
32177
32178
32179
32180
32181
32182
32183 GL_GNULIB_GETPROGNAME=1
32184
32185
32186
32187
32188
32189 printf "%s\n" "#define GNULIB_TEST_GETPROGNAME 1" >>confdefs.h
32190
32191
32192
32193
32194
32195
32196
32197
32198
32199
32200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getrandom" >&5
32201 printf %s "checking for getrandom... " >&6; }
32202 if test ${gl_cv_onwards_func_getrandom+y}
32203 then :
32204 printf %s "(cached) " >&6
32205 else case e in #(
32206 e)
32207 exec 9>&6 6>/dev/null
32208
32209 case "$host_os" in
32210
32211 linux*-android*)
32212 ac_fn_check_decl "$LINENO" "getrandom" "ac_cv_have_decl_getrandom" "/* Additional includes are needed before <sys/random.h> on uClibc
32213 and Mac OS X. */
32214 #include <sys/types.h>
32215 #include <stdlib.h>
32216 #include <sys/random.h>
32217
32218 " "$ac_c_undeclared_builtin_options" "CFLAGS"
32219 if test "x$ac_cv_have_decl_getrandom" = xyes
32220 then :
32221
32222 fi
32223 if test $ac_cv_have_decl_getrandom = yes; then
32224 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
32225 if test "x$ac_cv_func_getrandom" = xyes
32226 then :
32227
32228 fi
32229
32230 if test $ac_cv_func_getrandom = yes; then
32231 gl_cv_onwards_func_getrandom=yes
32232 else
32233 gl_cv_onwards_func_getrandom='future OS version'
32234 fi
32235 else
32236 gl_cv_onwards_func_getrandom='future OS version'
32237 fi
32238 ;;
32239
32240
32241 *)
32242 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
32243 if test "x$ac_cv_func_getrandom" = xyes
32244 then :
32245
32246 fi
32247
32248 gl_cv_onwards_func_getrandom=$ac_cv_func_getrandom
32249 ;;
32250
32251 esac
32252
32253 exec 6>&9 9>&-
32254
32255 ;;
32256 esac
32257 fi
32258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_getrandom" >&5
32259 printf "%s\n" "$gl_cv_onwards_func_getrandom" >&6; }
32260
32261 case "$gl_cv_onwards_func_getrandom" in
32262 future*) ac_cv_func_getrandom=no ;;
32263 *) ac_cv_func_getrandom=$gl_cv_onwards_func_getrandom ;;
32264 esac
32265 if test $ac_cv_func_getrandom = yes; then
32266
32267 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
32268
32269 fi
32270
32271
32272 if test "$ac_cv_func_getrandom" != yes; then
32273 HAVE_GETRANDOM=0
32274 case "$gl_cv_onwards_func_getrandom" in
32275 future*) REPLACE_GETRANDOM=1 ;;
32276 esac
32277 else
32278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getrandom is compatible with its GNU+BSD signature" >&5
32279 printf %s "checking whether getrandom is compatible with its GNU+BSD signature... " >&6; }
32280 if test ${gl_cv_func_getrandom_ok+y}
32281 then :
32282 printf %s "(cached) " >&6
32283 else case e in #(
32284 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32285 /* end confdefs.h. */
32286 /* Additional includes are needed before <sys/random.h> on uClibc
32287 and Mac OS X. */
32288 #include <sys/types.h>
32289 #include <stdlib.h>
32290 #include <sys/random.h>
32291 ssize_t getrandom (void *, size_t, unsigned int);
32292
32293 int
32294 main (void)
32295 {
32296
32297 ;
32298 return 0;
32299 }
32300
32301 _ACEOF
32302 if ac_fn_c_try_compile "$LINENO"
32303 then :
32304 gl_cv_func_getrandom_ok=yes
32305 else case e in #(
32306 e) gl_cv_func_getrandom_ok=no ;;
32307 esac
32308 fi
32309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32310 ;;
32311 esac
32312 fi
32313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getrandom_ok" >&5
32314 printf "%s\n" "$gl_cv_func_getrandom_ok" >&6; }
32315 if test $gl_cv_func_getrandom_ok = no; then
32316 REPLACE_GETRANDOM=1
32317 fi
32318 fi
32319
32320 case "$host_os" in
32321 mingw* | windows*)
32322 ac_fn_c_check_header_compile "$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#include <windows.h>
32323
32324 "
32325 if test "x$ac_cv_header_bcrypt_h" = xyes
32326 then :
32327 printf "%s\n" "#define HAVE_BCRYPT_H 1" >>confdefs.h
32328
32329 fi
32330
32331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the bcrypt library is guaranteed to be present" >&5
32332 printf %s "checking whether the bcrypt library is guaranteed to be present... " >&6; }
32333 if test ${gl_cv_lib_assume_bcrypt+y}
32334 then :
32335 printf %s "(cached) " >&6
32336 else case e in #(
32337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32338 /* end confdefs.h. */
32339 #include <windows.h>
32340 int
32341 main (void)
32342 {
32343 #if !(_WIN32_WINNT >= _WIN32_WINNT_WIN7)
32344 cannot assume it
32345 #endif
32346
32347 ;
32348 return 0;
32349 }
32350
32351 _ACEOF
32352 if ac_fn_c_try_compile "$LINENO"
32353 then :
32354 gl_cv_lib_assume_bcrypt=yes
32355 else case e in #(
32356 e) gl_cv_lib_assume_bcrypt=no ;;
32357 esac
32358 fi
32359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32360 ;;
32361 esac
32362 fi
32363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_assume_bcrypt" >&5
32364 printf "%s\n" "$gl_cv_lib_assume_bcrypt" >&6; }
32365 if test $gl_cv_lib_assume_bcrypt = yes; then
32366
32367 printf "%s\n" "#define HAVE_LIB_BCRYPT 1" >>confdefs.h
32368
32369 GETRANDOM_LIB='-lbcrypt'
32370 else
32371 GETRANDOM_LIB='-ladvapi32'
32372 fi
32373 ;;
32374 *)
32375 GETRANDOM_LIB= ;;
32376 esac
32377
32378 LIB_GETRANDOM="$GETRANDOM_LIB"
32379
32380
32381
32382 if test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1; then
32383 GL_COND_OBJ_GETRANDOM_TRUE=
32384 GL_COND_OBJ_GETRANDOM_FALSE='#'
32385 else
32386 GL_COND_OBJ_GETRANDOM_TRUE='#'
32387 GL_COND_OBJ_GETRANDOM_FALSE=
32388 fi
32389 :
32390 if test -z "${GL_COND_OBJ_GETRANDOM_TRUE}" && test -z "${GL_COND_OBJ_GETRANDOM_FALSE}"; then
32391 GL_COND_OBJ_GETRANDOM_TRUE='#'
32392 GL_COND_OBJ_GETRANDOM_FALSE='#'
32393 fi
32394
32395
32396
32397
32398
32399
32400
32401
32402
32403
32404 GL_GNULIB_GETRANDOM=1
32405
32406
32407
32408
32409
32410 printf "%s\n" "#define GNULIB_TEST_GETRANDOM 1" >>confdefs.h
32411
32412
32413
32414
32415
32416
32417
32418
32419
32420
32421
32422
32423
32424
32425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
32426 printf %s "checking for C compiler flag to ignore unused libraries... " >&6; }
32427 if test ${gl_cv_prog_c_ignore_unused_libraries+y}
32428 then :
32429 printf %s "(cached) " >&6
32430 else case e in #(
32431 e) gl_cv_prog_c_ignore_unused_libraries=none
32432 gl_saved_ldflags=$LDFLAGS
32433 gl_saved_libs=$LIBS
32434 # Link with -lm to detect binutils 2.16 bug with --as-needed; see
32435 # <https://lists.gnu.org/r/bug-gnulib/2006-06/msg00131.html>.
32436 LIBS="$LIBS -lm"
32437 # Use long option sequences like '-z ignore' to test for the feature,
32438 # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
32439 # GCC + binutils likes '-Wl,--as-needed'.
32440 # GCC + Solaris ld likes '-Wl,-z,ignore'.
32441 # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
32442 # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
32443 # native cc issues annoying warnings and then ignores it,
32444 # which would cause us to incorrectly conclude that it worked.
32445 for gl_flags in '-Wl,--as-needed' \
32446 '-Wl,-z,ignore' \
32447 '-z ignore'
32448
32449 do
32450 LDFLAGS="$gl_flags $LDFLAGS"
32451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32452 /* end confdefs.h. */
32453
32454 int
32455 main (void)
32456 {
32457
32458 ;
32459 return 0;
32460 }
32461 _ACEOF
32462 if ac_fn_c_try_link "$LINENO"
32463 then :
32464 gl_cv_prog_c_ignore_unused_libraries=$gl_flags
32465 fi
32466 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32467 conftest$ac_exeext conftest.$ac_ext
32468 LDFLAGS=$gl_saved_ldflags
32469 test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
32470 break
32471 done
32472 LIBS=$gl_saved_libs
32473 ;;
32474 esac
32475 fi
32476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
32477 printf "%s\n" "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
32478 IGNORE_UNUSED_LIBRARIES_CFLAGS=
32479 if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
32480 IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
32481 fi
32482
32483
32484
32485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
32486 printf %s "checking whether the compiler supports the __inline keyword... " >&6; }
32487 if test ${gl_cv_c___inline+y}
32488 then :
32489 printf %s "(cached) " >&6
32490 else case e in #(
32491 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32492 /* end confdefs.h. */
32493 typedef int foo_t;
32494 static __inline foo_t foo (void) { return 0; }
32495 int
32496 main (void)
32497 {
32498 return foo ();
32499 ;
32500 return 0;
32501 }
32502 _ACEOF
32503 if ac_fn_c_try_compile "$LINENO"
32504 then :
32505 gl_cv_c___inline=yes
32506 else case e in #(
32507 e) gl_cv_c___inline=no ;;
32508 esac
32509 fi
32510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
32511 esac
32512 fi
32513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
32514 printf "%s\n" "$gl_cv_c___inline" >&6; }
32515 if test $gl_cv_c___inline = yes; then
32516
32517 printf "%s\n" "#define HAVE___INLINE 1" >>confdefs.h
32518
32519 fi
32520
32521
32522
32523
32524
32525
32526 case "$GL_GENERATE_LIMITS_H" in
32527 false) LIMITS_H='' ;;
32528 true)
32529 if test -z "$LIMITS_H"; then
32530 LIMITS_H="${gl_source_base_prefix}limits.h"
32531 fi
32532 ;;
32533 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
32534 esac
32535
32536
32537 if $GL_GENERATE_LIMITS_H; then
32538 GL_GENERATE_LIMITS_H_TRUE=
32539 GL_GENERATE_LIMITS_H_FALSE='#'
32540 else
32541 GL_GENERATE_LIMITS_H_TRUE='#'
32542 GL_GENERATE_LIMITS_H_FALSE=
32543 fi
32544 :
32545 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
32546 GL_GENERATE_LIMITS_H_TRUE='#'
32547 GL_GENERATE_LIMITS_H_FALSE='#'
32548 fi
32549
32550
32551
32552
32553
32554
32555
32556
32557 if test "$gl_threads_api" = posix; then
32558 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
32559 # pthread_rwlock_* functions.
32560 has_rwlock=false
32561 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
32562 "
32563 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
32564 then :
32565 has_rwlock=true
32566
32567 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
32568
32569 fi
32570
32571 if $has_rwlock; then
32572
32573
32574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
32575 printf %s "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
32576 if test ${gl_cv_pthread_rwlock_rdlock_prefer_writer+y}
32577 then :
32578 printf %s "(cached) " >&6
32579 else case e in #(
32580 e) saved_LIBS="$LIBS"
32581 LIBS="$LIBS $LIBMULTITHREAD"
32582 if test "$cross_compiling" = yes
32583 then :
32584 case "$host_os" in
32585 # Guess no on glibc systems.
32586 *-gnu* | gnu*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
32587 # Guess no on musl systems.
32588 *-musl* | midipix*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
32589 # Guess no on bionic systems.
32590 *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
32591 # Guess yes on native Windows with the mingw-w64 winpthreads library.
32592 # Guess no on native Windows with the gnulib windows-rwlock module.
32593 mingw* | windows*) if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
32594 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"
32595 else
32596 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no"
32597 fi
32598 ;;
32599 # If we don't know, obey --enable-cross-guesses.
32600 *) gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;;
32601 esac
32602
32603 else case e in #(
32604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32605 /* end confdefs.h. */
32606
32607 #include <errno.h>
32608 #include <pthread.h>
32609 #include <stdlib.h>
32610 #include <unistd.h>
32611
32612 #define SUCCEED() exit (0)
32613 #define FAILURE() exit (1)
32614 #define UNEXPECTED(n) (exit (10 + (n)))
32615
32616 /* The main thread creates the waiting writer and the requesting reader threads
32617 in the default way; this guarantees that they have the same priority.
32618 We can reuse the main thread as first reader thread. */
32619
32620 static pthread_rwlock_t lock;
32621 static pthread_t reader1;
32622 static pthread_t writer;
32623 static pthread_t reader2;
32624 static pthread_t timer;
32625 /* Used to pass control from writer to reader2 and from reader2 to timer,
32626 as in a relay race.
32627 Passing control from one running thread to another running thread
32628 is most likely faster than to create the second thread. */
32629 static pthread_mutex_t baton;
32630
32631 static void *
32632 timer_func (void *ignored)
32633 {
32634 /* Step 13 (can be before or after step 12):
32635 The timer thread takes the baton, then waits a moment to make sure
32636 it can tell whether the second reader thread is blocked at step 12. */
32637 if (pthread_mutex_lock (&baton))
32638 UNEXPECTED (13);
32639 usleep (100000);
32640 /* By the time we get here, it's clear that the second reader thread is
32641 blocked at step 12. This is the desired behaviour. */
32642 SUCCEED ();
32643 }
32644
32645 static void *
32646 reader2_func (void *ignored)
32647 {
32648 int err;
32649
32650 /* Step 8 (can be before or after step 7):
32651 The second reader thread takes the baton, then waits a moment to make sure
32652 the writer thread has reached step 7. */
32653 if (pthread_mutex_lock (&baton))
32654 UNEXPECTED (8);
32655 usleep (100000);
32656 /* Step 9: The second reader thread requests the lock. */
32657 err = pthread_rwlock_tryrdlock (&lock);
32658 if (err == 0)
32659 FAILURE ();
32660 else if (err != EBUSY)
32661 UNEXPECTED (9);
32662 /* Step 10: Launch a timer, to test whether the next call blocks. */
32663 if (pthread_create (&timer, NULL, timer_func, NULL))
32664 UNEXPECTED (10);
32665 /* Step 11: Release the baton. */
32666 if (pthread_mutex_unlock (&baton))
32667 UNEXPECTED (11);
32668 /* Step 12: The second reader thread requests the lock. */
32669 err = pthread_rwlock_rdlock (&lock);
32670 if (err == 0)
32671 FAILURE ();
32672 else
32673 UNEXPECTED (12);
32674 }
32675
32676 static void *
32677 writer_func (void *ignored)
32678 {
32679 /* Step 4: Take the baton, so that the second reader thread does not go ahead
32680 too early. */
32681 if (pthread_mutex_lock (&baton))
32682 UNEXPECTED (4);
32683 /* Step 5: Create the second reader thread. */
32684 if (pthread_create (&reader2, NULL, reader2_func, NULL))
32685 UNEXPECTED (5);
32686 /* Step 6: Release the baton. */
32687 if (pthread_mutex_unlock (&baton))
32688 UNEXPECTED (6);
32689 /* Step 7: The writer thread requests the lock. */
32690 if (pthread_rwlock_wrlock (&lock))
32691 UNEXPECTED (7);
32692 return NULL;
32693 }
32694
32695 int
32696 main ()
32697 {
32698 reader1 = pthread_self ();
32699
32700 /* Step 1: The main thread initializes the lock and the baton. */
32701 if (pthread_rwlock_init (&lock, NULL))
32702 UNEXPECTED (1);
32703 if (pthread_mutex_init (&baton, NULL))
32704 UNEXPECTED (1);
32705 /* Step 2: The main thread acquires the lock as a reader. */
32706 if (pthread_rwlock_rdlock (&lock))
32707 UNEXPECTED (2);
32708 /* Step 3: Create the writer thread. */
32709 if (pthread_create (&writer, NULL, writer_func, NULL))
32710 UNEXPECTED (3);
32711 /* Job done. Go to sleep. */
32712 for (;;)
32713 {
32714 sleep (1);
32715 }
32716 }
32717
32718 _ACEOF
32719 if ac_fn_c_try_run "$LINENO"
32720 then :
32721 gl_cv_pthread_rwlock_rdlock_prefer_writer=yes
32722 else case e in #(
32723 e) gl_cv_pthread_rwlock_rdlock_prefer_writer=no ;;
32724 esac
32725 fi
32726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32727 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
32728 esac
32729 fi
32730
32731 LIBS="$saved_LIBS"
32732 ;;
32733 esac
32734 fi
32735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
32736 printf "%s\n" "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
32737 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
32738 *yes)
32739
32740 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
32741
32742 ;;
32743 esac
32744
32745 fi
32746 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
32747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32748 /* end confdefs.h. */
32749
32750 #include <pthread.h>
32751 int
32752 main (void)
32753 {
32754
32755 #if __FreeBSD__ == 4
32756 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
32757 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
32758 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
32759 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
32760 #else
32761 int x = (int)PTHREAD_MUTEX_RECURSIVE;
32762 return !x;
32763 #endif
32764
32765 ;
32766 return 0;
32767 }
32768 _ACEOF
32769 if ac_fn_c_try_compile "$LINENO"
32770 then :
32771
32772 printf "%s\n" "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
32773
32774 fi
32775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32776 fi
32777 :
32778
32779
32780
32781 printf "%s\n" "#define GNULIB_LOCK 1" >>confdefs.h
32782
32783
32784
32785
32786
32787
32788 if test $ac_cv_func_lstat = yes; then
32789
32790 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
32791 darwin* | solaris* | *no)
32792 REPLACE_LSTAT=1
32793 ;;
32794 esac
32795 else
32796 HAVE_LSTAT=0
32797 fi
32798
32799
32800 if test $REPLACE_LSTAT = 1; then
32801 GL_COND_OBJ_LSTAT_TRUE=
32802 GL_COND_OBJ_LSTAT_FALSE='#'
32803 else
32804 GL_COND_OBJ_LSTAT_TRUE='#'
32805 GL_COND_OBJ_LSTAT_FALSE=
32806 fi
32807 :
32808 if test -z "${GL_COND_OBJ_LSTAT_TRUE}" && test -z "${GL_COND_OBJ_LSTAT_FALSE}"; then
32809 GL_COND_OBJ_LSTAT_TRUE='#'
32810 GL_COND_OBJ_LSTAT_FALSE='#'
32811 fi
32812
32813 if test -z "$GL_COND_OBJ_LSTAT_TRUE"; then :
32814
32815 :
32816
32817 fi
32818
32819
32820
32821
32822
32823
32824
32825
32826
32827 GL_GNULIB_LSTAT=1
32828
32829
32830
32831
32832
32833 printf "%s\n" "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
32834
32835
32836
32837
32838
32839
32840 REPLACE_MALLOC_FOR_MALLOC_GNU="$REPLACE_MALLOC_FOR_MALLOC_POSIX"
32841 if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 0; then
32842
32843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5
32844 printf %s "checking whether malloc (0) returns nonnull... " >&6; }
32845 if test ${ac_cv_func_malloc_0_nonnull+y}
32846 then :
32847 printf %s "(cached) " >&6
32848 else case e in #(
32849 e) if test "$cross_compiling" = yes
32850 then :
32851 case "$host_os" in
32852 # Guess yes on platforms where we know the result.
32853 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
32854 | gnu* | *-musl* | midipix* | midnightbsd* \
32855 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
32856 ac_cv_func_malloc_0_nonnull="guessing yes" ;;
32857 # If we don't know, obey --enable-cross-guesses.
32858 *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
32859 esac
32860
32861 else case e in #(
32862 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32863 /* end confdefs.h. */
32864 #include <stdlib.h>
32865
32866 int
32867 main (void)
32868 {
32869 void *p = malloc (0);
32870 void * volatile vp = p;
32871 int result = !vp;
32872 free (p);
32873 return result;
32874 ;
32875 return 0;
32876 }
32877
32878 _ACEOF
32879 if ac_fn_c_try_run "$LINENO"
32880 then :
32881 ac_cv_func_malloc_0_nonnull=yes
32882 else case e in #(
32883 e) ac_cv_func_malloc_0_nonnull=no ;;
32884 esac
32885 fi
32886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32887 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
32888 esac
32889 fi
32890
32891 ;;
32892 esac
32893 fi
32894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
32895 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
32896 case $ac_cv_func_malloc_0_nonnull in #(
32897 *yes) :
32898 ;; #(
32899 *) :
32900 REPLACE_MALLOC_FOR_MALLOC_GNU=1 ;;
32901 esac
32902
32903 fi
32904
32905 if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 1; then
32906
32907
32908
32909
32910
32911
32912
32913
32914 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
32915
32916 fi
32917
32918
32919
32920
32921
32922
32923
32924
32925
32926 GL_GNULIB_MALLOC_GNU=1
32927
32928
32929
32930
32931
32932 printf "%s\n" "#define GNULIB_TEST_MALLOC_GNU 1" >>confdefs.h
32933
32934
32935
32936
32937 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
32938
32939
32940
32941
32942
32943
32944
32945
32946 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
32947
32948 fi
32949
32950
32951
32952
32953
32954
32955
32956
32957
32958 GL_GNULIB_MALLOC_POSIX=1
32959
32960
32961
32962
32963
32964 printf "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
32965
32966
32967
32968
32969
32970
32971
32972
32973
32974
32975
32976
32977
32978
32979
32980
32981
32982
32983
32984
32985
32986
32987
32988 GL_GNULIB_MBSZERO=1
32989
32990
32991
32992
32993
32994 printf "%s\n" "#define GNULIB_TEST_MBSZERO 1" >>confdefs.h
32995
32996
32997
32998
32999
33000 if test $REPLACE_MEMCHR = 1; then
33001 GL_COND_OBJ_MEMCHR_TRUE=
33002 GL_COND_OBJ_MEMCHR_FALSE='#'
33003 else
33004 GL_COND_OBJ_MEMCHR_TRUE='#'
33005 GL_COND_OBJ_MEMCHR_FALSE=
33006 fi
33007 :
33008 if test -z "${GL_COND_OBJ_MEMCHR_TRUE}" && test -z "${GL_COND_OBJ_MEMCHR_FALSE}"; then
33009 GL_COND_OBJ_MEMCHR_TRUE='#'
33010 GL_COND_OBJ_MEMCHR_FALSE='#'
33011 fi
33012
33013 if test -z "$GL_COND_OBJ_MEMCHR_TRUE"; then :
33014
33015
33016 ac_fn_c_check_header_compile "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
33017 if test "x$ac_cv_header_bp_sym_h" = xyes
33018 then :
33019 printf "%s\n" "#define HAVE_BP_SYM_H 1" >>confdefs.h
33020
33021 fi
33022
33023
33024
33025 fi
33026
33027
33028
33029
33030
33031
33032
33033
33034
33035
33036
33037
33038
33039
33040 GL_GNULIB_MEMCHR=1
33041
33042
33043
33044
33045
33046 printf "%s\n" "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
33047
33048
33049
33050
33051
33052
33053
33054
33055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
33056 printf %s "checking whether mkdir handles trailing slash... " >&6; }
33057 if test ${gl_cv_func_mkdir_trailing_slash_works+y}
33058 then :
33059 printf %s "(cached) " >&6
33060 else case e in #(
33061 e) rm -rf conftest.dir
33062 if test "$cross_compiling" = yes
33063 then :
33064 case "$host_os" in
33065 # Guess yes on Linux systems.
33066 linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
33067 # Guess yes on systems that emulate the Linux system calls.
33068 midipix*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
33069 # Guess yes on glibc systems.
33070 *-gnu* | gnu*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
33071 # Guess yes on MSVC, no on mingw.
33072 windows*-msvc*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
33073 mingw* | windows*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33074 /* end confdefs.h. */
33075
33076 #ifdef _MSC_VER
33077 Known
33078 #endif
33079
33080 _ACEOF
33081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33082 $EGREP_TRADITIONAL "Known" >/dev/null 2>&1
33083 then :
33084 gl_cv_func_mkdir_trailing_slash_works="guessing yes"
33085 else case e in #(
33086 e) gl_cv_func_mkdir_trailing_slash_works="guessing no" ;;
33087 esac
33088 fi
33089 rm -rf conftest*
33090
33091 ;;
33092 # If we don't know, obey --enable-cross-guesses.
33093 *) gl_cv_func_mkdir_trailing_slash_works="$gl_cross_guess_normal" ;;
33094 esac
33095
33096 else case e in #(
33097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33098 /* end confdefs.h. */
33099
33100 #include <sys/types.h>
33101 #include <sys/stat.h>
33102
33103
33104 $gl_mda_defines
33105
33106 int
33107 main (void)
33108 {
33109 return mkdir ("conftest.dir/", 0700);
33110 ;
33111 return 0;
33112 }
33113 _ACEOF
33114 if ac_fn_c_try_run "$LINENO"
33115 then :
33116 gl_cv_func_mkdir_trailing_slash_works=yes
33117 else case e in #(
33118 e) gl_cv_func_mkdir_trailing_slash_works=no ;;
33119 esac
33120 fi
33121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33122 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
33123 esac
33124 fi
33125
33126 rm -rf conftest.dir
33127 ;;
33128 esac
33129 fi
33130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
33131 printf "%s\n" "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
33132 case "$gl_cv_func_mkdir_trailing_slash_works" in
33133 *yes) ;;
33134 *)
33135 REPLACE_MKDIR=1
33136 ;;
33137 esac
33138
33139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
33140 printf %s "checking whether mkdir handles trailing dot... " >&6; }
33141 if test ${gl_cv_func_mkdir_trailing_dot_works+y}
33142 then :
33143 printf %s "(cached) " >&6
33144 else case e in #(
33145 e) rm -rf conftest.dir
33146 if test "$cross_compiling" = yes
33147 then :
33148 case "$host_os" in
33149 # Guess yes on glibc systems.
33150 *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
33151 # Guess yes on musl systems.
33152 *-musl*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
33153 # Guess yes on systems that emulate the Linux system calls.
33154 midipix*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
33155 # Guess no on native Windows.
33156 mingw* | windows*) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
33157 # If we don't know, obey --enable-cross-guesses.
33158 *) gl_cv_func_mkdir_trailing_dot_works="$gl_cross_guess_normal" ;;
33159 esac
33160
33161 else case e in #(
33162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33163 /* end confdefs.h. */
33164
33165 #include <sys/types.h>
33166 #include <sys/stat.h>
33167
33168
33169 $gl_mda_defines
33170
33171 int
33172 main (void)
33173 {
33174 return !mkdir ("conftest.dir/./", 0700);
33175 ;
33176 return 0;
33177 }
33178 _ACEOF
33179 if ac_fn_c_try_run "$LINENO"
33180 then :
33181 gl_cv_func_mkdir_trailing_dot_works=yes
33182 else case e in #(
33183 e) gl_cv_func_mkdir_trailing_dot_works=no ;;
33184 esac
33185 fi
33186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33187 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
33188 esac
33189 fi
33190
33191 rm -rf conftest.dir
33192
33193 ;;
33194 esac
33195 fi
33196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
33197 printf "%s\n" "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
33198 case "$gl_cv_func_mkdir_trailing_dot_works" in
33199 *yes) ;;
33200 *)
33201 REPLACE_MKDIR=1
33202
33203 printf "%s\n" "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
33204
33205 ;;
33206 esac
33207
33208
33209 if test $REPLACE_MKDIR = 1; then
33210 GL_COND_OBJ_MKDIR_TRUE=
33211 GL_COND_OBJ_MKDIR_FALSE='#'
33212 else
33213 GL_COND_OBJ_MKDIR_TRUE='#'
33214 GL_COND_OBJ_MKDIR_FALSE=
33215 fi
33216 :
33217 if test -z "${GL_COND_OBJ_MKDIR_TRUE}" && test -z "${GL_COND_OBJ_MKDIR_FALSE}"; then
33218 GL_COND_OBJ_MKDIR_TRUE='#'
33219 GL_COND_OBJ_MKDIR_FALSE='#'
33220 fi
33221
33222
33223
33224
33225
33226
33227
33228
33229
33230
33231 GL_GNULIB_MKDIR=1
33232
33233
33234
33235
33236
33237 printf "%s\n" "#define GNULIB_TEST_MKDIR 1" >>confdefs.h
33238
33239
33240
33241
33242
33243 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
33244 if test "x$ac_cv_func_mkdtemp" = xyes
33245 then :
33246 printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h
33247
33248 fi
33249
33250 if test $ac_cv_func_mkdtemp = no; then
33251 HAVE_MKDTEMP=0
33252 fi
33253
33254
33255 if test $HAVE_MKDTEMP = 0; then
33256 GL_COND_OBJ_MKDTEMP_TRUE=
33257 GL_COND_OBJ_MKDTEMP_FALSE='#'
33258 else
33259 GL_COND_OBJ_MKDTEMP_TRUE='#'
33260 GL_COND_OBJ_MKDTEMP_FALSE=
33261 fi
33262 :
33263 if test -z "${GL_COND_OBJ_MKDTEMP_TRUE}" && test -z "${GL_COND_OBJ_MKDTEMP_FALSE}"; then
33264 GL_COND_OBJ_MKDTEMP_TRUE='#'
33265 GL_COND_OBJ_MKDTEMP_FALSE='#'
33266 fi
33267
33268 if test -z "$GL_COND_OBJ_MKDTEMP_TRUE"; then :
33269
33270 :
33271
33272
33273 fi
33274
33275
33276
33277
33278
33279
33280
33281
33282
33283 GL_GNULIB_MKDTEMP=1
33284
33285
33286
33287
33288
33289 printf "%s\n" "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
33290
33291
33292
33293
33294
33295 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
33296 GL_COND_OBJ_MSVC_INVAL_TRUE=
33297 GL_COND_OBJ_MSVC_INVAL_FALSE='#'
33298 else
33299 GL_COND_OBJ_MSVC_INVAL_TRUE='#'
33300 GL_COND_OBJ_MSVC_INVAL_FALSE=
33301 fi
33302 :
33303 if test -z "${GL_COND_OBJ_MSVC_INVAL_TRUE}" && test -z "${GL_COND_OBJ_MSVC_INVAL_FALSE}"; then
33304 GL_COND_OBJ_MSVC_INVAL_TRUE='#'
33305 GL_COND_OBJ_MSVC_INVAL_FALSE='#'
33306 fi
33307
33308
33309
33310 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
33311 GL_COND_OBJ_MSVC_NOTHROW_TRUE=
33312 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
33313 else
33314 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
33315 GL_COND_OBJ_MSVC_NOTHROW_FALSE=
33316 fi
33317 :
33318 if test -z "${GL_COND_OBJ_MSVC_NOTHROW_TRUE}" && test -z "${GL_COND_OBJ_MSVC_NOTHROW_FALSE}"; then
33319 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
33320 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
33321 fi
33322
33323
33324
33325 printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h
33326
33327
33328
33329
33330 ac_ext=c
33331 ac_cpp='$CPP $CPPFLAGS'
33332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33335
33336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C nullptr" >&5
33337 printf %s "checking for C nullptr... " >&6; }
33338 if test ${gl_cv_c_nullptr+y}
33339 then :
33340 printf %s "(cached) " >&6
33341 else case e in #(
33342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33343 /* end confdefs.h. */
33344 int *p = nullptr;
33345 _ACEOF
33346 if ac_fn_c_try_compile "$LINENO"
33347 then :
33348 gl_cv_c_nullptr=yes
33349 # Work around <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114780>.
33350 gl_saved_CFLAGS=$CFLAGS
33351 CFLAGS="$CFLAGS -Wall -Werror"
33352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33353 /* end confdefs.h. */
33354 void f (char const *, ...) __attribute__ ((sentinel));
33355 int
33356 main (void)
33357 {
33358 f ("", nullptr);
33359 ;
33360 return 0;
33361 }
33362 _ACEOF
33363 if ac_fn_c_try_compile "$LINENO"
33364 then :
33365
33366 else case e in #(
33367 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33368 /* end confdefs.h. */
33369 void f (char const *, ...) __attribute__ ((sentinel));
33370 int
33371 main (void)
33372 {
33373 f ("", (void *) 0);
33374 ;
33375 return 0;
33376 }
33377 _ACEOF
33378 if ac_fn_c_try_compile "$LINENO"
33379 then :
33380 gl_cv_c_nullptr='not as a sentinel'
33381 fi
33382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
33383 esac
33384 fi
33385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33386 CFLAGS=$gl_saved_CFLAGS
33387 else case e in #(
33388 e) gl_cv_c_nullptr=no ;;
33389 esac
33390 fi
33391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
33392 esac
33393 fi
33394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_nullptr" >&5
33395 printf "%s\n" "$gl_cv_c_nullptr" >&6; }
33396 gl_c_nullptr=$gl_cv_c_nullptr
33397 ac_ext=c
33398 ac_cpp='$CPP $CPPFLAGS'
33399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33402
33403 if test "$gl_c_nullptr" = yes; then
33404
33405 printf "%s\n" "#define HAVE_C_NULLPTR 1" >>confdefs.h
33406
33407 fi
33408
33409
33410
33411
33412
33413
33414 case "$host_os" in
33415 mingw* | windows* | pw*)
33416 REPLACE_OPEN=1
33417 ;;
33418 *)
33419
33420 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
33421 REPLACE_OPEN=1
33422 fi
33423
33424
33425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
33426 printf %s "checking whether open recognizes a trailing slash... " >&6; }
33427 if test ${gl_cv_func_open_slash+y}
33428 then :
33429 printf %s "(cached) " >&6
33430 else case e in #(
33431 e) # Assume that if we have lstat, we can also check symlinks.
33432 if test $ac_cv_func_lstat = yes; then
33433 touch conftest.tmp
33434 ln -s conftest.tmp conftest.lnk
33435 fi
33436 if test "$cross_compiling" = yes
33437 then :
33438
33439 case "$host_os" in
33440 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
33441 gl_cv_func_open_slash="guessing no" ;;
33442 *)
33443 gl_cv_func_open_slash="guessing yes" ;;
33444 esac
33445
33446 else case e in #(
33447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33448 /* end confdefs.h. */
33449
33450 #include <fcntl.h>
33451 #if HAVE_UNISTD_H
33452 # include <unistd.h>
33453 #endif
33454
33455
33456 $gl_mda_defines
33457
33458 int main ()
33459 {
33460 int result = 0;
33461 #if HAVE_LSTAT
33462 if (open ("conftest.lnk/", O_RDONLY) != -1)
33463 result |= 1;
33464 #endif
33465 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
33466 result |= 2;
33467 return result;
33468 }
33469 _ACEOF
33470 if ac_fn_c_try_run "$LINENO"
33471 then :
33472 gl_cv_func_open_slash=yes
33473 else case e in #(
33474 e) gl_cv_func_open_slash=no ;;
33475 esac
33476 fi
33477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33478 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
33479 esac
33480 fi
33481
33482 rm -f conftest.sl conftest.tmp conftest.lnk
33483 ;;
33484 esac
33485 fi
33486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
33487 printf "%s\n" "$gl_cv_func_open_slash" >&6; }
33488 case "$gl_cv_func_open_slash" in
33489 *no)
33490
33491 printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
33492
33493 ;;
33494 esac
33495
33496 case "$gl_cv_func_open_slash" in
33497 *no)
33498 REPLACE_OPEN=1
33499 ;;
33500 esac
33501 ;;
33502 esac
33503
33504
33505
33506
33507 if test $REPLACE_OPEN = 1; then
33508 GL_COND_OBJ_OPEN_TRUE=
33509 GL_COND_OBJ_OPEN_FALSE='#'
33510 else
33511 GL_COND_OBJ_OPEN_TRUE='#'
33512 GL_COND_OBJ_OPEN_FALSE=
33513 fi
33514 :
33515 if test -z "${GL_COND_OBJ_OPEN_TRUE}" && test -z "${GL_COND_OBJ_OPEN_FALSE}"; then
33516 GL_COND_OBJ_OPEN_TRUE='#'
33517 GL_COND_OBJ_OPEN_FALSE='#'
33518 fi
33519
33520 if test -z "$GL_COND_OBJ_OPEN_TRUE"; then :
33521
33522
33523
33524 :
33525
33526
33527 fi
33528
33529
33530
33531
33532
33533
33534
33535
33536
33537 GL_GNULIB_OPEN=1
33538
33539
33540
33541
33542
33543 printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h
33544
33545
33546
33547
33548
33549
33550
33551
33552
33553
33554
33555
33556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_CREATE_DETACHED" >&5
33557 printf %s "checking for PTHREAD_CREATE_DETACHED... " >&6; }
33558 if test ${gl_cv_const_PTHREAD_CREATE_DETACHED+y}
33559 then :
33560 printf %s "(cached) " >&6
33561 else case e in #(
33562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33563 /* end confdefs.h. */
33564 #include <pthread.h>
33565 int x = PTHREAD_CREATE_DETACHED;
33566
33567 int
33568 main (void)
33569 {
33570
33571 ;
33572 return 0;
33573 }
33574 _ACEOF
33575 if ac_fn_c_try_compile "$LINENO"
33576 then :
33577 gl_cv_const_PTHREAD_CREATE_DETACHED=yes
33578 else case e in #(
33579 e) gl_cv_const_PTHREAD_CREATE_DETACHED=no ;;
33580 esac
33581 fi
33582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33583 ;;
33584 esac
33585 fi
33586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_CREATE_DETACHED" >&5
33587 printf "%s\n" "$gl_cv_const_PTHREAD_CREATE_DETACHED" >&6; }
33588 if test $gl_cv_const_PTHREAD_CREATE_DETACHED != yes; then
33589 HAVE_PTHREAD_CREATE_DETACHED=0
33590 fi
33591
33592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE" >&5
33593 printf %s "checking for PTHREAD_MUTEX_RECURSIVE... " >&6; }
33594 if test ${gl_cv_const_PTHREAD_MUTEX_RECURSIVE+y}
33595 then :
33596 printf %s "(cached) " >&6
33597 else case e in #(
33598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33599 /* end confdefs.h. */
33600 #include <pthread.h>
33601 int x = PTHREAD_MUTEX_RECURSIVE;
33602
33603 int
33604 main (void)
33605 {
33606
33607 ;
33608 return 0;
33609 }
33610 _ACEOF
33611 if ac_fn_c_try_compile "$LINENO"
33612 then :
33613 gl_cv_const_PTHREAD_MUTEX_RECURSIVE=yes
33614 else case e in #(
33615 e) gl_cv_const_PTHREAD_MUTEX_RECURSIVE=no ;;
33616 esac
33617 fi
33618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33619 ;;
33620 esac
33621 fi
33622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_MUTEX_RECURSIVE" >&5
33623 printf "%s\n" "$gl_cv_const_PTHREAD_MUTEX_RECURSIVE" >&6; }
33624 if test $gl_cv_const_PTHREAD_MUTEX_RECURSIVE != yes; then
33625 HAVE_PTHREAD_MUTEX_RECURSIVE=0
33626 fi
33627
33628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ROBUST" >&5
33629 printf %s "checking for PTHREAD_MUTEX_ROBUST... " >&6; }
33630 if test ${gl_cv_const_PTHREAD_MUTEX_ROBUST+y}
33631 then :
33632 printf %s "(cached) " >&6
33633 else case e in #(
33634 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33635 /* end confdefs.h. */
33636 #include <pthread.h>
33637 int x = PTHREAD_MUTEX_ROBUST;
33638
33639 int
33640 main (void)
33641 {
33642
33643 ;
33644 return 0;
33645 }
33646 _ACEOF
33647 if ac_fn_c_try_compile "$LINENO"
33648 then :
33649 gl_cv_const_PTHREAD_MUTEX_ROBUST=yes
33650 else case e in #(
33651 e) gl_cv_const_PTHREAD_MUTEX_ROBUST=no ;;
33652 esac
33653 fi
33654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33655 ;;
33656 esac
33657 fi
33658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_MUTEX_ROBUST" >&5
33659 printf "%s\n" "$gl_cv_const_PTHREAD_MUTEX_ROBUST" >&6; }
33660 if test $gl_cv_const_PTHREAD_MUTEX_ROBUST != yes; then
33661 HAVE_PTHREAD_MUTEX_ROBUST=0
33662 fi
33663
33664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED" >&5
33665 printf %s "checking for PTHREAD_PROCESS_SHARED... " >&6; }
33666 if test ${gl_cv_const_PTHREAD_PROCESS_SHARED+y}
33667 then :
33668 printf %s "(cached) " >&6
33669 else case e in #(
33670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33671 /* end confdefs.h. */
33672 #include <pthread.h>
33673 int x = PTHREAD_PROCESS_SHARED;
33674
33675 int
33676 main (void)
33677 {
33678
33679 ;
33680 return 0;
33681 }
33682 _ACEOF
33683 if ac_fn_c_try_compile "$LINENO"
33684 then :
33685 gl_cv_const_PTHREAD_PROCESS_SHARED=yes
33686 else case e in #(
33687 e) gl_cv_const_PTHREAD_PROCESS_SHARED=no ;;
33688 esac
33689 fi
33690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33691 ;;
33692 esac
33693 fi
33694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_PROCESS_SHARED" >&5
33695 printf "%s\n" "$gl_cv_const_PTHREAD_PROCESS_SHARED" >&6; }
33696 if test $gl_cv_const_PTHREAD_PROCESS_SHARED != yes; then
33697 HAVE_PTHREAD_PROCESS_SHARED=0
33698 fi
33699
33700
33701
33702
33703
33704
33705
33706 LIB_PTHREAD="$LIBPMULTITHREAD"
33707
33708
33709
33710
33711
33712
33713
33714
33715
33716
33717
33718
33719 if { case "$host_os" in mingw* | windows*) true;; *) false;; esac; } \
33720 && test $gl_threads_api = windows; then
33721 REPLACE_PTHREAD_ONCE=1
33722 else
33723 if test $HAVE_PTHREAD_H = 0; then
33724 HAVE_PTHREAD_ONCE=0
33725 else
33726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_once works" >&5
33727 printf %s "checking whether pthread_once works... " >&6; }
33728 if test ${gl_cv_func_pthread_once_works+y}
33729 then :
33730 printf %s "(cached) " >&6
33731 else case e in #(
33732 e) case "$host_os" in
33733 cygwin*) gl_cv_func_pthread_once_works="guessing no" ;;
33734 *) gl_cv_func_pthread_once_works="yes" ;;
33735 esac
33736 ;;
33737 esac
33738 fi
33739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_once_works" >&5
33740 printf "%s\n" "$gl_cv_func_pthread_once_works" >&6; }
33741 case "$gl_cv_func_pthread_once_works" in
33742 *yes) ;;
33743 *) REPLACE_PTHREAD_ONCE=1 ;;
33744 esac
33745 fi
33746 fi
33747
33748
33749 if test $HAVE_PTHREAD_ONCE = 0 || test $REPLACE_PTHREAD_ONCE = 1; then
33750 GL_COND_OBJ_PTHREAD_ONCE_TRUE=
33751 GL_COND_OBJ_PTHREAD_ONCE_FALSE='#'
33752 else
33753 GL_COND_OBJ_PTHREAD_ONCE_TRUE='#'
33754 GL_COND_OBJ_PTHREAD_ONCE_FALSE=
33755 fi
33756 :
33757 if test -z "${GL_COND_OBJ_PTHREAD_ONCE_TRUE}" && test -z "${GL_COND_OBJ_PTHREAD_ONCE_FALSE}"; then
33758 GL_COND_OBJ_PTHREAD_ONCE_TRUE='#'
33759 GL_COND_OBJ_PTHREAD_ONCE_FALSE='#'
33760 fi
33761
33762
33763
33764
33765
33766
33767
33768
33769
33770
33771 GL_GNULIB_PTHREAD_ONCE=1
33772
33773
33774
33775
33776
33777 printf "%s\n" "#define GNULIB_TEST_PTHREAD_ONCE 1" >>confdefs.h
33778
33779
33780
33781
33782
33783
33784 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
33785 if test "x$ac_cv_func_raise" = xyes
33786 then :
33787 printf "%s\n" "#define HAVE_RAISE 1" >>confdefs.h
33788
33789 fi
33790
33791 if test $ac_cv_func_raise = no; then
33792 HAVE_RAISE=0
33793 else
33794
33795
33796 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
33797 REPLACE_RAISE=1
33798 fi
33799
33800
33801
33802
33803
33804 HAVE_POSIX_SIGNALBLOCKING=0
33805 if test "$gl_cv_type_sigset_t" = yes; then
33806 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
33807 if test "x$ac_cv_func_sigprocmask" = xyes
33808 then :
33809 HAVE_POSIX_SIGNALBLOCKING=1
33810 fi
33811
33812 fi
33813
33814 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
33815 :
33816 fi
33817
33818 fi
33819
33820
33821 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
33822 GL_COND_OBJ_RAISE_TRUE=
33823 GL_COND_OBJ_RAISE_FALSE='#'
33824 else
33825 GL_COND_OBJ_RAISE_TRUE='#'
33826 GL_COND_OBJ_RAISE_FALSE=
33827 fi
33828 :
33829 if test -z "${GL_COND_OBJ_RAISE_TRUE}" && test -z "${GL_COND_OBJ_RAISE_FALSE}"; then
33830 GL_COND_OBJ_RAISE_TRUE='#'
33831 GL_COND_OBJ_RAISE_FALSE='#'
33832 fi
33833
33834 if test -z "$GL_COND_OBJ_RAISE_TRUE"; then :
33835
33836 :
33837
33838 fi
33839
33840
33841
33842
33843
33844
33845
33846
33847
33848 GL_GNULIB_RAISE=1
33849
33850
33851
33852
33853
33854 printf "%s\n" "#define GNULIB_TEST_RAISE 1" >>confdefs.h
33855
33856
33857
33858
33859
33860
33861
33862 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
33863 REPLACE_READ=1
33864 fi
33865
33866
33867
33868
33869 if test $REPLACE_READ = 1; then
33870 GL_COND_OBJ_READ_TRUE=
33871 GL_COND_OBJ_READ_FALSE='#'
33872 else
33873 GL_COND_OBJ_READ_TRUE='#'
33874 GL_COND_OBJ_READ_FALSE=
33875 fi
33876 :
33877 if test -z "${GL_COND_OBJ_READ_TRUE}" && test -z "${GL_COND_OBJ_READ_FALSE}"; then
33878 GL_COND_OBJ_READ_TRUE='#'
33879 GL_COND_OBJ_READ_FALSE='#'
33880 fi
33881
33882 if test -z "$GL_COND_OBJ_READ_TRUE"; then :
33883
33884 :
33885
33886 fi
33887
33888
33889
33890
33891
33892
33893
33894
33895
33896 GL_GNULIB_READ=1
33897
33898
33899
33900
33901
33902 printf "%s\n" "#define GNULIB_TEST_READ 1" >>confdefs.h
33903
33904
33905
33906
33907
33908
33909 if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 0; then
33910
33911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realloc (0, 0) returns nonnull" >&5
33912 printf %s "checking whether realloc (0, 0) returns nonnull... " >&6; }
33913 if test ${ac_cv_func_realloc_0_nonnull+y}
33914 then :
33915 printf %s "(cached) " >&6
33916 else case e in #(
33917 e) if test "$cross_compiling" = yes
33918 then :
33919 case "$host_os" in
33920 # Guess yes on platforms where we know the result.
33921 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
33922 | gnu* | *-musl* | midipix* | midnightbsd* \
33923 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
33924 ac_cv_func_realloc_0_nonnull="guessing yes" ;;
33925 # If we don't know, obey --enable-cross-guesses.
33926 *) ac_cv_func_realloc_0_nonnull="$gl_cross_guess_normal" ;;
33927 esac
33928
33929 else case e in #(
33930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33931 /* end confdefs.h. */
33932 #include <stdlib.h>
33933
33934 int
33935 main (void)
33936 {
33937 void *p = realloc (0, 0);
33938 void * volatile vp = p;
33939 int result = !vp;
33940 free (p);
33941 return result;
33942 ;
33943 return 0;
33944 }
33945
33946 _ACEOF
33947 if ac_fn_c_try_run "$LINENO"
33948 then :
33949 ac_cv_func_realloc_0_nonnull=yes
33950 else case e in #(
33951 e) ac_cv_func_realloc_0_nonnull=no ;;
33952 esac
33953 fi
33954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33955 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
33956 esac
33957 fi
33958
33959 ;;
33960 esac
33961 fi
33962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
33963 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
33964 case $ac_cv_func_realloc_0_nonnull in #(
33965 *yes) :
33966 ;; #(
33967 *) :
33968 REPLACE_REALLOC_FOR_REALLOC_GNU=1 ;;
33969 esac
33970
33971 fi
33972
33973 if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1; then
33974
33975
33976
33977
33978
33979
33980
33981
33982 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
33983
33984 fi
33985
33986
33987
33988
33989
33990
33991
33992
33993
33994 GL_GNULIB_REALLOC_GNU=1
33995
33996
33997
33998
33999
34000 printf "%s\n" "#define GNULIB_TEST_REALLOC_GNU 1" >>confdefs.h
34001
34002
34003
34004
34005
34006
34007 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
34008 REPLACE_REALLOC_FOR_REALLOC_POSIX=1
34009 fi
34010
34011 if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then
34012
34013
34014
34015
34016
34017
34018
34019
34020 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
34021
34022 fi
34023
34024
34025
34026
34027
34028
34029
34030
34031
34032 GL_GNULIB_REALLOC_POSIX=1
34033
34034
34035
34036
34037
34038 printf "%s\n" "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
34039
34040
34041
34042
34043
34044
34045
34046
34047
34048
34049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
34050 printf %s "checking for reallocarray... " >&6; }
34051 if test ${gl_cv_onwards_func_reallocarray+y}
34052 then :
34053 printf %s "(cached) " >&6
34054 else case e in #(
34055 e)
34056 exec 9>&6 6>/dev/null
34057
34058 case "$host_os" in
34059
34060 linux*-android*)
34061 ac_fn_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "#include <stdlib.h>
34062 " "$ac_c_undeclared_builtin_options" "CFLAGS"
34063 if test "x$ac_cv_have_decl_reallocarray" = xyes
34064 then :
34065
34066 fi
34067 if test $ac_cv_have_decl_reallocarray = yes; then
34068 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
34069 if test "x$ac_cv_func_reallocarray" = xyes
34070 then :
34071
34072 fi
34073
34074 if test $ac_cv_func_reallocarray = yes; then
34075 gl_cv_onwards_func_reallocarray=yes
34076 else
34077 gl_cv_onwards_func_reallocarray='future OS version'
34078 fi
34079 else
34080 gl_cv_onwards_func_reallocarray='future OS version'
34081 fi
34082 ;;
34083
34084
34085 *)
34086 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
34087 if test "x$ac_cv_func_reallocarray" = xyes
34088 then :
34089
34090 fi
34091
34092 gl_cv_onwards_func_reallocarray=$ac_cv_func_reallocarray
34093 ;;
34094
34095 esac
34096
34097 exec 6>&9 9>&-
34098
34099 ;;
34100 esac
34101 fi
34102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_reallocarray" >&5
34103 printf "%s\n" "$gl_cv_onwards_func_reallocarray" >&6; }
34104
34105 case "$gl_cv_onwards_func_reallocarray" in
34106 future*) ac_cv_func_reallocarray=no ;;
34107 *) ac_cv_func_reallocarray=$gl_cv_onwards_func_reallocarray ;;
34108 esac
34109 if test $ac_cv_func_reallocarray = yes; then
34110
34111 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
34112
34113 fi
34114
34115
34116 if test "$ac_cv_func_reallocarray" = no; then
34117 HAVE_REALLOCARRAY=0
34118 case "$gl_cv_onwards_func_reallocarray" in
34119 future*) REPLACE_REALLOCARRAY=1 ;;
34120 esac
34121 elif test "$gl_cv_malloc_ptrdiff" = no; then
34122 REPLACE_REALLOCARRAY=1
34123 fi
34124
34125
34126 if test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1; then
34127 GL_COND_OBJ_REALLOCARRAY_TRUE=
34128 GL_COND_OBJ_REALLOCARRAY_FALSE='#'
34129 else
34130 GL_COND_OBJ_REALLOCARRAY_TRUE='#'
34131 GL_COND_OBJ_REALLOCARRAY_FALSE=
34132 fi
34133 :
34134 if test -z "${GL_COND_OBJ_REALLOCARRAY_TRUE}" && test -z "${GL_COND_OBJ_REALLOCARRAY_FALSE}"; then
34135 GL_COND_OBJ_REALLOCARRAY_TRUE='#'
34136 GL_COND_OBJ_REALLOCARRAY_FALSE='#'
34137 fi
34138
34139 if test -z "$GL_COND_OBJ_REALLOCARRAY_TRUE"; then :
34140
34141 :
34142
34143 fi
34144
34145
34146 printf "%s\n" "#define GNULIB_REALLOCARRAY 1" >>confdefs.h
34147
34148
34149
34150
34151
34152
34153
34154
34155
34156
34157
34158 GL_GNULIB_REALLOCARRAY=1
34159
34160
34161
34162
34163
34164 printf "%s\n" "#define GNULIB_TEST_REALLOCARRAY 1" >>confdefs.h
34165
34166
34167
34168
34169
34170
34171
34172
34173
34174
34175
34176
34177
34178
34179
34180
34181
34182
34183
34184
34185 if test $ac_cv_func_setenv = no; then
34186 HAVE_SETENV=0
34187 else
34188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
34189 printf %s "checking whether setenv validates arguments... " >&6; }
34190 if test ${gl_cv_func_setenv_works+y}
34191 then :
34192 printf %s "(cached) " >&6
34193 else case e in #(
34194 e) if test "$cross_compiling" = yes
34195 then :
34196 case "$host_os" in
34197 # Guess yes on glibc systems.
34198 *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;;
34199 # Guess yes on musl systems.
34200 *-musl* | midipix*) gl_cv_func_setenv_works="guessing yes" ;;
34201 # If we don't know, obey --enable-cross-guesses.
34202 *) gl_cv_func_setenv_works="$gl_cross_guess_normal" ;;
34203 esac
34204
34205 else case e in #(
34206 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34207 /* end confdefs.h. */
34208
34209 #include <stdlib.h>
34210 #include <errno.h>
34211 #include <string.h>
34212
34213 int
34214 main (void)
34215 {
34216
34217 int result = 0;
34218 {
34219 if (setenv ("", "", 0) != -1)
34220 result |= 1;
34221 else if (errno != EINVAL)
34222 result |= 2;
34223 }
34224 {
34225 if (setenv ("a", "=", 1) != 0)
34226 result |= 4;
34227 else if (strcmp (getenv ("a"), "=") != 0)
34228 result |= 8;
34229 }
34230 return result;
34231
34232 ;
34233 return 0;
34234 }
34235 _ACEOF
34236 if ac_fn_c_try_run "$LINENO"
34237 then :
34238 gl_cv_func_setenv_works=yes
34239 else case e in #(
34240 e) gl_cv_func_setenv_works=no ;;
34241 esac
34242 fi
34243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34244 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
34245 esac
34246 fi
34247 ;;
34248 esac
34249 fi
34250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
34251 printf "%s\n" "$gl_cv_func_setenv_works" >&6; }
34252 case "$gl_cv_func_setenv_works" in
34253 *yes) ;;
34254 *)
34255 REPLACE_SETENV=1
34256 ;;
34257 esac
34258 fi
34259
34260
34261 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
34262 GL_COND_OBJ_SETENV_TRUE=
34263 GL_COND_OBJ_SETENV_FALSE='#'
34264 else
34265 GL_COND_OBJ_SETENV_TRUE='#'
34266 GL_COND_OBJ_SETENV_FALSE=
34267 fi
34268 :
34269 if test -z "${GL_COND_OBJ_SETENV_TRUE}" && test -z "${GL_COND_OBJ_SETENV_FALSE}"; then
34270 GL_COND_OBJ_SETENV_TRUE='#'
34271 GL_COND_OBJ_SETENV_FALSE='#'
34272 fi
34273
34274
34275
34276
34277
34278
34279
34280
34281
34282
34283 GL_GNULIB_SETENV=1
34284
34285
34286
34287
34288
34289 printf "%s\n" "#define GNULIB_TEST_SETENV 1" >>confdefs.h
34290
34291
34292
34293
34294
34295
34296 if test $ac_cv_func_sigaction = yes; then
34297 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
34298 "
34299 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
34300 then :
34301
34302 printf "%s\n" "#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1" >>confdefs.h
34303
34304
34305 fi
34306
34307 if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
34308 HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
34309 fi
34310 else
34311 HAVE_SIGACTION=0
34312 fi
34313
34314
34315 if test $HAVE_SIGACTION = 0; then
34316 GL_COND_OBJ_SIGACTION_TRUE=
34317 GL_COND_OBJ_SIGACTION_FALSE='#'
34318 else
34319 GL_COND_OBJ_SIGACTION_TRUE='#'
34320 GL_COND_OBJ_SIGACTION_FALSE=
34321 fi
34322 :
34323 if test -z "${GL_COND_OBJ_SIGACTION_TRUE}" && test -z "${GL_COND_OBJ_SIGACTION_FALSE}"; then
34324 GL_COND_OBJ_SIGACTION_TRUE='#'
34325 GL_COND_OBJ_SIGACTION_FALSE='#'
34326 fi
34327
34328 if test -z "$GL_COND_OBJ_SIGACTION_TRUE"; then :
34329
34330
34331
34332
34333
34334
34335
34336 ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
34337 #include <signal.h>
34338
34339 "
34340 if test "x$ac_cv_type_siginfo_t" = xyes
34341 then :
34342
34343 printf "%s\n" "#define HAVE_SIGINFO_T 1" >>confdefs.h
34344
34345
34346 fi
34347
34348 if test $ac_cv_type_siginfo_t = no; then
34349 HAVE_SIGINFO_T=0
34350 fi
34351
34352
34353 fi
34354
34355
34356
34357
34358
34359
34360
34361
34362
34363 GL_GNULIB_SIGACTION=1
34364
34365
34366
34367
34368
34369 printf "%s\n" "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
34370
34371
34372
34373
34374
34375
34376
34377
34378
34379
34380
34381
34382
34383 HAVE_POSIX_SIGNALBLOCKING=0
34384 if test "$gl_cv_type_sigset_t" = yes; then
34385 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
34386 if test "x$ac_cv_func_sigprocmask" = xyes
34387 then :
34388 HAVE_POSIX_SIGNALBLOCKING=1
34389 fi
34390
34391 fi
34392
34393
34394 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
34395 GL_COND_OBJ_SIGPROCMASK_TRUE=
34396 GL_COND_OBJ_SIGPROCMASK_FALSE='#'
34397 else
34398 GL_COND_OBJ_SIGPROCMASK_TRUE='#'
34399 GL_COND_OBJ_SIGPROCMASK_FALSE=
34400 fi
34401 :
34402 if test -z "${GL_COND_OBJ_SIGPROCMASK_TRUE}" && test -z "${GL_COND_OBJ_SIGPROCMASK_FALSE}"; then
34403 GL_COND_OBJ_SIGPROCMASK_TRUE='#'
34404 GL_COND_OBJ_SIGPROCMASK_FALSE='#'
34405 fi
34406
34407 if test -z "$GL_COND_OBJ_SIGPROCMASK_TRUE"; then :
34408
34409 :
34410
34411 fi
34412
34413
34414
34415
34416
34417
34418
34419
34420
34421 GL_GNULIB_SIGPROCMASK=1
34422
34423
34424
34425
34426
34427 printf "%s\n" "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
34428
34429
34430
34431
34432 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
34433 if test "x$ac_cv_header_stdint_h" = xyes
34434 then :
34435 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
34436
34437 fi
34438
34439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
34440 printf %s "checking for SIZE_MAX... " >&6; }
34441 if test ${gl_cv_size_max+y}
34442 then :
34443 printf %s "(cached) " >&6
34444 else case e in #(
34445 e)
34446 gl_cv_size_max=no
34447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34448 /* end confdefs.h. */
34449
34450 #include <limits.h>
34451 #if HAVE_STDINT_H
34452 #include <stdint.h>
34453 #endif
34454 #ifdef SIZE_MAX
34455 Found it
34456 #endif
34457
34458 _ACEOF
34459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34460 $EGREP_TRADITIONAL "Found it" >/dev/null 2>&1
34461 then :
34462 gl_cv_size_max=yes
34463 fi
34464 rm -rf conftest*
34465
34466 if test $gl_cv_size_max != yes; then
34467 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
34468 #include <limits.h>"
34469 then :
34470
34471 else case e in #(
34472 e) size_t_bits_minus_1= ;;
34473 esac
34474 fi
34475
34476 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"
34477 then :
34478
34479 else case e in #(
34480 e) fits_in_uint= ;;
34481 esac
34482 fi
34483
34484 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
34485 if test $fits_in_uint = 1; then
34486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34487 /* end confdefs.h. */
34488 #include <stddef.h>
34489 extern size_t foo;
34490 extern unsigned long foo;
34491
34492 int
34493 main (void)
34494 {
34495
34496 ;
34497 return 0;
34498 }
34499 _ACEOF
34500 if ac_fn_c_try_compile "$LINENO"
34501 then :
34502 fits_in_uint=0
34503 fi
34504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34505 fi
34506 if test $fits_in_uint = 1; then
34507 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
34508 else
34509 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
34510 fi
34511 else
34512 gl_cv_size_max='((size_t)~(size_t)0)'
34513 fi
34514 fi
34515 ;;
34516 esac
34517 fi
34518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
34519 printf "%s\n" "$gl_cv_size_max" >&6; }
34520 if test "$gl_cv_size_max" != yes; then
34521
34522 printf "%s\n" "#define SIZE_MAX $gl_cv_size_max" >>confdefs.h
34523
34524 fi
34525
34526
34527
34528
34529 gl_cv_func_snprintf_usable=no
34530 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
34531 if test "x$ac_cv_func_snprintf" = xyes
34532 then :
34533 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
34534
34535 fi
34536
34537 if test $ac_cv_func_snprintf = yes; then
34538
34539
34540
34541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
34542 printf %s "checking whether snprintf respects a size of 1... " >&6; }
34543 if test ${gl_cv_func_snprintf_size1+y}
34544 then :
34545 printf %s "(cached) " >&6
34546 else case e in #(
34547 e)
34548 if test "$cross_compiling" = yes
34549 then :
34550 case "$host_os" in
34551 # Guess yes on Android.
34552 linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
34553 # Guess yes on native Windows.
34554 mingw* | windows*) gl_cv_func_snprintf_size1="guessing yes" ;;
34555 *) gl_cv_func_snprintf_size1="guessing yes" ;;
34556 esac
34557
34558 else case e in #(
34559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34560 /* end confdefs.h. */
34561
34562 #include <stdio.h>
34563 #if HAVE_SNPRINTF
34564 # define my_snprintf snprintf
34565 #else
34566 # include <stdarg.h>
34567 static int my_snprintf (char *buf, int size, const char *format, ...)
34568 {
34569 va_list args;
34570 int ret;
34571 va_start (args, format);
34572 ret = vsnprintf (buf, size, format, args);
34573 va_end (args);
34574 return ret;
34575 }
34576 #endif
34577 int main()
34578 {
34579 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
34580 my_snprintf (buf, 1, "%d", 12345);
34581 return buf[1] != 'E';
34582 }
34583 _ACEOF
34584 if ac_fn_c_try_run "$LINENO"
34585 then :
34586 gl_cv_func_snprintf_size1=yes
34587 else case e in #(
34588 e) gl_cv_func_snprintf_size1=no ;;
34589 esac
34590 fi
34591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34592 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
34593 esac
34594 fi
34595
34596 ;;
34597 esac
34598 fi
34599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
34600 printf "%s\n" "$gl_cv_func_snprintf_size1" >&6; }
34601
34602 case "$gl_cv_func_snprintf_size1" in
34603 *yes)
34604
34605 case "$gl_cv_func_snprintf_retval_c99" in
34606 *yes)
34607
34608 case "$gl_cv_func_printf_positions" in
34609 *yes)
34610 gl_cv_func_snprintf_usable=yes
34611 ;;
34612 esac
34613 ;;
34614 esac
34615 ;;
34616 esac
34617 fi
34618 if test $gl_cv_func_snprintf_usable = no; then
34619
34620
34621
34622
34623
34624
34625
34626
34627
34628
34629 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
34630
34631 if test $ac_cv_func_snprintf = yes; then
34632 REPLACE_SNPRINTF=1
34633 else
34634
34635 if test $ac_cv_have_decl_snprintf = yes; then
34636 REPLACE_SNPRINTF=1
34637 fi
34638 fi
34639 :
34640
34641 fi
34642
34643 if test $ac_cv_have_decl_snprintf = no; then
34644 HAVE_DECL_SNPRINTF=0
34645 fi
34646
34647
34648
34649
34650
34651
34652
34653
34654
34655
34656 GL_GNULIB_SNPRINTF=1
34657
34658
34659
34660
34661
34662 printf "%s\n" "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
34663
34664
34665
34666
34667
34668 printf "%s\n" "#define GNULIB_SNPRINTF 1" >>confdefs.h
34669
34670
34671
34672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
34673 printf %s "checking for ssize_t... " >&6; }
34674 if test ${gl_cv_ssize_t+y}
34675 then :
34676 printf %s "(cached) " >&6
34677 else case e in #(
34678 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34679 /* end confdefs.h. */
34680 #include <sys/types.h>
34681 int
34682 main (void)
34683 {
34684 int x = sizeof (ssize_t *) + sizeof (ssize_t);
34685 return !x;
34686 ;
34687 return 0;
34688 }
34689 _ACEOF
34690 if ac_fn_c_try_compile "$LINENO"
34691 then :
34692 gl_cv_ssize_t=yes
34693 else case e in #(
34694 e) gl_cv_ssize_t=no ;;
34695 esac
34696 fi
34697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
34698 esac
34699 fi
34700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ssize_t" >&5
34701 printf "%s\n" "$gl_cv_ssize_t" >&6; }
34702 if test $gl_cv_ssize_t = no; then
34703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether size_t is wider than 'long'" >&5
34704 printf %s "checking whether size_t is wider than 'long'... " >&6; }
34705 if test ${gl_cv_size_t_large+y}
34706 then :
34707 printf %s "(cached) " >&6
34708 else case e in #(
34709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34710 /* end confdefs.h. */
34711 #include <sys/types.h>
34712 typedef int array [2 * (sizeof (size_t) > sizeof (long)) - 1];
34713
34714 int
34715 main (void)
34716 {
34717
34718 ;
34719 return 0;
34720 }
34721 _ACEOF
34722 if ac_fn_c_try_compile "$LINENO"
34723 then :
34724 gl_cv_size_t_large=yes
34725 else case e in #(
34726 e) gl_cv_size_t_large=no ;;
34727 esac
34728 fi
34729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
34730 esac
34731 fi
34732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_t_large" >&5
34733 printf "%s\n" "$gl_cv_size_t_large" >&6; }
34734 if test $gl_cv_size_t_large = yes; then
34735 gl_def_ssize_t='long long'
34736 else
34737 gl_def_ssize_t='long'
34738 fi
34739
34740 printf "%s\n" "#define ssize_t $gl_def_ssize_t" >>confdefs.h
34741
34742 fi
34743
34744
34745
34746
34747
34748 case "$host_os" in
34749 mingw* | windows*)
34750 REPLACE_STAT=1
34751 ;;
34752 *)
34753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
34754 printf %s "checking whether stat handles trailing slashes on files... " >&6; }
34755 if test ${gl_cv_func_stat_file_slash+y}
34756 then :
34757 printf %s "(cached) " >&6
34758 else case e in #(
34759 e) touch conftest.tmp
34760 # Assume that if we have lstat, we can also check symlinks.
34761 if test $ac_cv_func_lstat = yes; then
34762 ln -s conftest.tmp conftest.lnk
34763 fi
34764 if test "$cross_compiling" = yes
34765 then :
34766 case "$host_os" in
34767 # Guess yes on Linux systems.
34768 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
34769 # Guess yes on systems that emulate the Linux system calls.
34770 midipix*) gl_cv_func_stat_file_slash="guessing yes" ;;
34771 # Guess yes on glibc systems.
34772 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
34773 # If we don't know, obey --enable-cross-guesses.
34774 *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
34775 esac
34776
34777 else case e in #(
34778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34779 /* end confdefs.h. */
34780 #include <sys/stat.h>
34781
34782 int
34783 main (void)
34784 {
34785 int result = 0;
34786 struct stat st;
34787 if (!stat ("conftest.tmp/", &st))
34788 result |= 1;
34789 #if HAVE_LSTAT
34790 if (!stat ("conftest.lnk/", &st))
34791 result |= 2;
34792 #endif
34793 return result;
34794
34795 ;
34796 return 0;
34797 }
34798 _ACEOF
34799 if ac_fn_c_try_run "$LINENO"
34800 then :
34801 gl_cv_func_stat_file_slash=yes
34802 else case e in #(
34803 e) gl_cv_func_stat_file_slash=no ;;
34804 esac
34805 fi
34806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34807 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
34808 esac
34809 fi
34810
34811 rm -f conftest.tmp conftest.lnk ;;
34812 esac
34813 fi
34814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
34815 printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; }
34816 case $gl_cv_func_stat_file_slash in
34817 *no)
34818 REPLACE_STAT=1
34819
34820 printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
34821 ;;
34822 esac
34823 case $host_os in
34824 darwin* | solaris*)
34825 REPLACE_FSTAT=1 ;;
34826 esac
34827 ;;
34828 esac
34829
34830
34831 if test $REPLACE_STAT = 1; then
34832 GL_COND_OBJ_STAT_TRUE=
34833 GL_COND_OBJ_STAT_FALSE='#'
34834 else
34835 GL_COND_OBJ_STAT_TRUE='#'
34836 GL_COND_OBJ_STAT_FALSE=
34837 fi
34838 :
34839 if test -z "${GL_COND_OBJ_STAT_TRUE}" && test -z "${GL_COND_OBJ_STAT_FALSE}"; then
34840 GL_COND_OBJ_STAT_TRUE='#'
34841 GL_COND_OBJ_STAT_FALSE='#'
34842 fi
34843
34844 if test -z "$GL_COND_OBJ_STAT_TRUE"; then :
34845
34846 case "$host_os" in
34847 mingw* | windows*)
34848
34849
34850
34851
34852
34853
34854
34855
34856 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
34857
34858 ;;
34859 esac
34860
34861
34862
34863 :
34864
34865
34866 fi
34867
34868
34869
34870
34871
34872
34873
34874
34875
34876 GL_GNULIB_STAT=1
34877
34878
34879
34880
34881
34882 printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h
34883
34884
34885
34886
34887
34888
34889
34890 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
34891 #include <sys/stat.h>
34892 "
34893 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
34894 then :
34895
34896 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h
34897
34898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
34899 printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
34900 if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y}
34901 then :
34902 printf %s "(cached) " >&6
34903 else case e in #(
34904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34905 /* end confdefs.h. */
34906
34907 #include <sys/types.h>
34908 #include <sys/stat.h>
34909 #if HAVE_SYS_TIME_H
34910 # include <sys/time.h>
34911 #endif
34912 #include <time.h>
34913 struct timespec ts;
34914 struct stat st;
34915
34916 int
34917 main (void)
34918 {
34919
34920 st.st_atim = ts;
34921
34922 ;
34923 return 0;
34924 }
34925 _ACEOF
34926 if ac_fn_c_try_compile "$LINENO"
34927 then :
34928 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
34929 else case e in #(
34930 e) ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no ;;
34931 esac
34932 fi
34933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
34934 esac
34935 fi
34936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
34937 printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
34938 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
34939
34940 printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
34941
34942 fi
34943 else case e in #(
34944 e) ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
34945 #include <sys/stat.h>
34946 "
34947 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
34948 then :
34949
34950 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h
34951
34952
34953 else case e in #(
34954 e) ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
34955 #include <sys/stat.h>
34956 "
34957 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
34958 then :
34959
34960 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h
34961
34962
34963 else case e in #(
34964 e) ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
34965 #include <sys/stat.h>
34966 "
34967 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
34968 then :
34969
34970 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h
34971
34972
34973 fi
34974 ;;
34975 esac
34976 fi
34977 ;;
34978 esac
34979 fi
34980 ;;
34981 esac
34982 fi
34983
34984
34985
34986
34987
34988 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
34989 #include <sys/stat.h>
34990 "
34991 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
34992 then :
34993
34994 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h
34995
34996
34997 else case e in #(
34998 e) ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
34999 #include <sys/stat.h>
35000 "
35001 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
35002 then :
35003
35004 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h
35005
35006
35007 else case e in #(
35008 e) ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
35009 #include <sys/stat.h>
35010 "
35011 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
35012 then :
35013
35014 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h
35015
35016
35017 fi
35018 ;;
35019 esac
35020 fi
35021 ;;
35022 esac
35023 fi
35024
35025
35026
35027 GL_GENERATE_STDARG_H=false
35028 NEXT_STDARG_H='<stdarg.h>'
35029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
35030 printf %s "checking for va_copy... " >&6; }
35031 if test ${gl_cv_func_va_copy+y}
35032 then :
35033 printf %s "(cached) " >&6
35034 else case e in #(
35035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35036 /* end confdefs.h. */
35037 #include <stdarg.h>
35038 int
35039 main (void)
35040 {
35041
35042 #ifndef va_copy
35043 void (*func) (va_list, va_list) = va_copy;
35044 #endif
35045
35046 ;
35047 return 0;
35048 }
35049 _ACEOF
35050 if ac_fn_c_try_compile "$LINENO"
35051 then :
35052 gl_cv_func_va_copy=yes
35053 else case e in #(
35054 e) gl_cv_func_va_copy=no ;;
35055 esac
35056 fi
35057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35058 ;;
35059 esac
35060 fi
35061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
35062 printf "%s\n" "$gl_cv_func_va_copy" >&6; }
35063 if test $gl_cv_func_va_copy = no; then
35064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35065 /* end confdefs.h. */
35066 #if defined _AIX && !defined __GNUC__
35067 AIX vaccine
35068 #endif
35069
35070 _ACEOF
35071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35072 $EGREP_TRADITIONAL "vaccine" >/dev/null 2>&1
35073 then :
35074 gl_aixcc=yes
35075 else case e in #(
35076 e) gl_aixcc=no ;;
35077 esac
35078 fi
35079 rm -rf conftest*
35080
35081 if test $gl_aixcc = yes; then
35082 GL_GENERATE_STDARG_H=true
35083
35084
35085
35086
35087
35088
35089
35090
35091 if test $gl_cv_have_include_next = yes; then
35092 gl_cv_next_stdarg_h='<'stdarg.h'>'
35093 else
35094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
35095 printf %s "checking absolute name of <stdarg.h>... " >&6; }
35096 if test ${gl_cv_next_stdarg_h+y}
35097 then :
35098 printf %s "(cached) " >&6
35099 else case e in #(
35100 e)
35101
35102
35103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35104 /* end confdefs.h. */
35105 #include <stdarg.h>
35106 _ACEOF
35107 case "$host_os" in
35108 aix*) gl_absname_cpp="$ac_cpp -C" ;;
35109 *) gl_absname_cpp="$ac_cpp" ;;
35110 esac
35111
35112 case "$host_os" in
35113 mingw* | windows*)
35114 gl_dirsep_regex='[/\\]'
35115 ;;
35116 *)
35117 gl_dirsep_regex='\/'
35118 ;;
35119 esac
35120 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35121 gl_header_literal_regex=`echo 'stdarg.h' \
35122 | sed -e "$gl_make_literal_regex_sed"`
35123 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35124 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35125 s|^/[^/]|//&|
35126 p
35127 q
35128 }'
35129
35130 gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35131 sed -n "$gl_absolute_header_sed"`
35132
35133 gl_header=$gl_cv_absolute_stdarg_h
35134 gl_cv_next_stdarg_h='"'$gl_header'"'
35135
35136 ;;
35137 esac
35138 fi
35139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
35140 printf "%s\n" "$gl_cv_next_stdarg_h" >&6; }
35141 fi
35142 NEXT_STDARG_H=$gl_cv_next_stdarg_h
35143
35144 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35145 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35146 gl_next_as_first_directive='<'stdarg.h'>'
35147 else
35148 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35149 gl_next_as_first_directive=$gl_cv_next_stdarg_h
35150 fi
35151 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
35152
35153
35154
35155
35156 if test "$gl_cv_next_stdarg_h" = '""'; then
35157 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
35158 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
35159 fi
35160 else
35161
35162
35163 exec 9>&6 6>/dev/null
35164
35165 if test ${gl_cv_func___va_copy+y}
35166 then :
35167 printf %s "(cached) " >&6
35168 else case e in #(
35169 e)
35170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35171 /* end confdefs.h. */
35172 #include <stdarg.h>
35173 int
35174 main (void)
35175 {
35176
35177 #ifndef __va_copy
35178 error, bail out
35179 #endif
35180
35181 ;
35182 return 0;
35183 }
35184 _ACEOF
35185 if ac_fn_c_try_compile "$LINENO"
35186 then :
35187 gl_cv_func___va_copy=yes
35188 else case e in #(
35189 e) gl_cv_func___va_copy=no ;;
35190 esac
35191 fi
35192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
35193 esac
35194 fi
35195
35196
35197 exec 6>&9 9>&-
35198
35199
35200 if test $gl_cv_func___va_copy = yes; then
35201
35202 printf "%s\n" "#define va_copy __va_copy" >>confdefs.h
35203
35204 else
35205
35206
35207 printf "%s\n" "#define va_copy gl_va_copy" >>confdefs.h
35208
35209 fi
35210 fi
35211 fi
35212
35213
35214
35215
35216
35217
35218 case "$GL_GENERATE_STDARG_H" in
35219 false) STDARG_H='' ;;
35220 true)
35221 if test -z "$STDARG_H"; then
35222 STDARG_H="${gl_source_base_prefix}stdarg.h"
35223 fi
35224 ;;
35225 *) echo "*** GL_GENERATE_STDARG_H is not set correctly" 1>&2; exit 1 ;;
35226 esac
35227
35228
35229 if $GL_GENERATE_STDARG_H; then
35230 GL_GENERATE_STDARG_H_TRUE=
35231 GL_GENERATE_STDARG_H_FALSE='#'
35232 else
35233 GL_GENERATE_STDARG_H_TRUE='#'
35234 GL_GENERATE_STDARG_H_FALSE=
35235 fi
35236 :
35237 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
35238 GL_GENERATE_STDARG_H_TRUE='#'
35239 GL_GENERATE_STDARG_H_FALSE='#'
35240 fi
35241
35242
35243
35244
35245
35246
35247
35248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bool, true, false" >&5
35249 printf %s "checking for bool, true, false... " >&6; }
35250 if test ${gl_cv_c_bool+y}
35251 then :
35252 printf %s "(cached) " >&6
35253 else case e in #(
35254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35255 /* end confdefs.h. */
35256
35257 #if true == false
35258 #error "true == false"
35259 #endif
35260 extern bool b;
35261 bool b = true == false;
35262 _ACEOF
35263 if ac_fn_c_try_compile "$LINENO"
35264 then :
35265 gl_cv_c_bool=yes
35266 else case e in #(
35267 e) gl_cv_c_bool=no ;;
35268 esac
35269 fi
35270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
35271 esac
35272 fi
35273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_bool" >&5
35274 printf "%s\n" "$gl_cv_c_bool" >&6; }
35275 if test "$gl_cv_c_bool" = yes; then
35276
35277 printf "%s\n" "#define HAVE_C_BOOL 1" >>confdefs.h
35278
35279 fi
35280
35281
35282
35283
35284
35285
35286 if test $ac_cv_header_stdckdint_h = yes; then
35287 GL_GENERATE_STDCKDINT_H=false
35288 else
35289 GL_GENERATE_STDCKDINT_H=true
35290 fi
35291
35292
35293
35294
35295 case "$GL_GENERATE_STDCKDINT_H" in
35296 false) STDCKDINT_H='' ;;
35297 true)
35298 if test -z "$STDCKDINT_H"; then
35299 STDCKDINT_H="${gl_source_base_prefix}stdckdint.h"
35300 fi
35301 ;;
35302 *) echo "*** GL_GENERATE_STDCKDINT_H is not set correctly" 1>&2; exit 1 ;;
35303 esac
35304
35305
35306 if $GL_GENERATE_STDCKDINT_H; then
35307 GL_GENERATE_STDCKDINT_H_TRUE=
35308 GL_GENERATE_STDCKDINT_H_FALSE='#'
35309 else
35310 GL_GENERATE_STDCKDINT_H_TRUE='#'
35311 GL_GENERATE_STDCKDINT_H_FALSE=
35312 fi
35313 :
35314 if test -z "${GL_GENERATE_STDCKDINT_H_TRUE}" && test -z "${GL_GENERATE_STDCKDINT_H_FALSE}"; then
35315 GL_GENERATE_STDCKDINT_H_TRUE='#'
35316 GL_GENERATE_STDCKDINT_H_FALSE='#'
35317 fi
35318
35319
35320
35321
35322
35323
35324
35325
35326
35327
35328
35329
35330
35331
35332
35333
35334 case "$GL_GENERATE_STDDEF_H" in
35335 false) STDDEF_H='' ;;
35336 true)
35337 if test -z "$STDDEF_H"; then
35338 STDDEF_H="${gl_source_base_prefix}stddef.h"
35339 fi
35340 ;;
35341 *) echo "*** GL_GENERATE_STDDEF_H is not set correctly" 1>&2; exit 1 ;;
35342 esac
35343
35344
35345 if $GL_GENERATE_STDDEF_H; then
35346 GL_GENERATE_STDDEF_H_TRUE=
35347 GL_GENERATE_STDDEF_H_FALSE='#'
35348 else
35349 GL_GENERATE_STDDEF_H_TRUE='#'
35350 GL_GENERATE_STDDEF_H_FALSE=
35351 fi
35352 :
35353 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
35354 GL_GENERATE_STDDEF_H_TRUE='#'
35355 GL_GENERATE_STDDEF_H_FALSE='#'
35356 fi
35357
35358
35359
35360
35361
35362
35363
35364
35365
35366
35367
35368 case "$GL_GENERATE_STDINT_H" in
35369 false) STDINT_H='' ;;
35370 true)
35371 if test -z "$STDINT_H"; then
35372 STDINT_H="${gl_source_base_prefix}stdint.h"
35373 fi
35374 ;;
35375 *) echo "*** GL_GENERATE_STDINT_H is not set correctly" 1>&2; exit 1 ;;
35376 esac
35377
35378
35379 if $GL_GENERATE_STDINT_H; then
35380 GL_GENERATE_STDINT_H_TRUE=
35381 GL_GENERATE_STDINT_H_FALSE='#'
35382 else
35383 GL_GENERATE_STDINT_H_TRUE='#'
35384 GL_GENERATE_STDINT_H_FALSE=
35385 fi
35386 :
35387 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
35388 GL_GENERATE_STDINT_H_TRUE='#'
35389 GL_GENERATE_STDINT_H_FALSE='#'
35390 fi
35391
35392
35393
35394
35395
35396
35397
35398
35399
35400 case "$GL_GENERATE_LIMITS_H" in
35401 false) LIMITS_H='' ;;
35402 true)
35403 if test -z "$LIMITS_H"; then
35404 LIMITS_H="${gl_source_base_prefix}limits.h"
35405 fi
35406 ;;
35407 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
35408 esac
35409
35410
35411 if $GL_GENERATE_LIMITS_H; then
35412 GL_GENERATE_LIMITS_H_TRUE=
35413 GL_GENERATE_LIMITS_H_FALSE='#'
35414 else
35415 GL_GENERATE_LIMITS_H_TRUE='#'
35416 GL_GENERATE_LIMITS_H_FALSE=
35417 fi
35418 :
35419 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
35420 GL_GENERATE_LIMITS_H_TRUE='#'
35421 GL_GENERATE_LIMITS_H_FALSE='#'
35422 fi
35423
35424
35425
35426
35427
35428
35429
35430
35431
35432
35433
35434
35435
35436
35437 if test $REPLACE_STDIO_READ_FUNCS = 1; then
35438 GL_COND_OBJ_STDIO_READ_TRUE=
35439 GL_COND_OBJ_STDIO_READ_FALSE='#'
35440 else
35441 GL_COND_OBJ_STDIO_READ_TRUE='#'
35442 GL_COND_OBJ_STDIO_READ_FALSE=
35443 fi
35444 :
35445 if test -z "${GL_COND_OBJ_STDIO_READ_TRUE}" && test -z "${GL_COND_OBJ_STDIO_READ_FALSE}"; then
35446 GL_COND_OBJ_STDIO_READ_TRUE='#'
35447 GL_COND_OBJ_STDIO_READ_FALSE='#'
35448 fi
35449
35450
35451 if test $REPLACE_STDIO_WRITE_FUNCS = 1; then
35452 GL_COND_OBJ_STDIO_WRITE_TRUE=
35453 GL_COND_OBJ_STDIO_WRITE_FALSE='#'
35454 else
35455 GL_COND_OBJ_STDIO_WRITE_TRUE='#'
35456 GL_COND_OBJ_STDIO_WRITE_FALSE=
35457 fi
35458 :
35459 if test -z "${GL_COND_OBJ_STDIO_WRITE_TRUE}" && test -z "${GL_COND_OBJ_STDIO_WRITE_FALSE}"; then
35460 GL_COND_OBJ_STDIO_WRITE_TRUE='#'
35461 GL_COND_OBJ_STDIO_WRITE_FALSE='#'
35462 fi
35463
35464
35465
35466
35467
35468
35469
35470
35471
35472
35473 GL_GNULIB_FSCANF=1
35474
35475
35476
35477
35478
35479 printf "%s\n" "#define GNULIB_TEST_FSCANF 1" >>confdefs.h
35480
35481
35482
35483
35484
35485 printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h
35486
35487
35488
35489
35490
35491
35492
35493
35494
35495
35496
35497 GL_GNULIB_SCANF=1
35498
35499
35500
35501
35502
35503 printf "%s\n" "#define GNULIB_TEST_SCANF 1" >>confdefs.h
35504
35505
35506
35507
35508
35509 printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h
35510
35511
35512
35513
35514
35515
35516
35517
35518
35519
35520
35521 GL_GNULIB_FGETC=1
35522
35523
35524
35525
35526
35527 printf "%s\n" "#define GNULIB_TEST_FGETC 1" >>confdefs.h
35528
35529
35530
35531
35532
35533
35534
35535
35536
35537
35538
35539
35540 GL_GNULIB_GETC=1
35541
35542
35543
35544
35545
35546 printf "%s\n" "#define GNULIB_TEST_GETC 1" >>confdefs.h
35547
35548
35549
35550
35551
35552
35553
35554
35555
35556
35557
35558
35559 GL_GNULIB_GETCHAR=1
35560
35561
35562
35563
35564
35565 printf "%s\n" "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h
35566
35567
35568
35569
35570
35571
35572
35573
35574
35575
35576
35577
35578 GL_GNULIB_FGETS=1
35579
35580
35581
35582
35583
35584 printf "%s\n" "#define GNULIB_TEST_FGETS 1" >>confdefs.h
35585
35586
35587
35588
35589
35590
35591
35592
35593
35594
35595
35596
35597 GL_GNULIB_FREAD=1
35598
35599
35600
35601
35602
35603 printf "%s\n" "#define GNULIB_TEST_FREAD 1" >>confdefs.h
35604
35605
35606
35607
35608
35609
35610
35611
35612
35613
35614
35615
35616 GL_GNULIB_FPRINTF=1
35617
35618
35619
35620
35621
35622 printf "%s\n" "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h
35623
35624
35625
35626
35627
35628
35629
35630
35631
35632
35633
35634
35635 GL_GNULIB_PRINTF=1
35636
35637
35638
35639
35640
35641 printf "%s\n" "#define GNULIB_TEST_PRINTF 1" >>confdefs.h
35642
35643
35644
35645
35646
35647
35648
35649
35650
35651
35652
35653
35654 GL_GNULIB_VFPRINTF=1
35655
35656
35657
35658
35659
35660 printf "%s\n" "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h
35661
35662
35663
35664
35665
35666
35667
35668
35669
35670
35671
35672
35673 GL_GNULIB_VPRINTF=1
35674
35675
35676
35677
35678
35679 printf "%s\n" "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h
35680
35681
35682
35683
35684
35685
35686
35687
35688
35689
35690
35691
35692 GL_GNULIB_FPUTC=1
35693
35694
35695
35696
35697
35698 printf "%s\n" "#define GNULIB_TEST_FPUTC 1" >>confdefs.h
35699
35700
35701
35702
35703
35704
35705
35706
35707
35708
35709
35710
35711 GL_GNULIB_PUTC=1
35712
35713
35714
35715
35716
35717 printf "%s\n" "#define GNULIB_TEST_PUTC 1" >>confdefs.h
35718
35719
35720
35721
35722
35723
35724
35725
35726
35727
35728
35729
35730 GL_GNULIB_PUTCHAR=1
35731
35732
35733
35734
35735
35736 printf "%s\n" "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h
35737
35738
35739
35740
35741
35742
35743
35744
35745
35746
35747
35748
35749 GL_GNULIB_FPUTS=1
35750
35751
35752
35753
35754
35755 printf "%s\n" "#define GNULIB_TEST_FPUTS 1" >>confdefs.h
35756
35757
35758
35759
35760
35761
35762
35763
35764
35765
35766
35767
35768 GL_GNULIB_PUTS=1
35769
35770
35771
35772
35773
35774 printf "%s\n" "#define GNULIB_TEST_PUTS 1" >>confdefs.h
35775
35776
35777
35778
35779
35780
35781
35782
35783
35784
35785
35786
35787 GL_GNULIB_FWRITE=1
35788
35789
35790
35791
35792
35793 printf "%s\n" "#define GNULIB_TEST_FWRITE 1" >>confdefs.h
35794
35795
35796
35797
35798
35799
35800
35801
35802
35803
35804
35805
35806
35807
35808
35809 if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
35810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
35811 printf %s "checking for working strerror function... " >&6; }
35812 if test ${gl_cv_func_working_strerror+y}
35813 then :
35814 printf %s "(cached) " >&6
35815 else case e in #(
35816 e) if test "$cross_compiling" = yes
35817 then :
35818 case "$host_os" in
35819 # Guess yes on glibc systems.
35820 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
35821 # Guess yes on musl systems.
35822 *-musl* | midipix*) gl_cv_func_working_strerror="guessing yes" ;;
35823 # If we don't know, obey --enable-cross-guesses.
35824 *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
35825 esac
35826
35827 else case e in #(
35828 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35829 /* end confdefs.h. */
35830 #include <string.h>
35831
35832 int
35833 main (void)
35834 {
35835 if (!*strerror (-2)) return 1;
35836 ;
35837 return 0;
35838 }
35839 _ACEOF
35840 if ac_fn_c_try_run "$LINENO"
35841 then :
35842 gl_cv_func_working_strerror=yes
35843 else case e in #(
35844 e) gl_cv_func_working_strerror=no ;;
35845 esac
35846 fi
35847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35848 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
35849 esac
35850 fi
35851
35852 ;;
35853 esac
35854 fi
35855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
35856 printf "%s\n" "$gl_cv_func_working_strerror" >&6; }
35857 case "$gl_cv_func_working_strerror" in
35858 *yes) ;;
35859 *)
35860 REPLACE_STRERROR=1
35861 ;;
35862 esac
35863
35864 else
35865 REPLACE_STRERROR=1
35866 fi
35867
35868
35869 if test $REPLACE_STRERROR = 1; then
35870 GL_COND_OBJ_STRERROR_TRUE=
35871 GL_COND_OBJ_STRERROR_FALSE='#'
35872 else
35873 GL_COND_OBJ_STRERROR_TRUE='#'
35874 GL_COND_OBJ_STRERROR_FALSE=
35875 fi
35876 :
35877 if test -z "${GL_COND_OBJ_STRERROR_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_FALSE}"; then
35878 GL_COND_OBJ_STRERROR_TRUE='#'
35879 GL_COND_OBJ_STRERROR_FALSE='#'
35880 fi
35881
35882
35883
35884 printf "%s\n" "#define GNULIB_STRERROR 1" >>confdefs.h
35885
35886
35887
35888
35889
35890
35891
35892
35893
35894
35895
35896
35897
35898
35899
35900
35901 GL_GNULIB_STRERROR=1
35902
35903
35904
35905
35906
35907 printf "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
35908
35909
35910
35911
35912
35913
35914 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
35915 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE=
35916 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
35917 else
35918 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
35919 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE=
35920 fi
35921 :
35922 if test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_FALSE}"; then
35923 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
35924 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
35925 fi
35926
35927 if test -z "$GL_COND_OBJ_STRERROR_OVERRIDE_TRUE"; then :
35928
35929
35930
35931
35932
35933 if test $ac_cv_header_sys_socket_h != yes; then
35934 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
35935 if test "x$ac_cv_header_winsock2_h" = xyes
35936 then :
35937 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
35938
35939 fi
35940
35941 fi
35942 if test "$ac_cv_header_winsock2_h" = yes; then
35943 HAVE_WINSOCK2_H=1
35944 UNISTD_H_HAVE_WINSOCK2_H=1
35945 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
35946 else
35947 HAVE_WINSOCK2_H=0
35948 fi
35949
35950
35951
35952 fi
35953
35954
35955
35956
35957
35958
35959
35960
35961
35962
35963
35964
35965
35966
35967
35968
35969
35970
35971 if test $ac_cv_have_decl_strndup = no; then
35972 HAVE_DECL_STRNDUP=0
35973 fi
35974
35975 if test $ac_cv_func_strndup = yes; then
35976 HAVE_STRNDUP=1
35977 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
35978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
35979 printf %s "checking for working strndup... " >&6; }
35980 if test ${gl_cv_func_strndup_works+y}
35981 then :
35982 printf %s "(cached) " >&6
35983 else case e in #(
35984 e) if test "$cross_compiling" = yes
35985 then :
35986
35987 case $host_os in
35988 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
35989 *) gl_cv_func_strndup_works="guessing yes";;
35990 esac
35991
35992 else case e in #(
35993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35994 /* end confdefs.h. */
35995
35996 #include <string.h>
35997 #include <stdlib.h>
35998 int
35999 main (void)
36000 {
36001
36002 #if !HAVE_DECL_STRNDUP
36003 extern
36004 #ifdef __cplusplus
36005 "C"
36006 #endif
36007 char *strndup (const char *, size_t);
36008 #endif
36009 int result;
36010 char *s;
36011 s = strndup ("some longer string", 15);
36012 free (s);
36013 s = strndup ("shorter string", 13);
36014 result = s[13] != '\0';
36015 free (s);
36016 return result;
36017 ;
36018 return 0;
36019 }
36020 _ACEOF
36021 if ac_fn_c_try_run "$LINENO"
36022 then :
36023 gl_cv_func_strndup_works=yes
36024 else case e in #(
36025 e) gl_cv_func_strndup_works=no ;;
36026 esac
36027 fi
36028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36029 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
36030 esac
36031 fi
36032 ;;
36033 esac
36034 fi
36035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
36036 printf "%s\n" "$gl_cv_func_strndup_works" >&6; }
36037 case $gl_cv_func_strndup_works in
36038 *no) REPLACE_STRNDUP=1 ;;
36039 esac
36040 else
36041 HAVE_STRNDUP=0
36042 fi
36043
36044
36045 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
36046 GL_COND_OBJ_STRNDUP_TRUE=
36047 GL_COND_OBJ_STRNDUP_FALSE='#'
36048 else
36049 GL_COND_OBJ_STRNDUP_TRUE='#'
36050 GL_COND_OBJ_STRNDUP_FALSE=
36051 fi
36052 :
36053 if test -z "${GL_COND_OBJ_STRNDUP_TRUE}" && test -z "${GL_COND_OBJ_STRNDUP_FALSE}"; then
36054 GL_COND_OBJ_STRNDUP_TRUE='#'
36055 GL_COND_OBJ_STRNDUP_FALSE='#'
36056 fi
36057
36058
36059
36060
36061
36062
36063
36064
36065
36066
36067
36068
36069
36070
36071
36072 GL_GNULIB_STRNDUP=1
36073
36074
36075
36076
36077
36078 printf "%s\n" "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
36079
36080
36081
36082
36083
36084
36085
36086
36087
36088 if test $ac_cv_have_decl_strnlen = no; then
36089 HAVE_DECL_STRNLEN=0
36090 else
36091
36092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
36093 printf %s "checking for working strnlen... " >&6; }
36094 if test ${ac_cv_func_strnlen_working+y}
36095 then :
36096 printf %s "(cached) " >&6
36097 else case e in #(
36098 e) if test "$cross_compiling" = yes
36099 then :
36100 # Guess no on AIX systems, yes otherwise.
36101 case "$host_os" in
36102 aix*) ac_cv_func_strnlen_working=no;;
36103 *) ac_cv_func_strnlen_working=yes;;
36104 esac
36105 else case e in #(
36106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36107 /* end confdefs.h. */
36108 $ac_includes_default
36109 int
36110 main (void)
36111 {
36112
36113 #define S "foobar"
36114 #define S_LEN (sizeof S - 1)
36115
36116 /* At least one implementation is buggy: that of AIX 4.3 would
36117 give strnlen (S, 1) == 3. */
36118
36119 int i;
36120 for (i = 0; i < S_LEN + 1; ++i)
36121 {
36122 int expected = i <= S_LEN ? i : S_LEN;
36123 if (strnlen (S, i) != expected)
36124 return 1;
36125 }
36126 return 0;
36127
36128 ;
36129 return 0;
36130 }
36131 _ACEOF
36132 if ac_fn_c_try_run "$LINENO"
36133 then :
36134 ac_cv_func_strnlen_working=yes
36135 else case e in #(
36136 e) ac_cv_func_strnlen_working=no ;;
36137 esac
36138 fi
36139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36140 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
36141 esac
36142 fi
36143 ;;
36144 esac
36145 fi
36146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
36147 printf "%s\n" "$ac_cv_func_strnlen_working" >&6; }
36148 test $ac_cv_func_strnlen_working = no && :
36149
36150
36151 if test $ac_cv_func_strnlen_working = no; then
36152 REPLACE_STRNLEN=1
36153 fi
36154 fi
36155
36156
36157 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
36158 GL_COND_OBJ_STRNLEN_TRUE=
36159 GL_COND_OBJ_STRNLEN_FALSE='#'
36160 else
36161 GL_COND_OBJ_STRNLEN_TRUE='#'
36162 GL_COND_OBJ_STRNLEN_FALSE=
36163 fi
36164 :
36165 if test -z "${GL_COND_OBJ_STRNLEN_TRUE}" && test -z "${GL_COND_OBJ_STRNLEN_FALSE}"; then
36166 GL_COND_OBJ_STRNLEN_TRUE='#'
36167 GL_COND_OBJ_STRNLEN_FALSE='#'
36168 fi
36169
36170 if test -z "$GL_COND_OBJ_STRNLEN_TRUE"; then :
36171
36172 :
36173
36174 fi
36175
36176
36177
36178
36179
36180
36181
36182
36183
36184
36185
36186
36187
36188
36189 GL_GNULIB_STRNLEN=1
36190
36191
36192
36193
36194
36195 printf "%s\n" "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
36196
36197
36198
36199
36200
36201
36202
36203
36204
36205 if test $ac_cv_have_decl_strsignal = no; then
36206 HAVE_DECL_STRSIGNAL=0
36207 fi
36208
36209 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
36210 if test "x$ac_cv_func_strsignal" = xyes
36211 then :
36212 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
36213
36214 fi
36215
36216 if test $ac_cv_func_strsignal = yes; then
36217 HAVE_STRSIGNAL=1
36218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
36219 printf %s "checking whether strsignal always returns a string... " >&6; }
36220 if test ${gl_cv_func_working_strsignal+y}
36221 then :
36222 printf %s "(cached) " >&6
36223 else case e in #(
36224 e) if test "$cross_compiling" = yes
36225 then :
36226 case "$host_os" in
36227 solaris* | aix*) gl_cv_func_working_strsignal=no;;
36228 *) gl_cv_func_working_strsignal="guessing yes";;
36229 esac
36230 else case e in #(
36231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36232 /* end confdefs.h. */
36233 #include <string.h>
36234 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
36235
36236 int
36237 main (void)
36238 {
36239 int result = 0;
36240 char *s = strsignal (-1);
36241 if (s == (char *) 0)
36242 result |= 1;
36243 if (s == (char *) -1)
36244 result |= 2;
36245 return result;
36246
36247 ;
36248 return 0;
36249 }
36250 _ACEOF
36251 if ac_fn_c_try_run "$LINENO"
36252 then :
36253 gl_cv_func_working_strsignal=yes
36254 else case e in #(
36255 e) gl_cv_func_working_strsignal=no ;;
36256 esac
36257 fi
36258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36259 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
36260 esac
36261 fi
36262 ;;
36263 esac
36264 fi
36265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
36266 printf "%s\n" "$gl_cv_func_working_strsignal" >&6; }
36267 if test "$gl_cv_func_working_strsignal" = no; then
36268 REPLACE_STRSIGNAL=1
36269 fi
36270 else
36271 HAVE_STRSIGNAL=0
36272 fi
36273
36274
36275 if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
36276 GL_COND_OBJ_STRSIGNAL_TRUE=
36277 GL_COND_OBJ_STRSIGNAL_FALSE='#'
36278 else
36279 GL_COND_OBJ_STRSIGNAL_TRUE='#'
36280 GL_COND_OBJ_STRSIGNAL_FALSE=
36281 fi
36282 :
36283 if test -z "${GL_COND_OBJ_STRSIGNAL_TRUE}" && test -z "${GL_COND_OBJ_STRSIGNAL_FALSE}"; then
36284 GL_COND_OBJ_STRSIGNAL_TRUE='#'
36285 GL_COND_OBJ_STRSIGNAL_FALSE='#'
36286 fi
36287
36288 if test -z "$GL_COND_OBJ_STRSIGNAL_TRUE"; then :
36289
36290
36291
36292 ac_fn_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
36293 " "$ac_c_undeclared_builtin_options" "CFLAGS"
36294 if test "x$ac_cv_have_decl_sys_siglist" = xyes
36295 then :
36296 ac_have_decl=1
36297 else case e in #(
36298 e) ac_have_decl=0 ;;
36299 esac
36300 fi
36301 printf "%s\n" "#define HAVE_DECL_SYS_SIGLIST $ac_have_decl" >>confdefs.h
36302
36303 ac_fn_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
36304 " "$ac_c_undeclared_builtin_options" "CFLAGS"
36305 if test "x$ac_cv_have_decl__sys_siglist" = xyes
36306 then :
36307 ac_have_decl=1
36308 else case e in #(
36309 e) ac_have_decl=0 ;;
36310 esac
36311 fi
36312 printf "%s\n" "#define HAVE_DECL__SYS_SIGLIST $ac_have_decl" >>confdefs.h
36313
36314
36315
36316 fi
36317
36318
36319
36320
36321
36322
36323
36324
36325
36326
36327
36328
36329
36330
36331 GL_GNULIB_STRSIGNAL=1
36332
36333
36334
36335
36336
36337 printf "%s\n" "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
36338
36339
36340
36341
36342
36343
36344
36345
36346
36347
36348
36349
36350
36351
36352
36353
36354
36355
36356
36357
36358
36359
36360
36361
36362
36363
36364
36365
36366
36367
36368
36369
36370
36371
36372
36373
36374
36375
36376
36377
36378
36379
36380
36381
36382
36383
36384
36385 :
36386
36387
36388
36389
36390 printf "%s\n" "#define GNULIB_TEMPNAME 1" >>confdefs.h
36391
36392
36393
36394
36395
36396
36397
36398
36399
36400
36401
36402
36403
36404
36405
36406
36407
36408
36409
36410
36411
36412
36413
36414 if test $ac_cv_have_decl_unsetenv = no; then
36415 HAVE_DECL_UNSETENV=0
36416 fi
36417 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
36418 if test "x$ac_cv_func_unsetenv" = xyes
36419 then :
36420 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
36421
36422 fi
36423
36424 if test $ac_cv_func_unsetenv = no; then
36425 HAVE_UNSETENV=0
36426 else
36427 HAVE_UNSETENV=1
36428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
36429 printf %s "checking for unsetenv() return type... " >&6; }
36430 if test ${gt_cv_func_unsetenv_ret+y}
36431 then :
36432 printf %s "(cached) " >&6
36433 else case e in #(
36434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36435 /* end confdefs.h. */
36436
36437 #undef _BSD
36438 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
36439 #include <stdlib.h>
36440 extern
36441 #ifdef __cplusplus
36442 "C"
36443 #endif
36444 int unsetenv (const char *name);
36445
36446 int
36447 main (void)
36448 {
36449
36450 ;
36451 return 0;
36452 }
36453 _ACEOF
36454 if ac_fn_c_try_compile "$LINENO"
36455 then :
36456 gt_cv_func_unsetenv_ret='int'
36457 else case e in #(
36458 e) gt_cv_func_unsetenv_ret='void' ;;
36459 esac
36460 fi
36461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
36462 esac
36463 fi
36464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
36465 printf "%s\n" "$gt_cv_func_unsetenv_ret" >&6; }
36466 if test $gt_cv_func_unsetenv_ret = 'void'; then
36467
36468 printf "%s\n" "#define VOID_UNSETENV 1" >>confdefs.h
36469
36470 REPLACE_UNSETENV=1
36471 fi
36472
36473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
36474 printf %s "checking whether unsetenv obeys POSIX... " >&6; }
36475 if test ${gl_cv_func_unsetenv_works+y}
36476 then :
36477 printf %s "(cached) " >&6
36478 else case e in #(
36479 e) if test "$cross_compiling" = yes
36480 then :
36481 case "$host_os" in
36482 # Guess yes on glibc systems.
36483 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
36484 # If we don't know, obey --enable-cross-guesses.
36485 *) gl_cv_func_unsetenv_works="$gl_cross_guess_normal" ;;
36486 esac
36487
36488 else case e in #(
36489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36490 /* end confdefs.h. */
36491
36492 #include <stdlib.h>
36493 #include <errno.h>
36494 extern char **environ;
36495
36496
36497 $gl_mda_defines
36498
36499 int
36500 main (void)
36501 {
36502
36503 char entry1[] = "a=1";
36504 char entry2[] = "b=2";
36505 char *env[] = { entry1, entry2, NULL };
36506 if (putenv ((char *) "a=1")) return 1;
36507 if (putenv (entry2)) return 2;
36508 entry2[0] = 'a';
36509 unsetenv ("a");
36510 if (getenv ("a")) return 3;
36511 if (!unsetenv ("") || errno != EINVAL) return 4;
36512 entry2[0] = 'b';
36513 environ = env;
36514 if (!getenv ("a")) return 5;
36515 entry2[0] = 'a';
36516 unsetenv ("a");
36517 if (getenv ("a")) return 6;
36518
36519 ;
36520 return 0;
36521 }
36522 _ACEOF
36523 if ac_fn_c_try_run "$LINENO"
36524 then :
36525 gl_cv_func_unsetenv_works=yes
36526 else case e in #(
36527 e) gl_cv_func_unsetenv_works=no ;;
36528 esac
36529 fi
36530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36531 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
36532 esac
36533 fi
36534
36535 ;;
36536 esac
36537 fi
36538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
36539 printf "%s\n" "$gl_cv_func_unsetenv_works" >&6; }
36540 case "$gl_cv_func_unsetenv_works" in
36541 *yes) ;;
36542 *)
36543 REPLACE_UNSETENV=1
36544 ;;
36545 esac
36546 fi
36547
36548
36549 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
36550 GL_COND_OBJ_UNSETENV_TRUE=
36551 GL_COND_OBJ_UNSETENV_FALSE='#'
36552 else
36553 GL_COND_OBJ_UNSETENV_TRUE='#'
36554 GL_COND_OBJ_UNSETENV_FALSE=
36555 fi
36556 :
36557 if test -z "${GL_COND_OBJ_UNSETENV_TRUE}" && test -z "${GL_COND_OBJ_UNSETENV_FALSE}"; then
36558 GL_COND_OBJ_UNSETENV_TRUE='#'
36559 GL_COND_OBJ_UNSETENV_FALSE='#'
36560 fi
36561
36562 if test -z "$GL_COND_OBJ_UNSETENV_TRUE"; then :
36563
36564
36565
36566
36567
36568
36569
36570 fi
36571
36572
36573
36574
36575
36576
36577
36578
36579
36580 GL_GNULIB_UNSETENV=1
36581
36582
36583
36584
36585
36586 printf "%s\n" "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
36587
36588
36589
36590
36591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
36592 printf %s "checking for variable-length arrays... " >&6; }
36593 if test ${ac_cv_c_vararrays+y}
36594 then :
36595 printf %s "(cached) " >&6
36596 else case e in #(
36597 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36598 /* end confdefs.h. */
36599 #ifndef __STDC_NO_VLA__
36600 #error __STDC_NO_VLA__ not defined
36601 #endif
36602
36603 _ACEOF
36604 if ac_fn_c_try_compile "$LINENO"
36605 then :
36606 ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'
36607 else case e in #(
36608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36609 /* end confdefs.h. */
36610 /* Test for VLA support. This test is partly inspired
36611 from examples in the C standard. Use at least two VLA
36612 functions to detect the GCC 3.4.3 bug described in:
36613 https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html
36614 */
36615 #ifdef __STDC_NO_VLA__
36616 syntax error;
36617 #else
36618 extern int n;
36619 int B[100];
36620 int fvla (int m, int C[m][m]);
36621
36622 int
36623 simple (int count, int all[static count])
36624 {
36625 return all[count - 1];
36626 }
36627
36628 int
36629 fvla (int m, int C[m][m])
36630 {
36631 typedef int VLA[m][m];
36632 VLA x;
36633 int D[m];
36634 static int (*q)[m] = &B;
36635 int (*s)[n] = q;
36636 return C && &x[0][0] == &D[0] && &D[0] == s[0];
36637 }
36638 #endif
36639
36640 int
36641 main (void)
36642 {
36643
36644 ;
36645 return 0;
36646 }
36647 _ACEOF
36648 if ac_fn_c_try_compile "$LINENO"
36649 then :
36650 ac_cv_c_vararrays=yes
36651 else case e in #(
36652 e) ac_cv_c_vararrays=no ;;
36653 esac
36654 fi
36655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
36656 esac
36657 fi
36658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
36659 esac
36660 fi
36661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
36662 printf "%s\n" "$ac_cv_c_vararrays" >&6; }
36663 if test "$ac_cv_c_vararrays" = yes; then
36664
36665 printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h
36666
36667 elif test "$ac_cv_c_vararrays" = no; then
36668
36669 printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h
36670
36671 fi
36672
36673
36674
36675
36676 if test $ac_cv_func_vasnprintf = yes; then
36677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether vasnprintf works" >&5
36678 printf %s "checking whether vasnprintf works... " >&6; }
36679 if test ${gl_cv_func_vasnprintf_works+y}
36680 then :
36681 printf %s "(cached) " >&6
36682 else case e in #(
36683 e) if test "$cross_compiling" = yes
36684 then :
36685 case "$host_os" in
36686 # Guess no on Cygwin.
36687 cygwin*) gl_cv_func_vasnprintf_works="guessing no";;
36688 # If we don't know, obey --enable-cross-guesses.
36689 *) gl_cv_func_vasnprintf_works="$gl_cross_guess_normal";;
36690 esac
36691
36692 else case e in #(
36693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36694 /* end confdefs.h. */
36695 #include <stdio.h>
36696
36697
36698 _ACEOF
36699 if ac_fn_c_try_run "$LINENO"
36700 then :
36701 gl_cv_func_vasnprintf_works=yes
36702 else case e in #(
36703 e) gl_cv_func_vasnprintf_works=no ;;
36704 esac
36705 fi
36706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36707 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
36708 esac
36709 fi
36710
36711 ;;
36712 esac
36713 fi
36714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_vasnprintf_works" >&5
36715 printf "%s\n" "$gl_cv_func_vasnprintf_works" >&6; }
36716 fi
36717 if test $ac_cv_func_vasnprintf != yes \
36718 || case "$gl_cv_func_vasnprintf_works" in
36719 *yes) false;;
36720 *) true;;
36721 esac
36722 then
36723
36724
36725
36726
36727
36728
36729
36730
36731
36732
36733 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
36734
36735
36736
36737
36738
36739
36740
36741
36742
36743 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
36744
36745
36746
36747
36748
36749
36750
36751
36752
36753 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
36754
36755
36756
36757
36758
36759
36760
36761
36762
36763 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
36764
36765 if test $ac_cv_func_vasnprintf = yes; then
36766
36767 printf "%s\n" "#define REPLACE_VASNPRINTF 1" >>confdefs.h
36768
36769 fi
36770
36771
36772
36773
36774
36775
36776
36777 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
36778 if test "x$ac_cv_type_ptrdiff_t" = xyes
36779 then :
36780
36781 else case e in #(
36782 e)
36783 printf "%s\n" "#define ptrdiff_t long" >>confdefs.h
36784
36785 ;;
36786 esac
36787 fi
36788
36789
36790
36791
36792
36793
36794
36795 fi
36796
36797
36798
36799
36800
36801
36802
36803
36804
36805
36806 GL_GNULIB_VASZPRINTF=1
36807
36808
36809
36810
36811
36812 printf "%s\n" "#define GNULIB_TEST_VASZPRINTF 1" >>confdefs.h
36813
36814
36815
36816
36817
36818
36819
36820
36821
36822
36823
36824
36825
36826
36827 GL_GNULIB_VSNZPRINTF=1
36828
36829
36830
36831
36832
36833 printf "%s\n" "#define GNULIB_TEST_VSNZPRINTF 1" >>confdefs.h
36834
36835
36836
36837
36838
36839 HAVE_WAITPID=1
36840 case $host_os in
36841 mingw* | windows*) HAVE_WAITPID=0 ;;
36842 esac
36843
36844
36845 if test $HAVE_WAITPID = 0; then
36846 GL_COND_OBJ_WAITPID_TRUE=
36847 GL_COND_OBJ_WAITPID_FALSE='#'
36848 else
36849 GL_COND_OBJ_WAITPID_TRUE='#'
36850 GL_COND_OBJ_WAITPID_FALSE=
36851 fi
36852 :
36853 if test -z "${GL_COND_OBJ_WAITPID_TRUE}" && test -z "${GL_COND_OBJ_WAITPID_FALSE}"; then
36854 GL_COND_OBJ_WAITPID_TRUE='#'
36855 GL_COND_OBJ_WAITPID_FALSE='#'
36856 fi
36857
36858
36859
36860
36861
36862
36863
36864
36865
36866
36867 GL_GNULIB_WAITPID=1
36868
36869
36870
36871
36872
36873 printf "%s\n" "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
36874
36875
36876
36877
36878
36879
36880
36881
36882
36883
36884
36885
36886
36887
36888
36889
36890
36891 if case "$host_os" in mingw* | windows*) true;; *) false;; esac; then
36892 GL_COND_OBJ_WINDOWS_MUTEX_TRUE=
36893 GL_COND_OBJ_WINDOWS_MUTEX_FALSE='#'
36894 else
36895 GL_COND_OBJ_WINDOWS_MUTEX_TRUE='#'
36896 GL_COND_OBJ_WINDOWS_MUTEX_FALSE=
36897 fi
36898 :
36899 if test -z "${GL_COND_OBJ_WINDOWS_MUTEX_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_MUTEX_FALSE}"; then
36900 GL_COND_OBJ_WINDOWS_MUTEX_TRUE='#'
36901 GL_COND_OBJ_WINDOWS_MUTEX_FALSE='#'
36902 fi
36903
36904
36905
36906 if case "$host_os" in mingw* | windows*) true;; *) false;; esac; then
36907 GL_COND_OBJ_WINDOWS_ONCE_TRUE=
36908 GL_COND_OBJ_WINDOWS_ONCE_FALSE='#'
36909 else
36910 GL_COND_OBJ_WINDOWS_ONCE_TRUE='#'
36911 GL_COND_OBJ_WINDOWS_ONCE_FALSE=
36912 fi
36913 :
36914 if test -z "${GL_COND_OBJ_WINDOWS_ONCE_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_ONCE_FALSE}"; then
36915 GL_COND_OBJ_WINDOWS_ONCE_TRUE='#'
36916 GL_COND_OBJ_WINDOWS_ONCE_FALSE='#'
36917 fi
36918
36919
36920
36921 if case "$host_os" in mingw* | windows*) true;; *) false;; esac; then
36922 GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE=
36923 GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE='#'
36924 else
36925 GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE='#'
36926 GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE=
36927 fi
36928 :
36929 if test -z "${GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE}"; then
36930 GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE='#'
36931 GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE='#'
36932 fi
36933
36934
36935
36936 if case "$host_os" in mingw* | windows*) true;; *) false;; esac; then
36937 GL_COND_OBJ_WINDOWS_RWLOCK_TRUE=
36938 GL_COND_OBJ_WINDOWS_RWLOCK_FALSE='#'
36939 else
36940 GL_COND_OBJ_WINDOWS_RWLOCK_TRUE='#'
36941 GL_COND_OBJ_WINDOWS_RWLOCK_FALSE=
36942 fi
36943 :
36944 if test -z "${GL_COND_OBJ_WINDOWS_RWLOCK_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_RWLOCK_FALSE}"; then
36945 GL_COND_OBJ_WINDOWS_RWLOCK_TRUE='#'
36946 GL_COND_OBJ_WINDOWS_RWLOCK_FALSE='#'
36947 fi
36948
36949
36950
36951 if case "$host_os" in mingw* | windows*) true;; *) false;; esac; then
36952 GL_COND_OBJ_WINDOWS_TLS_TRUE=
36953 GL_COND_OBJ_WINDOWS_TLS_FALSE='#'
36954 else
36955 GL_COND_OBJ_WINDOWS_TLS_TRUE='#'
36956 GL_COND_OBJ_WINDOWS_TLS_FALSE=
36957 fi
36958 :
36959 if test -z "${GL_COND_OBJ_WINDOWS_TLS_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_TLS_FALSE}"; then
36960 GL_COND_OBJ_WINDOWS_TLS_TRUE='#'
36961 GL_COND_OBJ_WINDOWS_TLS_FALSE='#'
36962 fi
36963
36964
36965
36966
36967
36968 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
36969 REPLACE_WRITE=1
36970 fi
36971
36972
36973
36974
36975
36976 if test $REPLACE_WRITE = 1; then
36977 GL_COND_OBJ_WRITE_TRUE=
36978 GL_COND_OBJ_WRITE_FALSE='#'
36979 else
36980 GL_COND_OBJ_WRITE_TRUE='#'
36981 GL_COND_OBJ_WRITE_FALSE=
36982 fi
36983 :
36984 if test -z "${GL_COND_OBJ_WRITE_TRUE}" && test -z "${GL_COND_OBJ_WRITE_FALSE}"; then
36985 GL_COND_OBJ_WRITE_TRUE='#'
36986 GL_COND_OBJ_WRITE_FALSE='#'
36987 fi
36988
36989 if test -z "$GL_COND_OBJ_WRITE_TRUE"; then :
36990
36991 :
36992
36993 fi
36994
36995
36996
36997
36998
36999
37000
37001
37002
37003 GL_GNULIB_WRITE=1
37004
37005
37006
37007
37008
37009 printf "%s\n" "#define GNULIB_TEST_WRITE 1" >>confdefs.h
37010
37011
37012
37013 :
37014
37015
37016 printf "%s\n" "#define GNULIB_XALLOC 1" >>confdefs.h
37017
37018
37019
37020
37021 printf "%s\n" "#define GNULIB_XALLOC_DIE 1" >>confdefs.h
37022
37023
37024
37025
37026 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
37027 if test "x$ac_cv_header_stdint_h" = xyes
37028 then :
37029 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
37030
37031 fi
37032
37033
37034
37035
37036 :
37037
37038
37039
37040
37041
37042
37043 # End of code from modules
37044
37045
37046
37047
37048
37049
37050
37051
37052
37053
37054
37055 gltests_libdeps=
37056 gltests_ltlibdeps=
37057
37058
37059
37060
37061
37062
37063
37064
37065
37066
37067
37068
37069 gl_source_base='tests'
37070 gl_source_base_prefix=
37071 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
37072
37073 gl_module_indicator_condition=$gltests_WITNESS
37074
37075
37076
37077
37078
37079
37080
37081
37082
37083
37084
37085
37086
37087 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
37088 if test "x$ac_cv_header_fcntl_h" = xyes
37089 then :
37090 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
37091
37092 fi
37093
37094 ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
37095 if test "x$ac_cv_func_clearenv" = xyes
37096 then :
37097 printf "%s\n" "#define HAVE_CLEARENV 1" >>confdefs.h
37098
37099 fi
37100
37101
37102 # Checks for structures and compiler characteristics.
37103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
37104 printf %s "checking for an ANSI C-conforming const... " >&6; }
37105 if test ${ac_cv_c_const+y}
37106 then :
37107 printf %s "(cached) " >&6
37108 else case e in #(
37109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37110 /* end confdefs.h. */
37111
37112 int
37113 main (void)
37114 {
37115
37116 #ifndef __cplusplus
37117 /* Ultrix mips cc rejects this sort of thing. */
37118 typedef int charset[2];
37119 const charset cs = { 0, 0 };
37120 /* SunOS 4.1.1 cc rejects this. */
37121 char const *const *pcpcc;
37122 char **ppc;
37123 /* NEC SVR4.0.2 mips cc rejects this. */
37124 struct point {int x, y;};
37125 static struct point const zero = {0,0};
37126 /* IBM XL C 1.02.0.0 rejects this.
37127 It does not let you subtract one const X* pointer from another in
37128 an arm of an if-expression whose if-part is not a constant
37129 expression */
37130 const char *g = "string";
37131 pcpcc = &g + (g ? g-g : 0);
37132 /* HPUX 7.0 cc rejects these. */
37133 ++pcpcc;
37134 ppc = (char**) pcpcc;
37135 pcpcc = (char const *const *) ppc;
37136 { /* SCO 3.2v4 cc rejects this sort of thing. */
37137 char tx;
37138 char *t = &tx;
37139 char const *s = 0 ? (char *) 0 : (char const *) 0;
37140
37141 *t++ = 0;
37142 if (s) return 0;
37143 }
37144 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
37145 int x[] = {25, 17};
37146 const int *foo = &x[0];
37147 ++foo;
37148 }
37149 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
37150 typedef const int *iptr;
37151 iptr p = 0;
37152 ++p;
37153 }
37154 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
37155 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
37156 struct s { int j; const int *ap[3]; } bx;
37157 struct s *b = &bx; b->j = 5;
37158 }
37159 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
37160 const int foo = 10;
37161 if (!foo) return 0;
37162 }
37163 return !cs[0] && !zero.x;
37164 #endif
37165
37166 ;
37167 return 0;
37168 }
37169 _ACEOF
37170 if ac_fn_c_try_compile "$LINENO"
37171 then :
37172 ac_cv_c_const=yes
37173 else case e in #(
37174 e) ac_cv_c_const=no ;;
37175 esac
37176 fi
37177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
37178 esac
37179 fi
37180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
37181 printf "%s\n" "$ac_cv_c_const" >&6; }
37182 if test $ac_cv_c_const = no; then
37183
37184 printf "%s\n" "#define const /**/" >>confdefs.h
37185
37186 fi
37187
37188
37189 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
37190 "
37191 if test "x$ac_cv_type_pid_t" = xyes
37192 then :
37193
37194 else case e in #(
37195 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37196 /* end confdefs.h. */
37197
37198 #if defined _WIN64 && !defined __CYGWIN__
37199 LLP64
37200 #endif
37201
37202 int
37203 main (void)
37204 {
37205
37206 ;
37207 return 0;
37208 }
37209
37210 _ACEOF
37211 if ac_fn_c_try_compile "$LINENO"
37212 then :
37213 ac_pid_type='int'
37214 else case e in #(
37215 e) ac_pid_type='__int64' ;;
37216 esac
37217 fi
37218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37219
37220 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
37221
37222 ;;
37223 esac
37224 fi
37225
37226
37227 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
37228 if test "x$ac_cv_type_size_t" = xyes
37229 then :
37230
37231 else case e in #(
37232 e)
37233 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
37234 ;;
37235 esac
37236 fi
37237
37238
37239 # We must have fork(2) support.
37240
37241
37242
37243
37244
37245 if test "x$ac_cv_func_fork" = xyes; then
37246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
37247 printf %s "checking for working fork... " >&6; }
37248 if test ${ac_cv_func_fork_works+y}
37249 then :
37250 printf %s "(cached) " >&6
37251 else case e in #(
37252 e) if test "$cross_compiling" = yes
37253 then :
37254 ac_cv_func_fork_works=cross
37255 else case e in #(
37256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37257 /* end confdefs.h. */
37258 $ac_includes_default
37259 int
37260 main (void)
37261 {
37262
37263 /* By R. Kuhlmann. */
37264 return fork () < 0;
37265
37266 ;
37267 return 0;
37268 }
37269 _ACEOF
37270 if ac_fn_c_try_run "$LINENO"
37271 then :
37272 ac_cv_func_fork_works=yes
37273 else case e in #(
37274 e) ac_cv_func_fork_works=no ;;
37275 esac
37276 fi
37277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37278 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
37279 esac
37280 fi
37281 ;;
37282 esac
37283 fi
37284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
37285 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
37286
37287 else
37288 ac_cv_func_fork_works=$ac_cv_func_fork
37289 fi
37290 if test "x$ac_cv_func_fork_works" = xcross; then
37291 case $host in
37292 *-*-amigaos* | *-*-msdosdjgpp*)
37293 # Override, as these systems have only a dummy fork() stub
37294 ac_cv_func_fork_works=no
37295 ;;
37296 *)
37297 ac_cv_func_fork_works=yes
37298 ;;
37299 esac
37300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
37301 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
37302 fi
37303 ac_cv_func_vfork_works=$ac_cv_func_vfork
37304 if test "x$ac_cv_func_vfork" = xyes; then
37305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
37306 printf %s "checking for working vfork... " >&6; }
37307 if test ${ac_cv_func_vfork_works+y}
37308 then :
37309 printf %s "(cached) " >&6
37310 else case e in #(
37311 e) if test "$cross_compiling" = yes
37312 then :
37313 ac_cv_func_vfork_works=cross
37314 else case e in #(
37315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37316 /* end confdefs.h. */
37317 /* Thanks to Paul Eggert for this test. */
37318 $ac_includes_default
37319 #include <signal.h>
37320 #include <sys/wait.h>
37321 #ifdef HAVE_VFORK_H
37322 # include <vfork.h>
37323 #endif
37324
37325 static void
37326 do_nothing (int sig)
37327 {
37328 (void) sig;
37329 }
37330
37331 /* On some sparc systems, changes by the child to local and incoming
37332 argument registers are propagated back to the parent. The compiler
37333 is told about this with #include <vfork.h>, but some compilers
37334 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
37335 static variable whose address is put into a register that is
37336 clobbered by the vfork. */
37337 static void
37338 sparc_address_test (int arg)
37339 {
37340 static pid_t child;
37341 if (!child) {
37342 child = vfork ();
37343 if (child < 0) {
37344 perror ("vfork");
37345 _exit(2);
37346 }
37347 if (!child) {
37348 arg = getpid();
37349 write(-1, "", 0);
37350 _exit (arg);
37351 }
37352 }
37353 }
37354
37355 int
37356 main (void)
37357 {
37358 pid_t parent = getpid ();
37359 pid_t child;
37360
37361 sparc_address_test (0);
37362
37363 /* On Solaris 2.4, changes by the child to the signal handler
37364 also munge signal handlers in the parent. To detect this,
37365 start by putting the parent's handler in a known state. */
37366 signal (SIGTERM, SIG_DFL);
37367
37368 child = vfork ();
37369
37370 if (child == 0) {
37371 /* Here is another test for sparc vfork register problems. This
37372 test uses lots of local variables, at least as many local
37373 variables as main has allocated so far including compiler
37374 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
37375 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
37376 reuse the register of parent for one of the local variables,
37377 since it will think that parent can't possibly be used any more
37378 in this routine. Assigning to the local variable will thus
37379 munge parent in the parent process. */
37380 pid_t
37381 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
37382 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
37383 /* Convince the compiler that p..p7 are live; otherwise, it might
37384 use the same hardware register for all 8 local variables. */
37385 if (p != p1 || p != p2 || p != p3 || p != p4
37386 || p != p5 || p != p6 || p != p7)
37387 _exit(1);
37388
37389 /* Alter the child's signal handler. */
37390 if (signal (SIGTERM, do_nothing) != SIG_DFL)
37391 _exit(1);
37392
37393 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
37394 from child file descriptors. If the child closes a descriptor
37395 before it execs or exits, this munges the parent's descriptor
37396 as well. Test for this by closing stdout in the child. */
37397 _exit(close(fileno(stdout)) != 0);
37398 } else {
37399 int status;
37400 struct stat st;
37401
37402 while (wait(&status) != child)
37403 ;
37404 return (
37405 /* Was there some problem with vforking? */
37406 child < 0
37407
37408 /* Did the child munge the parent's signal handler? */
37409 || signal (SIGTERM, SIG_DFL) != SIG_DFL
37410
37411 /* Did the child fail? (This shouldn't happen.) */
37412 || status
37413
37414 /* Did the vfork/compiler bug occur? */
37415 || parent != getpid()
37416
37417 /* Did the file descriptor bug occur? */
37418 || fstat(fileno(stdout), &st) != 0
37419 );
37420 }
37421 }
37422 _ACEOF
37423 if ac_fn_c_try_run "$LINENO"
37424 then :
37425 ac_cv_func_vfork_works=yes
37426 else case e in #(
37427 e) ac_cv_func_vfork_works=no ;;
37428 esac
37429 fi
37430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37431 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
37432 esac
37433 fi
37434 ;;
37435 esac
37436 fi
37437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
37438 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
37439
37440 fi;
37441 if test "x$ac_cv_func_fork_works" = xcross; then
37442 ac_cv_func_vfork_works=$ac_cv_func_vfork
37443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
37444 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
37445 fi
37446
37447 if test "x$ac_cv_func_vfork_works" = xyes; then
37448
37449 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
37450
37451 else
37452
37453 printf "%s\n" "#define vfork fork" >>confdefs.h
37454
37455 fi
37456 if test "x$ac_cv_func_fork_works" = xyes; then
37457
37458 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
37459
37460 fi
37461
37462 if test "x$ac_cv_func_fork_works" != xyes; then
37463 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
37464 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
37465 as_fn_error $? "cannot use libpipeline on systems without fork
37466 See 'config.log' for more details" "$LINENO" 5; }
37467 fi
37468
37469 # Check for socketpair(2) as fast replacement for pipe(2).
37470 # Check whether --enable-socketpair-pipe was given.
37471 if test ${enable_socketpair_pipe+y}
37472 then :
37473 enableval=$enable_socketpair_pipe; if test "$enableval" = "yes"
37474 then
37475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
37476 printf %s "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
37477 if test ${pipeline_cv_socketpair_pipe+y}
37478 then :
37479 printf %s "(cached) " >&6
37480 else case e in #(
37481 e)
37482 if test "$cross_compiling" = yes
37483 then :
37484 pipeline_cv_socketpair_pipe=no
37485 else case e in #(
37486 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37487 /* end confdefs.h. */
37488
37489 #include <netdb.h>
37490 #include <netinet/in.h>
37491 #include <signal.h>
37492 #include <sys/socket.h>
37493 #include <sys/types.h>
37494 #include <sys/wait.h>
37495 #include <unistd.h>
37496 #ifndef SHUT_RD
37497 # define SHUT_RD 0
37498 #endif
37499 #ifndef SHUT_WR
37500 # define SHUT_WR 1
37501 #endif
37502
37503 static void sigpipe(int sig)
37504 {
37505 _exit(0);
37506 }
37507
37508 int main(void)
37509 {
37510 const char test[] = "May use socketpair(2) instead of pipe(2)\n";
37511 char buf[256];
37512 int sfd[2], s;
37513 pid_t pid;
37514 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
37515 return 1;
37516 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
37517 return 1;
37518 if ((pid = fork()) < 0)
37519 return 1;
37520 if (pid) {
37521 close(sfd[1]);
37522 waitpid(-1,&s,0);
37523 if (read(sfd[0],buf,sizeof(buf)) < 0)
37524 return 1;
37525 } else {
37526 close(sfd[0]);
37527 write(sfd[1],test,sizeof(test) - 1);
37528 return 0;
37529 }
37530 close(sfd[0]);
37531 signal(SIGPIPE, sigpipe);
37532 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
37533 return 1;
37534 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
37535 return 1;
37536 close(sfd[0]);
37537 write(sfd[1],test,sizeof(test) - 1);
37538 return 1;
37539 }
37540 _ACEOF
37541 if ac_fn_c_try_run "$LINENO"
37542 then :
37543 pipeline_cv_socketpair_pipe=yes
37544 else case e in #(
37545 e) pipeline_cv_socketpair_pipe=no ;;
37546 esac
37547 fi
37548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37549 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
37550 esac
37551 fi
37552
37553 ;;
37554 esac
37555 fi
37556
37557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
37558 printf "%s\n" "$pipeline_cv_socketpair_pipe" >&6; }
37559 if test "$pipeline_cv_socketpair_pipe" = yes; then
37560
37561 printf "%s\n" "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
37562
37563 fi
37564
37565 if test "$pipeline_cv_socketpair_pipe" = yes; then
37566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
37567 printf %s "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
37568 if test ${pipeline_cv_socketpair_mode+y}
37569 then :
37570 printf %s "(cached) " >&6
37571 else case e in #(
37572 e)
37573 if test "$cross_compiling" = yes
37574 then :
37575 pipeline_cv_socketpair_mode=no
37576 else case e in #(
37577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37578 /* end confdefs.h. */
37579
37580 #include <netdb.h>
37581 #include <netinet/in.h>
37582 #include <sys/stat.h>
37583 #include <sys/socket.h>
37584 #include <sys/types.h>
37585 #include <unistd.h>
37586 #ifndef SHUT_RD
37587 # define SHUT_RD 0
37588 #endif
37589 #ifndef SHUT_WR
37590 # define SHUT_WR 1
37591 #endif
37592
37593 int main(void)
37594 {
37595 int sfd[2];
37596 struct stat st[2];
37597 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
37598 return 1;
37599 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
37600 return 1;
37601 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
37602 return 1;
37603 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
37604 return 1;
37605 if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
37606 return 1;
37607 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
37608 return 1;
37609 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
37610 return 1;
37611 return 0;
37612 }
37613 _ACEOF
37614 if ac_fn_c_try_run "$LINENO"
37615 then :
37616 pipeline_cv_socketpair_mode=yes
37617 else case e in #(
37618 e) pipeline_cv_socketpair_mode=no ;;
37619 esac
37620 fi
37621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37622 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
37623 esac
37624 fi
37625
37626 ;;
37627 esac
37628 fi
37629
37630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
37631 printf "%s\n" "$pipeline_cv_socketpair_mode" >&6; }
37632 if test "$pipeline_cv_socketpair_mode" = yes; then
37633
37634 printf "%s\n" "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
37635
37636 fi
37637
37638 fi
37639 fi
37640
37641 fi
37642
37643
37644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
37645 printf "%s\n" "$as_me: default CC = \"$CC\"" >&6;}
37646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
37647 printf "%s\n" "$as_me: default CPP = \"$CPP\"" >&6;}
37648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
37649 printf "%s\n" "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
37650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
37651 printf "%s\n" "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
37652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
37653 printf "%s\n" "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
37654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
37655 printf "%s\n" "$as_me: default LIBS = \"$LIBS\"" >&6;}
37656
37657 ac_config_files="$ac_config_files Makefile gl/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
37658
37659 cat >confcache <<\_ACEOF
37660 # This file is a shell script that caches the results of configure
37661 # tests run on this system so they can be shared between configure
37662 # scripts and configure runs, see configure's option --config-cache.
37663 # It is not useful on other systems. If it contains results you don't
37664 # want to keep, you may remove or edit it.
37665 #
37666 # config.status only pays attention to the cache file if you give it
37667 # the --recheck option to rerun configure.
37668 #
37669 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
37670 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
37671 # following values.
37672
37673 _ACEOF
37674
37675 # The following way of writing the cache mishandles newlines in values,
37676 # but we know of no workaround that is simple, portable, and efficient.
37677 # So, we kill variables containing newlines.
37678 # Ultrix sh set writes to stderr and can't be redirected directly,
37679 # and sets the high bit in the cache file unless we assign to the vars.
37680 (
37681 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37682 eval ac_val=\$$ac_var
37683 case $ac_val in #(
37684 *${as_nl}*)
37685 case $ac_var in #(
37686 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
37687 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
37688 esac
37689 case $ac_var in #(
37690 _ | IFS | as_nl) ;; #(
37691 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
37692 *) { eval $ac_var=; unset $ac_var;} ;;
37693 esac ;;
37694 esac
37695 done
37696
37697 (set) 2>&1 |
37698 case $as_nl`(ac_space=' '; set) 2>&1` in #(
37699 *${as_nl}ac_space=\ *)
37700 # 'set' does not quote correctly, so add quotes: double-quote
37701 # substitution turns \\\\ into \\, and sed turns \\ into \.
37702 sed -n \
37703 "s/'/'\\\\''/g;
37704 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37705 ;; #(
37706 *)
37707 # 'set' quotes correctly as required by POSIX, so do not add quotes.
37708 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37709 ;;
37710 esac |
37711 sort
37712 ) |
37713 sed '
37714 /^ac_cv_env_/b end
37715 t clear
37716 :clear
37717 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
37718 t end
37719 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37720 :end' >>confcache
37721 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37722 if test -w "$cache_file"; then
37723 if test "x$cache_file" != "x/dev/null"; then
37724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
37725 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
37726 if test ! -f "$cache_file" || test -h "$cache_file"; then
37727 cat confcache >"$cache_file"
37728 else
37729 case $cache_file in #(
37730 */* | ?:*)
37731 mv -f confcache "$cache_file"$$ &&
37732 mv -f "$cache_file"$$ "$cache_file" ;; #(
37733 *)
37734 mv -f confcache "$cache_file" ;;
37735 esac
37736 fi
37737 fi
37738 else
37739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
37740 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
37741 fi
37742 fi
37743 rm -f confcache
37744
37745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
37746 # Let make expand exec_prefix.
37747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37748
37749 DEFS=-DHAVE_CONFIG_H
37750
37751 ac_libobjs=
37752 ac_ltlibobjs=
37753 U=
37754 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37755 # 1. Remove the extension, and $U if already installed.
37756 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37757 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
37758 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
37759 # will be set to the directory where LIBOBJS objects are built.
37760 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37761 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
37762 done
37763 LIBOBJS=$ac_libobjs
37764
37765 LTLIBOBJS=$ac_ltlibobjs
37766
37767
37768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
37769 printf %s "checking that generated files are newer than configure... " >&6; }
37770 if test -n "$am_sleep_pid"; then
37771 # Hide warnings about reused PIDs.
37772 wait $am_sleep_pid 2>/dev/null
37773 fi
37774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
37775 printf "%s\n" "done" >&6; }
37776 if test -n "$EXEEXT"; then
37777 am__EXEEXT_TRUE=
37778 am__EXEEXT_FALSE='#'
37779 else
37780 am__EXEEXT_TRUE='#'
37781 am__EXEEXT_FALSE=
37782 fi
37783
37784 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
37785 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
37786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37787 fi
37788 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37789 as_fn_error $? "conditional \"AMDEP\" was never defined.
37790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37791 fi
37792 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37793 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37795 fi
37796 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37797 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37799 fi
37800 # Check whether --enable-year2038 was given.
37801 if test ${enable_year2038+y}
37802 then :
37803 enableval=$enable_year2038;
37804 fi
37805
37806 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
37807 as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
37808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37809 fi
37810 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
37811 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
37812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37813 fi
37814
37815
37816 gl_libobjs=
37817 gl_ltlibobjs=
37818 gl_libobjdeps=
37819 if test -n "$gl_LIBOBJS"; then
37820 # Remove the extension.
37821 sed_drop_objext='s/\.o$//;s/\.obj$//'
37822 sed_dirname1='s,//*,/,g'
37823 sed_dirname2='s,\(.\)/$,\1,'
37824 sed_dirname3='s,^[^/]*$,.,'
37825 sed_dirname4='s,\(.\)/[^/]*$,\1,'
37826 sed_basename1='s,.*/,,'
37827 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
37828 gl_libobjs="$gl_libobjs $i.$ac_objext"
37829 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
37830 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
37831 i_base=`echo "$i" | sed -e "$sed_basename1"`
37832 gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
37833 done
37834 fi
37835 gl_LIBOBJS=$gl_libobjs
37836
37837 gl_LTLIBOBJS=$gl_ltlibobjs
37838
37839 gl_LIBOBJDEPS=$gl_libobjdeps
37840
37841
37842
37843 gltests_libobjs=
37844 gltests_ltlibobjs=
37845 gltests_libobjdeps=
37846 if test -n "$gltests_LIBOBJS"; then
37847 # Remove the extension.
37848 sed_drop_objext='s/\.o$//;s/\.obj$//'
37849 sed_dirname1='s,//*,/,g'
37850 sed_dirname2='s,\(.\)/$,\1,'
37851 sed_dirname3='s,^[^/]*$,.,'
37852 sed_dirname4='s,\(.\)/[^/]*$,\1,'
37853 sed_basename1='s,.*/,,'
37854 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
37855 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
37856 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
37857 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
37858 i_base=`echo "$i" | sed -e "$sed_basename1"`
37859 gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
37860 done
37861 fi
37862 gltests_LIBOBJS=$gltests_libobjs
37863
37864 gltests_LTLIBOBJS=$gltests_ltlibobjs
37865
37866 gltests_LIBOBJDEPS=$gltests_libobjdeps
37867
37868
37869
37870 : "${CONFIG_STATUS=./config.status}"
37871 ac_write_fail=0
37872 ac_clean_files_save=$ac_clean_files
37873 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
37875 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
37876 as_write_fail=0
37877 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
37878 #! $SHELL
37879 # Generated by $as_me.
37880 # Run this file to recreate the current configuration.
37881 # Compiler output produced by configure, useful for debugging
37882 # configure, is in config.log if it exists.
37883
37884 debug=false
37885 ac_cs_recheck=false
37886 ac_cs_silent=false
37887
37888 SHELL=\${CONFIG_SHELL-$SHELL}
37889 export SHELL
37890 _ASEOF
37891 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
37892 ## -------------------- ##
37893 ## M4sh Initialization. ##
37894 ## -------------------- ##
37895
37896 # Be more Bourne compatible
37897 DUALCASE=1; export DUALCASE # for MKS sh
37898 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
37899 then :
37900 emulate sh
37901 NULLCMD=:
37902 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37903 # is contrary to our usage. Disable this feature.
37904 alias -g '${1+"$@"}'='"$@"'
37905 setopt NO_GLOB_SUBST
37906 else case e in #(
37907 e) case `(set -o) 2>/dev/null` in #(
37908 *posix*) :
37909 set -o posix ;; #(
37910 *) :
37911 ;;
37912 esac ;;
37913 esac
37914 fi
37915
37916
37917
37918 # Reset variables that may have inherited troublesome values from
37919 # the environment.
37920
37921 # IFS needs to be set, to space, tab, and newline, in precisely that order.
37922 # (If _AS_PATH_WALK were called with IFS unset, it would have the
37923 # side effect of setting IFS to empty, thus disabling word splitting.)
37924 # Quoting is to prevent editors from complaining about space-tab.
37925 as_nl='
37926 '
37927 export as_nl
37928 IFS=" "" $as_nl"
37929
37930 PS1='$ '
37931 PS2='> '
37932 PS4='+ '
37933
37934 # Ensure predictable behavior from utilities with locale-dependent output.
37935 LC_ALL=C
37936 export LC_ALL
37937 LANGUAGE=C
37938 export LANGUAGE
37939
37940 # We cannot yet rely on "unset" to work, but we need these variables
37941 # to be unset--not just set to an empty or harmless value--now, to
37942 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
37943 # also avoids known problems related to "unset" and subshell syntax
37944 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
37945 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
37946 do eval test \${$as_var+y} \
37947 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
37948 done
37949
37950 # Ensure that fds 0, 1, and 2 are open.
37951 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
37952 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
37953 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
37954
37955 # The user is always right.
37956 if ${PATH_SEPARATOR+false} :; then
37957 PATH_SEPARATOR=:
37958 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37959 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37960 PATH_SEPARATOR=';'
37961 }
37962 fi
37963
37964
37965 # Find who we are. Look in the path if we contain no directory separator.
37966 as_myself=
37967 case $0 in #((
37968 *[\\/]* ) as_myself=$0 ;;
37969 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37970 for as_dir in $PATH
37971 do
37972 IFS=$as_save_IFS
37973 case $as_dir in #(((
37974 '') as_dir=./ ;;
37975 */) ;;
37976 *) as_dir=$as_dir/ ;;
37977 esac
37978 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
37979 done
37980 IFS=$as_save_IFS
37981
37982 ;;
37983 esac
37984 # We did not find ourselves, most probably we were run as 'sh COMMAND'
37985 # in which case we are not to be found in the path.
37986 if test "x$as_myself" = x; then
37987 as_myself=$0
37988 fi
37989 if test ! -f "$as_myself"; then
37990 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37991 exit 1
37992 fi
37993
37994
37995
37996 # as_fn_error STATUS ERROR [LINENO LOG_FD]
37997 # ----------------------------------------
37998 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37999 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
38000 # script with STATUS, using 1 if that was 0.
38001 as_fn_error ()
38002 {
38003 as_status=$1; test $as_status -eq 0 && as_status=1
38004 if test "$4"; then
38005 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
38006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
38007 fi
38008 printf "%s\n" "$as_me: error: $2" >&2
38009 as_fn_exit $as_status
38010 } # as_fn_error
38011
38012
38013 # as_fn_set_status STATUS
38014 # -----------------------
38015 # Set $? to STATUS, without forking.
38016 as_fn_set_status ()
38017 {
38018 return $1
38019 } # as_fn_set_status
38020
38021 # as_fn_exit STATUS
38022 # -----------------
38023 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
38024 as_fn_exit ()
38025 {
38026 set +e
38027 as_fn_set_status $1
38028 exit $1
38029 } # as_fn_exit
38030
38031 # as_fn_unset VAR
38032 # ---------------
38033 # Portably unset VAR.
38034 as_fn_unset ()
38035 {
38036 { eval $1=; unset $1;}
38037 }
38038 as_unset=as_fn_unset
38039
38040 # as_fn_append VAR VALUE
38041 # ----------------------
38042 # Append the text in VALUE to the end of the definition contained in VAR. Take
38043 # advantage of any shell optimizations that allow amortized linear growth over
38044 # repeated appends, instead of the typical quadratic growth present in naive
38045 # implementations.
38046 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
38047 then :
38048 eval 'as_fn_append ()
38049 {
38050 eval $1+=\$2
38051 }'
38052 else case e in #(
38053 e) as_fn_append ()
38054 {
38055 eval $1=\$$1\$2
38056 } ;;
38057 esac
38058 fi # as_fn_append
38059
38060 # as_fn_arith ARG...
38061 # ------------------
38062 # Perform arithmetic evaluation on the ARGs, and store the result in the
38063 # global $as_val. Take advantage of shells that can avoid forks. The arguments
38064 # must be portable across $(()) and expr.
38065 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
38066 then :
38067 eval 'as_fn_arith ()
38068 {
38069 as_val=$(( $* ))
38070 }'
38071 else case e in #(
38072 e) as_fn_arith ()
38073 {
38074 as_val=`expr "$@" || test $? -eq 1`
38075 } ;;
38076 esac
38077 fi # as_fn_arith
38078
38079
38080 if expr a : '\(a\)' >/dev/null 2>&1 &&
38081 test "X`expr 00001 : '.*\(...\)'`" = X001; then
38082 as_expr=expr
38083 else
38084 as_expr=false
38085 fi
38086
38087 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38088 as_basename=basename
38089 else
38090 as_basename=false
38091 fi
38092
38093 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38094 as_dirname=dirname
38095 else
38096 as_dirname=false
38097 fi
38098
38099 as_me=`$as_basename -- "$0" ||
38100 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38101 X"$0" : 'X\(//\)$' \| \
38102 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38103 printf "%s\n" X/"$0" |
38104 sed '/^.*\/\([^/][^/]*\)\/*$/{
38105 s//\1/
38106 q
38107 }
38108 /^X\/\(\/\/\)$/{
38109 s//\1/
38110 q
38111 }
38112 /^X\/\(\/\).*/{
38113 s//\1/
38114 q
38115 }
38116 s/.*/./; q'`
38117
38118 # Avoid depending upon Character Ranges.
38119 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38120 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38121 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38122 as_cr_digits='0123456789'
38123 as_cr_alnum=$as_cr_Letters$as_cr_digits
38124
38125
38126 # Determine whether it's possible to make 'echo' print without a newline.
38127 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
38128 # for compatibility with existing Makefiles.
38129 ECHO_C= ECHO_N= ECHO_T=
38130 case `echo -n x` in #(((((
38131 -n*)
38132 case `echo 'xy\c'` in
38133 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
38134 xy) ECHO_C='\c';;
38135 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
38136 ECHO_T=' ';;
38137 esac;;
38138 *)
38139 ECHO_N='-n';;
38140 esac
38141
38142 # For backward compatibility with old third-party macros, we provide
38143 # the shell variables $as_echo and $as_echo_n. New code should use
38144 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
38145 as_echo='printf %s\n'
38146 as_echo_n='printf %s'
38147
38148 rm -f conf$$ conf$$.exe conf$$.file
38149 if test -d conf$$.dir; then
38150 rm -f conf$$.dir/conf$$.file
38151 else
38152 rm -f conf$$.dir
38153 mkdir conf$$.dir 2>/dev/null
38154 fi
38155 if (echo >conf$$.file) 2>/dev/null; then
38156 if ln -s conf$$.file conf$$ 2>/dev/null; then
38157 as_ln_s='ln -s'
38158 # ... but there are two gotchas:
38159 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
38160 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
38161 # In both cases, we have to default to 'cp -pR'.
38162 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
38163 as_ln_s='cp -pR'
38164 elif ln conf$$.file conf$$ 2>/dev/null; then
38165 as_ln_s=ln
38166 else
38167 as_ln_s='cp -pR'
38168 fi
38169 else
38170 as_ln_s='cp -pR'
38171 fi
38172 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
38173 rmdir conf$$.dir 2>/dev/null
38174
38175
38176 # as_fn_mkdir_p
38177 # -------------
38178 # Create "$as_dir" as a directory, including parents if necessary.
38179 as_fn_mkdir_p ()
38180 {
38181
38182 case $as_dir in #(
38183 -*) as_dir=./$as_dir;;
38184 esac
38185 test -d "$as_dir" || eval $as_mkdir_p || {
38186 as_dirs=
38187 while :; do
38188 case $as_dir in #(
38189 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
38190 *) as_qdir=$as_dir;;
38191 esac
38192 as_dirs="'$as_qdir' $as_dirs"
38193 as_dir=`$as_dirname -- "$as_dir" ||
38194 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38195 X"$as_dir" : 'X\(//\)[^/]' \| \
38196 X"$as_dir" : 'X\(//\)$' \| \
38197 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
38198 printf "%s\n" X"$as_dir" |
38199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38200 s//\1/
38201 q
38202 }
38203 /^X\(\/\/\)[^/].*/{
38204 s//\1/
38205 q
38206 }
38207 /^X\(\/\/\)$/{
38208 s//\1/
38209 q
38210 }
38211 /^X\(\/\).*/{
38212 s//\1/
38213 q
38214 }
38215 s/.*/./; q'`
38216 test -d "$as_dir" && break
38217 done
38218 test -z "$as_dirs" || eval "mkdir $as_dirs"
38219 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
38220
38221
38222 } # as_fn_mkdir_p
38223 if mkdir -p . 2>/dev/null; then
38224 as_mkdir_p='mkdir -p "$as_dir"'
38225 else
38226 test -d ./-p && rmdir ./-p
38227 as_mkdir_p=false
38228 fi
38229
38230
38231 # as_fn_executable_p FILE
38232 # -----------------------
38233 # Test if FILE is an executable regular file.
38234 as_fn_executable_p ()
38235 {
38236 test -f "$1" && test -x "$1"
38237 } # as_fn_executable_p
38238 as_test_x='test -x'
38239 as_executable_p=as_fn_executable_p
38240
38241 # Sed expression to map a string onto a valid CPP name.
38242 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
38243 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
38244
38245 # Sed expression to map a string onto a valid variable name.
38246 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
38247 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
38248
38249
38250 exec 6>&1
38251 ## ----------------------------------- ##
38252 ## Main body of $CONFIG_STATUS script. ##
38253 ## ----------------------------------- ##
38254 _ASEOF
38255 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
38256
38257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38258 # Save the log message, to keep $0 and so on meaningful, and to
38259 # report actual input values of CONFIG_FILES etc. instead of their
38260 # values after options handling.
38261 ac_log="
38262 This file was extended by libpipeline $as_me 1.5.8, which was
38263 generated by GNU Autoconf 2.72. Invocation command line was
38264
38265 CONFIG_FILES = $CONFIG_FILES
38266 CONFIG_HEADERS = $CONFIG_HEADERS
38267 CONFIG_LINKS = $CONFIG_LINKS
38268 CONFIG_COMMANDS = $CONFIG_COMMANDS
38269 $ $0 $@
38270
38271 on `(hostname || uname -n) 2>/dev/null | sed 1q`
38272 "
38273
38274 _ACEOF
38275
38276 case $ac_config_files in *"
38277 "*) set x $ac_config_files; shift; ac_config_files=$*;;
38278 esac
38279
38280 case $ac_config_headers in *"
38281 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
38282 esac
38283
38284
38285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38286 # Files that config.status was made for.
38287 config_files="$ac_config_files"
38288 config_headers="$ac_config_headers"
38289 config_commands="$ac_config_commands"
38290
38291 _ACEOF
38292
38293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38294 ac_cs_usage="\
38295 '$as_me' instantiates files and other configuration actions
38296 from templates according to the current configuration. Unless the files
38297 and actions are specified as TAGs, all are instantiated by default.
38298
38299 Usage: $0 [OPTION]... [TAG]...
38300
38301 -h, --help print this help, then exit
38302 -V, --version print version number and configuration settings, then exit
38303 --config print configuration, then exit
38304 -q, --quiet, --silent
38305 do not print progress messages
38306 -d, --debug don't remove temporary files
38307 --recheck update $as_me by reconfiguring in the same conditions
38308 --file=FILE[:TEMPLATE]
38309 instantiate the configuration file FILE
38310 --header=FILE[:TEMPLATE]
38311 instantiate the configuration header FILE
38312
38313 Configuration files:
38314 $config_files
38315
38316 Configuration headers:
38317 $config_headers
38318
38319 Configuration commands:
38320 $config_commands
38321
38322 Report bugs to <[email protected]>."
38323
38324 _ACEOF
38325 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
38326 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
38327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38328 ac_cs_config='$ac_cs_config_escaped'
38329 ac_cs_version="\\
38330 libpipeline config.status 1.5.8
38331 configured by $0, generated by GNU Autoconf 2.72,
38332 with options \\"\$ac_cs_config\\"
38333
38334 Copyright (C) 2023 Free Software Foundation, Inc.
38335 This config.status script is free software; the Free Software Foundation
38336 gives unlimited permission to copy, distribute and modify it."
38337
38338 ac_pwd='$ac_pwd'
38339 srcdir='$srcdir'
38340 INSTALL='$INSTALL'
38341 MKDIR_P='$MKDIR_P'
38342 AWK='$AWK'
38343 test -n "\$AWK" || AWK=awk
38344 _ACEOF
38345
38346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38347 # The default lists apply if the user does not specify any file.
38348 ac_need_defaults=:
38349 while test $# != 0
38350 do
38351 case $1 in
38352 --*=?*)
38353 ac_option=`expr "X$1" : 'X\([^=]*\)='`
38354 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
38355 ac_shift=:
38356 ;;
38357 --*=)
38358 ac_option=`expr "X$1" : 'X\([^=]*\)='`
38359 ac_optarg=
38360 ac_shift=:
38361 ;;
38362 *)
38363 ac_option=$1
38364 ac_optarg=$2
38365 ac_shift=shift
38366 ;;
38367 esac
38368
38369 case $ac_option in
38370 # Handling of the options.
38371 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
38372 ac_cs_recheck=: ;;
38373 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
38374 printf "%s\n" "$ac_cs_version"; exit ;;
38375 --config | --confi | --conf | --con | --co | --c )
38376 printf "%s\n" "$ac_cs_config"; exit ;;
38377 --debug | --debu | --deb | --de | --d | -d )
38378 debug=: ;;
38379 --file | --fil | --fi | --f )
38380 $ac_shift
38381 case $ac_optarg in
38382 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38383 '') as_fn_error $? "missing file argument" ;;
38384 esac
38385 as_fn_append CONFIG_FILES " '$ac_optarg'"
38386 ac_need_defaults=false;;
38387 --header | --heade | --head | --hea )
38388 $ac_shift
38389 case $ac_optarg in
38390 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38391 esac
38392 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
38393 ac_need_defaults=false;;
38394 --he | --h)
38395 # Conflict between --help and --header
38396 as_fn_error $? "ambiguous option: '$1'
38397 Try '$0 --help' for more information.";;
38398 --help | --hel | -h )
38399 printf "%s\n" "$ac_cs_usage"; exit ;;
38400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
38401 | -silent | --silent | --silen | --sile | --sil | --si | --s)
38402 ac_cs_silent=: ;;
38403
38404 # This is an error.
38405 -*) as_fn_error $? "unrecognized option: '$1'
38406 Try '$0 --help' for more information." ;;
38407
38408 *) as_fn_append ac_config_targets " $1"
38409 ac_need_defaults=false ;;
38410
38411 esac
38412 shift
38413 done
38414
38415 ac_configure_extra_args=
38416
38417 if $ac_cs_silent; then
38418 exec 6>/dev/null
38419 ac_configure_extra_args="$ac_configure_extra_args --silent"
38420 fi
38421
38422 _ACEOF
38423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38424 if \$ac_cs_recheck; then
38425 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38426 shift
38427 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
38428 CONFIG_SHELL='$SHELL'
38429 export CONFIG_SHELL
38430 exec "\$@"
38431 fi
38432
38433 _ACEOF
38434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38435 exec 5>>config.log
38436 {
38437 echo
38438 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38439 ## Running $as_me. ##
38440 _ASBOX
38441 printf "%s\n" "$ac_log"
38442 } >&5
38443
38444 _ACEOF
38445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38446 #
38447 # INIT-COMMANDS
38448 #
38449 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
38450
38451
38452 # The HP-UX ksh and POSIX shell print the target directory to stdout
38453 # if CDPATH is set.
38454 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38455
38456 sed_quote_subst='$sed_quote_subst'
38457 double_quote_subst='$double_quote_subst'
38458 delay_variable_subst='$delay_variable_subst'
38459 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
38460 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
38461 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
38462 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
38463 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
38464 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
38465 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
38466 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
38467 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
38468 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
38469 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
38470 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
38471 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
38472 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
38473 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
38474 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
38475 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
38476 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
38477 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
38478 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
38479 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
38480 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
38481 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
38482 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
38483 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
38484 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
38485 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
38486 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
38487 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
38488 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
38489 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
38490 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
38491 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
38492 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
38493 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
38494 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
38495 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
38496 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
38497 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
38498 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
38499 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
38500 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
38501 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
38502 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
38503 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
38504 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
38505 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
38506 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
38507 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38508 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38509 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
38510 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
38511 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
38512 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
38513 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
38514 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
38515 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
38516 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
38517 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
38518 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
38519 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
38520 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
38521 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
38522 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
38523 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
38524 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
38525 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
38526 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
38527 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
38528 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
38529 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
38530 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
38531 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
38532 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
38533 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
38534 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
38535 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
38536 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
38537 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
38538 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
38539 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
38540 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38541 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
38542 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
38543 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
38544 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
38545 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
38546 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
38547 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38548 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
38549 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38550 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
38551 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38552 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
38553 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
38554 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
38555 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
38556 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
38557 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
38558 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
38559 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
38560 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
38561 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
38562 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
38563 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
38564 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
38565 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
38566 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
38567 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
38568 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
38569 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
38570 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
38571 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
38572 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
38573 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
38574 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
38575 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
38576 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
38577 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
38578 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
38579 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
38580 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
38581 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
38582 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38583 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38584 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
38585 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
38586 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
38587 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
38588 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
38589 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
38590 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
38591 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
38592 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
38593 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
38594 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
38595 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
38596
38597 LTCC='$LTCC'
38598 LTCFLAGS='$LTCFLAGS'
38599 compiler='$compiler_DEFAULT'
38600
38601 # A function that is used when there is no print builtin or printf.
38602 func_fallback_echo ()
38603 {
38604 eval 'cat <<_LTECHO_EOF
38605 \$1
38606 _LTECHO_EOF'
38607 }
38608
38609 # Quote evaled strings.
38610 for var in SHELL \
38611 ECHO \
38612 PATH_SEPARATOR \
38613 SED \
38614 GREP \
38615 EGREP \
38616 FGREP \
38617 LD \
38618 NM \
38619 LN_S \
38620 lt_SP2NL \
38621 lt_NL2SP \
38622 reload_flag \
38623 FILECMD \
38624 OBJDUMP \
38625 deplibs_check_method \
38626 file_magic_cmd \
38627 file_magic_glob \
38628 want_nocaseglob \
38629 DLLTOOL \
38630 sharedlib_from_linklib_cmd \
38631 AR \
38632 archiver_list_spec \
38633 STRIP \
38634 RANLIB \
38635 CC \
38636 CFLAGS \
38637 compiler \
38638 lt_cv_sys_global_symbol_pipe \
38639 lt_cv_sys_global_symbol_to_cdecl \
38640 lt_cv_sys_global_symbol_to_import \
38641 lt_cv_sys_global_symbol_to_c_name_address \
38642 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
38643 lt_cv_nm_interface \
38644 nm_file_list_spec \
38645 lt_cv_truncate_bin \
38646 lt_prog_compiler_no_builtin_flag \
38647 lt_prog_compiler_pic \
38648 lt_prog_compiler_wl \
38649 lt_prog_compiler_static \
38650 lt_cv_prog_compiler_c_o \
38651 need_locks \
38652 MANIFEST_TOOL \
38653 DSYMUTIL \
38654 NMEDIT \
38655 LIPO \
38656 OTOOL \
38657 OTOOL64 \
38658 shrext_cmds \
38659 export_dynamic_flag_spec \
38660 whole_archive_flag_spec \
38661 compiler_needs_object \
38662 with_gnu_ld \
38663 allow_undefined_flag \
38664 no_undefined_flag \
38665 hardcode_libdir_flag_spec \
38666 hardcode_libdir_separator \
38667 exclude_expsyms \
38668 include_expsyms \
38669 file_list_spec \
38670 variables_saved_for_relink \
38671 libname_spec \
38672 library_names_spec \
38673 soname_spec \
38674 install_override_mode \
38675 finish_eval \
38676 old_striplib \
38677 striplib; do
38678 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38679 *[\\\\\\\`\\"\\\$]*)
38680 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
38681 ;;
38682 *)
38683 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38684 ;;
38685 esac
38686 done
38687
38688 # Double-quote double-evaled strings.
38689 for var in reload_cmds \
38690 old_postinstall_cmds \
38691 old_postuninstall_cmds \
38692 old_archive_cmds \
38693 extract_expsyms_cmds \
38694 old_archive_from_new_cmds \
38695 old_archive_from_expsyms_cmds \
38696 archive_cmds \
38697 archive_expsym_cmds \
38698 module_cmds \
38699 module_expsym_cmds \
38700 export_symbols_cmds \
38701 prelink_cmds \
38702 postlink_cmds \
38703 postinstall_cmds \
38704 postuninstall_cmds \
38705 finish_cmds \
38706 sys_lib_search_path_spec \
38707 configure_time_dlsearch_path \
38708 configure_time_lt_sys_library_path; do
38709 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38710 *[\\\\\\\`\\"\\\$]*)
38711 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
38712 ;;
38713 *)
38714 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38715 ;;
38716 esac
38717 done
38718
38719 ac_aux_dir='$ac_aux_dir'
38720
38721 # See if we are running on zsh, and set the options that allow our
38722 # commands through without removal of \ escapes INIT.
38723 if test -n "\${ZSH_VERSION+set}"; then
38724 setopt NO_GLOB_SUBST
38725 fi
38726
38727
38728 PACKAGE='$PACKAGE'
38729 VERSION='$VERSION'
38730 RM='$RM'
38731 ofile='$ofile'
38732
38733
38734
38735
38736 _ACEOF
38737
38738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38739
38740 # Handling of arguments.
38741 for ac_config_target in $ac_config_targets
38742 do
38743 case $ac_config_target in
38744 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38745 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
38746 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
38747 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38748 "gl/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gl/lib/Makefile" ;;
38749 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
38750 "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
38751 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
38752 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
38753
38754 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
38755 esac
38756 done
38757
38758
38759 # If the user did not use the arguments to specify the items to instantiate,
38760 # then the envvar interface is used. Set only those that are not.
38761 # We use the long form for the default assignment because of an extremely
38762 # bizarre bug on SunOS 4.1.3.
38763 if $ac_need_defaults; then
38764 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
38765 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
38766 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
38767 fi
38768
38769 # Have a temporary directory for convenience. Make it in the build tree
38770 # simply because there is no reason against having it here, and in addition,
38771 # creating and moving files from /tmp can sometimes cause problems.
38772 # Hook for its removal unless debugging.
38773 # Note that there is a small window in which the directory will not be cleaned:
38774 # after its creation but before its name has been assigned to '$tmp'.
38775 $debug ||
38776 {
38777 tmp= ac_tmp=
38778 trap 'exit_status=$?
38779 : "${ac_tmp:=$tmp}"
38780 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
38781 ' 0
38782 trap 'as_fn_exit 1' 1 2 13 15
38783 }
38784 # Create a (secure) tmp directory for tmp files.
38785
38786 {
38787 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38788 test -d "$tmp"
38789 } ||
38790 {
38791 tmp=./conf$$-$RANDOM
38792 (umask 077 && mkdir "$tmp")
38793 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
38794 ac_tmp=$tmp
38795
38796 # Set up the scripts for CONFIG_FILES section.
38797 # No need to generate them if there are no CONFIG_FILES.
38798 # This happens for instance with './config.status config.h'.
38799 if test -n "$CONFIG_FILES"; then
38800
38801
38802 ac_cr=`echo X | tr X '\015'`
38803 # On cygwin, bash can eat \r inside `` if the user requested igncr.
38804 # But we know of no other shell where ac_cr would be empty at this
38805 # point, so we can use a bashism as a fallback.
38806 if test "x$ac_cr" = x; then
38807 eval ac_cr=\$\'\\r\'
38808 fi
38809 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38810 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
38811 ac_cs_awk_cr='\\r'
38812 else
38813 ac_cs_awk_cr=$ac_cr
38814 fi
38815
38816 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
38817 _ACEOF
38818
38819
38820 {
38821 echo "cat >conf$$subs.awk <<_ACEOF" &&
38822 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38823 echo "_ACEOF"
38824 } >conf$$subs.sh ||
38825 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38826 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
38827 ac_delim='%!_!# '
38828 for ac_last_try in false false false false false :; do
38829 . ./conf$$subs.sh ||
38830 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38831
38832 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38833 if test $ac_delim_n = $ac_delim_num; then
38834 break
38835 elif $ac_last_try; then
38836 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38837 else
38838 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38839 fi
38840 done
38841 rm -f conf$$subs.sh
38842
38843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38844 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
38845 _ACEOF
38846 sed -n '
38847 h
38848 s/^/S["/; s/!.*/"]=/
38849 p
38850 g
38851 s/^[^!]*!//
38852 :repl
38853 t repl
38854 s/'"$ac_delim"'$//
38855 t delim
38856 :nl
38857 h
38858 s/\(.\{148\}\)..*/\1/
38859 t more1
38860 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38861 p
38862 n
38863 b repl
38864 :more1
38865 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38866 p
38867 g
38868 s/.\{148\}//
38869 t nl
38870 :delim
38871 h
38872 s/\(.\{148\}\)..*/\1/
38873 t more2
38874 s/["\\]/\\&/g; s/^/"/; s/$/"/
38875 p
38876 b
38877 :more2
38878 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38879 p
38880 g
38881 s/.\{148\}//
38882 t delim
38883 ' <conf$$subs.awk | sed '
38884 /^[^""]/{
38885 N
38886 s/\n//
38887 }
38888 ' >>$CONFIG_STATUS || ac_write_fail=1
38889 rm -f conf$$subs.awk
38890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38891 _ACAWK
38892 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
38893 for (key in S) S_is_set[key] = 1
38894 FS = ""
38895
38896 }
38897 {
38898 line = $ 0
38899 nfields = split(line, field, "@")
38900 substed = 0
38901 len = length(field[1])
38902 for (i = 2; i < nfields; i++) {
38903 key = field[i]
38904 keylen = length(key)
38905 if (S_is_set[key]) {
38906 value = S[key]
38907 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38908 len += length(value) + length(field[++i])
38909 substed = 1
38910 } else
38911 len += 1 + keylen
38912 }
38913
38914 print line
38915 }
38916
38917 _ACAWK
38918 _ACEOF
38919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38920 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38921 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38922 else
38923 cat
38924 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
38925 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38926 _ACEOF
38927
38928 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38929 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
38930 # trailing colons and then remove the whole line if VPATH becomes empty
38931 # (actually we leave an empty line to preserve line numbers).
38932 if test "x$srcdir" = x.; then
38933 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
38934 h
38935 s///
38936 s/^/:/
38937 s/[ ]*$/:/
38938 s/:\$(srcdir):/:/g
38939 s/:\${srcdir}:/:/g
38940 s/:@srcdir@:/:/g
38941 s/^:*//
38942 s/:*$//
38943 x
38944 s/\(=[ ]*\).*/\1/
38945 G
38946 s/\n//
38947 s/^[^=]*=[ ]*$//
38948 }'
38949 fi
38950
38951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38952 fi # test -n "$CONFIG_FILES"
38953
38954 # Set up the scripts for CONFIG_HEADERS section.
38955 # No need to generate them if there are no CONFIG_HEADERS.
38956 # This happens for instance with './config.status Makefile'.
38957 if test -n "$CONFIG_HEADERS"; then
38958 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
38959 BEGIN {
38960 _ACEOF
38961
38962 # Transform confdefs.h into an awk script 'defines.awk', embedded as
38963 # here-document in config.status, that substitutes the proper values into
38964 # config.h.in to produce config.h.
38965
38966 # Create a delimiter string that does not exist in confdefs.h, to ease
38967 # handling of long lines.
38968 ac_delim='%!_!# '
38969 for ac_last_try in false false :; do
38970 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38971 if test -z "$ac_tt"; then
38972 break
38973 elif $ac_last_try; then
38974 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
38975 else
38976 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38977 fi
38978 done
38979
38980 # For the awk script, D is an array of macro values keyed by name,
38981 # likewise P contains macro parameters if any. Preserve backslash
38982 # newline sequences.
38983
38984 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38985 sed -n '
38986 s/.\{148\}/&'"$ac_delim"'/g
38987 t rset
38988 :rset
38989 s/^[ ]*#[ ]*define[ ][ ]*/ /
38990 t def
38991 d
38992 :def
38993 s/\\$//
38994 t bsnl
38995 s/["\\]/\\&/g
38996 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38997 D["\1"]=" \3"/p
38998 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
38999 d
39000 :bsnl
39001 s/["\\]/\\&/g
39002 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
39003 D["\1"]=" \3\\\\\\n"\\/p
39004 t cont
39005 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
39006 t cont
39007 d
39008 :cont
39009 n
39010 s/.\{148\}/&'"$ac_delim"'/g
39011 t clear
39012 :clear
39013 s/\\$//
39014 t bsnlc
39015 s/["\\]/\\&/g; s/^/"/; s/$/"/p
39016 d
39017 :bsnlc
39018 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
39019 b cont
39020 ' <confdefs.h | sed '
39021 s/'"$ac_delim"'/"\\\
39022 "/g' >>$CONFIG_STATUS || ac_write_fail=1
39023
39024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39025 for (key in D) D_is_set[key] = 1
39026 FS = ""
39027 }
39028 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
39029 line = \$ 0
39030 split(line, arg, " ")
39031 if (arg[1] == "#") {
39032 defundef = arg[2]
39033 mac1 = arg[3]
39034 } else {
39035 defundef = substr(arg[1], 2)
39036 mac1 = arg[2]
39037 }
39038 split(mac1, mac2, "(") #)
39039 macro = mac2[1]
39040 prefix = substr(line, 1, index(line, defundef) - 1)
39041 if (D_is_set[macro]) {
39042 # Preserve the white space surrounding the "#".
39043 print prefix "define", macro P[macro] D[macro]
39044 next
39045 } else {
39046 # Replace #undef with comments. This is necessary, for example,
39047 # in the case of _POSIX_SOURCE, which is predefined and required
39048 # on some systems where configure will not decide to define it.
39049 if (defundef == "undef") {
39050 print "/*", prefix defundef, macro, "*/"
39051 next
39052 }
39053 }
39054 }
39055 { print }
39056 _ACAWK
39057 _ACEOF
39058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39059 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
39060 fi # test -n "$CONFIG_HEADERS"
39061
39062
39063 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
39064 shift
39065 for ac_tag
39066 do
39067 case $ac_tag in
39068 :[FHLC]) ac_mode=$ac_tag; continue;;
39069 esac
39070 case $ac_mode$ac_tag in
39071 :[FHL]*:*);;
39072 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
39073 :[FH]-) ac_tag=-:-;;
39074 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39075 esac
39076 ac_save_IFS=$IFS
39077 IFS=:
39078 set x $ac_tag
39079 IFS=$ac_save_IFS
39080 shift
39081 ac_file=$1
39082 shift
39083
39084 case $ac_mode in
39085 :L) ac_source=$1;;
39086 :[FH])
39087 ac_file_inputs=
39088 for ac_f
39089 do
39090 case $ac_f in
39091 -) ac_f="$ac_tmp/stdin";;
39092 *) # Look for the file first in the build tree, then in the source tree
39093 # (if the path is not absolute). The absolute path cannot be DOS-style,
39094 # because $ac_f cannot contain ':'.
39095 test -f "$ac_f" ||
39096 case $ac_f in
39097 [\\/$]*) false;;
39098 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39099 esac ||
39100 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
39101 esac
39102 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
39103 as_fn_append ac_file_inputs " '$ac_f'"
39104 done
39105
39106 # Let's still pretend it is 'configure' which instantiates (i.e., don't
39107 # use $as_me), people would be surprised to read:
39108 # /* config.h. Generated by config.status. */
39109 configure_input='Generated from '`
39110 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
39111 `' by configure.'
39112 if test x"$ac_file" != x-; then
39113 configure_input="$ac_file. $configure_input"
39114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
39115 printf "%s\n" "$as_me: creating $ac_file" >&6;}
39116 fi
39117 # Neutralize special characters interpreted by sed in replacement strings.
39118 case $configure_input in #(
39119 *\&* | *\|* | *\\* )
39120 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
39121 sed 's/[\\\\&|]/\\\\&/g'`;; #(
39122 *) ac_sed_conf_input=$configure_input;;
39123 esac
39124
39125 case $ac_tag in
39126 *:-:* | *:-) cat >"$ac_tmp/stdin" \
39127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
39128 esac
39129 ;;
39130 esac
39131
39132 ac_dir=`$as_dirname -- "$ac_file" ||
39133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39134 X"$ac_file" : 'X\(//\)[^/]' \| \
39135 X"$ac_file" : 'X\(//\)$' \| \
39136 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39137 printf "%s\n" X"$ac_file" |
39138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39139 s//\1/
39140 q
39141 }
39142 /^X\(\/\/\)[^/].*/{
39143 s//\1/
39144 q
39145 }
39146 /^X\(\/\/\)$/{
39147 s//\1/
39148 q
39149 }
39150 /^X\(\/\).*/{
39151 s//\1/
39152 q
39153 }
39154 s/.*/./; q'`
39155 as_dir="$ac_dir"; as_fn_mkdir_p
39156 ac_builddir=.
39157
39158 case "$ac_dir" in
39159 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39160 *)
39161 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
39162 # A ".." for each directory in $ac_dir_suffix.
39163 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
39164 case $ac_top_builddir_sub in
39165 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39166 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39167 esac ;;
39168 esac
39169 ac_abs_top_builddir=$ac_pwd
39170 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39171 # for backward compatibility:
39172 ac_top_builddir=$ac_top_build_prefix
39173
39174 case $srcdir in
39175 .) # We are building in place.
39176 ac_srcdir=.
39177 ac_top_srcdir=$ac_top_builddir_sub
39178 ac_abs_top_srcdir=$ac_pwd ;;
39179 [\\/]* | ?:[\\/]* ) # Absolute name.
39180 ac_srcdir=$srcdir$ac_dir_suffix;
39181 ac_top_srcdir=$srcdir
39182 ac_abs_top_srcdir=$srcdir ;;
39183 *) # Relative name.
39184 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39185 ac_top_srcdir=$ac_top_build_prefix$srcdir
39186 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39187 esac
39188 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39189
39190
39191 case $ac_mode in
39192 :F)
39193 #
39194 # CONFIG_FILE
39195 #
39196
39197 case $INSTALL in
39198 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39199 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39200 esac
39201 ac_MKDIR_P=$MKDIR_P
39202 case $MKDIR_P in
39203 [\\/$]* | ?:[\\/]* ) ;;
39204 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
39205 esac
39206 _ACEOF
39207
39208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39209 # If the template does not know about datarootdir, expand it.
39210 # FIXME: This hack should be removed a few years after 2.60.
39211 ac_datarootdir_hack=; ac_datarootdir_seen=
39212 ac_sed_dataroot='
39213 /datarootdir/ {
39214 p
39215 q
39216 }
39217 /@datadir@/p
39218 /@docdir@/p
39219 /@infodir@/p
39220 /@localedir@/p
39221 /@mandir@/p'
39222 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
39223 *datarootdir*) ac_datarootdir_seen=yes;;
39224 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39226 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39227 _ACEOF
39228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39229 ac_datarootdir_hack='
39230 s&@datadir@&$datadir&g
39231 s&@docdir@&$docdir&g
39232 s&@infodir@&$infodir&g
39233 s&@localedir@&$localedir&g
39234 s&@mandir@&$mandir&g
39235 s&\\\${datarootdir}&$datarootdir&g' ;;
39236 esac
39237 _ACEOF
39238
39239 # Neutralize VPATH when '$srcdir' = '.'.
39240 # Shell code in configure.ac might set extrasub.
39241 # FIXME: do we really want to maintain this feature?
39242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39243 ac_sed_extra="$ac_vpsub
39244 $extrasub
39245 _ACEOF
39246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39247 :t
39248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39249 s|@configure_input@|$ac_sed_conf_input|;t t
39250 s&@top_builddir@&$ac_top_builddir_sub&;t t
39251 s&@top_build_prefix@&$ac_top_build_prefix&;t t
39252 s&@srcdir@&$ac_srcdir&;t t
39253 s&@abs_srcdir@&$ac_abs_srcdir&;t t
39254 s&@top_srcdir@&$ac_top_srcdir&;t t
39255 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39256 s&@builddir@&$ac_builddir&;t t
39257 s&@abs_builddir@&$ac_abs_builddir&;t t
39258 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39259 s&@INSTALL@&$ac_INSTALL&;t t
39260 s&@MKDIR_P@&$ac_MKDIR_P&;t t
39261 $ac_datarootdir_hack
39262 "
39263 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
39264 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39265
39266 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39267 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
39268 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
39269 "$ac_tmp/out"`; test -z "$ac_out"; } &&
39270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
39271 which seems to be undefined. Please make sure it is defined" >&5
39272 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
39273 which seems to be undefined. Please make sure it is defined" >&2;}
39274
39275 rm -f "$ac_tmp/stdin"
39276 case $ac_file in
39277 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
39278 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39279 esac \
39280 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39281 ;;
39282 :H)
39283 #
39284 # CONFIG_HEADER
39285 #
39286 if test x"$ac_file" != x-; then
39287 {
39288 printf "%s\n" "/* $configure_input */" >&1 \
39289 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
39290 } >"$ac_tmp/config.h" \
39291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39292 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
39293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
39294 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
39295 else
39296 rm -f "$ac_file"
39297 mv "$ac_tmp/config.h" "$ac_file" \
39298 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39299 fi
39300 else
39301 printf "%s\n" "/* $configure_input */" >&1 \
39302 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
39303 || as_fn_error $? "could not create -" "$LINENO" 5
39304 fi
39305 # Compute "$ac_file"'s index in $config_headers.
39306 _am_arg="$ac_file"
39307 _am_stamp_count=1
39308 for _am_header in $config_headers :; do
39309 case $_am_header in
39310 $_am_arg | $_am_arg:* )
39311 break ;;
39312 * )
39313 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39314 esac
39315 done
39316 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
39317 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39318 X"$_am_arg" : 'X\(//\)[^/]' \| \
39319 X"$_am_arg" : 'X\(//\)$' \| \
39320 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
39321 printf "%s\n" X"$_am_arg" |
39322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39323 s//\1/
39324 q
39325 }
39326 /^X\(\/\/\)[^/].*/{
39327 s//\1/
39328 q
39329 }
39330 /^X\(\/\/\)$/{
39331 s//\1/
39332 q
39333 }
39334 /^X\(\/\).*/{
39335 s//\1/
39336 q
39337 }
39338 s/.*/./; q'`/stamp-h$_am_stamp_count
39339 ;;
39340
39341 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39342 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
39343 ;;
39344 esac
39345
39346
39347 case $ac_file$ac_mode in
39348 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
39349 # Older Autoconf quotes --file arguments for eval, but not when files
39350 # are listed without --file. Let's play safe and only enable the eval
39351 # if we detect the quoting.
39352 # TODO: see whether this extra hack can be removed once we start
39353 # requiring Autoconf 2.70 or later.
39354 case $CONFIG_FILES in #(
39355 *\'*) :
39356 eval set x "$CONFIG_FILES" ;; #(
39357 *) :
39358 set x $CONFIG_FILES ;; #(
39359 *) :
39360 ;;
39361 esac
39362 shift
39363 # Used to flag and report bootstrapping failures.
39364 am_rc=0
39365 for am_mf
39366 do
39367 # Strip MF so we end up with the name of the file.
39368 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
39369 # Check whether this is an Automake generated Makefile which includes
39370 # dependency-tracking related rules and includes.
39371 # Grep'ing the whole file directly is not great: AIX grep has a line
39372 # limit of 2048, but all sed's we know have understand at least 4000.
39373 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
39374 || continue
39375 am_dirpart=`$as_dirname -- "$am_mf" ||
39376 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39377 X"$am_mf" : 'X\(//\)[^/]' \| \
39378 X"$am_mf" : 'X\(//\)$' \| \
39379 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
39380 printf "%s\n" X"$am_mf" |
39381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39382 s//\1/
39383 q
39384 }
39385 /^X\(\/\/\)[^/].*/{
39386 s//\1/
39387 q
39388 }
39389 /^X\(\/\/\)$/{
39390 s//\1/
39391 q
39392 }
39393 /^X\(\/\).*/{
39394 s//\1/
39395 q
39396 }
39397 s/.*/./; q'`
39398 am_filepart=`$as_basename -- "$am_mf" ||
39399 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
39400 X"$am_mf" : 'X\(//\)$' \| \
39401 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
39402 printf "%s\n" X/"$am_mf" |
39403 sed '/^.*\/\([^/][^/]*\)\/*$/{
39404 s//\1/
39405 q
39406 }
39407 /^X\/\(\/\/\)$/{
39408 s//\1/
39409 q
39410 }
39411 /^X\/\(\/\).*/{
39412 s//\1/
39413 q
39414 }
39415 s/.*/./; q'`
39416 { echo "$as_me:$LINENO: cd "$am_dirpart" \
39417 && sed -e '/# am--include-marker/d' "$am_filepart" \
39418 | $MAKE -f - am--depfiles" >&5
39419 (cd "$am_dirpart" \
39420 && sed -e '/# am--include-marker/d' "$am_filepart" \
39421 | $MAKE -f - am--depfiles) >&5 2>&5
39422 ac_status=$?
39423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39424 (exit $ac_status); } || am_rc=$?
39425 done
39426 if test $am_rc -ne 0; then
39427 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
39428 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
39429 as_fn_error $? "Something went wrong bootstrapping makefile fragments
39430 for automatic dependency tracking. If GNU make was not used, consider
39431 re-running the configure script with MAKE=\"gmake\" (or whatever is
39432 necessary). You can also try re-running configure with the
39433 '--disable-dependency-tracking' option to at least be able to build
39434 the package (albeit without support for automatic dependency tracking).
39435 See 'config.log' for more details" "$LINENO" 5; }
39436 fi
39437 { am_dirpart=; unset am_dirpart;}
39438 { am_filepart=; unset am_filepart;}
39439 { am_mf=; unset am_mf;}
39440 { am_rc=; unset am_rc;}
39441 rm -f conftest-deps.mk
39442 }
39443 ;;
39444 "libtool":C)
39445
39446 # See if we are running on zsh, and set the options that allow our
39447 # commands through without removal of \ escapes.
39448 if test -n "${ZSH_VERSION+set}"; then
39449 setopt NO_GLOB_SUBST
39450 fi
39451
39452 cfgfile=${ofile}T
39453 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
39454 $RM "$cfgfile"
39455
39456 cat <<_LT_EOF >> "$cfgfile"
39457 #! $SHELL
39458 # Generated automatically by $as_me ($PACKAGE) $VERSION
39459 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
39460
39461 # Provide generalized library-building support services.
39462 # Written by Gordon Matzigkeit, 1996
39463
39464 # Copyright (C) 2014 Free Software Foundation, Inc.
39465 # This is free software; see the source for copying conditions. There is NO
39466 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
39467
39468 # GNU Libtool is free software; you can redistribute it and/or modify
39469 # it under the terms of the GNU General Public License as published by
39470 # the Free Software Foundation; either version 2 of of the License, or
39471 # (at your option) any later version.
39472 #
39473 # As a special exception to the GNU General Public License, if you
39474 # distribute this file as part of a program or library that is built
39475 # using GNU Libtool, you may include this file under the same
39476 # distribution terms that you use for the rest of that program.
39477 #
39478 # GNU Libtool is distributed in the hope that it will be useful, but
39479 # WITHOUT ANY WARRANTY; without even the implied warranty of
39480 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39481 # GNU General Public License for more details.
39482 #
39483 # You should have received a copy of the GNU General Public License
39484 # along with this program. If not, see <http://www.gnu.org/licenses/>.
39485
39486
39487 # The names of the tagged configurations supported by this script.
39488 available_tags=''
39489
39490 # Configured defaults for sys_lib_dlsearch_path munging.
39491 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
39492
39493 # ### BEGIN LIBTOOL CONFIG
39494
39495 # Which release of libtool.m4 was used?
39496 macro_version=$macro_version
39497 macro_revision=$macro_revision
39498
39499 # Whether or not to build static libraries.
39500 build_old_libs=$enable_static
39501
39502 # Whether or not to build shared libraries.
39503 build_libtool_libs=$enable_shared
39504
39505 # What type of objects to build.
39506 pic_mode=$pic_mode
39507
39508 # Whether or not to optimize for fast installation.
39509 fast_install=$enable_fast_install
39510
39511 # Shared archive member basename,for filename based shared library versioning on AIX.
39512 shared_archive_member_spec=$shared_archive_member_spec
39513
39514 # Shell to use when invoking shell scripts.
39515 SHELL=$lt_SHELL
39516
39517 # An echo program that protects backslashes.
39518 ECHO=$lt_ECHO
39519
39520 # The PATH separator for the build system.
39521 PATH_SEPARATOR=$lt_PATH_SEPARATOR
39522
39523 # The host system.
39524 host_alias=$host_alias
39525 host=$host
39526 host_os=$host_os
39527
39528 # The build system.
39529 build_alias=$build_alias
39530 build=$build
39531 build_os=$build_os
39532
39533 # A sed program that does not truncate output.
39534 SED=$lt_SED
39535
39536 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
39537 Xsed="\$SED -e 1s/^X//"
39538
39539 # A grep program that handles long lines.
39540 GREP=$lt_GREP
39541
39542 # An ERE matcher.
39543 EGREP=$lt_EGREP
39544
39545 # A literal string matcher.
39546 FGREP=$lt_FGREP
39547
39548 # A BSD- or MS-compatible name lister.
39549 NM=$lt_NM
39550
39551 # Whether we need soft or hard links.
39552 LN_S=$lt_LN_S
39553
39554 # What is the maximum length of a command?
39555 max_cmd_len=$max_cmd_len
39556
39557 # Object file suffix (normally "o").
39558 objext=$ac_objext
39559
39560 # Executable file suffix (normally "").
39561 exeext=$exeext
39562
39563 # whether the shell understands "unset".
39564 lt_unset=$lt_unset
39565
39566 # turn spaces into newlines.
39567 SP2NL=$lt_lt_SP2NL
39568
39569 # turn newlines into spaces.
39570 NL2SP=$lt_lt_NL2SP
39571
39572 # convert \$build file names to \$host format.
39573 to_host_file_cmd=$lt_cv_to_host_file_cmd
39574
39575 # convert \$build files to toolchain format.
39576 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
39577
39578 # A file(cmd) program that detects file types.
39579 FILECMD=$lt_FILECMD
39580
39581 # An object symbol dumper.
39582 OBJDUMP=$lt_OBJDUMP
39583
39584 # Method to check whether dependent libraries are shared objects.
39585 deplibs_check_method=$lt_deplibs_check_method
39586
39587 # Command to use when deplibs_check_method = "file_magic".
39588 file_magic_cmd=$lt_file_magic_cmd
39589
39590 # How to find potential files when deplibs_check_method = "file_magic".
39591 file_magic_glob=$lt_file_magic_glob
39592
39593 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
39594 want_nocaseglob=$lt_want_nocaseglob
39595
39596 # DLL creation program.
39597 DLLTOOL=$lt_DLLTOOL
39598
39599 # Command to associate shared and link libraries.
39600 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
39601
39602 # The archiver.
39603 AR=$lt_AR
39604
39605 # Flags to create an archive (by configure).
39606 lt_ar_flags=$lt_ar_flags
39607
39608 # Flags to create an archive.
39609 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
39610
39611 # How to feed a file listing to the archiver.
39612 archiver_list_spec=$lt_archiver_list_spec
39613
39614 # A symbol stripping program.
39615 STRIP=$lt_STRIP
39616
39617 # Commands used to install an old-style archive.
39618 RANLIB=$lt_RANLIB
39619 old_postinstall_cmds=$lt_old_postinstall_cmds
39620 old_postuninstall_cmds=$lt_old_postuninstall_cmds
39621
39622 # Whether to use a lock for old archive extraction.
39623 lock_old_archive_extraction=$lock_old_archive_extraction
39624
39625 # A C compiler.
39626 LTCC=$lt_CC
39627
39628 # LTCC compiler flags.
39629 LTCFLAGS=$lt_CFLAGS
39630
39631 # Take the output of nm and produce a listing of raw symbols and C names.
39632 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39633
39634 # Transform the output of nm in a proper C declaration.
39635 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39636
39637 # Transform the output of nm into a list of symbols to manually relocate.
39638 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
39639
39640 # Transform the output of nm in a C name address pair.
39641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39642
39643 # Transform the output of nm in a C name address pair when lib prefix is needed.
39644 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
39645
39646 # The name lister interface.
39647 nm_interface=$lt_lt_cv_nm_interface
39648
39649 # Specify filename containing input files for \$NM.
39650 nm_file_list_spec=$lt_nm_file_list_spec
39651
39652 # The root where to search for dependent libraries,and where our libraries should be installed.
39653 lt_sysroot=$lt_sysroot
39654
39655 # Command to truncate a binary pipe.
39656 lt_truncate_bin=$lt_lt_cv_truncate_bin
39657
39658 # The name of the directory that contains temporary libtool files.
39659 objdir=$objdir
39660
39661 # Used to examine libraries when file_magic_cmd begins with "file".
39662 MAGIC_CMD=$MAGIC_CMD
39663
39664 # Must we lock files when doing compilation?
39665 need_locks=$lt_need_locks
39666
39667 # Manifest tool.
39668 MANIFEST_TOOL=$lt_MANIFEST_TOOL
39669
39670 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
39671 DSYMUTIL=$lt_DSYMUTIL
39672
39673 # Tool to change global to local symbols on Mac OS X.
39674 NMEDIT=$lt_NMEDIT
39675
39676 # Tool to manipulate fat objects and archives on Mac OS X.
39677 LIPO=$lt_LIPO
39678
39679 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
39680 OTOOL=$lt_OTOOL
39681
39682 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
39683 OTOOL64=$lt_OTOOL64
39684
39685 # Old archive suffix (normally "a").
39686 libext=$libext
39687
39688 # Shared library suffix (normally ".so").
39689 shrext_cmds=$lt_shrext_cmds
39690
39691 # The commands to extract the exported symbol list from a shared archive.
39692 extract_expsyms_cmds=$lt_extract_expsyms_cmds
39693
39694 # Variables whose values should be saved in libtool wrapper scripts and
39695 # restored at link time.
39696 variables_saved_for_relink=$lt_variables_saved_for_relink
39697
39698 # Do we need the "lib" prefix for modules?
39699 need_lib_prefix=$need_lib_prefix
39700
39701 # Do we need a version for libraries?
39702 need_version=$need_version
39703
39704 # Library versioning type.
39705 version_type=$version_type
39706
39707 # Shared library runtime path variable.
39708 runpath_var=$runpath_var
39709
39710 # Shared library path variable.
39711 shlibpath_var=$shlibpath_var
39712
39713 # Is shlibpath searched before the hard-coded library search path?
39714 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39715
39716 # Format of library name prefix.
39717 libname_spec=$lt_libname_spec
39718
39719 # List of archive names. First name is the real one, the rest are links.
39720 # The last name is the one that the linker finds with -lNAME
39721 library_names_spec=$lt_library_names_spec
39722
39723 # The coded name of the library, if different from the real name.
39724 soname_spec=$lt_soname_spec
39725
39726 # Permission mode override for installation of shared libraries.
39727 install_override_mode=$lt_install_override_mode
39728
39729 # Command to use after installation of a shared archive.
39730 postinstall_cmds=$lt_postinstall_cmds
39731
39732 # Command to use after uninstallation of a shared archive.
39733 postuninstall_cmds=$lt_postuninstall_cmds
39734
39735 # Commands used to finish a libtool library installation in a directory.
39736 finish_cmds=$lt_finish_cmds
39737
39738 # As "finish_cmds", except a single script fragment to be evaled but
39739 # not shown.
39740 finish_eval=$lt_finish_eval
39741
39742 # Whether we should hardcode library paths into libraries.
39743 hardcode_into_libs=$hardcode_into_libs
39744
39745 # Compile-time system search path for libraries.
39746 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39747
39748 # Detected run-time system search path for libraries.
39749 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
39750
39751 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
39752 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
39753
39754 # Whether dlopen is supported.
39755 dlopen_support=$enable_dlopen
39756
39757 # Whether dlopen of programs is supported.
39758 dlopen_self=$enable_dlopen_self
39759
39760 # Whether dlopen of statically linked programs is supported.
39761 dlopen_self_static=$enable_dlopen_self_static
39762
39763 # Commands to strip libraries.
39764 old_striplib=$lt_old_striplib
39765 striplib=$lt_striplib
39766
39767
39768 # The linker used to build libraries.
39769 LD=$lt_LD
39770
39771 # How to create reloadable object files.
39772 reload_flag=$lt_reload_flag
39773 reload_cmds=$lt_reload_cmds
39774
39775 # Commands used to build an old-style archive.
39776 old_archive_cmds=$lt_old_archive_cmds
39777
39778 # A language specific compiler.
39779 CC=$lt_compiler
39780
39781 # Is the compiler the GNU compiler?
39782 with_gcc=$GCC
39783
39784 # Compiler flag to turn off builtin functions.
39785 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39786
39787 # Additional compiler flags for building library objects.
39788 pic_flag=$lt_lt_prog_compiler_pic
39789
39790 # How to pass a linker flag through the compiler.
39791 wl=$lt_lt_prog_compiler_wl
39792
39793 # Compiler flag to prevent dynamic linking.
39794 link_static_flag=$lt_lt_prog_compiler_static
39795
39796 # Does compiler simultaneously support -c and -o options?
39797 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39798
39799 # Whether or not to add -lc for building shared libraries.
39800 build_libtool_need_lc=$archive_cmds_need_lc
39801
39802 # Whether or not to disallow shared libs when runtime libs are static.
39803 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39804
39805 # Compiler flag to allow reflexive dlopens.
39806 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39807
39808 # Compiler flag to generate shared objects directly from archives.
39809 whole_archive_flag_spec=$lt_whole_archive_flag_spec
39810
39811 # Whether the compiler copes with passing no objects directly.
39812 compiler_needs_object=$lt_compiler_needs_object
39813
39814 # Create an old-style archive from a shared archive.
39815 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39816
39817 # Create a temporary old-style archive to link instead of a shared archive.
39818 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39819
39820 # Commands used to build a shared archive.
39821 archive_cmds=$lt_archive_cmds
39822 archive_expsym_cmds=$lt_archive_expsym_cmds
39823
39824 # Commands used to build a loadable module if different from building
39825 # a shared archive.
39826 module_cmds=$lt_module_cmds
39827 module_expsym_cmds=$lt_module_expsym_cmds
39828
39829 # Whether we are building with GNU ld or not.
39830 with_gnu_ld=$lt_with_gnu_ld
39831
39832 # Flag that allows shared libraries with undefined symbols to be built.
39833 allow_undefined_flag=$lt_allow_undefined_flag
39834
39835 # Flag that enforces no undefined symbols.
39836 no_undefined_flag=$lt_no_undefined_flag
39837
39838 # Flag to hardcode \$libdir into a binary during linking.
39839 # This must work even if \$libdir does not exist
39840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39841
39842 # Whether we need a single "-rpath" flag with a separated argument.
39843 hardcode_libdir_separator=$lt_hardcode_libdir_separator
39844
39845 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39846 # DIR into the resulting binary.
39847 hardcode_direct=$hardcode_direct
39848
39849 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39850 # DIR into the resulting binary and the resulting library dependency is
39851 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
39852 # library is relocated.
39853 hardcode_direct_absolute=$hardcode_direct_absolute
39854
39855 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39856 # into the resulting binary.
39857 hardcode_minus_L=$hardcode_minus_L
39858
39859 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39860 # into the resulting binary.
39861 hardcode_shlibpath_var=$hardcode_shlibpath_var
39862
39863 # Set to "yes" if building a shared library automatically hardcodes DIR
39864 # into the library and all subsequent libraries and executables linked
39865 # against it.
39866 hardcode_automatic=$hardcode_automatic
39867
39868 # Set to yes if linker adds runtime paths of dependent libraries
39869 # to runtime path list.
39870 inherit_rpath=$inherit_rpath
39871
39872 # Whether libtool must link a program against all its dependency libraries.
39873 link_all_deplibs=$link_all_deplibs
39874
39875 # Set to "yes" if exported symbols are required.
39876 always_export_symbols=$always_export_symbols
39877
39878 # The commands to list exported symbols.
39879 export_symbols_cmds=$lt_export_symbols_cmds
39880
39881 # Symbols that should not be listed in the preloaded symbols.
39882 exclude_expsyms=$lt_exclude_expsyms
39883
39884 # Symbols that must always be exported.
39885 include_expsyms=$lt_include_expsyms
39886
39887 # Commands necessary for linking programs (against libraries) with templates.
39888 prelink_cmds=$lt_prelink_cmds
39889
39890 # Commands necessary for finishing linking programs.
39891 postlink_cmds=$lt_postlink_cmds
39892
39893 # Specify filename containing input files.
39894 file_list_spec=$lt_file_list_spec
39895
39896 # How to hardcode a shared library path into an executable.
39897 hardcode_action=$hardcode_action
39898
39899 # ### END LIBTOOL CONFIG
39900
39901 _LT_EOF
39902
39903 cat <<'_LT_EOF' >> "$cfgfile"
39904
39905 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
39906
39907 # func_munge_path_list VARIABLE PATH
39908 # -----------------------------------
39909 # VARIABLE is name of variable containing _space_ separated list of
39910 # directories to be munged by the contents of PATH, which is string
39911 # having a format:
39912 # "DIR[:DIR]:"
39913 # string "DIR[ DIR]" will be prepended to VARIABLE
39914 # ":DIR[:DIR]"
39915 # string "DIR[ DIR]" will be appended to VARIABLE
39916 # "DIRP[:DIRP]::[DIRA:]DIRA"
39917 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
39918 # "DIRA[ DIRA]" will be appended to VARIABLE
39919 # "DIR[:DIR]"
39920 # VARIABLE will be replaced by "DIR[ DIR]"
39921 func_munge_path_list ()
39922 {
39923 case x$2 in
39924 x)
39925 ;;
39926 *:)
39927 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
39928 ;;
39929 x:*)
39930 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
39931 ;;
39932 *::*)
39933 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
39934 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
39935 ;;
39936 *)
39937 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
39938 ;;
39939 esac
39940 }
39941
39942
39943 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
39944 func_cc_basename ()
39945 {
39946 for cc_temp in $*""; do
39947 case $cc_temp in
39948 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
39949 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
39950 \-*) ;;
39951 *) break;;
39952 esac
39953 done
39954 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
39955 }
39956
39957
39958 # ### END FUNCTIONS SHARED WITH CONFIGURE
39959
39960 _LT_EOF
39961
39962 case $host_os in
39963 aix3*)
39964 cat <<\_LT_EOF >> "$cfgfile"
39965 # AIX sometimes has problems with the GCC collect2 program. For some
39966 # reason, if we set the COLLECT_NAMES environment variable, the problems
39967 # vanish in a puff of smoke.
39968 if test set != "${COLLECT_NAMES+set}"; then
39969 COLLECT_NAMES=
39970 export COLLECT_NAMES
39971 fi
39972 _LT_EOF
39973 ;;
39974 esac
39975
39976
39977
39978 ltmain=$ac_aux_dir/ltmain.sh
39979
39980
39981 # We use sed instead of cat because bash on DJGPP gets confused if
39982 # if finds mixed CR/LF and LF-only lines. Since sed operates in
39983 # text mode, it properly converts lines to CR/LF. This bash problem
39984 # is reportedly fixed, but why not run on old versions too?
39985 $SED '$q' "$ltmain" >> "$cfgfile" \
39986 || (rm -f "$cfgfile"; exit 1)
39987
39988 mv -f "$cfgfile" "$ofile" ||
39989 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39990 chmod +x "$ofile"
39991
39992 ;;
39993
39994 esac
39995 done # for ac_tag
39996
39997
39998 as_fn_exit 0
39999 _ACEOF
40000 ac_clean_files=$ac_clean_files_save
40001
40002 test $ac_write_fail = 0 ||
40003 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
40004
40005
40006 # configure is writing to config.log, and then calls config.status.
40007 # config.status does its own redirection, appending to config.log.
40008 # Unfortunately, on DOS this fails, as config.log is still kept open
40009 # by configure, so config.status won't be able to write to it; its
40010 # output is simply discarded. So we exec the FD to /dev/null,
40011 # effectively closing config.log, so it can be properly (re)opened and
40012 # appended to by config.status. When coming back to configure, we
40013 # need to make the FD available again.
40014 if test "$no_create" != yes; then
40015 ac_cs_success=:
40016 ac_config_status_args=
40017 test "$silent" = yes &&
40018 ac_config_status_args="$ac_config_status_args --quiet"
40019 exec 5>/dev/null
40020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40021 exec 5>>config.log
40022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40023 # would make configure fail if this is the last instruction.
40024 $ac_cs_success || as_fn_exit 1
40025 fi
40026 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
40027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
40028 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
40029 fi
40030
40031